Consolidate fallocate{64} implementations
[platform/upstream/glibc.git] / ChangeLog
1 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2
3         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
4         tst-fallocate64.
5         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
6         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
7         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
8         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
9         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
11         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
12         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
14         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
15         macro on offset argument.
16         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
17         SYSCALL_LL64 on offset argument.
18         * test-skeleton.c (FAIL_RET): Add macro.
19         (FAIL_EXIT): Likewise.
20         (FAIL_EXIT1): Likewise.
21         (_FAIL): Likewise.
22
23 2016-10-07  Florian Weimer  <fweimer@redhat.com>
24
25         [BZ #20629]
26         resolv: Remove RES_USEBSTRING and its implementation.
27         * resolv/resolv.h (RES_USEBSTRING): Remove.
28         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
29         (digitvalue, encode_bitstring, decode_bitstring): Remove.
30         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
31         (labellen): Remove extended label types support.
32         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
33         * resolv/res_init.c (res_setoptions): Likewise.
34         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
35
36 2016-10-07  Florian Weimer  <fweimer@redhat.com>
37
38         resolv: Remove RES_NOIP6DOTINT and its implementation.
39         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
40         (RES_NOIP6DOTINT): Remove.
41         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
42         handling.
43         * resolv/res_debug.c (p_option): Likewise.
44         * resolv/res_init.c (res_setoptions): Likewise.
45         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
46
47 2016-10-07  Florian Weimer  <fweimer@redhat.com>
48
49         resolv: Deprecate unimplemented flags.
50         * misc/sys/cdefs.h (__glibc_macro_warning1)
51         (__glibc_macro_warning): Define.
52         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
53         (RES_KEEPTSIG): Mark as deprecated.
54         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
55         RES_NOCHECKNAME, RES_KEEPTSIG.
56         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
57
58 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
59
60         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
61         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
62         Use strong_alias to create symbols for glibc verison 2.19.
63
64 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
65
66         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
67
68 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
69
70         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
71
72 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
73
74         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
75
76 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
77
78         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
79         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
80         in header for using it as type for ifunc function because __GI_* symbols
81         for ppc32 do not target the ifunc symbols.
82         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
83
84 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
85
86         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
87         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
88         libc_ifunc_hidden_def.
89         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
90         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
91         Redirect ifunced function in header for using it as type of ifunc'ed
92         function. Redefine libc_hidden_def to use fallback non ifunc'ed
93         function for __GI_* symbol.
94         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
95         * include/libc-symbols.h
96         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
97
98 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
99
100         [BZ #20478]
101         * sysdeps/s390/multiarch/ifunc-resolve.h
102         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
103         to create ifunc symbols.
104         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
105         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
106         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
107         for using it as type for ifunc function.
108         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
109         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
110         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
111         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
112         * sysdeps/s390/multiarch/strcat.c: Likewise.
113         * sysdeps/s390/multiarch/strchr.c: Likewise.
114         * sysdeps/s390/multiarch/strcmp.c: Likewise.
115         * sysdeps/s390/multiarch/strcpy.c: Likewise.
116         * sysdeps/s390/multiarch/strcspn.c: Likewise.
117         * sysdeps/s390/multiarch/strlen.c: Likewise.
118         * sysdeps/s390/multiarch/strncmp.c: Likewise.
119         * sysdeps/s390/multiarch/strncpy.c: Likewise.
120         * sysdeps/s390/multiarch/strnlen.c: Likewise.
121         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
122         * sysdeps/s390/multiarch/strrchr.c: Likewise.
123         * sysdeps/s390/multiarch/strspn.c: Likewise.
124         * sysdeps/s390/multiarch/wcschr.c: Likewise.
125         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
126         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
127         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
128         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
129         * sysdeps/s390/multiarch/wmemset.c: Likewise.
130         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
131         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
132         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
133         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
134         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
135         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
136
137 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
138
139         * include/libc-symbols.h (__ifunc_resolver):
140         New macro is used by __ifunc* macros.
141         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
142         depending on HAVE_GCC_IFUNC.
143         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
144         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
146         Redirect ifunced function in header for using as type for ifunc function.
147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
151         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
152         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
153         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
154         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
155         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
156         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
157         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
158         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
159         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
160         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
164         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
166         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
167         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
168         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
169         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
170         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
171         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
172         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
173         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
174         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
175         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
176         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
177         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
178         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
179         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
181         Add libc_hidden_def() and use libc_ifunc_hidden() macro
182         instead of libc_ifunc() macro.
183         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
184         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
185
186 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
187
188         * config.h.in (HAVE_GCC_IFUNC): New undef.
189         * configure.ac: Add check if gcc supports attribute ifunc feature.
190         * configure: Regenerated.
191         * manual/install.texi: Add recommendation for gcc with
192         indirect-function support.
193         * INSTALL: Regenerated.
194
195 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
196
197         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
198         macro.
199         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
200         (__iseqsig): New declaration.
201         * math/s_iseqsig_template.c: New file.
202         * math/Versions (__iseqsigf): New libm symbol at version
203         GLIBC_2.25.
204         (__iseqsig): Likewise.
205         (__iseqsigl): Likewise.
206         * math/libm-test.inc (iseqsig_test_data): New array.
207         (iseqsig_test): New function.
208         (main): Call iseqsig_test.
209         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
210         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
211         * manual/libm-err-tab.pl: Update comment on interfaces without
212         ulps tabulated.
213         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
214         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
215         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
216         * sysdeps/nacl/libm.abilist: Update.
217         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
218         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
219         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
220         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
221         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
222         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
223         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
224         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
225         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
226         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
227         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
228         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
230         Likewise.
231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
232         Likewise.
233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
234         Likewise.
235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
236         Likewise.
237         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
238         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
239         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
240         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
241         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
242         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
243         Likewise.
244         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
245         Likewise.
246         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
247         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
248         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
249
250 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
251
252         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
253         do_sincos_2, sloww, sloww1): Update comments.
254
255         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
256         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
257
258         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
259         K boolean and rename it.
260         (__sin): Adjust.
261         (__cos): Adjust.
262
263 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
264             Siddhesh Poyarekar  <siddhesh@sourceware.org>
265
266         * manual/nss.texi: Fix typos in the manual.
267
268 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
269
270         * manual/contrib.texi: Fix typos in the manual.
271
272         * manual/maint.texi: Fix typos in the manual.
273
274         * manual/install.texi: Fix typos in the manual.
275         * INSTALL: Regenerated.
276
277         * manual/lang.texi: Fix typos in the manual.
278
279         * manual/probes.texi: Fix typos in the manual.
280
281         * manual/threads.texi: Fix typos in the manual.
282
283         * manual/debug.texi: Fix typos in the manual.
284
285         * manual/crypt.texi: Fix typos in the manual.
286
287         * manual/conf.texi: Fix typos in the manual.
288
289         * manual/sysinfo.texi: Fix typos in the manual.
290
291         * manual/users.texi: Fix typos in the manual.
292
293         * manual/job.texi: Fix typos in the manual.
294
295         * manual/process.texi: Fix typos in the manual.
296
297         * manual/argp.texi: Fix typos in the manual.
298         * manual/getopt.texi: Likewise.
299         * manual/startup.texi: Likewise.
300
301         * manual/signal.texi: Fix typos in the manual.
302
303         * manual/setjmp.texi: Fix typos in the manual.
304
305         * manual/resource.texi: Fix typos in the manual.
306
307         * manual/time.texi: Fix typos in the manual.
308
309         * manual/arith.texi: Fix typos in the manual.
310
311         * manual/math.texi: Fix typos in the manual.
312
313         * manual/syslog.texi: Fix typos in the manual.
314
315         * manual/terminal.texi: Fix typos in the manual.
316
317         * manual/socket.texi: Fix typos in the manual.
318
319         * manual/filesys.texi: Fix typos in the manual.
320
321         * manual/llio.texi: Fix typos in the manual.
322
323         * manual/stdio.text: Fix typos in the manual.
324
325 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
326
327         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
328         instead of K1.
329
330         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
331         SHIFT_QUADRANT and make it bool.
332         (do_sincos_2): Likewise.
333         (sloww): Likewise.
334         (sloww1): Likewise.
335         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
336         (__cos): Likewise.
337
338 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
339
340         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
341
342 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
343
344         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
345         Define to __WORDSIZE, not conditional on [LONG_MAX ==
346         0x7fffffffL].
347         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
348
349 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
350
351         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
352         inline by __inline__.
353         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
354         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
355         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
356         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
357         sigset_t from signal.h.
358         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
359         which is already required.
360
361 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
362
363         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
364
365 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
366
367         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
368         (struct tcp_repair_window): New type.
369
370 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
371
372         * libio/tst-memstream3.c: Include string.h.
373
374 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
375
376         [BZ #18241]
377         [BZ #20181]
378         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
379         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
380         write position is at the end the buffer.
381         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
382         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
383         (_IO_str_seekoff): Set correct offset from negative displacement and
384         set EINVAL for invalid ones.
385         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
386         buffer length.
387         (_IO_wstr_switch_to_get_mode): New function.
388         (_IO_wstr_seekoff): Set correct offset from negative displacement and
389         set EINVAL for invalid ones.
390         * libio/tst-memstream3.c: New file.
391         * libio/tst-wmemstream3.c: Likewise.
392         * manual/examples/memstrm.c: Remove warning when priting size_t.
393
394 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
395
396         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
397         macro to use __builtin_fma.
398         * sysdeps/x86_64/fpu/dla.h: Remove file.
399
400         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
401         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
402         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
403
404 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
405
406         [BZ #20292]
407         * elf/Makefile (routines): Add dl-addr-obj.
408         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
409         tst-_dl_addr_inside_object.
410         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
411         [ifeq (yesyes,$(have-fpie)$(build-shared))]
412         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
413         [ifeq (yesyes,$(have-fpie)$(build-shared))]
414         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
415         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
416         * elf/dl-open.c: Likewise.
417         * elf/dl-addr-obj.c: New file.
418         * elf/tst-_dl_addr_inside_object.c: New file.
419
420 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
421
422         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
423         <bits/iscanonical.h>.
424         * bits/iscanonical.h: New file.
425         * math/s_iscanonicall.c: Likewise.
426         * math/Versions (__iscanonicall): New libm symbol at version
427         GLIBC_2.25.
428         * math/libm-test.inc (iscanonical_test_data): New array.
429         (iscanonical_test): New function.
430         (main): Call iscanonical_test.
431         * math/Makefile (headers): Add bits/iscanonical.h.
432         (type-ldouble-routines): Add s_iscanonicall.
433         * manual/arith.texi (Floating Point Classes): Document
434         iscanonical.
435         * manual/libm-err-tab.pl: Update comment on interfaces without
436         ulps tabulated.
437         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
438         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
439         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
440         Likewise.
441         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
442         test-iscanonical-ldbl-128ibm.
443         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
444         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
445         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
446         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
447         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
448         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
449         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
451         Likewise.
452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
453         Likewise.
454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
455         Likewise.
456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
457         Likewise.
458         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
459         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
460
461 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
462
463         * string/bits/string3.h: Remove C++ style comments.
464
465 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
466
467         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
468         instead of ternary condition.
469         (do_sincos_2): Likewise.
470         (__sin): Likewise.
471         (__cos): Likewise.
472         (slow): Likewise.
473         (sloww): Likewise.
474         (sloww1): Likewise.
475         (bsloww): Likewise.
476         (bsloww1): Likewise.
477
478         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
479         instead of ternary condition.
480         (do_sin_slow): Likewise.
481         (do_sincos_1): Likewise.
482         (do_sincos_2): Likewise.
483         (__cos): Likewise.
484         (sloww): Likewise.
485         (sloww1): Likewise.
486         (sloww2): Likewise.
487         (bsloww): Likewise.
488         (bsloww1): Likewise.
489         (bsloww2): Likewise.
490
491         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
492         check from here...
493         (slow2): ... and here...
494         (__sin): ... to here.
495
496 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
497
498         * math/math.h
499         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
500         Cast argument to its own type.
501         * math/test-iszero-excess-precision.c: New file.
502         * math/Makefile (tests): Add test-iszero-excess-precision.
503         (CFLAGS-test-iszero-excess-precision.c): New variable.
504
505 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
506
507         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
508         field, add err field.
509         (__spawni_child): Report error through err member instead of pipe.
510         (__spawnix): Likewise.
511
512 2016-09-28  Zack Weinberg  <zackw@panix.com>
513
514         * scripts/check-installed-headers.sh: Generalize treatment of
515         sys/elf.h to all target architectures.
516
517         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
518         deleted typedef ucontext_t.
519
520 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
521
522         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
523         (__INTERNAL_SYSCALL1): Likewise.
524         (__INTERNAL_SYSCALL2): Likewise.
525         (__INTERNAL_SYSCALL3): Likewise.
526         (__INTERNAL_SYSCALL4): Likewise.
527         (__INTERNAL_SYSCALL5): Likewise.
528         (__INTERNAL_SYSCALL6): Likewise.
529         (__INTERNAL_SYSCALL7): Likewise.
530         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
531         (__INTERNAL_SYSCALL_NARGS): Likewise.
532         (__INTERNAL_SYSCALL_DISP): Likewise.
533         (INTERNAL_SYSCALL_CALL): Likewise.
534         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
535         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
536         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
537         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
538         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
539         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
540         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
541         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
542         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
543         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
544         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
545         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
546         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
547
548 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
549
550         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
551         macro.
552         * math/libm-test.inc (iszero_test_data): New array.
553         (iszero_test): New function.
554         (main): Call iszero_test.
555         * manual/arith.texi (Floating Point Classes): Document iszero.
556         * manual/libm-err-tab.pl: Update comment on interfaces without
557         ulps tabulated.
558
559 2016-09-23  Zack Weinberg  <zackw@panix.com>
560
561         * scripts/check-installed-headers.sh: New script.
562         * Rules: In each directory that defines header files to be installed,
563         run check-installed-headers.sh on them as a special test.
564         * Makefile: Likewise for the headers installed at top level.
565
566         * include/aliases.h, include/alloca.h, include/argz.h
567         * include/arpa/nameser.h, include/arpa/nameser_compat.h
568         * include/elf.h, include/envz.h, include/err.h
569         * include/execinfo.h, include/fpu_control.h, include/getopt.h
570         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
571         * include/link.h, include/malloc.h, include/mcheck.h
572         * include/mntent.h, include/netinet/ether.h
573         * include/nss.h, include/obstack.h, include/printf.h
574         * include/pty.h, include/resolv.h, include/rpc/auth.h
575         * include/rpc/auth_des.h, include/rpc/auth_unix.h
576         * include/rpc/clnt.h, include/rpc/des_crypt.h
577         * include/rpc/key_prot.h, include/rpc/netdb.h
578         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
579         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
580         * include/rpc/rpc_msg.h, include/rpc/svc.h
581         * include/rpc/svc_auth.h, include/rpc/xdr.h
582         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
583         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
584         * include/rpcsvc/ypupd.h, include/shadow.h
585         * include/stdio_ext.h, include/sys/epoll.h
586         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
587         * include/sys/prctl.h, include/sys/profil.h
588         * include/sys/statfs.h, include/sys/sysctl.h
589         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
590         * sysdeps/arm/nacl/include/bits/setjmp.h
591         * sysdeps/mips/include/sys/asm.h
592         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
593         * sysdeps/unix/sysv/linux/include/sys/timex.h
594         * sysdeps/x86/fpu/include/bits/fenv.h:
595         Add #ifndef _ISOMAC guard around internal declarations.
596         Add multiple-inclusion guard if not already present.
597
598 2016-09-23  Zack Weinberg  <zackw@panix.com>
599
600         * sysdeps/generic/sys/ucontext.h
601         * sysdeps/arm/sys/ucontext.h
602         * sysdeps/i386/sys/ucontext.h
603         * sysdeps/m68k/sys/ucontext.h
604         * sysdeps/mips/sys/ucontext.h
605         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
606         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
607         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
608         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
609         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
610         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
611         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
612         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
613         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
614         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
615         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
616         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
617         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
618         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
619         Include both bits/sigcontext.h and bits/sigstack.h.
620         Fix grammar error in comment, if present.
621
622         * bits/sigstack.h
623         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
624         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
625         * sysdeps/unix/sysv/linux/bits/sigstack.h
626         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
627         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
628         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
629         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
630         * bits/sigcontext.h
631         * sysdeps/mach/hurd/i386/bits/sigcontext.h
632         * sysdeps/unix/sysv/linux/bits/sigcontext.h
633         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
634         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
635         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
636         as well as signal.h, if this was not already allowed.  Request
637         definition of size_t if necessary.  Minimize semantically-null
638         differences across files.
639
640 2016-09-23  Zack Weinberg  <zackw@panix.com>
641
642         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
643         Remove all logic conditional on __need macros.  Move all the
644         conditionally defined types to their own headers...
645         * time/bits/types/clock_t.h: Define clock_t here.
646         * time/bits/types/clockid_t.h: Define clockid_t here.
647         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
648         * time/bits/types/struct_timespec.h: Define struct timespec here.
649         * time/bits/types/struct_timeval.h: Define struct timeval here.
650         * time/bits/types/struct_tm.h: Define struct tm here.
651         * time/bits/types/time_t.h: Define time_t here.
652         * time/bits/types/timer_t.h: Define timer_t here.
653         * time/Makefile: Install the new headers.
654
655         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
656         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
657         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
658         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
659         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
660         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
661         * sysdeps/unix/sysv/linux/bits/resource.h
662         * sysdeps/unix/sysv/linux/bits/timex.h
663         * sysdeps/unix/sysv/linux/mips/bits/resource.h
664         * sysdeps/unix/sysv/linux/net/ppp_defs.h
665         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
666         * sysdeps/unix/sysv/linux/sys/acct.h
667         * sysdeps/unix/sysv/linux/sys/timerfd.h
668         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
669         * time/sys/time.h, time/sys/timeb.h
670         Use the new bits/types headers.
671
672         * include/time.h: Remove __need logic.
673         * include/bits/time.h
674         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
675         * include/bits/types/time_t.h, include/bits/types/timer_t.h
676         * include/bits/types/struct_itimerspec.h
677         * include/bits/types/struct_timespec.h
678         * include/bits/types/struct_timeval.h
679         * include/bits/types/struct_tm.h:
680         New wrapper headers.
681
682 2016-09-23  Zack Weinberg  <zackw@panix.com>
683
684         * sysdeps/mach/hurd/net/if_ppp.h
685         * sysdeps/unix/sysv/linux/net/if_ppp.h:
686         Only define struct ifpppstatsreq and struct ifpppcstatsreq
687         if __USE_MISC is defined, to ensure struct ifreq is declared.
688
689         * inet/netinet/ether.h: Condition all function prototypes
690         on __USE_MISC, to ensure struct ether_addr is declared.
691
692         * socket/bits/types/struct_osockaddr.h: New header.
693         * include/bits/types/struct_osockaddr.h: New wrapper.
694         * socket/Makefile: Install the new header.
695         * socket/sys/socket.h, inet/protocols/talkd.h:
696         Refer to bits/types/struct_osockaddr.h for the definition of
697         struct osockaddr.
698
699 2016-09-23  Zack Weinberg  <zackw@panix.com>
700
701         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
702         * inet/protocols/routed.h, inet/protocols/talkd.h
703         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
704         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
705         * sysdeps/generic/netinet/if_ether.h
706         * sysdeps/generic/netinet/in_systm.h
707         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
708         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
709         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
710         * sysdeps/mach/hurd/net/if_arp.h
711         * sysdeps/mach/hurd/net/if_ppp.h
712         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
713         * sysdeps/unix/sysv/linux/bits/in.h
714         * sysdeps/unix/sysv/linux/net/ethernet.h
715         * sysdeps/unix/sysv/linux/net/if_arp.h
716         * sysdeps/unix/sysv/linux/net/if_ppp.h
717         * sysdeps/unix/sysv/linux/net/if_shaper.h
718         * sysdeps/unix/sysv/linux/net/route.h
719         * sysdeps/unix/sysv/linux/netinet/if_ether.h
720         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
721         * sysdeps/unix/sysv/linux/netinet/if_tr.h
722         * sysdeps/unix/sysv/linux/netipx/ipx.h
723         * sysdeps/unix/sysv/linux/sys/acct.h
724         * include/arpa/nameser.h, include/resolv.h:
725         Change all uses of u_char to unsigned char,
726         u_short and ushort to unsigned short, u_int and uint to unsigned int,
727         u_long and ulong to unsigned long, u_int8_t to uint8_t,
728         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
729         and u_int64_t and u_quad_t to uint64_t.
730
731         * mach/sys/reboot.h: Remove two casts of integer literals
732         to the types they already have.
733
734         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
735         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
736         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
737         from referring to 'unsigned char' to 'uint8_t' for consistency with
738         the macro definition below.
739
740         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
741         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
742         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
743         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
744         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
745         * sysdeps/unix/sysv/linux/sys/acct.h
746         * include/arpa/nameser.h, include/resolv.h:
747         Fix indentation disrupted by mechanical edits.
748
749         * inet/protocols/talkd.h, resolv/arpa/nameser.h
750         * sysdeps/generic/netinet/in_systm.h
751         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
752         * sysdeps/gnu/netinet/udp.h
753         * sysdeps/unix/sysv/linux/net/ethernet.h
754         * sysdeps/unix/sysv/linux/net/if_arp.h
755         * sysdeps/unix/sysv/linux/net/if_ppp.h
756         * sysdeps/unix/sysv/linux/net/if_shaper.h
757         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
758         * sysdeps/unix/sysv/linux/netinet/if_tr.h
759         * sysdeps/unix/sysv/linux/netipx/ipx.h
760         * sysdeps/unix/sysv/linux/sys/acct.h
761         Include stdint.h for uintNN_t definitions.
762         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
763
764 2016-09-23  Zack Weinberg  <zackw@panix.com>
765
766         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
767         * sysdeps/unix/sysv/linux/netrose/rose.h:
768         Include sys/socket.h and netax25/ax25.h.
769
770         * inet/netinet/icmp6.h, inet/netinet/ip6.h
771         * resolv/arpa/nameser_compat.h:
772         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
773
774         * sysdeps/unix/sysv/linux/sys/quota.h:
775         Use __caddr_t instead of caddr_t.
776         * sysdeps/unix/sysv/linux/sys/timerfd.h:
777         Use __clockid_t instead of clockid_t.
778
779         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
780
781         * argp/argp.h: Check whether _LIBC is defined before expanding it.
782         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
783         expanding it.
784
785         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
786         Define __glibc_c99_flexarr_available to 1 when the compiler
787         supports C99-compatible flexible array members, 0 otherwise.
788         * sysdeps/unix/sysv/linux/bits/socket.h
789         * sysdeps/mach/hurd/bits/socket.h
790         * bits/socket.h: Use __glibc_c99_flexarr_available in
791         definitions of struct cmsghdr and CMSG_DATA.
792
793 2016-09-23  Florian Weimer  <fweimer@redhat.com>
794
795         * manual/nss.texi (NSS Modules Interface): Adjust function return
796         type to enum nss_status.  Document errnop argument.  Clarify
797         h_errnop semantics.  Fix cross-reference formatting.
798         (NSS Module Function Internals): Mention that *errnop needs to be
799         set on failure, but not to zero.
800
801 2016-09-23  Florian Weimer  <fweimer@redhat.com>
802
803         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
804         (get_random_name): New functions.
805         (check_wrapper_flags_mode): Use linkat to give the new file a name
806         determined by get_random_name.
807         (do_test): Add calls to test open64 and openat64.
808
809 2016-09-23  Florian Weimer  <fweimer@redhat.com>
810
811         * test-skeleton.c: Remove #include <stdarg.h>.
812
813 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
814
815         [BZ #19826]
816         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
817         initialization of static TLS entries.
818         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
819         * nptl/allocatestack.c (init_one_static_tls): Likewise.
820
821 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
822
823         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
824         _hurd_malloc_fork_prepare.
825         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
826         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
827         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
828         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
829         (_hurd_fork_child_hook): Drop malloc_fork_child.
830         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
831         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
832         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
833         after locking locks (notably hurd_dtable_lock). Call
834         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
835         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
836         __malloc_fork_unlock_child.
837         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
838
839 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
840
841         * soft-fp/extendhftf2.c: New.
842         * soft-fp/fixhfti.c: Likewise.
843         * soft-fp/fixunshfti.c: Likewise.
844         * soft-fp/floattihf.c: Likewise.
845         * soft-fp/floatuntihf.c: Likewise.
846         * soft-fp/half.h: Likewise.
847         * soft-fp/trunctfhf2.c: Likewise.
848
849 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
850
851         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
852         macro.
853         * math/libm-test.inc (issubnormal_test_data): New array.
854         (issubnormal_test): New function.
855         * manual/arith.texi (Floating Point Classes): Document
856         issubnormal.
857         * manual/libm-err-tab.pl: Update comment on interfaces without
858         ulps tabulated.
859
860         * sysdeps/generic/stdint.h: Define
861         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
862         <bits/libc-header-start.h> instead of including <features.h>.
863         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
864         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
865         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
866         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
867         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
868         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
869         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
870         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
871         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
872         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
873         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
874         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
875         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
876         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
877         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
878         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
879         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
880         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
881         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
882         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
883         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
884         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
885         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
886         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
887         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
888         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
889         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
890         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
891         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
892         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
893         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
894         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
895         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
896         * manual/arith.texi (Integers): Document these macros for types
897         specified by width properties.
898         * manual/lang.texi (Width of Type): Document these macros for
899         other standard typedefs.
900         * stdlib/tst-width-stdint.c: New file.
901         * stdlib/Makefile (tests): Add tst-width-stdint.
902
903 2016-09-21  Florian Weimer  <fweimer@redhat.com>
904
905         [BZ #20016]
906         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
907         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
908         Move ...
909         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
910         ... here, as compatibility symbols in a new file.
911         * resolv/Makefile (libresolv-routines): Add compat-hooks.
912         * resolv/res_init.c (__res_vinit): Adjust member names.
913         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
914         * resolv/resolv.h (res_sendhookact, res_send_qhook)
915         (res_send_rhook): Remove.
916         (struct __res_state): Rename qhook, rhook members.
917
918 2016-09-21  Florian Weimer  <fweimer@redhat.com>
919
920         malloc: Use __libc_lock wrappers.
921         * malloc/arena.c (list_lock, free_list_lock): Define using
922         __libc_lock_define_initialized.
923         (arena_lock): Adjust formatting.
924         * malloc/malloc.c (struct malloc_state): Define mutex using
925         __libc_lock_define.
926         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
927         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
928         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
929         (mutex_unlock, mutex_trylock): Remove.
930         (__pthread_initialize): Remove unused macro.
931         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
932         (mutex_unlock, mutex_trylock): Remove.
933
934 2016-09-21  Florian Weimer  <fweimer@redhat.com>
935
936         [BZ #20592]
937         Remove RR type classification macros.
938         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
939         (ns_t_udp_p, ns_t_xfr_p): Remove.
940
941 2016-09-21  Florian Weimer  <fweimer@redhat.com>
942
943         Remove misleading version information.
944         * resolv/arpa/nameser.h (__NAMESER): Remove.
945         * resolv/arpa/nameser_compat.h (__BIND): Remove.
946
947 2016-09-21  Florian Weimer  <fweimer@redhat.com>
948
949         Remove the always-defined BIND_4_COMPAT macro.
950         * resolv/arpa/nameser.h: Unconditionally include
951         <arpa/nameser_compat.h>.
952         (BIND_4_COMPAT): Remove.
953         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
954
955 2016-09-21  Florian Weimer  <fweimer@redhat.com>
956
957         [BZ #20591]
958         Remove obsolete DNSSEC support.
959         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
960         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
961         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
962         (ns_verify_tcp, ns_verify_tcp_init): Remove.
963         (ns_cert_types): Add comment.
964         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
965         separately.
966         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
967         (dst_s_dns_key_id): Remove.
968         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
969         variables.
970
971 2016-09-21  Florian Weimer  <fweimer@redhat.com>
972
973         [BZ #20524]
974         * manual/string.texi (String/Array Comparison): Clarify the
975         strverscmp behavior.
976
977 2016-09-21  Florian Weimer  <fweimer@redhat.com>
978
979         * test-skeleton.c (xasprintf): Add function.
980         * io/tst-open-tmpfile.c: New test.
981         * io/Makefile (tests): Add it.
982
983 2016-09-21  Florian Weimer  <fweimer@redhat.com>
984
985         Avoid running $(CXX) during build to obtain header file paths.
986         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
987         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
988         * Makerules (cstdlib, cmath): Remove variables.  Use
989         $(c++-cstdlib-header), $(c++-cmath-header) instead.
990         * configure: Regenerate.
991
992 2016-09-21  Florian Weimer  <fweimer@redhat.com>
993
994         * Makeconfig (all-object-suffixes): Include .op only if
995         $(build-profile).
996
997 2016-09-21  Florian Weimer  <fweimer@redhat.com>
998
999         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
1000         conditionals.  Do not define PATH_MAX.
1001
1002 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1003
1004         * posix/Makefile (tests): Add tst-spawn3.
1005         * posix/tst-spawn3.c: New file.
1006         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
1007         if it is already opened for open action.
1008
1009         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
1010         all signals when executing the clone vfork child.
1011         (SIGALL_SET): Remove macro.
1012
1013         * nptl/Makefile (tests): Add tst-exec5.
1014         * nptl/tst-exec5.c: New file.
1015         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
1016         asynchronous cancellation.
1017
1018 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1019
1020         * hurd/exc2signal.c: #include <hurd/signal.h>
1021         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
1022         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
1023         accordingly.
1024         * mach/mach_error.c (mach_error): Fix old-style function definition.
1025         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
1026
1027 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1028
1029         * math/Makefile (libm-calls): Remove s_nanF.
1030         (gen-libm-calls): Add s_nanF.
1031
1032         * math/s_nan.c: Refactor into ...
1033         * math/s_nan_template.c: New file.
1034
1035         * math/s_nanf.c: Removed.
1036         * math/s_nanl.c: Removed.
1037         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
1038         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
1039
1040         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
1041         (LDOUBLE_nanl_libm_version): New macro.
1042
1043         * sysdeps/generic/math-type-macros-double.h:
1044         (M_STRTO_NAN): New macro.
1045         * sysdeps/generic/math-type-macros-float.h: Likewise.
1046         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
1047
1048         * sysdeps/generic/math-type-macros.h: Document
1049         M_STRTO_NAN.
1050
1051 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1052
1053         * math/s_nanf.c: Remove __nanf undef.
1054         * math/s_nan.c: Remove __nan undef.
1055         * math/s_nanl.c: Remove __nanl undef.
1056
1057         * sysdeps/generic/math_private.h (__nan): Remove macro
1058         override.
1059         (__nanf): Likewise.
1060         (__nanl): Likewise.
1061
1062 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1063
1064         * math/Makefile (gen-all-calls): New variable.
1065         (generated): Replace gen-libm-calls with gen-all-calls.
1066         (gen-libm-templates.stmp): Likewise.  Also, ensure
1067         the output directory exists or is created and add
1068         dependency on the Makefile.
1069         (calls): Move s_ldexpF into gen-calls.
1070         (gen-calls): New variable.
1071
1072         * math/s_ldexpf.c: Removed.
1073         * math/s_ldexpl.c: Removed.
1074         * math/s_ldexp.c: Refactored into ...
1075         * math/s_ldexp_template.c: New file.
1076
1077         * sysdeps/generic/math-type-macros-double.h: Remove
1078         redundant fall-through definition of declare_mgen_alias.
1079         (declare_mgen_alias_2): New macro.
1080
1081         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
1082         New macro for function aliased to two exported symbols.
1083
1084         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
1085         new template file.
1086         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
1087
1088 2016-09-20  Florian Weimer  <fweimer@redhat.com>
1089
1090         * Makeconfig (all-object-suffixes): Remove .og.
1091         * Makerules (elide-routines.og): Remove.
1092         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
1093         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
1094         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
1095
1096 2016-09-20  Florian Weimer  <fweimer@redhat.com>
1097
1098         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
1099         .os objects.
1100
1101 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1102
1103         [BZ #20615]
1104         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
1105         fpu directory by non-fpu.
1106         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
1107         on non-fpu directory from a fpu directory.
1108
1109 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
1110
1111         * include/limits.h: Define
1112         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
1113         <bits/libc-header-start.h> instead of including <features.h>.
1114         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
1115         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
1116         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
1117         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
1118         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
1119         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
1120         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
1121         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
1122         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
1123         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
1124         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
1125         * manual/lang.texi (Width of Type): Document these macros.
1126         * stdlib/tst-width.c: New file.
1127         * stdlib/Makefile (tests): Add tst-width.
1128
1129 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1130
1131         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
1132         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
1133
1134 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1135
1136         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
1137         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
1138         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
1139
1140 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1141
1142         [BZ #18243]
1143         * rt/Makefile (test): Add tst-shm-cancel.
1144         * rt/tst-shm-cancel.c: New file.
1145         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
1146
1147         [BZ #18243]
1148         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
1149         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
1150         definition.
1151         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
1152         uncontended case.
1153         * nptl/sem_wait.c (__new_sem_wait): Likewise.
1154         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
1155         (tf): Fix check for uncontended case.
1156         (do_test): Likewise.
1157         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
1158         (tf): Fix check for uncontended case.
1159         (do_test): Likewise.
1160         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
1161         (tf): Fix check for uncontended case.
1162         (do_test): Likewise.
1163         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
1164         (tf): Fix check for uncontended case.
1165         (do_test): Likewise.
1166
1167         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
1168         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
1169
1170         [BZ #15765]
1171         * nptl/Makefile (tests): Add tst-sem16.
1172         * nptl/tst-sem16.c: New file.
1173         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
1174
1175         * nptl/sem_open.c (sem_open): Init pad value to 0.
1176         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
1177         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
1178
1179 2016-09-15  Florian Weimer  <fweimer@redhat.com>
1180
1181         [BZ #20611]
1182         * inet/Makefile (routines): Add inet6_scopeid_pton.
1183         (tests): Add tst-inet6_scopeid_pton.
1184         * inet/inet6_scopeid_pton.c: New file.
1185         * inet/net-internal.h: Likewise.
1186         * inet/tst-inet6_scopeid_pton.c: New test.
1187         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
1188         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
1189         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1190
1191 2016-09-14  Florian Weimer  <fweimer@redhat.com>
1192
1193         Remove support for compiling wrappers with PTW.
1194         * sysdeps/nptl/Makeconfig: Drop ptw- support.
1195         * nptl/Makefile (pthread-compat-wrappers): Define.
1196         (libpthread-routines): Use pthread-compat-wrappers.
1197         * sysdeps/unix/sysv/linux/alpha/Makefile
1198         (libpthread-routines, libpthread-shared-only-routines): Remove
1199         ptw- prefix.
1200         * sysdeps/s390/nptl/Makefile
1201         (libpthread-routines, libpthread-shared-only-routines): Likewise.
1202         * sysdeps/ia64/nptl/Makefile
1203         (libpthread-routines, libpthread-shared-only-routines): Likewise.
1204         * sysdeps/nacl/Makefile (libpthread-routines): Use
1205         pthread-compat-wrappers to filter the routines list instead of the
1206         ptw- prefix.
1207
1208 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1209
1210         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
1211         with L() and remove explicit suffix, convert real literals
1212         which can be equivalentally substituted with integers, and
1213         transform -L(x) to L(-x).
1214
1215         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1216         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1217         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
1218         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
1219         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1220         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1221         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1222         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
1223         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
1224         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
1225         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1226         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1227         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1228         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1229         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1230         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1231         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1232         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
1233         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
1234         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1235         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
1236         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
1237         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
1238         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1239         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
1240         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
1241         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1242         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1243         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
1244         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1245         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1246         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
1247         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
1248         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
1249         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
1250         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1251         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
1252         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
1253         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
1254         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
1255         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
1256         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
1257         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
1258         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
1259         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
1260         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
1261         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
1262         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
1263         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
1264         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1265
1266 2016-09-13  Florian Weimer  <fweimer@redhat.com>
1267
1268         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
1269
1270 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1271
1272         * malloc/Makefile (tests): Remove individual static test names
1273         and just add all of tests-static.
1274
1275         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
1276
1277 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
1278
1279         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
1280         file.
1281
1282         * sysdeps/sparc/fpu/fegetmode.c: New file.
1283         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
1284
1285         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
1286         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
1287
1288         * sysdeps/s390/fpu/fegetmode.c: New file.
1289         * sysdeps/s390/fpu/fesetmode.c: Likewise.
1290
1291         * sysdeps/powerpc/fpu/fegetmode.c: New file.
1292         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
1293         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
1294         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
1295         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
1296         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
1297
1298         * sysdeps/mips/fpu/fegetmode.c: New file.
1299         * sysdeps/mips/fpu/fesetmode.c: Likewise.
1300
1301         * sysdeps/m68k/fpu/fegetmode.c: New file.
1302         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
1303
1304         * sysdeps/ia64/fpu/fegetmode.c: New file.
1305         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
1306
1307         * sysdeps/hppa/fpu/fegetmode.c: New file.
1308         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
1309
1310         * sysdeps/arm/fegetmode.c: New file.
1311         * sysdeps/arm/fesetmode.c: Likewise.
1312
1313         * sysdeps/alpha/fpu/fegetmode.c: New file.
1314         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
1315
1316         * sysdeps/aarch64/fpu/fegetmode.c: New file.
1317         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
1318
1319         * math/fegetmode.c: New file.
1320         * math/fesetmode.c: Likewise.
1321         * sysdeps/i386/fpu/fegetmode.c: Likewise.
1322         * sysdeps/i386/fpu/fesetmode.c: Likewise.
1323         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
1324         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
1325         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
1326         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
1327         declaration.
1328         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
1329         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
1330         typedef.
1331         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1332         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1333         (femode_t): New typedef.
1334         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1335         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1336         (femode_t): New typedef.
1337         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1338         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1339         (femode_t): New typedef.
1340         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1341         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1342         (femode_t): New typedef.
1343         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1344         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1345         (femode_t): New typedef.
1346         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1347         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1348         (femode_t): New typedef.
1349         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1350         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1351         (femode_t): New typedef.
1352         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1353         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1354         (femode_t): New typedef.
1355         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1356         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1357         (femode_t): New typedef.
1358         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1359         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1360         (femode_t): New typedef.
1361         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
1362         declaration.
1363         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1364         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1365         (femode_t): New typedef.
1366         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1367         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1368         (femode_t): New typedef.
1369         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1370         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1371         (femode_t): New typedef.
1372         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1373         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1374         (femode_t): New typedef.
1375         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1376         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1377         (femode_t): New typedef.
1378         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1379         * manual/arith.texi (FE_DFL_MODE): Document macro.
1380         (fegetmode): Document function.
1381         (fesetmode): Likewise.
1382         * math/Versions (fegetmode): New libm symbol at version
1383         GLIBC_2.25.
1384         (fesetmode): Likewise.
1385         * math/Makefile (libm-support): Add fegetmode and fesetmode.
1386         (tests): Add test-femode and test-femode-traps.
1387         * math/test-femode-traps.c: New file.
1388         * math/test-femode.c: Likewise.
1389         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
1390         alias for __fe_dfl_env.
1391         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
1392         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
1393         (__fe_dfl_mode): Likewise.
1394         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
1395         version GLIBC_2.25.
1396         * sysdeps/nacl/libm.abilist: Update.
1397         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1398         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1399         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1400         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1401         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1402         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1403         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1404         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1405         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1406         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1407         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1408         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1410         Likewise.
1411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1412         Likewise.
1413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1414         Likewise.
1415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1416         Likewise.
1417         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1418         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1419         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1420         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1421         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1422         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1423         Likewise.
1424         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1425         Likewise.
1426         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1427         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1428         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1429
1430 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1431
1432         [BZ #20495]
1433         [BZ #20508]
1434         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
1435         processors, set Use_dl_runtime_resolve_slow and set
1436         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
1437         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
1438         New.
1439         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
1440         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
1441         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
1442         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
1443         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
1444         if Use_dl_runtime_resolve_opt is set.  Use
1445         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
1446         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
1447         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
1448         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
1449         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
1450         New.
1451         (_dl_runtime_resolve_opt): Likewise.
1452         (_dl_runtime_profile): Define only if _dl_runtime_profile is
1453         defined.
1454
1455 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1456
1457         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
1458         __libc_memalign with "+ RELA R_390_GLOB_DAT".
1459
1460 2016-09-06  Florian Weimer  <fweimer@redhat.com>
1461
1462         Convert malloc to __libc_lock.  Automated part, using this Perl
1463         s/// command:
1464           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
1465             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
1466         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
1467         conversion.
1468
1469 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
1470
1471         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
1472         (linknamespace-symlists-tests): Likewise.
1473         (linknamespace-header-tests): Likewise.
1474
1475 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
1476
1477         [BZ #19810]
1478         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
1479         * elf/tst-noload.c: New test case.
1480         * elf/Makefile (tests): Add tst-noload.
1481
1482 2016-09-02  Roland McGrath  <roland@hack.frob.com>
1483
1484         * sysdeps/nacl/dup.c: Add libc_hidden_def.
1485
1486         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
1487         not any more.
1488
1489         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
1490
1491 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1492
1493         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
1494         (do_cos_slow): Likewise.
1495         (do_sin): Likewise.
1496         (do_sin_slow): Likewise.
1497         (slow): Likewise.
1498         (slow1): Likewise.
1499         (slow2): Likewise.
1500         (sloww): Likewise.
1501         (sloww1): Likewise.
1502         (sloww2): Likewise.
1503         (bsloww): Likewise.
1504         (bsloww1): Likewise.
1505         (bsloww2): Likewise.
1506         (cslow2): Likewise.
1507
1508         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
1509
1510         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
1511         arguments.  Consolidate input partitioning from callers here.
1512         (do_cos_slow): Likewise.
1513         (do_sin): Likewise.
1514         (do_sin_slow): Likewise.
1515         (do_sincos_1): Remove the no longer necessary input partitioning.
1516         (do_sincos_2): Likewise.
1517         (__sin): Likewise.
1518         (__cos): Likewise.
1519         (slow1): Likewise.
1520         (slow2): Likewise.
1521         (sloww1): Likewise.
1522         (sloww2): Likewise.
1523         (bsloww1): Likewise.
1524         (bsloww2): Likewise.
1525         (cslow2): Likewise.
1526
1527 2016-09-02  Florian Weimer  <fweimer@redhat.com>
1528
1529         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
1530         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
1531         outside of allocated array.
1532
1533 2016-09-02  Florian Weimer  <fweimer@redhat.com>
1534
1535         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
1536         instead of MB_CUR_MAX to avoid variable-length array.
1537
1538 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1539
1540         * math/Makefile (libm-calls): Remove k_rem_pio2F.
1541         (type-double-routines): Add k_rem_pio2.
1542         (type-float-routines): Add k_rem_pio2f.
1543
1544         * sysdeps/generic/math_private.h:
1545         (__kernel_rem_pio2l): Removed.
1546
1547         * math/k_rem_pio2l.c: Removed.
1548         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
1549         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
1550         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
1551         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
1552
1553 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1554
1555         * math/Makefile (gen-libm-calls): Add s_fmin
1556         (libm-calls): Remove above.
1557
1558         * math/s_fmin.c: Refactor into ...
1559         * math/s_fmin_template.c: New file.
1560
1561         * math/s_fminf.c: Removed.
1562         * math/s_fminl.c: Removed.
1563         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
1564         (LDOUBLE_fmin_libm_version): New macro.
1565
1566         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
1567         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
1568
1569 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1570
1571         * math/Makefile: (gen-libm-calls): Add s_fmax.
1572         (libm-calls): Remove above.
1573
1574         * math/s_fmax.c: Refactor into ...
1575         * math/s_fmax_template.c: New file.
1576         * math/s_fmaxf.c: Removed.
1577         * math/s_fmaxl.c: Removed.
1578
1579         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
1580         (LDOUBLE_fmaxl_libm_version): New macro.
1581
1582         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
1583         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
1584
1585         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
1586         s_fmin.c to pick the aarch64 version of the file.
1587         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
1588         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
1589
1590 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1591
1592         * math/Makefile: (gen-libm-calls): Add s_nextdown.
1593         (libm-calls): Remove above.
1594
1595         * math/s_nextdown.c: Refactor into ...
1596         * math/s_nextdown_template.c: New file.
1597         * math/s_nextdownf.c: Removed.
1598         * math/s_nextdownl.c: Removed.
1599
1600         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
1601
1602 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1603
1604         * math/Makefile (gen-libm-calls): Add s_fdim.
1605         (libm-calls): Move to above.
1606
1607         * math/s_fdim.c: Renamed and refactored into to ...
1608         * math/s_fdim_template.c: New file.
1609         * math/s_fdiml.c: Removed.
1610         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
1611         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
1612
1613         * sysdeps/generic/math-type-macros-double.h:
1614         (declare_mgen_alias): Don't declare if already declared.
1615         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
1616         Likewise.
1617
1618         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
1619         (declare_mgen_alias): Don't declare if already declared.
1620         (M_LIBM_NEED_COMPAT): Likewise.
1621         (declare_mgen_libm_compat): Likewise.
1622         (LDOUBLE_fdiml_libm_version): New macro.
1623
1624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
1625         Include math/s_fdim.c now that ldbl-opt version is not needed.
1626         (declare_mgen_alias): New macro to disable aliasing.
1627
1628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
1629         (declare_mgen_alias): Likewise.
1630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
1631         (declare_mgen_alias): Likewise.
1632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
1633         (declare_mgen_alias): Likewise.
1634         (M_LIBM_NEED_COMPAT): Likewise.
1635
1636 2016-09-01  Florian Weimer  <fweimer@redhat.com>
1637
1638         [BZ #20525]
1639         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
1640         Include <linux/quota.h>.
1641         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
1642         and btodb.
1643         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
1644         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
1645         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
1646         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
1647         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
1648         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
1649         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
1650         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
1651         types.
1652         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
1653         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
1654
1655 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1656
1657         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
1658         (gammal_positive): Fix spacing.
1659         (__ieee754_gammal_r): Likewise.
1660
1661 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1662
1663         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
1664         (_Float128): Define as long double, always.
1665         (L): Apply long double type suffix, always.
1666
1667         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
1668         _Float128, excepting comments.
1669
1670         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1671         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
1672         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
1673         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1674         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1675         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1676         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
1677         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
1678         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
1679         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
1680         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
1681         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1682         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1683         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1684         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1685         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1686         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1687         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1688         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
1689         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
1690         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1691         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
1692         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
1693         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
1694         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
1695         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1696         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
1697         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
1698         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
1699         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1700         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1701         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
1702         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
1703         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
1704         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1705         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1706         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
1707         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1708         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
1709         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
1710         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
1711         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
1712         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1713         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1714         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
1715         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
1716         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
1717         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1718         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
1719         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
1720         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
1721         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
1722         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
1723         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
1724         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
1725         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
1726         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
1727         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
1728         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
1729         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
1730         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
1731         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
1732         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
1733         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
1734         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
1735         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
1736         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1737         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1738
1739         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
1740         _Float128, and include math_private.h.
1741         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
1742
1743         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
1744         long double semantics.
1745         (_Float128): Likewise.
1746         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
1747         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
1748         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
1749         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
1750
1751 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
1752
1753         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
1754         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
1755         * sysdeps/s390/configure: Regenerated.
1756         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
1757         instruction for raising over-/underflow if z196 zarch is supported
1758         by default.
1759         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
1760
1761 2016-08-30  Svante Signell  <svante.signell@gmail.com>
1762
1763         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
1764         it point to a dumb buffer for RPC to fill it.
1765
1766 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1767
1768         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
1769         instead of if/else.
1770         (do_sin_slow): Likewise.
1771         (do_sincos_1): Use fabs instead of if/else.
1772         (do_sincos_2): Likewise.
1773         (__sin): Likewise.
1774         (__cos): Likewise.
1775         (slow2): Likewise.
1776         (sloww): Likewise.
1777         (sloww1): Likewise.  Drop argument M.
1778         (sloww2): Use fabs instead of if/else.
1779         (bsloww): Likewise.
1780         (bsloww1): Likewise.
1781         (bsloww2): Likewise.
1782
1783         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
1784         fall through comment.
1785         (do_sincos_1): Likewise.
1786
1787         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
1788         Consolidate switch cases 0 and 2.
1789
1790 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1791
1792         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
1793         (libm-calls): Remove the above.
1794
1795         * math/s_cexp_template.c: Update using type-generic macros.
1796         * math/s_clog10_template.c: Likewise.
1797         * math/s_cpow_template.c: Likewise.
1798         * math/s_clog_template.c: Likewise.
1799         * math/s_cproj_template.c: Likewise.
1800         * math/s_csqrt_template.c: Likewise.
1801
1802         * math/s_cexp.c: Removed.
1803         * math/s_cexpf.c: Removed.
1804         * math/s_cexpl.c: Removed.
1805         * math/s_clog10.c: Removed.
1806         * math/s_clog10f.c: Removed.
1807         * math/s_clog10l.c: Removed.
1808         * math/s_cpow.c: Removed.
1809         * math/s_cpowf.c: Removed.
1810         * math/s_cpowl.c: Removed.
1811         * math/s_clog.c: Removed.
1812         * math/s_clogf.c: Removed.
1813         * math/s_clogl.c: Removed.
1814         * math/s_cproj.c: Removed.
1815         * math/s_cprojf.c: Removed.
1816         * math/s_cprojl.c: Removed.
1817         * math/s_csqrt.c: Removed.
1818         * math/s_csqrtf.c: Removed.
1819         * math/s_csqrtl.c: Removed.
1820
1821         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
1822         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
1823         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
1824         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
1825         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
1826         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
1827
1828         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
1829         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
1830         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
1831         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
1832         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
1833         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
1834         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
1835         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
1836         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
1837         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
1838         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
1839
1840         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
1841         version.
1842
1843         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
1844         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
1845         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
1846         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
1847
1848 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1849
1850         * s_cexp_template.c: Copy of s_cexp.c.
1851         * s_clog_template.c: Copy of s_clog.c.
1852         * s_clog10_template.c: Copy of s_clog10.c.
1853         * s_cpow_template.c: Copy of s_cpow.c.
1854         * s_cproj_template.c: Copy of s_cproj.c.
1855         * s_csqrt_template.c: Copy of s_csqrt.c.
1856
1857 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1858
1859         [BZ #20517]
1860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
1861         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
1862         exported.
1863
1864 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
1865
1866         * math/fetestexceptflag.c: New file.
1867         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
1868         Stefan Liebler.
1869         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1870         (fetestexceptflag): New function declaration.
1871         * manual/arith.texi (fetestexceptflag): Document function.
1872         * math/Versions (fetestexceptflag): New libm symbol at version
1873         GLIBC_2.25.
1874         * math/Makefile (libm-support): Add fetestexceptflag.
1875         (tests): Add test-fetestexceptflag.
1876         * math/test-fetestexceptflag.c: New file.
1877         * sysdeps/nacl/libm.abilist: Update.
1878         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1879         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1880         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1881         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1882         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1883         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1884         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1885         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1886         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1887         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1888         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1889         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1891         Likewise.
1892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1893         Likewise.
1894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1895         Likewise.
1896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1897         Likewise.
1898         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1899         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1900         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1901         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1902         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1903         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1904         Likewise.
1905         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1906         Likewise.
1907         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1908         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1909         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1910
1911 2016-08-26  Florian Weimer  <fweimer@redhat.com>
1912
1913         [BZ #20432]
1914         Avoid strong references to malloc-internal symbols when linking
1915         statically, to support statically interposed mallocs.
1916         * include/libc-symbols.h (call_function_static_weak): New macro.
1917         * malloc/Makefile (tests): Add tst-interpose-nothread,
1918         tst-interpose-thread, tst-interpose-static-nothread,
1919         tst-interpose-static-thread.
1920         (tests-static): Add tst-interpose-static-nothread,
1921         tst-interpose-static-thread.
1922         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
1923         tst-interpose-aux-thread.o.
1924         (test-extras): Add tst-interpose-aux-nothread,
1925         tst-interpose-aux-thread.
1926         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
1927         tst-interpose-aux-nothread.o.
1928         (tst-interpose-thread, tst-interpose-static-thread): Link with
1929         tst-interpose-aux-thread.o and libthread.
1930         * malloc/tst-interpose-aux-nothread.c: New file.
1931         * malloc/tst-interpose-aux-thread.c: Likewise.
1932         * malloc/tst-interpose-aux.c: Likewise.
1933         * malloc/tst-interpose-aux.h: Likewise.
1934         * malloc/tst-interpose-nothread.c: Likewise.
1935         * malloc/tst-interpose-skeleton.c: Likewise.
1936         * malloc/tst-interpose-static-nothread.c: Likewise.
1937         * malloc/tst-interpose-static-thread.c: Likewise.
1938         * malloc/tst-interpose-thread.c: Likewise.
1939         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
1940         * sysdeps/mach/hurd/fork.c (__fork): Only call
1941         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
1942         __malloc_fork_unlock_child if defined.
1943         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1944
1945 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1946
1947         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
1948         timespec C99 designated initialization.
1949
1950 2016-08-26  Florian Weimer  <fweimer@redhat.com>
1951
1952         [BZ #19946]
1953         Avoid expected SIGALRM signals.
1954         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
1955         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
1956         (xpthread_create, xpthread_detach, xpthread_join)
1957         (delayed_exit_thread, delayed_exit): New functions.
1958         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
1959         (tf): Use xpthread_cond_wait.
1960         (do_test): Likewise.  Replace alarm with delayed_exit.
1961         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1962         (do_test): Call delayed_exit.  Report failure.
1963         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1964         (do_test): Call delayed_exit.
1965         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1966         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
1967         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1968         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
1969         error.
1970         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1971         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
1972         error.
1973         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
1974         (do_test): Call delayed_exit.
1975         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
1976         (do_test): Call delayed_exit.
1977         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
1978         (do_test): Call delayed_exit instead of alarm.  Use
1979         xpthread_mutex_lock.
1980         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
1981         (do_test): Call delayed_exit instead of alarm.  Use
1982         xpthread_mutex_lock.
1983         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
1984         (do_test): Call delayed_exit instead of alarm.
1985         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
1986         (do_test): Call delayed_exit instead of alarm.  Use
1987         xpthread_spin_lock.
1988         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
1989         (do_test): Call delayed_exit instead of alarm.  Use
1990         xpthread_join.
1991
1992 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
1993
1994         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
1995         adjust CFA when allocating register save area on re-aligned
1996         stack.
1997
1998 2016-08-26  Florian Weimer  <fweimer@redhat.com>
1999
2000         * string/tst-cmp.c: New test.
2001         * string/Makefile (tests): Add it.
2002
2003 2016-08-25  Mark Wielaard  <mark@klomp.org>
2004
2005         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
2006         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
2007         (check_tree_recurse): Use newly defined accessors.
2008         (check_tree): Likewise.
2009         (maybe_split_for_insert): Likewise.
2010         (__tfind): Likewise.
2011         (__tdelete): Likewise.
2012         (trecurse): Likewise.
2013         (tdestroy_recurse): Likewise.
2014         (__tsearch): Likewise. And add asserts for malloc alignment.
2015         (__twalk): Cast root to node in case CHECK_TREE is defined.
2016
2017 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2018
2019         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
2020
2021 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2022
2023         * math/Makefile (libm-gen-calls): Add
2024         catan, catanh, ctan, ctanh.
2025         (libm-calls): Remove the above.
2026
2027         * math/s_catan_template.c: Update using type-generic macros.
2028         * math/s_catanh_template.c: Likewise.
2029         * math/s_ctan_template.c: Likewise.
2030         * math/s_ctanh_template.c: Likewise.
2031
2032         * math/s_catanf.c: Removed.
2033         * math/s_catan.c: Removed.
2034         * math/s_catanl.c: Removed.
2035         * math/s_catanhf.c: Removed.
2036         * math/s_catanh.c: Removed.
2037         * math/s_catanhl.c: Removed.
2038         * math/s_ctanf.c: Removed.
2039         * math/s_ctan.c: Removed.
2040         * math/s_ctanl.c: Removed.
2041         * math/s_ctanhf.c: Removed.
2042         * math/s_ctanh.c: Removed.
2043         * math/s_ctanhl.c: Removed.
2044
2045         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
2046         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
2047         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
2048         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
2049         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
2050         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
2051
2052         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
2053         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
2054         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
2055         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
2056
2057 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2058
2059         * s_catan_template.c: Copy of s_catan.c.
2060         * s_catanh_template.c: Copy of s_catanh.c.
2061         * s_ctan_template.c: Copy of s_ctan.c.
2062         * s_ctanh_template.c: Copy of s_ctanh.c.
2063
2064 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2065
2066         * math/Makefile (gen-libm-calls): Move
2067         casin, casinh, csin, csinh here.
2068         (libm-calls): Remove the above.
2069
2070         * math/s_casin_template.c: Update using type-generic macros.
2071         * math/s_casinh_template.c: Likewise.
2072         * math/s_csin_template.c: Likewise.
2073         * math/s_csinh_template.c: Likewise.
2074         * math/k_casinh_template.c: Likewise.
2075
2076         * math/s_casinf.c: Removed.
2077         * math/s_casin.c: Removed.
2078         * math/s_casinl.c: Removed.
2079         * math/s_casinh.c: Removed.
2080         * math/s_casinhf.c: Removed.
2081         * math/s_casinhl.c: Removed.
2082         * math/s_csin.c: Removed.
2083         * math/s_csinf.c: Removed.
2084         * math/s_csinl.c: Removed.
2085         * math/s_csinh.c: Removed.
2086         * math/s_csinhf.c: Removed.
2087         * math/s_csinhl.c: Removed.
2088         * math/k_casinh.c: Removed.
2089         * math/k_casinhf.c: Removed.
2090         * math/k_casinhl.c: Removed.
2091
2092         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
2093         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
2094         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
2095         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
2096
2097         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
2098         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
2099         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
2100         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
2101         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
2102         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
2103         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
2104         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
2105
2106         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
2107         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
2108         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
2109         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
2110
2111         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
2112         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
2113         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
2114         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
2115
2116 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2117
2118         * s_casin_template.c: Copy of s_casin.c.
2119         * s_casinh_template.c: Copy of s_casinh.c.
2120         * s_csin_template.c: Copy of s_csin.c.
2121         * s_csinh_template.c: Copy of s_csinh.c.
2122         * k_casinh_template.c: Copy of k_casinh.c.
2123
2124 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2125
2126         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
2127
2128 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2129
2130         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
2131         (mul_split) Remove, rename as mul_splitl, remove
2132         redundant float.h include, and include via mul_splitl.h
2133
2134         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
2135         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2136         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
2137         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
2138         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2139
2140         * math/mul_splitl.h: New file.
2141
2142         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
2143         Move into mul_split.h, and remove redundant float.h include.
2144
2145         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
2146         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
2147         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
2148         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
2149
2150         * math/mul_split.h: New file.
2151
2152 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2153
2154         * math/Makefile (libm-gen-calls): Move
2155         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
2156         (libm-calls): Remove above.
2157
2158         * math/s_cacos_template.c: Update using type-generic macros.
2159         * math/s_cacosh_template.c: Likewise.
2160         * math/s_ccos_template.c: Likewise.
2161         * math/s_ccosh_template.c: Likwise.
2162
2163         * math/s_cacosf.c: Removed.
2164         * math/s_cacos.c: Removed.
2165         * math/s_cacosl.c: Removed.
2166         * math/s_cacoshf.c: Removed.
2167         * math/s_cacosh.c: Removed.
2168         * math/s_cacoshl.c: Removed.
2169         * math/s_ccosf.c: Removed.
2170         * math/s_ccos.c: Removed.
2171         * math/s_ccosl.c: Removed.
2172         * math/s_ccoshf.c: Removed.
2173         * math/s_ccosh.c: Removed.
2174         * math/s_ccoshl.c: Removed.
2175
2176         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
2177         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
2178         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
2179         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
2180         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
2181         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
2182
2183         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
2184         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
2185         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
2186         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
2187
2188         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
2189         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
2190         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
2191         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
2192
2193 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2194
2195         * s_cacos_template.c: Copy of s_cacos.c.
2196         * s_cacosh_template.c: Copy of s_cacosh.c.
2197         * s_ccos_template.c: Copy of s_ccos.c.
2198         * s_ccosh_template.c: Copy of s_ccosh.c.
2199
2200 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2201
2202         * stdlib/tst-strtod-round-skeleton.c:
2203         Refactored from tst-strtod-round.c.
2204
2205         (L_): New macro to apply literal modifier.
2206         (FNPFX): New macro to select str or wcs prefix.
2207         (CHAR): New macro to choose wchar_t or char.
2208         (STRM): New macro to choose printf for tested character type.
2209
2210         (STRTO): New macro to choose appropriate string -> real function.
2211         (FNPFXS): Stringitized version of FNPFX.
2212         (STR): Support for above macro.
2213         (STRX): Likewise.
2214
2215         (TEST): Update with above macros.
2216         (test): Likewise.
2217         (GEN_ONE_TEST): Likewise.
2218         (test_in_one_mode): Likewise.
2219
2220         * stdlib/tst-strtod-round.c: New file.
2221         * wcsmbs/tst-wcstod-round.c: New file.
2222
2223         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
2224         (tst-wcstod-round): Add libm depencency for fesetround.
2225
2226 2016-08-19  Zack Weinberg  <zackw@panix.com>
2227
2228         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
2229
2230 2016-08-18  Torvald Riegel  <triegel@redhat.com>
2231
2232         [BZ #20477]
2233         * resolv/res_hconf.c (do_init): Use atomic access.
2234         * resolv/res_hconf.h: Add comments.
2235         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
2236         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
2237         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2238
2239 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
2240
2241         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
2242         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
2243         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
2244         Likewise.
2245
2246 2016-08-18  Florian Weimer  <fweimer@redhat.com>
2247
2248         [BZ #16907]
2249         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
2250         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
2251         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
2252         (__attribute__): Remove definition.
2253
2254 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2255
2256         * sysdeps/ieee754/ldbl-128/e_asinl.c:
2257         Remove unused sqrtl declaration.
2258
2259 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2260
2261         * math/Makefile: (gen-libm-templates.stmp): New rule.
2262         (libm-calls): Move carg conj cimag and cabs into ...
2263         (gen-libm-calls): New variable.
2264         (generated): Inform Make objects from gen-libm-calls
2265         may be generated.
2266
2267         * sysdeps/generic/math-type-macros.h: New file.
2268         * sysdeps/generic/math-type-macros-float.h: Likewise.
2269         * sysdeps/generic/math-type-macros-double.h: Likewise.
2270         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
2271         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
2272         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
2273
2274         * math/cabs.c: Refactor into
2275         * math/cabs_template.c: new file.
2276         * math/cabsf.c: Removed.
2277         * math/cabsl.c: Removed.
2278         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
2279         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
2280
2281         * math/carg.c: Refactor into
2282         * math/carg_template.c: new file.
2283         * math/cargf.c: Removed.
2284         * math/cargl.c: Removed.
2285         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
2286         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
2287
2288         * math/conj.c: Refactor into
2289         * math/conj_template.c: new file.
2290         * math/conjf.c: Removed.
2291         * math/conjl.c: Removed.
2292         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
2293         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
2294
2295         * math/cimag.c: Refactor into
2296         * math/cimag_template.c: new file.
2297         * math/cimagf.c: Removed.
2298         * math/cimagl.c: Removed.
2299         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
2300         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
2301
2302         * math/cimag.c: Refactor into
2303         * math/cimag_template.c: new file.
2304         * math/cimagf.c: Removed.
2305         * math/cimagl.c: Removed.
2306         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
2307         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
2308
2309 2016-08-17  Florian Weimer  <fweimer@redhat.com>
2310
2311         Reduce time to expected nptl/tst-once5 failure.
2312         * nptl/tst-once5.cc (TIMEOUT): Define.
2313
2314 2016-08-17  Florian Weimer  <fweimer@redhat.com>
2315
2316         [BZ #20452]
2317         Avoid additional copies of objects in libc.a in static libraries.
2318         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
2319         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
2320         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
2321         rt-sysdep.
2322         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
2323         Add nptl-sysdep.
2324         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
2325         Add ptw-sysdep.
2326         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
2327         rt-sysdep.
2328         * sysdeps/unix/sysv/linux/alpha/Makefile
2329         (libpthread-shared-only-routines): Add ptw-sysdep,
2330         ptw-sigprocmask, ptw-rt_sigaction.
2331         * sysdeps/unix/sysv/linux/ia64/Makefile
2332         (librt-shared-only-routines): Add rt-sysdep.
2333         * sysdeps/unix/sysv/linux/i386/Makefile
2334         (libpthread-shared-only-routines): Add libc-do-syscall.
2335         * sysdeps/unix/sysv/linux/microblaze/Makefile
2336         (libpthread-shared-only-routines): Add sysdep.
2337         * sysdeps/unix/sysv/linux/powerpc/Makefile
2338         (librt-shared-only-routines): Add rt-sysdep.
2339         (libpthread-shared-only-routines): Add sysdep.
2340         * sysdeps/unix/sysv/linux/s390/Makefile
2341         (librt-shared-only-routines): Add rt-sysdep.
2342         * sysdeps/unix/sysv/linux/sparc/Makefile
2343         (librt-shared-only-routines): Add rt-sysdep.
2344         (libpthread-shared-only-routines): Add sysdep.
2345         * sysdeps/unix/sysv/linux/tile/Makefile
2346         (libpthread-shared-only-routines): Likewise.
2347
2348 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
2349
2350         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
2351         Mask implicit bit out of unpacked value.
2352         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
2353         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
2354         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
2355
2356         * sysdeps/sparc/fpu/fesetexcept.c: New file.
2357
2358         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
2359
2360         * sysdeps/s390/fpu/fesetexcept.c: New file.
2361
2362         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
2363         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
2364         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
2365
2366         * sysdeps/mips/fpu/fesetexcept.c: New file.
2367
2368         * sysdeps/m68k/fpu/fesetexcept.c: New file.
2369
2370         * sysdeps/ia64/fpu/fesetexcept.c: New file.
2371
2372         * sysdeps/hppa/fpu/fesetexcept.c: New file.
2373
2374         * sysdeps/arm/fesetexcept.c: New file.
2375
2376         * sysdeps/alpha/fpu/fesetexcept.c: New file.
2377
2378         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
2379
2380         * math/fesetexcept.c: New file.
2381         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
2382         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
2383         * math/fenv.h: Define
2384         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2385         <bits/libc-header-start.h> instead of including <features.h>.
2386         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
2387         declaration.
2388         * manual/arith.texi (fesetexcept): Document function.
2389         * math/Versions (fesetexcept): New libm symbol at version
2390         GLIBC_2.25.
2391         * math/Makefile (libm-support): Add fesetexcept.
2392         (tests): Add test-fesetexcept and test-fesetexcept-traps.
2393         * math/test-fesetexcept.c: New file.
2394         * math/test-fesetexcept-traps.c: Likewise.
2395         * sysdeps/nacl/libm.abilist: Update.
2396         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2397         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2398         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2399         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2400         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2401         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2402         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2403         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2404         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2405         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2406         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2407         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2409         Likewise.
2410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2411         Likewise.
2412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2413         Likewise.
2414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2415         Likewise.
2416         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2417         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2418         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2419         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2420         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2421         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2422         Likewise.
2423         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2424         Likewise.
2425         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2426         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2427         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2428
2429 2016-08-16  Florian Weimer  <fweimer@redhat.com>
2430
2431         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
2432         New.
2433         (do_test): Apply default_stack_size_in_mb if not set.
2434         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
2435
2436 2016-08-15  Andreas Schwab  <schwab@suse.de>
2437
2438         [BZ #20435]
2439         CVE-2016-6323
2440         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
2441         as .cantunwind.
2442
2443 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
2444
2445         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
2446         comment from fraiseexcpt.c.
2447
2448         * math/test-fexcept.c (feraiseexcept_exact): New function.
2449         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
2450         (test_except): Likewise.
2451
2452 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
2453
2454         [BZ #20455]
2455         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
2456         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
2457         to be restored.
2458
2459         * math/test-fexcept-traps.c: New file.
2460         * math/test-fexcept.c: Likewise.
2461         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
2462         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
2463         macro.
2464         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
2465         (EXCEPTION_SET_FORCES_TRAP): Likewise.
2466
2467 2016-08-09  Torvald Riegel  <triegel@redhat.com>
2468
2469         * include/atomic.h (atomic_fetch_and_relaxed,
2470         atomic_fetch_and_release, atomic_fetch_or_release,
2471         atomic_fetch_xor_release): New.
2472
2473 2016-08-06  Christian Seiler  <christian@iwakd.de>
2474
2475         [BZ #20444]
2476         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
2477         MACH_PORT_NULL.
2478
2479 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
2480
2481         * math/s_fdim.c: Avoid alias renamed.
2482         * math/s_fdimf.c: Likewise.
2483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2484         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
2485         Add s_fdimf-vis3, s_fdim-vis3.
2486         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
2487         (CFLAGS-s_fdim-vis3.c): Likewise.
2488         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
2489         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
2490
2491 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
2492
2493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2494         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
2495         Remove s_fdimf-vis3, s_fdim-vis3.
2496         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
2497         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
2498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
2499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
2500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
2501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
2502         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
2503         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
2504         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
2505         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
2506
2507 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
2508
2509         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
2510         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
2511         -Wa,-Av9a -mvis.
2512
2513 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2514
2515         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
2516         LIT() to individual constants in simple expressions
2517         after splitting on spaces.
2518         (_apply_lit): Rename replaced version, and use it to
2519         apply to what appears to be a token.
2520
2521         * math/libm-test.inc: Fix many, many issues with
2522         spacing.
2523
2524 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
2525
2526         * math/math.h: Move comment about <bits/mathdef.h> definitions
2527         above inclusion of <bits/mathdef.h>.  Do not mention
2528         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
2529
2530 2016-08-05  Torvald Riegel  <triegel@redhat.com>
2531
2532         * include/atomic.h (atomic_exchange_relaxed): New.
2533
2534 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
2535
2536         * math/e_scalb.c: Do not include <fenv.h>.
2537         (invalid_fn): Do calculation resulting in NaN instead of raising
2538         FE_INVALID and returning a NaN explicitly.
2539         * math/e_scalbf.c: Do not include <fenv.h>.
2540         (invalid_fn): Do calculation resulting in NaN instead of raising
2541         FE_INVALID and returning a NaN explicitly.
2542         * math/e_scalbl.c: Do not include <fenv.h>.
2543         (invalid_fn): Do calculation resulting in NaN instead of raising
2544         FE_INVALID and returning a NaN explicitly.
2545
2546 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
2547
2548         * po/de.po: Updated from Translation Project.
2549         * po/fi.po: Likewise.
2550         * po/sv.po: Likewise.
2551
2552 2016-08-04  Florian Weimer  <fweimer@redhat.com>
2553
2554         [BZ #20452]
2555         Use sysdep.o from libc.a in static libraries.
2556         * sysdeps/unix/sysv/linux/i386/Makefile
2557         (libpthread-shared-only-routines): Add sysdep.
2558         (librt-shared-only-routines): Likewise.
2559
2560 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
2561
2562         * math/tgmath.h (nextdown): Define if
2563         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
2564         (nextup): Likewise.
2565
2566         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
2567         macro.
2568         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
2569         Document.
2570         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
2571         Document macro.
2572         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
2573         (exp10f): Likewise.
2574         (exp10l): Likewise.
2575         * math/bits/mathcalls.h (exp10): Declare if
2576         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
2577
2578         * manual/arith.texi (nextup): Fix typo in last change.
2579
2580 2016-08-03  Zack Weinberg  <zackw@panix.com>
2581
2582         [BZ #19239]
2583         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
2584         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
2585         define major, minor, and makedev to issue deprecation warnings on use.
2586         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
2587         previously-activated deprecation warnings for these macros and prevent
2588         subsequent inclusions of this header from having any effect.
2589         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
2590         including <sys/sysmacros.h>, and undefine it again afterward.
2591
2592 2016-08-03  Zack Weinberg  <zackw@panix.com>
2593
2594         * sysdeps/generic/sys/sysmacros.h: Delete file.
2595         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
2596         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
2597         * bits/sysmacros.h: ... here; this encoding is now the generic
2598         encoding.  Now defines only the following macros:
2599         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
2600         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
2601         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
2602
2603         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
2604         bits/sysmacros.h and the above new macros to generate the
2605         public implementations of major, minor, and makedev.
2606         * misc/tst-makedev.c: New test.
2607         * include/sys/sysmacros.h: New wrapper.
2608
2609         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
2610         (routines): Add makedev.
2611         (tests): Add tst-makedev.
2612         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
2613         gnu_dev_makedev.
2614         * posix/Makefile (headers): Remove sys/sysmacros.h.
2615         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
2616
2617         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
2618         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
2619         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
2620         * sysdeps/unix/sysv/linux/alpha/libc.abilist
2621         * sysdeps/unix/sysv/linux/arm/libc.abilist
2622         * sysdeps/unix/sysv/linux/hppa/libc.abilist
2623         * sysdeps/unix/sysv/linux/i386/libc.abilist
2624         * sysdeps/unix/sysv/linux/ia64/libc.abilist
2625         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
2626         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
2627         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
2628         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2629         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2630         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2631         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2632         * sysdeps/unix/sysv/linux/nios2/libc.abilist
2633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
2636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
2637         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
2638         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
2639         * sysdeps/unix/sysv/linux/sh/libc.abilist
2640         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
2641         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
2642         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
2643         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
2644         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
2645         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
2646         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
2647         Add GLIBC_2.25.
2648
2649         * include/features.h (__glibc_clang_prereq): New macro.
2650         * misc/sys/cdefs.h (__glibc_clang_has_extension)
2651         (__attribute_deprecated_msg__): New macros.
2652
2653 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
2654
2655         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
2656         macro.
2657         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
2658         * manual/arith.texi (issignaling): Document as ISO from TS
2659         18661-1:2014.
2660         (nextup): Likewise.
2661         (nextupf): Likewise.
2662         (nextupl): Likewise.
2663         (nextdown): Likewise.
2664         (nextdownf): Likewise.
2665         (nextdownl): Likewise.
2666         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
2667         macro.
2668         * math/math.h: Define
2669         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2670         <bits/libc-header-start.h> instead of including <features.h>.
2671         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
2672         [__USE_GNU].
2673         * math/bits/mathcalls.h (nextdown): Declare if
2674         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
2675         (nextup): Likewise.
2676         (__issignaling): Likewise.
2677
2678 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2679
2680         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
2681         check, and remove __glibc_likely hint
2682         from FP_INFINITE check.
2683         * s_csinhf.c (__csinhf): Likewise.
2684
2685         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
2686         hint from FP_INFINITE check.
2687         * s_csinhl.c (__csinhl): Likewise.
2688
2689 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2690
2691         * math/Makefile (libm-calls): Insert F placeholder into
2692         object names.  Move w_lgamma_compat* routines into
2693         (libm-compat-calls): New variable.
2694         (libm-compat-calls-ldouble-yes): New variable.
2695         (calls): Insert F placeholder.
2696         (generated): Redefine using new type-foreach macro call.
2697         (routines): Likewise.
2698
2699         (types): New variable to hold a list of symbolic names
2700         for each type supported by the target machine.
2701         (libm-routines): Redefine using new types variable.
2702         (type-foreach): macro to replace fooF with the
2703         appropriately suffixed foo for each types.
2704
2705         (type-ldouble-suffix): New variable.
2706         (type-ldouble-routines): Likewise.
2707         (type-ldouble-yes): Likewise.
2708         (type-double-suffix): Likewise.
2709         (type-double-routines): Likewise.
2710         (type-float-suffix): Likewise.
2711         (type-float-routines): Likewise.
2712
2713         (dbl-only-routines): Remove.
2714         (long-c-yes): Likewise.
2715         (long-m-routines): Likewise.
2716         (long-m-support): Likewise.
2717         (long-m-yes): Likewise.
2718         (test-longdouble-yes): Likewise.
2719
2720         (test-float.o): Simplify by increasing the scope of the
2721         recipe which adds libm-test.stmp to the vector types.
2722         (test-ifloat.o): Likewise.
2723         (test-float-finite.o): Likewise.
2724         (test-double.o): Likewise
2725         (test-idouble.o): Likewise.
2726         (test-double-finite.o): Likewise.
2727         (test-ldouble.o): Likewise
2728         (test-ildoubl.o): Likewise.
2729         (test-ldouble-finite.o): Likewise.
2730
2731         (libm-tests): Redefine type tests using foreach and the
2732         list of types in types.
2733
2734         (CPPFLAGS-test-ildoubl.c): Rename to
2735         (CPPFLAGS-test-ildouble.c): New variable
2736
2737         * math/test-ildoubl.c: Rename to
2738         * math/test-ildouble.c: New file.
2739
2740 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2741
2742         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
2743         Use fabsl instead of fabs.
2744         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
2745         Likewise.
2746         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
2747         Add long double suffix to constant to ensure proper
2748         promotion to long double.
2749
2750 2016-08-03  Tom Tromey  <tom@tromey.com>
2751
2752         [BZ #20311]
2753         * nptl_db/Makefile (headers): Add proc_service.h.
2754         * nptl_db/proc_service.h: Add include guard.  Use
2755         __BEGIN/__END_DECLS.
2756         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
2757         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
2758         arguments.
2759
2760
2761 2016-08-03  Florian Weimer  <fweimer@redhat.com>
2762
2763         [BZ #17730]
2764         Avoid using memalign for TCB allocations.
2765         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
2766         (_dl_allocate_tls_storage): Use malloc and manual alignment.
2767         Avoid alignment gap in the TLS_DTV_AT_TP case.
2768         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
2769         determine the pointer to free.
2770         * nptl/tst-tls3-malloc.c: New test.
2771         * nptl/Makefile (tests): Add it.
2772         (tst-tls3-malloc): Link with libdl, libpthread.
2773         (LDFLAGS-tst-tls3-malloc): Set.
2774         (tst-tls3-malloc.out): Depend on DSO used in test.
2775
2776 2016-08-03  Florian Weimer  <fweimer@redhat.com>
2777
2778         [BZ #17730]
2779         Avoid using memalign for TLS allocations.
2780         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
2781         is_static member with to_free member.
2782         (union dtv): Use struct dtv_pointer.
2783         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
2784         dtv_pointer instead of is_static.
2785         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2786         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
2787         instead of val.
2788         (allocate_dtv_entry): New function.
2789         (allocate_and_init): Return struct dtv_pointer.  Call
2790         allocate_dtv_entry instead of __libc_memalign.
2791         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
2792         instead of val.
2793         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
2794         instead of is_static.  Adjust call to allocate_and_init.
2795         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
2796         struct dtv_pointer instead of val.
2797
2798 2016-08-03  Florian Weimer  <fweimer@redhat.com>
2799
2800         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
2801         (MALLOC_ALIGN_MASK): Move ...
2802         * malloc/malloc-internal.h: ... to here.
2803         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
2804
2805 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
2806
2807         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
2808         (UDP_ENCAP_GTP1U): Likewise.
2809
2810         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
2811         (PF_MAX): Update value.
2812         (AF_QIPCRTR): New macro.
2813
2814 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
2815
2816         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
2817         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2818         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2819         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
2820         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
2821         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
2822         s_truncf-vis3, s_trunc-vis3.
2823         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
2824         (CFLAGS-s_ceil-vis3.c): Likewise.
2825         (CFLAGS-s_floorf-vis3.c): Likewise.
2826         (CFLAGS-s_floor-vis3.c): Likewise.
2827         (CFLAGS-s_truncf-vis3.c): Likewise.
2828         (CFLAGS-s_trunc-vis3.c): Likewise.
2829         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
2830         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
2831         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
2832         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
2833         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
2834         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
2835         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
2836         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
2837         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
2838         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
2839         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
2840         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
2841
2842 2016-08-02  David S. Miller  <davem@davemloft.net>
2843
2844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
2845         (__nearbyint_vis3): Don't check for sNaN before float register is
2846         loaded with the incoming argument.
2847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
2848         (__nearbyintf_vis3): Likewise.
2849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
2850         Likewise.
2851         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
2852         Likewise.
2853
2854         * string/test-strncmp.c (do_test_limit): Make sure the test data
2855         stream is aligned as required for the type "CHAR".
2856         (do_test): Likewise.
2857
2858 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
2859
2860         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
2861         by beq instructions jumping to the end of the function.
2862         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
2863         clobber list. Use "i" constraint instead of "X".
2864         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
2865         of "X".
2866
2867 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
2868
2869         * bits/libc-header-start.h: New file.
2870         * Makefile (headers): Add bits/libc-header-start.h.
2871         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
2872         (__GLIBC_USE): New macro.
2873         * libio/stdio.h: Define
2874         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2875         <bits/libc-header-start.h> instead of including <features.h>.
2876         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
2877         (open_memstream): Likewise.
2878         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
2879         (__asprintf): Likewise.
2880         (asprintf): Likewise.
2881         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
2882         (getdelim): Likewise.
2883         (getline): Likewise.
2884         * string/string.h: Define
2885         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2886         <bits/libc-header-start.h> instead of including <features.h>.
2887         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
2888         (strndup): Likewise.
2889         * wcsmbs/wchar.h: Define
2890         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2891         <bits/libc-header-start.h> instead of including <features.h>.
2892         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
2893         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
2894
2895 2016-08-02  Florian Weimer  <fweimer@redhat.com>
2896
2897         Support linking against compatibility symbols, for use in tests.
2898         * include/libc-symbols.h (symbol_version_reference): New macro.
2899         (symbol_version): Use it.
2900         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
2901         (compat_symbol): Use compat_symbol_reference.
2902         (compat_symbol_1, compat_symbol_2): Remove.
2903         (compat_symbol_reference, compat_symbol_reference_1)
2904         (compat_symbol_reference_2): New macro.  Use
2905         symbol_version_reference.
2906
2907 2016-08-02  Florian Weimer  <fweimer@redhat.com>
2908
2909         [BZ #19469]
2910         * malloc/Makefile (CPPFLAGS): Compile tests with
2911         -DTEST_NO_MALLOPT.
2912         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
2913
2914 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
2915
2916         [BZ #20033]
2917         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
2918         finite version.
2919         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
2920         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
2921         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
2922         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
2923         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
2924         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
2925         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
2926         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
2927         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
2928         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
2929         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
2930         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
2931         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
2932         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
2933         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
2934         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
2935         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
2936         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
2937         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
2938         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
2939         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
2940         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
2941         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
2942         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
2943         in zero power.
2944
2945 2016-08-02  Florian Weimer  <fweimer@redhat.com>
2946
2947         [BZ #20370]
2948         * malloc/arena.c (get_free_list): Update comment.  Assert that
2949         arenas on the free list have no attached threads.
2950         (remove_from_free_list): New function.
2951         (reused_arena): Call it.
2952
2953 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
2954
2955         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
2956         when it is a NaN.
2957         [_IEEE_FP_INEXACT] Remove.
2958         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
2959         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
2960         when it is a NaN.
2961         [_IEEE_FP_INEXACT] Remove.
2962         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
2963         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
2964         when it is a NaN.
2965         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
2966         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
2967         when its absolute value is greater than 0x1.0p52.
2968         [_IEEE_FP_INEXACT] Remove.
2969         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
2970         when its absolute value is greater than 0x1.0p23.
2971         [_IEEE_FP_INEXACT] Remove.
2972
2973 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
2974
2975         * version.h (RELEASE): Set to "development"
2976         (VERSION): Set to 2.24.90.
2977         * NEWS: Add 2.25 section.
2978
2979         * version.h (RELEASE): Set to "stable"
2980         (VERSION): Set to 2.24.
2981         * include/features.h (__GLIBC_MINOR__): Set to 24.
2982
2983         * NEWS: Add 2.24 fixed bugs.
2984         * po/libc.pot: Regenerate.
2985
2986 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
2987
2988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2989         [$(subdir) = math] (libm-sysdep_routines): Remove.
2990         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
2991         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
2992         s_truncf-vis3, s_trunc-vis3.
2993         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
2995         file.
2996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
2997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
2998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
2999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
3000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
3001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
3002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
3003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
3005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
3006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
3007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
3008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
3009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
3010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
3011         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
3012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
3014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
3015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
3016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
3017         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
3018         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
3019         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
3020         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
3021         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
3022         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
3023         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
3024         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
3025         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
3026         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
3027         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
3028         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
3029         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
3030         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
3031         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
3032         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
3033         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3034         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3035         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
3036         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
3037         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
3038         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
3039
3040 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
3041
3042         [BZ #20384]
3043         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
3044         test-double-libmvec-sincos-avx-main.o,
3045         test-double-libmvec-sincos-avx2-main.o,
3046         test-double-libmvec-sincos-main.o,
3047         test-float-libmvec-sincosf-avx-main.o,
3048         test-float-libmvec-sincosf-avx2-main.o and
3049         test-float-libmvec-sincosf-main.o.
3050         test-float-libmvec-sincosf-avx512-main.o.
3051         ($(objpfx)test-double-libmvec-sincos): Also link with
3052         $(objpfx)test-double-libmvec-sincos-main.o.
3053         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
3054         $(objpfx)test-double-libmvec-sincos-avx-main.o.
3055         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
3056         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
3057         ($(objpfx)test-float-libmvec-sincosf): Also link with
3058         $(objpfx)test-float-libmvec-sincosf-main.o.
3059         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
3060         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
3061         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
3062         test-double-libmvec-sincos-avx512-main.o and
3063         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
3064         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
3065         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
3066         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
3067         (CFLAGS-test-double-libmvec-sincos.c): Removed.
3068         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
3069         (CFLAGS-test-double-libmvec-sincos-main.c): New.
3070         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
3071         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
3072         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
3073         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
3074         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
3075         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
3076         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
3077         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
3078         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
3079         -DREQUIRE_AVX2.
3080         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
3081         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
3082         -DREQUIRE_AVX512F.
3083         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
3084         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
3085         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
3086         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
3087         file.
3088         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
3089         Likewise.
3090         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
3091         Likewise.
3092         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
3093         Likewise.
3094         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
3095         Likewise.
3096         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
3097         Likewise.
3098         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
3099         Likewise.
3100         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
3101         Likewise.
3102
3103 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
3104
3105         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
3106
3107 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
3108
3109         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
3110         and typo in a comment about AT_HWCAP entry.
3111
3112 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3113
3114         * sysdeps/aarch64/libm-test-ulps: Updated.
3115
3116 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
3117
3118         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
3119         of r13 as it is not restored in mvcle case.
3120
3121 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
3122
3123         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
3124         Rename "ret" to "__ret".
3125         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
3126         inline_syscall5, inline_syscall6): Likewise.
3127
3128 2016-07-19   Will Newton  <will.newton@gmail.com>
3129
3130         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
3131         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
3132         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
3133         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
3134         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
3135
3136 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3137
3138         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
3139         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
3140         -mfpmath=387 with $(rtld-CFLAGS).
3141         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
3142         $(rtld-CFLAGS).
3143
3144 2016-07-18   Ross Burton  <ross.burton@intel.com>
3145              Khem Raj  <raj.khem@gmail.com>
3146
3147         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
3148         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
3149         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
3150         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
3151         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
3152         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
3153         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
3154         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
3155         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
3156         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
3157         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
3158         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
3159         R_METAG_TLS_DTPOFF): New.
3160
3161 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3162             Matt Clay  <mclay@lycos.com>
3163
3164         [BZ #20357]
3165         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
3166         to call __mpsin/__mpcos and to negate values.
3167         * math/auto-libm-test-in: Add test.
3168         * math/auto-libm-test-out: Regenerate.
3169
3170 2016-07-18  Zack Weinberg  <zackw@panix.com>
3171
3172         * grp/Makefile: Don't install the internal header grp-merge.h.
3173
3174 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3175
3176         * sysdeps/aarch64/libm-test-ulps: Regenerated.
3177
3178 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3179
3180         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
3181
3182 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3183
3184         [BZ #15368]
3185         * sysdeps/unix/sysv/linux/nptl-signals.h
3186         (__nptl_clear_internal_signals): New function.
3187         (__libc_signal_block_all): Likewise.
3188         (__libc_signal_block_app): Likewise.
3189         (__libc_signal_restore_set): Likewise.
3190         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
3191         implementation.
3192         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
3193         the cached pid/tid value in pthread structure.
3194
3195 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
3196
3197         [BZ #20347]
3198         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
3199
3200 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
3201
3202         [BZ #20348]
3203         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
3204         preadv64, pwrite64 and pwritev64.
3205
3206 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
3207
3208         [BZ #20350]
3209         * posix/tst-preadwrite.c: Renamed to ...
3210         * posix/tst-preadwrite-common.c: This.
3211         (PREAD): Removed.
3212         (PWRITE): Likewise.
3213         (STRINGIFY): Likewise.
3214         (STRINGIFY2): Likewise.
3215         (do_prepare): Make it static and remove function arguments.
3216         (do_test): Likewise.
3217         (PREPARE): Updated.
3218         (TEST_FUNCTION): New.
3219         (name): Make it static.
3220         (fd): Likewise.
3221         (do_prepare): Use create_temp_file.
3222         (do_test): Renamed to ...
3223         (do_test_with_offset): This.  Make it static and accept offset.
3224         Properly check return value of PWRITE and PREAD.  Return bytes
3225         read.  Don't close fd nor unlink name.
3226         * posix/tst-preadwrite.c: Rewrite.
3227         * posix/tst-preadwrite64.c: Likewise.
3228
3229 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
3230
3231         [BZ #20309]
3232         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
3233         -mtls-dialect=gnu2 works.
3234         * configure: Regenerated.
3235         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
3236         (tests): Add tst-gnu2-tls1.
3237         (modules-names): Add tst-gnu2-tls1mod.
3238         ($(objpfx)tst-gnu2-tls1): New.
3239         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
3240         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
3241         * elf/tst-gnu2-tls1.c: New file.
3242         * elf/tst-gnu2-tls1mod.c: Likewise.
3243         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
3244         bytes for push in the PLT entry to align the stack.
3245
3246 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
3247
3248         [BZ #20349]
3249         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
3250
3251 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3252
3253         [BZ #18707]
3254         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
3255         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
3256
3257 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3258
3259         * sysdeps/unix/sysv/linux/sysdep.h
3260         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
3261         guards.
3262         * misc/tst-preadvwritev-common.c: New file.
3263         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
3264         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
3265         a check for files larger than 2GB.
3266
3267         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3268         (__ASSUME_OFF_DIFF_OFF64): Remove define.
3269         * sysdeps/unix/sysv/linux/pread.c
3270         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
3271         __OFF_T_MATCHES_OFF64_T.
3272         * sysdeps/unix/sysv/linux/pread64.c
3273         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
3274         * sysdeps/unix/sysv/linux/preadv.c
3275         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
3276         * sysdeps/unix/sysv/linux/preadv64.c
3277         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
3278         * sysdeps/unix/sysv/linux/pwrite.c
3279         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
3280         * sysdeps/unix/sysv/linux/pwrite64.c
3281         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
3282         * sysdeps/unix/sysv/linux/pwritev.c
3283         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
3284         * sysdeps/unix/sysv/linux/pwritev64.c
3285         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
3286
3287 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
3288
3289         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3290         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
3291
3292 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
3293
3294         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
3295
3296 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
3297
3298         [BZ #20240]
3299         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3300         (CFLAGS-s_modf-ppc32.c): New variable.
3301         (CFLAGS-s_modff-ppc32.c): Likewise.
3302         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3303         (CFLAGS-s_modf-ppc64.c): Likewise.
3304         (CFLAGS-s_modff-ppc64.c): Likewise.
3305
3306 2016-07-07  Andreas Schwab  <schwab@suse.de>
3307
3308         [BZ #20263]
3309         * nptl/tst-robust10.c: New test.
3310         * nptl/Makefile (tests): Add tst-robust10.
3311
3312 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
3313
3314         [BZ #20263]
3315         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
3316
3317 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
3318
3319         * sysdeps/s390/linkmap.h (struct link_map_machine):
3320         Remove member gotplt and add member jmprel.
3321         * sysdeps/s390/s390-32/dl-machine.h
3322         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
3323         instead of gotplt with &got[3].
3324         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
3325         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3326
3327 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
3328
3329         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
3330
3331 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3332
3333         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
3334         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
3335         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
3336         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
3337         * libio/vtables.c (_IO_vtable_check)
3338         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
3339         * libio/libioP.h (IO_set_accept_foreign_vtables)
3340         [!PTR_MANGLE]: Do not call PTR_MANGLE.
3341
3342 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3343
3344         [BZ #20314]
3345         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
3346         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
3347         $(common-objpfx)cmath.
3348         ($(common-objpfx)cstdlib): New target.
3349         ($(common-objpfx)cmath): Likewise.
3350
3351 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
3352
3353         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
3354
3355 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3356
3357         [BZ #20327]
3358         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
3359         are not part of the string.
3360
3361 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3362
3363         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
3364         * nptl/tst-cancel4-common.h (fifoname): New variable.
3365         (fifofd): Likewise.
3366         (cl_fifo): New function.
3367         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
3368         SIGINT.
3369         (tf_open): Add early cancel test.
3370
3371 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3372
3373         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
3374
3375 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
3376
3377         * sysdeps/generic/ldsodefs.h
3378         (dl_symbol_visibility_binds_local_p): New inline function.
3379         * elf/dl-addr.c (determine_info): Treat hidden and internal
3380         symbols as local.
3381         * elf/dl-lookup.c (do_lookup_x): Likewise.
3382         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
3383
3384 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
3385
3386         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
3387         invalid exception for a sNaN input.
3388         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
3389         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
3390         (__nearbyint_vis3): Likewise
3391         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
3392         (__nearbyintf_vis3): Likewise
3393         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
3394         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
3395         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
3396         Likewise.
3397         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
3398         Likewise.
3399
3400 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
3401
3402         [BZ #20139]
3403         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
3404         (HAVE_AVX512DQ_ASM_SUPPORT): This.
3405         * sysdeps/x86_64/configure.ac: Require assembler from binutils
3406         2.24 or above.
3407         (HAVE_AVX512_ASM_SUPPORT): Removed.
3408         (HAVE_AVX512DQ_ASM_SUPPORT): New.
3409         * sysdeps/x86_64/configure: Regenerated.
3410         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
3411         check unconditional.
3412         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
3413         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
3414         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
3415         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3416         Likewise.
3417         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3418         Likewise.
3419         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
3420         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
3421         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
3422         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
3423         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
3424         Likewise.
3425         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3426         Likewise.
3427         * sysdeps/x86_64/multiarch/memset.S: Likewise.
3428         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
3429         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
3430         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
3431         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
3432         Likewise.
3433         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
3434         Likewise.
3435         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
3436         Likewise.
3437         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
3438         Likewise.
3439         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
3440         Likewise.
3441         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
3442         Likewise.
3443         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
3444         Likewise.
3445         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
3446         Likewise.
3447         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
3448         Likewise.
3449         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
3450         Likewise.
3451         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
3452         Likewise.
3453
3454 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
3455
3456         [BZ #20024]
3457         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
3458         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
3459         of this implementation of vector function.
3460         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
3461         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
3462         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
3463         Likewise.
3464         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
3465         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
3466         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
3467         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
3468         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
3469         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
3470         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
3471         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
3472         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
3473         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
3474         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
3475         for testing vector sincos with fixed ABI.
3476         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
3477         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
3478         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
3479         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
3480         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
3481         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
3482         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
3483         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
3484         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
3485         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
3486         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
3487         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
3488         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
3489         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
3490         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
3491         * sysdeps/x86_64/fpu/Makefile: Added new tests.
3492
3493 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
3494
3495         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
3496
3497 2016-06-30  Anton Blanchard  <anton@samba.org>
3498
3499         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3500         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
3501         s_sinf-ppc64.
3502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
3503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
3504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
3505         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
3506
3507 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3508
3509         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3510         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3511         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
3512         e_expf-ppc64.
3513         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
3514         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
3515         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
3516         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
3517
3518 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
3519
3520         [BZ #20277]
3521         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
3522         when SHARED is defined.
3523
3524 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3525
3526         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
3527         (index_arch_Prefer_ERMS): Likewise.
3528         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
3529         __memcpy_erms for Prefer_ERMS.
3530         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3531         (__memmove_erms): Enabled for libc.a.
3532         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
3533         __memmove_erms or Prefer_ERMS.
3534         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
3535         __mempcpy_erms for Prefer_ERMS.
3536         * sysdeps/x86_64/multiarch/memset.S (memset): Return
3537         __memset_erms for Prefer_ERMS.
3538
3539 2016-06-30  Andreas Schwab  <schwab@suse.de>
3540
3541         [BZ #20262]
3542         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
3543         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
3544         of memory.
3545
3546 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
3547
3548         [BZ #18645]
3549         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
3550         (test-extras): Add tst-cleanupx4aux.
3551         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
3552         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
3553         tst-cleanupx4aux.o.
3554         * nptl/tst-cleanupx4aux.c: New file.
3555
3556 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
3557
3558         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
3559
3560 2016-06-29  Andreas Schwab  <schwab@suse.de>
3561
3562         [BZ #20260]
3563         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
3564         address before the beginning of the string as an integer to avoid
3565         array-bounds warning.
3566
3567 2016-06-28  Richard Henderson  <rth@redhat.com>
3568
3569         * elf/elf.h (EM_BPF): New.
3570         (EM_NUM): Update.
3571         (R_BPF_NONE, R_BPF_MAP_FD): New.
3572
3573         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
3574         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
3575         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
3576         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
3577         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
3578         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
3579         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
3580         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
3581         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
3582         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
3583         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
3584         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
3585         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
3586         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
3587         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
3588         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
3589         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
3590         (EM_NUM): Update.
3591
3592 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
3593
3594         [BZ #18960]
3595         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
3596         Set _nl_current_LC_CATEGORY_used to two instead of one.
3597
3598 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
3599
3600         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
3601         (do_test): ... this.
3602         (TEST_FUNCTION): New macro.
3603          Include test-skeleton.c.
3604         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
3605         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
3606
3607 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
3608
3609         [BZ #15479]
3610         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
3611         floating-point environment rather than just control word.
3612         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
3613         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
3614         floating-point environment, with "invalid" exceptions merged in,
3615         rather than just control word.
3616         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
3617         * math/libm-test.inc (trunc_test_data): Do not allow spurious
3618         "inexact" exceptions.
3619
3620         [BZ #15479]
3621         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
3622         floating-point environment rather than just control word.
3623         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
3624         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
3625         floating-point environment, with "invalid" exceptions merged in,
3626         rather than just control word.
3627         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
3628         * math/libm-test.inc (floor_test_data): Do not allow spurious
3629         "inexact" exceptions.
3630
3631         [BZ #15479]
3632         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
3633         floating-point environment rather than just control word.
3634         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
3635         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
3636         floating-point environment, with "invalid" exceptions merged in,
3637         rather than just control word.
3638         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
3639         * math/libm-test.inc (ceil_test_data): Do not allow spurious
3640         "inexact" exceptions.
3641
3642 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
3643
3644         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
3645         __libc_vfork.
3646         (__vfork) [IS_IN (libc)]: Remove alias.
3647         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
3648         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
3649         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
3650
3651 2016-06-24  Torvald Riegel  <triegel@redhat.com>
3652
3653         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
3654         of atomic_compare_and_exchange_bool_rel.
3655         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
3656         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
3657         catomic_compare_and_exchange_bool_rel): Remove.
3658         * sysdeps/aarch64/atomic-machine.h
3659         (atomic_compare_and_exchange_bool_rel): Likewise.
3660         * sysdeps/alpha/atomic-machine.h
3661         (atomic_compare_and_exchange_bool_rel): Likewise.
3662         * sysdeps/arm/atomic-machine.h
3663         (atomic_compare_and_exchange_bool_rel): Likewise.
3664         * sysdeps/mips/atomic-machine.h
3665         (atomic_compare_and_exchange_bool_rel): Likewise.
3666         * sysdeps/microblaze/atomic-machine.h
3667         ( __arch_compare_and_exchange_bool_8_rel,
3668         __arch_compare_and_exchange_bool_16_rel): Likewise.
3669         * sysdeps/powerpc/atomic-machine.h
3670         ( __arch_compare_and_exchange_bool_8_rel,
3671         __arch_compare_and_exchange_bool_16_rel): Likewise.
3672         * sysdeps/powerpc/powerpc32/atomic-machine.h
3673         ( __arch_compare_and_exchange_bool_32_rel,
3674         __arch_compare_and_exchange_bool_64_rel): Likewise.
3675         * sysdeps/powerpc/powerpc64/atomic-machine.h
3676         ( __arch_compare_and_exchange_bool_32_rel,
3677         __arch_compare_and_exchange_bool_64_rel): Likewise.
3678         * sysdeps/tile/atomic-machine.h
3679         (atomic_compare_and_exchange_bool_rel): Likewise.
3680
3681 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
3682
3683         [BZ #20296]
3684         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
3685         when either argument is a NaN.
3686         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
3687         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
3688
3689         * math/libm-test.inc (snan_value_ld): New macro.
3690         (isgreater_test_data): Add sNaN tests.
3691         (isgreaterequal_test_data): Likewise.
3692         (isless_test_data): Likewise.
3693         (islessequal_test_data): Likewise.
3694         (islessgreater_test_data): Likewise.
3695         (isunordered_test_data): Likewise.
3696         (nextafter_test_data): Likewise.
3697         (nexttoward_test_data): Likewise.
3698         (remainder_test_data): Likewise.
3699         (remquo_test_data): Likewise.
3700         (significand_test_data): Likewise.
3701         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
3702
3703 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3704
3705         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
3706         environment macros are defined.
3707         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
3708
3709 2016-06-23  Florian Weimer  <fweimer@redhat.com>
3710
3711         [BZ #20191]
3712         Implement vtable verification in libio.
3713         * Makerules (shlib.lds): Place __libc_IO_vtables section.
3714         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
3715         * debug/vdprintf_chk.c (__vdprintf_chk): Call
3716         _IO_new_file_init_internal instead of _IO_file_init.
3717         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
3718         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
3719         * libio/Makefile (routines): Add vtables.
3720         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
3721         (_IO_init): Remove, not for internal use.
3722         (_IO_init_internal): Declare, internal replacement for _IO_init.
3723         (_IO_file_init): Remove, not for internal use.
3724         (_IO_new_file_init): Remove, not for internal use.
3725         (_IO_new_file_init_internal): Declare, internal replacement for
3726         _IO_new_file_init.
3727         (_IO_old_file_init): Remove, not for internal use.
3728         (_IO_old_file_init_internal): Declare, internal replacement for
3729         _IO_old_file_init.
3730         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
3731         internal use.
3732         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
3733         Declare.
3734         (libio_vtable): New macro.
3735         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
3736         functions.
3737         * libio/fileops.c (_IO_new_file_init_internal): Rename from
3738         _IO_new_file_init.
3739         (_IO_new_file_init): New externally visible wrapper which disables
3740         vtable verification.
3741         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
3742         Define as vtables.
3743         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
3744         (_IO_init): New externally visible wrapper which disables
3745         vtable verification.
3746         * libio/iofdopen.c (_IO_new_fdopen): Call
3747         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
3748         comment.
3749         * libio/iofopen.c (__fopen_internal): Call
3750         _IO_new_file_init_internal instead of _IO_file_init.
3751         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
3752         Define as vtables.
3753         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
3754         _IO_new_file_init_internal instead of _IO_file_init.
3755         * libio/iopopen.c (_IO_new_popen): Likewise.
3756         (_IO_proc_jumps): Define as vtable.
3757         * libio/iovdprintf.c (_IO_vdprintf): Call
3758         _IO_new_file_init_internal instead of _IO_file_init.
3759         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
3760         (__open_memstream): Call _IO_init_internal instead of _IO_init.
3761         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
3762         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
3763         _IO_old_file_init.
3764         (_IO_old_file_init): New externally visible wrapper which disables
3765         vtable verification.
3766         (_IO_old_file_jumps): Define as vtable.
3767         * libio/oldiofdopen.c (_IO_old_fdopen): Call
3768         _IO_old_file_init_internal instead of _IO_old_file_init.
3769         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3770         * libio/oldiopopen.c (_IO_old_popen): Likewise.
3771         (_IO_old_proc_jumps): Define as vtable.
3772         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
3773         Define as vtables.
3774         * libio/vtables.c: New file.
3775         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
3776         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
3777         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
3778         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3779         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3780         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
3781         instead of _IO_init.
3782
3783 2016-06-23  Florian Weimer  <fweimer@redhat.com>
3784
3785         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
3786
3787 2016-06-23  Florian Weimer  <fweimer@redhat.com>
3788
3789         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
3790         potentially unused.
3791
3792 2016-06-22  Florian Weimer  <fweimer@redhat.com>
3793
3794         * test-skeleton.c (write_message): New function.
3795         * malloc/tst-mallocfork2.c (write_message): Remove.
3796         * debug/tst-longjmp_chk2.c (write_indented): New function.
3797         (write_message): Remove.
3798         (stackoverflow_handler): Call write_indented.
3799
3800 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
3801
3802         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
3803         "inexact" exceptions after fnstenv.
3804         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
3805         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
3806         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
3807
3808 2015-06-22  Zack Weinberg  <zackw@panix.com>
3809
3810         * sysdeps/generic/bits/hwcap.h: Moved to ...
3811         * bits/hwcap.h: Here.
3812
3813 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
3814
3815         * sysdeps/aarch64/memcpy.S (memcpy):
3816         Further tuning for performance.
3817
3818 2016-06-21  Florian Weimer  <fweimer@redhat.com>
3819
3820         [BZ #20284]
3821         * malloc/arena.c (reused_arena): Do not return NULL if we start
3822         out with a non-corrupted arena.
3823
3824 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3825
3826         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
3827         * misc/tst-preadvwritev.c: New file.
3828         * misc/tst-preadvwritev64.c: Likewise.
3829         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
3830         usage.
3831         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
3832         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
3833         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
3834         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
3835
3836 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
3837
3838         [BZ #19654]
3839         * sysdeps/x86_64/fpu/Makefile: Added new tests.
3840         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
3841         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
3842         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
3843         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
3844         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
3845         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
3846         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
3847         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
3848         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
3849         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
3850         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
3851         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
3852         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
3853         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
3854         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
3855         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
3856         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
3857         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
3858         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
3859         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
3860         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
3861         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
3862         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
3863         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
3864         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
3865
3866 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3867
3868         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
3869         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
3870
3871 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3872
3873         * sysdeps/aarch64/memcpy.S (memcpy):
3874         Rewrite of optimized memcpy and memmove.
3875         * sysdeps/aarch64/memmove.S (memmove): Remove
3876         memmove code (merged into memcpy.S).
3877
3878 2016-06-20  Florian Weimer  <fweimer@redhat.com>
3879
3880         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
3881         * sysdeps/generic/dl-dtv.h: New file.
3882         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3883         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
3884         (dtv_t): Remove.
3885         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3886         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
3887         (dtv_t): Remove.
3888         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3889         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
3890         (dtv_t): Remove.
3891         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3892         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
3893         (dtv_t): Remove.
3894         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3895         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
3896         (dtv_t): Remove.
3897         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3898         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
3899         (dtv_t): Remove.
3900         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3901         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
3902         (dtv_t): Remove.
3903         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
3904         (dtv_t): Remove.
3905         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3906         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
3907         (dtv_t): Remove.
3908         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3909         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
3910         (dtv_t): Remove.
3911         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3912         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
3913         (dtv_t): Remove.
3914         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3915         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
3916         (dtv_t): Remove.
3917         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3918         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
3919         (dtv_t): Remove.
3920         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3921         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
3922         (dtv_t): Remove.
3923         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3924         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
3925         (dtv_t): Remove.
3926         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3927         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
3928         (dtv_t): Remove.
3929
3930 2016-06-20  Florian Weimer  <fweimer@redhat.com>
3931
3932         Revert symbol poisoning of  __malloc_initialize_hook.
3933         * include/stdc-predef.h (__malloc_initialize_hook): Remove
3934         poisoning.
3935         * malloc/Makefile: Remove un-poisoning.
3936         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
3937         instead of old__malloc_initialize_hook.
3938         * malloc/malloc-hooks.h: Likewise.
3939         * malloc/malloc.c: Likewise.
3940         * malloc/mcheck-init.c: Likewise.
3941
3942 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
3943
3944         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
3945
3946 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
3947
3948         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
3949         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
3950         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
3951         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
3952
3953 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3954
3955         * NEWS: Mention addition of nextup and nextdown.
3956         * manual/arith.texi: Document nextup and nextdown.
3957         * manual/libm-err-tab.pl: Add nextup and nextdown.
3958         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
3959         * math/Versions (libm): Add GLIBC_2.24.
3960         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
3961         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
3962         Add new test.
3963         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
3964         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
3965         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
3966         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
3967         (nextup_test_data): Likewise.
3968         (nextdown_test_data): Likewise.
3969         * math/s_nextdown.c: New file.
3970         * math/s_nextdownf.c: Likewise.
3971         * math/s_nextdownl.c: Likewise.
3972         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
3973         F(nextup): New function.
3974         F(nextdown): Likewise.
3975         * math/tgmath.h: Add nextup and nextdown.
3976         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
3977         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
3978         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
3979         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
3980         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
3981         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
3982         Add nextup and nextdown.
3983         (CFLAGS-nldbl-nextup.c): New variable.
3984         (CFLAGS-nldbl-nextdown.c): Likewise.
3985         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
3986         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
3987         * sysdeps/nacl/libm.abilist: Update.
3988         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3989         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3990         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3991         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3992         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3993         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3994         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3995         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3996         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3997         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3998         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3999         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
4001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4002         Likewise.
4003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
4004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
4005         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4006         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4007         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4008         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4009         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4010         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
4011         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
4012         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4013         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4014         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
4015         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4016
4017 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
4018
4019         * manual/pattern.texi: Fix typos & grammar errors.
4020
4021 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
4022
4023         * manual/search.texi: Fix typos & grammar errors.
4024
4025 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
4026
4027         * manual/message.texi: Fix typos & grammar errors.
4028
4029 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
4030
4031         * manual/contrib.texi: Fix spelling typos.
4032         * manual/crypt.texi: Likewise.
4033         * manual/filesys.texi: Likewise.
4034         * manual/locale.texi: Likewise.
4035         * manual/message.texi: Likewise.
4036         * manual/nss.texi: Likewise.
4037         * manual/string.texi: Likewise.
4038
4039 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
4040
4041         * manual/locale.texi: Fix typos & grammar errors.
4042
4043 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
4044
4045         * manual/charset.texi: Fix typos & grammar errors.
4046
4047 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
4048
4049         * manual/string.texi: Fix typos.
4050
4051 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
4052
4053         * manual/ctype.texi: Fix typos.
4054
4055 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
4056
4057         * manual/memory.texi: Fix various typos & grammar errors.
4058
4059 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
4060
4061         [BZ #20255]
4062         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
4063         * math/libm-test.inc (fdim_test_data): Add another test.
4064
4065         [BZ #6796]
4066         [BZ #20255]
4067         [BZ #20256]
4068         * math/s_fdim.c: Include <math_private.h>.
4069         (__fdim): Use math_narrow_eval on result.
4070         * math/s_fdimf.c: Include <math_private.h>.
4071         (__fdimf): Use math_narrow_eval on result.
4072         * sysdeps/i386/fpu/s_fdim.S: Remove file.
4073         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
4074         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
4075         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
4076         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
4077         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
4078         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
4079         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
4080         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
4081         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
4082         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
4083         * math/libm-test.inc (fdim_test_data): Expect errno setting on
4084         overflow.  Add sNaN tests.
4085
4086         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
4087         fpclassify.
4088         * math/s_fdimf.c (__fdimf): Likewise.
4089         * math/s_fdiml.c (__fdiml): Likewise.
4090
4091 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4092
4093         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
4094         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
4095         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4096         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
4097         ifunc'ed strcasecmp/strncasecmp.
4098         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
4099         [EALIGN]: Removed.
4100         [END]: Likewise.
4101         [__strcasecmp]: Define instead of the above to control symbol name.
4102         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
4103         for __strcasecmp_power8.
4104         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
4105         for __strncasecmp_power8.
4106         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
4107         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
4108         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
4109         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
4110         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
4111         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
4112
4113 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
4114
4115         [BZ #20252]
4116         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
4117         arguments when second argument is a NaN.
4118         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
4119         qNaN tests.
4120
4121         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
4122         (conj_test_data): Likewise.
4123         (copysign_test_data): Likewise.
4124         (creal_test_data): Likewise.
4125         (fma_test_data): Likewise.
4126         (fmod_test_data): Likewise.
4127
4128         [BZ #20250]
4129         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
4130         itself.
4131         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
4132         zero input to itself.
4133         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
4134         Likewise.
4135         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
4136         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
4137         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
4138         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
4139         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
4140
4141 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4142
4143         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
4144         * nptl/tst-cancel4-common.c: New file.
4145         * nptl/tst-cancel4-common.h: Likewise.
4146         * nptl/tst-cancel4.c: Move common definitions to
4147         tst-cancel4-common.{c,h} file.
4148         * nptl/tst-cancel4_1.c: New test.
4149         * nptl/tst-cancel4_2.c: New test.
4150
4151 2016-06-13  Florian Weimer  <fweimer@redhat.com>
4152
4153         [BZ #20248]
4154         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
4155         (write_message): New function.
4156         (stackoverflow_handler): Call it instead of printf, to avoid
4157         excessive stack usage by printf.
4158         (do_test): Restore SIGSEGV, SIGBUS default handlers.
4159
4160 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4161
4162         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
4163         (prio_inherit_missing): Remove define.
4164         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4165         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4166         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
4167         Likewise.
4168         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4169         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4170         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4171         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4172         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4173         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4174
4175 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
4176
4177         [BZ #19670]
4178         [BZ #19672]
4179
4180         * io/test-lfs.c (do_prepare): Use xmalloc.
4181         * io/tst-fcntl.c (do_prepare): Likewise.
4182         * libio/tst-fopenloc.c (do_bz17916): Likewise.
4183         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
4184         * login/tst-utmp.c (do_prepare): Likewise.
4185         * posix/tst-exec.c (do_prepare): Likewise.
4186         * posix/tst-pathconf.c (prepare): Likewise.
4187         * posix/tst-spawn.c (do_prepare): Likewise.
4188         * posix/tst-truncate.c (do_prepare): Likewise.
4189         * rt/tst-aio.c (do_prepare): Likewise.
4190         * rt/tst-aio64.c (do_prepare): Likewise.
4191
4192 2016-06-11  Florian Weimer  <fweimer@redhat.com>
4193
4194         [BZ #20237]
4195         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
4196         (get*ent): Set entidx to NULL during initialization.  If entidx is
4197         NULL, start iteration from the beginning.
4198
4199 2016-06-11  Florian Weimer  <fweimer@redhat.com>
4200
4201         * malloc/malloc.c (musable): Return correct size for dumped fake
4202         mmapped chunk.
4203
4204 2016-06-11  Florian Weimer  <fweimer@redhat.com>
4205
4206         [BZ #20222]
4207         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
4208         (_IO_cookie_write): Likewise.
4209         (_IO_cookie_seek): Likewise.
4210         (_IO_cookie_close): Likewise.
4211         (_IO_old_cookie_seek): Likewise.
4212         (set_callbacks): New function.
4213         (_IO_cookie_init): Call set_callbacks to copy callbacks.
4214
4215 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
4216
4217         * locale/programs/localedef.c (oldstyle_tables): Remove.
4218         * locale/programs/localedef.h (oldstyle_tables): Likewise.
4219
4220 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
4221
4222         [BZ #20240]
4223         * math/Makefile (CFLAGS-s_modf.c): New variable.
4224         (CFLAGS-s_modff.c): Likewise.
4225         (CFLAGS-s_modfl.c): Likewise.
4226         * math/libm-test.inc (modf_test_data): Add sNaN tests.
4227
4228 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
4229
4230         [BZ #20215]
4231         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
4232         [!__GNUC_PREREQ (3,2)]: Likewise.
4233
4234 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
4235
4236         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
4237         (msghdr.msg_controllen): Likewise.
4238         (cmsghdr.cmsg_len): Likewise.
4239         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
4240         ptw-oldsendmsg.
4241         (CFLAGS-oldrecvmsg.c): Remove rule.
4242         (CFLAGS-oldsendmsg.c): Likewise.
4243         (CFLAGS-recvmsg.c): Add rule.
4244         (CFLAGS-sendmsg.c): Likewise.
4245         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
4246         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
4247         (CFLAGS-recvmsg.c): Remove rule.
4248         (CFLAGS-sendmsg.c): Likewise.
4249         (CFLAGS-oldrecvmsg.c): Likewise.
4250         (CFLAGS-oldsendmsg.c): Likewise.
4251         (CFLAGS-recvmmsg.c): Likewise.
4252         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
4253         to kernel defined interfaces.
4254         (msghdr.msg_controllen): Likewise.
4255         (cmsghdr.cmsg_len): Likewise.
4256         (msghdr.__glibc_reserved1): Remove member.
4257         (msghdr.__glibc_reserved2): Likewise.
4258         (cmsghdr.__glibc_reserved1): Likewise.
4259         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
4260         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
4261         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
4262         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
4263         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
4264         version.
4265         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
4266         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
4267         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
4268         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
4269         Remove recvmsg and sendmsg.
4270         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
4271         Likewise.
4272         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
4273         Likewise.
4274         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
4275         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
4276         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
4277         Likewise.
4278         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
4279         Likewise.
4280         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
4281         [libc] (GLIBC_2.24): Likewise.
4282         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
4283         Likewise.
4284         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
4285         Likewise.
4286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
4287         [libc] (GLIBC_2.24): Likewise.
4288         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
4289         Likewise.
4290         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
4291         Likewise.
4292         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
4293         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
4294         Likewise.
4295         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
4296         Likewise.
4297         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
4298         Likewise.
4299         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
4300         Likewise.
4301         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
4302         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
4303         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
4304         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
4305         version for {recv,send,recm,sendm}msg.
4306         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4307         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4308         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4309         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4310         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4311         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4312         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4313         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4314         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4315         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
4316         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4317         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4319         Likewise.
4320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4321         Likewise.
4322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
4323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4324         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4325         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4326         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4327         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4328         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4329         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4330         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
4331         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
4332         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
4333         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4334         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4335
4336 2016-06-10  Florian Weimer  <fweimer@redhat.com>
4337
4338         [BZ #19564]
4339         Remove __malloc_initialize_hook from the API.
4340         * malloc/malloc.h (__malloc_initialize_hook): Remove.
4341         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
4342         #pragma GCC poison.
4343         * malloc/malloc-hooks.h: New file.
4344         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
4345         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
4346         (old__malloc_initialize_hook): Rename from
4347         __malloc_initialize_hook to evade poisoning.  Turn into compat
4348         symbol.
4349         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
4350         __malloc_initialize_hook.
4351         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
4352         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
4353         * manual/memory.texi (Hooks for Malloc): Remove
4354         __malloc_initialize_hook.  Adjust hook example.
4355
4356 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
4357
4358         [BZ #20235]
4359         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
4360         itself.
4361         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
4362         * math/libm-test.inc (log2_test_data): Add sNaN tests.
4363
4364         [BZ #20234]
4365         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
4366         infinity or NaN input to itself.
4367
4368         [BZ #20233]
4369         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
4370         to itself.
4371
4372         [BZ #20232]
4373         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
4374         itself.
4375
4376 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
4377
4378         * sysdeps/x86_64/start.S (_start): Always indirect branch to
4379         __libc_start_main via GOT.
4380
4381 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
4382
4383         * sysdeps/x86_64/memcopy.h: New file.
4384         * sysdeps/x86_64/wordcopy.c: Likewise.
4385
4386 2016-06-09  Florian Weimer  <fweimer@redhat.com>
4387
4388         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
4389         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
4390         <cstdlib>.
4391         (optimization_barrier): New.
4392         (do_test): Use it.  Call quick_exit in the global namespace.
4393         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
4394         instead of <cstdlib>, <thread>.
4395         (optimization_barrier): New.
4396         (non_main_thread): Adjust declaration.  Call optimization_barrier.
4397         Call quick_exit in the global namespace.
4398         (do_test): Call optimization_barrier.  Use pthread_create,
4399         pthread_join instead of std::thread.
4400
4401 2016-06-09  Andreas Schwab  <schwab@suse.de>
4402
4403         [BZ #19755]
4404         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
4405         new entries in auto-propagate mode.
4406         * nscd/grpcache.c (cache_addgr): Likewise.
4407
4408 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
4409
4410         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
4411         New functions.
4412         (add_temp_file): Use them.
4413
4414 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
4415
4416         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
4417
4418 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
4419
4420         [BZ #20229]
4421         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
4422         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
4423         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
4424
4425         [BZ #20228]
4426         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
4427         itself.
4428         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
4429         * math/libm-test.inc (log10_test_data): Add sNaN tests.
4430
4431         [BZ #20227]
4432         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
4433         itself.
4434         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4435         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
4436         * math/libm-test.inc (log_test_data): Add sNaN tests.
4437
4438         [BZ #20226]
4439         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
4440         itself.
4441         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
4442         * math/libm-test.inc (exp_test_data): Add sNaN tests.
4443         (exp10_test_data): Likewise.
4444         (expm1_test_data): Likewise.
4445
4446         [BZ #20225]
4447         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
4448         itself.
4449         * math/s_ldexpf.c (__ldexpf): Likewise.
4450         * math/s_ldexpl.c (__ldexpl): Likewise.
4451         * math/w_scalbln.c (__w_scalbln): Likewise.
4452         * math/w_scalblnf.c (__w_scalblnf): Likewise.
4453         * math/w_scalblnl.c (__w_scalblnl): Likewise.
4454         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
4455         (scalbln_test_data): Likewise.
4456
4457         [BZ #20224]
4458         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
4459         argument to itself.
4460         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
4461
4462 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
4463
4464         [BZ #19776]
4465         * sysdeps/x86_64/memcpy.S: Make it dummy.
4466         * sysdeps/x86_64/mempcpy.S: Likewise.
4467         * sysdeps/x86_64/memmove.S: New file.
4468         * sysdeps/x86_64/memmove_chk.S: Likewise.
4469         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
4470         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
4471         * sysdeps/x86_64/memmove.c: Removed.
4472         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
4473         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4474         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
4475         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4476         Likewise.
4477         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
4478         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
4479         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4480         memcpy-sse2-unaligned, memmove-avx-unaligned,
4481         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
4482         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4483         (__libc_ifunc_impl_list): Replace
4484         __memmove_chk_avx512_unaligned_2 with
4485         __memmove_chk_avx512_unaligned.  Remove
4486         __memmove_chk_avx_unaligned_2.  Replace
4487         __memmove_chk_sse2_unaligned_2 with
4488         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
4489         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
4490         with __memmove_avx512_unaligned.  Replace
4491         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
4492         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
4493         with __memcpy_chk_avx512_unaligned.  Remove
4494         __memcpy_chk_avx_unaligned_2.  Replace
4495         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
4496         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
4497         Replace __memcpy_avx512_unaligned_2 with
4498         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
4499         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
4500         with __mempcpy_chk_avx512_unaligned.  Remove
4501         __mempcpy_chk_avx_unaligned_2.  Replace
4502         __mempcpy_chk_sse2_unaligned_2 with
4503         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
4504         Replace __mempcpy_avx512_unaligned_2 with
4505         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
4506         Replace __mempcpy_sse2_unaligned_2 with
4507         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
4508         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
4509         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
4510         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
4511         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
4512         (ENTRY): Removed.
4513         (END): Likewise.
4514         (ENTRY_CHK): Likewise.
4515         (libc_hidden_builtin_def): Likewise.
4516         Don't include ../memcpy.S.
4517         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
4518         __memcpy_chk_avx512_unaligned_erms and
4519         __memcpy_chk_avx512_unaligned.  Use
4520         __memcpy_chk_avx_unaligned_erms and
4521         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
4522         Default to __memcpy_chk_sse2_unaligned.
4523         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4524         Change function suffix from unaligned_2 to unaligned.
4525         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
4526         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
4527         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
4528         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
4529         (ENTRY): Removed.
4530         (END): Likewise.
4531         (ENTRY_CHK): Likewise.
4532         (libc_hidden_builtin_def): Likewise.
4533         Don't include ../mempcpy.S.
4534         (mempcpy): New.  Add a weak alias.
4535         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
4536         __mempcpy_chk_avx512_unaligned_erms and
4537         __mempcpy_chk_avx512_unaligned.  Use
4538         __mempcpy_chk_avx_unaligned_erms and
4539         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
4540         Default to __mempcpy_chk_sse2_unaligned.
4541
4542 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
4543
4544         [BZ #19881]
4545         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
4546         into ...
4547         * sysdeps/x86_64/memset.S: This.
4548         (__bzero): Removed.
4549         (__memset_tail): Likewise.
4550         (__memset_chk): Likewise.
4551         (memset): Likewise.
4552         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
4553         defined.
4554         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
4555         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
4556         (__memset_zero_constant_len_parameter): Check SHARED instead of
4557         PIC.
4558         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4559         memset-avx2 and memset-sse2-unaligned-erms.
4560         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4561         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
4562         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
4563         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4564         (__bzero): Enabled.
4565         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
4566         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
4567         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
4568         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
4569         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4570         (memset): Removed.
4571         (__memset_chk): Likewise.
4572         (MEMSET_SYMBOL): New.
4573         (libc_hidden_builtin_def): Replace __memset_sse2 with
4574         __memset_sse2_unaligned.
4575         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
4576         __memset_chk_sse2 and __memset_chk_avx2 with
4577         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
4578         Use __memset_chk_sse2_unaligned_erms or
4579         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
4580         __memset_chk_avx512_unaligned_erms and
4581         __memset_chk_avx512_unaligned.
4582
4583 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4584
4585         * math/gen-auto-libm-test.c (fp_format_desc): remove
4586         suffix member.
4587         (output_generic_value): Remove usage of suffix member,
4588         and the resulting unuse of the fp_format argument.
4589         (output_for_one_input_case): Remove unused fp_format
4590         parameter.
4591
4592         * math/auto-libm-test-out: Regenerate.
4593
4594         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
4595         usage with TEST_COND_ibm128.
4596         (TEST_COND_flt_32): Remove.
4597         (TEST_COND_dbl_64): Remove.
4598         (TEST_COND_ldbl_96_intel): Remove.
4599         (TEST_COND_ldbl_96_m68k): Remove.
4600         (TEST_COND_ldbl_128): Remove.
4601
4602 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4603
4604         * auto-libm-test-in:
4605         Replace flt-32 usage with binary32.
4606         Replace dbl-64 usage with binary64.
4607         Replace ldbl-intel-96 usage with intel96.
4608         Replace ldbl-m68k-96 usage with m68k96.
4609         Replace ldbl-128ibm usage with ibm128.
4610         Replace ldbl-128 usage with binary128.
4611
4612         * auto-libm-test-out: Regenerate.
4613
4614 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4615
4616         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
4617         (parse_ulps): Dynamically generate type name matching
4618         string from all_floats.
4619         (get_ulps): Generate the ulps as an array instead.
4620         (output_ulps): Dynamically compose the type based
4621         on the number of supported formats, and print
4622         the indices as type specific helper macros.
4623
4624         * math/libm-test.inc: Remove comment about CHOOSE.
4625         (ulp_data): Generate the type in libm-test-ulps.h.
4626         (ULP_IDX): New macro.
4627         (find_ulps): Update usage of max_ulp.
4628
4629         * math/test-double-vlen2.h (CHOOSE): Remove.
4630         * math/test-double-vlen4.h (CHOOSE): Likewise.
4631         * math/test-double-vlen8.h (CHOOSE): Likewise.
4632         * math/test-float.c (CHOOSE): Likewise.
4633         * math/test-float-finite.c (CHOOSE): Likewise.
4634         * math/test-double.c (CHOOSE): Likewise.
4635         * math/test-double-finite.c (CHOOSE): Likewise.
4636         * math/test-idouble.c (CHOOSE): Likewise.
4637         * math/test-ifloat.c (CHOOSE): Likewise.
4638         * math/test-ildoubl.c (CHOOSE): Likewise.
4639         * math/test-ldouble-finite.c (CHOOSE): Likewise.
4640         * math/test-ldouble.c (CHOOSE): Likewise.
4641
4642         * math/test-float.h (TEST_FLOAT): Remove.
4643         * math/test-double.h (TEST_DOUBLE): Likewise.
4644         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
4645
4646 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4647
4648         * math/gen-libm-test.pl: (apply_lit): New subroutine.
4649         (parse_args): Strip C suffix from floating point literals
4650         typed with 'f' and wrap them with LIT().
4651
4652         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
4653         (test_ff_f_data_nexttoward): Rename to
4654         (test_fj_f_data): New struct.
4655         (nexttoward_test_data): Relabel tests as
4656         TEST_fj_f instead of TEST_ff_f.
4657
4658 2016-06-08  Florian Weimer  <fweimer@redhat.com>
4659
4660         Emacs bug 23726.
4661         * malloc/malloc.c (dumped_main_arena_start): Update comment.
4662         (__libc_realloc): Correct size computation for dumped fake mmapped
4663         chunks.
4664
4665 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
4666
4667         [BZ #20219]
4668         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
4669         to itself.
4670         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
4671
4672         [BZ #20218]
4673         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
4674         to itself.
4675         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
4676
4677 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
4678
4679         [BZ #20195]
4680         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
4681         check to ...
4682         (init_cpu_features): Here.
4683
4684 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
4685
4686         [BZ #20214]
4687         * sysdeps/unix/sysv/linux/bits/in.h
4688         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
4689          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
4690         Define to 1.
4691         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
4692          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
4693         Define to 0.
4694         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
4695         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
4696
4697 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
4698
4699         [BZ #20198]
4700         * stdlib/Makefile (tests): Add tst-quick_exit, and
4701         tst-thread-quick_exit.
4702         [ifeq ($(have-cxx-thread_local),yes)]
4703         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
4704         (CFLAGS-tst-thread-quick_exit.o): Likewise.
4705         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
4706         (LDLIBS-tst-thread-quick_exit): Likewise.
4707         [ifneq ($(have-cxx-thread_local),yes)]
4708         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
4709         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
4710         If run_dtors is true call __call_tls_dtors.
4711         (exit): Call __run_exit_handlers with run_dtors set to true.
4712         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
4713         definition.
4714         * stdlib/quick_exit.c (quick_exit): Remove function.
4715         (__new_quick_exit): New function.
4716         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
4717         function.
4718         * stdlib/tst-quick_exit.cc: New file.
4719         * stdlib/tst-thread-quick_exit.cc: New file.
4720         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
4721         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
4722         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
4723         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
4724         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
4725         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
4726         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
4727         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
4728         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
4729         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
4730         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
4731         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
4732         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
4733         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
4734         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
4735         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
4736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
4737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
4738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
4739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
4740         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
4741         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
4742         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
4743         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
4744         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
4745         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
4746         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
4747         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
4748         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
4749         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
4750
4751 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4752
4753         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
4754         a typo in comments.
4755
4756 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
4757
4758         [BZ #20213]
4759         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
4760         argument to itself.
4761         * math/libm-test.inc (asin_test_data): Add sNaN tests.
4762
4763 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4764
4765         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
4766         required flags.
4767         (CFLAGS-pwritev64.c): Likewise.
4768         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
4769         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
4770         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
4771         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4772         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
4773         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
4774         syscall from auto-generation.
4775         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
4776         [WORDSIZE == 64] (pwritev64): Remove macro.
4777         [!PWRITEV] (PWRITEV): Likewise.
4778         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
4779         [!PWRITEV] (PWRITE): Likewise.
4780         [!PWRITEV] (OFF_T): Likewise.
4781         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
4782         (LO_HI_LONG): Remove macro.
4783         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
4784         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
4785         (PWRITEV): Remove macro.
4786         (PWRITEV_REPLACEMENTE): Likewise.
4787         (PWRITE): Likewise.
4788         (OFF_T): Likewise.
4789         (pwritev64): New function.
4790         * nptl/tst-cancel4.c (tf_writev): Add test.
4791
4792         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
4793         required flags.
4794         (CFLAGS-preadv64.c): Likewise.
4795         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
4796         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
4797         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
4798         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
4799         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
4800         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
4801         syscall from auto-generation.
4802         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
4803         [WORDSIZE == 64] (preadv64): Remove macro.
4804         [!PREADV] (PREADV): Likewise.
4805         [!PREADV] (PREADV_REPLACEMENT): Likewise.
4806         [!PREADV] (PREAD): Likewise.
4807         [!PREADV] (OFF_T): Likewise.
4808         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
4809         (LO_HI_LONG): Remove macro.
4810         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
4811         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
4812         (PREADV): Remove macro.
4813         (PREADV_REPLACEMENTE): Likewise.
4814         (PREAD): Likewise.
4815         (OFF_T): Likewise.
4816         (preadv64): New function.
4817         * nptl/tst-cancel4.c (tf_preadv): Add test.
4818
4819 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
4820
4821         [BZ #20212]
4822         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
4823         argument to itself.
4824         * math/libm-test.inc (acos_test_data): Add sNaN tests.
4825
4826 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4827
4828         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
4829         New symbol defined as libc_hidden_def.
4830         (strcasestr): Became a weak alias to __strcasestr.
4831         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
4832         according to multi-arch support.  Move __stpncpy hidden
4833         definition from here to...
4834         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
4835         symbol stpncpy.
4836         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
4837         libc_hidden_builtin_def.
4838         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
4839         memset symbol to use when multi-arch support is available.
4840
4841 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4842
4843         * dlfcn/tst-rec-dlopen.c: Include string.h.
4844
4845 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4846
4847         * manual/install.texi: Remove mention of --without-tls
4848         * INSTALL: Regenerate.
4849
4850 2016-06-05  Florian Weimer  <fweimer@redhat.com>
4851
4852         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
4853         Remove.
4854         (call_function, interposed_malloc_called): New variables.
4855         (malloc): New function.
4856         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
4857         and clear call_function as needed.
4858
4859 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
4860
4861         * include/wchar.h (__wmemset): Use __typeof.
4862
4863 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
4864
4865         * include/wchar.h (__wmemset): Declare function without typeof.
4866
4867 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
4868
4869         [BZ #20205]
4870         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
4871         exponent when incrementing negative subnormal with low mantissa
4872         word zero.
4873         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
4874         Add another test.
4875
4876 2016-06-03  Florian Weimer  <fweimer@redhat.com>
4877
4878         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
4879         __wmemset instead of wmemset.
4880
4881 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
4882
4883         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
4884         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
4885         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
4886         __USE_KERNEL_IPV6_DEFS to 0.
4887         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
4888         Update comment.
4889
4890 2016-06-01  Florian Weimer  <fweimer@redhat.com>
4891
4892         [BZ #19861]
4893         Do not use IFUNC resolver with potentially unrelocated symbol.
4894         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
4895         (DEFINE_FORK): Remove macro and inline definition.
4896         (fork_alias): Renamed from fork_ifunc.
4897         (__fork_alias): Renamed from __fork_ifunc.
4898
4899 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
4900
4901         [BZ 19653]
4902         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
4903         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
4904
4905 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4906
4907         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
4908         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
4909         i386-linux-gnu).
4910         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
4911         Set to no.
4912         * sysdeps/mach/hurd/configure: Refresh.
4913
4914 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4915
4916         [BZ #20178]
4917         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
4918         on failure instead of exit.
4919
4920 2016-05-30  Roland McGrath  <roland@hack.frob.com>
4921
4922         [BZ #3629]
4923         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
4924         of POSIX.1-2008.
4925
4926 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4927
4928         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
4929           Use PLT entry for calling _hurd_self_sigstate.
4930
4931 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4932
4933         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
4934         available logical processors with SMT level type sharing L2
4935         cache for Intel processors.
4936
4937 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
4938
4939         [BZ #20160]
4940         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
4941         argument to itself before returning the result.
4942         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
4943         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
4944         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
4945         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
4946         Likewise.
4947         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
4948         Likewise.
4949         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
4950         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
4951         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
4952         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
4953         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
4954         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
4955
4956         [BZ #20160]
4957         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
4958         argument to itself before returning the result.
4959         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
4960         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
4961         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
4962         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
4963         Likewise.
4964         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4965         Likewise.
4966         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
4967         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
4968         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
4969         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
4970         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
4971         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
4972
4973 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4974
4975         * libm-test.inc: Replace usage of M_El with
4976         (lit_e): New macro.
4977
4978 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4979
4980         * libm-test.inc: Replace usage of M_PI_4l with
4981         (lit_pi_4_d): New macro.
4982
4983 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4984
4985         * libm-test.inc: Replace usage of M_PIl with
4986         (lit_pi): New macro.
4987
4988 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4989
4990         * libm-test.inc: Replace usage of M_PI2l with
4991         (lit_pi_2_d): New macro.
4992
4993         * math/test-double.h (LITM): New macro.
4994         * math/test-float.h (LITM): Likewise.
4995         * math/test-ldouble.h (LITM): Likewise.
4996
4997 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4998
4999         * libm-test.inc (M_PI_34l): Rename to
5000         (lit_pi_3_m_4_d): New Macro.
5001         (M_PI_34_LOG10El): Rename to
5002         (lit_pi_3_m_4_ln10_m_d): New Macro.
5003         (M_PI2_LOG10El): Rename to
5004         (lit_pi_2_ln10_m_d):  New Macro.
5005         (M_PI4_LOG10El): Rename to
5006         (lit_pi_4_ln10_m_d):  New Macro.
5007         (M_PI_LOG10El): Rename to
5008         (lit_pi_ln10_d):  New Macro.
5009
5010 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
5011
5012         [BZ #20157]
5013         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
5014         determine whether to negate low half if [_ARCH_PPCGR], and integer
5015         comparison otherwise.
5016         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
5017         determine whether to negate low half.
5018
5019         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
5020         (NO_TEST_INLINE_DOUBLE): Likewise.
5021         (TEST_COND_x86_64): Likewise.
5022         (TEST_COND_x86): Likewise.
5023         (M_PI_6l): Likewise.
5024
5025 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5026
5027         * math/libm-test.inc:
5028         (TEST_FLOAT): Change usage to TEST_COND_binary32.
5029         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
5030         (TEST_LDOUBLE): Update usage to evaluate as true if
5031         the guarded tests match the property being tested.
5032         (LDBL_MAX_EXP): Change to MAX_EXP.
5033         (LDBL_MIN_EXP): Change to MIN_EXP.
5034         (LDBL_MANT_DIG): Change to MANT_DIG, except for
5035         nexttoward tests.
5036
5037 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5038
5039         * math/libm-test.inc:
5040         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
5041         (TYPE_MIN): Likewise.
5042         (TYPE_TRUE_MIN): Likewise.
5043         (TYPE_MAX): Likewise.
5044         (MIN_EXP): Likewise.
5045         (MAX_EXP): Likewise.
5046         (MANT_DIG): Likewise.
5047
5048         (FSTR_MAX): New macro.
5049         (__CONCATX): Likewise.
5050         (QTYPE_STR): Likewise.
5051         (TEST_COND_binary32): Likewise.
5052         (TEST_COND_binary64): Likewise.
5053         (TEST_COND_binary128): Likewise.
5054         (TEST_COND_ibm128): Likewise.
5055         (TEST_COND_intel96): Likewise.
5056         (TEST_COND_m68k96): Likewise.
5057
5058         (TEST_COND_flt_32): Redefine as equivalent format test macro.
5059         (TEST_COND_dbl_64): Likewise.
5060         (TEST_COND_ldbl_96_intel): Likewise.
5061         (TEST_COND_ldbl_96_m68k): Likewise.
5062         (TEST_COND_ldbl_128): Likewise.
5063         (TEST_COND_ldbl_128ibm): Likewise.
5064
5065         (plus_zero): Redefine using LIT macro.
5066         (minus_zero): Likewise.
5067         (plus_infty): Redefine as (INF).
5068         (minux_infty): Redefine as (-INF).
5069         (max_value): Redefine as TYPE_MAX.
5070         (min_value): Redefine as TYPE_MIN.
5071         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
5072
5073         (print_float): Refactor to use snprintf to convert FLOAT values
5074         to string. This brings it closer to dropin replacement of strtof
5075         for the TS 18661 defined types.
5076         (update_stats): Likewise.
5077         (print_complex_function_ulps): Likewise.
5078         (print_max_error): Likewise.
5079         (print_complex_max_error): Likewise.
5080         (check_float_internal): Likewise.
5081
5082         * math/test-float.h (PREFIX): New macro.
5083         (LIT): Likewise.
5084         (TYPE_STR): Likewise.
5085         (FTOSTR): Likewise.
5086
5087         * math/test-double.h (PREFIX): New macro.
5088         (LIT): Likewise.
5089         (TYPE_STR): Likewise.
5090         (FTOSTR): Likewise.
5091
5092         * math/test-ldouble.h (PREFIX): New macro.
5093         (LIT): Likewise.
5094         (TYPE_STR): Likewise.
5095         (FTOSTR): Likewise.
5096
5097 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
5098
5099         [BZ #20156]
5100         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
5101         to itself when zero or not finite.
5102         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
5103         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
5104         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
5105         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
5106
5107 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
5108
5109         [BZ #20153]
5110         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
5111         x * x + x for infinities and NaNs.
5112
5113         [BZ #20151]
5114         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
5115         argument to itself before returning result.
5116         (__ieee754_y0l): Likewise.
5117         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5118         (__ieee754_y1l).
5119
5120         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
5121         (atan_test_data): Likewise.
5122         (ceil_test_data): Likewise.
5123         (cos_test_data): Likewise.
5124         (cosh_test_data): Likewise.
5125         (erf_test_data): Likewise.
5126         (exp2_test_data): Likewise.
5127         (fabs_test_data): Likewise.
5128         (floor_test_data): Likewise.
5129         (ilogb_test_data): Likewise.
5130         (j0_test_data): Likewise.
5131         (j1_test_data): Likewise.
5132         (jn_test_data): Likewise.
5133         (lgamma_test_data): Likewise.
5134         (lrint_test_data): Likewise.
5135         (llrint_test_data): Likewise.
5136         (logb_test_data): Likewise.
5137         (lround_test_data): Likewise.
5138         (llround_test_data): Likewise.
5139         (nearbyint_test_data): Likewise.
5140         (rint_test_data): Likewise.
5141         (round_test_data): Likewise.
5142         (sin_test_data): Likewise.
5143         (sincos_test_data): Likewise.
5144         (sinh_test_data): Likewise.
5145         (sqrt_test_data): Likewise.
5146         (tan_test_data): Likewise.
5147         (tanh_test_data): Likewise.
5148         (tgamma_test_data): Likewise.
5149         (trunc_test_data): Likewise.
5150         (y0_test_data): Likewise.
5151         (y1_test_data): Likewise.
5152         (yn_test_data): Likewise.
5153
5154         * math/libm-test.inc: Update comment about NaN testing.
5155         (TEST_SNAN): New macro.
5156         (snan_value): Likewise.
5157         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
5158         (fpclassify_test_data): Add sNaN tests.
5159         (isfinite_test_data): Likewise.
5160         (isinf_test_data): Likewise.
5161         (isnan_test_data): Likewise.
5162         (isnormal_test_data): Likewise.
5163         (issignaling_test_data): Likewise.
5164         (signbit_test_data): Likewise.
5165         * math/gen-libm-test.pl (%beautify): Add snan_value.
5166         (show_exceptions): Add argument $test_snan.
5167         (parse_args): Handle snan_value as non-finite.  Update call to
5168         show_exceptions.
5169         * math/Makefile (libm-test-no-inline-cflags): Add
5170         -fsignaling-nans.
5171
5172 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5173
5174         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
5175         (CFLAGS-oldsendmsg.c): Add rule.
5176         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
5177         Correct recvmsg symbol name.
5178         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
5179         Likewise.
5180
5181 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5182
5183         * sysdeps/unix/sysv/linux/Makefile
5184         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
5185         oldsendmmsg.
5186         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
5187         sendmmsg.
5188         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5189         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5190         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5191         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
5192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5193         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5194         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5195         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
5196         Likewise.
5197         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5198         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
5199         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
5200         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
5201         iovlen and controllen fields to adjust to POSIX specification.
5202         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
5203
5204         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
5205         and change to correct expected type.
5206         (msghdr.msg_controllen): Likewise.
5207         (cmsghdr.cmsg_len): Likewise.
5208         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
5209         expected POSIX assumption about the size.
5210         (msghdr.msg_controllen): Likewise.
5211         (msghdr.__glibc_reserved1): Likewise.
5212         (msghdr.__glibc_reserved2): Likewise.
5213         (cmsghdr.cmsg_len): Likewise.
5214         (cmsghdr.__glibc_reserved1): Likewise.
5215         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
5216         Add ptw-oldrecvmsg and ptw-oldsendmsg.
5217         (CFLAGS-sendmsg.c): Remove rule.
5218         (CFLAGS-recvmsg.c): Likewise.
5219         (CFLAGS-oldsendmsg.c): Add rule.
5220         (CFLAGS-oldrecvmsg.c): Likewise.
5221         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
5222         recvmsg and sendmsg.
5223         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
5224         Likewise.
5225         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
5226         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
5227         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
5228         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
5229         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
5230         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
5231         Likewise.
5232         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
5233         Likewise.
5234         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
5235         Likewise.
5236         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
5237         Likewise.
5238         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
5239         Likewise.
5240         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
5241         Likewise.
5242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
5243         (GLIBC_2.24): Likewise.
5244         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
5245         Likewise.
5246         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
5247         Likewise.
5248         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
5249         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
5250         Likewise.
5251         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
5252         Likewise.
5253         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
5254         Likewise.
5255         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
5256         (GLIBC_2.24): Likewise.
5257         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
5258         Likewise.
5259         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
5260         Likewise.
5261         * sysdeps/unix/sysv/linux/Makefile
5262         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
5263         (CFLAGS-sendmsg.c): Add rule.
5264         (CFLAGS-recvmsg.c): Likewise.
5265         (CFLAGS-oldsendmsg.c): Likewise.
5266         (CFLAGS-oldrecvmsg.c): Likewise.
5267         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
5268         initialization.
5269         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
5270         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
5271         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
5272         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
5273         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
5274         iovlen and controllen fields to adjust to POSIX specification.
5275         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
5276         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
5277         added recvmsg and sendmsg.
5278         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5279         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5280         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5281         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5282         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5283         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5284         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5285         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5286         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5287         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5288         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5289         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
5290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5291         Likewise.
5292         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
5294         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5295         Likewise.
5296         Likewise.
5297         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5298         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5299         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5300         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5301         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5302         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5303         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5304         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5305         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5306         Likewise.
5307         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5308         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5309
5310         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
5311         from auto-generation.
5312         (sendmsg): Likewise.
5313         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
5314         (sendmsg): Likewise.
5315         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
5316         (sendmsg): Likewise.
5317         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
5318         (sendmsg): Likewise.
5319         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
5320         (sendmsg): Likewise.
5321         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
5322         (sendmsg): Likewise.
5323         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
5324         Likewise.
5325         (sendmsg): Likewise.
5326         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
5327         (sendmsg): Likewise.
5328         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5329         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5330         Remove.
5331         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5332         Likewise.
5333         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5334         Undefine.
5335         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5336         Likewise.
5337         * sysdeps/unix/sysv/linux/kernel-features.h
5338         (__ASSUME_SENDMSG_SYSCALL): Define.
5339         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5340         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5341         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5342         Remove.
5343         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5344         Likewise.
5345         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5346         Undefine.
5347         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5348         Likewise.
5349         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5350         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5351         Remove.
5352         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5353         Likewise.
5354         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5355         Undefine.
5356         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5357         Likewise.
5358         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5359         (__ASSUME_SENDMSG_SYSCALL): Undefine.
5360         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5361         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5362         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5363         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5364         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5365         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5366         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5367
5368 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5369
5370         * stdlib/gen-tst-strtod-round.c: Add backslash to
5371         compile command in comment.
5372         (printfp): Remove the literal suffix, and define an infinite
5373         value as INF to avoid expansion clash with INFINITY.
5374         (round_str): Remove the literal suffix.
5375         (round_for_all): Likewise, remove the now duplicate ldbl-64
5376         entry, and remove some magic constants.
5377
5378         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
5379         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
5380         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
5381         (_CONCAT): New macro.
5382         (CONCAT): Likewise.
5383         (CHOOSE_ld): Likewise.
5384         (CHOOSE_f): Likewise.
5385         (CHOOSE_d): Likewise.
5386         (FTYPE_MEMBER): Likewise.
5387         (BOOL_MEMBER): Likewise.
5388         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
5389         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
5390         (_XNTRY): Likewise.
5391         (XNTRY): Likewise.
5392         (_ENTRY): Likewise.
5393         (ENTRY): Likewise.
5394         (test_exactness): Generate members via macro.
5395         (test_results): Likewise.
5396         (test): Update members.
5397         (TEST): Redefine using new macros.
5398         (INF): New macro.
5399         (fetestmodes): New structure.
5400         (do_test): Refactor to be type generic.
5401         (test_in_one_mode): Refactor duplicate code into
5402         (GEN_ONE_TEST): New macro.
5403
5404         * stdlib/tst-strtod-round-data.h: Regenerate.
5405
5406         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
5407         Extend to pass additional arbitrary parameters to
5408         generators.
5409
5410 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
5411
5412         [BZ #15479]
5413         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
5414         floating-point state after first floating-point operation on
5415         input.  Restore full floating-point state instead of just rounding
5416         mode.
5417         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
5418         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
5419         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
5420         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
5421         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
5422
5423         [BZ #15479]
5424         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
5425         floating-point state after first floating-point operation on
5426         input.  Restore full floating-point state instead of just rounding
5427         mode.
5428         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
5429         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
5430         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
5431         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
5432         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
5433
5434 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5435
5436         [BZ #19727]
5437         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
5438         valid high surrogate.
5439         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
5440         of an utf16 surrogate.
5441         * iconv/gconv_simple.c (BODY): Likewise.
5442         * iconvdata/bug-iconv12.c: New file.
5443         * iconvdata/Makefile (tests): Add bug-iconv12.
5444
5445 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5446
5447         [BZ #19726]
5448         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
5449         outptrp in case of an illegal input.
5450         * iconv/tst-iconv6.c: New file.
5451         * iconv/Makefile (tests): Add tst-iconv6.
5452
5453 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5454
5455         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
5456         an error in case of a value in range of an utf16 low surrogate.
5457
5458 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5459
5460         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
5461         an error in case of a value in range of an utf16 low surrogate.
5462
5463 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5464
5465         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
5466         Move to ...
5467         * sysdeps/s390/Makefile: ... here.
5468         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
5469         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
5470         (BRANCH_ON_COUNT): New define.
5471         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
5472         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
5473         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
5474         run on s390-32, too.
5475         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
5476         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
5477         run on s390-32, too.
5478         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
5479         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
5480         run on s390-32, too.
5481
5482 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5483
5484         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
5485         etf3eh or new vector loop-variant.
5486
5487 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5488
5489         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
5490         etf3eh or new vector loop-variant.
5491
5492 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5493
5494         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
5495         or new vector loop-variant.
5496
5497 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5498
5499         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
5500         Rename to TR_LOOP and usage of tr instead of troo instruction.
5501
5502 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5503
5504         * sysdeps/s390/multiarch/gconv_simple.c: New File.
5505         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
5506
5507 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5508
5509         * sysdeps/s390/multiarch/8bit-generic.c: New File.
5510         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
5511         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
5512         New override define.
5513         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
5514
5515 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5516
5517         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
5518         * sysdeps/s390/configure.ac: Add test for S390 vector register
5519         support in gcc.
5520         * sysdeps/s390/configure: Regenerated.
5521
5522 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5523
5524         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
5525         Install file from $(objpfx)gconv-modules.
5526         ($(objpfx)gconv-modules): Concatenate architecture specific file
5527         in variable sysdeps-gconv-modules and gconv-modules in src dir.
5528         * sysdeps/s390/gconv-modules: New file.
5529         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
5530         Deleted.
5531         ($(objpfx)gconv-modules-s390): Deleted.
5532         (sysdeps-gconv-modules): New variable.
5533
5534 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
5535
5536         [BZ #15479]
5537         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
5538         of immediate operand to rounding instruction.
5539         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
5540         Likewise.
5541         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
5542         Likewise.
5543         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
5544         Likewise.
5545
5546 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5547
5548         * math/libm-test.inc (MIN_EXP): Directly define as
5549         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
5550
5551 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5552
5553         * math/libm-test.inc (MANT_DIG): Directly define as
5554         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
5555
5556 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5557
5558         * stdlib/gen-tst-strtod-round.c (main):
5559           Change usage to more closely match the generated
5560           output.  Add usage and compilation instructions.
5561           (string_to_fp): Add and use FILE* parameter as
5562           output target.
5563           (print_fp): Likewise.
5564           (round_str): Likewise.
5565           (round_for_all): Likewise.
5566         * stdlib/tst-strtod-round.c (tests): Move into
5567         * stdlib/tst-strtod-round-data.h: New file.
5568
5569 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
5570
5571         [BZ #15479]
5572         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
5573         (__round): Do not force "inexact" exception.
5574         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
5575         variable.
5576         (__round): Do not force "inexact" exception.
5577         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
5578         (__roundf): Do not force "inexact" exception.
5579         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
5580         (__roundl): Do not force "inexact" exception.
5581         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
5582         (__roundl): Do not force "inexact" exception.
5583         * math/libm-test.inc (round_test_data): Do not allow spurious
5584         "inexact" exceptions.
5585
5586         [BZ #15479]
5587         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
5588         exception in comment.
5589         (huge): Remove variable.
5590         (__floor): Do not force "inexact" exception.
5591         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
5592         "inexact" exception in comment.
5593         (huge): Remove variable.
5594         (__floor): Do not force "inexact" exception.
5595         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
5596         exception in comment.
5597         (huge): Remove variable.
5598         (__floorf): Do not force "inexact" exception.
5599         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
5600         exception in comment.
5601         (huge): Remove variable.
5602         (__floorl): Do not force "inexact" exception.
5603
5604         [BZ #15479]
5605         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
5606         exception in comment.
5607         (huge): Remove variable.
5608         (__ceil): Do not force "inexact" exception.
5609         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
5610         "inexact" exception in comment.
5611         (huge): Remove variable.
5612         (__ceil): Do not force "inexact" exception.
5613         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
5614         (__ceilf): Do not force "inexact" exception.
5615         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
5616         exception in comment.
5617         (huge): Remove variable.
5618         (__ceill): Do not force "inexact" exception.
5619
5620 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5621
5622         * config.h.in (BIND_NOW): New.
5623         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
5624         * configure: Regenerated.
5625         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
5626         indirect branch via the GOT slot.
5627
5628 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5629
5630         [BZ #19765]
5631         * sysdeps/s390/mempcpy.S: New File.
5632         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
5633         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
5634         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5635         Add mempcpy variants.
5636         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
5637         (memcpy): Adjust to be usable from mempcpy entry point.
5638         (__memcpy_mvcle): Likewise.
5639         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5640         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
5641         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
5642         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
5643         (__memcpy_z10): Likewise.
5644         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
5645
5646 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5647
5648         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
5649         Remove __GI_ symbol.
5650         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
5651         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
5652         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
5653         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
5654         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
5655         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
5656
5657 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5658
5659         * sysdeps/s390/s390-64/memcpy.S (memcpy):
5660         Use cghi instead of chi to compare 64bit value.
5661
5662 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5663
5664         * sysdeps/s390/s390-32/memcpy.S (memcpy):
5665         Jump to 1MB check before executing mvc-loop.
5666
5667 2016-05-24  Florian Weimer  <fweimer@redhat.com>
5668
5669         [BZ #6527]
5670         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
5671         unconditionally.
5672         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
5673
5674 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5675
5676         * stdlib/tst-strtod6.c (do_test): Use new type generic
5677         invocation of the test function.
5678         (test): Refactor into ...
5679         (TEST_STRTOD): New macro base function.
5680
5681 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5682
5683         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
5684         (TEST_STRTOD): New macro.
5685         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
5686
5687 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5688
5689         * stdlib/tst-strtod6.c (do_test): Use new type generic
5690         invocation of the test function.
5691         (test): Refactor into ...
5692         (TEST_STRTOD): New macro base function.
5693
5694 2016-05-23  Florian Weimer  <fweimer@redhat.com>
5695
5696         CVE-2016-4429
5697         [BZ #20112]
5698         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
5699         payload.
5700
5701 2016-05-23  Florian Weimer  <fweimer@redhat.com>
5702
5703         [BZ #20111]
5704         * bits/sockaddr.h (_SS_SIZE): Define.
5705         * bits/socket.h (_SS_SIZE): Remove.
5706         (_SS_PADSIZE): Adjust to account for all padding.
5707         (struct sockaddr_storage): Update comment.  Avoid implicit
5708         padding.
5709         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
5710         (_SS_PADSIZE): Adjust to account for all padding.
5711         (struct sockaddr_storage): Update comment.  Avoid implicit
5712         padding.
5713         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
5714         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
5715         (_SS_PADSIZE): Adjust to account for all padding.
5716         (struct sockaddr_storage): Update comment.  Avoid implicit
5717         padding.
5718         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
5719         __SS_SIZE is 126 in this version.
5720         * inet/tst-sockaddr.c: New file.
5721         * inet/Makefile (tests): Add tst-sockaddr.c
5722         (tst-sockaddr.c): Compile with non-strict aliasing.
5723
5724 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
5725
5726         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
5727         [XPG3 || XPG4].
5728         (NL_ARGMAX): Also expect for [XPG3].
5729         (NL_LANGMAX): Likewise.
5730         (NL_MSGMAX): Likewise.
5731         (NL_NMAX): Likewise.
5732         (NL_SETMAX): Likewise.
5733         (NL_TEXTMAX): Likewise.
5734         (NZERO): Likewise.
5735         (TMP_MAX): Likewise.
5736         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
5737         variable.
5738
5739         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
5740         (PF_MAX): Update value.
5741         (AF_KCM): New macro.
5742         (SOL_NETBEUI): Likewise.
5743         (SOL_LLC): Likewise.
5744         (SOL_DCCP): Likewise.
5745         (SOL_NETLINK): Likewise.
5746         (SOL_TIPC): Likewise.
5747         (SOL_RXRPC): Likewise.
5748         (SOL_PPPOL2TP): Likewise.
5749         (SOL_BLUETOOTH): Likewise.
5750         (SOL_PNPIPE): Likewise.
5751         (SOL_RDS): Likewise.
5752         (SOL_IUCV): Likewise.
5753         (SOL_CAIF): Likewise.
5754         (SOL_ALG): Likewise.
5755         (SOL_NFC): Likewise.
5756         (SOL_KCM): Likewise.
5757         (MSG_BATCH): New enum value and macro.
5758
5759 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5760
5761         [BZ #18185]
5762         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
5763         sharing L2 cache to 2 for Knights Landing.
5764
5765 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
5766
5767         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
5768         (FTW_DP): Do not expect for [XPG3 || XPG4].
5769         (FTW_SL): Do not expect for [XPG3].
5770         (FTW_SLN): Likewise.
5771         (FTW_PHYS): Likewise.
5772         (FTW_MOUNT): Likewise.
5773         (FTW_DEPTH): Likewise.
5774         (FTW_CHDIR): Likewise.
5775         (nftw): Likewise.
5776         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
5777         variable.
5778
5779 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
5780
5781         * manual/errno.texi: Fix various typos & grammar errors.
5782
5783 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
5784
5785         * manual/intro.texi: Fix duplicated typo.
5786
5787 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
5788
5789         [BZ #13304]
5790         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
5791         <float.h>, <math_private.h> and <stdlib.h>.
5792         (add_split): New function.
5793         (mul_split): Likewise.
5794         (ext_val): New typedef.
5795         (store_ext_val): New function.
5796         (mul_ext_val): New function.
5797         (compare): New function.
5798         (add_split_ext): New function.
5799         (__fmal): After checking for Inf, NaN and zero, compute result as
5800         an exact sum of scaled double values in round-to-nearest before
5801         adding those up and adjusting for other rounding modes.
5802         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
5803         tests of fma.
5804         * math/auto-libm-test-out: Regenerated.
5805
5806 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5807
5808         [BZ #20119]
5809         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
5810         processor level type mask for CPUID with EAX == 11.
5811
5812 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5813
5814         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
5815         logical threads if the HTT bit is 0.
5816         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
5817         (index_cpu_HTT): Likewise.
5818         (reg_HTT): Likewise.
5819
5820 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5821
5822         [BZ #20115]
5823         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
5824         Remove alignments on jump targets.
5825
5826 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
5827
5828         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
5829         (getpwent): Likewise.
5830         (setpwent): Likewise.
5831         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
5832         variable.
5833
5834         * conform/data/search.h-data (insque): Do not expect for [XPG3].
5835         (remque): Likewise.
5836         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
5837         variable.
5838
5839 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
5840
5841         * math/libm-test.inc: Update comment not to refer to signs of NaNs
5842         not being tested.
5843
5844 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5845
5846         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
5847         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
5848         call.
5849         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
5850         (__condvar_cleanup1): Likewise.
5851
5852 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5853
5854         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
5855         New
5856         (__pthread_unwind): Renamed to ...
5857         (PTHREAD_UNWIND): This.
5858         (__pthread_enable_asynccancel): Replace
5859         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
5860
5861 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
5862
5863         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
5864         (CLONE_NEWCGROUP): New macro.
5865
5866         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
5867         (Q_GETNEXTQUOTA): New macro.
5868
5869 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5870
5871         [BZ #19907]
5872         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
5873         buffer updated by the previous run.
5874         * string/test-memcpy.c (do_one_test): Likewise.
5875         * benchtests/bench-memmove.c (do_one_test): Add a comment.
5876         * string/test-memmove.c (do_one_test): Likewise.
5877
5878 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
5879
5880         [BZ #20094]
5881         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
5882         not [__USE_XOPEN].
5883         (unlockpt): Likewise.
5884         (ptsname): Likewise.
5885         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
5886         variable.
5887
5888         [BZ #20076]
5889         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
5890         instead of [__USE_UNIX98].
5891         (S_ISSOCK): Likewise.
5892         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
5893         variable.
5894
5895         [BZ #20074]
5896         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
5897         [__USE_POSIX].
5898         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
5899         variable.
5900
5901         [BZ #20051]
5902         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
5903         (ttyslot): Do not declare.
5904         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
5905         (ttyslot): New prototype.
5906         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
5907         variable.
5908         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
5909
5910 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
5911
5912         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
5913
5914 2016-05-13  Florian Weimer  <fweimer@redhat.com>
5915
5916         Fix race condition in tst-mallocfork2, use fewer resources.
5917         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
5918         to current process group.
5919         (signal_sender): Yield in the non-sleeping case.
5920
5921 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
5922
5923         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
5924         (ecvt): Likewise.
5925         (fcvt): Likewise.
5926         (gcvt): Likewise.
5927         (getsubopt): Likewise.
5928         (grantpt): Likewise.
5929         (initstate): Likewise.
5930         (l64a): Likewise.
5931         (mktemp): Likewise.
5932         (mkstemp): Likewise.
5933         (ptsname): Likewise.
5934         (random): Likewise.
5935         (realpath): Likewise.
5936         (setstate): Likewise.
5937         (srandom): Likewise.
5938         (ttyslot): Likewise.
5939         (unlockpt): Likewise.
5940         (valloc): Likewise.
5941
5942         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
5943         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
5944         variable.
5945
5946 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5947
5948         [BZ #20072]
5949         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
5950         init_cpu_features only if SHARED is defined.
5951         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
5952
5953 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5954
5955         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
5956         non-inclusive caches on Intel processors.
5957
5958 2016-05-13  Florian Weimer  <fweimer@redhat.com>
5959
5960         * malloc/malloc.c (dumped_main_arena_start)
5961         (dumped_main_arena_end): New variables.
5962         (DUMPED_MAIN_ARENA_CHUNK): New macro.
5963         (do_check_chunk): Skip dumped fake mmapped chunks.
5964         (munmap_chunk): Likewise.
5965         (__libc_free): Do not adjust statistics for fake mmapped chunks.
5966         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
5967         mmapped chunks.
5968         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
5969         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
5970         and dumped_main_arena_end to cover the dumped heap.
5971
5972 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
5973
5974         * conform/data/time.h-data (getdate_err): Do not expect for
5975         [XPG3].
5976         (getdate): Likewise.
5977         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
5978         variable.
5979
5980         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
5981         (F_ULOCK): Likewise.
5982         (F_TEST): Likewise.
5983         (F_TLOCK): Likewise.
5984         (useconds_t): Likewise.
5985         (intptr_t): Do not expect for [XPG3] or [XPG4].
5986         (brk): Do not expect for [XPG3]
5987         (fchown): Likewise.
5988         (fchdir): Likewise.
5989         (ftruncate): Likewise.
5990         (getdtablesize): Likewise.
5991         (gethostid): Likewise.
5992         (getpagesize): Likewise.
5993         (getpgid): Likewise.
5994         (getsid): Likewise.
5995         (getwd): Likewise.
5996         (lchown): Likewise.
5997         (lockf): Likewise.
5998         (readlink): Likewise.
5999         (sbrk): Likewise.
6000         (setpgrp): Likewise.
6001         (setregid): Likewise.
6002         (setreuid): Likewise.
6003         (symlink): Likewise.
6004         (sync): Likewise.
6005         (truncate): Likewise.
6006         (ualarm): Likewise.
6007         (usleep): Likewise.
6008         (vfork): Likewise.
6009         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
6010         variable.
6011
6012         [BZ #20054]
6013         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
6014         not [__USE_UNIX98].
6015         * conform/data/unistd.h-data (gethostname): Do not expect for
6016         [XPG3].
6017
6018         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
6019         [!POSIX] (S_IFBLK): Likewise.
6020         [!POSIX] (S_IFCHR): Likewise.
6021         [!POSIX] (S_IFIFO): Likewise.
6022         [!POSIX] (S_IFREG): Likewise.
6023         [!POSIX] (S_IFDIR): Likewise.
6024         [!POSIX] (S_IFLNK): Likewise.
6025         [!POSIX] (S_IFSOCK): Likewise.
6026         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
6027         variable.
6028         (test-xfail-XPG4/fcntl.h/conform): Likewise.
6029
6030 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
6031
6032         * sysdeps/aarch64/memset.S (__memset):
6033         Rewrite of optimized memset.
6034
6035 2016-05-12  Florian Weimer  <fweimer@redhat.com>
6036
6037         [BZ #19703]
6038         Partially async-signal-safe fork for single-threaded processes.
6039         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
6040         variable.  Do not acquire and reset/release malloc and libio locks
6041         in single-threaded processes.
6042         * malloc/tst-mallocfork2.c: New file.
6043         * malloc/Makefile (tests): Add it.
6044
6045 2016-05-12  Florian Weimer  <fweimer@redhat.com>
6046
6047         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
6048         argument.  Use scratch buffer instead of extend_alloca.
6049         (gethosts): Use scratch buffer instead of extend_alloca.
6050         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
6051         extend_alloca.
6052         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
6053
6054 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
6055
6056         [BZ #20055]
6057         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
6058         instead of [__USE_UNIX98].
6059         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
6060         [__USE_UNIX98].
6061         * conform/data/termios.h-data (tcgetsid): Do not expect for
6062         [XPG3].
6063         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
6064         variable.
6065         (test-xfail-XPG4/termios.h/conform): Likewise.
6066
6067 2016-05-11  Florian Weimer  <fweimer@redhat.com>
6068
6069         Do not use mcheck in localedef.
6070         * locale/programs/localedef.c (turn_on_mcheck)
6071         (__malloc_initialize_hook): Remove.
6072
6073 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
6074
6075         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
6076         * sysdeps/s390/s390-64/Makefile: Likewise.
6077
6078 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6079
6080         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
6081         Remove ifunc-defines.sym.
6082         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
6083         Likewise.
6084         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
6085         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
6086         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
6087         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
6088         rtld-global-offsets.sym.
6089         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
6090         * sysdeps/x86/cpu-features-offsets.sym: This.
6091         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
6092         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
6093
6094 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
6095
6096         [BZ #20073]
6097         * io/sys/stat.h (fchmod): Declare for
6098         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
6099         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
6100         variable.
6101
6102         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
6103         [XPG3] (S_IFSOCK): Likewise.
6104         [XPG3] (S_ISVTX): Likewise.
6105         [XPG3] (S_ISLNK): Likewise.
6106         [XPG3] (S_ISSOCK): Likewise.
6107         [XPG3] (fchmod): Likewise.
6108         [XPG3] (lstat): Likewise.
6109         [XPG3] (mknod): Likewise.
6110
6111         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
6112         [XPG3].  Expect type long and XFAIL for [XPG4].
6113         (st_blocks): Likewise.
6114
6115         [BZ #20044]
6116         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
6117         (pthread_atfork): New prototype.
6118         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
6119         variable.
6120
6121         [BZ #20043]
6122         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
6123         prototype.
6124
6125 2016-05-10  Florian Weimer  <fweimer@redhat.com>
6126
6127         [BZ #20017]
6128         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
6129         gmtime.
6130
6131 2016-05-10  Florian Weimer  <fweimer@redhat.com>
6132
6133         [BZ #19994]
6134         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
6135         flag in _res.options.
6136
6137 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
6138
6139         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
6140         [XPG3 || XPG4].
6141         (blksize_t): Likewise.
6142         (clockid_t): Likewise.
6143         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
6144         variable.
6145         (test-xfail-XPG4/sys/types.h/conform): Likewise.
6146
6147 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6148
6149         * sysdeps/unix/sysv/linux/s390/init-first.c:
6150         Add VDSO_SYMBOL(getcpu).
6151         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
6152         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
6153         Add VDSO_SYMBOL(getcpu).
6154         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6155         New define HAVE_GETCPU_VSYSCALL.
6156         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6157
6158 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6159
6160         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
6161         instead of <sysdeps/x86_64/cacheinfo.c>.
6162         * sysdeps/x86_64/cacheinfo.c: Moved to ...
6163         * sysdeps/x86/cacheinfo.c: Here.
6164
6165 2016-05-04  Florian Weimer  <fweimer@redhat.com>
6166
6167         * malloc/malloc-internal.h: Adjust header file guard.
6168
6169 2016-05-04  Florian Weimer  <fweimer@redhat.com>
6170
6171         [BZ #19787]
6172         * inet/getnameinfo.c (check_sprintf_result): New function.
6173         (CHECKED_SNPRINTF): New macro.
6174         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
6175         to the host buffer.
6176         (gni_host_local): Use checked_copy to copy the host name.
6177         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
6178         (gni_serv_local): Use checked_copy to copy the service name.
6179         (getnameinfo): Remove unnecessary truncation of result buffers.
6180
6181 2016-05-04  Florian Weimer  <fweimer@redhat.com>
6182
6183         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
6184         in case of inet_ntop failure.
6185
6186 2016-05-04  Florian Weimer  <fweimer@redhat.com>
6187
6188         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
6189         avoid long lines.
6190         (gni_host_inet_numeric): Likewise.  Reduce scope of local
6191         variables.
6192         (gni_host_inet, gni_host_local): Add comment.
6193         (gni_host): Add comment.  Use temporary to avoid long lines.
6194
6195 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6196
6197         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
6198         registers specifiers where general purpose registers specifiers should
6199         have been used.
6200
6201 2016-05-04  Florian Weimer  <fweimer@redhat.com>
6202
6203         [BZ #19779]
6204         CVE-2016-1234
6205         Avoid copying names of directory entries.
6206         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
6207         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
6208         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
6209         (struct readdir_result): New type.
6210         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
6211         (GL_READDIR): New macros.
6212         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
6213         (convert_dirent, convert_dirent64): New functions.
6214         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
6215         convert_dirent64.  Adjust references to the readdir result.
6216         * sysdeps/unix/sysv/linux/i386/glob64.c:
6217         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
6218         * posix/bug-glob2.c (LONG_NAME): Define.
6219         (filesystem): Add LONG_NAME.
6220         (my_DIR): Increase the size of room_for_dirent.
6221
6222 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
6223
6224         [BZ #20041]
6225         * misc/sys/select.h (__need_timespec): Only define if
6226         [__USE_XOPEN2K].
6227         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
6228         variable.
6229         (test-xfail-XPG4/utmpx.h/conform): Likewise.
6230         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
6231         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
6232
6233 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6234             Segher Boessenkool  <segher@gcc.gnu.org>
6235
6236         [BZ #20004]
6237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
6238         (__novec_swapcontext): Add missing load.
6239
6240 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
6241
6242         [BZ #20023]
6243         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
6244         <time.h>.
6245         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
6246         variable.
6247         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
6248
6249 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6250
6251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
6252         flags CLONE_VM compare.
6253
6254 2016-05-02  Florian Weimer  <fweimer@redhat.com>
6255
6256         [BZ #20031]
6257         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
6258         completely empty.
6259
6260 2016-05-02  Florian Weimer  <fweimer@redhat.com>
6261
6262         [BZ #19573]
6263         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
6264         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
6265         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
6266         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
6267         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
6268         (hesiod_free_list): Mark as hidden.
6269         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
6270         res_set, res_get.
6271         * hesiod/hesiod.c: Remove unnecessary forward declarations.
6272         (init, __hesiod_res_get, __hesiod_res_set): Remove.
6273         (hesiod_init): Remove obsolete res_ninit call.
6274         (hesiod_end): Do not free resolver state.  Do not invoke callback.
6275         (hesiod_bind): Do not call init.
6276         (get_txt_records): Use res_mkquery, res_send instead of
6277         res_nmkquery, res_nsend.
6278         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
6279         instead of _nss_hesiod_init.
6280         (_nss_hesiod_initgroups_dyn): Likewise.
6281         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
6282         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
6283         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
6284
6285 2016-05-02  Florian Weimer  <fweimer@redhat.com>
6286
6287         * hesiod/hesiod_p.h (DEF_RHS): Remove.
6288         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
6289
6290 2016-05-02  Florian Weimer  <fweimer@redhat.com>
6291
6292         * hesiod/hesiod.h: Remove RCS keyword.
6293         * hesiod/hesiod_p.h: Likewise.
6294
6295         * hesiod/hesiod.c: Likewise.
6296
6297 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
6298
6299         [BZ #12450]
6300         * locale/iso-639.def: Add Samogitian/sgs.
6301
6302 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
6303
6304         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
6305
6306         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
6307
6308 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
6309             Carlos O'Donell  <carlos@redhat.com>
6310
6311         [BZ #19072]
6312         * grp/Makefile (headers): Add grp-merge.h
6313         (routines): Add grp-merge.
6314         * grp/getgrgid_r.c: Include grp-merge.h.
6315         (DEEPCOPY_FN): Define.
6316         (MERGE_FN): Define.
6317         * grp/getgrname_r.c: Include grp-merge.h.
6318         (DEEPCOPY_FN): Define.
6319         (MERGE_FN): Define.
6320         * grp/grp-merge.c: New file.
6321         * grp/grp-merge.h: New file.
6322         * include/grp-merge.h: New file.
6323         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
6324         __copy_grp@GLIBC_PRIVATE.
6325         * manual/nss.texi (Actions in the NSS configuration): Describe
6326         return, continue, and merge.
6327         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
6328         (DEEPCOPY_FN): Define.
6329         (MERGE_FN): Define.
6330         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
6331         (DEEPCOPY_FN): Define.
6332         (MERGE_FN): Define.
6333         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
6334         [!MERGE_FN]: Define __merge_einval.
6335         (CHECK_MERGE): Define.
6336         (REENTRANT_NAME): Process merge if do_merge is true.
6337         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
6338         (__nss_getent_r): Likewise.
6339         * nss/nsswitch.c (nss_parse_service_list): Likewise.
6340         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
6341
6342 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6343
6344         [BZ #20012]
6345         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
6346         length to calculate the buffer to read.
6347         (fmemopen_write): Set the buffer position based on bytes written.
6348         (fmemopen_seek): Return EINVAL for invalid whence modes.
6349
6350         [BZ #19957]
6351         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
6352         tst-getpid2.
6353         (test): Add tst-clone2.
6354         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
6355         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
6356         pid/tid fields for CLONE_VM.
6357         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
6358         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
6359         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
6360         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
6361         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
6362         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
6363         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
6364         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
6365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
6366         Likewise.
6367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
6368         Likewise.
6369         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
6370         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
6371         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
6372         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
6373         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
6374         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
6375         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
6376         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
6377
6378 2016-04-29  Florian Weimer  <fweimer@redhat.com>
6379
6380         [BZ #19642]
6381         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
6382         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
6383         (gni_serv_local, gni_serv): New functions extracted from
6384         getnameinfo.
6385         (getnameinfo): Call gni_host and gni_serv to perform the
6386         processing.  Always free scratch buffer.
6387
6388 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6389
6390         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
6391         remaining bytes in the dest string, with zeros.
6392
6393 2016-04-29  Florian Weimer  <fweimer@redhat.com>
6394
6395         [BZ #20010]
6396         CVE-2016-3706
6397         * sysdeps/posix/getaddrinfo.c
6398         (convert_hostent_to_gaih_addrtuple): New function.
6399         (gethosts): Call convert_hostent_to_gaih_addrtuple.
6400         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
6401         AF_INET data.
6402
6403 2016-04-29  Florian Weimer  <fweimer@redhat.com>
6404
6405         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
6406         callback function gl_readdir.
6407         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
6408         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
6409         (glob_in_dir): Remove len.  Use strdup instead of malloc and
6410         memcpy to copy the name.
6411         * manual/pattern.texi (Calling Glob): Document requirements for
6412         implementations of the gl_readdir callback function.
6413         * manual/examples/mkdirent.c: New example.
6414         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
6415         per the manual guidance.
6416         * posix/tst-gnuglob.c (my_readdir): Likewise.
6417
6418 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
6419
6420         [BZ #20014]
6421         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
6422         not [__USE_POSIX].
6423         (getchar_unlocked): Likewise.
6424         (putc_unlocked): Likewise.
6425         (putchar_unlocked): Likewise.
6426         (flockfile): Likewise.
6427         (ftrylockfile): Likewise.
6428         (funlockfile): Likewise.
6429         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
6430         variable.
6431         (test-xfail-XPG4/stdio.h/conform): Likewise.
6432
6433         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
6434         Expect constant.
6435         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
6436         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
6437         variable.
6438         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6439         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6440
6441         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
6442         [__USE_LARGEFILE64] (off64_t): Likewise.
6443         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
6444         variable.
6445
6446 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6447
6448         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
6449
6450 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6451
6452         * resolv/inet_addr.c: Reindent preprocessor conditionals.
6453         * resolv/res_init.c: Likewise.
6454         * resolv/res_mkquery.c: Likewise.
6455
6456 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6457
6458         * resolv/res_init.c (isascii): Do not define.  Use definition in
6459         <ctype.h>.
6460         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
6461         (LOG_AUTH): Remove.
6462         (SPRINTF): Remove, adjust caller.
6463         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
6464
6465 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6466
6467         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
6468         SUNSECURITY conditional.
6469         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
6470
6471 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6472
6473         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
6474         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
6475         Remove BSD-related preprocessor conditionals.
6476         * conf/portability.h: Remove.
6477
6478 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6479
6480         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
6481         * resolv/res_data.c: Likewise.
6482
6483 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6484
6485         * resolv/res_comp.c: Remove code conditional on __ultrix__.
6486         * resolv/res_data.c: Remove code conditional on ultrix.
6487
6488 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6489
6490         * resolv/res_init.c (RFC1535): Do not define.  Remove
6491         RFC1535 preprocessor conditionals.
6492         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
6493         because there configuration options which make the resolver
6494         behavior different.
6495
6496 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6497
6498         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
6499         RESOLVSORT preprocessor conditionals.
6500         * resolv/nss_dns/dns-host.c: Likewise.
6501         * resolv/res_init.c: Likewise.
6502
6503 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6504
6505         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
6506         is never defined.
6507
6508 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6509
6510         * inet/inet_lnaof.c: Remove SCSS keyword.
6511         * inet/inet_mkadr.c: Likewise.
6512         * inet/inet_net.c: Likewise.
6513         * inet/inet_netof.c: Likewise.
6514         * inet/rcmd.c: Likewise.
6515         * inet/rexec.c: Likewise.
6516         * inet/ruserpass.c: Likewise.
6517
6518 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6519
6520         * resolv/inet_addr.c: Remove _LIBC conditionals.
6521         * resolv/res_data.c: Likewise.
6522         * resolv/res_init.c: Likewise.
6523         * resolv/res_mkquery.c: Likewise.
6524         * resolv/res_libc.c: Update comment.
6525         * resolv/README: Update.
6526
6527 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6528
6529         * resolv/gethnamaddr.c: Remove SCSS keyword.
6530         * resolv/herror.c: Likewise.
6531         * resolv/inet_addr.c: Likewise.
6532         * resolv/inet_net_ntop.c: Likewise.
6533         * resolv/inet_net_pton.c: Likewise.
6534         * resolv/inet_neta.c: Likewise.
6535         * resolv/inet_ntop.c: Likewise.
6536         * resolv/inet_pton.c: Likewise.
6537         * resolv/ns_date.c: Remove RCS keyword.
6538         * resolv/ns_name.c: Likewise.
6539         * resolv/ns_netint.c: Likewise.
6540         * resolv/ns_parse.c: Likewise.
6541         * resolv/ns_print.c: Likewise.
6542         * resolv/ns_samedomain.c: Likewise.
6543         * resolv/ns_ttl.c: Likewise.
6544         * resolv/nsap_addr.c: Likewise.
6545         * resolv/res_comp.c: Remove SCSS and RCS keyword.
6546         * resolv/res_data.c: Remove RCS keyword.
6547         * resolv/res_debug.c: Remove SCSS and RCS keyword.
6548         * resolv/res_init.c: Likewise.
6549         * resolv/res_mkquery.c: Likewise.
6550         * resolv/res_query.c: Likewise.
6551         * resolv/res_send.c: Likewise.
6552
6553 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
6554
6555         * conform/data/stdio.h-data (fdopen): Expect also for
6556         [XPG3 || XPG4].
6557
6558         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
6559         (fseeko): Likewise.
6560         (ftello): Likewise.
6561         (ftrylockfile): Likewise.
6562         (funlockfile): Likewise.
6563         (getc_unlocked): Likewise.
6564         (getchar_unlocked): Likewise.
6565         (putc_unlocked): Likewise.
6566         (putchar_unlocked): Likewise.
6567
6568 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6569
6570         [BZ #19868]
6571         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
6572         DNS packet syntax checks (which were not needed before).  Skip
6573         over non-PTR records.
6574
6575 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6576
6577         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
6578         definition.  Include <stddef.h> instead.
6579
6580 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6581
6582         [BZ #19831]
6583         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
6584         function.
6585         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
6586         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
6587
6588 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6589
6590         [BZ #19862]
6591         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
6592         (getanswer_r): Do not call syslog.
6593         (gaih_getanswer_slice): Likewise.
6594         * resolv/gethnamaddr.c (AskedForGot): Remove.
6595         (getanswer): Do not call syslog.
6596         (gethostbyaddr): Likewise.
6597
6598 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
6599
6600         * conform/data/signal.h-data (union sigval): Expect also if
6601         [XOPEN2K].
6602         (struct sigevent): Likewise.
6603         (SIGEV_NONE): Likewise.
6604         (SIGEV_SIGNAL): Likewise.
6605         (SIGEV_THREAD): Likewise.
6606         (SIGRTMIN): Likewise.
6607         (SIGRTMAX): Likewise.
6608         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
6609         variable.
6610         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6611
6612 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6613
6614         [BZ #19830]
6615         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
6616         (gaih_getanswer_slice): Likewise.
6617         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
6618         Also check for availability of RR metadata.
6619
6620 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6621
6622         [BZ #19825]
6623         * resolv/res_send.c (send_vc): Remove early *resplen2
6624         initialization.  Set *resplen2 on socket error.  Call
6625         close_and_return_error for other errors.
6626
6627 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
6628
6629         * sysdeps/unix/sysv/linux/netiucv/iucv.h
6630         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
6631         (SCM_IUCV_TRGCLS): New define.
6632
6633 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6634
6635         [BZ #20005]
6636         * libio/fmemopen.c (fmemopen_write): Update internal position after
6637         write.
6638         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
6639         * stdio-common/tst-fmemopen4.c: New file..
6640
6641 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
6642
6643         [BZ #19996]
6644         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
6645         not [__USE_XOPEN2K].
6646         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
6647         variable.
6648
6649         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
6650         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
6651         variable.
6652
6653         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
6654         [__USE_XOPEN2K8].
6655         [__USE_LARGEFILE64] (off64_t): Likewise.
6656         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
6657         variable.
6658
6659 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
6660
6661         [BZ #19989]
6662         * libio/stdio.h (cuserid): Do not declare if
6663         [__USE_XOPEN2K && !__USE_GNU].
6664         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
6665         variable.
6666
6667 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6668
6669         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6670         (sysdep_routines): Add P8 and PPC64 strcspn targets.
6671         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6672         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
6673         ifunc'ed strcspn.
6674         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
6675         [EALIGN]: Removed.
6676         [END]: Likewise
6677         [STRSPN]: Define instead of the above to control symbol name.
6678         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
6679         New file.
6680         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
6681         Likewise.
6682         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
6683         Likewise.
6684         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
6685         Likewise.
6686         * sysdeps/powerpc/powerpc64/power8/strspn.S:
6687         [INITIAL_MASK]: New macro.
6688         [STRCSPN]: Likewise.
6689         [UPDATE_MASK]: Likewise.
6690         [USE_AS_STRCSPN]: Lisewise.
6691
6692 2016-04-25  Florian Weimer  <fweimer@redhat.com>
6693
6694         [BZ #19931]
6695         * stdio-common/tst-vfprintf-width-prec.c: New file.
6696         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
6697         (tests-special): Add tst-vfprintf-width-prec-mem.out.
6698         (generated): Add mtrace-related files.
6699         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
6700         (tst-%-mem.out): New pattern rule, replaces
6701         tst-printf-bz18872-mem.out.
6702         * stdio-common/vfprintf.c (vfprintf): When handling a precision
6703         specifier, deallocate any previously allocated work buffer.
6704
6705 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
6706
6707         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
6708         Add nop before __startcontext, add explaining comments.
6709
6710 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
6711
6712         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
6713         any more. Notably since IPV6_PKTINFO has been reintroduced with a
6714         completely different API.
6715
6716         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
6717         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
6718         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
6719         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
6720         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
6721         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
6722         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
6723         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
6724         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
6725         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
6726
6727 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
6728
6729         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
6730
6731 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
6732
6733         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
6734         when it is the default of 0.
6735
6736 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6737
6738         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
6739         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6740         (sysdep_routines): Add new strcasestr targets.
6741         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6742         (__libc_ifunc_impl_list): Likewise.
6743         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
6744         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
6745         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
6746         * sysdeps/powerpc/powerpc64/power8/Makefile:
6747         New file to add strcasestr-ppc64 to sysdep_routines.
6748         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
6749         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
6750
6751 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
6752
6753         * benchtests/Makefile (wcsmbs-benchset): Include only for
6754         native builds and runs.
6755         (LOCALES): Likewise.
6756         (bench-build): Build timing-type here instead of the bench
6757         target.  Generate locale only for native builds.
6758         * benchtests/README: Add note for cross-building.
6759
6760         * benchtests/Makefile (bench-clean): Clean up extra-objs.
6761
6762         * benchtests/README: Update README to include instructions on
6763         using bench-build.
6764
6765         * Makefile.in (bench-build): New target.
6766         * Rules (PHONY): Add bench-build target.
6767         * benchtests/Makefile (bench): Depend on bench-build.
6768         (bench-build): New target.
6769
6770 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6771
6772         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
6773         profil_reply_port.
6774         (profile_waiter): Do not initialize profil_reply_port.
6775         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
6776         frequency instead of tick length in us.
6777
6778 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
6779
6780         [BZ #18712]
6781         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
6782         (__old_mempcpy_small): Likewise.
6783         (__old_strcpy_small): Likewise.
6784         (__old_stpcpy_small): Likewise.
6785         (__old_strpbrk_c2): Fix compat symbol name.
6786         (__old_strpbrk_c3): Likewise.
6787         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
6788         (__mempcpy_small): Remove.
6789         (__strcpy_small): Remove.
6790         (__stpcpy_small): Remove.
6791
6792 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
6793
6794         [BZ #19400]
6795         * locale/iso-639.def: Add the Talossan/tzl language.
6796
6797 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
6798
6799         [BZ #16983]
6800         * locale/programs/ld-address.c (address_finish): Update postal_fmt
6801         comment.  Add "ln" to strchr check on postal_fmt.
6802
6803 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
6804
6805         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
6806         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
6807         tel_dom_fmt.
6808
6809 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6810
6811         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6812         (sysdep_routines): Added __strlen_power8.
6813         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
6814         __strlen_power8 entry.
6815         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
6816         Implementation for POWER8.
6817         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
6818         for __strlen_power8.
6819         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
6820         Implementation for POWER8.
6821
6822 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
6823
6824         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
6825
6826 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
6827
6828         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
6829         Goldmont and Airmont processors.
6830
6831 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
6832
6833         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
6834         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
6835         (__STRING2_SMALL_GET32): Remove.
6836         (memset): Remove.
6837         (__memset_1): Remove.
6838         (__memset_gc): Remove.
6839         (__mempcpy): Remove.
6840         (mempcpy): Remove.
6841         (__mempcpy_args): Remove.
6842         (strchr): Remove.
6843         (strcpy): Remove.
6844         (strcpy_args): Remove.
6845         (__stpcpy_args): Remove.
6846         (__strcmp_cc): Remove.
6847         (__strcmp_gc): Remove.
6848         (strstr): Remove.
6849
6850 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
6851
6852         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
6853         * nis/nis_call.c (nis_server_cache_add): Likewise.
6854
6855 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6856
6857         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
6858
6859 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6860
6861         * malloc/arena.c (__malloc_fork_lock_parent)
6862         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
6863         internal_function attribute.
6864
6865 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
6866
6867         * stdio-common/printf_fp.c (__printf_fp_l):
6868         Rename ___printf_fp_l to __printf_fp_l and
6869         remove strong alias. Use libc_hidden_def instead
6870         of ldbl_hidden_def macro.
6871
6872 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6873
6874         Remove malloc hooks from fork handler.  They are no longer needed
6875         because malloc runs right before fork, and no malloc calls from
6876         other fork handlers are not possible anymore.
6877         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
6878         declarations.
6879         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
6880         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
6881         (atfork_recursive_cntr): Remove.
6882         (__malloc_fork_lock_parent): Do not override malloc hooks and
6883         thread_arena.
6884         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
6885         thread_arena.
6886         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
6887         thread_arena instead of save_arena.
6888
6889 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6890
6891         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
6892         (thread_atfork, thread_atfork_static): Remove.
6893         * sysdeps/mach/hurd/malloc-machine.h:
6894         (thread_atfork, thread_atfork_static): Remove.
6895
6896 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6897
6898         [BZ #19431]
6899         Run the malloc fork handler as late as possible to avoid deadlocks.
6900         * malloc/malloc-internal.h: New file.
6901         * malloc/malloc.c: Include it.
6902         * malloc/arena.c (ATFORK_MEM): Remove.
6903         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
6904         Update comment.
6905         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
6906         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
6907         Remove outdated comment.
6908         (ptmalloc_init): Do not call thread_atfork.  Remove
6909         thread_atfork_static.
6910         * malloc/tst-malloc-fork-deadlock.c: New file.
6911         * Makefile (tests): Add tst-malloc-fork-deadlock.
6912         (tst-malloc-fork-deadlock): Link against libpthread.
6913         * manual/memory.texi (Aligned Memory Blocks): Update safety
6914         annotation comments.
6915         * sysdeps/nptl/fork.c (__libc_fork): Call
6916         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
6917         __malloc_fork_unlock_child.
6918         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6919
6920 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6921
6922         [BZ #19613]
6923         Remove union wait.
6924         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
6925         (w_stopsig, w_stopval): Remove.
6926         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
6927         stat_loc argument.
6928         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
6929         (__WAIT_STATUS_DEFN): Remove.
6930         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
6931         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
6932         (wait, wait3, wait4): Use int * for the stat_loc argument.
6933         * posix/wait.c (__wait): Likewise.
6934         * posix/wait3.c (__wait3): Likewise.
6935         * posix/wait4.c (__wait4): Likewise.
6936         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
6937         (__WAIT_STATUS_DEFN): Remove.
6938         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
6939         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
6940         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
6941         argument.
6942         * sysdeps/posix/wait.c (__libc_wait): Likewise.
6943         * sysdeps/posix/wait3.c (__wait3): Likewise.
6944         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
6945         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
6946         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
6947         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
6948         stat_loc argument.
6949         * manual/process.texi (BSD Wait Functions): Remove union wait.
6950
6951 2016-04-13  Andreas Schwab  <schwab@suse.de>
6952
6953         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
6954         (test-extras): Add tst-tlsalign-vars.
6955         * math/Makefile: Wrap long lines.
6956         (libm-vec-test-wrappers): Define.
6957         (test-extras): Add $(libm-vec-test-wrappers).
6958         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
6959         * nss/Makefile (extra-test-objs): Add nss_test1.os.
6960         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
6961         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
6962         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
6963         (extra-test-objs): Add corresponding objects.
6964
6965 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
6966
6967         [BZ #19928]
6968         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
6969         New.
6970         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
6971         times of shared cache size.
6972         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
6973         (VMOVNT): New.
6974         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
6975         (VMOVNT): Likewise.
6976         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
6977         (VMOVNT): Likewise.
6978         (VMOVU): Changed to movups for smaller code sizes.
6979         (VMOVA): Changed to movaps for smaller code sizes.
6980         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
6981         comments.
6982         (PREFETCH): New.
6983         (PREFETCH_SIZE): Likewise.
6984         (PREFETCHED_LOAD_SIZE): Likewise.
6985         (PREFETCH_ONE_SET): Likewise.
6986         Rewrite to use forward and backward loops, which move 4 vector
6987         registers at a time, to support overlapping addresses and use
6988         non temporal store if size is above the threshold and there is
6989         no overlap between destination and source.
6990
6991 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
6992
6993         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
6994         Include dl-vdso.
6995         * sysdeps/unix/sysv/linux/mips/Versions: Add
6996         __vdso_clock_gettime.
6997         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
6998         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
6999         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
7000         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
7001         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
7002         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7003         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7004         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
7005         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
7006
7007 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7008
7009         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
7010         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7011         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
7012         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
7013         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7014         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
7016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
7017         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
7018         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
7019         syscalls generation.
7020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7021         [__NR_pwrite64] (__NR_write): Remove define.
7022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7023         [__NR_pwrite64] (__NR_write): Remove define.
7024         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
7025         Remove define.
7026         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
7027         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
7028         Remove define.
7029         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
7030         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
7031         Linux implementation as base.
7032         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
7033
7034         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
7035         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7036         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
7037         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
7038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
7039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
7040         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
7041         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
7042         syscall generation.
7043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7044         [__NR_pread64] (__NR_pread): Remove define.
7045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
7046         [__NR_pread64] (__NR_pread): Likewise.
7047         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
7048         define.
7049         (__libc_pread): Use SYSCALL_LL macro on offset argument.
7050         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
7051         Remove define.
7052         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
7053         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
7054         Linux implementation as base.
7055         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
7056         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7057         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7058
7059         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
7060         definition.
7061         (__ALIGNMENT_COUNT): Likewise.
7062         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
7063         (__ALIGNMENT_COUNT): Likewise.
7064         (SYSCALL_LL): New define.
7065         (SYSCALL_LL64): Likewise.
7066         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
7067         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
7068         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
7069         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
7070
7071         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7072         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
7073         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7074         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
7075         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7076         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
7077
7078 2016-04-11  Florian Weimer  <fweimer@redhat.com>
7079
7080         [BZ #19865]
7081         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
7082         original buffer before retry.
7083
7084 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7085
7086         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
7087         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
7088         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
7089         GLRO(dl_auxv) list.
7090         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
7091         including <ldsodefs.h>.
7092         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
7093
7094 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
7095
7096         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
7097         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
7098         $(CPPFLAGS).
7099
7100 2016-04-09  Khem Raj  <raj.khem@gmail.com>
7101
7102         [BZ #17950]
7103         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
7104         Add -mfpmath=387.
7105
7106 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
7107
7108         * sysdeps/i386/configure.ac: Change == to = when calling test.
7109         * sysdeps/x86_64/configure.ac: Likewise.
7110         * sysdeps/i386/configure: Regenerated.
7111         * sysdeps/x86_64/configure: Likewise.
7112
7113 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
7114
7115         [BZ #16137]
7116         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
7117         * benchtests/bench-strcoll.c (input_files): Likewise.
7118         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
7119         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
7120         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
7121
7122 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
7123
7124         [BZ #19929]
7125         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
7126         [__USE_XOPEN2K8 && !__USE_GNU].
7127         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
7128         variable.
7129
7130         [BZ #19925]
7131         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
7132         define if [!__USE_MISC && __USE_XOPEN2K].
7133         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
7134         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
7135         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
7136         Likewise.
7137         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
7138         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
7139         variable.
7140         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
7141
7142 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7143
7144         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
7145         (sysdep_routines): Add new strspn targets.
7146         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7147         (__libc_ifunc_impl_list): Add strspn.
7148         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
7149         New file.
7150         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
7151         Likewise.
7152         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
7153         Likewise.
7154         * sysdeps/powerpc/powerpc64/power8/strspn.S:
7155         Likewise.
7156
7157 2016-04-07  Florian Weimer  <fweimer@redhat.com>
7158
7159         * misc/hsearch_r.c: Include <limits.h>.
7160
7161 2016-04-07  Florian Weimer  <fweimer@redhat.com>
7162
7163         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
7164
7165 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
7166
7167         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7168         (MEMCPY_SYMBOL): New.
7169         (MEMPCPY_SYMBOL): Likewise.
7170         (MEMMOVE_CHK_SYMBOL): Likewise.
7171         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
7172         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
7173         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
7174         Provide alias for memcpy in libc.a and ld.so.
7175
7176 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
7177
7178         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7179         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
7180         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
7181         Disabled fro now.
7182         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
7183         symbols.  Properly check USE_MULTIARCH on __memset symbols.
7184
7185 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
7186
7187         * benchtests/Makefile (string-benchset): Add memcpy-large,
7188         memmove-large and memset-large.
7189         * benchtests/bench-memcpy-large.c: New file.
7190         * benchtests/bench-memmove-large.c: Likewise.
7191         * benchtests/bench-memmove-large.c: Likewise.
7192         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
7193
7194 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
7195
7196         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
7197         32-bit displacement to avoid long nop between instructions.
7198
7199 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
7200
7201         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
7202         a comment on VMOVU and VMOVA.
7203
7204 2016-04-04  Florian Weimer  <fweimer@redhat.com>
7205
7206         [BZ #19633]
7207         Use specified locale for number formatting in strfmon_l.
7208         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
7209         (__nl_lookup_word): New inline functions.
7210         * include/printf.h (__print_fp_l): Declare.
7211         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
7212         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
7213         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
7214         (___printf_fp): New function.
7215         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
7216         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
7217         * stdlib/tst-strfmon_l.c (do_test): New test.
7218         * stdlib/Makefile (tests): Add kt.
7219         (LOCALES): Build additional locales.
7220         (tst-strfmon_l.out): Require locales.
7221
7222 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
7223
7224         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
7225         if not in libc.
7226         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
7227         Likewise.
7228         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
7229         Likewise.
7230         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
7231         Likewise.
7232
7233 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
7234
7235         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7236         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
7237         with unaligned_erms.
7238         (__memmove_erms): Skip if source == destination.
7239         (__memmove_unaligned_erms): Don't check source == destination
7240         first.
7241
7242 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
7243
7244         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
7245         bit_arch_Fast_Copy_Backward for Intel Core proessors.
7246
7247 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7248
7249         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
7250         * string/strspn.c (strspn): Likewise.
7251
7252 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
7253
7254         * benchtests/bench-memset.c (do_test): Support 64-byte
7255         alignment.
7256         (test_main): Test 64-byte alignment.
7257
7258 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
7259
7260         * benchtests/bench-memmove.c (test_main): Test 64-byte
7261         alignment.
7262
7263 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
7264
7265         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
7266
7267 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7268
7269         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
7270         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
7271         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
7272
7273         * string/strpbrk.c (strpbrk): Rewrite function.
7274         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
7275         (__strpbrk_c2): Likewise.
7276         (__strpbrk_c3): Likewise.
7277         * string/string-inlines.c
7278         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
7279         Likewise.
7280         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
7281         Likewise.
7282
7283         * string/strspn.c (strcspn): Rewrite function.
7284         * string/bits/string2.h (strspn): Use __builtin_strcspn.
7285         (__strspn_c1): Remove inline function.
7286         (__strspn_c2): Likewise.
7287         (__strspn_c3): Likewise.
7288         * string/string-inlines.c
7289         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
7290         compatibility symbol.
7291         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
7292         Likewise.
7293         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
7294         Likewise.
7295         * string/string-inlines.c: Include generic version.
7296
7297 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
7298             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7299
7300         * string/Version (libc): Add GLIBC_2.24.
7301         * string/strcspn.c (strcspn): Rewrite function.
7302         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
7303         (__strcspn_c1): Remove inline function.
7304         (__strcspn_c2): Likewise.
7305         (__strcspn_c3): Likewise.
7306         * string/string-inline.c
7307         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
7308         compatibility symbol.
7309         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
7310         Likewise.
7311         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
7312         Likewise.
7313         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
7314
7315 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
7316
7317         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7318         Use ahi instead of aghi to adjust stack pointer.
7319
7320 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7321
7322         [BZ #19853]
7323         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
7324         TEST to take significant digits as second parameter.
7325         [TEST]: Redefine in terms of TEST_N taking 30
7326         significant digits.
7327         (do_test): Add test case to demonstrate precision
7328         failure in the ldbl-128ibm printf.
7329         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
7330         (__mpn_extract_long_double): Carry 7 extra intermediate
7331         bits of precision to aide computing difference when
7332         signs differ.
7333
7334 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
7335
7336         [BZ #19881]
7337         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7338         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
7339         memset-avx512-unaligned-erms.
7340         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7341         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
7342         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
7343         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
7344         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
7345         __memset_sse2_unaligned_erms, __memset_erms,
7346         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
7347         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
7348         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
7349         file.
7350         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
7351         Likewise.
7352         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
7353         Likewise.
7354         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
7355         Likewise.
7356
7357 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
7358
7359         [BZ #19776]
7360         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7361         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
7362         memmove-avx512-unaligned-erms.
7363         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7364         (__libc_ifunc_impl_list): Test
7365         __memmove_chk_avx512_unaligned_2,
7366         __memmove_chk_avx512_unaligned_erms,
7367         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
7368         __memmove_chk_sse2_unaligned_2,
7369         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
7370         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
7371         __memmove_avx512_unaligned_erms, __memmove_erms,
7372         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
7373         __memcpy_chk_avx512_unaligned_2,
7374         __memcpy_chk_avx512_unaligned_erms,
7375         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
7376         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
7377         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
7378         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
7379         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
7380         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
7381         __mempcpy_chk_avx512_unaligned_erms,
7382         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
7383         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
7384         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
7385         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
7386         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
7387         __mempcpy_erms.
7388         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
7389         file.
7390         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
7391         Likwise.
7392         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
7393         Likwise.
7394         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7395         Likwise.
7396
7397 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
7398
7399         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
7400         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
7401         (La_s390_64_regs): Likewise.
7402         (La_s390_32_retval): Append vector register lrv_v24.
7403         (La_s390_64_retval): Likeweise.
7404         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7405         Handle extended structs La_s390_32_regs and La_s390_32_retval.
7406         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7407         Handle extended structs La_s390_64_regs and La_s390_64_retval.
7408
7409 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
7410
7411         [BZ #19916]
7412         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
7413         to create a non-vector/vector version for _dl_runtime_resolve and
7414         _dl_runtime_profile. Move implementation to ...
7415         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
7416         (_dl_runtime_resolve) Save and restore fpr/vrs.
7417         (_dl_runtime_profile) Save and restore vrs and fix some issues
7418         if _dl_call_pltexit is called.
7419         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
7420         Choose the correct resolver function if running on a machine with vx.
7421         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
7422         to create a non-vector/vector version for _dl_runtime_resolve and
7423         _dl_runtime_profile. Move implementation to ...
7424         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
7425         (_dl_runtime_resolve) Save and restore fpr/vrs.
7426         (_dl_runtime_profile) Save and restore vrs and fix some issues
7427         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
7428         Choose the correct resolver function if running on a machine with vx.
7429
7430 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7431
7432         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
7433
7434 2016-03-31  Florian Weimer  <fweimer@redhat.com>
7435
7436         [BZ #19509]
7437         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
7438         skip_map != NULL.
7439         * elf/tst-dlsym-error.c: New file.
7440         * elf/Makefile (tests): Add tst-dlsym-error.
7441         (tst-dlsym-error): Link against libdl.
7442
7443 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
7444
7445         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7446         (__ASSUME_FUTIMESAT): Remove macro.
7447         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
7448
7449 2016-03-29  Florian Weimer  <fweimer@redhat.com>
7450
7451         [BZ #19879]
7452         CVE-2016-3075
7453         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
7454         copy name.
7455
7456 2016-03-29  Florian Weimer  <fweimer@redhat.com>
7457
7458         [BZ #19837]
7459         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
7460         error if parse_line fails.
7461
7462 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
7463
7464         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
7465         (index_cpu_ERMS): Likewise.
7466         (reg_ERMS): Likewise.
7467
7468 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
7469
7470         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
7471         PER_LINUX_FDPIC): Add.
7472
7473 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
7474
7475         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7476         memcpy-avx512-no-vzeroupper.
7477         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
7478         to ...
7479         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
7480         (MEMCPY): Don't define.
7481         (MEMCPY_CHK): Likewise.
7482         (MEMPCPY): Likewise.
7483         (MEMPCPY_CHK): Likewise.
7484         (MEMPCPY_CHK): Renamed to ...
7485         (__mempcpy_chk_avx512_no_vzeroupper): This.
7486         (MEMPCPY_CHK): Renamed to ...
7487         (__mempcpy_chk_avx512_no_vzeroupper): This.
7488         (MEMCPY_CHK): Renamed to ...
7489         (__memmove_chk_avx512_no_vzeroupper): This.
7490         (MEMCPY): Renamed to ...
7491         (__memmove_avx512_no_vzeroupper): This.
7492         (__memcpy_avx512_no_vzeroupper): New alias.
7493         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
7494
7495 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
7496
7497         [BZ #18858]
7498         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7499         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
7500         and mempcpy-avx512-no-vzeroupper.
7501         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
7502         New.
7503         (MEMPCPY): Likewise.
7504         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
7505         (MEMPCPY_CHK): New.
7506         (MEMPCPY): Likewise.
7507         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
7508         (MEMPCPY): Likewise.
7509         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
7510         (MEMPCPY): Likewise.
7511         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
7512         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
7513         Likewise.
7514         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
7515         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
7516
7517 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
7518              Amit Pawar  <Amit.Pawar@amd.com>
7519
7520         [BZ #19583]
7521         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
7522         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
7523         processors.  Set Fast_Copy_Backward for AMD Excavator
7524         processors.
7525         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
7526         New.
7527         (index_arch_Fast_Unaligned_Copy): Likewise.
7528         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
7529         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
7530
7531 2016-03-25  Florian Weimer  <fweimer@redhat.com>
7532
7533         [BZ #19791]
7534         * resolv/res_send.c (close_and_return_error): New function.
7535         (send_dg): Initialize *resplen2 after reopen failure.  Call
7536         close_and_return_error for error returns.  On error paths without
7537         __res_iclose, initialze *resplen2 explicitly.  Update comment for
7538         successful return.
7539
7540 2016-03-25  Florian Weimer  <fweimer@redhat.com>
7541
7542         [BZ# 19860]
7543         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
7544         zero if the compiler does not provide the AVX512F bit.
7545
7546 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
7547
7548         [BZ #19848]
7549         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
7550         from 8 to 4.
7551         (__ieee754_powl): Compare integer exponent against 4 not 8.
7552         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
7553         from 8 to 4.
7554         (__ieee754_powl): Compare integer exponent against 4 not 8.
7555         * math/auto-libm-test-in: Add more tests of pow.
7556         * math/auto-libm-test-out: Regenerated.
7557         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
7558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7559
7560 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
7561
7562         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
7563         Make code unconditional.
7564         [!__NR_utimensat]: Remove conditional code.
7565         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
7566         Make code unconditional.
7567         [!__NR_utimensat]: Remove conditional code.
7568         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
7569         Make code unconditional.
7570         [!__NR_utimensat]: Remove conditional code.
7571
7572 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
7573
7574         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
7575         Make code unconditional.
7576
7577 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
7578
7579         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
7580         call-clobbered %eax on retry path.
7581         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
7582
7583 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7584
7585         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
7586         Don't set %rcx twice before "rep movsb".
7587
7588 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7589
7590         [BZ #19583]
7591         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
7592         inline.  Check family before setting family, model and
7593         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
7594         bits here.
7595         (init_cpu_features): Replace HAS_CPU_FEATURE and
7596         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
7597         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
7598         for Intel processors with usable AVX2.  Call get_common_indeces
7599         for other processors with family == NULL.
7600         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
7601         (CPU_FEATURES_ARCH_P): Likewise.
7602         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
7603         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
7604
7605 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7606
7607         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
7608         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
7609         $(shared-thread-library) instead of hardcoding the path to libpthread.
7610
7611 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
7612
7613         * sysdeps/unix/sysv/linux/kernel-features.h
7614         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
7615         * sysdeps/unix/sysv/linux/getdents.c
7616         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
7617         [!have_no_getdents64_defined]: Likewise.
7618         (__GETDENTS): Remove __have_no_getdents64 conditional.
7619
7620 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
7621
7622         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
7623         Remove macro.
7624         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
7625         <kernel-features.h>.
7626         (signalfd) [__NR_signalfd4]: Make code unconditional.
7627         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
7628
7629 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7630
7631         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
7632         style.
7633
7634 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7635
7636         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
7637         (__pthread_enable_asynccancel): Use JUMPTARGET to call
7638         __pthread_unwind.
7639         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
7640         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
7641         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
7642         (__condvar_cleanup1): Likewise.
7643
7644 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
7645
7646         [BZ #19822]
7647         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
7648         move it to the final $@ location.
7649
7650 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7651
7652         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
7653         access where posix_spawn success and pid argument is null.
7654         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
7655         success case.
7656
7657 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
7658
7659         * sysdeps/mach/hurd/i386/c++-types.data: New file.
7660
7661         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
7662
7663         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
7664         and __fcntl.
7665         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
7666         __fcntl only.
7667         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
7668         adding attribute_hidden to __open and __fcntl.
7669
7670         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
7671         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
7672         depend on libc-modules.h,
7673         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
7674
7675 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
7676
7677         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
7678         Remove macro.
7679         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
7680         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
7681         entry.
7682
7683         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
7684         Remove macro.
7685         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
7686         include <kernel-features.h>.
7687         [!__ASSUME_FALLOCATE]: Remove conditional code.
7688         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
7689
7690 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7691
7692         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
7693         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
7694         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
7695         (_ZGVdN4v_cos_avx2): Likewise.
7696         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
7697         (_ZGVdN4v_cos): Likewise.
7698         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
7699         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
7700         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
7701         (_ZGVdN4v_exp_avx2): Likewise.
7702         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
7703         (_ZGVdN4v_exp): Likewise.
7704         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
7705         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
7706         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
7707         (_ZGVdN4v_log_avx2): Likewise.
7708         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
7709         (_ZGVdN4v_log): Likewise.
7710         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
7711         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
7712         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
7713         (_ZGVdN4vv_pow_avx2): Likewise.
7714         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
7715         (_ZGVdN4vv_pow): Likewise.
7716         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
7717         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
7718         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
7719         (_ZGVdN4v_sin_avx2): Likewise.
7720         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
7721         (_ZGVdN4v_sin): Likewise.
7722         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
7723         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
7724         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
7725         (_ZGVdN4vvv_sincos_avx2): Likewise.
7726         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
7727         (_ZGVdN4vvv_sincos): Likewise.
7728         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
7729         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
7730         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
7731         (_ZGVbN4v_cosf_sse4): Likewise.
7732         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
7733         (_ZGVdN8v_cosf_avx2): Likewise.
7734         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
7735         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
7736         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
7737         (_ZGVbN4v_expf_sse4): Likewise.
7738         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
7739         (_ZGVdN8v_expf_avx2): Likewise.
7740         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
7741         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
7742         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
7743         (_ZGVbN4v_logf_sse4): Likewise.
7744         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
7745         (_ZGVdN8v_logf_avx2): Likewise.
7746         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
7747         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
7748         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
7749         (_ZGVbN4vv_powf_sse4): Likewise.
7750         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
7751         (_ZGVdN8vv_powf_avx2): Likewise.
7752         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
7753         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
7754         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
7755         (_ZGVbN4vvv_sincosf_sse4): Likewise.
7756         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
7757         (_ZGVdN8vvv_sincosf_avx2): Likewise.
7758         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
7759         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
7760         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
7761         (_ZGVbN4v_sinf_sse4): Likewise.
7762         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
7763         (_ZGVdN8v_sinf_avx2): Likewise.
7764         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
7765         Use JUMPTARGET to call callee.
7766         (WRAPPER_IMPL_SSE2_ff): Likewise.
7767         (WRAPPER_IMPL_SSE2_fFF): Likewise.
7768         (WRAPPER_IMPL_AVX): Likewise.
7769         (WRAPPER_IMPL_AVX_ff): Likewise.
7770         (WRAPPER_IMPL_AVX_fFF): Likewise.
7771         (WRAPPER_IMPL_AVX512): Likewise.
7772         (WRAPPER_IMPL_AVX512_ff): Likewise.
7773         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
7774         Likewise.
7775         (WRAPPER_IMPL_SSE2_ff): Likewise.
7776         (WRAPPER_IMPL_SSE2_fFF): Likewise.
7777         (WRAPPER_IMPL_AVX): Likewise.
7778         (WRAPPER_IMPL_AVX_ff): Likewise.
7779         (WRAPPER_IMPL_AVX_fFF): Likewise.
7780         (WRAPPER_IMPL_AVX512): Likewise.
7781         (WRAPPER_IMPL_AVX512_ff): Likewise.
7782         (WRAPPER_IMPL_AVX512_fFF): Likewise.
7783
7784 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7785
7786         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
7787         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
7788         qualifier.
7789         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
7790         internal_function qualifiers.
7791
7792 2016-03-15  Carlos O'Donell <carlos@redhat.com>
7793
7794         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
7795         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
7796         * math/atest-exp.c (exp_mpn): Mark chk unused.
7797         * math/atest-exp2.c (exp_mpn): Likwise.
7798         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
7799         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
7800
7801 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
7802
7803         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
7804         Remove macro.
7805         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
7806         <kernel-features.h>.
7807         [__NR_ppoll]: Make code unconditional.
7808         [!__ASSUME_PPOLL]: Remove conditional code.
7809
7810         * sysdeps/unix/sysv/linux/kernel-features.h
7811         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
7812         (__ASSUME_ACCEPT4): Likewise.
7813         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7814         Define.
7815         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
7816         Likewise.
7817         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7818         Likewise.
7819         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
7820         Likewise.
7821         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
7822         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
7823         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7824         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
7825         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7826         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7827         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7828         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7829         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7830         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7831         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
7832         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7833         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7834         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7835         * sysdeps/unix/sysv/linux/i386/kernel-features.h
7836         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7837         Likewise.
7838         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7839         Likewise.
7840         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7841         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
7842         0x040300].
7843         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7844         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
7845         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7846         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7847         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
7848         0x030300].
7849         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
7850         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7851         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7852         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
7853         0x040300].
7854         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7855         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7856         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7857         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
7858         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7859         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7860         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
7861         0x030300].
7862         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7863         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
7864         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7865         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7866         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7867         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7868         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7869         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7870         * sysdeps/unix/sysv/linux/s390/kernel-features.h
7871         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7872         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
7873         0x040300].
7874         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7875         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7876         * sysdeps/unix/sysv/linux/sh/kernel-features.h
7877         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
7878         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7879         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7880         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7881         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7882         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7883         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7884         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7885         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7886         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7887         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7888         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
7889         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7890         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7891         Likewise.
7892         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7893         Likewise.
7894
7895 2016-03-15  Andreas Schwab  <schwab@suse.de>
7896
7897         [BZ #19257]
7898         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
7899         statp->_u._ext.nscount as loop count.
7900
7901 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
7902
7903         * math/test-signgam-finite-c99.c: Also #undef
7904         __LIBC_INTERNAL_MATH_INLINES.
7905         * math/test-signgam-main.c: Likewise.
7906
7907 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
7908
7909         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
7910         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
7911         (MADV_FREE): Likewise.
7912         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
7913         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
7914         EPOLLEXCLUSIVE.
7915
7916 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
7917
7918         * timezone/README: Remove mention of checktab.awk. Mention wiki
7919         SharedSourceFiles.
7920
7921 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
7922
7923         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
7924         WUNTRACED.
7925
7926 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7927
7928         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
7929         order to match the type of p when calling atomic_exchange_acq().
7930
7931 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7932
7933         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
7934         cfi_offset calls.
7935         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
7936         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
7937         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
7938         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
7939         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
7940
7941 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
7942
7943         * timezone/checktab.awk: Removed.
7944
7945 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
7946
7947         * manual/math.texi (Errors in Math Functions): Document relaxed
7948         accuracy goals for IBM long double.
7949         * math/libm-test.inc (test_exceptions): Always allow spurious
7950         "underflow" and "inexact" exceptions for IBM long double.
7951
7952 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
7953
7954         [BZ #19762]
7955         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
7956         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
7957         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
7958         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
7959         (bit_arch_*): This for feature array.
7960         (bit_*): Renamed to ...
7961         (bit_cpu_*): This for cpu array.
7962         (index_*): Renamed to ...
7963         (index_arch_*): This for feature array.
7964         (index_*): Renamed to ...
7965         (index_cpu_*): This for cpu array.
7966         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
7967         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
7968         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
7969         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
7970         bit_##name with index_cpu_##name and bit_cpu_##name.
7971         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
7972         bit_##name with index_arch_##name and bit_arch_##name.
7973
7974 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
7975
7976         [BZ #19792]
7977         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
7978         Terminate FDE before return label.
7979
7980 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
7981
7982         [BZ #19790]
7983         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
7984         (rintl): Define as macro.
7985         [USE_AS_NEARBYINTL] (__rintl): Likewise.
7986         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
7987         of fesetround.  Ensure results are evaluated before end of scope.
7988         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
7989         USE_AS_NEARBYINTL and include s_rintl.c.
7990         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
7991         Disable exception traps in new environment.
7992         (libc_feholdsetround_ppc_ctx): Likewise.
7993
7994 2016-03-08  Roland McGrath  <roland@hack.frob.com>
7995
7996         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
7997         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
7998         (tst_audit10_aux) [__AVX512F__]: ... here.
7999
8000 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
8001
8002         * include/sys/auxv.h: New file.
8003
8004 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
8005
8006         [BZ #19759]
8007         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
8008
8009 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8010
8011         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
8012         operand modifier.
8013         (feclearexcept): Likewise.
8014
8015 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8016
8017         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
8018         to reflect the entire 32-bit HWCAP.
8019         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
8020         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
8021
8022 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
8023
8024         [BZ #19783]
8025         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
8026         $(test-via-rtld-prefix).
8027         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
8028
8029 2016-03-08  Florian Weimer  <fweimer@redhat.com>
8030
8031         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
8032         union wait.  Report any non-zero exit status as error.
8033
8034 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8035
8036         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
8037         configured with --enable-hardcoded-path-in-tests.
8038
8039 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
8040
8041         [BZ #19677]
8042         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
8043         (__ieee754_remainderl): Put zero low parts in canonical form.
8044         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
8045         file.  Based on
8046         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
8047         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
8048         with wrapper round test-fmodrem-ldbl-128ibm.c.
8049         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
8050         file.
8051         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
8052         Likewise.
8053         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
8054         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
8055
8056 2016-03-07  Florian Weimer  <fweimer@redhat.com>
8057
8058         [BZ #19610]
8059         * elf/ldconfig.c (opt_link): Update comment.
8060         (options): Update help string for option -X.
8061         (search_dir): Unlink stale symbolic link only if updating symbolic
8062         links.
8063         * elf/tst-ldconfig-X.sh: New file.
8064         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
8065         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
8066
8067 2016-03-07  Andreas Schwab  <schwab@suse.de>
8068
8069         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
8070         needed arguments.
8071
8072 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
8073
8074         [BZ #15333]
8075         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
8076         to lstat64.
8077
8078 2016-03-07  Florian Weimer  <fweimer@redhat.com>
8079
8080         * libio/filedoalloc.c (isatty): Remove.
8081         (local_isatty): Add comment.  Call __isatty directly.
8082         (_IO_file_doallocate): Update comment.  Assume _LIBC.
8083         * libio/wfiledoalloc.c (isatty): Remove.
8084         (_IO_wfile_doallocate): Update comment.
8085
8086 2016-03-07  Florian Weimer  <fweimer@redhat.com>
8087
8088         [BZ #19269]
8089         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
8090         tst-audit4-aux.o.
8091         (tst-audit10): Depend on tst-audit10-aux.o.
8092         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
8093         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
8094         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
8095         instead of inline AVX code.
8096         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
8097         instead of inline AVX512 code.
8098         * sysdeps/x86_64/tst-audit4-aux.c: New file
8099         * sysdeps/x86_64/tst-audit10-aux.c: New file
8100
8101         [BZ #19648]
8102         * test-skeleton.c (main): Do not set RLIMIT_DATA.
8103
8104 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8105
8106         [BZ #14750]
8107         [BZ #10354]
8108         [BZ #18433]
8109         * include/sched.h (__clone): Add hidden prototype.
8110         (__clone2): Likewise.
8111         * include/unistd.h (__dup): Likewise.
8112         * posix/Makefile (tests): Add tst-spawn2.
8113         * posix/tst-spawn2.c: New file.
8114         * sysdeps/posix/dup.c (__dup): Add hidden definition.
8115         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
8116         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
8117         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
8118         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
8119         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
8120         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
8121         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
8122         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
8123         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
8124         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
8125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
8126         Likewise.
8127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
8128         Likewise.
8129         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
8130         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
8131         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
8132         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
8133         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
8134         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
8135         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
8136         * sysdeps/unix/sysv/linux/nptl-signals.h
8137         (____nptl_is_internal_signal): New function.
8138         * sysdeps/unix/sysv/linux/spawni.c: New file.
8139
8140         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
8141         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
8142         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
8143         * posix/tst-execvp2.c (do_test): Likewise.
8144         * posix/tst-execvp3.c (do_test): Likewise.
8145         * posix/tst-execvp4.c (do_test): Likewise.
8146         * posix/tst-execvpe1.c: New file.
8147         * posix/tst-execvpe2.c: Likewise.
8148         * posix/tst-execvpe3.c: Likewise.
8149         * posix/tst-execvpe4.c: Likewise.
8150         * posix/tst-execvpe5.c: Likewise.
8151         * posix/tst-execvpe6.c: Likewise.
8152
8153         [BZ #19534]
8154         * posix/execl.c (execl): Remove dynamic memory allocation.
8155         * posix/execle.c (execle): Likewise.
8156         * posix/execlp.c (execlp): Likewise.
8157
8158 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
8159
8160         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
8161         Replace .text with .text.avx512.
8162         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
8163         Likewise.
8164
8165 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
8166
8167         * sysdeps/generic/libnsl.abilist: New file.
8168         * sysdeps/generic/libutil.abilist: New file.
8169
8170 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
8171
8172         [BZ #19762]
8173         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
8174         HAS_ARCH_FEATURE with Fast_Rep_String.
8175         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
8176         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
8177         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
8178         Likewise.
8179         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
8180         Likewise.
8181         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
8182         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
8183         Likewise.
8184         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
8185         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
8186         Likewise.
8187
8188 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
8189
8190         [BZ #19745]
8191         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
8192         with *%rax in call.
8193
8194 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
8195
8196         [BZ #19745]
8197         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
8198         with *__libc_start_main@GOTPCREL(%rip) in call.
8199
8200 2016-03-04  Roland McGrath  <roland@hack.frob.com>
8201
8202         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
8203         inside conditional for nonempty $(CXX).
8204
8205         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
8206         nonempty.
8207
8208         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
8209         to test for empty $(CXX) rather than $(CXX) of "no".
8210
8211 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
8212
8213         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
8214
8215 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
8216             H.J. Lu  <hongjiu.lu@intel.com>
8217
8218         [BZ #18880]
8219         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
8220         instead of Slow_BSF, and also check for Fast_Copy_Backward to
8221         enable __memcpy_ssse3_back.
8222
8223 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
8224
8225         [BZ #19758]
8226         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
8227         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
8228
8229 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
8230
8231         [BZ #19490]
8232         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
8233         (__fentry__): Likewise.
8234
8235 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
8236
8237         * gmon/Makefile (noprof): Add $(sysdep_noprof).
8238         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
8239
8240 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
8241
8242         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
8243         __mcount_internal directly.
8244         (C_LABEL(__fentry__)): Likewise.
8245         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
8246         directly.
8247
8248 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
8249
8250         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
8251         (__start_context): Call __setcontext directly.
8252
8253 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
8254
8255         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8256         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8257         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
8258         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
8259         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8260         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8261         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
8262         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8263         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
8264         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
8265         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
8266         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
8267         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8268         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8269         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8270         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8271         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
8272         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8273         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8274         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
8275         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
8276         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8277         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8278         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
8279         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
8280         Remove conditional code.
8281         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8282         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
8283         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8284         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8285         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
8286         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8287         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
8288         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8289         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8290         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8291         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8292         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8293
8294 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
8295
8296         * NEWS (2.23): Fix typo in bug 19048 text.
8297
8298 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
8299
8300         [BZ #14259]
8301         * Makeconfig: Rename msgcatdir to localedir.
8302         Rename inst_msgcatdir to inst_localedir.
8303         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
8304         * config.make.in: Add localedir.
8305         * elf/Makefile ($(objpfx)sotruss): Use localedir.
8306         (ldd-rewrite): Likewise.
8307         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
8308         (install-others): Use inst_localedir.
8309         (CPPFLAGS): Use localedir.
8310         * locale/Makefile (locale-CPPFLAGS): Likewise.
8311         * po/Makefile (mo-installed): Use inst_localedir.
8312
8313         [BZ #19575]
8314         * localedata/charmaps/GB18030: Update comments regarding PAU to
8315         non-PUA mappings.
8316
8317 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
8318
8319         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
8320         test for header.
8321         * sysdeps/unix/sysv/linux/configure: Regenerated.
8322         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
8323         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
8324         Remove conditional code.
8325         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
8326
8327         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
8328         Define to 3.2.0.
8329         (arch_minimum_kernel): Likewise.
8330         * sysdeps/unix/sysv/linux/configure: Regenerated.
8331         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
8332         Define to 2.6.32.
8333         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
8334         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
8335         (arch_minimum_kernel): Define to 2.6.32.
8336         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
8337         * README: Document Linux 3.2 requirement.
8338         * manual/install.texi (Linux): Document Linux 3.2 headers
8339         requirement.
8340         * INSTALL: Regenerated.
8341
8342 2016-02-24  Andreas Schwab  <schwab@suse.de>
8343
8344         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
8345         if !NO_LONG_DOUBLE.
8346
8347 2016-02-22  Roland McGrath  <roland@hack.frob.com>
8348
8349         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
8350         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
8351
8352 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
8353
8354         [BZ #19512]
8355         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
8356
8357 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
8358
8359         * posix/tst-dir.c: Include libc-internal.h.
8360
8361 2016-02-20  Florian Weimer  <fweimer@redhat.com>
8362
8363         [BZ #19056]
8364         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
8365         * manual/filesys.texi (Reading/Closing Directory): Mention
8366         deprecaion.
8367         * posix/tst-dir.c (main): Disable deprecation warning in test.
8368
8369 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
8370
8371         [BZ #19679]
8372         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
8373         Renamed to ...
8374         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
8375         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
8376         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
8377         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
8378         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
8379         * sysdeps/x86_64/dl-trampoline.h
8380         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
8381         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
8382
8383 2016-02-19  Mark Wielaard  <mjw@redhat.com>
8384
8385         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
8386
8387 2016-02-19  Mark Wielaard  <mjw@redhat.com>
8388
8389         * elf/elf.h (R_386_GOT32X): New.
8390         (R_386_NUM): Update.
8391         (R_X86_64_GOTPCRELX: New.
8392         (R_X86_64_REX_GOTPCRELX): New.
8393         (R_X86_64_NUM): Update.
8394
8395 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
8396
8397         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
8398
8399 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
8400
8401         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
8402         assign attr->stackaddr to it, and adjust it down when
8403         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
8404         [_STACK_GROWS_UP]: Delete assert.
8405         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
8406         Implement stack grows up logic.
8407         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
8408         stack grows up logic.
8409
8410 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8411
8412         * NEWS: Update with 2.24 template.
8413
8414 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
8415
8416         [BZ #19678]
8417         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
8418         Ensure +0.0 is returned when taking the next value below the least
8419         positive value.
8420
8421 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8422
8423         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
8424         available.  Do not define NO_THREADS.
8425         * malloc/malloc.c: Do not check NO_THREADS.
8426         * malloc/arena.c: Likewise.
8427
8428 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8429
8430         * malloc/malloc.c (__libc_mallinfo): Update comment.
8431         (struct malloc_par): Remove max_total_mem member, it was always 0.
8432         (int_mallinfo): Store 0 into usmblks (no functional change).
8433         * malloc/hooks.c (struct malloc_state): Document that
8434         max_total_mem is always 0.
8435         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
8436         always 0.
8437         * manual/memory.texi (Statistics of Malloc): Likewise.
8438
8439 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8440
8441         * malloc/malloc.c (sysmalloc): Do not update arena_max.
8442         * malloc/arena.c (arena_max): Remove.
8443         (heap_trim, _int_new_arena): Do not update arena_max.
8444
8445 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8446
8447         * resolv/res_init.c (res_ninit): Update comment.
8448
8449 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8450
8451         [BZ #19505]
8452         * posix/spawn_int.h: Add headers and include guard.
8453         (__spawn_valid_fd): New function.
8454         * posix/spawn_faction_addopen.c
8455         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
8456         * posix/spawn_faction_addclose.c
8457         (posix_spawn_file_actions_addclose): Likewise.
8458         * posix/spawn_faction_adddup2.c
8459         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
8460         second file descriptor.
8461         * posix/spawn_valid_fd.c: New file.
8462         * posix/tst-posix_spawn-fd.c: New file.
8463         * posix/Makefile (routines): Add spawn_valid_fd.
8464         (tests): Add tst-posix_spawn-fd.
8465
8466 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8467
8468         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
8469         (do_test): Limit the number of arenas, so that we can use fewer
8470         outer threads.  Limit timeout to 3 seconds, in preparation for a
8471         larger TIMEOUT value.
8472
8473 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
8474
8475         [BZ #19674]
8476         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
8477         sign in overflowing and underflowing results when overflow or
8478         underflow is detected early.  Include sign in result before rather
8479         than after scaling.
8480
8481         [BZ #19603]
8482         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
8483         (__ieee754_remainderl): Adjust sign of integer version of low part
8484         when taking absolute value of high part.
8485         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
8486         * math/libm-test.inc (remainder_test_data): Add another test.
8487         (remquo_test_data): Likewise.
8488
8489 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
8490
8491         [BZ #19602]
8492         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
8493         equal high parts and both low parts zero specially.
8494         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
8495         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
8496         Add test-fmodl-ldbl-128ibm.
8497
8498         [BZ #19595]
8499         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
8500         common logic for all cases of shifting subnormal results.  Do not
8501         insert sign bit in shifted mantissa.  Always pass -1023 as biased
8502         exponent to ldbl_insert_mantissa in subnormal case.
8503
8504         [BZ #19594]
8505         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
8506         on high and low parts then adjust result and use
8507         ldbl_canonicalize_int if needed.
8508
8509         [BZ #19593]
8510         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
8511         on high part and __floor or __ceil on low part then use
8512         ldbl_canonicalize_int if needed.
8513
8514         [BZ #19592]
8515         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
8516         high and low parts then use ldbl_canonicalize_int if needed.
8517
8518         [BZ #17899]
8519         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
8520         New function.
8521         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
8522         on high and low parts then use ldbl_canonicalize_int if needed.
8523
8524 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8525
8526         * configure: Regenerated.
8527
8528         * po/libc.pot: Regenerated.
8529
8530         * po/be.po: Updated translation.
8531         * po/bg.po: Likewise.
8532         * po/ca.po: Likewise.
8533         * po/cs.po: Likewise.
8534         * po/da.po: Likewise.
8535         * po/el.po: Likewise.
8536         * po/eo.po: Likewise.
8537         * po/es.po: Likewise.
8538         * po/fi.po: Likewise.
8539         * po/fr.po: Likewise.
8540         * po/gl.po: Likewise.
8541         * po/hr.po: Likewise.
8542         * po/hu.po: Likewise.
8543         * po/ia.po: Likewise.
8544         * po/id.po: Likewise.
8545         * po/it.po: Likewise.
8546         * po/ja.po: Likewise.
8547         * po/lt.po: Likewise.
8548         * po/nb.po: Likewise.
8549         * po/nl.po: Likewise.
8550         * po/pt_BR.po: Likewise.
8551         * po/rw.po: Likewise.
8552         * po/sk.po: Likewise.
8553         * po/sl.po: Likewise.
8554         * po/sv.po: Likewise.
8555         * po/tr.po: Likewise.
8556         * po/zh_CN.po: Likewise.
8557         * po/zh_TW.po: Likewise.
8558
8559         * version.h (RELEAES): Set to "development".
8560         (VERSION): Set to 2.23.90.
8561
8562         * version.h (RELEASE): Set to "stable".
8563         (VERSION): Set to 2.23.
8564         * include/feature.h (__GLIBC_MINOR__): Set to 23.
8565
8566         * NEWS: Updated fixed bugs.
8567
8568 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8569             Wilco Dijkstra  <wdijkstr@arm.com>
8570
8571         [BZ #19462]
8572         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
8573         (_STRING_INLINE_unaligned): This.
8574         * include/string.h: Include <string_private.h>.
8575         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
8576         _STRING_INLINE_unaligned.
8577         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
8578         (_STRING_INLINE_unaligned): New.
8579         * sysdeps/aarch64/string_private.h: New file.
8580         * sysdeps/generic/string_private.h: Likewise.
8581         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
8582         * sysdeps/s390/string_private.h: Likewise.
8583         * sysdeps/x86/string_private.h: Likewise.
8584         * sysdeps/m68k/m680x0/m68020/bits/string.h
8585         (_STRING_ARCH_unaligned): Renamed to ...
8586         (_STRING_INLINE_unaligned): This.
8587         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
8588         to ...
8589         (_STRING_INLINE_unaligned): This.
8590         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
8591         to ...
8592         (_STRING_INLINE_unaligned): This.
8593         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
8594         to ...
8595         (_STRING_INLINE_unaligned): This.
8596
8597 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
8598             H.J. Lu  <hongjiu.lu@intel.com>
8599
8600         [BZ #19590]
8601         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
8602         relocation.
8603
8604 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
8605
8606         [BZ #18665]
8607         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
8608         *herrno_p.
8609         (gaih_getanswer): Document functional behviour. Return tryagain
8610         if any result is tryagain.
8611         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
8612         when freed.
8613         * resolv/res_send.c: Add copyright text.
8614         (__libc_res_nsend): Document that MAXPACKET is expected.
8615         (send_vc): Document. Remove buffer reuse.
8616         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
8617         size of the buffer. Add Dprint for truncated UDP buffer.
8618
8619 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
8620
8621         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
8622         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
8623         * INSTALL: Regenerate.
8624
8625 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
8626             Jonathan Wakely  <jwakely@redhat.com>
8627             Carlos O'Donell  <carlos@redhat.com>
8628
8629         [BZ 19439]
8630         * math/Makefile (tests): Add test-math-isinff.
8631         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
8632         * math/bits/mathcalls.h [__USE_MISC]: Use
8633         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
8634         functions not in C++11 and which don't conflict e.g. isinff,
8635         isinfl etc.
8636         * math/test-math-isinff.cc: New file.
8637
8638 2016-02-12  Florian Weimer  <fweimer@redhat.com>
8639
8640         * misc/bug18240.c (do_test): Set RLIMIT_AS.
8641
8642 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8643
8644         [BZ #19529]
8645         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
8646
8647 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8648
8649         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
8650
8651 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
8652
8653         [BZ #19550]
8654         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
8655         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
8656         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
8657         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
8658         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
8659         New syscall entry.
8660         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
8661         New syscall entry.
8662         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
8663         syscall entry.
8664
8665 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8666
8667         [BZ #18240]
8668         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
8669         unsigned int wraparound.
8670
8671 2016-01-27  Florian Weimer  <fweimer@redhat.com>
8672
8673         [BZ #18240]
8674         * misc/bug18240.c: New test.
8675         * misc/Makefile (tests): Add it.
8676
8677 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
8678             Joseph Myers  <joseph@codesourcery.com>
8679
8680         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
8681         load in branch delay slot when less than a word of input left.
8682
8683 2016-01-27  Andreas Schwab  <schwab@suse.de>
8684
8685         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
8686         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
8687         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
8688         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
8689
8690 2016-01-26  David S. Miller  <davem@davemloft.net>
8691
8692         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
8693
8694 2016-01-25  David S. Miller  <davem@davemloft.net>
8695
8696         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
8697         __sqrtl_finite.
8698         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
8699         instead using versioned_symbol.
8700         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
8701         of entries.
8702
8703         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
8704         __sqrtl_finite to GLIBC_2.23
8705
8706 2016-01-25  Ricchard Henderson  <rth@redhat.com>
8707
8708         * sysdeps/alpha/fpu/libm-test-ulps: Update.
8709
8710 2016-01-25  Andreas Schwab  <schwab@suse.de>
8711
8712         [BZ #17514]
8713         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
8714         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
8715         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
8716         * nptl/tst-mutex-errorcheck.c: New file.
8717
8718 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8719
8720         [BZ #18560]
8721         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
8722         (IPCOP_semop): Likewise.
8723         (IPCOP_semget): Likewise.
8724         (IPCOP_semctl): Likewise.
8725         (IPCOP_msgsnd): Likewise.
8726         (IPCOP_msgrcv): Likewise.
8727         (IPCOP_msgget): Likewise.
8728         (IPCOP_msgctl): Likewise.
8729         (IPCOP_shmat): Likewise.
8730         (IPCOP_shmdt): Likewise.
8731         (IPCOP_shmget): Likewise.
8732         (IPCOP_shmctl): Likewise.
8733
8734 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
8735
8736         * string/tst-endian.c: Include <libc-internal.h>.
8737         (do_test): Ignore tautological-compare warnings around
8738         "htobeXX (beXXtoh (i)) != i" and
8739         "htoleXX (leXXtoh (i)) != i" if-statements.
8740
8741 2016-01-24  David S. Miller  <davem@davemloft.net>
8742
8743         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
8744         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
8745         alias.
8746         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8747         __sqrtl_finite.
8748
8749         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8750
8751 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
8752
8753         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
8754         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
8755         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
8756
8757 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8758
8759         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
8760         (thread_func): Use new function to simplify barrier check.
8761         (do_test): Use new function to simplify checking barrier exit
8762         code, and actually join the child thread.
8763
8764 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8765
8766         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
8767         semicolon.
8768         (__libc_tend): Likewise.
8769         (__libc_tabort): Likewise.
8770
8771 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
8772
8773         * sysdeps/nios2/libm-test-ulps: Update.
8774         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
8775         (__gtsf2): Likewise.
8776         (__unorddf2): Likewise.
8777         (__unordsf2): Likewise.
8778         (__ledf2): Likewise.
8779
8780 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
8781
8782         * nis/nis_table.c (__follow_path): Disable diagnostic for
8783         uninitialized variable that is a false positive for gcc 4.7.
8784         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
8785
8786 2016-01-20  Roland McGrath  <roland@hack.frob.com>
8787
8788         * sysdeps/nacl/lowlevellock-futex.h
8789         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
8790         Always evaluate PRIVATE argument.
8791
8792 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
8793
8794         [BZ #19490]
8795         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
8796         (pthread_cond_broadcast): Use ENTRY/END
8797         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
8798         (pthread_cond_signal): Likewise.
8799         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
8800         Likewise.
8801         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
8802         Likewise.
8803         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
8804         Likewise.
8805
8806 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
8807
8808         * sysdeps/ieee754/dbl-64/s_finite.c
8809         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
8810         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
8811         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
8812         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
8813         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
8814
8815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8816         (__gtsf2): Add as optional for libc.so.
8817         (__unordsf2): Likewise.
8818         (__signbit): Remove for libc.so.
8819         (__signbitl): Likewise.
8820
8821 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
8822
8823         * iconvdata/bug-iconv11.c (test_ibm93x):
8824         Use %zu printf format specifier for size_t argument.
8825
8826 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
8827
8828         * math/gen-libm-test.pl (parse_ulps): Do not reduce
8829         already-recorded ulps.
8830         * sysdeps/arm/libm-test-ulps: Regenerated.
8831         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
8832         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8833         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
8834
8835 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
8836             Paul Pluzhnikov  <ppluzhnikov@google.com>
8837
8838         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
8839         assembler not supporting AVX-512.
8840
8841 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
8842
8843         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8844
8845 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
8846
8847         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
8848         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8849
8850         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8851
8852         * sysdeps/arm/libm-test-ulps: Regenerated.
8853
8854 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
8855
8856         [BZ #19451]
8857         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
8858
8859 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
8860
8861         [BZ #19486]
8862         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
8863         * sysdeps/generic/fix-fp-int-convert-overflow.h
8864         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
8865         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
8866         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
8867         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
8868         Likewise.
8869         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
8870         Avoid conversions to long int where inexact exceptions
8871         could be raised.
8872         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
8873         Likewise.
8874         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
8875         Avoid conversions to long long int where inexact exceptions
8876         could be raised.
8877         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
8878         Likewise.
8879
8880 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
8881
8882         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
8883         * configure: Regenerated.
8884
8885 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
8886
8887         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
8888
8889 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
8890
8891         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
8892         outside of comment.
8893
8894 2016-01-15  Torvald Riegel  <triegel@redhat.com>
8895
8896         * nptl/tst-barrier1.c: Add description on first line.
8897         * nptl/tst-barrier2.c: Likewise.
8898         * nptl/tst-barrier3.c: Likewise.
8899         * nptl/tst-barrier4.c: Likewise.
8900         * nptl/tst-barrier5.c: Likewise.
8901
8902 2016-01-15  Torvald Riegel  <triegel@redhat.com>
8903
8904         [BZ #18868]
8905         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
8906
8907 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
8908
8909         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
8910         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
8911         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
8912         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
8913         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
8914         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
8915         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8916         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8917         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8918         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8919         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8920
8921 2016-01-15  Torvald Riegel  <triegel@redhat.com>
8922
8923         [BZ #13065]
8924         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
8925         new implementation.
8926         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
8927         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
8928         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
8929         (BARRIER_IN_THRESHOLD): New macro.
8930         * nptl/pthread_barrierattr_setpshared.c
8931         (pthread_barrierattr_setpshared): Clean up.
8932         * nptl/tst-barrier4.c: Correct comment.
8933         * nptl/tst-barrier5.c: New file.
8934         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
8935         (gen-as-const-headers): Remove lowlevelbarrier.sym.
8936         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
8937         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
8938         * nptl/lowlevelbarrier.sym: Remove.
8939         * nptl/DESIGN-barrier.txt: Remove.
8940         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
8941         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
8942         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
8943         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
8944         error.
8945         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
8946         implementation.
8947
8948 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8949
8950         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
8951         (do_child): Mask SIGRTMIN while thr is running.
8952
8953 2016-01-15  Martin Sebor  <msebor@redhat.com>
8954
8955         [BZ #19432]
8956         * iconvdata/Makefile: Add bug-iconv11.
8957         * iconvdata/bug-iconv11.c: New test.
8958         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
8959         * iconvdata/ibm933.c: Same.
8960         * iconvdata/ibm935.c: Same.
8961         * iconvdata/ibm937.c: Same.
8962         * iconvdata/ibm939.c: Same.
8963
8964 2016-01-15  Martin Sebor  <msebor@redhat.com>
8965
8966         [BZ #19443]
8967         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
8968         [DEBUG] (_ufc_set_bits): Declare used.
8969         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
8970         [DEBUG] (print_all): Declare used.
8971         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
8972         operands of the ternary ?: expression to target type.
8973         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
8974         calling the undeclared abort.
8975         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
8976
8977 2016-01-15  Martin Sebor  <msebor@redhat.com>
8978
8979         [BZ #18755]
8980         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
8981         warnings.
8982         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
8983         (__gai_create_helper_thread): Same.
8984         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
8985         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
8986         to suppress -Wmaybe-uninitialized warnings.
8987
8988 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
8989
8990         [BZ #19465]
8991         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
8992         inside if.
8993         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8994         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8995         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8996
8997 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
8998
8999         [BZ #19466]
9000         * time/tst-mktime2.c (time_t_max): Removed.
9001         (time_t_min): Likewise.
9002         (TYPE_SIGNED): New.
9003         (TYPE_MINIMUM): Likewise.
9004         (TYPE_MAXIMUM): Likewise.
9005         (TIME_T_MIN): Likewise.
9006         (TIME_T_MAX): Likewise.
9007         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
9008         and TIME_T_MIN.
9009         (do_test): Likewise.
9010
9011 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
9012
9013         [BZ #19467]
9014         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
9015         index_Fast_Unaligned_Load flag for Excavator family CPUs.
9016
9017 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
9018
9019         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
9020
9021 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
9022
9023         * benchtests/Makefile (PYTHON): Define.
9024         (bench-func): Use $(PYTHON) to run python scripts.
9025         ($(objpfx)bench-%.c): Likewise.
9026
9027 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
9028
9029         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
9030         leading slash when `file_name' is "/".
9031
9032 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
9033
9034         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
9035         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
9036         Likewise.
9037         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
9038         Likewise.
9039         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
9040         Likewise.
9041         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
9042         enum constant and macro.
9043         (PTRACE_SETSIGMASK): Likewise.
9044         (PTRACE_SECCOMP_GET_FILTER): Likewise.
9045         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
9046         (PTRACE_GETSIGMASK): Likewise.
9047         (PTRACE_SETSIGMASK): Likewise.
9048         (PTRACE_SECCOMP_GET_FILTER): Likewise.
9049         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
9050         Likewise.
9051         (PTRACE_SETSIGMASK): Likewise.
9052         (PTRACE_SECCOMP_GET_FILTER): Likewise.
9053         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
9054         (PTRACE_GETSIGMASK): Likewise.
9055         (PTRACE_SETSIGMASK): Likewise.
9056         (PTRACE_SECCOMP_GET_FILTER): Likewise.
9057         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
9058         Likewise.
9059         (PTRACE_SETSIGMASK): Likewise.
9060         (PTRACE_SECCOMP_GET_FILTER): Likewise.
9061         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
9062         Likewise.
9063         (PTRACE_SETSIGMASK): Likewise.
9064         (PTRACE_SECCOMP_GET_FILTER): Likewise.
9065         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
9066         Likewise.
9067         (PTRACE_SETSIGMASK): Likewise.
9068         (PTRACE_SECCOMP_GET_FILTER): Likewise.
9069
9070 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
9071             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9072
9073         [BZ #19439]
9074         * math/bits/mathcalls.h
9075         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
9076         prototype.
9077         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
9078
9079 2016-01-11  Andreas Schwab  <schwab@suse.de>
9080
9081         [BZ #19253]
9082         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
9083         cache when TZDEFRULES was used.
9084         * time/tst-tzname.c: New file.
9085         * time/Makefile (test): Add tst-tzname.
9086         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
9087         * timezone/Makefile (test-zones): Add $(posixrules-file).
9088         ($(testdata)/$(posixrules-file)): New rule.
9089
9090 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9091
9092         Fix doc quoting problems with Texinfo 5
9093         Without this change, in the info file output, Texinfo 5 quotes code
9094         in text with undirected single quotes 'like this' and generates
9095         code examples that with many PDF readers cannot be cut out of PDFs
9096         and pasted into code.
9097         * manual/libc.texinfo: Configure the libc manual like the GNU
9098         Emacs manual, by using @documentencoding and setting
9099         txicodequoteundirected and txicodequotebacktick.  This way,
9100         Texinfo 5 quotes code in text with directed single quotes ‘like
9101         this’ and produces examples that can be cut out of PDFs.  This
9102         change causes Texinfo 5 to generate info files that contain UTF-8
9103         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
9104         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
9105
9106 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9107
9108         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
9109         __libc_tabort, __libc_tend): New wrappers that enforce compiler
9110         barriers to their respective compiler built-ins.
9111         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
9112         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
9113         * sysdeps/powerpc/sysdep.h: Likewise.
9114         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
9115         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
9116         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
9117
9118 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
9119
9120         * scripts/config.guess: Revert previous shebang change.
9121         * scripts/config.sub: Likewise.
9122         * scripts/mkinstalldirs: Likewise.
9123
9124 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9125
9126         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
9127         PPC_FEATURE2_HAS_IEEE128.
9128         * sysdeps/powerpc/dl-procinfo.c:
9129         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
9130
9131 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
9132
9133         [BZ #19415]
9134         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
9135         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
9136         (_dl_lookup_address): Rewrite using function resolver trampoline.
9137         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
9138         two bits in address.
9139
9140 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
9141
9142         * longlong.h: Change !__SHMEDIA__ to
9143         (!defined (__SHMEDIA__) || !__SHMEDIA__).
9144         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
9145
9146 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
9147             Joseph Myers  <joseph@codesourcery.com>
9148             Mark Shinwell  <shinwell@codesourcery.com>
9149             Andrew Stubbs  <ams@codesourcery.com>
9150             Rich Felker <dalias@libc.org>
9151
9152         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
9153
9154 2016-01-07  Richard Henderson  <rth@redhat.com>
9155
9156         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
9157
9158 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
9159
9160         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
9161         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
9162         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9163         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
9164         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
9165
9166 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
9167             Joseph Myers  <joseph@codesourcery.com>
9168
9169         * timezone/private.h: Update from tzcode 2015g.
9170         * timezone/tzfile.h: Likewise.
9171         * timezone/tzselect.ksh: Likewise.
9172         * timezone/zdump.c: Likewise.
9173         * timezone/zic.c: Likewise.
9174         * timezone/ialloc.c: Remove file.
9175         * timezone/scheck.c: Likewise.
9176         * timezone/Makefile (extra-objs): Remove variable.
9177         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
9178         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
9179         -Wno-maybe-uninitialized.
9180         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
9181         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
9182         (CFLAGS-ialloc.c): Remove variable.
9183         (CFLAGS-scheck.c): Likewise.
9184         * timezone/README: Update list of files from tzcode.
9185
9186 2016-01-07  Khem Raj  <raj.khem@gmail.com>
9187
9188         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
9189         instead of __fxprintf when _LIBC is undefined.
9190
9191 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
9192
9193         * catgets/test-gencat.sh: Remove space after shebang.
9194         * conform/GlibcConform.pm: Likewise.
9195         * conform/check-header-lists.sh: Likewise.
9196         * conform/conformtest.pl: Likewise.
9197         * conform/linknamespace.pl: Likewise.
9198         * conform/list-header-symbols.pl: Likewise.
9199         * debug/catchsegv.sh: Likewise.
9200         * elf/genrtldtbl.awk: Likewise.
9201         * elf/tst-pathopt.sh: Likewise.
9202         * elf/tst-rtld-load-self.sh: Likewise.
9203         * grp/tst_fgetgrent.sh: Likewise.
9204         * iconvdata/gen-8bit-gap-1.sh: Likewise.
9205         * iconvdata/gen-8bit-gap.sh: Likewise.
9206         * iconvdata/gen-8bit.sh: Likewise.
9207         * iconvdata/run-iconv-test.sh: Likewise.
9208         * intl/tst-gettext.sh: Likewise.
9209         * intl/tst-gettext2.sh: Likewise.
9210         * intl/tst-gettext4.sh: Likewise.
9211         * intl/tst-gettext6.sh: Likewise.
9212         * intl/tst-translit.sh: Likewise.
9213         * io/ftwtest-sh: Likewise.
9214         * libio/test-freopen.sh: Likewise.
9215         * locale/gen-translit.pl: Likewise.
9216         * malloc/tst-mtrace.sh: Likewise.
9217         * manual/check-safety.sh: Likewise.
9218         * manual/libc-texinfo.sh: Likewise.
9219         * manual/tsort.awk: Likewise.
9220         * manual/xtract-typefun.awk: Likewise.
9221         * nptl/tst-cancel-wrappers.sh: Likewise.
9222         * nptl/tst-tls6.sh: Likewise.
9223         * posix/globtest.sh: Likewise.
9224         * posix/tst-getconf.sh: Likewise.
9225         * posix/wordexp-tst.sh: Likewise.
9226         * scripts/check-c++-types.sh: Likewise.
9227         * scripts/check-local-headers.sh: Likewise.
9228         * scripts/config.guess: Likewise.
9229         * scripts/config.sub: Likewise.
9230         * scripts/cpp: Likewise.
9231         * scripts/cross-test-ssh.sh: Likewise.
9232         * scripts/documented.sh: Likewise.
9233         * scripts/evaluate-test.sh: Likewise.
9234         * scripts/gen-libc-abis: Likewise.
9235         * scripts/gen-sorted.awk: Likewise.
9236         * scripts/list-fixed-bugs.py: Likewise.
9237         * scripts/merge-test-results.sh: Likewise.
9238         * scripts/mkinstalldirs: Likewise.
9239         * scripts/rellns-sh: Likewise.
9240         * scripts/test-installation.pl: Likewise.
9241         * scripts/update-copyrights: Likewise.
9242         * stdio-common/tst-printf.sh: Likewise.
9243         * stdio-common/tst-unbputc.sh: Likewise.
9244         * stdlib/tst-fmtmsg.sh: Likewise.
9245         * stdlib/tst-setcontext3.sh: Likewise.
9246         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
9247         * sysdeps/unix/make-syscalls.sh: Likewise.
9248
9249 2016-01-06  John David Anglin  <dave.anglin@bell.net>
9250
9251         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
9252         asm stw with atomic_exchange_rel.  Add explanatory comment.
9253         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
9254         Likewise.
9255
9256 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9257
9258         [BZ #19122]
9259         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
9260         * sysdeps/generic/dl-unistd.h: New file.
9261         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
9262
9263 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9264
9265          [BZ #19122]
9266          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
9267          * sysdeps/generic/dl-mman.h: New file.
9268          * sysdeps/mach/hurd/dl-mman.h: Likewise.
9269
9270 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
9271
9272         * manual/texinfo.tex: Update to version 2016-01-04.21 with
9273         trailing whitespace removed.
9274         * scripts/config.guess: Update to version 2016-01-01.
9275         * scripts/config.sub: Update to version 2016-01-01.
9276         * scripts/move-if-change: Update from gnulib.
9277
9278 2016-01-04  Anton Blanchard  <anton@samba.org>
9279
9280         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
9281         for array indices.
9282         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
9283
9284 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
9285
9286         * NEWS: Update copyright dates.
9287         * catgets/gencat.c (print_version): Likewise.
9288         * csu/version.c (banner): Likewise.
9289         * debug/catchsegv.sh: Likewise.
9290         * debug/pcprofiledump.c (print_version): Likewise.
9291         * debug/xtrace.sh (do_version): Likewise.
9292         * elf/ldconfig.c (print_version): Likewise.
9293         * elf/ldd.bash.in: Likewise.
9294         * elf/pldd.c (print_version): Likewise.
9295         * elf/sotruss.sh: Likewise.
9296         * elf/sprof.c (print_version): Likewise.
9297         * iconv/iconv_prog.c (print_version): Likewise.
9298         * iconv/iconvconfig.c (print_version): Likewise.
9299         * locale/programs/locale.c (print_version): Likewise.
9300         * locale/programs/localedef.c (print_version): Likewise.
9301         * login/programs/pt_chown.c (print_version): Likewise.
9302         * malloc/memusage.sh (do_version): Likewise.
9303         * malloc/memusagestat.c (print_version): Likewise.
9304         * malloc/mtrace.pl: Likewise.
9305         * manual/libc.texinfo: Likewise.
9306         * nptl/version.c (banner): Likewise.
9307         * nscd/nscd.c (print_version): Likewise.
9308         * nss/getent.c (print_version): Likewise.
9309         * nss/makedb.c (print_version): Likewise.
9310         * posix/getconf.c (main): Likewise.
9311         * scripts/test-installation.pl: Likewise.
9312         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
9313
9314         * All files with FSF copyright notices: Update copyright dates
9315         using scripts/update-copyrights.
9316         * intl/plural.c: Regenerated.
9317         * locale/programs/charmap-kw.h: Likewise.
9318         * locale/programs/locfile-kw.h: Likewise.
9319
9320 2016-01-02  Helge Deller  <deller@gmx.de>
9321
9322         [BZ #19285]
9323         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
9324         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
9325         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
9326         (MADV_xxK_PAGES): Remove.
9327
9328 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
9329
9330         [BZ #15421]
9331         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
9332         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
9333         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
9334         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
9335
9336 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
9337
9338         [BZ #19408]
9339         * sysdeps/unix/sysv/linux/personality.c: New file.
9340         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
9341         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
9342         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
9343         (sysdep_routines): Add personality.
9344         (tests): Add tst-personality.
9345         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
9346         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
9347         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
9348         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
9349         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
9350         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
9351         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
9352         Likewise.
9353         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
9354         Likewise.
9355         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
9356         Likewise.
9357         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
9358         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
9359         Likewise.
9360
9361 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
9362
9363         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
9364         (PATH_ARM_SYSTYPE): Remove.
9365         (PATH_CPUINFO): Likewise.
9366         (IO_BASE_FOOTBRIDGE): Likewise.
9367         (IO_SHIFT_FOOTBRIDGE): Likewise.
9368         (struct platform): Likewise.
9369         (init_iosys): Remove compatibility code for 2.4 kernels.
9370         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
9371
9372 2015-12-29  Florian Weimer  <fweimer@redhat.com>
9373
9374         * malloc/tst-malloc-thread-fail.c: New file.
9375         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
9376         (tst-malloc-thread-fail): Link against libpthread.
9377
9378 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
9379
9380         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
9381         (get_parser): New function.
9382         (main): New function.
9383
9384 2015-12-29  Rob Wu  <rob@robwu.nl>
9385
9386         [BZ #19369]
9387         * resolv/res_init.c (__res_vinit): Reset defdname before use.
9388
9389 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
9390
9391         [BZ #19270]
9392         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
9393
9394 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
9395
9396         [BZ #15421]
9397         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
9398
9399 2015-12-23  Torvald Riegel  <triegel@redhat.com>
9400
9401         [BZ #13690]
9402         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
9403         after releasing it.
9404         (__lll_robust_unlock): Likewise.
9405         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
9406         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
9407         (lll_robust_unlock): Likewise.
9408         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
9409         Prevent warnings in callers.
9410
9411 2015-12-23  Florian Weimer  <fweimer@redhat.com>
9412
9413         * malloc/arena.c (list_lock): Update comment.
9414
9415 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9416
9417         * sysdeps/powerpc/hwcapinfo.c: Export symbol
9418         __parse_hwcap_and_convert_at_platform to libc.a.
9419
9420 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9421
9422         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
9423         platform and feature support for POWER9.
9424         * sysdeps/powerpc/dl-procinfo.h: Likewise.
9425         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
9426         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
9427         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
9428         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
9429         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
9430         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
9431         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
9432
9433 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9434
9435         Harmonize generic stdio-lock support with nptl
9436
9437         This fixes build when _IO_funlockfile is a macro, fixes build where
9438         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
9439         stack unwind.
9440
9441         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
9442         _IO_release_lock ): Use cleanup attribute on new
9443         _IO_acquire_lock_file variable instead of assuming that
9444         _IO_release_lock will be called.
9445         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
9446         _IO_acquire_lock_needs_exceptions_enabled.
9447         (_IO_acquire_lock_clear_flags2): New macro.
9448
9449 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9450
9451         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
9452
9453 2015-12-21  Florian Weimer  <fweimer@redhat.com>
9454
9455         [BZ #19182]
9456         * malloc/arena.c (list_lock): Document lock ordering requirements.
9457         (free_list_lock): New lock.
9458         (ptmalloc_lock_all): Comment on free_list_lock.
9459         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
9460         (detach_arena): Update comment.  free_list_lock is now needed.
9461         (_int_new_arena): Use free_list_lock around detach_arena call.
9462         Acquire arena lock after list_lock.  Add comment, including FIXME
9463         about incorrect synchronization.
9464         (get_free_list): Switch to free_list_lock.
9465         (reused_arena): Acquire free_list_lock around detach_arena call
9466         and attached threads counter update.  Add two FIXMEs about
9467         incorrect synchronization.
9468         (arena_thread_freeres): Switch to free_list_lock.
9469         * malloc/malloc.c (struct malloc_state): Update comments to
9470         mention free_list_lock.
9471
9472 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
9473
9474         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
9475         Remove functions.
9476         (sloww, sloww1): Accept argument to offset quadrant.
9477         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
9478         quadrant.
9479         (__sin, __cos): Consolidate common code into new functions.
9480         (reduce_sincos_1, do_sincos_1): New functions.
9481         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
9482
9483         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
9484         code to new functions.
9485         (reduce_sincos_2, do_sincos_2): New functions.
9486         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
9487
9488         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
9489         common code for sincos.
9490         (__cos) [!IN_SINCOS]: Likewise.
9491         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
9492         New function.
9493         (__sincos): Use it.
9494
9495 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
9496
9497         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
9498         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
9499         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
9500
9501 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
9502
9503         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
9504         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
9505         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
9506         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
9507         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
9508         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
9509         index_Prefer_No_VZEROUPPER): New feature.
9510         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
9511         Prefer_No_VZEROUPPER for Knights Landing.
9512
9513 015-12-18  Torvald Riegel  <triegel@redhat.com>
9514
9515         * math/atest-exp2.c (mp_exp_m1): Remove.
9516
9517 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9518
9519         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
9520         syscalls.
9521         (__SYSCALL0): New macro.
9522         (__SYSCALL1): Likewise.
9523         (__SYSCALL2): Likewise.
9524         (__SYSCALL3): Likewise.
9525         (__SYSCALL4): Likewise.
9526         (__SYSCALL5): Likewise.
9527         (__SYSCALL6): Likewise.
9528         (__SYSCALL_CONCAT_X): Likewise.
9529         (__SYSCALL_CONCAT): Likewise.
9530         (__SYSCALL_DIST): Likewise.
9531         (__SYSCALL_CALL): Likewise.
9532
9533 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
9534
9535         [BZ #19363]
9536         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
9537
9538 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9539
9540         [BZ #19375]
9541         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
9542         negative subnormals.
9543
9544 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
9545
9546         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9547         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
9548         (INTERNAL_SYSCALL_NCS): Use it.
9549         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
9550
9551 2015-12-16  Florian Weimer  <fweimer@redhat.com>
9552
9553         [BZ #19243]
9554         * malloc/arena.c (get_free_list): Remove assert and adjust
9555         reference count handling.  Add comment about reused_arena
9556         interaction.
9557         (reused_arena): Add comments abount get_free_list interaction.
9558         * malloc/tst-malloc-thread-exit.c: New file.
9559         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
9560         (tst-malloc-thread-exit): Link against libpthread.
9561
9562 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
9563
9564         [BZ #19367]
9565         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
9566         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
9567         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
9568         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
9569         (index_Prefer_MAP_32BIT_EXEC): Likewise.
9570
9571 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
9572
9573         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
9574         Silvermont optimizations for Knights Landing.
9575
9576 2015-12-15  Andreas Schwab  <schwab@suse.de>
9577
9578         [BZ #17197]
9579         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
9580         immediately after emitting SI.
9581         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
9582         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
9583         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
9584         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
9585         * iconvdata/bug-iconv10.c: New file.
9586         * iconvdata/Makefile (tests): Add bug-iconv10.
9587         ($(objpfx)bug-iconv10.out): New rule.
9588
9589 2015-12-15  Florian Weimer  <fweimer@redhat.com>
9590
9591         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
9592         aliasing violation.
9593
9594 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
9595
9596         [BZ #18472]
9597         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
9598         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
9599         conditionals for them.
9600         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
9601         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
9602         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
9603         sys/kdaemon.h.
9604         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
9605         compat-only syscall, obsoleted in glibc 2.23.
9606         (create_module): Likewise.
9607         (get_kernel_syms): Likewise.
9608         (query_module): Likewise.
9609         (uselib): Likewise.
9610         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
9611
9612 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
9613
9614         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
9615         <linux/version.h>.
9616         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
9617         conditional code.
9618         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
9619         and ioshift_name initialization.
9620
9621 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
9622
9623         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
9624         Fix indentation.
9625
9626 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
9627
9628         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
9629
9630 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
9631
9632         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
9633
9634 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
9635             Jakub Wilk  <jwilk@debian.org>
9636
9637         [BZ #19347]
9638         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
9639         to change the group of the device to the tty group.
9640
9641 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
9642
9643         Split large string section; add truncation advice
9644         * manual/examples/strncat.c: Remove.
9645         This example was misleading, as the code would have undefined
9646         behavior if "hello" was longer than SIZE.  Anyway, the manual
9647         shouldn't encourage strncpy+strncat for this sort of thing.
9648         * manual/string.texi (Copying Strings and Arrays): Split into
9649         three sections Copying Strings and Arrays, Concatenating Strings,
9650         and Truncating Strings, as this section was way too long.  All
9651         cross-referenced changed.  Add advice about string-truncation
9652         functions.  Remove misleading strncat example.
9653
9654 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
9655
9656         * manual/nss.texi (NSS Modules Interface): Document
9657         NSS_STATUS_NOTFOUND and SUCCESS.
9658
9659 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
9660
9661         [BZ 18568]
9662         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
9663         201505L, for Unicode 8.
9664
9665 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
9666
9667         * locale/C-translit.h: Regenerate.
9668
9669 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
9670
9671         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
9672         and U+0153.
9673
9674 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
9675
9676         [BZ #19351]
9677         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
9678         expanding log(1+z), compare z rather than its square with epsilon
9679         to determine when to avoid evaluating the expansion.
9680
9681         [BZ #19350]
9682         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
9683         Increase overflow threshold.
9684
9685         [BZ #19349]
9686         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
9687         when small.
9688
9689         * sysdeps/unix/sysv/linux/i386/kernel-features.h
9690         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
9691         New macro.
9692         [__LINUX_KERNEL_VERSION >= 0x040300]
9693         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
9694         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
9695         Likewise.
9696         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
9697         Likewise.
9698         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
9699         Likewise.
9700         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
9701         Likewise.
9702         [__LINUX_KERNEL_VERSION >= 0x040300]
9703         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
9704         [__LINUX_KERNEL_VERSION >= 0x040300]
9705         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
9706         [__LINUX_KERNEL_VERSION >= 0x040300]
9707         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
9708         [__LINUX_KERNEL_VERSION >= 0x040300]
9709         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
9710         [__LINUX_KERNEL_VERSION >= 0x040300]
9711         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
9712         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
9713         Likewise.
9714         [__LINUX_KERNEL_VERSION >= 0x040300]
9715         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
9716         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
9717         Likewise.
9718         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
9719         Likewise.
9720         [__LINUX_KERNEL_VERSION >= 0x040300]
9721         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
9722         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
9723         Likewise.
9724         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
9725         Likewise.
9726         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
9727         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
9728         Likewise.
9729         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
9730         Likewise.
9731         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
9732         Likewise.
9733         [__LINUX_KERNEL_VERSION >= 0x040300]
9734         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
9735         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
9736         Likewise.
9737         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
9738         Likewise.
9739         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
9740         Likewise.
9741         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
9742         Likewise.
9743         [__LINUX_KERNEL_VERSION >= 0x040300]
9744         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
9745         [__LINUX_KERNEL_VERSION >= 0x040300]
9746         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
9747         [__LINUX_KERNEL_VERSION >= 0x040300]
9748         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
9749         [__LINUX_KERNEL_VERSION >= 0x040300]
9750         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
9751         [__LINUX_KERNEL_VERSION >= 0x040300]
9752         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
9753         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
9754         Likewise.
9755         [__LINUX_KERNEL_VERSION >= 0x040300]
9756         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
9757         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
9758         Likewise.
9759         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
9760         Likewise.
9761         [__LINUX_KERNEL_VERSION >= 0x040300]
9762         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
9763         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
9764         Likewise.
9765         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
9766         Likewise.
9767         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9768         (__ASSUME_SOCKET_SYSCALL): Likewise.
9769         (__ASSUME_BIND_SYSCALL): Likewise.
9770         (__ASSUME_CONNECT_SYSCALL): Likewise.
9771         (__ASSUME_LISTEN_SYSCALL): Likewise.
9772         (__ASSUME_ACCEPT_SYSCALL): Likewise.
9773         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
9774         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
9775         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
9776         (__ASSUME_SEND_SYSCALL): Likewise.
9777         (__ASSUME_SENDTO_SYSCALL): Likewise.
9778         (__ASSUME_RECV_SYSCALL): Likewise.
9779         (__ASSUME_RECVFROM_SYSCALL): Likewise.
9780         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
9781         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
9782         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
9783         (__ASSUME_SENDMSG_SYSCALL): Likewise.
9784         (__ASSUME_RECVMSG_SYSCALL): Likewise.
9785         * sysdeps/unix/sysv/linux/sh/kernel-features.h
9786         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
9787         Likewise.
9788         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
9789         Likewise.
9790         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
9791         Likewise.
9792         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
9793         Likewise.
9794         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
9795         Likewise.
9796         [__LINUX_KERNEL_VERSION >= 0x020625]
9797         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
9798         [__LINUX_KERNEL_VERSION >= 0x020625]
9799         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
9800         [__LINUX_KERNEL_VERSION >= 0x020625]
9801         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
9802         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
9803         Likewise.
9804         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
9805         Likewise.
9806         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
9807         Likewise.
9808         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
9809         Likewise.
9810         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
9811         Likewise.
9812         [__LINUX_KERNEL_VERSION >= 0x020625]
9813         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
9814         [__LINUX_KERNEL_VERSION >= 0x020625]
9815         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
9816         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
9817         Likewise.
9818         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
9819         Likewise.
9820
9821 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
9822
9823         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
9824         record the current if the current ABI and CPU support the FP64
9825         extension.
9826         (has-modd-spreg): Define to record the current if the current ABI and
9827         CPU support 32-bit floating point values in odd FPU registers.
9828         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
9829         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
9830         $(has-modd-spreg) equals yes.
9831         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
9832         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
9833         $(has-modd-spreg) equal yes.
9834
9835 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
9836
9837         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
9838         basename.
9839
9840 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
9841
9842         * benchtests/Makefile (bench-math): Move ffs and ffsll...
9843         (bench-string): ... here.
9844         (bench): Add bench-string.
9845         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
9846         to *-benchset to reflect what they are.
9847         (benchset): Adjust.
9848
9849         * benchtests/sincos-inputs: Add inputs from sin-inputs and
9850         cos-inputs.
9851
9852 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
9853
9854         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
9855         __attribute__ ((__simd__)) for vector math function declarations.
9856
9857 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
9858
9859         Fix typo in strncat, wcsncat manual entries
9860         * manual/string.texi (Copying and Concatenation): Fix typos in
9861         sample implementations of strncat and wcsncat, by having them use
9862         the old value of the destination length, not the new one.
9863
9864 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
9865
9866         [BZ #16961]
9867         [BZ #16962]
9868         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
9869         string on the stack for strtod.
9870         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
9871         a string on the stack for strtof.
9872         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
9873         constructing a string on the stack for strtold.
9874         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
9875         __strtold_nan to GLIBC_PRIVATE.
9876         * math/test-nan-overflow.c: New file.
9877         * math/test-nan-payload.c: Likewise.
9878         * math/Makefile (tests): Add test-nan-overflow and
9879         test-nan-payload.
9880
9881 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
9882
9883         Consistency about byte vs character in string.texi
9884         * manual/string.texi (String and Array Utilities):
9885         Distinguish more carefully among bytes, multibyte characters,
9886         and wide characters.  Use "byte" when talking about C 'char',
9887         to distinguish it more clearly from multibyte characters.
9888         Say "wide character" or "multibyte character" instead of
9889         "character", when a wide or multibyte character is intended.
9890         Similarly for "multibyte string" versus "string".
9891         Define these terms more carefully.
9892
9893 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
9894
9895         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
9896         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
9897         Likewise.
9898         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
9899         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
9900         * sysdeps/sh/math_private.h: New file.
9901         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
9902         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
9903         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
9904         long double function name.
9905         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9906         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9907         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9908         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9909         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
9911         Remove __finitel, __isinfl, and __isnanl.
9912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
9913         Likewise.
9914         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9915         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9916         Remove __finitel.
9917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9918         Likewise.
9919         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9920
9921 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
9922
9923         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
9924         installed libmvec_nonshared.a.
9925
9926 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9927
9928         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
9929         (sysdep_routines): Likewise.
9930         (sysdep-rtld-routines): Likewise.
9931         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
9932         [$(subdir) = nptl](tests-static): test-get_hwcap-static
9933         * sysdeps/powerpc/Versions: Added new
9934         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
9935         * sysdeps/powerpc/hwcapinfo.c: New file.
9936         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
9937         and parse hwcap, hwcap2 and platform number information.
9938         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
9939         to store HWCAP+HWCAP2 and platform number.
9940         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
9941         for HWCAP+HWCAP2 and platform number in the TCB.
9942         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
9943         the HWCAP, HWCAP2 and platform number in the TCB.
9944         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
9945         (TLS_INIT_TP): Included calls to add the hwcap and
9946         at_platform values in the TCB in TP initialization.
9947         (TLS_DEFINE_INIT_TP): Likewise.
9948         (THREAD_GET_HWCAP): New macro.
9949         (THREAD_SET_HWCAP): Likewise.
9950         (THREAD_GET_AT_PLATFORM): Likewise.
9951         (THREAD_SET_AT_PLATFORM): Likewise.
9952         * sysdeps/powerpc/powerpc32/dl-machine.h:
9953         (dl_platform_init): New function that calls
9954         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
9955         powerpc32.
9956         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
9957         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
9958         this functionality, static linking case.
9959         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
9960         linking case.
9961         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
9962         __parse_hwcap_and_convert_at_platform for the static linking case.
9963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
9964         Included the new __parse_hwcap_and_convert_at_platform symbol in the
9965         ABI list for GLIBC 2.23.
9966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
9967         Likewise.
9968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
9969         Likewise.
9970
9971 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
9972
9973         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
9974         * configure: Regenerate.
9975         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
9976         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
9977
9978 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
9979
9980         * iconvdata/ibm930.c: Add comment explaining encoding uses.
9981         * iconvdata/ibm933.c: Likewise.
9982         * iconvdata/ibm935.c: Likewise.
9983         * iconvdata/ibm937.c: Likewise.
9984         * iconvdata/ibm939.c: Likewise.
9985
9986 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9987
9988         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
9989         pthread_join.
9990         * nptl/tst-cancel21.c (tf): Likewise.
9991
9992 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
9993
9994         [BZ #19313]
9995         * bits/typesizes.h (__CPU_MASK_TYPE): New.
9996         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
9997         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
9998         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
9999         Likewise.
10000         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
10001         Likewise.
10002         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
10003         Likewise.
10004         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
10005         Likewise.
10006         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
10007         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
10008         unsigned long int with __CPU_MASK_TYPE.
10009
10010 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10011
10012         * sysdeps/aarch64/libm-test-ulps: Regenerated.
10013
10014 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
10015
10016         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
10017         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
10018         t512.x.
10019         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
10020
10021 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
10022
10023         [BZ #19214]
10024         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
10025         argument to return extended model.  Update family and model
10026         with extended family and model when family == 0x0f.
10027         (init_cpu_features): Updated.
10028
10029 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10030
10031         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
10032         signed off_t, so 32bit bigger than 2GiB values are fine actually.
10033
10034         * sysdeps/mach/hurd/mmap64.c: New file.
10035
10036 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
10037
10038         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
10039         rights for its main user thread in NEWTASK.
10040
10041 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
10042
10043         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
10044         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
10045
10046 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
10047
10048         [BZ #14259]
10049         * Makeconfig: Rename localedir to complocaledir.
10050         Rename inst_localedir to inst_complocaledir.
10051         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
10052         * config.make.in: Use complocaledir and libc_cv_complocaledir.
10053         * configure.ac: Use libc_cv_complocaledir.
10054         * configure: Regenerate.
10055         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
10056         -DCOMPLOCALEDIR.
10057         * locale/findlocale.c: Use COMPLOCALEDIR.
10058         * locale/loadarchive.c: Likewise.
10059         * locale/programs/locale.c: Likewise.
10060         * locale/programs/localedef.c: Likewise.
10061         * locale/programs/locarchive.c: Likewise.
10062         * localedata/Makefile: Use inst_complocaledir.
10063         * sysdeps/gnu/configure: Regenerate.
10064         * sysdeps/hppa/configure: Regenerate.
10065         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
10066         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
10067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
10068         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
10069         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
10070         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
10071         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
10072
10073 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
10074
10075         [BZ #19058]
10076         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
10077         AS_NEEDED.
10078         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
10079         workaround.
10080         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
10081         libmvec-static-only-routines): Added new file.
10082         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
10083
10084 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10085
10086         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
10087         of interrupted RPC instead of restoring it.
10088
10089         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
10090         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
10091         libc_hidden_def.
10092         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
10093         into initialized data instead of common. Define rtld_hidden_data_def.
10094         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
10095         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
10096         libc_hidden_def.
10097         (if_freenameindex): Add libc_hidden_weak.
10098         (if_nameindex): Add libc_hidden_weak.
10099         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
10100         __open64.
10101         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
10102         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
10103         * sysdeps/mach/nanosleep.c: Include <time.h>
10104         (__nanosleep): Rename to __libc_nanosleep.
10105         (__nanosleep): Add weak_alias.
10106         (nanosleep): Update alias.
10107
10108 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
10109
10110         * stdlib/strtod_nan.c: New file.
10111         * stdlib/strtod_nan_double.h: Likewise.
10112         * stdlib/strtod_nan_float.h: Likewise.
10113         * stdlib/strtod_nan_main.c: Likewise.
10114         * stdlib/strtod_nan_narrow.h: Likewise.
10115         * stdlib/strtod_nan_wide.h: Likewise.
10116         * stdlib/strtof_nan.c: Likewise.
10117         * stdlib/strtold_nan.c: Likewise.
10118         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
10119         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
10120         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
10121         * wcsmbs/wcstod_nan.c: Likewise.
10122         * wcsmbs/wcstof_nan.c: Likewise.
10123         * wcsmbs/wcstold_nan.c: Likewise.
10124         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
10125         strtold_nan.
10126         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
10127         wcstof_nan.
10128         * include/stdlib.h (__strtof_nan): Declare and use
10129         libc_hidden_proto.
10130         (__strtod_nan): Likewise.
10131         (__strtold_nan): Likewise.
10132         (__wcstof_nan): Likewise.
10133         (__wcstod_nan): Likewise.
10134         (__wcstold_nan): Likewise.
10135         * include/wchar.h (____wcstoull_l_internal): Declare.
10136         * stdlib/strtod_l.c: Do not include <ieee754.h>.
10137         (____strtoull_l_internal): Remove declaration.
10138         (STRTOF_NAN): Define macro.
10139         (SET_MANTISSA): Remove macro.
10140         (STRTOULL): Likewise.
10141         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
10142         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
10143         (STRTOF_NAN): Define macro.
10144         (SET_MANTISSA): Remove macro.
10145         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
10146         (SET_MANTISSA): Remove macro.
10147         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
10148         macro.
10149         (SET_MANTISSA): Remove macro.
10150         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
10151         macro.
10152         (SET_MANTISSA): Remove macro.
10153         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
10154         (SET_MANTISSA): Remove macro.
10155         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
10156         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
10157         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
10158
10159         [BZ #19266]
10160         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
10161         upper case and lower case letters inside NAN(), not using TOLOWER.
10162         * stdlib/tst-strtod-nan-locale-main.c: New file.
10163         * stdlib/tst-strtod-nan-locale.c: Likewise.
10164         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
10165         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
10166         Depend on $(gen-locales).
10167         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
10168         * wcsmbs/tst-wcstod-nan-locale.c: New file.
10169         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
10170         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
10171         Depend on $(gen-locales).
10172         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
10173
10174 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
10175
10176         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
10177
10178         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
10179         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
10180         __finitel, __isinfl, and __isnanl.
10181         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
10182         Likewise.
10183         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
10184         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
10185         __finitel.
10186         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10187         Likewise.
10188         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10189
10190 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
10191
10192         * malloc/memusage.c (me): Remove redundant getenv call.
10193
10194 2015-10-24  Florian Weimer  <fweimer@redhat.com>
10195
10196         [BZ #19143]
10197         [BZ #19164]
10198         * nptl/check-cpuset.h: Remove.
10199         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
10200         Remove CPU set size check.
10201         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
10202         Likewise.
10203         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
10204         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
10205         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
10206         (__pthread_setaffinity_new): Remove CPU set size check.
10207         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10208         (__kernel_cpumask_size): Remove.
10209         (__sched_setaffinity_new): Remove CPU set size check.
10210         * manual/threads.texi (Default Thread Attributes): Remove stale
10211         reference to check_cpuset_attr, determine_cpumask_size in comment.
10212         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
10213         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
10214         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
10215         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
10216         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
10217         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
10218         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
10219         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
10220         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
10221         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
10222         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
10223         skeleton test file.
10224         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
10225         tst-affinity-pid.
10226
10227 2015-11-24  Florian Weimer  <fweimer@redhat.com>
10228
10229         * scripts/update-abilist.sh: New file.
10230         * Makefile (+subdir_targets): Add subdir_update-all-abi.
10231         * Makerules (update-all-abi-%, update-all-abi)
10232         (subdir_update-all-abi): New targets.
10233         * elf/Makefile (update-all-abi): New target.
10234
10235 2015-11-24  Florian Weimer  <fweimer@redhat.com>
10236
10237         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
10238         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
10239         (__libc_lock_define_initialized): Use it.
10240         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
10241         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
10242         * malloc/malloc.c (main_arena): Likewise.
10243         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
10244         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
10245
10246 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
10247
10248         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
10249         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
10250         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
10251         (PTRACE_O_MASK): Update value.
10252         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
10253         New value in enum __ptrace_setoptions.
10254         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
10255         (PTRACE_O_MASK): Update value.
10256         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
10257         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
10258         (PTRACE_O_MASK): Update value.
10259         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
10260         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
10261         (PTRACE_O_MASK): Update value.
10262         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
10263         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
10264         (PTRACE_O_MASK): Update value.
10265         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
10266         New value in enum __ptrace_setoptions.
10267         (PTRACE_O_MASK): Update value.
10268         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
10269         New value in enum __ptrace_setoptions.
10270         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
10271         (PTRACE_O_MASK): Update value.
10272
10273         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
10274         New macro.
10275         (PACKET_AUXDATA): Likewise.
10276         (PACKET_ORIGDEV): Likewise.
10277         (PACKET_VERSION): Likewise.
10278         (PACKET_HDRLEN): Likewise.
10279         (PACKET_RESERVE): Likewise.
10280         (PACKET_TX_RING): Likewise.
10281         (PACKET_LOSS): Likewise.
10282         (PACKET_VNET_HDR): Likewise.
10283         (PACKET_TX_TIMESTAMP): Likewise.
10284         (PACKET_TIMESTAMP): Likewise.
10285         (PACKET_FANOUT): Likewise.
10286         (PACKET_TX_HAS_OFF): Likewise.
10287         (PACKET_QDISC_BYPASS): Likewise.
10288         (PACKET_ROLLOVER_STATS): Likewise.
10289         (PACKET_FANOUT_DATA): Likewise.
10290         (PACKET_MR_UNICAST): Likewise.
10291
10292         [BZ #19242]
10293         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
10294         (TOUPPER): Likewise.
10295         * stdlib/tst-strtol-locale-main.c: New file.
10296         * stdlib/tst-strtol-locale.c: Likewise.
10297         * stdlib/Makefile (tests): Add tst-strtol-locale.
10298         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
10299         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
10300         Depend on $(gen-locales).
10301         * wcsmbs/tst-wcstol-locale.c: New file.
10302         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
10303         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
10304         tr_TR.ISO-8859-9.
10305         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
10306         Depend on $(gen-locales).
10307
10308 2015-11-20  Roland McGrath  <roland@hack.frob.com>
10309
10310         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
10311         __glibc_likely instead of __builtin_expect.  After falling back to
10312         dyncode_create in a non-ET_DYN case, use the allocate_code_data
10313         system interface to register the code pages as occupied.
10314
10315 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
10316
10317         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10318         [!ARM_MATH_PRIVATE_H].
10319         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
10320         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10321         [!HPPA_MATH_PRIVATE_H].
10322         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
10323         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
10324         to [!I386_MATH_PRIVATE_H].
10325         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
10326         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
10327         Change guard to [!M68K_MATH_PRIVATE_H].
10328         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
10329         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
10330         guard to [!MICROBLAZE_MATH_PRIVATE_H].
10331         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
10332         macro.
10333         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10334         [!MIPS_MATH_PRIVATE_H].
10335         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
10336         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10337         [!NIO2_MATH_PRIVATE_H].
10338         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
10339         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10340         [!TILE_MATH_PRIVATE_H].
10341         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
10342
10343         [BZ #15421]
10344         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
10345         initialize with 0 and define as weak alias of __signgam.
10346         * include/math.h [!_ISOMAC] (__signgam): Declare.
10347         * math/Makefile (libm-calls): Add w_lgamma_compat.
10348         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
10349         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
10350         test-signgam-ullong-init.
10351         (tests-static): Add test-signgam-uchar-static,
10352         test-signgam-uchar-init-static, test-signgam-uint-static,
10353         test-signgam-uint-init-static, test-signgam-ullong-static and
10354         test-signgam-ullong-init-static.
10355         (CFLAGS-test-signgam-uchar.c): New variable.
10356         (CFLAGS-test-signgam-uchar-init.c): Likewise.
10357         (CFLAGS-test-signgam-uchar-static.c): Likewise.
10358         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
10359         (CFLAGS-test-signgam-uint.c): Likewise.
10360         (CFLAGS-test-signgam-uint-init.c): Likewise.
10361         (CFLAGS-test-signgam-uint-static.c): Likewise.
10362         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
10363         (CFLAGS-test-signgam-ullong.c): Likewise.
10364         (CFLAGS-test-signgam-ullong-init.c): Likewise.
10365         (CFLAGS-test-signgam-ullong-static.c): Likewise.
10366         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
10367         * math/Versions (libm): Add GLIBC_2.23.
10368         * math/lgamma-compat.h: New file.
10369         * math/test-signgam-main.c: Likewise.
10370         * math/test-signgam-uchar-init-static.c: Likewise.
10371         * math/test-signgam-uchar-init.c: Likewise.
10372         * math/test-signgam-uchar-static.c: Likewise.
10373         * math/test-signgam-uchar.c: Likewise.
10374         * math/test-signgam-uint-init-static.c: Likewise.
10375         * math/test-signgam-uint-init.c: Likewise.
10376         * math/test-signgam-uint-static.c: Likewise.
10377         * math/test-signgam-uint.c: Likewise.
10378         * math/test-signgam-ullong-init-static.c: Likewise.
10379         * math/test-signgam-ullong-init.c: Likewise.
10380         * math/test-signgam-ullong-static.c: Likewise.
10381         * math/test-signgam-ullong.c: Likewise.
10382         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
10383         wrapper of w_lgamma_main.c.
10384         * math/w_lgamma_compat.c: New file.
10385         * math/w_lgamma_compatf.c: Likewise.
10386         * math/w_lgamma_compatl.c: Likewise.
10387         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
10388         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
10389         defining compatibility symbols.
10390         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
10391         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
10392         wrapper of w_lgammaf_main.c.
10393         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
10394         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
10395         defining compatibility symbols.
10396         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
10397         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
10398         wrapper of w_lgammal_main.c.
10399         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
10400         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
10401         defining compatibility symbols.
10402         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
10403         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
10404         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
10405         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
10406         <lgamma-compat.h>.
10407         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
10408         (__ieee754_gamma): Define as alias.
10409         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
10410         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
10411         <lgamma-compat.h>.
10412         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
10413         (__ieee754_gammaf): Define as alias.
10414         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
10415         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
10416         <lgamma-compat.h>.
10417         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
10418         (__ieee754_gammal): Define as alias.
10419         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
10420         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
10421         <math/w_lgamma_compat.c>.
10422         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
10423         Define as alias of __lgamma_compat and use in defining lgammal.
10424         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
10425         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
10426         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
10427         (USE_AS_COMPAT): New macro.
10428         (LGAMMA_OLD_VER): Undefine and redefine.
10429         (lgammal): Do not define here.
10430         (gammal): Only define here if [GAMMA_ALIAS].
10431         * conform/linknamespace.pl (@whitelist): Remove signgam.
10432         * sysdeps/nacl/libm.abilist: Update.
10433         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10434         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10435         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10436         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10437         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10438         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10439         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10440         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10441         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10442         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10443         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10444         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10446         Likewise.
10447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10448         Likewise.
10449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10450         Likewise.
10451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10452         Likewise.
10453         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10454         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10455         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10456         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10457         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10458         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10459         Likewise.
10460         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10461         Likewise.
10462         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10463         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10464         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10465
10466 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10467
10468         [BZ #16364]
10469         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
10470         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
10471
10472 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
10473
10474         * sysdeps/s390/fpu/bits/mathinline.h:
10475         Use __asm__ [__volatile__] instead of asm [volatile].
10476         * sysdeps/s390/abort-instr.h: Likewise.
10477         * sysdeps/s390/atomic-machine.h: Likewise.
10478         * sysdeps/s390/bits/string.h: Likewise.
10479         * sysdeps/s390/dl-tls.h: Likewise.
10480         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
10481         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
10482         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
10483         * sysdeps/s390/fpu/fesetround.c: Likewise.
10484         * sysdeps/s390/fpu/fpu_control.h: Likewise.
10485         * sysdeps/s390/fpu/s_fma.c: Likewise.
10486         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
10487         * sysdeps/s390/memusage.h: Likewise.
10488         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
10489         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
10490         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
10491         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
10492         * sysdeps/s390/nptl/tls.h: Likewise.
10493         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
10494         * sysdeps/s390/s390-32/backtrace.c: Likewise.
10495         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10496         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
10497         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
10498         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
10499         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
10500         * sysdeps/s390/s390-64/backtrace.c: Likewise.
10501         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10502         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
10503         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
10504         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
10505         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
10506         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
10507         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
10508         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
10509         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
10510         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
10511         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
10512         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10513         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
10514         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10515         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
10516
10517 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10518             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10519
10520         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
10521         Add lwarx hint, and use macro for acquire instruction.
10522         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
10523         Likewise.
10524         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
10525         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
10526         update to use new atomic macros.
10527
10528 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10529
10530         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10531         (__lll_trylock_elision): Fix setting of adapt_count.
10532         * sysdeps/unix/sysv/linux/powerpc/htm.h
10533         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
10534         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
10535         (_ABORT_SYSCALL): Renumber, and clarify definition.
10536         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
10537
10538 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10539
10540         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
10541         after system headers to prevent MIN/MAX redefinition.  Define
10542         HAVE_ALLOCA to preserve builtin alloca usage.
10543
10544 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
10545
10546         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
10547         static and don't set or restore rounding.
10548         (__cos)[IN_SINCOS]: Likewise.
10549         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
10550         (__sincos): Set and restore rounding mode.  Remove check for infinite
10551         or NaN input.
10552
10553         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
10554
10555         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
10556         as used.
10557
10558 2015-11-16  Florian Weimer  <fweimer@redhat.com>
10559
10560         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
10561
10562 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
10563
10564         * config.make.in (have-glob-dat-reloc): New.
10565         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
10566         target supports GLOB_DAT relocaton. AC_SUBST.
10567         * configure: Regenerated.
10568         * elf/Makefile (tests): Add tst-prelink.
10569         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
10570         (tst-prelink-ENV): New.
10571         ($(objpfx)tst-prelink-conflict.out): Likewise.
10572         ($(objpfx)tst-prelink-cmp.out): Likewise.
10573         * sysdeps/x86/tst-prelink.c: Moved to ...
10574         * elf/tst-prelink.c: Here.
10575         * sysdeps/x86/tst-prelink.exp: Moved to ...
10576         * elf/tst-prelink.exp: Here.
10577         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
10578         (tst-prelink-ENV): Removed.
10579         ($(objpfx)tst-prelink-conflict.out): Likewise.
10580         ($(objpfx)tst-prelink-cmp.out): Likewise.
10581         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
10582
10583 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
10584
10585         [BZ #14551]
10586         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
10587         (__mpn_construct_long_double): If high part overflows to infinity,
10588         set errno and recompute overflowed result of the correct sign.
10589         * sysdeps/ieee754/ldbl-128ibm/Makefile
10590         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
10591         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
10592         $(libm).
10593         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
10594
10595 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
10596
10597         [BZ #15479]
10598         [BZ #19238]
10599         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
10600         floating-point state after first operation on input.  Restore full
10601         state rather than just rounding mode.
10602         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
10603         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
10604         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
10605
10606         [BZ #19235]
10607         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
10608         add 0.5 to integer arguments.
10609         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
10610         Likewise.
10611         (.LC2): New object.
10612
10613 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
10614
10615         * scripts/pylintrc (reports): Set to no.
10616
10617 2015-11-10  Roland McGrath  <roland@hack.frob.com>
10618
10619         * elf/dl-load.c (open_verify): Take new argument FD.
10620         Skip __open call if passed FD is not -1.
10621         (_dl_map_object, open_path): Update callers.
10622         * elf/dl-sysdep-open.h: New file.
10623         * elf/dl-load.c: Include it.
10624         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
10625         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
10626         * sysdeps/nacl/dl-sysdep-open.h: New file.
10627         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
10628         from libc to rtld.
10629
10630 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
10631
10632         [BZ #19228]
10633         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
10634         and restore full floating-point state.
10635         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
10636         Likewise.
10637         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
10638         Likewise.
10639         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
10640         Likewise.
10641         * math/test-nearbyint-except-2.c: New file.
10642         * math/Makefile (tests): Add test-nearbyint-except-2.
10643
10644 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
10645
10646         [BZ #19178]
10647         * sysdeps/x86/Makefile (tests): Add tst-prelink.
10648         (tst-prelink-ENV): New.
10649         ($(objpfx)tst-prelink-conflict.out): Likewise.
10650         ($(objpfx)tst-prelink-cmp.out): Likewise.
10651         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
10652         * sysdeps/x86/tst-prelink.c: New file.
10653         * sysdeps/x86/tst-prelink.exp: Likewise.
10654
10655 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
10656
10657         * math/auto-libm-test-in: Add another test of pow.
10658         * math/auto-libm-test-out: Regenerated.
10659         * math/libm-test.inc (pow_test_data): Add another test.
10660
10661 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10662
10663         [BZ #19219]
10664         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
10665         weak_alias to nearbyintl.
10666
10667 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
10668
10669         * sysdeps/aarch64/bits/string.h: New file.
10670         (_STRING_ARCH_unaligned): Define.
10671
10672 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
10673
10674         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
10675         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
10676         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
10677         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
10678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
10679
10680 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
10681
10682         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
10683         for original name of the DSO.  Add it to the name list of the DSO
10684         if it is actually given.
10685         (_dl_map_object): Keep track of whether an audit module rewrote
10686         the file name.  If yes, pass the original name to
10687         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
10688         debugging is enabled, log the change of the file name.
10689         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
10690         _dl_map_object_from_fd.
10691         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
10692         * elf/tst-audit11.c: New file
10693         * elf/tst-auditmod11.c: New file.
10694         * elf/tst-audit11mod1.c: New file.
10695         * elf/tst-audit11mod2.c: New file.
10696         * elf/tst-audit11mod2.map: New file.
10697         * elf/tst-audit12.c: New file
10698         * elf/tst-auditmod12.c: New file.
10699         * elf/tst-audit12mod1.c: New file.
10700         * elf/tst-audit12mod2.c: New file.
10701         * elf/tst-audit12mod2.map: New file.
10702         * elf/tst-audit12mod3.c: New file.
10703
10704 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
10705
10706         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
10707         Don't create weak aliases,
10708         because versioned symbols are created later.
10709         * sysdeps/s390/s390-32/setjmp.S
10710         (setjmp, _setjmp): Remove weak and rename to an unique name
10711         in SHARED case due to existing versioned symbols.
10712         * sysdeps/s390/s390-64/setjmp.S: Likewise.
10713         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
10714         (getcontext): Create weak alias only in non SHARED case.
10715         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
10716
10717 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
10718
10719         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
10720         (__ASSUME_*_SYSCALL) Define new macros.
10721         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
10722         Remove socketcall syscalls.
10723         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
10724         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
10725         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
10726         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
10727         * sysdeps/unix/sysv/linux/send.c (__libc_send):
10728         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
10729
10730 2015-11-09  Florian Weimer  <fweimer@redhat.com>
10731
10732         [BZ #12926]
10733         Terminate process on invalid netlink response.
10734         * sysdeps/unix/sysv/linux/netlinkaccess.h
10735         (__netlink_assert_response): Declare.
10736         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
10737         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
10738         (sysdep_routines): Add netlink_assert_response.
10739         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
10740         __netlink_assert_response.
10741         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
10742         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
10743         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
10744         __netlink_assert_response.
10745
10746 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10747
10748         [BZ #19178]
10749         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
10750         (RTYPE_CLASS_PLT): Likewise.
10751         (RTYPE_CLASS_COPY): Likewise.
10752         (RTYPE_CLASS_TLS): Likewise.
10753         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
10754         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
10755         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
10756         DL_DEBUG_PRELINK.
10757
10758 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
10759
10760         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
10761         calls with argument -0.5.
10762         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
10763
10764         * configure.ac (libc_cv_z_nodelete): Remove configure test.
10765         (libc_cv_z_nodlopen): Likewise.
10766         (libc_cv_z_initfirst): Likewise.
10767         * configure: Regenerated.
10768
10769 2015-11-06  Florian Weimer  <fweimer@redhat.com>
10770
10771         Simplify abilist format to be line-based.
10772         * scripts/abilist.awk: Collect descriptors in the descs variable.
10773         (emit): Write descs variable and sort it
10774         externally, with sort.
10775         * sysdeps/**/*.abilist: Convert to new format.
10776
10777 2015-11-06  Mark Wielaard  <mjw@redhat.com>
10778
10779         [BZ #11460]
10780         * io/Makefile (routines): Add fts64.
10781         (tests): Add tst-fts and tst-fts-lfs.
10782         (CFLAGS-fts64.c): New.
10783         * io/Versions (GLIBC_2.23): New.
10784         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
10785         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
10786         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
10787         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
10788         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
10789         (FTSENT64): Likewise.
10790         (fts64_children): Likewise.
10791         (fts64_close): Likewise.
10792         (fts64_open): Likewise.
10793         (fts64_read): Likewise.
10794         (fts64_set): Likewise.
10795         * io/fts64.c: New file.
10796         * io/tst-fts.c: New test.
10797         * io/tst-fts-lfs.c: Likewise.
10798         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
10799         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
10800         fts64_set.
10801         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10802         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10803         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10804         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10805         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10806         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10807         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10808         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10809         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10810         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10811         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10812         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10813         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10815         Likewise.
10816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10817         Likewise.
10818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10820         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10821         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10822         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10823         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10824         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10825         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
10826         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
10827         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
10828         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10829         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10830         * sysdeps/wordsize-64/fts.c: New file.
10831         * sysdeps/wordsize-64/fts64.c: Likewise.
10832         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
10833         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
10834         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
10835         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
10836
10837 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
10838
10839         * math/libm-test.inc (NON_FINITE): New macro.
10840         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
10841         * math/gen-libm-test.pl (show_exceptions): Add argument
10842         $non_finite.
10843         (parse_args): Update call to show_exceptions.
10844         * math/test-math-finite.h: New file.
10845         * math/test-math-no-finite.h: Likewise.
10846         * math/test-double-finite.c: Likewise.
10847         * math/test-float-finite.c: Likewise.
10848         * math/test-ldouble-finite.c: Likewise.
10849         * math/test-double.c: Include "test-math-no-finite.h".
10850         * math/test-float.c: Include "test-math-no-finite.h".
10851         * math/test-ldouble.c: Include "test-math-no-finite.h".
10852         * math/test-math-inline.h (TEST_FINITE): New macro.
10853         * math/test-math-vector.h (TEST_FINITE): Likewise.
10854         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
10855         (libm-tests): Add test-float-finite and test-double-finite.
10856         ($(objpfx)test-float-finite.o): New dependency on
10857         $(objpfx)libm-test.stmp.
10858         ($(objpfx)test-double-finite.o): Likewise.
10859         ($(objpfx)test-ldouble-finite.o): Likewise.
10860         (libm-test-no-inline-cflags): New variable.
10861         (libm-test-finite-cflags): Likewise.
10862         (CFLAGS-test-float-finite.c): Likewise.
10863         (CFLAGS-test-double-finite.c): Likewise.
10864         (CFLAGS-test-ldouble-finite.c): Likewise.
10865         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
10866         (CFLAGS-test-double.c): Likewise.
10867         (CFLAGS-test-ldouble.c): Likewise.
10868
10869 2015-11-05  Roland McGrath  <roland@hack.frob.com>
10870
10871         * io/fcntl.c (__fcntl): Add ... to prototype.
10872         * misc/ioctl.c (__ioctl): Likewise.
10873         * misc/syscall.c (syscall): Likewise.
10874
10875 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
10876
10877         * scripts/list-fixed-bugs.py: New file.
10878
10879         [BZ #19213]
10880         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
10881         returned for argument 1.
10882         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
10883         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
10884         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
10885         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
10886         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
10887         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
10888
10889         [BZ #19211]
10890         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
10891         __USE_XOPEN], not if [!__USE_ISOC99].
10892         (lgammaf): Likewise.
10893         (lgammal): Likewise.
10894         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
10895         (gammaf): Likewise.
10896         (gammal): Likewise.
10897         * math/test-signgam-finite-c11.c: New file.
10898         * math/test-signgam-finite-c99.c: Likewise.
10899         * math/test-signgam-finite.c: Likewise.
10900         * math/Makefile (tests): Add test-signgam-finite,
10901         test-signgam-finite-c99 and test-signgam-finite-c11.
10902         (CFLAGS-test-signgam-finite.c): New variable.
10903         (CFLAGS-test-signgam-finite-c99.c): Likewise.
10904         (CFLAGS-test-signgam-finite-c11.c): Likewise.
10905
10906         [BZ #19212]
10907         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
10908         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
10909         500].
10910         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
10911         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
10912         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
10913         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
10914         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
10915         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
10916         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
10917         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
10918         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
10919         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
10920
10921         [BZ #19209]
10922         * math/bits/math-finite.h (ldexp): Remove declaration.
10923         (ldexpf): Likewise.
10924         (ldexpl): Likewise.
10925
10926         [BZ #19205]
10927         * math/bits/math-finite.h (acosf): Condition declaration on
10928         [__USE_ISOC99].
10929         (acosl): Likewise.
10930         (acoshf): Likewise.
10931         (acoshl): Likewise.
10932         (asinf): Likewise.
10933         (asinl): Likewise.
10934         (atan2f): Likewise.
10935         (atan2l): Likewise.
10936         (atanhf): Likewise.
10937         (atanhl): Likewise.
10938         (coshf): Likewise.
10939         (coshl): Likewise.
10940         (expf): Likewise.
10941         (expl): Likewise.
10942         (fmodf): Likewise.
10943         (fmodl): Likewise.
10944         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
10945         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
10946         (j0l): Likewise.
10947         (y0f): Likewise.
10948         (y0l): Likewise.
10949         (j1f): Likewise.
10950         (j1l): Likewise.
10951         (y1f): Likewise.
10952         (y1l): Likewise.
10953         (jnf): Likewise.
10954         (jnl): Likewise.
10955         (ynf): Likewise.
10956         (ynl): Likewise.
10957         (lgammaf_r): Condition declaration on [__USE_ISOC99].
10958         (lgammal_r): Likewise.
10959         (__lgamma_r_finite): New declaration.
10960         (__lgammaf_r_finite): Likewise.
10961         (__lgammal_r_finite): Likewise.
10962         (lgamma): Use __lgamma_r_finite.
10963         (lgammaf): Condition definition on [__USE_ISOC99].  Use
10964         __lgammaf_r_finite.
10965         (lgammal): Condition definition on [__USE_ISOC99].  Use
10966         __lgammal_r_finite.
10967         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
10968         __lgamma_r_finite.
10969         (gammaf): Condition definition on [__USE_ISOC99].  Use
10970         __lgammaf_r_finite.
10971         (gammal): Condition definition on [__USE_ISOC99].  Use
10972         __lgammal_r_finite.
10973         (logf): Condition declaration on [__USE_ISOC99].
10974         (logl): Likewise.
10975         (log10f): Likewise.
10976         (log10l): Likewise.
10977         (ldexpf): Likewise.
10978         (ldexpl): Likewise.
10979         (powf): Likewise.
10980         (powl): Likewise.
10981         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
10982         __USE_ISOC99].
10983         (remainderf): Condition declaration on [__USE_ISOC99].
10984         (remainderl): Likewise.
10985         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
10986         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
10987         (scalbl): Likewise.
10988         (sinhf): Condition declaration on [__USE_ISOC99].
10989         (sinhl): Likewise.
10990         (sqrtf): Likewise.
10991         (sqrtl): Likewise.
10992
10993 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
10994
10995         * sysdeps/arm/atomic-machine.h
10996         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
10997         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
10998         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
10999         Remove conditional code.
11000         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
11001         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
11002         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
11003         Change conditional to [__ASSEMBLER__].
11004         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
11005         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
11006         [!__ASSEMBLER__].
11007         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
11008         code.
11009         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
11010         conditional macro definitions.
11011         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
11012         (__arch_compare_and_exchange_val_16_acq): Likewise.
11013         (__arch_compare_and_exchange_val_32_acq): Likewise.
11014         (atomic_exchange_and_add): Likewise.
11015         (atomic_add): Likewise.
11016         (atomic_add_negative): Likewise.
11017         (atomic_add_zero): Likewise.
11018         (atomic_bit_set): Likewise.
11019         (atomic_bit_test_set): Likewise.
11020         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
11021         code unconditional.
11022         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11023
11024         * math/test-math-errno.h: New file.
11025         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
11026         empty.
11027         (TEST_ERRNO): New macro.
11028         (TEST_EXCEPTIONS): Likewise.
11029         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
11030         (TEST_EXCEPTIONS): Likewise.
11031         * math/test-math-vector.h (TEST_ERRNO): Likewise.
11032         * math/test-double.c: Include "test-math-errno.h".
11033         * math/test-float.c: Likewise.
11034         * math/test-ldouble.c: Likewise.
11035         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
11036         code unconditional.
11037         (test_exceptions): Only run code if TEST_EXCEPTIONS.
11038         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
11039         unconditional.
11040         (test_errno): Only run code if TEST_ERRNO.
11041         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
11042
11043 2015-11-04  Florian Weimer  <fweimer@redhat.com>
11044
11045         * nptl/tst-once5.cc: Remove attribution.
11046
11047 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
11048
11049         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
11050         sqrt, tan, tanh, y0, y1 and yn.
11051         * math/auto-libm-test-out: Regenerated.
11052         * math/libm-test.inc (scalb_test_data): Add more tests.
11053         (scalbn_test_data): Likewise.
11054         (scalbln_test_data): Likewise.
11055         (signbit_test_data): Likewise.
11056         (sin_test_data): Likewise.
11057         (sincos_test_data): Likewise.
11058         (sinh_test_data): Likewise.
11059         (sqrt_test_data): Likewise.
11060         (tan_test_data): Likewise.
11061         (tanh_test_data): Likewise.
11062         (tgamma_test_data): Likewise.
11063         (y0_test_data): Likewise.
11064         (y1_test_data): Likewise.
11065         (yn_test_data): Likewise.
11066         (significand_test_data): Likewise.
11067         * sysdeps/i386/fpu/libm-test-ulps: Update.
11068
11069 2015-11-03  David Kastrup  <dak@gnu.org>
11070
11071         [BZ #18604]
11072         * assert/assert.h (assert): Don't macro-expand failed assertion
11073         expression in error message.
11074         * malloc/malloc.c (assert): Likewise.
11075
11076 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
11077
11078         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
11079         test.
11080         * configure: Regenerated.
11081
11082 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
11083
11084         * math/libm-test.inc (modf_test_data): Add more tests.
11085         (nearbyint_test_data): Likewise.
11086         (nextafter_test_data): Likewise.
11087         (nexttoward_test_data): Likewise.
11088         (pow_test_data): Likewise.
11089         (remainder_test_data): Likewise.
11090         (remquo_test_data): Likewise.
11091         (rint_test_data): Likewise.
11092
11093         [BZ #19201]
11094         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
11095         Check for zero remainder in case of large exponents and ensure
11096         correct sign of result in that case.
11097         * math/libm-test.inc (remainder_test_data): Add more tests.
11098
11099         [BZ #6799]
11100         * math/s_nextafter.c: Include <errno.h>.
11101         (__nextafter): Set errno on overflow and underflow.
11102         * math/s_nexttowardf.c: Include <errno.h>.
11103         (__nexttowardf): Set errno on overflow and underflow.
11104         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
11105         (__nextafterl): Set errno on overflow and underflow.
11106         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
11107         (__nexttoward): Set errno on overflow and underflow.
11108         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
11109         (__nexttowardf): Set errno on overflow and underflow.
11110         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
11111         (__nextafterf): Set errno on overflow and underflow.
11112         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
11113         (__nextafterl): Set errno on overflow and underflow.
11114         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
11115         (__nexttoward): Set errno on overflow and underflow.
11116         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
11117         (__nexttowardf): Set errno on overflow and underflow.
11118         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
11119         (__nextafterl): Set errno on overflow and underflow.
11120         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
11121         (__nexttoward): Set errno on overflow and underflow.
11122         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
11123         (__nexttowardf): Set errno on overflow and underflow.
11124         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
11125         (__nexttoward): Set errno on overflow and underflow.
11126         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
11127         (__nexttowardf): Set errno on overflow and underflow.
11128         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
11129         (__nldbl_nexttowardf): Set errno on overflow and underflow.
11130         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
11131         (__nextafterl): Set errno on overflow and underflow.
11132         * math/libm-test.inc (nextafter_test_data): Do not allow errno
11133         setting to be missing on overflow.  Add more tests.
11134         (nexttoward_test_data): Likewise.
11135
11136         * configure.ac (libc_cv_initfini_array): Remove configure test.
11137         * configure: Regenerated.
11138
11139 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
11140
11141         [BZ #19189]
11142         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
11143         non-finite argument handle arguments with negative sign.
11144
11145         * math/libm-test.inc (j0_test_data): Do not test sign of zero
11146         result from infinite argument.
11147         (j1_test_data): Likewise.
11148         (jn_test_data): Likewise.
11149         (y0_test_data): Likewise.
11150         (y1_test_data): Likewise.
11151         (yn_test_data): Likewise.
11152
11153         [BZ #16171]
11154         * math/w_remainder.c (drem): Define as weak alias of __remainder.
11155         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
11156         * math/w_remainderf.c (dremf): Define as weak alias of
11157         __remainderf.
11158         * math/w_remainderl.c (dreml): Define as weak alias of
11159         __remainderl.
11160         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
11161         __remainder.
11162         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
11163         __remainderf.
11164         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
11165         __remainderl.
11166         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
11167         weak alias of remainderl.
11168         * sysdeps/ieee754/ldbl-opt/w_remainder.c
11169         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
11170         alias of __remainder.
11171         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
11172         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
11173         strong alias of __remainderl.
11174         (dreml): Use long_double_symbol.
11175         * math/Makefile (libm-calls): Remove w_drem.
11176         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
11177         (CFLAGS-nldbl-drem.c): Remove variable.
11178         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
11179         * math/w_drem.c: Remove file.
11180         * math/w_dremf.c: Likewise.
11181         * math/w_dreml.c: Likewise.
11182         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
11183         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
11184         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
11185
11186         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
11187         * sysdeps/i386/configure: Regenerated.
11188         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
11189         * sysdeps/x86_64/configure: Regenerated.
11190
11191         * configure.ac (libc_cv_asm_protected_directive): Remove configure
11192         test.
11193         (libc_cv_visibility_attribute): Likewise.
11194         (libc_cv_protected_data): Test unconditionally.
11195         (libc_cv_broken_visibility_attribute): Remove configure test.
11196         (libc_cv_have_sdata_section): Test unconditionally.
11197         * configure: Regenerated.
11198
11199         * include/libc-internal.h (libc_max_align_t): Remove typedef.
11200         * include/scratch_buffer.h: Include <stddef.h> instead of
11201         <libc-internal.h>.
11202         (struct scratch_buffer): Use max_align_t instead of
11203         libc_max_align_t.
11204
11205 2015-10-29  Florian Weimer  <fweimer@redhat.com>
11206
11207         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
11208         instead of extend_alloca.  Change control flow to avoid a goto.
11209         Remove assert which is trivially always true.
11210
11211 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
11212
11213         [BZ #16068]
11214         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
11215         (FE_ALL_EXCEPT_X86): New macro.
11216         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
11217         FE_ALL_EXCEPT.  Ensure precision control is included in
11218         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
11219         handle "denormal operand exception" and clear FZ and DAZ bits.
11220         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
11221         (FE_ALL_EXCEPT_X86): New macro.
11222         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
11223         FE_ALL_EXCEPT.  Ensure precision control is included in
11224         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
11225         handle "denormal operand exception" and clear FZ and DAZ bits.
11226         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
11227         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
11228         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
11229         test-fenv-x87 and test-fenv-sse-2.
11230         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
11231
11232         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
11233         * math/test-double.h (BUILD_COMPLEX): New macro.
11234         * math/test-float.h (BUILD_COMPLEX): Likewise.
11235         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
11236
11237         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
11238         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
11239         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
11240         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
11241         instead of DBL_DENORM_MIN in comment.
11242         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
11243         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
11244         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
11245         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
11246         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
11247         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
11248
11249 2015-10-28  Florian Weimer  <fweimer@redhat.com>
11250
11251         [BZ# 19048]
11252         * malloc/malloc.c (struct malloc_state): Update comment.  Add
11253         attached_threads member.
11254         (main_arena): Initialize attached_threads.
11255         * malloc/arena.c (list_lock): Update comment.
11256         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
11257         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
11258         (deattach_arena): New function.
11259         (_int_new_arena): Initialize arena reference count and deattach
11260         replaced arena.
11261         (get_free_list, reused_arena): Update reference count and deattach
11262         replaced arena.
11263         (arena_thread_freeres): Update arena reference count and only put
11264         unreferenced arenas on the free list.
11265
11266 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
11267
11268         [BZ #19181]
11269         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
11270         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
11271         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
11272         * math/test-fenv-clear-main.c: New file.
11273         * math/test-fenv-clear.c: Likewise.
11274         * math/Makefile (tests): Add test-fenv-clear.
11275         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
11276         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
11277         test-fenv-clear-sse.
11278         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
11279
11280         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
11281         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
11282         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
11283
11284 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11285
11286         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
11287         static libc.
11288
11289 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
11290
11291         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
11292         test.
11293         * sysdeps/i386/configure: Regenerated.
11294         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
11295         test.
11296         * sysdeps/x86_64/configure: Regenerated.
11297         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
11298         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11299         memset-avx2 unconditionally instead of conditionally on
11300         [$(config-cflags-avx2) = yes].
11301         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11302         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
11303         unconditional.
11304         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
11305         * sysdeps/x86_64/multiarch/memset_chk.S
11306         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
11307         to [IS_IN (libc) && SHARED].
11308
11309 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
11310
11311         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
11312         configure test.
11313         * sysdeps/arm/configure: Regenerated.
11314         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
11315         Define variable if not already defined.
11316
11317         [BZ #17404]
11318         * sysdeps/mips/atomic-machine.h
11319         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
11320         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
11321         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
11322
11323         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
11324         unconditional.
11325         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
11326         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11327         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
11328         unconditional.
11329         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11330         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
11331         unconditional.
11332         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11333         * stdlib/setenv.c
11334         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
11335         code unconditional.
11336         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
11337         Remove conditional code.
11338         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
11339         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
11340         unconditional.
11341         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
11342         code.
11343         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
11344         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
11345         unconditional.
11346         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
11347         code.
11348         * sysdeps/ieee754/ldbl-128/k_tanl.c
11349         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
11350         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11351         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
11352         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
11353         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11354         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
11355         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
11356         unconditional.
11357         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
11358         code.
11359         * sysdeps/ieee754/ldbl-96/k_tanl.c
11360         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
11361         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11362
11363         * nptl/tst-initializers1-c11.c: New file.
11364         * nptl/tst-initializers1-gnu11.c: Likewise.
11365         * nptl/Makefile (tests): Add these new tests.
11366         (CFLAGS-tst-initializers1-c11.c): New variable.
11367         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
11368
11369         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
11370         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
11371         instead of -std=gnu99.
11372         * configure.ac (systemtap): Test with -std=gnu11 instead of
11373         -std=gnu99.
11374         * configure: Regenerated.
11375         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
11376         in compilation command in comment.
11377
11378         * sysdeps/nptl/configure.ac: Remove file.
11379         * sysdeps/nptl/configure: Remove generated file.
11380         * configure.ac (libc_cv_forced_unwind): Do not substitute.
11381         * configure: Regenerated.
11382         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
11383         * config.make.in (have-forced-unwind): Remove variable.
11384         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
11385         unconditional.
11386         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
11387         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
11388         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
11389         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
11390         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
11391         unconditional.
11392
11393 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11394
11395         [BZ #19174]
11396         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
11397         .skip_lock_out_of_tbegin_retries.
11398         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
11399         (__lll_lock_elision): Likewise, and respect a value of
11400         try_tbegin <= 0.
11401
11402 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11403
11404         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
11405         statement.
11406
11407 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
11408
11409         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
11410         variable.
11411         (test-xfail-ISO11/stdalign.h/conform): Likewise.
11412         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
11413
11414         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
11415         of -std=c1x -D_ISOC11_SOURCE.
11416
11417         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
11418         * configure: Regenerated.
11419         * manual/install.texi (Tools for Compilation): Document
11420         requirement for GCC 4.7 or later.
11421         * INSTALL: Regenerated.
11422
11423 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
11424
11425         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
11426         on CNT to a conditional jump to 'puntdata'.
11427
11428 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
11429
11430         * configure.ac (libc_cv_gcc___thread): Remove configure test.
11431         (libc_cv_gcc_tls_model_attr): Likewise.
11432         * configure: Regenerated.
11433
11434         * configure.ac (libc_cv_need_minus_P): Remove configure test.
11435         * configure: Regenerated.
11436         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
11437
11438 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
11439
11440         * configure.ac (old_glibc_headers): Remove configure test.
11441         * configure: Regenerated.
11442         * config.make.in (old-glibc-headers): Remove variable.
11443         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
11444         (install): Remove dependency on remove-old-headers.
11445         (headers2_0): Remove variable.
11446         (remove-old-headers): Remove rule.
11447
11448         * configure.ac (libc_cv_dot_text): Remove configure test.
11449         (libc_cv_asm_set_directive): Use .text instead of
11450         ${libc_cv_dot_text} in configure test.
11451         * configure: Regenerated.
11452
11453 2015-10-26  Florian Weimer  <fweimer@redhat.com>
11454
11455         [BZ #19168]
11456         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11457
11458 2015-10-26  Florian Weimer  <fweimer@redhat.com>
11459
11460         * configure.ac (CXX): Clear the variable if the C++ toolchain does
11461         not support static linking.
11462         * configure: Regenerate.
11463
11464 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
11465
11466         * math/libm-test.inc (check_float_internal): Do not special-case
11467         errors up to 0.5 ulp.
11468
11469         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
11470         log2.
11471         * math/auto-libm-test-out: Regenerated.
11472         * math/libm-test.inc (MAX_EXP): New macro.
11473         (ilogb_test_data): Add more tests.
11474         (isfinite_test_data): Likewise.
11475         (isgreater_test_data): Likewise.
11476         (isgreaterequal_test_data): Likewise.
11477         (isinf_test_data): Likewise.
11478         (isless_test_data): Likewise.
11479         (islessequal_test_data): Likewise.
11480         (islessgreater_test_data): Likewise.
11481         (isnan_test_data): Likewise.
11482         (isnormal_test_data): Likewise.
11483         (issignaling_test_data): Likewise.
11484         (isunordered_test_data): Likewise.
11485         (j0_test_data): Likewise.
11486         (j1_test_data): Likewise.
11487         (jn_test_data): Likewise.
11488         (lgamma_test_data): Likewise.
11489         (log_test_data): Likewise.
11490         (log10_test_data): Likewise.
11491         (log1p_test_data): Likewise.
11492         (log2_test_data): Likewise.
11493         (logb_test_data): Likewise.
11494         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11495
11496         [BZ #18611]
11497         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
11498         avoid excess range and precision on underflow.
11499         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11500         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
11501         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11502         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
11503         underflow.
11504         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11505         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11506         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11507         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11508         * math/auto-libm-test-in: Do not allow missing errno setting for
11509         tests of j1 and jn.
11510         * math/auto-libm-test-out: Regenerated.
11511
11512 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
11513
11514         [BZ #15491]
11515         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
11516         floating-point environment instead of clearing all exceptions.
11517         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
11518         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
11519         merging in "invalid" exceptions from frndint.
11520         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
11521         * math/test-nearbyint-except.c: New file.
11522         * math/Makefile (tests): Add test-nearbyint-except.
11523
11524 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
11525
11526         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
11527
11528         * sysdeps/tile/libm-test-ulps: Regenerated.
11529
11530 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11531
11532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
11533         (__NR_sync_file_range2): Assume it is always defined.
11534         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
11535         (__NR_sync_file_range): Assume it is always defined.
11536
11537 2015-10-22  Andreas Schwab  <schwab@suse.de>
11538
11539         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
11540         INTERNAL_SYSCALL_ERRNO.
11541         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
11542         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
11543         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
11544         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
11545         Likewise.
11546         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
11547
11548 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
11549
11550         * io/tst-fcntl.c (fd): New static variable.
11551         (do_prepare): Open temporary file here....
11552         (do_test): ...not here.
11553
11554         * io/ftwtest-sh: Also trap on exit to remove temporary files.
11555
11556 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
11557
11558         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
11559         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
11560         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
11561         Moved before "#ifdef __ASSEMBLER__".
11562
11563 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
11564
11565         [BZ #19156]
11566         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
11567         arguments very close to 0.
11568
11569 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
11570
11571         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
11572         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
11573
11574 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
11575
11576         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
11577         New.  Defined for GCC 5 and above when not compiling for
11578         profiling.
11579         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
11580
11581         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
11582         Renamed to ...
11583         (CFLAGS-epoll_pwait.o): This.
11584         (CFLAGS-mmap.c): Renamed to ...
11585         (CFLAGS-mmap.o): This.
11586         (CFLAGS-mmap64.c): Renamed to ...
11587         (CFLAGS-mmap64.o): This.
11588         (CFLAGS-epoll_pwait.os): New.
11589         (CFLAGS-mmap.os): Likewise.
11590         (CFLAGS-mmap64.os): Likewise.
11591         (CFLAGS-semtimedop.os): Likewise.
11592         (CFLAGS-semtimedop.c): Renamed to ...
11593         (CFLAGS-semtimedop.o): This.
11594
11595 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11596
11597         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
11598         warning message.
11599
11600 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
11601
11602         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
11603         * Makefile ($(objpfx)c++-types-check.out): Filter out
11604         $(+gccwarn-c) instead of -Wstrict-prototypes.
11605
11606         * io/fts.c (fts_open): Convert to prototype-style function
11607         definition.
11608         * malloc/mcheck.c (mcheck): Likewise.
11609         (mcheck_pedantic): Likewise.
11610         * posix/regexec.c (re_search_2_stub): Likewise.  Use
11611         internal_function.
11612         (re_search_internal): Likewise.
11613         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
11614         prototype-style function definition.
11615         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
11616         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
11617         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
11618         (xdr_utmpptr): Likewise.
11619         (xdr_utmparr): Likewise.
11620         (xdr_utmpidle): Likewise.
11621         (xdr_utmpidleptr): Likewise.
11622         (xdr_utmpidlearr): Likewise.
11623
11624         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
11625         log, log10 and log2.
11626         * math/auto-libm-test-out: Regenerated.
11627         * math/libm-test.inc (fmod_test_data): Add more tests.
11628         (fpclassify_test_data): Likewise.
11629         (frexp_test_data): Likewise.
11630         (hypot_test_data): Likewise.
11631         (ilogb_test_data): Likewise.
11632
11633 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
11634
11635         * debug/fortify_fail.c (__fortify_fail): Convert to
11636         prototype-style function definition.  Use internal_function.
11637         * libio/genops.c (save_for_backup): Convert to prototype-style
11638         function definition.
11639         * libio/wgenops.c (save_for_wbackup): Likewise.
11640         * login/grantpt.c (grantpt): Likewise.
11641         * login/ptsname.c (ptsname): Likewise.
11642         (__ptsname_r): Likewise.
11643         * login/unlockpt.c (unlockpt): Likewise.
11644         * mach/msgserver.c (__mach_msg_server): Likewise.
11645         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
11646         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
11647         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
11648         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
11649         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
11650         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
11651         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
11652         Likewise.
11653         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
11654         internal_function.
11655         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
11656         prototype-style function definition.
11657         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
11658         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
11659         (__pthread_create_2_0): Likewise.
11660         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
11661         * nptl/register-atfork.c (__register_atfork): Likewise.
11662         * posix/glob.c (glob): Likewise.
11663         * posix/regcomp.c (re_comp): Likewise.
11664         * posix/regexec.c (re_exec): Likewise.
11665         * stdlib/add_n.c [__STDC__]: Make code unconditional.
11666         [!__STDC__]: Remove conditional code.
11667         * stdlib/cmp.c [__STDC__]: Make code unconditional.
11668         [!__STDC__]: Remove conditional code.
11669         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
11670         [!__STDC__]: Remove conditional code.
11671         * stdlib/divrem.c [__STDC__]: Make code unconditional.
11672         [!__STDC__]: Remove conditional code.
11673         * stdlib/lshift.c [__STDC__]: Make code unconditional.
11674         [!__STDC__]: Remove conditional code.
11675         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
11676         [!__STDC__]: Remove conditional code.
11677         * stdlib/mul.c [__STDC__]: Make code unconditional.
11678         [!__STDC__]: Remove conditional code.
11679         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
11680         [!__STDC__]: Remove conditional code.
11681         * stdlib/rshift.c [__STDC__]: Make code unconditional.
11682         [!__STDC__]: Remove conditional code.
11683         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
11684         function definition.
11685         (STRTOF): Likewise.
11686         * stdlib/strtod_l.c (__STRTOF): Likewise.
11687         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
11688         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
11689         (__strtol_l): Likewise.
11690         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
11691         [!__STDC__]: Remove conditional code.
11692         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
11693         definition.
11694         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
11695         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
11696         type.
11697         (__strcasecmp): Convert to prototype-style function definition.
11698         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
11699         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
11700         type.
11701         (__strncasecmp): Convert to prototype-style function definition.
11702         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
11703         * sunrpc/xdr.c (xdr_union): Likewise.
11704         * sunrpc/xdr_array.c (xdr_array): Likewise.
11705         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
11706         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
11707         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
11708         Likewise.
11709         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
11710         Likewise.
11711         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
11712         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
11713         Likewise.
11714         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
11715         (LOCALE_PARAM_PROTO): Likewise.
11716         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
11717         argument type.
11718         (ut_argument_spec): Remove macro.
11719         (ut_argument_spec_iso): Rename to ut_argument_spec.
11720         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
11721         prototype-style function definition.
11722         (memcpy_uppcase): Likewise.
11723         (__strftime_internal): Likewise.
11724         (my_strftime): Likewise.
11725         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
11726         (LOCALE_PARAM_DECL): Likewise.
11727         [_LIBC] (LOCALE_PARAM): Include argument type.
11728         (__strptime_internal): Convert to prototype-style function
11729         definition.
11730         (strptime): Likewise.
11731         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
11732         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
11733         type.
11734         (__wcscasecmp): Convert to prototype-style function definition.
11735         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
11736         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
11737         type.
11738         (__wcsncasecmp): Convert to prototype-style function definition.
11739
11740         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
11741         function definition.
11742         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11743         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11744         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
11745         * elf/dl-minimal.c (_itoa): Likewise.
11746         * hurd/hurdmalloc.c (malloc): Likewise.
11747         (free): Likewise.
11748         (realloc): Likewise.
11749         * inet/inet6_option.c (inet6_option_space): Likewise.
11750         (inet6_option_init): Likewise.
11751         (inet6_option_append): Likewise.
11752         (inet6_option_alloc): Likewise.
11753         (inet6_option_next): Likewise.
11754         (inet6_option_find): Likewise.
11755         * io/ftw.c (FTW_NAME): Likewise.
11756         (NFTW_NAME): Likewise.
11757         (NFTW_NEW_NAME): Likewise.
11758         (NFTW_OLD_NAME): Likewise.
11759         * libio/iofwide.c (_IO_fwide): Likewise.
11760         * libio/strops.c (_IO_str_init_static_internal): Likewise.
11761         (_IO_str_init_static): Likewise.
11762         (_IO_str_init_readonly): Likewise.
11763         (_IO_str_overflow): Likewise.
11764         (_IO_str_underflow): Likewise.
11765         (_IO_str_count): Likewise.
11766         (_IO_str_seekoff): Likewise.
11767         (_IO_str_pbackfail): Likewise.
11768         (_IO_str_finish): Likewise.
11769         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
11770         (_IO_wstr_overflow): Likewise.
11771         (_IO_wstr_underflow): Likewise.
11772         (_IO_wstr_count): Likewise.
11773         (_IO_wstr_seekoff): Likewise.
11774         (_IO_wstr_pbackfail): Likewise.
11775         (_IO_wstr_finish): Likewise.
11776         * locale/programs/localedef.c (normalize_codeset): Likewise.
11777         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
11778         (add_locales_to_archive): Likewise.
11779         (delete_locales_from_archive): Likewise.
11780         * malloc/malloc.c (__libc_mallinfo): Likewise.
11781         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
11782         * misc/tsearch.c (__tfind): Likewise.
11783         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
11784         * nptl/pthread_attr_getdetachstate.c
11785         (__pthread_attr_getdetachstate): Likewise.
11786         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
11787         Likewise.
11788         * nptl/pthread_attr_getinheritsched.c
11789         (__pthread_attr_getinheritsched): Likewise.
11790         * nptl/pthread_attr_getschedparam.c
11791         (__pthread_attr_getschedparam): Likewise.
11792         * nptl/pthread_attr_getschedpolicy.c
11793         (__pthread_attr_getschedpolicy): Likewise.
11794         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
11795         Likewise.
11796         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
11797         Likewise.
11798         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
11799         Likewise.
11800         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
11801         Likewise.
11802         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
11803         (__pthread_attr_init_2_0): Likewise.
11804         * nptl/pthread_attr_setdetachstate.c
11805         (__pthread_attr_setdetachstate): Likewise.
11806         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
11807         Likewise.
11808         * nptl/pthread_attr_setinheritsched.c
11809         (__pthread_attr_setinheritsched): Likewise.
11810         * nptl/pthread_attr_setschedparam.c
11811         (__pthread_attr_setschedparam): Likewise.
11812         * nptl/pthread_attr_setschedpolicy.c
11813         (__pthread_attr_setschedpolicy): Likewise.
11814         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
11815         Likewise.
11816         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
11817         Likewise.
11818         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
11819         Likewise.
11820         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
11821         Likewise.
11822         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
11823         Likewise.
11824         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
11825         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
11826         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
11827         use internal_function.
11828         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
11829         prototype-style function definition.
11830         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
11831         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
11832         internal_function.
11833         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
11834         Convert to prototype-style function definition.
11835         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
11836         Likewise.
11837         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
11838         Likewise.
11839         (__pthread_mutex_unlock): Likewise.
11840         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
11841         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
11842         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
11843         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
11844         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
11845         * nss/makedb.c (process_input): Likewise.
11846         * posix/fnmatch.c (__strchrnul): Likewise.
11847         (__wcschrnul): Likewise.
11848         (fnmatch): Likewise.
11849         * posix/fnmatch_loop.c (FCT): Likewise.
11850         * posix/glob.c (globfree): Likewise.
11851         (__glob_pattern_type): Likewise.
11852         (__glob_pattern_p): Likewise.
11853         * posix/regcomp.c (re_compile_pattern): Likewise.
11854         (re_set_syntax): Likewise.
11855         (re_compile_fastmap): Likewise.
11856         (regcomp): Likewise.
11857         (regerror): Likewise.
11858         (regfree): Likewise.
11859         * posix/regexec.c (regexec): Likewise.
11860         (re_match): Likewise.
11861         (re_search): Likewise.
11862         (re_match_2): Likewise.
11863         (re_search_2): Likewise.
11864         (re_search_stub): Likewise.  Use internal_function
11865         (re_copy_regs): Likewise.
11866         (re_set_registers): Convert to prototype-style function
11867         definition.
11868         (prune_impossible_nodes): Likewise.  Use internal_function.
11869         * resolv/inet_net_pton.c (inet_net_pton): Convert to
11870         prototype-style function definition.
11871         (inet_net_pton_ipv4): Likewise.
11872         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
11873         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
11874         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
11875         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
11876         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
11877         Make variadic.
11878         * time/strptime_l.c (localtime_r): Convert to prototype-style
11879         function definition.
11880         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
11881         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
11882         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
11883         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
11884
11885         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
11886         definition.
11887         (_ufc_doit_r): Likewise.
11888         * crypt/crypt_util.c (_ufc_copymem): Likewise.
11889         (_ufc_output_conversion_r): Likewise.
11890         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
11891         * inet/rcmd.c (rcmd_af): Likewise.
11892         (rcmd): Likewise.
11893         (ruserok_af): Likewise.
11894         (ruserok): Likewise.
11895         (ruserok2_sa): Likewise.
11896         (ruserok_sa): Likewise.
11897         (iruserok_af): Likewise.
11898         (iruserok): Likewise.
11899         (__ivaliduser): Likewise.
11900         (__validuser2_sa): Likewise.
11901         * inet/rexec.c (rexec_af): Likewise.
11902         (rexec): Likewise.
11903         * inet/ruserpass.c (ruserpass): Likewise.
11904         * locale/programs/xmalloc.c (xcalloc): Likewise.
11905         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
11906         * math/w_drem.c (__drem): Likewise.
11907         * math/w_dremf.c (__dremf): Likewise.
11908         * math/w_dreml.c (__dreml): Likewise.
11909         * misc/daemon.c (daemon): Likewise.
11910         * resolv/res_debug.c (p_fqnname): Likewise.
11911         * stdlib/div.c (div): Likewise.
11912         * string/memcmp.c (memcmp_bytes): Likewise.
11913         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
11914         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
11915
11916         * crypt/cert.c (main): Convert to prototype-style function
11917         definition.
11918         * io/pipe.c (__pipe): Likewise.
11919         * io/pipe2.c (__pipe2): Likewise.
11920         * misc/futimesat.c (futimesat): Likewise.
11921         * misc/utimes.c (__utimes): Likewise.
11922         * posix/execve.c (__execve): Likewise.
11923         * posix/execvp.c (execvp): Likewise.
11924         * posix/execvpe.c (__execvpe): Likewise.
11925         * posix/fexecve.c (fexecve): Likewise.
11926         * socket/socketpair.c (socketpair): Likewise.
11927         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
11928         * stdlib/erand48.c (erand48): Likewise.
11929         * stdlib/erand48_r.c (__erand48_r): Likewise.
11930         * stdlib/jrand48.c (jrand48): Likewise.
11931         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
11932         * stdlib/lcong48.c (lcong48): Likewise.
11933         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
11934         * stdlib/nrand48.c (nrand48): Likewise.
11935         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
11936         * stdlib/seed48.c (seed48): Likewise.
11937         * stdlib/seed48_r.c (__seed48_r): Likewise.
11938         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
11939         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
11940         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
11941
11942 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
11943
11944         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
11945         * configure: Regenerated.
11946         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
11947         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
11948         unconditional.
11949         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
11950         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
11951         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
11952         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
11953         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
11954         unconditional.
11955         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
11956
11957         * posix/Makefile (CFLAGS-regex.c): Remove variable.
11958         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
11959
11960         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
11961         function definition.
11962         * crypt/crypt_util.c (__encrypt_r): Likewise.
11963         * libio/genops.c (_IO_no_init): Likewise.
11964         * libio/iofopncook.c (_IO_fopencookie): Likewise.
11965         (_IO_old_fopencookie): Likewise.
11966         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
11967         * libio/iogetline.c (_IO_getline): Likewise.
11968         (_IO_getline_info): Likewise.
11969         * libio/iogetwline.c (_IO_getwline): Likewise.
11970         (_IO_getwline_info): Likewise.
11971         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
11972         * libio/vswprintf.c (_IO_vswprintf): Likewise.
11973         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
11974         (find_entry): Likewise.
11975         (iterate_table): Likewise.
11976         (lookup): Likewise.
11977         * login/forkpty.c (forkpty): Likewise.
11978         * misc/hsearch_r.c (__hsearch_r): Likewise.
11979         * misc/select.c (__select): Likewise.
11980         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
11981         Likewise.
11982         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
11983         Likewise.
11984         * nptl/old_pthread_cond_timedwait.c
11985         (__pthread_cond_timedwait_2_0): Likewise.
11986         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
11987         * nptl/pthread_barrierattr_getpshared.c
11988         (pthread_barrierattr_getpshared): Likewise.
11989         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
11990         Likewise.
11991         * nptl/pthread_mutex_setprioceiling.c
11992         (pthread_mutex_setprioceiling): Likewise.
11993         * nptl/pthread_mutexattr_getprioceiling.c
11994         (pthread_mutexattr_getprioceiling): Likewise.
11995         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
11996         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
11997         Likewise.
11998         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
11999         Likewise.
12000         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
12001         Likewise.
12002         * socket/recvfrom.c (__recvfrom): Likewise.
12003         * socket/sendto.c (__sendto): Likewise.
12004         * socket/setsockopt.c (__setsockopt): Likewise.
12005         * stdio-common/_itoa.c (_itoa): Likewise.
12006         * stdio-common/_itowa.c (_itowa): Likewise.
12007         * stdio-common/reg-printf.c (__register_printf_specifier):
12008         Likewise.
12009         (__register_printf_function): Likewise.
12010         * stdio-common/tempname.c (__path_search): Likewise.
12011         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
12012         * stdlib/mul_1.c (mpn_mul_1): Likewise.
12013         * stdlib/random_r.c (__initstate_r): Likewise.
12014         * stdlib/setenv.c (__add_to_environ): Likewise.
12015         * stdlib/submul_1.c (mpn_submul_1): Likewise.
12016         * streams/getpmsg.c (getpmsg): Likewise.
12017         * streams/putmsg.c (putmsg): Likewise.
12018         * streams/putpmsg.c (putpmsg): Likewise.
12019         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
12020         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
12021         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
12022         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
12023         * sunrpc/pm_getport.c (pmap_getport): Likewise.
12024         * sunrpc/svc_udp.c (cache_get): Likewise.
12025         * sunrpc/xdr_array.c (xdr_vector): Likewise.
12026         * sysdeps/mach/hurd/getcwd.c
12027         (__canonicalize_directory_name_internal): Likewise.
12028         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
12029         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
12030         * sysdeps/mach/hurd/select.c (__select): Likewise.
12031         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
12032         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
12033         * sysdeps/sparc/nptl/pthread_barrier_init.c
12034         (__pthread_barrier_init): Likewise.
12035         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
12036         (__pthread_cond_timedwait): Likewise.
12037         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
12038         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
12039         Likewise.
12040         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
12041         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
12042         Likewise.
12043         * sysvipc/semtimedop.c (semtimedop): Likewise.
12044         * time/setitimer.c (__setitimer): Likewise.
12045         * time/strftime_l.c (emacs_strftime): Likewise.
12046
12047 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
12048
12049         * config.make.in (have-ssp): Delete.
12050         (stack-protector): New variable.
12051         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
12052         cache test for -fstack-protector-strong.  Export stack_protector to
12053         the best ssp flag.
12054         * configure: Regenerated.
12055         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
12056         * nscd/Makefile (CFLAGS-nscd): Likewise.
12057         * resolv/Makefile (CFLAGS-libresolv): Likewise.
12058
12059 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
12060
12061         [BZ #19122]
12062         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
12063         attribute_hidden.
12064
12065 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12066
12067         [BZ #18743]
12068         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
12069         code to...
12070         (ELIDE_LOCK): ...here.
12071         (__get_new_count): New function with part of the code from
12072         __elide_lock that updates the value of adapt_count after a
12073         transaction abort.
12074         (__elided_trylock): Moved this code to...
12075         (ELIDE_TRYLOCK): ...here.
12076
12077 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
12078
12079         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
12080         * configure: Regenerate.
12081         * INSTALL: Regenerate.
12082         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
12083         and tweak grammar.
12084
12085 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
12086
12087         * login/programs/pt_chown.c: Include signal.h
12088         (main): Clear any signal mask from the parent process.
12089
12090 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
12091
12092         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
12093         * configure: Regenerated.
12094         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
12095         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
12096         $(gnu89-inline-CFLAGS).
12097
12098         * configure.ac (libc_cv_asm_weak_directive): Remove configure
12099         test.
12100         (libc_cv_asm_weakext_directive): Likewise.
12101         * configure: Regenerated.
12102         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
12103         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
12104         * include/libc-symbols.h
12105         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
12106         #error.
12107         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
12108         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
12109
12110         * sysdeps/arm/backtrace.c (__backtrace): Convert to
12111         prototype-style function definition.
12112         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
12113         * sysdeps/i386/ffs.c (__ffs): Likewise.
12114         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
12115         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
12116         Likewise.
12117         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
12118         Likewise.
12119         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
12120         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
12121         Likewise.
12122         * sysdeps/m68k/ffs.c (__ffs): Likewise.
12123         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
12124         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
12125         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
12126         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
12127         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
12128         * sysdeps/mach/hurd/access.c (__access): Likewise.
12129         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
12130         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
12131         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
12132         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
12133         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
12134         (cthread_getspecific): Likewise.
12135         (cthread_setspecific): Likewise.
12136         (__libc_getspecific): Likewise.
12137         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
12138         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
12139         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
12140         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
12141         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
12142         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
12143         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
12144         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
12145         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
12146         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
12147         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
12148         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
12149         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
12150         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
12151         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
12152         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
12153         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
12154         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
12155         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
12156         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
12157         * sysdeps/mach/hurd/link.c (__link): Likewise.
12158         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
12159         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
12160         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
12161         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
12162         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
12163         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
12164         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
12165         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
12166         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
12167         * sysdeps/mach/hurd/rename.c (rename): Likewise.
12168         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
12169         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
12170         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
12171         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
12172         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
12173         * sysdeps/mach/hurd/send.c (__send): Likewise.
12174         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
12175         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
12176         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
12177         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
12178         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
12179         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
12180         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
12181         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
12182         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
12183         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
12184         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
12185         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
12186         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
12187         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
12188         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
12189         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
12190         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
12191         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
12192         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
12193         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
12194         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
12195         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
12196         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
12197         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
12198         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
12199         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
12200         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
12201         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
12202         * sysdeps/posix/alarm.c (alarm): Likewise.
12203         * sysdeps/posix/cuserid.c (cuserid): Likewise.
12204         * sysdeps/posix/dirfd.c (dirfd): Likewise.
12205         * sysdeps/posix/dup.c (__dup): Likewise.
12206         * sysdeps/posix/dup2.c (__dup2): Likewise.
12207         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
12208         (main): Likewise.
12209         * sysdeps/posix/flock.c (__flock): Likewise.
12210         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
12211         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
12212         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
12213         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
12214         * sysdeps/posix/isatty.c (__isatty): Likewise.
12215         * sysdeps/posix/killpg.c (killpg): Likewise.
12216         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
12217         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
12218         * sysdeps/posix/raise.c (raise): Likewise.
12219         * sysdeps/posix/remove.c (remove): Likewise.
12220         * sysdeps/posix/rename.c (rename): Likewise.
12221         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
12222         * sysdeps/posix/seekdir.c (seekdir): Likewise.
12223         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
12224         * sysdeps/posix/sigignore.c (sigignore): Likewise.
12225         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
12226         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12227         * sysdeps/posix/sigset.c (sigset): Likewise.
12228         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
12229         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
12230         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
12231         * sysdeps/posix/time.c (time): Likewise.
12232         * sysdeps/posix/ttyname.c (getttyname): Likewise.
12233         (ttyname): Likewise.
12234         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
12235         * sysdeps/posix/utime.c (utime): Likewise.
12236         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
12237         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
12238         Likewise.
12239         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
12240         (pthread_spin_trylock): Likewise.
12241         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
12242         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
12243         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
12244         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
12245         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
12246         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
12247         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
12248         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
12249         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
12250         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
12251         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
12252         * sysdeps/s390/ffs.c (__ffs): Likewise.
12253         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
12254         Likewise.
12255         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
12256         Likewise.
12257         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
12258         Likewise.
12259         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
12260         (pthread_barrier_destroy): Likewise.
12261         * sysdeps/sparc/nptl/pthread_barrier_wait.c
12262         (__pthread_barrier_wait): Likewise.
12263         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
12264         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
12265         (__pthread_barrier_wait): Likewise.
12266         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
12267         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
12268         (memcmp_not_common_alignment): Likewise.
12269         (MEMCMP): Likewise.
12270         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
12271         (_wordcopy_fwd_dest_aligned): Likewise.
12272         (_wordcopy_bwd_aligned): Likewise.
12273         (_wordcopy_bwd_dest_aligned): Likewise.
12274         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
12275         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
12276         * sysdeps/unix/bsd/stty.c (stty): Likewise.
12277         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
12278         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
12279         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
12280         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
12281         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
12282         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
12283         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
12284         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
12285         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
12286         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
12287         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
12288         * sysdeps/unix/stime.c (stime): Likewise.
12289         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
12290         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
12291         Likewise.  Use internal_function.
12292         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
12293         Convert to prototype-style function definition.
12294         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
12295         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
12296         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
12297         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
12298         Likewise.  Use internal_function.
12299         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
12300         prototype-style function definition
12301         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12302         Likewise.
12303         (__getlogin_r): Likewise.
12304         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
12305         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
12306         (__pthread_cond_broadcast): Likewise.
12307         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
12308         (__pthread_cond_destroy): Likewise.
12309         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
12310         (__pthread_cond_init): Likewise.
12311         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
12312         (__pthread_cond_signal): Likewise.
12313         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
12314         (__pthread_cond_wait): Likewise.
12315         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
12316         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
12317         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
12318         Likewise.
12319         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
12320         Likewise.
12321         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
12322         Likewise.
12323         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
12324         Likewise.
12325         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
12326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
12327         (__ftruncate64): Likewise.
12328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
12329         (truncate64): Likewise.
12330         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
12331         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
12332         (pthread_getcpuclockid): Likewise.
12333         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
12334         Likewise.
12335         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
12336         Likewise.
12337         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
12338         Likewise.
12339         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
12340         Likewise.
12341         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
12342         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
12343         (__libc_sigaction): Likewise.
12344         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
12345         Likewise.
12346         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
12347         (__sigprocmask): Likewise.
12348         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
12349         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
12350         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
12351         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
12352         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
12353         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
12354         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
12355         Likewise.
12356         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
12357         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
12358         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
12359         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
12360         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
12361         Likewise.
12362         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
12363         (__sigprocmask): Likewise.
12364         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
12365         (cfgetispeed): Likewise.
12366         (cfsetospeed): Likewise.
12367         (cfsetispeed): Likewise.
12368         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
12369         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
12370         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
12371         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
12372         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
12373         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
12374         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
12375         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
12376         Likewise.
12377         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
12378         Likewise.
12379         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
12380         Likewise.
12381         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
12382         Likewise.
12383         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
12384
12385 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12386
12387         sunrpc: Rewrite with explicit TLS access using __thread.
12388         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
12389         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
12390         directly.
12391         (__rpc_thread_variables): Access thread_rpc_vars directly.
12392         Eliminate redundant assignment of the tvp variable.
12393
12394 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12395
12396         malloc: Rewrite with explicit TLS access using __thread.
12397         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
12398         (tsd_setspecific, tsd_getspecific): Remove.
12399         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
12400         (tsd_setspecific, tsd_getspecific): Likewise.
12401         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
12402         (tsd_setspecific, tsd_getspecific): Likewise.
12403         * malloc/arena.c (thread_arena): New TLS variable.
12404         (arena_key): Remove variable.
12405         (arena_get): Use thread_arena.
12406         (arena_lookup): Remove macro.
12407         (malloc_atfork, free_atfork, ptmalloc_lock_all)
12408         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
12409         (_int_new_arena, get_free_list, reused_arena)
12410         (arena_thread_freeres): Use thread_arena.
12411         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
12412         tsd_getspecific, tsd_setspecific from safety annotations.
12413         (Allocating Cleared Space): Remove arena_lookup from safety
12414         annotations.
12415
12416 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12417
12418         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
12419         struct scratch_buffer instead of extend_alloca.
12420
12421 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12422
12423         * sysdeps/unix/sysv/linux/kernel-features.h
12424         (__ASSUME_SOCK_CLOEXEC): Remove.
12425         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
12426         (__have_paccept): Remove unused macro.
12427         * include/unistd.h (__have_sock_cloexec): Remove declaration.
12428         * misc/syslog.c (openlog_internal): Remove fallback code for
12429         !__ASSUME_SOCK_CLOEXEC.
12430         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
12431         missing SOCK_CLOEXEC.
12432         * nscd/connections.c (have_sock_cloexec): Remove definition.
12433         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
12434         * nscd/nscd_helper.c (open_socket): Remove fallback code for
12435         !__ASSUME_SOCK_CLOEXEC.
12436         * resolv/res_send.c (__have_o_nonblock): Remove definition.
12437         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
12438         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
12439         definition.
12440         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
12441         code for !__ASSUME_SOCK_CLOEXEC.
12442
12443 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12444
12445         [BZ #18982]
12446         * manual/stdio.texi (Variable Arguments Output): Add portability
12447         note, explaining that vfprintf clobbers the va_list pointer.
12448
12449 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
12450
12451         * math/libm-test.inc (fabs_test_data): Add more tests.
12452         (fdim_test_data): Likewise.
12453         (fma_test_data): Likewise.
12454         (fmax_test_data): Likewise.
12455         (fmin_test_data): Likewise.
12456         (fmod_test_data): Likewise.
12457
12458 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
12459
12460         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
12461         data.
12462
12463 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
12464
12465         * math/libm-test.inc (ceil_test_data): Add more tests and more
12466         expectations for "inexact".
12467         (floor_test_data): Add more tests.
12468         (round_test_data): Likewise.
12469         (trunc_test_data): Likewise.
12470
12471         * crypt/cert.c (good_bye): Convert to prototype-style function
12472         definition.
12473         (get8): Likewise.
12474         (put8): Likewise.
12475         * crypt/crypt-entry.c (crypt): Likewise.
12476         (__fcrypt): Likewise.
12477         * crypt/crypt_util.c (_ufc_prbits): Likewise.
12478         (_ufc_set_bits): Likewise.
12479         (_ufc_clearmem): Likewise.
12480         (__init_des_r): Likewise.
12481         (shuffle_sb): Likewise.
12482         (shuffle_sb): Likewise.
12483         (_ufc_setup_salt_r): Likewise.
12484         (_ufc_mk_keytab_r): Likewise.
12485         (_ufc_dofinalperm_r): Likewise.
12486         (encrypt): Likewise.
12487         (__setkey_r): Likewise.
12488         (setkey): Likewise.
12489         * crypt/md5.c (md5_init_ctx): Likewise.
12490         (md5_read_ctx): Likewise.
12491         (md5_finish_ctx): Likewise.
12492         (md5_stream): Likewise.
12493         (md5_buffer): Likewise.
12494         (md5_process_bytes): Likewise.
12495         * crypt/sha256.c (__sha256_init_ctx): Likewise.
12496         (__sha256_finish_ctx): Likewise.
12497         (__sha256_process_bytes): Likewise.
12498         * crypt/sha512.c (__sha512_init_ctx): Likewise.
12499         (__sha512_finish_ctx): Likewise.
12500         (__sha512_process_bytes): Likewise.
12501         * ctype/isctype.c (__isctype): Likewise.
12502         * debug/backtrace.c (__backtrace): Likewise.
12503         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
12504         * debug/fgets_chk.c (__fgets_chk): Likewise.
12505         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
12506         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
12507         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
12508         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
12509         * debug/memset_chk.c (__memset_chk): Likewise.
12510         * debug/strcat_chk.c (__strcat_chk): Likewise.
12511         * debug/strncat_chk.c (__strncat_chk): Likewise.
12512         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
12513         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
12514         * dirent/dirfd.c (dirfd): Likewise.
12515         * dirent/getdents.c (__getdirentries): Likewise.
12516         * dirent/getdents64.c (getdirentries64): Likewise.
12517         * dirent/rewinddir.c (__rewinddir): Likewise.
12518         * dirent/seekdir.c (seekdir): Likewise.
12519         * dirent/telldir.c (telldir): Likewise.
12520         * elf/sln.c (makesymlinks): Likewise.
12521         (makesymlink): Likewise.
12522         * gmon/gmon.c (__moncontrol): Likewise.
12523         (__monstartup): Likewise.
12524         (write_hist): Likewise.
12525         (write_call_graph): Likewise.
12526         (write_bb_counts): Likewise.
12527         * grp/setgroups.c (setgroups): Likewise.
12528         * inet/inet_lnaof.c (inet_lnaof): Likewise.
12529         * inet/inet_net.c (inet_network): Likewise.
12530         * inet/inet_netof.c (inet_netof): Likewise.
12531         * inet/rcmd.c (rresvport_af): Likewise.
12532         (rresvport): Likewise.
12533         * io/access.c (__access): Likewise.
12534         * io/chdir.c (__chdir): Likewise.
12535         * io/chmod.c (__chmod): Likewise.
12536         * io/chown.c (__chown): Likewise.
12537         * io/close.c (__close): Likewise.
12538         * io/creat.c (creat): Likewise.
12539         * io/creat64.c (creat64): Likewise.
12540         * io/dup.c (__dup): Likewise.
12541         * io/dup2.c (__dup2): Likewise.
12542         * io/dup3.c (__dup3): Likewise.
12543         * io/euidaccess.c (__euidaccess): Likewise.
12544         * io/faccessat.c (faccessat): Likewise.
12545         * io/fchmod.c (__fchmod): Likewise.
12546         * io/fchmodat.c (fchmodat): Likewise.
12547         * io/fchown.c (__fchown): Likewise.
12548         * io/fchownat.c (fchownat): Likewise.
12549         * io/fcntl.c (__fcntl): Likewise.
12550         * io/flock.c (__flock): Likewise.
12551         * io/fts.c (fts_load): Likewise.
12552         (fts_close): Likewise.
12553         (fts_read): Likewise.
12554         (fts_set): Likewise.
12555         (fts_children): Likewise.
12556         (fts_build): Likewise.
12557         (fts_stat): Likewise.
12558         (fts_sort): Likewise.
12559         (fts_alloc): Likewise.
12560         (fts_lfree): Likewise.
12561         (fts_palloc): Likewise.
12562         (fts_padjust): Likewise.
12563         (fts_maxarglen): Likewise.
12564         (fts_safe_changedir): Likewise.
12565         * io/getwd.c (getwd): Likewise.
12566         * io/isatty.c (__isatty): Likewise.
12567         * io/lchown.c (__lchown): Likewise.
12568         * io/link.c (__link): Likewise.
12569         * io/linkat.c (linkat): Likewise.
12570         * io/lseek.c (__libc_lseek): Likewise.
12571         * io/mkdir.c (__mkdir): Likewise.
12572         * io/mkdirat.c (mkdirat): Likewise.
12573         * io/mkfifo.c (mkfifo): Likewise.
12574         * io/mkfifoat.c (mkfifoat): Likewise.
12575         * io/open.c (__libc_open): Likewise.
12576         * io/open64.c (__libc_open64): Likewise.
12577         * io/readlink.c (__readlink): Likewise.
12578         * io/readlinkat.c (readlinkat): Likewise.
12579         * io/rmdir.c (__rmdir): Likewise.
12580         * io/symlink.c (__symlink): Likewise.
12581         * io/symlinkat.c (symlinkat): Likewise.
12582         * io/ttyname.c (ttyname): Likewise.
12583         * io/ttyname_r.c (__ttyname_r): Likewise.
12584         * io/umask.c (__umask): Likewise.
12585         * io/unlink.c (__unlink): Likewise.
12586         * io/unlinkat.c (unlinkat): Likewise.
12587         * io/utime.c (utime): Likewise.
12588         * libio/clearerr.c (clearerr): Likewise.
12589         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
12590         * libio/feof.c (_IO_feof): Likewise.
12591         * libio/feof_u.c (feof_unlocked): Likewise.
12592         * libio/ferror.c (_IO_ferror): Likewise.
12593         * libio/ferror_u.c (ferror_unlocked): Likewise.
12594         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
12595         * libio/fileno.c (__fileno): Likewise.
12596         * libio/fputc.c (fputc): Likewise.
12597         * libio/fputc_u.c (fputc_unlocked): Likewise.
12598         * libio/fputwc.c (fputwc): Likewise.
12599         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
12600         * libio/freopen.c (freopen): Likewise.
12601         * libio/freopen64.c (freopen64): Likewise.
12602         * libio/fseek.c (fseek): Likewise.
12603         * libio/fseeko.c (fseeko): Likewise.
12604         * libio/fseeko64.c (fseeko64): Likewise.
12605         * libio/ftello.c (__ftello): Likewise.
12606         * libio/ftello64.c (ftello64): Likewise.
12607         * libio/fwide.c (fwide): Likewise.
12608         * libio/genops.c (_IO_un_link): Likewise.
12609         (_IO_link_in): Likewise.
12610         (_IO_least_marker): Likewise.
12611         (_IO_switch_to_main_get_area): Likewise.
12612         (_IO_switch_to_backup_area): Likewise.
12613         (_IO_switch_to_get_mode): Likewise.
12614         (_IO_free_backup_area): Likewise.
12615         (_IO_switch_to_put_mode): Likewise.
12616         (__overflow): Likewise.
12617         (__underflow): Likewise.
12618         (__uflow): Likewise.
12619         (_IO_setb): Likewise.
12620         (_IO_doallocbuf): Likewise.
12621         (_IO_default_underflow): Likewise.
12622         (_IO_default_uflow): Likewise.
12623         (_IO_default_xsputn): Likewise.
12624         (_IO_sgetn): Likewise.
12625         (_IO_default_xsgetn): Likewise.
12626         (_IO_sync): Likewise.
12627         (_IO_default_setbuf): Likewise.
12628         (_IO_default_seekpos): Likewise.
12629         (_IO_default_doallocate): Likewise.
12630         (_IO_init): Likewise.
12631         (_IO_old_init): Likewise.
12632         (_IO_default_sync): Likewise.
12633         (_IO_default_finish): Likewise.
12634         (_IO_default_seekoff): Likewise.
12635         (_IO_sputbackc): Likewise.
12636         (_IO_sungetc): Likewise.
12637         (_IO_set_column): Likewise.
12638         (_IO_set_column): Likewise.
12639         (_IO_adjust_column): Likewise.
12640         (_IO_get_column): Likewise.
12641         (_IO_init_marker): Likewise.
12642         (_IO_remove_marker): Likewise.
12643         (_IO_marker_difference): Likewise.
12644         (_IO_marker_delta): Likewise.
12645         (_IO_seekmark): Likewise.
12646         (_IO_unsave_markers): Likewise.
12647         (_IO_nobackup_pbackfail): Likewise.
12648         (_IO_default_pbackfail): Likewise.
12649         (_IO_default_seek): Likewise.
12650         (_IO_default_stat): Likewise.
12651         (_IO_default_read): Likewise.
12652         (_IO_default_write): Likewise.
12653         (_IO_default_showmanyc): Likewise.
12654         (_IO_default_imbue): Likewise.
12655         (_IO_iter_next): Likewise.
12656         (_IO_iter_file): Likewise.
12657         * libio/getc.c (_IO_getc): Likewise.
12658         * libio/getwc.c (_IO_getwc): Likewise.
12659         * libio/iofclose.c (_IO_new_fclose): Likewise.
12660         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
12661         * libio/iofflush.c (_IO_fflush): Likewise.
12662         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
12663         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
12664         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
12665         * libio/iofgets.c (_IO_fgets): Likewise.
12666         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
12667         * libio/iofgetws.c (fgetws): Likewise.
12668         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
12669         * libio/iofopen64.c (_IO_fopen64): Likewise.
12670         * libio/iofopncook.c (_IO_cookie_read): Likewise.
12671         (_IO_cookie_write): Likewise.
12672         (_IO_cookie_seek): Likewise.
12673         (_IO_cookie_close): Likewise.
12674         (_IO_cookie_seekoff): Likewise.
12675         (_IO_old_cookie_seek): Likewise.
12676         * libio/iofputs.c (_IO_fputs): Likewise.
12677         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
12678         * libio/iofputws.c (fputws): Likewise.
12679         * libio/iofputws_u.c (fputws_unlocked): Likewise.
12680         * libio/iofread.c (_IO_fread): Likewise.
12681         * libio/iofread_u.c (__fread_unlocked): Likewise.
12682         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
12683         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
12684         * libio/ioftell.c (_IO_ftell): Likewise.
12685         * libio/iofwrite.c (_IO_fwrite): Likewise.
12686         * libio/iogetdelim.c (_IO_getdelim): Likewise.
12687         * libio/iogets.c (_IO_gets): Likewise.
12688         * libio/iopadn.c (_IO_padn): Likewise.
12689         * libio/iopopen.c (_IO_new_proc_open): Likewise.
12690         (_IO_new_popen): Likewise.
12691         (_IO_new_proc_close): Likewise.
12692         * libio/ioputs.c (_IO_puts): Likewise.
12693         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
12694         (_IO_seekoff): Likewise.
12695         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
12696         (_IO_seekpos): Likewise.
12697         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
12698         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
12699         * libio/ioungetc.c (_IO_ungetc): Likewise.
12700         * libio/ioungetwc.c (ungetwc): Likewise.
12701         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
12702         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
12703         * libio/iowpadn.c (_IO_wpadn): Likewise.
12704         * libio/libc_fatal.c (__libc_fatal): Likewise.
12705         * libio/memstream.c (__open_memstream): Likewise.
12706         (_IO_mem_sync): Likewise.
12707         (_IO_mem_finish): Likewise.
12708         * libio/oldfileops.c (_IO_old_file_init): Likewise.
12709         (_IO_old_file_close_it): Likewise.
12710         (_IO_old_file_finish): Likewise.
12711         (_IO_old_file_fopen): Likewise.
12712         (_IO_old_file_attach): Likewise.
12713         (_IO_old_file_setbuf): Likewise.
12714         (_IO_old_do_write): Likewise.
12715         (old_do_write): Likewise.
12716         (_IO_old_file_underflow): Likewise.
12717         (_IO_old_file_overflow): Likewise.
12718         (_IO_old_file_sync): Likewise.
12719         (_IO_old_file_seekoff): Likewise.
12720         (_IO_old_file_write): Likewise.
12721         (_IO_old_file_xsputn): Likewise.
12722         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
12723         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
12724         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
12725         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
12726         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
12727         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
12728         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
12729         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
12730         (_IO_old_popen): Likewise.
12731         (_IO_old_proc_close): Likewise.
12732         * libio/oldpclose.c (__old_pclose): Likewise.
12733         * libio/pclose.c (__new_pclose): Likewise.
12734         * libio/peekc.c (_IO_peekc_locked): Likewise.
12735         * libio/putc.c (_IO_putc): Likewise.
12736         * libio/putc_u.c (putc_unlocked): Likewise.
12737         * libio/putchar.c (putchar): Likewise.
12738         * libio/putchar_u.c (putchar_unlocked): Likewise.
12739         * libio/putwc.c (putwc): Likewise.
12740         * libio/putwc_u.c (putwc_unlocked): Likewise.
12741         * libio/putwchar.c (putwchar): Likewise.
12742         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
12743         * libio/rewind.c (rewind): Likewise.
12744         * libio/setbuf.c (setbuf): Likewise.
12745         * libio/setlinebuf.c (setlinebuf): Likewise.
12746         * libio/vasprintf.c (_IO_vasprintf): Likewise.
12747         * libio/vscanf.c (_IO_vscanf): Likewise.
12748         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
12749         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
12750         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
12751         * libio/wgenops.c (_IO_least_wmarker): Likewise.
12752         (_IO_switch_to_main_wget_area): Likewise.
12753         (_IO_switch_to_wbackup_area): Likewise.
12754         (_IO_wsetb): Likewise.
12755         (_IO_wdefault_pbackfail): Likewise.
12756         (_IO_wdefault_finish): Likewise.
12757         (_IO_wdefault_uflow): Likewise.
12758         (__woverflow): Likewise.
12759         (__wuflow): Likewise.
12760         (__wunderflow): Likewise.
12761         (_IO_wdefault_xsputn): Likewise.
12762         (_IO_wdefault_xsgetn): Likewise.
12763         (_IO_wdoallocbuf): Likewise.
12764         (_IO_wdefault_doallocate): Likewise.
12765         (_IO_switch_to_wget_mode): Likewise.
12766         (_IO_free_wbackup_area): Likewise.
12767         (_IO_switch_to_wput_mode): Likewise.
12768         (_IO_sputbackwc): Likewise.
12769         (_IO_sungetwc): Likewise.
12770         (_IO_adjust_wcolumn): Likewise.
12771         (_IO_init_wmarker): Likewise.
12772         (_IO_wmarker_delta): Likewise.
12773         (_IO_seekwmark): Likewise.
12774         (_IO_unsave_wmarkers): Likewise.
12775         * libio/wmemstream.c (open_wmemstream): Likewise.
12776         (_IO_wmem_sync): Likewise.
12777         (_IO_wmem_finish): Likewise.
12778         * locale/nl_langinfo.c (nl_langinfo): Likewise.
12779         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
12780         * locale/programs/simple-hash.c (init_hash): Likewise.
12781         (delete_hash): Likewise.
12782         (insert_entry): Likewise.
12783         (set_entry): Likewise.
12784         (next_prime): Likewise.
12785         (is_prime): Likewise.
12786         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
12787         (xmalloc): Likewise.
12788         (xrealloc): Likewise.
12789         * locale/programs/xstrdup.c (xstrdup): Likewise.
12790         * localedata/collate-test.c (xstrcoll): Likewise.
12791         * localedata/xfrm-test.c (xstrcmp): Likewise.
12792         * login/getlogin_r.c (__getlogin_r): Likewise.
12793         * login/getpt.c (__posix_openpt): Likewise.
12794         * login/login_tty.c (login_tty): Likewise.
12795         * login/setlogin.c (setlogin): Likewise.
12796         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
12797         (mach_msg_destroy_port): Likewise.
12798         (mach_msg_destroy_memory): Likewise.
12799         * malloc/mcheck.c (flood): Likewise.
12800         * misc/acct.c (acct): Likewise.
12801         * misc/brk.c (__brk): Likewise.
12802         * misc/chflags.c (chflags): Likewise.
12803         * misc/chroot.c (chroot): Likewise.
12804         * misc/fchflags.c (fchflags): Likewise.
12805         * misc/fstab.c (getfsspec): Likewise.
12806         (getfsfile): Likewise.
12807         * misc/fsync.c (fsync): Likewise.
12808         * misc/ftruncate.c (__ftruncate): Likewise.
12809         * misc/ftruncate64.c (__ftruncate64): Likewise.
12810         * misc/getdomain.c (getdomainname): Likewise.
12811         (getdomainname): Likewise.
12812         * misc/gethostname.c (__gethostname): Likewise.
12813         * misc/getpass.c (getpass): Likewise.
12814         * misc/getttyent.c (skip): Likewise.
12815         (value): Likewise.
12816         * misc/gtty.c (gtty): Likewise.
12817         * misc/hsearch.c (hsearch): Likewise.
12818         (hcreate): Likewise.
12819         * misc/hsearch_r.c (__hcreate_r): Likewise.
12820         (__hdestroy_r): Likewise.
12821         * misc/ioctl.c (__ioctl): Likewise.
12822         * misc/mkdtemp.c (mkdtemp): Likewise.
12823         * misc/mkostemp.c (mkostemp): Likewise.
12824         * misc/mkostemp64.c (mkostemp64): Likewise.
12825         * misc/mkostemps.c (mkostemps): Likewise.
12826         * misc/mkostemps64.c (mkostemps64): Likewise.
12827         * misc/mkstemp.c (mkstemp): Likewise.
12828         * misc/mkstemp64.c (mkstemp64): Likewise.
12829         * misc/mkstemps.c (mkstemps): Likewise.
12830         * misc/mkstemps64.c (mkstemps64): Likewise.
12831         * misc/mktemp.c (__mktemp): Likewise.
12832         * misc/preadv.c (preadv): Likewise.
12833         * misc/preadv64.c (preadv64): Likewise.
12834         * misc/pwritev.c (pwritev): Likewise.
12835         * misc/pwritev64.c (pwritev64): Likewise.
12836         * misc/readv.c (__readv): Likewise.
12837         * misc/revoke.c (revoke): Likewise.
12838         * misc/setdomain.c (setdomainname): Likewise.
12839         * misc/setegid.c (setegid): Likewise.
12840         * misc/seteuid.c (seteuid): Likewise.
12841         * misc/sethostid.c (sethostid): Likewise.
12842         * misc/sethostname.c (sethostname): Likewise.
12843         * misc/setregid.c (__setregid): Likewise.
12844         * misc/setreuid.c (__setreuid): Likewise.
12845         * misc/sstk.c (sstk): Likewise.
12846         * misc/stty.c (stty): Likewise.
12847         * misc/syscall.c (syscall): Likewise.
12848         * misc/syslog.c (setlogmask): Likewise.
12849         * misc/truncate.c (__truncate): Likewise.
12850         * misc/truncate64.c (truncate64): Likewise.
12851         * misc/ualarm.c (ualarm): Likewise.
12852         * misc/usleep.c (usleep): Likewise.
12853         * misc/ustat.c (ustat): Likewise.
12854         * misc/writev.c (__writev): Likewise.
12855         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
12856         * nptl/old_pthread_cond_broadcast.c
12857         (__pthread_cond_broadcast_2_0): Likewise.
12858         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
12859         Likewise.
12860         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
12861         Likewise.
12862         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
12863         Likewise.
12864         * nptl/pt-raise.c (raise): Likewise.
12865         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
12866         Likewise.
12867         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
12868         * nptl/pthread_barrierattr_destroy.c
12869         (pthread_barrierattr_destroy): Likewise.
12870         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
12871         Likewise.
12872         * nptl/pthread_barrierattr_setpshared.c
12873         (pthread_barrierattr_setpshared): Likewise.
12874         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
12875         Likewise.
12876         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
12877         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
12878         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
12879         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
12880         Likewise.
12881         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
12882         Likewise.
12883         * nptl/pthread_condattr_getpshared.c
12884         (pthread_condattr_getpshared): Likewise.
12885         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
12886         Likewise.
12887         * nptl/pthread_condattr_setpshared.c
12888         (pthread_condattr_setpshared): Likewise.
12889         * nptl/pthread_detach.c (pthread_detach): Likewise.
12890         * nptl/pthread_equal.c (__pthread_equal): Likewise.
12891         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
12892         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
12893         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
12894         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
12895         Likewise.
12896         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
12897         Likewise.
12898         * nptl/pthread_mutex_getprioceiling.c
12899         (pthread_mutex_getprioceiling): Likewise.
12900         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
12901         Likewise.
12902         * nptl/pthread_mutexattr_getprotocol.c
12903         (pthread_mutexattr_getprotocol): Likewise.
12904         * nptl/pthread_mutexattr_getpshared.c
12905         (pthread_mutexattr_getpshared): Likewise.
12906         * nptl/pthread_mutexattr_getrobust.c
12907         (pthread_mutexattr_getrobust): Likewise.
12908         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
12909         Likewise.
12910         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
12911         Likewise.
12912         * nptl/pthread_mutexattr_setprioceiling.c
12913         (pthread_mutexattr_setprioceiling): Likewise.
12914         * nptl/pthread_mutexattr_setprotocol.c
12915         (pthread_mutexattr_setprotocol): Likewise.
12916         * nptl/pthread_mutexattr_setpshared.c
12917         (pthread_mutexattr_setpshared): Likewise.
12918         * nptl/pthread_mutexattr_setrobust.c
12919         (pthread_mutexattr_setrobust): Likewise.
12920         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
12921         Likewise.
12922         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
12923         Likewise.
12924         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
12925         Likewise.
12926         * nptl/pthread_rwlockattr_getkind_np.c
12927         (pthread_rwlockattr_getkind_np): Likewise.
12928         * nptl/pthread_rwlockattr_getpshared.c
12929         (pthread_rwlockattr_getpshared): Likewise.
12930         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
12931         Likewise.
12932         * nptl/pthread_rwlockattr_setkind_np.c
12933         (pthread_rwlockattr_setkind_np): Likewise.
12934         * nptl/pthread_rwlockattr_setpshared.c
12935         (pthread_rwlockattr_setpshared): Likewise.
12936         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
12937         Likewise.
12938         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
12939         Likewise.
12940         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
12941         Likewise.
12942         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
12943         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
12944         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
12945         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
12946         * nptl/sem_close.c (sem_close): Likewise.
12947         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
12948         * nptl/sem_init.c (__old_sem_init): Likewise.
12949         * nptl/sigaction.c (__sigaction): Likewise.
12950         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
12951         * posix/_exit.c (_exit): Likewise.
12952         * posix/alarm.c (alarm): Likewise.
12953         * posix/confstr.c (confstr): Likewise.
12954         * posix/fpathconf.c (__fpathconf): Likewise.
12955         * posix/getgroups.c (__getgroups): Likewise.
12956         * posix/getpgid.c (__getpgid): Likewise.
12957         * posix/group_member.c (__group_member): Likewise.
12958         * posix/pathconf.c (__pathconf): Likewise.
12959         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
12960         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
12961         * posix/setgid.c (__setgid): Likewise.
12962         * posix/setpgid.c (__setpgid): Likewise.
12963         * posix/setuid.c (__setuid): Likewise.
12964         * posix/sleep.c (__sleep): Likewise.
12965         * posix/sysconf.c (__sysconf): Likewise.
12966         * posix/times.c (__times): Likewise.
12967         * posix/uname.c (__uname): Likewise.
12968         * posix/waitid.c (__waitid): Likewise.
12969         * pwd/getpw.c (__getpw): Likewise.
12970         * resolv/base64.c (b64_pton): Likewise.
12971         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
12972         * resolv/gethnamaddr.c (Dprintf): Likewise.
12973         (gethostbyname): Likewise.
12974         (gethostbyname2): Likewise.
12975         (gethostbyaddr): Likewise.
12976         (_sethtent): Likewise.
12977         (_gethtbyname): Likewise.
12978         (_gethtbyname2): Likewise.
12979         (_gethtbyaddr): Likewise.
12980         (map_v4v6_address): Likewise.
12981         (map_v4v6_hostent): Likewise.
12982         (addrsort): Likewise.
12983         (ht_sethostent): Likewise.
12984         (ht_gethostbyname): Likewise.
12985         (ht_gethostbyaddr): Likewise.
12986         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
12987         (inet_net_ntop_ipv4): Likewise.
12988         * resolv/inet_neta.c (inet_neta): Likewise.
12989         * resolv/inet_ntop.c (inet_ntop): Likewise.
12990         (inet_ntop4): Likewise.
12991         (inet_ntop6): Likewise.
12992         * resolv/inet_pton.c (__inet_pton): Likewise.
12993         (inet_pton4): Likewise.
12994         (inet_pton6): Likewise.
12995         * resolv/res_debug.c (loc_aton): Likewise.
12996         (loc_ntoa): Likewise.
12997         * resource/getpriority.c (__getpriority): Likewise.
12998         * resource/getrusage.c (__getrusage): Likewise.
12999         * resource/nice.c (nice): Likewise.
13000         * resource/setpriority.c (__setpriority): Likewise.
13001         * resource/setrlimit64.c (setrlimit64): Likewise.
13002         * resource/vlimit.c (vlimit): Likewise.
13003         * resource/vtimes.c (vtimes): Likewise.
13004         * rt/aio_error.c (aio_error): Likewise.
13005         * rt/aio_return.c (aio_return): Likewise.
13006         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
13007         * signal/kill.c (__kill): Likewise.
13008         * signal/killpg.c (killpg): Likewise.
13009         * signal/raise.c (raise): Likewise.
13010         * signal/sigaction.c (__sigaction): Likewise.
13011         * signal/sigaddset.c (sigaddset): Likewise.
13012         * signal/sigaltstack.c (sigaltstack): Likewise.
13013         * signal/sigandset.c (sigandset): Likewise.
13014         * signal/sigblock.c (__sigblock): Likewise.
13015         * signal/sigdelset.c (sigdelset): Likewise.
13016         * signal/sigempty.c (sigemptyset): Likewise.
13017         * signal/sigfillset.c (sigfillset): Likewise.
13018         * signal/sighold.c (sighold): Likewise.
13019         * signal/sigignore.c (sigignore): Likewise.
13020         * signal/sigintr.c (siginterrupt): Likewise.
13021         * signal/sigisempty.c (sigisemptyset): Likewise.
13022         * signal/sigismem.c (sigismember): Likewise.
13023         * signal/signal.c (signal): Likewise.
13024         * signal/sigorset.c (sigorset): Likewise.
13025         * signal/sigpause.c (__sigpause): Likewise.
13026         * signal/sigpending.c (sigpending): Likewise.
13027         * signal/sigprocmask.c (__sigprocmask): Likewise.
13028         * signal/sigrelse.c (sigrelse): Likewise.
13029         * signal/sigreturn.c (__sigreturn): Likewise.
13030         * signal/sigset.c (sigset): Likewise.
13031         * signal/sigsetmask.c (__sigsetmask): Likewise.
13032         * signal/sigstack.c (sigstack): Likewise.
13033         * signal/sigsuspend.c (__sigsuspend): Likewise.
13034         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
13035         * signal/sysv_signal.c (__sysv_signal): Likewise.
13036         * socket/accept.c (accept): Likewise.
13037         * socket/accept4.c (__libc_accept4): Likewise.
13038         * socket/bind.c (__bind): Likewise.
13039         * socket/connect.c (__connect): Likewise.
13040         * socket/getpeername.c (getpeername): Likewise.
13041         * socket/getsockname.c (__getsockname): Likewise.
13042         * socket/getsockopt.c (getsockopt): Likewise.
13043         * socket/listen.c (__listen): Likewise.
13044         * socket/recv.c (__recv): Likewise.
13045         * socket/recvmsg.c (__recvmsg): Likewise.
13046         * socket/send.c (__send): Likewise.
13047         * socket/sendmsg.c (__sendmsg): Likewise.
13048         * socket/shutdown.c (shutdown): Likewise.
13049         * socket/sockatmark.c (sockatmark): Likewise.
13050         * socket/socket.c (__socket): Likewise.
13051         * stdio-common/ctermid.c (ctermid): Likewise.
13052         * stdio-common/cuserid.c (cuserid): Likewise.
13053         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
13054         * stdio-common/remove.c (remove): Likewise.
13055         * stdio-common/rename.c (rename): Likewise.
13056         * stdio-common/renameat.c (renameat): Likewise.
13057         * stdio-common/tempname.c (__gen_tempname): Likewise.
13058         * stdio-common/xbug.c (InitBuffer): Likewise.
13059         (AppendToBuffer): Likewise.
13060         (ReadFile): Likewise.
13061         * stdlib/a64l.c (a64l): Likewise.
13062         * stdlib/drand48_r.c (drand48_r): Likewise.
13063         * stdlib/getcontext.c (getcontext): Likewise.
13064         * stdlib/getenv.c (getenv): Likewise.
13065         * stdlib/l64a.c (l64a): Likewise.
13066         * stdlib/llabs.c (llabs): Likewise.
13067         * stdlib/lldiv.c (lldiv): Likewise.
13068         * stdlib/lrand48_r.c (lrand48_r): Likewise.
13069         * stdlib/mrand48_r.c (mrand48_r): Likewise.
13070         * stdlib/putenv.c (putenv): Likewise.
13071         * stdlib/random.c (__srandom): Likewise.
13072         (__initstate): Likewise.
13073         (__setstate): Likewise.
13074         * stdlib/random_r.c (__srandom_r): Likewise.
13075         (__setstate_r): Likewise.
13076         (__random_r): Likewise.
13077         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
13078         * stdlib/setcontext.c (setcontext): Likewise.
13079         * stdlib/setenv.c (setenv): Likewise.
13080         (unsetenv): Likewise.
13081         * stdlib/srand48.c (srand48): Likewise.
13082         * stdlib/srand48_r.c (__srand48_r): Likewise.
13083         * stdlib/swapcontext.c (swapcontext): Likewise.
13084         * stdlib/system.c (__libc_system): Likewise.
13085         * stdlib/tst-strtod.c (expand): Likewise.
13086         * stdlib/tst-strtol.c (expand): Likewise.
13087         * stdlib/tst-strtoll.c (expand): Likewise.
13088         * streams/fattach.c (fattach): Likewise.
13089         * streams/fdetach.c (fdetach): Likewise.
13090         * streams/getmsg.c (getmsg): Likewise.
13091         * streams/isastream.c (isastream): Likewise.
13092         * string/ffs.c (__ffs): Likewise.
13093         * string/ffsll.c (ffsll): Likewise.
13094         * string/memcmp.c (memcmp_common_alignment): Likewise.
13095         (memcmp_not_common_alignment): Likewise.
13096         (MEMCMP): Likewise.
13097         * string/memcpy.c (memcpy): Likewise.
13098         * string/memmove.c (MEMMOVE): Likewise.
13099         * string/memset.c (memset): Likewise.
13100         * string/rawmemchr.c (RAWMEMCHR): Likewise.
13101         * string/strchrnul.c (STRCHRNUL): Likewise.
13102         * string/strerror.c (strerror): Likewise.
13103         * string/strndup.c (__strndup): Likewise.
13104         * string/strverscmp.c (__strverscmp): Likewise.
13105         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
13106         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
13107         (clnttcp_freeres): Likewise.
13108         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
13109         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
13110         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
13111         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
13112         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
13113         (xdr_callhdr): Likewise.
13114         * sunrpc/rpcinfo.c (udpping): Likewise.
13115         (tcpping): Likewise.
13116         (pstatus): Likewise.
13117         (pmapdump): Likewise.
13118         (brdcst): Likewise.
13119         (deletereg): Likewise.
13120         (getprognum): Likewise.
13121         (getvers): Likewise.
13122         (get_inet_address): Likewise.
13123         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
13124         * sunrpc/svc_udp.c (svcudp_create): Likewise.
13125         (svcudp_stat): Likewise.
13126         (svcudp_recv): Likewise.
13127         (svcudp_reply): Likewise.
13128         (svcudp_getargs): Likewise.
13129         (svcudp_freeargs): Likewise.
13130         (svcudp_destroy): Likewise.
13131         * sunrpc/xdr.c (xdr_bytes): Likewise.
13132         (xdr_netobj): Likewise.
13133         (xdr_string): Likewise.
13134         (xdr_wrapstring): Likewise.
13135         * sunrpc/xdr_float.c (xdr_float): Likewise.
13136         (xdr_double): Likewise.
13137         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
13138         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
13139         * sysvipc/ftok.c (ftok): Likewise.
13140         * sysvipc/msgctl.c (msgctl): Likewise.
13141         * sysvipc/msgget.c (msgget): Likewise.
13142         * sysvipc/msgrcv.c (msgrcv): Likewise.
13143         * sysvipc/msgsnd.c (msgsnd): Likewise.
13144         * sysvipc/semget.c (semget): Likewise.
13145         * sysvipc/semop.c (semop): Likewise.
13146         * sysvipc/shmat.c (shmat): Likewise.
13147         * sysvipc/shmctl.c (shmctl): Likewise.
13148         * sysvipc/shmdt.c (shmdt): Likewise.
13149         * sysvipc/shmget.c (shmget): Likewise.
13150         * termios/cfmakeraw.c (cfmakeraw): Likewise.
13151         * termios/speed.c (cfgetospeed): Likewise.
13152         (cfgetispeed): Likewise.
13153         (cfsetospeed): Likewise.
13154         (cfsetispeed): Likewise.
13155         * termios/tcflow.c (tcflow): Likewise.
13156         * termios/tcflush.c (tcflush): Likewise.
13157         * termios/tcgetattr.c (__tcgetattr): Likewise.
13158         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
13159         * termios/tcgetsid.c (tcgetsid): Likewise.
13160         * termios/tcsendbrk.c (tcsendbreak): Likewise.
13161         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
13162         * time/adjtime.c (__adjtime): Likewise.
13163         * time/dysize.c (dysize): Likewise.
13164         * time/ftime.c (ftime): Likewise.
13165         * time/getitimer.c (__getitimer): Likewise.
13166         * time/gettimeofday.c (__gettimeofday): Likewise.
13167         * time/gmtime.c (__gmtime_r): Likewise.
13168         (gmtime): Likewise.
13169         * time/localtime.c (__localtime_r): Likewise.
13170         (localtime): Likewise.
13171         * time/offtime.c (__offtime): Likewise.
13172         * time/settimeofday.c (__settimeofday): Likewise.
13173         * time/stime.c (stime): Likewise.
13174         * time/strftime_l.c (tm_diff): Likewise.
13175         (iso_week_days): Likewise.
13176         * time/strptime.c (strptime): Likewise.
13177         * time/time.c (time): Likewise.
13178         * time/timespec_get.c (timespec_get): Likewise.
13179         * time/tzset.c (tzset_internal): Likewise.
13180         (compute_change): Likewise.
13181         (__tz_compute): Likewise.
13182         * wcsmbs/btowc.c (__btowc): Likewise.
13183         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
13184         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
13185         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
13186         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
13187         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
13188         * wcsmbs/wcscat.c (__wcscat): Likewise.
13189         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
13190         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
13191         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
13192         * wcsmbs/wcscspn.c (wcscspn): Likewise.
13193         * wcsmbs/wcsdup.c (wcsdup): Likewise.
13194         * wcsmbs/wcslen.c (__wcslen): Likewise.
13195         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
13196         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
13197         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
13198         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
13199         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
13200         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
13201         * wcsmbs/wcsspn.c (wcsspn): Likewise.
13202         * wcsmbs/wcsstr.c (wcsstr): Likewise.
13203         * wcsmbs/wcstok.c (wcstok): Likewise.
13204         * wcsmbs/wctob.c (wctob): Likewise.
13205         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
13206         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13207         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
13208         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
13209         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
13210         * wcsmbs/wmemset.c (__wmemset): Likewise.
13211         * wctype/wcfuncs.c (__towlower): Likewise.
13212         (__towupper): Likewise.
13213
13214         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
13215         (lll_unlock_elision): Add adapt_count parameter.
13216
13217 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
13218
13219         * sysdeps/nptl/configure.ac: Do not give errors based on the
13220         results of top-level configure tests.
13221         * sysdeps/nptl/configure: Regenerated.
13222
13223         * configure.ac (libc_cv_Bgroup): Remove configure test.
13224         * configure: Regenerated.
13225         * config.make.in (have-Bgroup): Remove variable.
13226
13227         * configure.ac (sizeof_long_double): Remove configure test.
13228         * configure: Regenerated.
13229         * config.make.in (sizeof-long-double): Remove variable.
13230
13231         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
13232         * configure: Regenerated.
13233         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
13234         variable.
13235         (exceptions): Likewise.
13236         * sysdeps/arm/configure: Regenerated.
13237         * config.make.in (exceptions): Remove variable.
13238         * Makeconfig (uses-callbacks): Use -fexceptions instead of
13239         $(exceptions).
13240         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
13241         (CFLAGS-vdprintf_chk.c): Likewise.
13242         (CFLAGS-printf_chk.c): Likewise.
13243         (CFLAGS-fprintf_chk.c): Likewise.
13244         (CFLAGS-vprintf_chk.c): Likewise.
13245         (CFLAGS-vfprintf_chk.c): Likewise.
13246         (CFLAGS-gets_chk.c): Likewise.
13247         (CFLAGS-fgets_chk.c): Likewise.
13248         (CFLAGS-fgets_u_chk.c): Likewise.
13249         (CFLAGS-fread_chk.c): Likewise.
13250         (CFLAGS-fread_u_chk.c): Likewise.
13251         (CFLAGS-wprintf_chk.c): Likewise.
13252         (CFLAGS-fwprintf_chk.c): Likewise.
13253         (CFLAGS-vwprintf_chk.c): Likewise.
13254         (CFLAGS-vfwprintf_chk.c): Likewise.
13255         (CFLAGS-fgetws_chk.c): Likewise.
13256         (CFLAGS-fgetws_u_chk.c): Likewise.
13257         * libio/Makefile (CFLAGS-fileops.c): Likewise.
13258         (CFLAGS-fputc.c): Likewise.
13259         (CFLAGS-fputwc.c): Likewise.
13260         (CFLAGS-freopen64.c): Likewise.
13261         (CFLAGS-freopen.c): Likewise.
13262         (CFLAGS-fseek.c): Likewise.
13263         (CFLAGS-fseeko64.c): Likewise.
13264         (CFLAGS-fseeko.c): Likewise.
13265         (CFLAGS-ftello64.c): Likewise.
13266         (CFLAGS-ftello.c): Likewise.
13267         (CFLAGS-fwide.c): Likewise.
13268         (CFLAGS-genops.c): Likewise.
13269         (CFLAGS-getc.c): Likewise.
13270         (CFLAGS-getchar.c): Likewise.
13271         (CFLAGS-getwc.c): Likewise.
13272         (CFLAGS-getwchar.c): Likewise.
13273         (CFLAGS-iofclose.c): Likewise.
13274         (CFLAGS-iofflush.c): Likewise.
13275         (CFLAGS-iofgetpos64.c): Likewise.
13276         (CFLAGS-iofgetpos.c): Likewise.
13277         (CFLAGS-iofgets.c): Likewise.
13278         (CFLAGS-iofgetws.c): Likewise.
13279         (CFLAGS-iofputs.c): Likewise.
13280         (CFLAGS-iofputws.c): Likewise.
13281         (CFLAGS-iofread.c): Likewise.
13282         (CFLAGS-iofsetpos64.c): Likewise.
13283         (CFLAGS-iofsetpos.c): Likewise.
13284         (CFLAGS-ioftell.c): Likewise.
13285         (CFLAGS-iofwrite.c): Likewise.
13286         (CFLAGS-iogetdelim.c): Likewise.
13287         (CFLAGS-iogetline.c): Likewise.
13288         (CFLAGS-iogets.c): Likewise.
13289         (CFLAGS-iogetwline.c): Likewise.
13290         (CFLAGS-ioputs.c): Likewise.
13291         (CFLAGS-ioseekoff.c): Likewise.
13292         (CFLAGS-ioseekpos.c): Likewise.
13293         (CFLAGS-iosetbuffer.c): Likewise.
13294         (CFLAGS-iosetvbuf.c): Likewise.
13295         (CFLAGS-ioungetc.c): Likewise.
13296         (CFLAGS-ioungetwc.c): Likewise.
13297         (CFLAGS-oldfileops.c): Likewise.
13298         (CFLAGS-oldiofclose.c): Likewise.
13299         (CFLAGS-oldiofgetpos64.c): Likewise.
13300         (CFLAGS-oldiofgetpos.c): Likewise.
13301         (CFLAGS-oldiofsetpos64.c): Likewise.
13302         (CFLAGS-oldiofsetpos.c): Likewise.
13303         (CFLAGS-peekc.c): Likewise.
13304         (CFLAGS-putc.c): Likewise.
13305         (CFLAGS-putchar.c): Likewise.
13306         (CFLAGS-putwc.c): Likewise.
13307         (CFLAGS-putwchar.c): Likewise.
13308         (CFLAGS-rewind.c): Likewise.
13309         (CFLAGS-wfileops.c): Likewise.
13310         (CFLAGS-wgenops.c): Likewise.
13311         (CFLAGS-oldiofopen.c): Likewise.
13312         (CFLAGS-iofopen.c): Likewise.
13313         (CFLAGS-iofopen64.c): Likewise.
13314         (CFLAGS-oldtmpfile.c): Likewise.
13315         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
13316         (CFLAGS-fprintf.c): Likewise.
13317         (CFLAGS-printf.c): Likewise.
13318         (CFLAGS-vfwprintf.c): Likewise.
13319         (CFLAGS-vfscanf.c): Likewise.
13320         (CFLAGS-vfwscanf.c): Likewise.
13321         (CFLAGS-fscanf.c): Likewise.
13322         (CFLAGS-scanf.c): Likewise.
13323         (CFLAGS-isoc99_vfscanf.c): Likewise.
13324         (CFLAGS-isoc99_vscanf.c): Likewise.
13325         (CFLAGS-isoc99_fscanf.c): Likewise.
13326         (CFLAGS-isoc99_scanf.c): Likewise.
13327         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
13328         (CFLAGS-isoc99_fwscanf.c): Likewise.
13329         (CFLAGS-isoc99_vwscanf.c): Likewise.
13330         (CFLAGS-isoc99_vfwscanf.c): Likewise.
13331
13332         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
13333         after mkstemp64.
13334         * login/tst-utmp.c (do_prepare): Likewise.
13335         * rt/tst-aio.c (do_prepare): Likewise.
13336         * rt/tst-aio64.c (do_prepare): Likewise.
13337
13338 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13339
13340         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13341         (__lll_lock_elision): Remove adapt_count decrement...
13342         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13343         (__lll_trylock_elision): Likewise.
13344         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
13345         (__lll_unlock_elision): ... to here. And utilize
13346         new adapt_count parameter.
13347         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
13348         (__lll_unlock_elision): Update to include adapt_count
13349         parameter.
13350         (lll_unlock_elision): Pass pointer to adapt_count
13351         variable.
13352
13353 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13354
13355         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
13356         Add elision adapt_count parameter to list of arguments.
13357         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
13358         (lll_unlock_elision): Update with new parameter list
13359         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
13360         (lll_unlock_elision): Likewise.
13361         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
13362         (lll_unlock_elision): Likewise.
13363
13364 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13365
13366         [BZ #19122]
13367         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
13368         attribute_hidden.
13369
13370         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
13371         attribute_hidden.
13372         [IS_IN (rtld)] (__strdup): Likewise.
13373         [IS_IN (rtld)] (__strerror_r): Likewise.
13374         [IS_IN (rtld)] (__strsep_g): Likewise.
13375         [IS_IN (rtld)] (memchr): Likewise.
13376         [IS_IN (rtld)] (memcmp): Likewise.
13377         [IS_IN (rtld)] (memcpy): Likewise.
13378         [IS_IN (rtld)] (memmove): Likewise.
13379         [IS_IN (rtld)] (memset): Likewise.
13380         [IS_IN (rtld)] (rawmemchr): Likewise.
13381         [IS_IN (rtld)] (stpcpy): Likewise.
13382         [IS_IN (rtld)] (strchr): Likewise.
13383         [IS_IN (rtld)] (strcmp): Likewise.
13384         [IS_IN (rtld)] (strlen): Likewise.
13385         [IS_IN (rtld)] (strnlen): Likewise.
13386         [IS_IN (rtld)] (strsep): Likewise.
13387
13388         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
13389         attribute_hidden.
13390         [IS_IN (rtld)] (__strtoul_internal): Likewise.
13391
13392         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
13393         attribute_hidden.
13394         [IS_IN (rtld)] (__libc_sigaction): Likewise.
13395
13396         * include/setjmp.h (__longjmp): Add attribute_hidden.
13397         [IS_IN (rtld)] (__sigsetjmp): Likewise.
13398
13399         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
13400         Add attribute_hidden.
13401
13402         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
13403         [IS_IN (rtld)] (__open): Likewise.
13404         [IS_IN (rtld)] (__fcntl): Likewise.
13405
13406         * include/dirent.h (__opendirat): Add attribute_hidden.
13407         (__getdents): Likewise.
13408         (__getdents64): Likewise.
13409         (__alloc_dir): Likewise.
13410         [IS_IN (rtld)] (__closedir): Likewise.
13411         [IS_IN (rtld)] (__fdopendir): Likewise.
13412         [IS_IN (rtld)] (__readdir): Likewise.
13413         [IS_IN (rtld)] (__readdir64): Likewise.
13414         [IS_IN (rtld)] (__rewinddir): Likewise.
13415
13416         * include/dlfcn.h (_dl_catch_error): Moved to ...
13417         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
13418         attribute_hidden.
13419
13420         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
13421         (_itoa_word): Likewise.
13422
13423         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
13424         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
13425         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
13426         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
13427         (_dl_higher_prime_number): Likewise.
13428         (_dl_debug_printf_c): Likewise.
13429         (_dl_signal_cerror): Likewise.
13430         (_dl_receive_error): Likewise.
13431         (_dl_reloc_bad_type): Likewise.
13432         (_dl_resolve_conflicts): Likewise.
13433         (_dl_check_all_versions): Likewise.
13434         (_dl_check_map_versions): Likewise.
13435         (_dl_sort_fini): Likewise.
13436         (_dl_debug_initialize): Likewise.
13437         (_dl_init_paths): Likewise.
13438         (_dl_show_auxv): Likewise.
13439         (_dl_next_ld_env_entry): Likewise.
13440         (_dl_important_hwcaps): Likewise.
13441         (_dl_load_cache_lookup): Likewise.
13442         (_dl_update_slotinfo): Likewise.
13443         (_dl_show_scope): Likewise.
13444
13445         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
13446         attribute_hidden.
13447         (_wordcopy_fwd_dest_aligned): Likewise.
13448         (_wordcopy_bwd_aligned): Likewise.
13449         (_wordcopy_bwd_dest_aligned): Likewise.
13450
13451         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
13452         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
13453         Likewise.
13454         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
13455         Likewise.
13456         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
13457
13458 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13459
13460         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
13461         GCC 5 requirement.
13462
13463 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
13464
13465         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
13466         test.
13467         * sysdeps/i386/configure: Regenerated.
13468         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
13469         code unconditional.
13470
13471         * configure.ac (libc_cv_asm_previous_directive): Remove configure
13472         test.
13473         (libc_cv_asm_popsection_directive): Likewise.
13474         * configure: Regenerated.
13475         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
13476         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
13477         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
13478         (__make_section_unallocated): Make definition unconditional.
13479         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
13480         Remove conditional definition.
13481         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
13482         (__make_section_unallocated): Likewise.
13483
13484         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
13485         * configure: Regenerated.
13486         * config.make.in (static-libgcc): Remove variable.
13487         * Makerules (build-shlib-helper): Use -static-libgcc instead of
13488         $(static-libgcc).
13489         (build-module-helper): Likewise.
13490
13491         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
13492         * configure: Regenerated.
13493
13494 2015-10-15  Florian Weimer  <fweimer@redhat.com>
13495
13496         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
13497         (struct char_buffer): New type.
13498         (char_buffer_start, char_buffer_size, char_buffer_error)
13499         (char_buffer_rewind, char_buffer_add): New functions.
13500         (ADDW): Remove macro, replaced by the char_buffer_add function.
13501         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
13502         of extend_alloca.  Make control flow more explicit.
13503
13504 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13505
13506         [BZ #19137]
13507         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
13508         Add -fomit-frame-pointer.
13509         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
13510
13511 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13512
13513         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
13514         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
13515         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
13516         only if !__GNUC_PREREQ (5,0).
13517         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
13518         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
13519         (INTERNAL_SYSCALL_NCS): Likewise.
13520         (LOADREGS_0): New macro for GCC 5.
13521         (ASMARGS_0): Likewise.
13522         (LOADREGS_1): Likewise.
13523         (ASMARGS_1): Likewise.
13524         (LOADREGS_2): Likewise.
13525         (ASMARGS_2): Likewise.
13526         (LOADREGS_3): Likewise.
13527         (ASMARGS_3): Likewise.
13528         (LOADREGS_4): Likewise.
13529         (ASMARGS_4): Likewise.
13530         (LOADREGS_5): Likewise.
13531         (ASMARGS_5): Likewise.
13532         (LOADREGS_6): Likewise.
13533         (ASMARGS_6): Likewise.
13534
13535 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13536
13537         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
13538         -fomit-frame-pointer.
13539         (CFLAGS-mmap64.c): Likewise.
13540         (CFLAGS-semtimedop.c): Likewise.
13541         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
13542         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
13543         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
13544         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
13545
13546 2015-10-15  Florian Weimer  <fweimer@redhat.com>
13547
13548         [BZ #18928]
13549         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
13550         _dl_pointer_guard member.
13551         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
13552         initializer.
13553         (security_init): Always set up pointer guard.
13554         (process_envvars): Do not process LD_POINTER_GUARD.
13555
13556 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
13557
13558         [BZ #19134]
13559         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
13560         (.LC2): Likewise.
13561         (.LC3): Likewise.
13562         (__lround): Do not add 0.5 to integer or out-of-range arguments.
13563
13564 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13565
13566         [BZ #19129]
13567         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
13568         r0 and r1.
13569
13570 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
13571
13572         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
13573
13574 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
13575
13576         * include/stap-probe.h: Fix macro definition formatting.
13577
13578 2015-10-14  Florian Weimer  <fweimer@redhat.com>
13579
13580         [BZ #19074]
13581         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
13582         load and store num_ifs.
13583
13584 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
13585
13586         [BZ #18822]
13587         * sysdeps/unix/sysv/linux/sched_getaffinity.c
13588         (__sched_getaffinity_new): Add libc_hidden_proto and
13589         libc_hidden_def.
13590
13591 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
13592
13593         [BZ #19007]
13594         * scripts/localplt.awk: Also allow GOT references.
13595         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
13596         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
13597         with "+ REL R_386_GLOB_DAT".
13598         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
13599         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
13600
13601 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
13602
13603         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
13604         INLINE_SYSCALL_ERROR_RETURN_VALUE.
13605         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
13606         Likewise.
13607         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
13608         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
13609         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
13610         INTERNAL_SYSCALLINTERNAL_SYSCALL and
13611         INLINE_SYSCALL_ERROR_RETURN_VALUE.
13612         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
13613         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13614         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
13615         Likewise.
13616         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13617
13618 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
13619
13620         [BZ #19125]
13621         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
13622         <math_private.h> and <stdint.h>.
13623         (__llround): Avoid conversions to and from long long int, and
13624         subtractions, where those might raise spurious exceptions.
13625         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
13626         <math_private.h> and <stdint.h>.
13627         (__llroundf): Avoid conversions to and from long long int, and
13628         subtractions, where those might raise spurious exceptions.
13629
13630 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
13631
13632         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
13633         INLINE_SYSCALL_ERROR_RETURN_VALUE.
13634         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
13635         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
13636         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
13637         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
13638         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
13639         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
13640         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
13641         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13642         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13643         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
13644         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
13645         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13646         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
13647         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
13648         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
13649         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
13650         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
13651         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
13652         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
13653         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
13654         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
13655         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
13656         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
13657         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
13658         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
13659         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
13660         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13661         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
13662         (__xstat64_conv): Likewise.
13663         (__xstat32_conv): Likewise.
13664
13665 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
13666
13667         * sysdeps/unix/sysv/linux/sysdep.h: New file.
13668         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
13669         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
13670         <sysdeps/unix/sysv/linux/sysdep.h>.
13671         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
13672         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
13673         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
13674         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
13675         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
13676         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
13677         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
13678         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
13679         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
13680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13682         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13683         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13684         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
13685         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13686         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13687         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
13688         (sysdep-dl-routines): Add sysdep.
13689         [$(subdir) == nptl] (libpthread-routines): Likewise.
13690         [$(subdir) == rt] (librt-routines): Likewise.
13691         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
13692         PIC when branching to SYSCALL_ERROR_LABEL.
13693         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
13694         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
13695         <sysdeps/unix/sysv/linux/sysdep.h>.
13696         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
13697         (SYSCALL_ERROR_ERRNO): Removed.
13698         (SYSCALL_ERROR_HANDLER): Changed to empty.
13699         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
13700         (__syscall_error): New prototype.
13701         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
13702         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
13703
13704 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
13705
13706         [BZ #19124]
13707         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
13708         (_dl_runtime_resolve_avx512): Make it a hidden alias of
13709         _dl_runtime_resolve_avx.
13710         (_dl_runtime_profile_avx512): Make it a hidden alias of
13711         _dl_runtime_profile_avx.
13712
13713 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
13714
13715         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
13716         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
13717         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
13718         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
13719
13720         [BZ #16422]
13721         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
13722         New configure test.
13723         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
13724         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
13725         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
13726         <math_private.h> and <stdint.h>.
13727         (__llrint): Avoid conversions to long long int where those might
13728         raise spurious exceptions.
13729         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
13730         <math_private.h> and <stdint.h>.
13731         (__llrintf): Avoid conversions to long long int where those might
13732         raise spurious exceptions.
13733
13734 2015-10-12  Andreas Schwab  <schwab@suse.de>
13735
13736         [BZ #18969]
13737         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
13738         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
13739         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
13740         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
13741         $(gen-locales).
13742         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
13743         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
13744         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
13745         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
13746         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
13747         $(gen-locales).
13748         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
13749         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
13750         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
13751         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
13752         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
13753         ($(objpfx)tst-ftell-active-handler.out)
13754         ($(objpfx)tst-ftell-append.out)
13755         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
13756         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
13757         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
13758         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
13759         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
13760         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
13761         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
13762         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
13763         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
13764         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
13765         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
13766         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
13767         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
13768         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
13769         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
13770         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
13771         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
13772         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
13773         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
13774         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
13775         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
13776         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
13777         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
13778         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
13779         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
13780         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
13781         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
13782         $(gen-locales).
13783         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
13784         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
13785         $(gen-locales).
13786         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
13787         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
13788         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
13789         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
13790         $(gen-locales).
13791         * libio/tst_wprintf2.c (main): Use explicit locale.
13792         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
13793
13794 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13795
13796         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
13797         __msg_sig_post.
13798         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
13799
13800 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
13801
13802         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
13803         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13804
13805         * sysdeps/arm/libm-test-ulps: Regenerated.
13806
13807         [BZ #15470]
13808         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
13809
13810         [BZ #16399]
13811         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
13812         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
13813         and <fix-fp-int-convert-overflow.h>.
13814         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
13815         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13816         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
13817         and <fix-fp-int-convert-overflow.h>.
13818         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
13819         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13820         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
13821         <fix-fp-int-convert-overflow.h>.
13822         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
13823         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13824         * sysdeps/ieee754/dbl-64/s_lround.c: Include
13825         <fix-fp-int-convert-overflow.h>.
13826         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
13827         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13828         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
13829         and <fix-fp-int-convert-overflow.h>.
13830         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
13831         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13832         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
13833         <limits.h> and <fix-fp-int-convert-overflow.h>.
13834         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
13835         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13836         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
13837         and <fix-fp-int-convert-overflow.h>.
13838         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
13839         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13840         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
13841         and <fix-fp-int-convert-overflow.h>.
13842         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
13843         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13844         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
13845
13846 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
13847
13848         [BZ #18589]
13849         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
13850         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
13851         $(gen-locales).
13852
13853 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13854             Phil Blundell <pb@pbcl.net>
13855
13856         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
13857         * nptl/tst-cancel26.c: New file.
13858         * nptl/tst-cancel27.c: Likewise.
13859
13860 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
13861
13862         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
13863         __ILP32__ isn't defined.
13864         (lrint): Likewise.
13865         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
13866         (lrintf): Likewise.
13867         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
13868         (lrintl): Likewise.
13869         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
13870         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
13871         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
13872
13873 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13874
13875         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
13876         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
13877
13878         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
13879         file.
13880         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
13881         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
13882
13883 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
13884
13885         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
13886         configure test.
13887         * sysdeps/i386/configure: Regenerated.
13888         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
13889         configure test.
13890         * sysdeps/x86_64/configure: Regenerated.
13891         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
13892         Make code unconditional.
13893
13894         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
13895         test.
13896         * sysdeps/i386/configure: Regenerated.
13897         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
13898         test.
13899         * sysdeps/x86_64/configure: Regenerated.
13900         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
13901         Make code unconditional.
13902         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
13903         Likewise.
13904         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
13905         Likewise.
13906         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13907         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
13908         code unconditional.
13909         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13910         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
13911         code unconditional.
13912         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13913         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
13914         code unconditional.
13915         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
13916         code unconditional.
13917         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13918         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
13919         code unconditional.
13920         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13921         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
13922         code unconditional.
13923         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13924         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
13925         code unconditional.
13926         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13927         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
13928         code unconditional.
13929         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13930         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
13931
13932         [BZ #19095]
13933         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
13934         mantissa to long int before shifting left.
13935
13936 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
13937
13938         [BZ #19094]
13939         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
13940         <limits.h>.
13941         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13942         when result overflows but exception would not result from cast.
13943         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
13944         <limits.h>.
13945         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13946         when result overflows but exception would not result from cast.
13947         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
13948         <limits.h>.
13949         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13950         when result overflows but exception would not result from cast.
13951         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
13952         <limits.h>.
13953         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13954         when result overflows but exception would not result from cast.
13955         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
13956         <limits.h>.
13957         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13958         when result overflows but exception would not result from cast.
13959         * math/libm-test.inc (lrint_test_data): Add more tests.
13960         (llrint_test_data): Likewise.
13961
13962 2015-10-08  Roland McGrath  <roland@hack.frob.com>
13963
13964         [BZ #18872]
13965         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
13966         Move out from under [$(run-built-tests) = yes] conditional.
13967         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
13968         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
13969
13970 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
13971
13972         [BZ #18589]
13973         * string/Makefile (tests): Add bug-strcoll2.
13974         (LOCALES): Add cs_CZ.UTF-8.
13975         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
13976
13977         [BZ #18589]
13978         * string/bug-strcoll2.c: New file.
13979         * locale/categories.def: Revert commit
13980         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
13981         * locale/langinfo.h: Likewise.
13982         * locale/localeinfo.h: Likewise.
13983         * locale/C-collate.c: Likewise.
13984         * locale/programs/ld-collate.c (collate_output): Likewise.
13985         * string/strcoll_l.c (STRDIFF): Likewise.
13986         (STRCOLL): Likewise.
13987         * wcsmbs/wcscoll_l.c: Likewise.
13988
13989 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
13990
13991         * math/libm-test.inc (lround_test_data): Do not expect the absence
13992         of "inexact" for some tests with non-integer arguments.
13993         (llround_test_data): Likewise.
13994
13995         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
13996         test.
13997         (libc_cv_cc_sse2avx): Likewise.
13998         * sysdeps/i386/configure: Regenerated.
13999         * sysdeps/i386/i686/multiarch/Makefile
14000         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
14001         [$(subdir) = math].
14002         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
14003         code unconditional.
14004         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
14005         Likewise.
14006         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
14007         Likewise.
14008         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
14009         Likewise.
14010         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
14011         test.
14012         (libc_cv_cc_sse2avx): Likewise.
14013         * sysdeps/x86_64/configure: Regenerated.
14014         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
14015         unconditional.
14016         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
14017         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
14018         unconditional.
14019         (_dl_runtime_profile)
14020         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
14021         conditional code.
14022         * sysdeps/x86_64/fpu/multiarch/Makefile
14023         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
14024         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
14025         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
14026         * sysdeps/x86_64/fpu/multiarch/e_exp.c
14027         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
14028         * sysdeps/x86_64/fpu/multiarch/e_log.c
14029         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
14030         * sysdeps/x86_64/fpu/multiarch/s_atan.c
14031         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
14032         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
14033         Likewise.
14034         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
14035         Likewise.
14036         * sysdeps/x86_64/fpu/multiarch/s_sin.c
14037         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
14038         * sysdeps/x86_64/fpu/multiarch/s_tan.c
14039         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
14040         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
14041         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
14042         (HAVE_SSE2AVX_SUPPORT): Likewise.
14043
14044 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
14045
14046         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
14047         instead of #pragma optimize.
14048
14049 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
14050
14051         [BZ #17195]
14052         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
14053         as is similarly done in systrim and _int_free already.
14054
14055 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14056
14057         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
14058
14059 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
14060
14061         [BZ #19088]
14062         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
14063         <limits.h>.
14064         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
14065         overflows but exception would not result from cast.
14066         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
14067         and <limits.h>.
14068         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
14069         overflows but exception would not result from cast.
14070         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
14071         <limits.h>.
14072         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
14073         overflows but exception would not result from cast.
14074         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
14075         <limits.h>.
14076         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
14077         overflows but exception would not result from cast.
14078         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
14079         <limits.h>.
14080         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
14081         overflows but exception would not result from cast.
14082         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
14083         <limits.h>.
14084         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
14085         overflows but exception would not result from cast.
14086         * math/libm-test.inc (lround_test_data): Add more tests.
14087         (llround_test_data): Likewise.
14088
14089 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
14090
14091         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
14092         (CFLAGS-ialloc.c): Ditto.
14093         (CFLAGS-scheck.c): Ditto.
14094
14095 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
14096
14097         [BZ #19086]
14098         * manual/filesys.texi (Storage Allocation): Fix argument order for
14099         posix_fallocate64.
14100
14101 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
14102
14103         [BZ #19085]
14104         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
14105         exponent below 48 inside case for non-overflowing exponent.
14106         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
14107
14108 2015-10-07  Florian Weimer  <fweimer@redhat.com>
14109
14110         * iconvdata/cp737.h (from_idx): Add const.
14111         * iconvdata/cp775.h (from_idx): Likewise.
14112
14113 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
14114
14115         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
14116         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
14117         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
14118
14119         [BZ #19079]
14120         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
14121         file, conditioned on [!_LP64].
14122         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
14123         [!_LP64] (__lround): Do not define as function or alias.
14124         [!_LP64] (lround): Likewise.
14125         [!_LP64] (__lroundl): Likewise.
14126         [!_LP64] (lroundl): Likewise.
14127         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
14128         macro.
14129         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
14130         Likewise.
14131
14132 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
14133
14134         * math/libm-test.inc (lrint_test_data): Add more tests.
14135         (llrint_test_data): Likewise.
14136         (lround_test_data): Likewise.
14137         (llround_test_data): Likewise.
14138
14139         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
14140         (llrint_test_data): Add tests used for lrint.
14141
14142         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
14143         test.
14144         * sysdeps/i386/configure: Regenerated.
14145         * sysdeps/i386/i686/multiarch/Makefile
14146         [$(config-cflags-sse4) = yes]: Make code unconditional.
14147         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
14148         Likewise.
14149         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
14150         Likewise.
14151         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
14152         test.
14153         * sysdeps/x86_64/configure: Regenerated.
14154         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
14155         Make code unconditional.
14156         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
14157         Likewise.
14158         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
14159         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
14160
14161         * scripts/rpm2dynsym.sh: Remove file.
14162
14163 2015-10-06  Florian Weimer  <fweimer@redhat.com>
14164
14165         * configure.ac (libc_cv_cxx_thread_local): Define.
14166         * configure: Regenerate.
14167         * config.make.in (have-cxx-thread_local): Define.
14168         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
14169         (LDLIBS-tst-thread_local1): Define.
14170         (tests): Add tst-thread_local1.
14171         [have-cxx-thread_local != yes] (tests-unsupported): Add
14172         tst-thread_local1.
14173         * nptl/tst-thread_local1.cc: New file.
14174
14175 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
14176
14177         [BZ #19078]
14178         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
14179         (u_thres): Likewise.
14180         (__expl): Determine whether to call __kernel_standard_l based on
14181         value of result, not argument.
14182
14183         * math/libm-test.inc (scalb_test_data): Add more expectations for
14184         the "inexact" exception.
14185
14186         [BZ #19077]
14187         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
14188         0.0L for argument 1.0L.
14189
14190         [BZ #19076]
14191         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
14192         constant 0.0L when computing infinite result.
14193
14194 2015-10-06  Florian Weimer  <fweimer@redhat.com>
14195
14196         [BZ #10432]
14197         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
14198         malloc_usable_size.
14199
14200 2015-10-06  Florian Weimer  <fweimer@redhat.com>
14201
14202         [BZ #19018]
14203         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14204         Mangle function pointer before storing it.
14205         (__call_tls_dtors): Demangle function pointer before calling it.
14206
14207 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14208
14209         [BZ #19012]
14210         * iconv/gconv_db.c (gen_steps): Check for additional errors.
14211         Clean up on failure.
14212
14213 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
14214
14215         [BZ #19071]
14216         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
14217         long int variable to store possibly incremented high part of
14218         mantissa.
14219         * math/libm-test.inc (lround_test_data): Add tests used for
14220         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
14221         for tests requiring 64-bit long.  Do not condition tests on
14222         [TEST_FLOAT] unnecessarily.
14223         (llround_test_data): Add tests used for lround.  Add another
14224         expectation for the "inexact" exception.  Do not condition tests
14225         on [TEST_FLOAT] unnecessarily.
14226
14227         [BZ #887]
14228         [BZ #19049]
14229         [BZ #19050]
14230         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
14231         * sysdeps/ieee754/dbl-64/e_log10.c: Include
14232         <fix-int-fp-convert-zero.h>.
14233         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14234         * sysdeps/ieee754/dbl-64/e_log2.c: Include
14235         <fix-int-fp-convert-zero.h>.
14236         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14237         * sysdeps/ieee754/dbl-64/s_erf.c: Include
14238         <fix-int-fp-convert-zero.h>.
14239         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14240         * sysdeps/ieee754/dbl-64/s_logb.c: Include
14241         <fix-int-fp-convert-zero.h>.
14242         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14243         * sysdeps/ieee754/flt-32/e_log10f.c: Include
14244         <fix-int-fp-convert-zero.h>.
14245         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14246         * sysdeps/ieee754/flt-32/e_log2f.c: Include
14247         <fix-int-fp-convert-zero.h>.
14248         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14249         * sysdeps/ieee754/flt-32/s_erff.c: Include
14250         <fix-int-fp-convert-zero.h>.
14251         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14252         * sysdeps/ieee754/flt-32/s_logbf.c: Include
14253         <fix-int-fp-convert-zero.h>.
14254         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14255         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
14256         <fix-int-fp-convert-zero.h>.
14257         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14258         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
14259         <fix-int-fp-convert-zero.h>.
14260         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14261         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
14262         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
14263         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
14264         file.
14265         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
14266
14267 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
14268
14269         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14270
14271 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
14272
14273         [BZ #19059]
14274         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
14275         overflowing computation.
14276         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
14277         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
14278         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
14279         Likewise.
14280         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
14281         Likewise.
14282         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
14283         Likewise.
14284         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14285         Likewise.
14286         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
14287         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
14288         Likewise.
14289         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
14290         Likewise.
14291         * math/libm-test.inc (nexttoward_test_data): Add more tests.
14292
14293         * nss/rewrite_field.c (__nss_rewrite_field): Use
14294         internal_function.
14295         * nss/valid_field.c (__nss_valid_field): Likewise.
14296         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
14297
14298 2015-10-02  Florian Weimer  <fweimer@redhat.com>
14299
14300         [BZ #18724]
14301         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
14302         (__nss_invalid_field_characters, __nss_valid_field)
14303         (__nss_valid_list_field, __nss_rewrite_field): Declare.
14304         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
14305         tst-field.c: New file.
14306         * nss/Makefile (routines): Add valid_field, rewrite_field.
14307         (tests-static): Define unconditionally.
14308         (tests): Include tests-static.
14309         [build-static-nss] (tests-static): Use append.
14310         [build-static-nss] (tests): Remove modification.
14311         * nss/getent.c (print_group): Call putgrent.  Report error.
14312         (print_gshadow): Call putsgent.  Report error.
14313         (print_passwd): Call putpwent.  Report error.
14314         (print_shadow): Call putspent.  Report error.
14315         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
14316         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
14317         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
14318         name, password, directory, shell fields for valid syntax.  Rewrite
14319         GECOS field to match syntax.
14320         * pwd/Makefile (tests): Add tst-putpwent.
14321         * pwd/tst-putpwent.c: New file.
14322         * grp/putgrent.c (putgrent): Convert to ISO function definition.
14323         Check grName, grpasswd, gr_mem fields for valid syntax.
14324         Change loop variable i to size_t.
14325         * grp/Makefile (tests): Add tst-putgrent.
14326         * grp/tst-putgrent.c: New file.
14327         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
14328         valid syntax.
14329         * shadow/Makefile (tests): Add tst-putspent.
14330         * shadow/tst-putspent.c: New file.
14331         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
14332         sg_mem fields for valid syntax.
14333         * gshadow/Makefile (tests): Add tst-putsgent.
14334         * gshadow/tst-putsgent.c: New file.
14335
14336 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14337
14338         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
14339         assembly instructions.
14340
14341 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14342
14343         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
14344         prefix from operands.
14345
14346 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
14347
14348         [BZ #16347]
14349         [BZ #19046]
14350         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
14351         <libc-internal.h>.
14352         (MAXLGM): Do not use diagnostic control macros.
14353         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
14354         threshold for ldbl-128ibm.
14355         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
14356         instead of multiplying by log then subtracting.
14357         * math/auto-libm-test-in: Add more tests of lgamma.
14358         * math/auto-libm-test-out: Regenerated.
14359
14360         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
14361         (TYPE_HEX_DIG): Likewise.
14362         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
14363         precisions when printing floating-point numbers.
14364         (check_float_internal): Likewise.
14365
14366 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
14367
14368         [BZ #16620]
14369         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
14370         of log (10) rounded downward to 48 bits.
14371         (log10_low): Use corresponding low part of log (10).
14372
14373         [BZ #19032]
14374         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
14375         compute result as (x - x) / (x - x) not as 0 / 0.
14376         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
14377         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
14378
14379         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
14380         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
14381         and expm1.
14382         * math/auto-libm-test-out: Regenerated.
14383         * math/libm-test.inc (acos_test_data): Add more tests.
14384         (asin_test_data): Likewise.
14385         (asinh_test_data): Likewise.
14386         (atan_test_data): Likewise.
14387         (atanh_test_data): Likewise.
14388         (atan2_test_data): Likewise.
14389         (cbrt_test_data): Likewise.
14390         (ceil_test_data): Likewise.
14391         (copysign_test_data): Likewise.
14392         (cos_test_data): Likewise.
14393         (cosh_test_data): Likewise.
14394         (erf_test_data): Likewise.
14395         (erfc_test_data): Likewise.
14396         (exp_test_data): Likewise.
14397         (exp10_test_data): Likewise.
14398         (exp2_test_data): Likewise.
14399         (expm1_test_data): Likewise.
14400         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14401
14402 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
14403
14404         [BZ #19006]
14405         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
14406         to ...
14407         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
14408         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
14409         to ...
14410         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
14411         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
14412         to ...
14413         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
14414         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
14415         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
14416         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
14417         to ...
14418         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
14419         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
14420         Moved to ...
14421         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
14422         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
14423         Moved to ...
14424         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
14425         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
14426         to ...
14427         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
14428         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
14429         Moved to ...
14430         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
14431         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
14432         to ...
14433         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
14434         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
14435         Removed.
14436         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
14437         Likewise.
14438         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
14439         Likewise.
14440         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
14441         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
14442         Likewise.
14443         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
14444         Likewise.
14445         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
14446         Likewise.
14447         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
14448         Likewise.
14449         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
14450         Likewise.
14451         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
14452         Likewise.
14453         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
14454         Likewise.
14455         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
14456         Likewise.
14457         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
14458         Likewise.
14459         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
14460         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
14461         Likewise.
14462         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
14463         Likewise.
14464         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
14465         Likewise.
14466         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
14467         Likewise.
14468         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
14469         Likewise.
14470         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
14471         Replace ../i486/pthread_cond_timedwait.S with
14472         ../pthread_cond_timedwait.S.
14473
14474 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
14475
14476         * math/libm-test.inc (acos_test_data): Refine expectations for
14477         errno and "inexact" exceptions.
14478         (acosh_test_data): Likewise.
14479         (asin_test_data): Likewise.
14480         (asinh_test_data): Likewise.
14481         (atan_test_data): Likewise.
14482         (atanh_test_data): Likewise.
14483         (atan2_test_data): Likewise.
14484         (cbrt_test_data): Likewise.
14485         (ceil_test_data): Likewise.
14486         (copysign_test_data): Likewise.
14487         (cosh_test_data): Likewise.
14488         (erf_test_data): Likewise.
14489         (erfc_test_data): Likewise.
14490         (exp_test_data): Likewise.
14491         (exp10_test_data): Likewise.
14492         (exp2_test_data): Likewise.
14493         (expm1_test_data): Likewise.
14494         (fabs_test_data): Likewise.
14495         (floor_test_data): Likewise.
14496         (fma_test_data): Likewise.
14497         (fmax_test_data): Likewise.
14498         (fmin_test_data): Likewise.
14499         (fmod_test_data): Likewise.
14500         (fpclassify_test_data): Likewise.
14501         (frexp_test_data): Likewise.
14502         (hypot_test_data): Likewise.
14503         (ilogb_test_data): Likewise.
14504         (isgreater_test_data): Likewise.
14505         (isgreaterequal_test_data): Likewise.
14506         (isinf_test_data): Likewise.
14507         (isless_test_data): Likewise.
14508         (islessequal_test_data): Likewise.
14509         (islessgreater_test_data): Likewise.
14510         (isnan_test_data): Likewise.
14511         (isnormal_test_data): Likewise.
14512         (issignaling_test_data): Likewise.
14513         (isunordered_test_data): Likewise.
14514         (j0_test_data): Likewise.
14515         (j1_test_data): Likewise.
14516         (jn_test_data): Likewise.
14517         (lgamma_test_data): Likewise.
14518         (lrint_test_data): Likewise.
14519         (llrint_test_data): Likewise.
14520         (log_test_data): Likewise.
14521         (log10_test_data): Likewise.
14522         (log1p_test_data): Likewise.
14523         (log2_test_data): Likewise.
14524         (logb_test_data): Likewise.
14525         (lround_test_data): Likewise.
14526         (llround_test_data): Likewise.
14527         (modf_test_data): Likewise.
14528         (nearbyint_test_data): Likewise.
14529         (nextafter_test_data): Likewise.
14530         (nexttoward_test_data): Likewise.
14531         (pow_test_data): Likewise.
14532         (remainder_test_data): Likewise.
14533         (remquo_test_data): Likewise.
14534         (rint_test_data): Likewise.
14535         (round_test_data): Likewise.
14536         (signbit_test_data): Likewise.
14537         (sinh_test_data): Likewise.
14538         (sqrt_test_data): Likewise.
14539         (tanh_test_data): Likewise.
14540         (tgamma_test_data): Likewise.
14541         (trunc_test_data): Likewise.
14542         (y0_test_data): Likewise.
14543         (y1_test_data): Likewise.
14544         (yn_test_data): Likewise.
14545         (significand_test_data): Likewise.
14546
14547 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
14548
14549         * manual/filesys.texi (Storage Allocation): Document that
14550         posix_fallocate emulation fails when fd is open with O_WRONLY.
14551
14552 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
14553
14554         [BZ #19016]
14555         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
14556         allow more cases with X^2 + Y^2 >= 0.5.
14557         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
14558         normal element in sum instead of special-casing based on values of
14559         arguments.
14560         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
14561         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
14562         -1 as normal element in sum instead of special-casing based on
14563         values of arguments.
14564         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
14565         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
14566         (__x2y2m1): Update comment.
14567         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
14568         as normal element in sum instead of special-casing based on values
14569         of arguments.
14570         * math/s_clog.c (__clog): Handle more cases using log1p without
14571         hypot.
14572         * math/s_clog10.c (__clog10): Likewise.
14573         * math/s_clog10f.c (__clog10f): Likewise.
14574         * math/s_clog10l.c (__clog10l): Likewise.
14575         * math/s_clogf.c (__clogf): Likewise.
14576         * math/s_clogl.c (__clogl): Likewise.
14577         * math/auto-libm-test-in: Add more tests of clog and clog10.
14578         * math/auto-libm-test-out: Regenerated.
14579         * sysdeps/i386/fpu/libm-test-ulps: Update.
14580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14581
14582 2015-09-28  Martin Sebor  <msebor@redhat.com>
14583
14584         [BZ #18969]
14585         * string/Makefile (LOCALES): Define.
14586         (gen-locales.mk): Include.
14587         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
14588         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
14589         * string/tst-strxfrm2.c (do_test): Print the name of the locale
14590         on setlocale failure.
14591
14592 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
14593
14594         [BZ #18985]
14595         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
14596         (__strftime_internal): Likewise.
14597         * time/tst-strftime.c (do_bz18985): New test.
14598         (do_test): Call it.
14599
14600 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
14601
14602         [BZ #18956]
14603         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
14604         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
14605         extracting high part.
14606         * math/auto-libm-test-in: Add another test of pow.
14607         * math/auto-libm-test-out: Regenerated.
14608         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14609
14610 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
14611
14612         [BZ #18825]
14613         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
14614         New macro.
14615         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
14616         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
14617         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
14618         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
14619         DBL_NARROW_EVAL, reloading the PIC register as needed.
14620         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
14621         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
14622         FLT_NARROW_EVAL.  Use separate return path for case when first
14623         argument is NaN.
14624         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
14625         DEFINE_LDBL_MIN.
14626         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
14627         PIC register.
14628         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
14629         math_check_force_underflow_nonneg.
14630         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
14631         underflow for subnormal result.
14632         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14633         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
14634         math_check_force_underflow_nonneg.
14635         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
14636         math_check_force_underflow.
14637         * sysdeps/x86_64/fpu/x86_64-math-asm.h
14638         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
14639         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
14640         DEFINE_LDBL_MIN.
14641         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
14642         * math/auto-libm-test-in: Add more tests of pow.
14643         * math/auto-libm-test-out: Regenerated.
14644
14645 2015-09-25  Florian Weimer  <fweimer@redhat.com>
14646
14647         * nss/bug17079.c (init_test_items): Add diagnostic for
14648         inconsistent entries.
14649         (test_buffer_size): Skip inconsistent entries.
14650
14651 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
14652
14653         [BZ #13304]
14654         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
14655         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
14656         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
14657
14658         [BZ #13304]
14659         * sysdeps/microblaze/s_fma.c: New file.
14660         * sysdeps/microblaze/s_fmaf.c: Likewise.
14661         * sysdeps/microblaze/sfp-machine.h: Likewise.
14662
14663 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
14664
14665         [BZ #17250]
14666         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
14667         member.
14668
14669 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
14670
14671         [BZ #18803]
14672         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
14673         (MO): New macro.
14674         (__ieee754_hypot) [PIC]: Load PIC register.
14675         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
14676         DBL_NARROW_EVAL.
14677         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
14678         math_check_force_underflow_nonneg in case where result might be
14679         tiny.
14680         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
14681         Likewise.
14682         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
14683         Likewise.
14684         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14685         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14686         * math/auto-libm-test-in: Add more tests of hypot.
14687         * math/auto-libm-test-out: Regenerated.
14688
14689 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
14690
14691         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
14692
14693 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
14694
14695         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
14696         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
14697         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
14698         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
14699         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
14700         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
14701         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
14702
14703         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
14704         LOAD_PIC_REG.
14705
14706         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
14707         (FLT_CHECK_FORCE_UFLOW): Likewise.
14708         (DBL_CHECK_FORCE_UFLOW): Likewise.
14709         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
14710         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
14711         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
14712         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
14713         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
14714         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
14715         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
14716         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
14717         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
14718         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14719         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
14720         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
14721         (flt_min): Replace with use of DEFINE_FLT_MIN.
14722         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
14723         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
14724         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14725         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
14726         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
14727         (flt_min): Replace with use of DEFINE_FLT_MIN.
14728         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
14729         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
14730         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14731         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
14732         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
14733         (flt_min): Replace with use of DEFINE_FLT_MIN.
14734         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
14735         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
14736         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
14737         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
14738         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
14739         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
14740         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
14741         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
14742         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14743         (__atan): Use DBL_CHECK_FORCE_UFLOW.
14744         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
14745         (flt_min): Replace with use of DEFINE_FLT_MIN.
14746         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
14747         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
14748         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14749         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
14750         main computation.
14751         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
14752         (flt_min): Replace with use of DEFINE_FLT_MIN.
14753         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
14754         main computation.
14755         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
14756         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14757         (MO): New macro.
14758         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
14759         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
14760         (flt_min): Replace with use of DEFINE_FLT_MIN.
14761         (MO): New macro.
14762         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
14763         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
14764         (__log1pl): Use MO.
14765
14766         [BZ #19003]
14767         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
14768         $(config-cflags-nofma).
14769
14770 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14771
14772         * sysdeps/aarch64/libm-test-ulps: Regenerated.
14773
14774 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
14775
14776         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
14777         (TWO127): Likewise.
14778
14779         * sysdeps/generic/math_private.h (fabs_tg): New macro.
14780         (min_of_type): Likewise.
14781         (math_check_force_underflow): Likewise.
14782         (math_check_force_underflow_nonneg): Likewise.
14783         (math_check_force_underflow_complex): Likewise.
14784         * math/e_exp2l.c (__ieee754_exp2l): Use
14785         math_check_force_underflow_nonneg.
14786         * math/k_casinh.c (__kernel_casinh): Likewise.
14787         * math/k_casinhf.c (__kernel_casinhf): Likewise.
14788         * math/k_casinhl.c (__kernel_casinhl): Likewise.
14789         * math/s_catan.c (__catan): Use
14790         math_check_force_underflow_complex.
14791         * math/s_catanf.c (__catanf): Likewise.
14792         * math/s_catanh.c (__catanh): Likewise.
14793         * math/s_catanhf.c (__catanhf): Likewise.
14794         * math/s_catanhl.c (__catanhl): Likewise.
14795         * math/s_catanl.c (__catanl): Likewise.
14796         * math/s_ccosh.c (__ccosh): Likewise.
14797         * math/s_ccoshf.c (__ccoshf): Likewise.
14798         * math/s_ccoshl.c (__ccoshl): Likewise.
14799         * math/s_cexp.c (__cexp): Likewise.
14800         * math/s_cexpf.c (__cexpf): Likewise.
14801         * math/s_cexpl.c (__cexpl): Likewise.
14802         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
14803         * math/s_clog10.c (__clog10): Likewise.
14804         * math/s_clog10f.c (__clog10f): Likewise.
14805         * math/s_clog10l.c (__clog10l): Likewise.
14806         * math/s_clogf.c (__clogf): Likewise.
14807         * math/s_clogl.c (__clogl): Likewise.
14808         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
14809         * math/s_csinf.c (__csinf): Likewise.
14810         * math/s_csinh.c (__csinh): Likewise.
14811         * math/s_csinhf.c (__csinhf): Likewise.
14812         * math/s_csinhl.c (__csinhl): Likewise.
14813         * math/s_csinl.c (__csinl): Likewise.
14814         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
14815         * math/s_csqrtf.c (__csqrtf): Likewise.
14816         * math/s_csqrtl.c (__csqrtl): Likewise.
14817         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
14818         * math/s_ctanf.c (__ctanf): Likewise.
14819         * math/s_ctanh.c (__ctanh): Likewise.
14820         * math/s_ctanhf.c (__ctanhf): Likewise.
14821         * math/s_ctanhl.c (__ctanhl): Likewise.
14822         * math/s_ctanl.c (__ctanl): Likewise.
14823         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
14824         instead of volatile.
14825         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
14826         math_check_force_underflow.
14827         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
14828         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
14829         volatile when forcing underflow.
14830         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
14831         math_check_force_underflow_nonneg.
14832         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
14833         Likewise.
14834         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
14835         math_check_force_underflow.
14836         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14837         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
14838         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14839         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
14840         math_check_force_underflow_nonneg.
14841         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
14842         math_check_force_underflow.
14843         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
14844         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
14845         instead of volatile.
14846         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
14847         math_check_force_underflow.
14848         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
14849         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
14850         math_check_force_underflow_nonneg.
14851         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
14852         math_check_force_underflow.
14853         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14854         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
14855         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
14856         math_check_force_underflow_nonneg.
14857         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
14858         Likewise.
14859         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
14860         math_check_force_underflow.
14861         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14862         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
14863         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
14864         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
14865         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14866         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
14867         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
14868         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
14869         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
14870         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
14871         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14872         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
14873         Likewise.
14874         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
14875         math_check_force_underflow_nonneg.
14876         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
14877         Likewise.
14878         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
14879         math_check_force_underflow.
14880         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14881         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
14882         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
14883         Likewise.
14884         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
14885         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
14886         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
14887         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
14888         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
14889         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
14890         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
14891         instead of volatile.
14892         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
14893         math_check_force_underflow.
14894         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
14895         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
14896         math_check_force_underflow.
14897         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
14898         Likewise.
14899         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
14900         Use math_check_force_underflow_nonneg.
14901         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
14902         math_check_force_underflow.
14903         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
14904         Likewise.
14905         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
14906         Likewise.
14907         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
14908         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
14909         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
14910         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
14911         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
14912         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
14913         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14914         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
14915         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
14916         math_check_force_underflow_nonneg.
14917         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
14918         math_check_force_underflow.
14919         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14920         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
14921         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
14922         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
14923         math_check_force_underflow_nonneg.
14924         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
14925         math_check_force_underflow.
14926         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
14927         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
14928         instead of volatile.
14929         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
14930         math_check_force_underflow.
14931
14932         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
14933         * stdlib/strtod_l.c: Include <math_private.h>.
14934         (overflow_value): Use math_narrow_eval.
14935         (underflow_value): Likewise.
14936         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
14937         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
14938         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14939         (__ieee754_gamma_r): Likewise.
14940         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
14941         Likewise.
14942         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
14943         Likewise.
14944         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
14945         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
14946         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
14947         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
14948         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14949         (__ieee754_gammaf_r): Likewise.
14950         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
14951         Likewise.
14952         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
14953         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
14954         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
14955         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
14956         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
14957         volatile.
14958         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
14959         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
14960         math_narrow_eval.
14961         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
14962         Likewise.
14963         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14964         Likewise.
14965         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
14966         Likewise.
14967         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
14968         volatile.
14969         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
14970         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
14971         math_narrow_eval.
14972         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
14973         Likewise.
14974         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
14975         Likewise.
14976
14977 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
14978
14979         * nptl/Versions: Remove ignored symbols.
14980
14981 2015-09-22  Florian Weimer  <fweimer@redhat.com>
14982
14983         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
14984         * nss/Makefile (tests): Update.
14985
14986 2015-09-22  Florian Weimer  <fweimer@redhat.com>
14987
14988         * nss/bug18287.c: New file.
14989         * nss/Makefile (tests): Add bug18287.
14990
14991 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14992
14993         * mach/Versions (__mach_host_self_): Add symbol.
14994
14995 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14996
14997         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
14998         vm_page_size.
14999
15000 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15001
15002         Really fix sysdeps/i386/fpu/s_scalbn.S build
15003
15004         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
15005         (libc: GLIBC_2_22): Remove unused version set.
15006
15007 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
15008
15009         * config.make.in (enable-timezone-tools): New variable.
15010         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
15011         (enable_timezone_tools): Export to generated files.
15012         * configure: Regenerate.
15013         * INSTALL: Regenerate.
15014         * manual/install.texi (--disable-timezone-tools): Document new flag.
15015         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
15016         ifeq ($(enable-timezone-tools),yes) check.
15017
15018 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
15019
15020         * timezone/Makefile: Revert previous change.
15021
15022         [BZ #18980]
15023         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
15024         (DEFINE_DBL_MIN): Likewise.
15025         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
15026         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
15027         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
15028         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
15029         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
15030         (dbl_min): Replace with use of DEFINE_DBL_MIN.
15031         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
15032         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
15033         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
15034         (dbl_min): Replace with use of DEFINE_DBL_MIN.
15035         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
15036         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
15037         (flt_min): Replace with use of DEFINE_FLT_MIN.
15038         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
15039         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
15040         (dbl_min): Replace with use of DEFINE_DBL_MIN.
15041         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
15042         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
15043         (flt_min): Replace with use of DEFINE_FLT_MIN.
15044         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
15045         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
15046         (flt_min): Replace with use of DEFINE_FLT_MIN.
15047         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
15048         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
15049         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
15050         (__ieee754_hypot): Use DBL_NARROW_EVAL.
15051         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
15052         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
15053         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
15054         (__ieee754_pow): Use DBL_NARROW_EVAL.
15055         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
15056         (__ieee754_powf): Use FLT_NARROW_EVAL.
15057         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
15058         (__ieee754_expf_sse2): Convert double-precision result to single
15059         precision.
15060         * sysdeps/i386/fpu/libm-test-ulps: Update.
15061
15062 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
15063
15064         * timezone/Makefile: Ignore unused variable errors due to private.h
15065         (time_t_min) and (time_t_max).
15066         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
15067         Likewise.
15068
15069 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
15070
15071         [BZ #18981]
15072         * sysdeps/i386/fpu/i386-math-asm.h: New file.
15073         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
15074         (__ieee754_scalb): Use DBL_NARROW_EVAL.
15075         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
15076         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
15077         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
15078         (__scalbn): Use DBL_NARROW_EVAL.
15079         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
15080         (__scalbnf): Use FLT_NARROW_EVAL.
15081
15082 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
15083
15084         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
15085         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
15086         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
15087         * stdio-common/printf_fp.c (___printf_fp):
15088         Use signbit to get the sign. Use isinf macro to allow inlining.
15089         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
15090         * stdio-common/printf_size.c (__printf_size): Likewise.
15091
15092 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
15093
15094         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
15095
15096 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
15097
15098         [BZ #18980]
15099         * sysdeps/generic/math_private.h: Include <float.h>.
15100         (math_narrow_eval): New macro.
15101         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
15102         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
15103         math_narrow_eval on overflowing return value.
15104         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
15105         Likewise.
15106         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
15107         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
15108         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
15109         Likewise.
15110         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
15111
15112 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
15113
15114         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
15115         * math/Makefile: Remove isinf_ns.c.
15116         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
15117         * math/multc3.c (__multc3): Likewise.
15118         * math/s_casin.c (__casin): Likewise.
15119         * math/s_casinf.c (__casinf): Likewise.
15120         * math/s_casinl.c (__casinl): Likewise.
15121         * math/s_cproj.c (__cproj): Likewise.
15122         * math/s_cprojf.c (__cprojf): Likewise.
15123         * math/s_cprojl.c (__cprofl): Likewise.
15124         * math/s_ctan.c (__ctan): Likewise.
15125         * math/s_ctanf.c (__ctanf): Likewise.
15126         * math/s_ctanh.c (__ctanh): Likewise.
15127         * math/s_ctanhf.c (__ctanhf): Likewise.
15128         * math/s_ctanhl.c (__ctanhl): Likewise.
15129         * math/s_ctanl.c (__ctanl): Likewise.
15130         * math/w_fmod.c (__fmod): Likewise.
15131         * math/w_fmodf.c (__fmodf): Likewise.
15132         * math/w_fmodl.c (_fmodl): Likewise.
15133         * math/w_remainder.c (__remainder): Likewise.
15134         * math/w_remainderf.c (__remainderf): Likewise.
15135         * math/w_remainderl.c (__remainderl): Likewise.
15136         * math/w_scalb.c (__scalb): Likewise.
15137         * math/w_scalbf.c (__scalbf): Likewise.
15138         * math/w_scalbl.c (__scalbl): Likewise.
15139         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
15140         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
15141         with isinf.
15142         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
15143         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
15144         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
15145         __isinf_nsf with isinf.
15146         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
15147         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
15148         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
15149         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
15150         with isinf.
15151         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
15152         __isinf_nsl with isinf.
15153         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
15154         with isinf.
15155         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
15156         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
15157         __isinf_nsl with isinf.
15158         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
15159         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
15160         with isinf.
15161
15162 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
15163
15164         * resolv/base64.c (rcsid): Remove unused static.
15165         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
15166         static.  (tqpi1): Likewise.
15167         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
15168         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
15169         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
15170         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
15171         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
15172         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
15173         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
15174         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
15175         Likewise.
15176
15177 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
15178
15179         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
15180         <nptl/pthreadP.h>.
15181         (_longjmp_unwind): Use __libc_ptf_call.
15182         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
15183
15184 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
15185
15186         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
15187         * sysdeps/arm/__longjmp.S: Likewise.
15188
15189 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
15190
15191         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
15192         Use __builtin_signbit.
15193         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
15194         Use __builtin_signbitf.
15195         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
15196         Use __builtin_signbitl.
15197         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
15198         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
15199
15200 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
15201
15202         [BZ #15367]
15203         [BZ #17441]
15204
15205         * math/Makefile: Build test-snan.c with -fsignaling-nans.
15206         * math/math.h (fpclassify): Use __builtin_fpclassify when
15207         available.  (signbit): Use __builtin_signbit(f/l).
15208         (isfinite): Use__builtin_isfinite.  (isnormal): Use
15209         __builtin_isnormal.  (isnan): Use __builtin_isnan.
15210         (isinf): Use __builtin_isinf_sign.
15211
15212 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
15213
15214         * benchtests/Makefile: Add bench-math-inlines, link with libm.
15215         * benchtests/bench-math-inlines.c: New benchmark.
15216         * benchtests/bench-util.h: New file.
15217         * benchtests/bench-util.c: New file.
15218         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
15219
15220 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
15221
15222         * elf/tst-dlmopen1.c: Define TEST_SO.
15223         (do_test): Use TEST_SO.
15224
15225         * elf/dl-load.c: Include libc-internal.h.
15226         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
15227
15228 2015-09-18  Vincent Bernat  <vincent@bernat.im>
15229
15230         [BZ #17887]
15231         * time/strptime_l.c (__strptime_internal): Make %z accept
15232         [+-]HH:MM time zones.
15233
15234 2015-09-18  Vincent Bernat  <vincent@bernat.im>
15235
15236         [BZ #17886]
15237         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
15238         valid time zone.
15239
15240 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
15241
15242         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
15243         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
15244         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15245         (__ASSUME_FDATASYNC): Delete.
15246
15247 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
15248
15249         * conform/linknamespace.pl: Require weak undefined symbols to be
15250         in the standard namespace.
15251         (%strong_syms): Rename to %seen_syms.
15252         (%strong_seen): Rename to %seen_where.
15253
15254 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
15255
15256         [BZ #18970]
15257         * misc/error.c (error): Replace pthread_setcancelstate with
15258         __pthread_setcancelstate.
15259         (error_at_line): Likewise.
15260         * posix/wordexp.c (parse_comm): Likewise.
15261         * stdlib/fmtmsg.c (fmtmsg): Likewise.
15262         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
15263         (__pthread_setcancelstate): This.
15264         (pthread_setcancelstate): Add an alias.
15265         * nptl/nptl-init.c (pthread_functions): Replace
15266         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
15267         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
15268         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
15269         hidden_proto.
15270         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
15271         it with hidden_def.
15272         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
15273         (pthread_setcancelstate): Renamed to ...
15274         (__pthread_setcancelstate): This.
15275         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
15276         __libc_ptf_call with __pthread_setcancelstate.
15277
15278 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
15279             Andreas Schwab  <schwab@suse.de>
15280
15281         [BZ #17118]
15282         * math/s_ctan.c (__ctan): Determine sign of zero real part of
15283         result when imaginary part of argument is infinite using sine and
15284         cosine.
15285         * math/s_ctanf.c (__ctanf): Likewise.
15286         * math/s_ctanl.c (__ctanl): Likewise.
15287         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
15288         of result when real part of argument is infinite using sine and
15289         cosine.
15290         * math/s_ctanhf.c (__ctanhf): Likewise.
15291         * math/s_ctanhl.c (__ctanhl): Likewise.
15292         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
15293         (ctanh_test_data): Add more tests of ctanh.
15294
15295 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
15296
15297         [BZ #15384]
15298         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
15299         bit-mask as in subtraction.
15300         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
15301         Likewise.
15302         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
15303         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
15304         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
15305
15306         [BZ #18951]
15307         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
15308         underflow exception for small results.
15309         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
15310         Likewise.
15311         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
15312         Likewise.
15313         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
15314         Likewise.
15315         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
15316         Likewise.
15317         * math/auto-libm-test-in: Add more tests of tgamma.
15318         * math/auto-libm-test-out: Regenerated.
15319
15320 2015-09-17  Andreas Schwab  <schwab@suse.de>
15321
15322         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
15323
15324 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
15325
15326         [BZ #18977]
15327         * math/bits/mathcalls.h
15328         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
15329         not declare.
15330         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
15331         Likewise.
15332         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
15333         Likewise.
15334         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
15335         Likewise.
15336         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
15337         Likewise.
15338         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
15339         Likewise.
15340         * conform/data/math.h-data
15341         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
15342         function.
15343         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
15344         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
15345         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
15346         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
15347         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
15348         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
15349         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
15350         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
15351         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
15352         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
15353         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
15354
15355         [BZ #6803]
15356         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
15357         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
15358         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
15359         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
15360         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
15361         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
15362         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
15363         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
15364         [NO_LONG_DOUBLE] (scalbnl): Likewise.
15365         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
15366         Likewise.
15367         [NO_LONG_DOUBLE] (scalbnl): Likewise.
15368         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
15369         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
15370         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
15371         long_double_symbol calls.
15372         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
15373         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
15374         strong alias of __ldexpl.
15375         (scalbnl): Define using long_double_symbol.
15376         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
15377         Remove alias.
15378         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
15379         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
15380         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
15381         (scalbln_test_data): Add more errno expectations.
15382
15383 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
15384
15385         Cache the host port like we cache the task port.  This way we do not
15386         need to call the kernel just to get the port.  Furthermore, we no
15387         longer increase the reference count on every invocation of
15388         `mach_host_self'.
15389
15390         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
15391         Protect declarations against the macro expansion.
15392         * mach/mach_init.c (__mach_host_self_): New variable.
15393         (mach_init): Initialize `__mach_host_self_'.
15394         * mach/mach_init.h (__mach_host_self_): New declaration.
15395         (__mach_host_self, mach_host_self): New macros.
15396         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
15397         Release reference.
15398
15399 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
15400
15401         [BZ #4404]
15402         * po/de.po: Update from Translation Project.
15403
15404         [BZ #16415]
15405         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
15406         (__expm1l): Remove code to handle positive infinity and overflow.
15407         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
15408         variable.
15409         (__expm1l): Remove code to handle positive infinity and overflow.
15410
15411 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15412             Paul Pluzhnikov  <ppluzhnikov@google.com>
15413
15414         [BZ #18872]
15415         * stdio-common/Makefile (tst-printf-bz18872): New test.
15416         (tst-printf-bz18872-mem.out): Likewise.
15417         * stdio-common/tst-printf-bz18872.sh: Generate new test.
15418         * stdio-common/vfprintf.c: Fix memory leaks.
15419
15420 2015-09-16  Andreas Schwab  <schwab@suse.de>
15421
15422         [BZ #17244]
15423         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
15424         Remove extra va_start/va_end calls.
15425
15426         [BZ #17243]
15427         * posix/execl.c (execl): Add missing va_end.
15428         * posix/execle.c (execle): Likewise.
15429         * posix/execlp.c (execlp): Likewise.
15430
15431 2015-09-15  Roland McGrath  <roland@hack.frob.com>
15432
15433         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
15434         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
15435
15436 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
15437
15438         [BZ #18967]
15439         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
15440         undefine around includes of <bits/mathcalls.h>.
15441         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
15442         not declare function.
15443         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
15444         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
15445         (scalb): Likewise.
15446         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
15447         not define macro.
15448         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
15449         variable.
15450         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
15451         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
15452         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
15453
15454         [BZ #18857]
15455         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
15456         return non-finite argument without doing ordered comparisons on
15457         it.
15458
15459         [BZ #16296]
15460         * math/fenv.h (fegetround): Use __attribute_pure__.
15461         * include/fenv.h (__fegetround): Likewise.
15462
15463         [BZ #18595]
15464         * math/s_ctan.c (__ctan): Force underflow exception for results
15465         whose real or imaginary part has small absolute value.
15466         * math/s_ctanf.c (__ctanf): Likewise.
15467         * math/s_ctanh.c (__ctanh): Likewise.
15468         * math/s_ctanhf.c (__ctanhf): Likewise.
15469         * math/s_ctanhl.c (__ctanhl): Likewise.
15470         * math/s_ctanl.c (__ctanl): Likewise.
15471         * math/auto-libm-test-in: Do not allow missing underflow for ctan
15472         and ctanh.  Add more tests of ctan and ctanh.
15473
15474         [BZ #15918]
15475         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
15476         handling of cases where one argument is an infinity.
15477
15478         [BZ #18875]
15479         [BZ #18966]
15480         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
15481         (MO): New macro.
15482         (__ieee754_exp10): For small results, force underflow exception
15483         and remove excess range and precision from return value.
15484         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
15485         (MO): New macro.
15486         (__ieee754_exp10f): For small results, force underflow exception
15487         and remove excess range and precision from return value.
15488         * math/auto-libm-test-in: Add more tests of exp10.
15489         * math/auto-libm-test-out: Regenerated.
15490
15491 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
15492
15493         [BZ #18875]
15494         [BZ #18961]
15495         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
15496         (MO): New macro.
15497         (__ieee754_exp): For small results, force underflow exception and
15498         remove excess range and precision from return value.
15499         (__exp_finite): Likewise.
15500         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
15501         (MO): New macro.
15502         (__ieee754_expf): For small results, force underflow exception and
15503         remove excess range and precision from return value.
15504         (__expf_finite): Likewise.
15505         * math/auto-libm-test-in: Add more tests of exp.
15506         * math/auto-libm-test-out: Regenerated.
15507
15508         [BZ #16521]
15509         [BZ #18875]
15510         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
15511         small results.
15512         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
15513         (MO): New macro.
15514         (__ieee754_exp2): For small results, force underflow exception and
15515         remove excess range and precision from return value.
15516         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
15517         (MO): New macro.
15518         (__ieee754_exp2f): For small results, force underflow exception
15519         and remove excess range and precision from return value.
15520         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
15521         (MO): New macro.
15522         (__ieee754_exp2l): Force underflow exception for small results.
15523         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
15524         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15525         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
15526         (MO): New macro.
15527         (__ieee754_exp2l): Force underflow exception for small results.
15528         * math/auto-libm-test-in: Add more tests or exp2.
15529         * math/auto-libm-test-out: Regenerated.
15530
15531 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
15532
15533         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
15534
15535         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
15536         /dev/null.
15537
15538 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15539
15540         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
15541         io fs process)): Drop spurious backslash.
15542
15543 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
15544
15545         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
15546         Use sysinfo system call instead of parsing /proc/meminfo.
15547         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
15548         Likewise.
15549
15550 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
15551
15552         [BZ #16985]
15553         * programs/localedef.c (main): Display argv[remaining] when
15554         output_path is NULL.
15555
15556 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
15557
15558         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
15559         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
15560         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
15561         tanh.
15562         * math/auto-libm-test-out: Regenerated.
15563         * sysdeps/i386/fpu/libm-test-ulps: Update.
15564         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
15565         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15567
15568 2015-09-11  Roland McGrath  <roland@hack.frob.com>
15569
15570         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
15571         Use 'override' keyword to freeze the value here, preventing
15572         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
15573
15574 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
15575
15576         [BZ #14912]
15577         * sysdeps/aarch64/bits/atomic.h: Move to ...
15578         * sysdeps/aarch64/atomic-machine.h: ...here.
15579         (_AARCH64_BITS_ATOMIC_H): Rename macro to
15580         _AARCH64_ATOMIC_MACHINE_H.
15581         * sysdeps/alpha/bits/atomic.h: Move to ...
15582         * sysdeps/alpha/atomic-machine.h: ...here.
15583         * sysdeps/arm/bits/atomic.h: Move to ...
15584         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
15585         * bits/atomic.h: Move to ...
15586         * sysdeps/generic/atomic-machine.h: ...here.
15587         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15588         * sysdeps/i386/bits/atomic.h: Move to ...
15589         * sysdeps/i386/atomic-machine.h: ...here.
15590         * sysdeps/ia64/bits/atomic.h: Move to ...
15591         * sysdeps/ia64/atomic-machine.h: ...here.
15592         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
15593         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
15594         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15595         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
15596         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
15597         * sysdeps/microblaze/bits/atomic.h: Move to ...
15598         * sysdeps/microblaze/atomic-machine.h: ...here.
15599         * sysdeps/mips/bits/atomic.h: Move to ...
15600         * sysdeps/mips/atomic-machine.h: ...here.
15601         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
15602         * sysdeps/powerpc/bits/atomic.h: Move to ...
15603         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
15604         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
15605         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
15606         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
15607         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
15608         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
15609         <atomic-machine.h> instead of <bits/atomic.h>.
15610         * sysdeps/s390/bits/atomic.h: Move to ...
15611         * sysdeps/s390/atomic-machine.h: ...here.
15612         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
15613         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
15614         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15615         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
15616         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
15617         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
15618         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
15619         * sysdeps/tile/bits/atomic.h: Move to ...
15620         * sysdeps/tile/atomic-machine.h: ...here.
15621         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
15622         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
15623         <sysdeps/tile/atomic-machine.h> instead of
15624         <sysdeps/tile/bits/atomic.h>.
15625         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15626         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
15627         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
15628         <sysdeps/tile/atomic-machine.h> instead of
15629         <sysdeps/tile/bits/atomic.h>.
15630         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15631         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
15632         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
15633         <sysdeps/arm/atomic-machine.h> instead of
15634         <sysdeps/arm/bits/atomic.h>.
15635         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
15636         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
15637         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15638         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
15639         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
15640         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15641         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
15642         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
15643         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
15644         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
15645         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
15646         * sysdeps/x86_64/bits/atomic.h: Move to ...
15647         * sysdeps/x86_64/atomic-machine.h: ...here.
15648         * include/atomic.h: Include <atomic-machine.h> instead of
15649         <bits/atomic.h>.
15650
15651         * sysdeps/mips/mips32/libm-test-ulps: Update.
15652         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15653
15654         [BZ #18952]
15655         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
15656         not convert non-integer negative arguments to int to determine the
15657         value of signgam.
15658         * math/auto-libm-test-in: Add more tests of lgamma.
15659         * math/auto-libm-test-out: Regenerated.
15660
15661         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
15662         cosh, csqrt, erfc, expm1 and lgamma.
15663         * math/auto-libm-test-out: Regenerated.
15664         * sysdeps/i386/fpu/libm-test-ulps: Update.
15665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15666
15667 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
15668
15669         [BZ #2542]
15670         [BZ #2543]
15671         [BZ #2558]
15672         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
15673         __lgamma_neg for arguments from -28.0 to -2.0.
15674         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
15675         __lgamma_negf for arguments from -15.0 to -2.0.
15676         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
15677         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
15678         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
15679         Call __lgamma_negl for arguments from -33.0 to -2.0.
15680         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
15681         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
15682         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
15683         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
15684         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
15685         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
15686         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
15687         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
15688         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
15689         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
15690         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
15691         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
15692         (__lgamma_neg): Likewise.
15693         (__lgamma_negl): Likewise.
15694         (__lgamma_product): Likewise.
15695         (__lgamma_productl): Likewise.
15696         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
15697         * math/auto-libm-test-in: Add more tests of lgamma.
15698         * math/auto-libm-test-out: Regenerated.
15699         * sysdeps/i386/fpu/libm-test-ulps: Update.
15700         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15701
15702 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
15703
15704         [BZ #18675]
15705         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
15706
15707 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
15708
15709         [BZ #14912]
15710         * bits/libc-lock.h: Move to ...
15711         * sysdeps/generic/libc-lock.h: ...here.
15712         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
15713         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
15714         * sysdeps/mach/hurd/libc-lock.h: ...here.
15715         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
15716         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
15717         * sysdeps/mach/bits/libc-lock.h: Move to ...
15718         * sysdeps/mach/libc-lock.h: ...here.
15719         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
15720         * sysdeps/nptl/bits/libc-lock.h: Move to ...
15721         * sysdeps/nptl/libc-lock.h: ...here.
15722         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
15723         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
15724         * sysdeps/nptl/libc-lockP.h: ...here.
15725         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
15726         * crypt/crypt_util.c: Include <libc-lock.h> instead of
15727         <bits/libc-lock.h>.
15728         * dirent/scandir-tail.c: Likewise.
15729         * dlfcn/dlerror.c: Likewise.
15730         * elf/dl-close.c: Likewise.
15731         * elf/dl-iteratephdr.c: Likewise.
15732         * elf/dl-lookup.c: Likewise.
15733         * elf/dl-open.c: Likewise.
15734         * elf/dl-support.c: Likewise.
15735         * elf/dl-writev.h: Likewise.
15736         * elf/rtld.c: Likewise.
15737         * grp/fgetgrent.c: Likewise.
15738         * gshadow/fgetsgent.c: Likewise.
15739         * gshadow/sgetsgent.c: Likewise.
15740         * iconv/gconv_conf.c: Likewise.
15741         * iconv/gconv_db.c: Likewise.
15742         * iconv/gconv_dl.c: Likewise.
15743         * iconv/gconv_int.h: Likewise.
15744         * iconv/gconv_trans.c: Likewise.
15745         * include/link.h: Likewise.
15746         * inet/getnameinfo.c: Likewise.
15747         * inet/getnetgrent.c: Likewise.
15748         * inet/getnetgrent_r.c: Likewise.
15749         * intl/bindtextdom.c: Likewise.
15750         * intl/dcigettext.c: Likewise.
15751         * intl/finddomain.c: Likewise.
15752         * intl/gettextP.h: Likewise.
15753         * intl/loadmsgcat.c: Likewise.
15754         * intl/localealias.c: Likewise.
15755         * intl/textdomain.c: Likewise.
15756         * libidn/idn-stub.c: Likewise.
15757         * libio/libioP.h: Likewise.
15758         * locale/duplocale.c: Likewise.
15759         * locale/freelocale.c: Likewise.
15760         * locale/newlocale.c: Likewise.
15761         * locale/setlocale.c: Likewise.
15762         * login/getutent_r.c: Likewise.
15763         * login/getutid_r.c: Likewise.
15764         * login/getutline_r.c: Likewise.
15765         * login/utmp-private.h: Likewise.
15766         * login/utmpname.c: Likewise.
15767         * malloc/mtrace.c: Likewise.
15768         * misc/efgcvt.c: Likewise.
15769         * misc/error.c: Likewise.
15770         * misc/fstab.c: Likewise.
15771         * misc/getpass.c: Likewise.
15772         * misc/mntent.c: Likewise.
15773         * misc/syslog.c: Likewise.
15774         * nis/nis_call.c: Likewise.
15775         * nis/nis_callback.c: Likewise.
15776         * nis/nss-default.c: Likewise.
15777         * nis/nss_compat/compat-grp.c: Likewise.
15778         * nis/nss_compat/compat-initgroups.c: Likewise.
15779         * nis/nss_compat/compat-pwd.c: Likewise.
15780         * nis/nss_compat/compat-spwd.c: Likewise.
15781         * nis/nss_nis/nis-alias.c: Likewise.
15782         * nis/nss_nis/nis-ethers.c: Likewise.
15783         * nis/nss_nis/nis-grp.c: Likewise.
15784         * nis/nss_nis/nis-hosts.c: Likewise.
15785         * nis/nss_nis/nis-network.c: Likewise.
15786         * nis/nss_nis/nis-proto.c: Likewise.
15787         * nis/nss_nis/nis-pwd.c: Likewise.
15788         * nis/nss_nis/nis-rpc.c: Likewise.
15789         * nis/nss_nis/nis-service.c: Likewise.
15790         * nis/nss_nis/nis-spwd.c: Likewise.
15791         * nis/nss_nisplus/nisplus-alias.c: Likewise.
15792         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
15793         * nis/nss_nisplus/nisplus-grp.c: Likewise.
15794         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
15795         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
15796         * nis/nss_nisplus/nisplus-network.c: Likewise.
15797         * nis/nss_nisplus/nisplus-proto.c: Likewise.
15798         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
15799         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
15800         * nis/nss_nisplus/nisplus-service.c: Likewise.
15801         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
15802         * nis/ypclnt.c: Likewise.
15803         * nptl/libc_pthread_init.c: Likewise.
15804         * nss/getXXbyYY.c: Likewise.
15805         * nss/getXXent.c: Likewise.
15806         * nss/getXXent_r.c: Likewise.
15807         * nss/nss_db/db-XXX.c: Likewise.
15808         * nss/nss_db/db-netgrp.c: Likewise.
15809         * nss/nss_db/nss_db.h: Likewise.
15810         * nss/nss_files/files-XXX.c: Likewise.
15811         * nss/nss_files/files-alias.c: Likewise.
15812         * nss/nsswitch.c: Likewise.
15813         * posix/regex_internal.h: Likewise.
15814         * posix/wordexp.c: Likewise.
15815         * pwd/fgetpwent.c: Likewise.
15816         * resolv/res_hconf.c: Likewise.
15817         * resolv/res_libc.c: Likewise.
15818         * shadow/fgetspent.c: Likewise.
15819         * shadow/lckpwdf.c: Likewise.
15820         * shadow/sgetspent.c: Likewise.
15821         * socket/opensock.c: Likewise.
15822         * stdio-common/reg-modifier.c: Likewise.
15823         * stdio-common/reg-printf.c: Likewise.
15824         * stdio-common/reg-type.c: Likewise.
15825         * stdio-common/vfprintf.c: Likewise.
15826         * stdio-common/vfscanf.c: Likewise.
15827         * stdlib/abort.c: Likewise.
15828         * stdlib/cxa_atexit.c: Likewise.
15829         * stdlib/fmtmsg.c: Likewise.
15830         * stdlib/random.c: Likewise.
15831         * stdlib/setenv.c: Likewise.
15832         * string/strsignal.c: Likewise.
15833         * sunrpc/auth_none.c: Likewise.
15834         * sunrpc/bindrsvprt.c: Likewise.
15835         * sunrpc/create_xid.c: Likewise.
15836         * sunrpc/key_call.c: Likewise.
15837         * sunrpc/rpc_thread.c: Likewise.
15838         * sysdeps/arm/backtrace.c: Likewise.
15839         * sysdeps/generic/ldsodefs.h: Likewise.
15840         * sysdeps/generic/stdio-lock.h: Likewise.
15841         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
15842         * sysdeps/i386/backtrace.c: Likewise.
15843         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
15844         * sysdeps/m68k/backtrace.c: Likewise.
15845         * sysdeps/mach/hurd/cthreads.c: Likewise.
15846         * sysdeps/mach/hurd/dirstream.h: Likewise.
15847         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
15848         * sysdeps/nptl/malloc-machine.h: Likewise.
15849         * sysdeps/nptl/stdio-lock.h: Likewise.
15850         * sysdeps/posix/dirstream.h: Likewise.
15851         * sysdeps/posix/getaddrinfo.c: Likewise.
15852         * sysdeps/posix/system.c: Likewise.
15853         * sysdeps/pthread/aio_suspend.c: Likewise.
15854         * sysdeps/s390/s390-32/backtrace.c: Likewise.
15855         * sysdeps/s390/s390-64/backtrace.c: Likewise.
15856         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
15857         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
15858         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
15859         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
15860         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
15861         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
15862         * sysdeps/unix/sysv/linux/system.c: Likewise.
15863         * sysdeps/x86_64/backtrace.c: Likewise.
15864         * time/alt_digit.c: Likewise.
15865         * time/era.c: Likewise.
15866         * time/tzset.c: Likewise.
15867         * wcsmbs/wcsmbsload.c: Likewise.
15868         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
15869         instead of <bits/libc-lock.h> in comment.
15870
15871 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
15872
15873         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
15874         Only use .set mips2 if the current ISA is below mips2.
15875         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
15876         Likewise.
15877         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
15878         mips32r2 if the current ISA is below mips32r2.
15879         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
15880         (TLS_IE): Updated to use the TLD_RDHWR macro.
15881         (TLS_LE): Likewise.
15882         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
15883         __ASSEMBLER__ condition.
15884
15885 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15886
15887         Fix parallel build of before-compile targets.
15888
15889         * sysdeps/mach/Makefile ($(patsubst
15890         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
15891         mach-before-compile target.
15892         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
15893         io fs process)): Move rule to dedicated hurd-before-compile target.
15894
15895 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15896
15897         Fix rules generating headers in hurd/ and mach/ when initial make call
15898         has subdir= explicitly set.
15899
15900         * sysdeps/mach/Makefile ($(patsubst
15901         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
15902         calling $(MAKE).
15903         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
15904         io fs process)): Force subdir to hurd when calling $(MAKE).
15905         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
15906         subdir to mach when calling $(MAKE).
15907
15908 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
15909
15910         Check sysheaders when looking for Mach and Hurd headers
15911
15912         * sysdeps/mach/configure.ac: Add sysheaders check.
15913         * sysdeps/mach/configure: Regenerate.
15914         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
15915         * sysdeps/mach/hurd/configure: Regenerate.
15916
15917 2015-09-04  Roland McGrath  <roland@hack.frob.com>
15918
15919         [BZ #18921]
15920         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
15921         Fix inverted sense of test of 'o_directory_works' value.
15922         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
15923         Bernhard Voelker <mail@bernhard-voelker.de>.
15924
15925 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
15926
15927         [BZ #14912]
15928         * bits/linkmap.h: Move to ...
15929         * sysdeps/generic/linkmap.h: ...here.
15930         * sysdeps/aarch64/bits/linkmap.h: Move to ...
15931         * sysdeps/aarch64/linkmap.h: ...here.
15932         * sysdeps/arm/bits/linkmap.h: Move to ...
15933         * sysdeps/arm/linkmap.h: ...here.
15934         * sysdeps/hppa/bits/linkmap.h: Move to ...
15935         * sysdeps/hppa/linkmap.h: ...here.
15936         * sysdeps/ia64/bits/linkmap.h: Move to ...
15937         * sysdeps/ia64/linkmap.h: ...here.
15938         * sysdeps/mips/bits/linkmap.h: Move to ...
15939         * sysdeps/mips/linkmap.h: ...here.
15940         * sysdeps/s390/bits/linkmap.h: Move to ...
15941         * sysdeps/s390/linkmap.h: ...here.
15942         * sysdeps/sh/bits/linkmap.h: Move to ...
15943         * sysdeps/sh/linkmap.h: ...here.
15944         * sysdeps/x86/bits/linkmap.h: Move to ...
15945         * sysdeps/x86/linkmap.h: ...here.
15946         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
15947
15948 2015-09-04  Andreas Schwab  <schwab@suse.de>
15949
15950         [BZ #18635]
15951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
15952         (__makecontext): Terminate FDE before return label.
15953         (__novec_makecontext): Likewise.
15954
15955 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
15956
15957         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
15958         first member of struct sv in syscall macro.
15959
15960 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
15961
15962         [BZ #14912]
15963         * bits/stdio-lock.h: Move to ...
15964         * sysdeps/generic/stdio-lock.h: ...here.
15965         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
15966         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
15967         * sysdeps/nptl/stdio-lock.h: ...here.
15968         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
15969         * include/libio.h: Include <stdio-lock.h> instead of
15970         <bits/stdio-lock.h>.
15971         * sysdeps/nptl/fork.c: Likewise.
15972         * sysdeps/pthread/flockfile.c: Likewise.
15973         * sysdeps/pthread/ftrylockfile.c: Likewise.
15974         * sysdeps/pthread/funlockfile.c: Likewise.
15975
15976         [BZ #14912]
15977         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
15978         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
15979         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
15980         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
15981         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
15982         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
15983         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
15984
15985 2015-09-03  Roland McGrath  <roland@hack.frob.com>
15986
15987         * elf/Makefile (test-xfail-tst-protected1a): New variable.
15988         (test-xfail-tst-protected1b): New variable.
15989
15990 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
15991
15992         [BZ #14912]
15993         * bits/libc-tsd.h: Move to ...
15994         * sysdeps/generic/libc-tsd.h: ...here.
15995         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
15996         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
15997         * sysdeps/mach/hurd/libc-tsd.h: ...here.
15998         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
15999         * include/ctype.h: Include <libc-tsd.h> instead of
16000         <bits/libc-tsd.h>.
16001         * include/rpc/rpc.h: Likewise.
16002         * locale/localeinfo.h: Likewise.
16003         * sunrpc/rpc_thread.c: Likewise.
16004         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
16005         * sysdeps/nptl/malloc-machine.h: Likewise.
16006
16007         * Makefile (headers): Remove bits/libc-lock.h.
16008         * libio/Makefile (headers): Remove bits/stdio-lock.h.
16009
16010         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
16011         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
16012         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
16013         <bits/stdio-lock.h>.
16014         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
16015         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
16016
16017 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
16018
16019         [BZ #18757]
16020         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
16021         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
16022         BZ #18757.
16023
16024 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
16025
16026         * malloc/mtrace.pl: Filter out NULL entries.
16027
16028 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
16029
16030         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
16031         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
16032         macro.
16033
16034         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
16035         (TCP_CC_INFO): Likewise.
16036         (TCP_SAVE_SYN): Likewise.
16037         (TCP_SAVED_SYN): Likewise.
16038
16039 2015-08-31  Brett Neumeier <brett@neumeier.us>
16040
16041         [BZ #18870]
16042         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
16043
16044 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16045
16046         [BZ #18873]
16047         Fix broken overflow check in posix_fallocate
16048         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
16049         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16050         Fix parenthesization typo.
16051
16052 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
16053
16054         [BZ #18887]
16055         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
16056         tst-mntent-blank-passno.
16057         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
16058         * misc/tst-mntent-blank-corrupt.c: New test.
16059         * misc/tst-mntent-blank-passno.c: New test ripped from ...
16060         * misc/tst-mntent.c (do_test): ... here.
16061
16062 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
16063
16064         [BZ #4404]
16065         * po/de.po: Fix SIGALRM typo.
16066
16067 2015-08-28  James Perkins  <james@loowit.net>
16068
16069         * time/tst-strptime2.c (tests): Replace short list of test
16070         strings for strptime %z specifier with code which exhaustively
16071         tests every combination of sign and 0 to 5 digits. Tests for
16072         rejection of invalid strings.
16073
16074 2015-08-28  James Perkins  <james@loowit.net>
16075
16076         [BZ #16141]
16077         * time/strptime_l.c (__strptime_internal): Fix %z minutes
16078         calculation, removing incorrect decimal time rounding, so that
16079         all minute values result in a valid seconds value.
16080         * time/strptime_l.c (__strptime_internal): Extend %z time zone
16081         offset range limits to UTC-99:59 through UTC+99:59 to parse
16082         current and historical use cases.
16083         * time/tst-strptime2.c (tests): Modify and add tests for the
16084         strptime %z input field descriptor, specifically conversion of
16085         minutes to seconds and validating an offset range of -9959 to
16086         +9959.
16087
16088 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16089             Dmitry V. Levin  <ldv@altlinux.org>
16090
16091         [BZ #18877]
16092         * posix/Makefile (tests): Add tst-mmap-offset.
16093         * posix/tst-mmap.c: New file.
16094         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
16095         offset calculation for negative values.
16096
16097 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16098
16099         * sysdeps/i386/init-arch.h: New file.
16100         * sysdeps/i386/i586/init-arch.h: Likewise.
16101         * sysdeps/i386/i686/init-arch.h: Likewise.
16102         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
16103         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
16104         * sysdeps/x86/cpu-features.h (bit_I586): New.
16105         (bit_I686): Likewise.
16106         (bit_CX8): Likewise.
16107         (bit_CMOV): Likewise.
16108         (index_CX8): Likewise.
16109         (index_CMOV): Likewise.
16110         (index_I586): Likewise.
16111         (index_I686): Likewise.
16112         (reg_CX8): Likewise.
16113         (reg_CMOV): Likewise.
16114         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
16115         available at compile-time.
16116         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
16117         available at compile-time.
16118         * sysdeps/x86/init-arch.h (USE_I586): New macro.
16119         (USE_I686): Likewise.
16120
16121 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16122
16123         * sysdeps/i386/bcopy.S: New file.
16124         * sysdeps/i386/bzero.S: Likewise.
16125         * sysdeps/i386/memcpy.S: Likewise.
16126         * sysdeps/i386/memmove.S: Likewise.
16127         * sysdeps/i386/mempcpy.S: Likewise.
16128         * sysdeps/i386/memset.S: Likewise.
16129         * sysdeps/i386/bzero.c: Removed.
16130         * sysdeps/i386/memset.c: Likewise.
16131         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
16132         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
16133         * sysdeps/i386/i586/memset_chk.S: Likewise.
16134         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
16135         * sysdeps/i386/memcpy_chk.S: Here.
16136         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
16137         * sysdeps/i386/memmove_chk.S: Here.
16138         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
16139         * sysdeps/i386/mempcpy_chk.S: Likewise.
16140         * sysdeps/i386/i686/memset_chk.S: Moved to ...
16141         * sysdeps/i386/memset_chk.S: Likewise.
16142
16143 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
16144
16145         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
16146         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
16147         file, move DIAG_POP_NEEDS_COMMENT to end of file.
16148         * soft-fp/fmadf4.c: Ditto.
16149         * soft-fp/fmatf4.c: Ditto.
16150
16151 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16152
16153         * sysdeps/i386/i586/Implies: Removed.
16154         * sysdeps/i386/i686/Implies: Likewise.
16155
16156 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16157
16158         * sysdeps/i386/i486/strlen.S: Moved to ...
16159         * sysdeps/i386/strlen.S: Here.
16160
16161 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16162
16163         * sysdeps/i386/i486/strcat.S: Moved to ...
16164         * sysdeps/i386/strcat.S: Here.
16165
16166 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16167
16168         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
16169         * sysdeps/i386/pthread_spin_trylock.S: Here.
16170         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
16171         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
16172
16173 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16174
16175         * sysdeps/i386/i486/string-inlines.c: Moved to ...
16176         * sysdeps/i386/string-inlines.c: Here.
16177
16178 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16179
16180         * sysdeps/i386/i486/htonl.S: Moved ...
16181         * sysdeps/i386/htonl.S: here.
16182
16183 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16184
16185         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
16186         * sysdeps/i386/bits/atomic.h: Here.
16187
16188 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16189
16190         * sysdeps/i386/i486/Versions: Removed.
16191
16192 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16193
16194         [BZ #2898]
16195         * misc/mktemp.c: Add mkdtemp to the link_warning message.
16196         Based on patch by Aurelien Jarno.
16197
16198 2015-08-26  Stan Shebs  <stanshebs@google.com>
16199
16200         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
16201         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
16202
16203 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16204
16205         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
16206         * sysdeps/powerpc/dl-procinfo.c:
16207         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
16208         feature so it shows when LD_SHOW_AUXV=1.
16209
16210 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16211
16212         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
16213         (__arch_compare_and_exchange_val_32_acq): Remove and use common
16214         definition.  ISA 2.07B no longer requires full sync.
16215
16216 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
16217
16218         [BZ #18863]
16219         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
16220         (si_call_addr): Define.
16221         (si_syscall): Define.
16222         (si_arch): Define.
16223
16224 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
16225
16226         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
16227         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
16228         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
16229         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
16230         (__memset_zero_constant_len_parameter): New.
16231         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
16232         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
16233         (__memset_zero_constant_len_parameter): Don't define if
16234         __memset_chk or USE_AS_BZERO are defined.
16235
16236         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
16237         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
16238         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
16239
16240         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
16241         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
16242         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
16243         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
16244         comments.
16245         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
16246         -mno-mmx for $(all-rtld-routines).
16247         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
16248         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
16249         i386.
16250
16251 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
16252
16253         * sysdeps/generic/unwind.h
16254         (_Unwind_Word): Use __mode__(__unwind_word__)
16255         instead of __mode__(__word__).
16256         (_Unwind_Sword): Likewise.
16257
16258         * sysdeps/s390/s390-64/utf8-utf16-z9.c
16259         (MAX_NEEDED_INPUT): New define.
16260         (MAX_NEEDED_OUTPUT): New define.
16261
16262         * NEWS: New item for IBM z13 string optimizations.
16263
16264         * sysdeps/s390/multiarch/memrchr-c.c: New File.
16265         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
16266         * sysdeps/s390/multiarch/memrchr.c: Likewise.
16267         * sysdeps/s390/multiarch/Makefile
16268         (sysdep_routines): Add memrchr functions.
16269         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16270         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
16271
16272         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
16273         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
16274         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
16275         * sysdeps/s390/multiarch/Makefile
16276         (sysdep_routines): Add wmemcmp functions.
16277         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16278         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
16279         * benchtests/bench-wmemcmp.c: New File.
16280         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
16281
16282         * sysdeps/s390/multiarch/wmemset-c.c: New File.
16283         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
16284         * sysdeps/s390/multiarch/wmemset.c: Likewise.
16285         * sysdeps/s390/multiarch/Makefile
16286         (sysdep_routines): Add wmemset functions.
16287         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16288         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
16289         * wcsmbs/wmemset.c: Use WMEMSET if defined.
16290         * string/test-memset.c: Add wmemset support.
16291         * wcsmbs/test-wmemset.c: New File.
16292         * wcsmbs/Makefile (strop-tests): Add wmemset.
16293         * benchtests/bench-memset.c: Add wmemset support.
16294         * benchtests/bench-wmemset.c: New File.
16295         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
16296
16297         * sysdeps/s390/multiarch/memccpy-c.c: New File.
16298         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
16299         * sysdeps/s390/multiarch/memccpy.c: Likewise.
16300         * sysdeps/s390/multiarch/Makefile
16301         (sysdep_routines): Add memccpy functions.
16302         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16303         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
16304         * string/memccpy.c: Use MEMCCPY if defined.
16305
16306         * sysdeps/s390/multiarch/memchr-vx.S: New File.
16307         * sysdeps/s390/multiarch/memchr.c: Likewise.
16308         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
16309         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
16310         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
16311         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
16312         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
16313         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
16314         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
16315         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
16316         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
16317         and rawmemchr functions.
16318         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16319         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
16320         and wmemchr.
16321         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
16322         * string/test-memchr.c: Add wmemchr support.
16323         * wcsmbs/test-wmemchr.c: New File.
16324         * wcsmbs/Makefile (strop-tests): Add wmemchr.
16325         * benchtests/bench-memchr.c: Add wmemchr support.
16326         * benchtests/bench-wmemchr.c: New File.
16327         * benchtests/Makefile (wcsmbs-bench): wmemchr.
16328
16329         * sysdeps/s390/multiarch/strcspn-c.c: New File.
16330         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
16331         * sysdeps/s390/multiarch/strcspn.c: Likewise.
16332         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
16333         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
16334         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
16335         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
16336         wcscspn functions.
16337         * sysdeps/s390/multiarch/ifunc-impl-list.c
16338         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
16339         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
16340         * string/test-strcspn.c: Add wcscspn support.
16341         * wcsmbs/test-wcscspn.c: New File.
16342         * wcsmbs/Makefile (strop-tests): Add wcscspn.
16343         * benchtests/bench-strcspn.c: Add wcscspn support.
16344         * benchtests/bench-wcscspn.c: New File.
16345         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
16346
16347         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
16348         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
16349         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
16350         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
16351         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
16352         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
16353         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
16354         wcspbrk functions.
16355         * sysdeps/s390/multiarch/ifunc-impl-list.c
16356         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
16357         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
16358         * string/test-strpbrk.c: Add wcspbrk support.
16359         * wcsmbs/test-wcspbrk.c: New File.
16360         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
16361         * benchtests/bench-strpbrk.c: Add wcspbrk support.
16362         * benchtests/bench-wcspbrk.c: New File.
16363         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
16364
16365         * sysdeps/s390/multiarch/strspn-c.c: New File.
16366         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
16367         * sysdeps/s390/multiarch/strspn.c: Likewise.
16368         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
16369         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
16370         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
16371         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
16372         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
16373         wcsspn functions.
16374         * sysdeps/s390/multiarch/ifunc-impl-list.c
16375         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
16376         * string/test-strspn.c: Add wcsspn support.
16377         * wcsmbs/test-wcsspn.c: New File.
16378         * wcsmbs/Makefile (strop-tests): Add wcsspn.
16379         * benchtests/bench-strspn.c: Add wcsspn support.
16380         * benchtests/bench-wcsspn.c: New File.
16381         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
16382
16383         * sysdeps/s390/multiarch/strrchr-c.c: New File.
16384         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
16385         * sysdeps/s390/multiarch/strrchr.c: Likewise.
16386         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
16387         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
16388         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
16389         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
16390         wcsrchr functions.
16391         * sysdeps/s390/multiarch/ifunc-impl-list.c
16392         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
16393         * benchtests/bench-wcsrchr.c: New File.
16394         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
16395
16396         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
16397         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
16398         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
16399         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
16400         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
16401         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
16402         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
16403         wcschrnul functions.
16404         * sysdeps/s390/multiarch/ifunc-impl-list.c
16405         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
16406         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
16407         * string/test-strchr.c: Add wcschrnul support.
16408         * wcsmbs/test-wcschrnul.c: New File.
16409         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
16410         * benchtests/bench-strchr.c: Add wcschrnul support.
16411         * benchtests/bench-wcschrnul.c: New File.
16412         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
16413
16414         * sysdeps/s390/multiarch/strchr-c.c: New File.
16415         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
16416         * sysdeps/s390/multiarch/strchr.c: Likewise.
16417         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
16418         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
16419         * sysdeps/s390/multiarch/wcschr.c: Likewise.
16420         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
16421         wcschr functions.
16422         * sysdeps/s390/multiarch/ifunc-impl-list.c
16423         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
16424         * string/strchr.c (STRCHR): Define and use macro.
16425         * benchtests/bench-wcschr.c: New File.
16426         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
16427
16428         * sysdeps/s390/multiarch/strncmp-c.c: New File.
16429         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
16430         * sysdeps/s390/multiarch/strncmp.c: Likewise.
16431         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
16432         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
16433         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
16434         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
16435         wcsncmp functions.
16436         * sysdeps/s390/multiarch/ifunc-impl-list.c
16437         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
16438         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
16439         * benchtests/bench-strncmp.c: Add wcsncmp support.
16440         * benchtests/bench-wcsncmp.c: New File.
16441         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
16442
16443         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
16444         * sysdeps/s390/multiarch/strcmp.c: Likewise.
16445         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
16446         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
16447         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
16448         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
16449         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
16450         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
16451         wcscmp functions.
16452         * sysdeps/s390/multiarch/ifunc-impl-list.c
16453         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
16454         * string/strcmp.c (STRCMP): Define and use macro.
16455         * benchtests/bench-wcscmp.c: New File.
16456         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
16457         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
16458         instead of _HAVE_STRING_ARCH_memchr.
16459
16460         * sysdeps/s390/multiarch/strncat-c.c: New File.
16461         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
16462         * sysdeps/s390/multiarch/strncat.c: Likewise.
16463         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
16464         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
16465         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
16466         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
16467         wcsncat functions.
16468         * sysdeps/s390/multiarch/ifunc-impl-list.c
16469         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
16470         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
16471         * string/test-strncat.c: Add wcsncat support.
16472         * wcsmbs/test-wcsncat.c: New File.
16473         * wcsmbs/Makefile (strop-tests): Add wcsncat.
16474         * benchtests/bench-strncat.c: Add wcsncat support.
16475         * benchtests/bench-wcsncat.c: New File.
16476         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
16477
16478         * sysdeps/s390/multiarch/strcat-c.c: New File.
16479         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
16480         * sysdeps/s390/multiarch/strcat.c: Likewise.
16481         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
16482         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
16483         * sysdeps/s390/multiarch/wcscat.c: Likewise.
16484         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
16485         wcscat functions.
16486         * sysdeps/s390/multiarch/ifunc-impl-list.c
16487         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
16488         * string/strcat.c (STRCAT): Define and use macro.
16489         * wcsmbs/wcscat.c: Use WCSCAT if defined.
16490         * string/test-strcat.c: Add wcscat support.
16491         * wcsmbs/test-wcscat.c: New File.
16492         * wcsmbs/Makefile (strop-tests): Add wcscat.
16493         * benchtests/bench-strcat.c: Add wcscat support.
16494         * benchtests/bench-wcscat.c: New File.
16495         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
16496
16497         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
16498         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
16499         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
16500         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
16501         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
16502         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
16503         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
16504         wcpncpy functions.
16505         * sysdeps/s390/multiarch/ifunc-impl-list.c
16506         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
16507         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
16508         * string/test-stpncpy.c: Add wcpncpy support.
16509         * wcsmbs/test-wcpncpy.c: New File.
16510         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
16511         * benchtests/bench-stpncpy.c: Add wcpncpy support.
16512         * benchtests/bench-wcpncpy.c: New File.
16513         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
16514
16515         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
16516         * sysdeps/s390/multiarch/strncpy.c: Likewise.
16517         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
16518         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
16519         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
16520         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
16521         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
16522         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
16523         wcsncpy functions.
16524         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
16525         * sysdeps/s390/multiarch/ifunc-impl-list.c
16526         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
16527         * string/test-strncpy.c: Add wcsncpy support.
16528         * wcsmbs/test-wcsncpy.c: New File.
16529         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
16530         * benchtests/bench-strncpy.c: Add wcsncpy support.
16531         * benchtests/bench-wcsncpy.c: New File.
16532         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
16533
16534         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
16535         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
16536         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
16537         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
16538         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
16539         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
16540         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
16541         wcpcpy functions.
16542         * string/stpcpy.c: Use STPCPY if defined.
16543         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
16544         * sysdeps/s390/multiarch/ifunc-impl-list.c
16545         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
16546         * string/test-stpcpy.c: Add wcpcpy support.
16547         * wcsmbs/test-wcpcpy.c: New File.
16548         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
16549         * benchtests/bench-stpcpy.c: Add wcpcpy support.
16550         * benchtests/bench-wcpcpy.c: New File.
16551         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
16552
16553         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
16554         * sysdeps/s390/multiarch/strcpy.c: Likewise.
16555         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
16556         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
16557         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
16558         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
16559         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
16560         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
16561         wcscpy functions.
16562         * sysdeps/s390/multiarch/ifunc-impl-list.c
16563         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
16564         * benchtests/bench-wcscpy.c: New File.
16565         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
16566
16567         * sysdeps/s390/multiarch/strnlen-c.c: New File.
16568         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
16569         * sysdeps/s390/multiarch/strnlen.c: Likewise.
16570         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
16571         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
16572         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
16573         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
16574         wcsnlen functions.
16575         * sysdeps/s390/multiarch/ifunc-impl-list.c
16576         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
16577         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
16578         * string/test-strnlen.c: Add wcsnlen support.
16579         * wcsmbs/test-wcsnlen.c: New File.
16580         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
16581         * benchtests/bench-strnlen.c: Add wcsnlen support.
16582         * benchtests/bench-wcsnlen.c: New File.
16583         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
16584
16585         * sysdeps/s390/multiarch/Makefile: New File.
16586         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
16587         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
16588         * sysdeps/s390/multiarch/strlen.c: Likewise.
16589         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
16590         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
16591         * sysdeps/s390/multiarch/wcslen.c: Likewise.
16592         * string/strlen.c (STRLEN): Define and use macro.
16593         * sysdeps/s390/multiarch/ifunc-impl-list.c
16594         (IFUNC_VX_IMPL): New macro function.
16595         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
16596         * benchtests/Makefile (wcsmbs-bench): New variable.
16597         (string-bench-all): Added wcsmbs-bench.
16598         * benchtests/bench-wcslen.c: New File.
16599
16600         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
16601         s390_vx_libc_ifunc2): New macro function.
16602
16603         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
16604         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
16605         assembler support.
16606         * sysdeps/s390/configure: Regenerated.
16607
16608         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
16609         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
16610
16611         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
16612         * sysdeps/s390/dl-procinfo.h: Add vector capability.
16613         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
16614
16615         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
16616         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
16617         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
16618         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
16619         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
16620         (memcmp, bcmp): Use __memcmp_default as alias source.
16621         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
16622         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
16623         Rename to __memcmp_default.
16624         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
16625         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
16626         (memcpy): Use __memcpy_default as alias source.
16627         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
16628         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
16629         Rename to __memcpy_default.
16630         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
16631         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
16632         (memset): Use __memset_default as alias source.
16633         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
16634         * sysdeps/s390/s390-32/memset.S (__memset_g5):
16635         Rename to __memset_default.
16636         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
16637         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
16638         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
16639         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
16640         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
16641         (memcmp, bcmp): Use __memcmp_default as alias source.
16642         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
16643         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
16644         Rename to __memcmp_default.
16645         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
16646         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
16647         (memcpy): Use __memcpy_default as alias source.
16648         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
16649         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
16650         Rename to __memcpy_default.
16651         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
16652         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
16653         (memset): Use __memset_default as alias source.
16654         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
16655         * sysdeps/s390/s390-64/memset.S (__memset_z900):
16656         Rename to __memset_default.
16657         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
16658         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
16659
16660         [BZ #18610]
16661         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
16662         __ieee_instruction_pointer to __unused.
16663         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
16664         __ieee_instruction_pointer.
16665         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
16666         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
16667         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
16668         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
16669         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
16670         Mark dxc-field as reserved.
16671
16672 2015-08-25  Roland McGrath  <roland@hack.frob.com>
16673
16674         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
16675         if the weak reference is not null.
16676
16677 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16678
16679         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
16680
16681         [BZ #11214]
16682         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
16683
16684 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16685
16686         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
16687         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
16688         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
16689         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
16690         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
16691         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
16692         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
16693         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
16694         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
16695         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
16696         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
16697         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
16698         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
16699         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
16700         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
16701         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
16702         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
16703         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
16704
16705 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16706
16707         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
16708         register other than r0 for tabort, it has special meaning.
16709         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
16710         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
16711         transaction before starting syscall.
16712
16713 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16714
16715         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
16716
16717 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16718
16719         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
16720
16721         * sysdeps/x86_64/rtld-memcmp.c: Removed.
16722         * sysdeps/x86_64/rtld-memset.S: Likewise.
16723         * sysdeps/x86_64/rtld-strchr.S: Likewise.
16724         * sysdeps/x86_64/rtld-strlen.S: Likewise.
16725         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
16726         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
16727
16728         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
16729
16730 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
16731
16732         * debug/strcpy_chk.c: Improve performance.
16733         * debug/stpcpy_chk.c: Likewise.
16734         * sysdeps/x86_64/strcpy_chk.S: Remove.
16735         * sysdeps/x86_64/stpcpy_chk.S: Remove.
16736
16737         [BZ #18240]
16738         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
16739
16740 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16741
16742         [BZ #15128]
16743         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
16744         ifuncmain8.
16745         (modules-names): Add ifuncmod8.
16746         ($(objpfx)ifuncmain8): New rule.
16747         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
16748         <cpuid.h>.
16749         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
16750         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
16751         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
16752         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
16753         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
16754         * sysdeps/x86_64/dl-trampoline.h: Likewise.
16755         * sysdeps/x86_64/ifuncmain8.c: New file.
16756         * sysdeps/x86_64/ifuncmod8.c: Likewise.
16757         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
16758         Removed.
16759         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
16760         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
16761         Change rtld_savespace_sse to __glibc_unused2.
16762         (RTLD_CHECK_FOREIGN_CALL): Removed.
16763         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
16764         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
16765         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
16766
16767 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
16768
16769         * sysdeps/aarch64/bzero.S (__bzero): Remove.
16770
16771 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
16772
16773         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
16774         Unconditionally set __fpcr to avoid uninialized warning.
16775         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
16776
16777 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
16778
16779         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
16780         is corrupt.
16781
16782         * malloc/arena.c (arena_get2): Drop unused argument.
16783         (arena_lock): Adjust.
16784         (arena_get_retry): Likewise.
16785
16786 2015-08-24  Andreas Schwab  <schwab@suse.de>
16787
16788         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
16789         Don't define.
16790         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16791         (__ASSUME_IPC64): Don't undef.
16792         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
16793         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
16794         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
16795         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
16796         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
16797         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
16798         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
16799         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
16800         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
16801         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
16802         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
16803         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
16804         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
16805         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
16806         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
16807         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
16808         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
16809         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
16810         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
16811         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
16812         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
16813
16814 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
16815
16816         * manual/Makefile (install): Only build manual when perl is available.
16817
16818 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16819
16820         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
16821         '#undef memcpy' by '#undef memchr'.
16822
16823 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16824
16825         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
16826         memchr not point to the internal __GI_memchr implementation.
16827
16828 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
16829
16830         * timezone/Makefile (CFLAGS-zdump.c): Remove
16831         -Wno-strict-prototypes.
16832         (CFLAGS-zic.c): Likewise.
16833         (CFLAGS-ialloc.c): Likewise.
16834         (CFLAGS-scheck.c): Likewise.
16835
16836         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
16837         -Wno-error=undef.
16838
16839 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16840
16841         * i386/i686/multiarch/strcasestr-c.c: Removed.
16842         * x86_64/multiarch/strcasestr.c: Likewise.
16843         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
16844         Remove strcasestr.
16845
16846 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
16847
16848         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
16849
16850         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
16851         variables for high and low parts before possibly modifying them.
16852
16853 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16854
16855         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
16856         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
16857         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
16858         of "multiarch/init-arch.h".
16859         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
16860         * sysdeps/x86/init-arch.h: This.
16861
16862 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16863
16864         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
16865         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
16866
16867 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
16868
16869         [BZ #17787]
16870         * manual/macros.texi: Add twoexp macro.
16871         * manual/filesys.texi: Fix exponents.
16872         * manual/llio.texi: Likewise.
16873         * manual/stdio.texi: Likewise.
16874
16875 2015-08-20  Florian Weimer  <fweimer@redhat.com>
16876
16877         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
16878         incorrect use.
16879
16880 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
16881
16882         [BZ #18370]
16883         * math/s_csqrt.c (__csqrt): Force underflow exception for results
16884         whose real or imaginary part has small absolute value.
16885         * math/s_csqrtf.c (__csqrtf): Likewise.
16886         * math/s_csqrtl.c (__csqrtl): Likewise.
16887         * math/auto-libm-test-in: Add more tests of csqrt.
16888         * math/auto-libm-test-out: Regenerated.
16889         * sysdeps/i386/fpu/libm-test-ulps: Update.
16890
16891 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16892
16893         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
16894         __ppc_set_ppr_very_low): New functions.
16895         * manual/platform.texi: Add documentation about
16896         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
16897
16898 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
16899
16900         * string/stpncpy.c (stpncpy): Improve performance using
16901         __strnlen/memcpy/memset.
16902
16903 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16904
16905         [BZ #18796]
16906         * scripts/test-installation.pl: Don't add -lmvec to build options if
16907         libmvec wasn't built.
16908
16909 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
16910
16911         [BZ #14341]
16912         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
16913         case when there is a gap between DT_REL and DT_JMPREL sections.
16914         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
16915         (LDFLAGS-tst-split-dynreloc): New.
16916         (tst-split-dynreloc-ENV): Likewise.
16917         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
16918         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
16919
16920 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
16921
16922         [BZ #18822]
16923         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
16924         attribute_hidden.
16925         (__xstat64_conv): Likewise.
16926         (__xstat32_conv): Likewise.
16927
16928 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
16929
16930         [BZ #18822]
16931         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
16932         Don't load %ebx when calling __setcontext.  Call __setcontext
16933         with HIDDEN_JUMPTARGET.
16934         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
16935         libc_hidden_def.
16936
16937 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
16938
16939         * sysdeps/i386/i686/Makefile
16940         [$(subdir) == string] (sysdep_routines): Moved to ...
16941         * sysdeps/i386/Makefile: Here.
16942         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
16943         * sysdeps/i386/cacheinfo.c: Here.
16944         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
16945         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
16946         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
16947         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
16948
16949 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
16950
16951         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
16952         __i586__ is defined.
16953         (HAS_I686): Defined to 1 if __i686__ is defined.
16954
16955 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
16956
16957         * elf/Makefile [$(have-z-execstack) = yes]
16958         (CPPFLAGS-tst-execstack.c): New variable.
16959
16960         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
16961         conditional to [defined UTMPX || _HAVE_UT_TYPE].
16962         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
16963         UTMPX || _HAVE_UT_TV].
16964         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
16965         UTMPX || _HAVE_UT_TV - 0].
16966
16967 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
16968
16969         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
16970         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
16971         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
16972
16973 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16974
16975         * sysdeps/powerpc/dl-procinfo.c:
16976         (_dl_powerpc_cap_flags): Added missing strings for some
16977         hwcap features.
16978         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
16979
16980 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16981
16982         Port the 0x7efe...feff pattern to GCC 6.
16983         See Steve Ellcey's bug report in:
16984         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
16985         * string/memrchr.c (MEMRCHR):
16986         * string/rawmemchr.c (RAWMEMCHR):
16987         * string/strchr.c (strchr):
16988         * string/strchrnul.c (STRCHRNUL):
16989         Rewrite code to avoid issues with signed shift overflow.
16990
16991 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
16992
16993         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
16994         whether cpuid is available only if HAS_CPUID is 0.
16995         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
16996         (HAS_I586): Likewise.
16997         (HAS_I686): Likewise.
16998
16999 2015-08-18  Zack Weinberg  <zackw@panix.com>
17000
17001         * misc/Versions (libc): Add GLIBC_2.23.
17002
17003 2015-08-18  Alan Modra  <amodra@gmail.com>
17004
17005         [BZ #18421]
17006         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
17007         .Lp__global.
17008         (_start): Load %dp via .Lp__global.
17009         [!SHARED]: Use .section .rodata.
17010
17011 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
17012
17013         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
17014         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
17015
17016 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
17017
17018         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
17019         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
17020
17021 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
17022
17023         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
17024         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
17025
17026 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
17027
17028         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
17029         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
17030
17031 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
17032
17033         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
17034         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
17035
17036 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
17037
17038         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
17039         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
17040
17041 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
17042
17043         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
17044
17045 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
17046
17047         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
17048         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
17049         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17050         (__ASSUME_LWS_CAS): Delete.
17051
17052 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
17053
17054         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
17055         * sysdeps/hppa/configure: Regenerated.
17056         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
17057         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
17058         * sysdeps/hppa/nptl/tls.h: Likewise.
17059
17060 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
17061
17062         [BZ #18823]
17063         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
17064         for scaling up small arguments.
17065         * math/s_csqrtf.c (__csqrtf): Likewise.
17066         * math/s_csqrtl.c (__csqrtl): Likewise.
17067         * math/auto-libm-test-in: Add more tests of csqrt.
17068         * math/auto-libm-test-out: Regenerated.
17069
17070 2015-08-17  Andreas Schwab  <schwab@suse.de>
17071
17072         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
17073         version set GLIBC_2.19.
17074
17075 2015-08-16  Zack Weinberg  <zackw@panix.com>
17076
17077         [BZ #18681]
17078         * misc/regexp.h: This interface is no longer supported.
17079         Remove all contents, leaving only an #error directive.
17080         * misc/regexp.c (loc1, loc2, locs, step, advance):
17081         Demote to compatibility symbols.
17082
17083 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
17084
17085         [BZ #18084]
17086         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
17087         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
17088         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
17089         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
17090         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
17091         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
17092         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
17093         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
17094         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
17095
17096 2015-08-15  Zack Weinberg  <zackw@panix.com>
17097
17098         [BZ #18795]
17099         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
17100         buffer length is known to be too large, not if it's known to be
17101         small enough.
17102         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
17103         overflow at runtime, involving a length parameter, twice: once
17104         with a compile-time constant length parameter, once without.
17105
17106 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
17107
17108         [BZ #18824]
17109         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
17110         scaling x * y up instead of down.
17111         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17112         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17113         * math/auto-libm-test-in: Add more tests of fma.
17114         * math/auto-libm-test-out: Regenerated.
17115
17116 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
17117
17118         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17119
17120 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
17121
17122         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
17123         unnecessary movq.
17124         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
17125         Likewise.
17126
17127 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
17128
17129         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
17130         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
17131         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
17132         and tgamma.
17133         * math/auto-libm-test-out: Regenerated.
17134         * sysdeps/i386/fpu/libm-test-ulps: Update.
17135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17136
17137         [BZ #16520]
17138         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
17139         (__tanh): Force underflow exception for arguments with small
17140         absolute value.
17141         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
17142         (__tanhf): Force underflow exception for arguments with small
17143         absolute value.
17144         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
17145         (__tanhl): Force underflow exception for arguments with small
17146         absolute value.
17147         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
17148         (__tanhl): Force underflow exception for arguments with small
17149         absolute value.
17150         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
17151         (__tanhl): Force underflow exception for arguments with small
17152         absolute value.
17153         * math/auto-libm-test-in: Add more tests of tanh.
17154         * math/auto-libm-test-out: Regenerated.
17155         * sysdeps/i386/fpu/libm-test-ulps: Update.
17156
17157 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
17158
17159         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
17160         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
17161
17162 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
17163
17164         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
17165         <cpuid.h>.
17166
17167 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
17168
17169         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
17170         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
17171
17172 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
17173
17174         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
17175         Remove $(objpfx)init-arch.o.
17176         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
17177         init-arch.
17178         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
17179         (INIT_ARCH_EXT): Defined as empty.
17180         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
17181         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
17182         __init_cpu_features call.  Replace HAS_XXX with
17183         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
17184         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
17185         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
17186         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
17187         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
17188         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
17189         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
17190         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
17191         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
17192         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
17193         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
17194         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
17195         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
17196         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
17197         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
17198         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
17199         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
17200         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
17201         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
17202         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
17203         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
17204         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
17205         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
17206         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
17207         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
17208         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
17209         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
17210         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
17211         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
17212         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
17213         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
17214         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
17215         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
17216         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
17217         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
17218         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
17219
17220 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
17221
17222         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
17223         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
17224         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
17225         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
17226         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
17227         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
17228         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
17229         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
17230         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
17231         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
17232         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
17233         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
17234         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
17235         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
17236         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
17237         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
17238         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
17239         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
17240         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
17241         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
17242         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
17243         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
17244         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
17245         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
17246         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
17247         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
17248         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
17249         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
17250         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
17251         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
17252         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
17253         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
17254         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
17255         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
17256         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
17257         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
17258         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
17259         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
17260         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
17261         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
17262         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
17263         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
17264         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
17265
17266 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
17267
17268         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
17269         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
17270         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
17271         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
17272         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
17273         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
17274         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
17275         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
17276         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
17277         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
17278         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
17279         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
17280         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
17281         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
17282         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
17283         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
17284         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
17285         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
17286         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
17287         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
17288         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
17289         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
17290         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
17291         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
17292         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17293         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
17294         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
17295         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
17296         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
17297         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
17298         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
17299         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
17300         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
17301         * sysdeps/x86_64/multiarch/memset.S: Likewise.
17302         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
17303         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
17304         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
17305         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
17306         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
17307         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
17308         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
17309         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
17310         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
17311
17312 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
17313
17314         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
17315         (dl_platform_init): Call init_cpu_features.
17316         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
17317         * sysdeps/i386/i686/cacheinfo.c
17318         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
17319         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
17320         * sysdeps/i386/i686/multiarch/Versions: Removed.
17321         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
17322         Removed.
17323         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
17324         * sysdeps/unix/sysv/linux/x86/Makefile
17325         (libpthread-sysdep_routines): Remove init-arch.
17326         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
17327         <sysdeps/x86_64/dl-procinfo.c> instead of
17328         sysdeps/generic/dl-procinfo.c>.
17329         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
17330         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
17331         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
17332         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
17333         [$(subdir) == elf] (tests-static): Add
17334         tst-get-cpu-features-static.
17335         * sysdeps/x86/Versions: New file.
17336         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
17337         * sysdeps/x86/cpu-features.c: Likewise.
17338         * sysdeps/x86/cpu-features.h: Likewise.
17339         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
17340         * sysdeps/x86/libc-start.c: Likewise.
17341         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
17342         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
17343         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
17344         * sysdeps/x86_64/dl-procinfo.c: Likewise.
17345         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
17346         Assume USE_MULTIARCH is defined and don't check it.
17347         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
17348         (is_amd): Likewise.
17349         (max_cpuid): Likewise.
17350         (intel_check_word): Likewise.
17351         (__cache_sysconf): Don't call __init_cpu_features.
17352         (__x86_preferred_memory_instruction): Removed.
17353         (init_cacheinfo): Don't call __init_cpu_features. Replace
17354         __cpu_features with GLRO(dl_x86_cpu_features).
17355         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
17356         (dl_platform_init): Call init_cpu_features.
17357         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
17358         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
17359         * sysdeps/x86_64/multiarch/Versions: Removed.
17360         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
17361         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
17362         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
17363         Removed.
17364         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
17365
17366 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
17367
17368         [BZ #18820]
17369         * libio/Makefile (test-fmemopen-mem): New test.
17370         * libio/test-fmemopen.c (do_bz18820): New test.
17371         * libio/fmemopen.c (__fmemopen): Fix memory leak.
17372         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
17373
17374 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
17375
17376         [BZ #16734]
17377         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
17378         (FREE_BUF): Delete.
17379         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
17380         * libio/genops.c (_IO_setb): Use malloc and free directly.
17381         (_IO_default_doallocate, _IO_default_finish): Likewise.
17382         ( _IO_unbuffer_all): Likewise.
17383         ( libc_freeres_fn): Likewise.
17384         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
17385         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
17386         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
17387         (_IO_wdefault_doallocate): Likewise.
17388
17389 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
17390
17391         [BZ #18086]
17392         * sysdeps/posix/nice.c (nice): Restore old errno.
17393         * posix/tst-nice.c (do_test): Add test for BZ #18086.
17394
17395 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
17396
17397         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
17398
17399 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17400
17401         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
17402         __bcopy and add a weak_alias to bcopy.
17403         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
17404         for static build.
17405
17406         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
17407         cleanup macro usage.
17408         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
17409         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
17410         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
17411         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
17412         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
17413         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
17414         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
17415         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
17416         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
17417         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
17418         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
17419         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
17420         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
17421         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
17422         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
17423         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
17424         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
17425         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
17426         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
17427
17428         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
17429         libc_hidden_def.
17430         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
17431
17432         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
17433         (sysdep_routines): Add strstr-ppc64.
17434         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
17435
17436 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
17437
17438         [BZ #18778]
17439         * elf/Makefile (tests): Add Add tst-nodelete2.
17440         (modules-names): Add tst-nodelete2mod.
17441         (tst-nodelete2mod.so-no-z-defs): New.
17442         ($(objpfx)tst-nodelete2): Likewise.
17443         ($(objpfx)tst-nodelete2.out): Likewise.
17444         (LDFLAGS-tst-nodelete2): Likewise.
17445         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
17446         out of loop through all loaded libraries.
17447         * elf/tst-nodelete2.c: New file.
17448         * elf/tst-nodelete2mod.c: Likewise.
17449         * elf/tst-znodelete-zlib.cc: Delete.
17450
17451 2015-08-11  Andreas Schwab  <schwab@suse.de>
17452
17453         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
17454         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
17455         (__openat64_nocancel): Likewise.
17456
17457 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
17458
17459         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
17460         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
17461         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
17462         * math/auto-libm-test-out: Regenerated.
17463         * sysdeps/i386/fpu/libm-test-ulps: Update.
17464         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17465
17466 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
17467
17468         [BZ #18790]
17469         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
17470         threshold for returning +/- 1.
17471         * math/auto-libm-test-in: Add more tests of tanh.
17472         * math/auto-libm-test-out: Regenerated.
17473         * sysdeps/i386/fpu/libm-test-ulps: Update.
17474
17475 2015-08-10  Andreas Schwab  <schwab@suse.de>
17476
17477         [BZ #18781]
17478         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
17479         MORE_OFLAGS to oflag.
17480         * io/test-lfs.c (do_test): Test openat64.
17481
17482 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
17483
17484         [BZ #18789]
17485         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
17486         smaller threshold for returning the argument.
17487         * math/auto-libm-test-in: Add more tests of sinh.
17488         * math/auto-libm-test-out: Regenerated.
17489         * sysdeps/i386/fpu/libm-test-ulps: Update.
17490
17491 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
17492
17493         [BZ #18674]
17494         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
17495         break.
17496
17497 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
17498
17499         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
17500         (generated): Don't add $(addprefix z.,$(tzfiles)).
17501
17502 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
17503
17504         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
17505         * scripts/sysd-rules.awk: Likewise.
17506
17507 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
17508
17509         * iconvdata/tst-tables.sh: Change echo -n to printf.
17510         * nss/db-Makefile: Likewise.
17511         * posix/tst-getconf.sh: Likewise.
17512         * stdio-common/tst-unbputc.sh: Likewise.
17513
17514 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
17515
17516         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
17517         MADV_*_PAGES defines behind this feature check.
17518
17519 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
17520
17521         [BZ #18480]
17522         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
17523         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
17524         Define.
17525         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
17526         LOAD_REGS_5, LOAD_REGS_6): Update.
17527         (INTERNAL_SYSCALL): Update using new LOAD defines.
17528         (INTERNAL_SYSCALL_NCS): Likewise.
17529         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
17530
17531 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
17532
17533         [BZ #16734]
17534         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
17535
17536 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
17537
17538         [BZ #17905]
17539         * catgets/Makefile (tst-catgets-mem): New test.
17540         * catgets/catgets.c (catopen): Don't use unbounded alloca.
17541         * catgets/open_catalog.c (__open_catalog): Likewise.
17542         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
17543
17544 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
17545
17546         [BZ #18787]
17547         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
17548         clobber registers.
17549         (atomic_compare_and_exchange_val_acq): Use register asms to assign
17550         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
17551         Cast return to __typeof (oldval).
17552
17553 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
17554
17555         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
17556         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
17557         and delete sys/syscall.h include.
17558
17559 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
17560
17561         [BZ #16517]
17562         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
17563         (tan): Force underflow exception for arguments with small absolute
17564         value.
17565         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
17566         (__kernel_tanf): Force underflow exception for arguments with
17567         small absolute value.
17568         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
17569         (__kernel_tanl): Force underflow exception for arguments with
17570         small absolute value.
17571         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
17572         (__kernel_tanl): Force underflow exception for arguments with
17573         small absolute value.
17574         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
17575         (__kernel_tanl): Force underflow exception for arguments with
17576         small absolute value.
17577         * math/auto-libm-test-in: Add more tests of tan.
17578         * math/auto-libm-test-out: Regenerated.
17579
17580 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17581
17582         Fix sysdeps/i386/fpu/s_scalbn.S build
17583
17584         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
17585
17586 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
17587
17588         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
17589
17590 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17591
17592         Fix gcrt0.o compilation
17593
17594         When static-start-installed-name is different from
17595         start-installed-name, we must not use the shared objects.
17596
17597         * csu/Makefile
17598         (extra-objs): Add gmon-start.o when building shared library and
17599         $(static-start-installed-name) is different from
17600         $(start-installed-name).
17601         $(objpfx)g$(static-start-installed-name): When building shared
17602         library and $(static-start-installed-name) is different from
17603         $(static-start-installed-name), revert to non-shared rule,
17604         i.e. using $(objpfx)% and gmon-start.o.
17605
17606 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
17607
17608         [BZ #16519]
17609         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
17610         (__ieee754_sinh): Force underflow exception for arguments with
17611         small absolute value.
17612         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
17613         (__ieee754_sinhf): Force underflow exception for arguments with
17614         small absolute value.
17615         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
17616         (__ieee754_sinhl): Force underflow exception for arguments with
17617         small absolute value.
17618         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
17619         (__ieee754_sinhl): Force underflow exception for arguments with
17620         small absolute value.
17621         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
17622         (__ieee754_sinhl): Force underflow exception for arguments with
17623         small absolute value.
17624         * math/auto-libm-test-in: Add more tests of sinh.
17625         * math/auto-libm-test-out: Regenerated.
17626         * sysdeps/i386/fpu/libm-test-ulps: Update.
17627
17628 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17629
17630         * libio/oldfileops.c: Include unistd.h.
17631
17632 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
17633
17634         * stdlib/isomac.c: Include ctype.h.
17635
17636 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
17637
17638         * dirent/tst-seekdir.c (main): Converted to ...
17639         (do_test): ... this.
17640         (TEST_FUNCTION): New macro.
17641         Include test-skeleton.c.
17642         * elf/tst-dlmodcount.c (main): Converted to ...
17643         (do_test): ... this.
17644         (TEST_FUNCTION): New macro.
17645         Include test-skeleton.c.
17646         * elf/tst-order-main.c (main): Converted to ...
17647         (do_test): ... this.
17648         (TEST_FUNCTION): New macro.
17649         Include test-skeleton.c.
17650         * elf/tst-pie2.c (main): Converted to ...
17651         (do_test): ... this.
17652         (TEST_FUNCTION): New macro.
17653         Include test-skeleton.c.
17654         * inet/tst-ether_aton.c (main): Converted to ...
17655         (do_test): ... this.
17656         (TEST_FUNCTION): New macro.
17657         Include test-skeleton.c.
17658         * misc/tst-mntent.c (main): Converted to ...
17659         (do_test): ... this.
17660         (TEST_FUNCTION): New macro.
17661         Include test-skeleton.c.
17662         * misc/tst-tsearch.c (main): Converted to ...
17663         (do_test): ... this.
17664         (TEST_FUNCTION): New macro.
17665         Include test-skeleton.c.
17666         * posix/tst-regexloc.c (main): Converted to ...
17667         (do_test): ... this.
17668         (TEST_FUNCTION): New macro.
17669         Include test-skeleton.c.
17670         * resolv/tst-aton.c (main): Converted to ...
17671         (do_test): ... this.
17672         (TEST_FUNCTION): New macro.
17673         Include test-skeleton.c.
17674         * stdio-common/test-fwrite.c (main): Converted to ...
17675         (do_test): ... this.
17676         (TEST_FUNCTION): New macro.
17677         Include test-skeleton.c.
17678         * stdio-common/tst-ferror.c (main): Converted to ...
17679         (do_test): ... this.
17680         (TEST_FUNCTION): New macro.
17681         Include test-skeleton.c.
17682         * stdio-common/tst-printf.c (main): Converted to ...
17683         (do_test): ... this.
17684         (TEST_FUNCTION): New macro.
17685         Include test-skeleton.c.
17686         * stdio-common/tst-printfsz.c (main): Converted to ...
17687         (do_test): ... this.
17688         (TEST_FUNCTION): New macro.
17689         Include test-skeleton.c.
17690         * stdlib/tst-strtod.c (main): Converted to ...
17691         (do_test): ... this.
17692         (TEST_FUNCTION): New macro.
17693         Include test-skeleton.c.
17694         * string/tst-strlen.c (main): Converted to ...
17695         (do_test): ... this.
17696         (TEST_FUNCTION): New macro.
17697         Include test-skeleton.c.
17698         * string/tst-svc.c (main): Converted to ...
17699         (do_test): ... this.
17700         (TEST_FUNCTION): New macro.
17701         Include test-skeleton.c.
17702         * time/tst-strptime.c (main): Converted to ...
17703         (do_test): ... this.
17704         (TEST_FUNCTION): New macro.
17705         Include test-skeleton.c.
17706         * timezone/tst-timezone.c (main): Converted to ...
17707         (do_test): ... this.
17708         (TEST_FUNCTION): New macro.
17709         Include test-skeleton.c.
17710
17711 2015-08-05  Zack Weinberg  <zackw@panix.com>
17712
17713         * misc/regexp.h: Update comments.
17714
17715 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
17716
17717         [BZ #18635]
17718         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
17719         before return label.
17720
17721 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17722
17723         [BZ #18661]
17724         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
17725         when calling __errno_location.
17726         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
17727         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
17728
17729 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17730
17731         [BZ #18661]
17732         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
17733         (__lll_timedwait_tid): Align stack to 16 bytes when calling
17734         __gettimeofday.
17735
17736 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17737
17738         [BZ #18661]
17739         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
17740         (__start_context): Don't use pop to restore %rdi so that stack
17741         is aligned to 16 bytes when calling __setcontext.
17742
17743 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17744
17745         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
17746         only for libc.
17747         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
17748
17749 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17750
17751         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
17752         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
17753         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
17754
17755 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17756
17757         * string/memccpy.c (memccpy):
17758         Improve performance by using memchr/memcpy/__mempcpy.
17759
17760 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17761
17762         * string/strncpy.c (strncpy):
17763         Improve performance by using __strnlen/memcpy.
17764
17765 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17766
17767         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
17768         Optimize to avoid an unnecessary FPCR read.
17769
17770 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17771
17772         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
17773         Optimize to reduce FPCR/FPSR accesses.
17774
17775 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17776
17777         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
17778         dead->data[category] != NULL.
17779
17780 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
17781
17782         [BZ #18647]
17783         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
17784         and |x| close to 1, use absolute value of x when computing log.
17785         * math/auto-libm-test-in: Add more tests of pow.
17786         * math/auto-libm-test-out: Regenerated.
17787
17788 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17789
17790         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
17791         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
17792         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
17793
17794 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
17795
17796         [BZ #18525]
17797         * locales/km_KH: Remove timezone definition.
17798         * locales/lo_LA: Likewise.
17799         * locales/my_MM: Likewise.
17800         * locales/nan_TW@latin: Likewise.
17801         * locales/th_TH: Likewise.
17802         * locales/uk_UA: Likewise.
17803
17804 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
17805
17806         [BZ #18265]
17807         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
17808         (wcsncat): Likewise.
17809         (wcscmp): Likewise.
17810         (wcsncmp): Likewise.
17811
17812 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
17813
17814         * test-skeleton.c (usage): New function.
17815         (main): Call usage when opt is '?'.
17816
17817 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
17818
17819         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
17820         before first use.
17821
17822 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
17823
17824         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
17825         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
17826         in there too.
17827
17828 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
17829
17830         * version.h (RELEASE): Set to "development".
17831         (VERSION): Set to "2.22.90"
17832
17833         * version.h (RELEASE): Set to "stable".
17834         (VERSION): Set to "2.22"
17835         * include/features.h (__GLIBC_MINOR__): Set to 22.
17836
17837 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
17838
17839         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
17840         Restructure macro to avoid "value computed is not used" warning.
17841         (atomic_compare_and_exchange_val_acq): Likewise.
17842
17843 2015-08-04  Andreas Schwab  <schwab@suse.de>
17844
17845         [BZ #18635]
17846         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
17847         ret.
17848         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
17849
17850 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
17851
17852         * po/pl.po: Updated translation.
17853         * po/uk.po: Likewise.
17854         * po/fi.po: Likewise.
17855         * po/ko.po: Likewise.
17856         * po/ru.po: Likewise.
17857         * po/vi.po: Likewise.
17858
17859 2015-07-31  Zack Weinberg  <zackw@panix.com>
17860
17861         [BZ #18681]
17862         * regexp.h: Add unconditional #warning stating that this header
17863         will be removed soon.  Revise banner comment to match.
17864         (compile): Consistently use ERROR instead of RETURN to report
17865         errors (partial fix for bz#18681).
17866         * regexp.c: Don't include regexp.h. Remove some unnecessary
17867         declarations.
17868
17869 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
17870
17871         * po/libc.pot: Regenerated.
17872
17873 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
17874
17875         [BZ #18740]
17876         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
17877         float-vlen4-arch-ext-cflags): Removed.
17878         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
17879         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
17880
17881 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
17882
17883         [BZ #14113]
17884         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
17885         aligned to __aligned__.
17886         (pthread_cond_t, pthread_rwlock_t): Likewise.
17887
17888 2015-07-30  Torvald Riegel  <triegel@redhat.com>
17889
17890         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
17891
17892 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
17893
17894         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
17895         (struct sigaction): Change sa_flags from a long to an int, and add
17896         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
17897
17898 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
17899
17900         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
17901         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
17902         sysdeps/generic/sysdep.h include.
17903         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
17904         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
17905         sysdeps/hppa/sysdep.h.
17906         (ENTRY, PSEUDO): Undefine before defining.
17907
17908 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
17909
17910         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
17911         from scratch to use INTERNAL_SYSCALL.
17912
17913 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17914
17915         [BZ #18078]
17916         * scripts/check-localplt.awk: Support alternate relocations.
17917         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
17918         sections.
17919         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
17920         malloc entries with + REL R_386_GLOB_DAT.
17921         * sysdeps/x86_64/localplt.data: New file.
17922
17923 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
17924
17925         [BZ #18731]
17926         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
17927         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17928         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
17929
17930 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
17931
17932         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
17933
17934 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
17935
17936         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
17937         directly in terms of __sync_fetch_and_add and delete (int) cast.
17938
17939 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
17940
17941         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
17942         the -D_ASM_IA64_CURRENT_H flag.
17943
17944 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
17945
17946         [BZ #18641]
17947         * pwd/pwd.h (putpwent): Delete __nonnull markings.
17948
17949 2015-07-27  Andreas Schwab  <schwab@suse.de>
17950
17951         * conform/conformtest.pl (checknamespace): Filter out string
17952         literals while tokenizing.
17953
17954 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
17955
17956         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
17957         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
17958         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
17959
17960 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
17961
17962         * nptl/tst-join7mod.c: Add #include <string.h>.
17963
17964 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
17965
17966         * sysdeps/nios2/libm-test-ulps: Update.
17967
17968 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
17969
17970         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
17971         Fix order of arguments to the rt_sigprocmask syscall.
17972         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
17973         Likewise.
17974
17975 2015-07-24  Roland McGrath  <roland@hack.frob.com>
17976
17977         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
17978
17979 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
17980
17981         [BZ #18457]
17982         * nptl/Makefile (tests): New test case tst-join7.
17983         (modules-names): New test case module tst-join7mod.
17984         * nptl/tst-join7.c: New file.
17985         * nptl/tst-join7mod.c: New file.
17986         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
17987         all translation units in libc.so, libpthread.so and rtld.
17988
17989 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17990
17991         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17992
17993 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
17994
17995         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
17996         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
17997         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
17998         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
17999         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
18000         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
18001         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
18002         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
18003         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
18004         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
18005         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
18006         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
18007         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
18008         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
18009         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
18010         implementation.
18011
18012 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18013
18014         [BZ #17711]
18015         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
18016         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
18017         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
18018         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
18019         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
18020         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
18021
18022 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
18023
18024         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
18025         instead of just saying load lock in the comments.
18026
18027 2015-07-23  Roland McGrath  <roland@hack.frob.com>
18028
18029         * sysdeps/unix/Subdirs: Moved ...
18030         * sysdeps/posix/Subdirs: ... here.
18031         * login/pty.h (struct termios, struct winsize): Add forward decls.
18032         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
18033         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
18034         * sysdeps/arm/nacl/libc.abilist: Updated.
18035         * sysdeps/nacl/libutil.abilist: New file.
18036
18037         * bits/signum.h: Update comments to mention 1003.1-2013 too.
18038         (SIGWINCH): New macro.
18039
18040         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
18041         * sysdeps/arm/nacl/libc.abilist: Add it.
18042
18043 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
18044
18045         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
18046
18047 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
18048
18049         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
18050         Swap __glibc_reserved0 and sa_flags order.
18051
18052 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
18053
18054         [BZ #18657]
18055         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
18056         are pending TLS destructor calls.
18057         * include/link.h (struct link_map): Add concurrency note for
18058         L_TLS_DTOR_COUNT.
18059         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
18060         Don't touch the link map flag.  Atomically increment
18061         l_tls_dtor_count.
18062         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
18063         Avoid taking the load lock and don't touch the link map flag.
18064         * stdlib/tst-tls-atexit-nodelete.c: New test case.
18065         * stdlib/Makefile (tests): Use it.
18066         * stdlib/tst-tls-atexit.c (do_test): dlopen
18067         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
18068         to allow tst-tls-atexit-nodelete test case to use it.
18069
18070 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
18071
18072         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
18073         to bits/types.h.
18074         (msgqnum_t): New typedef.
18075         (msglen_t): Likewise.
18076         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
18077         and msg_qbytes type to msglen_t.
18078
18079 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
18080
18081         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
18082         pad0 to __glibc_reserved0.
18083         (struct stat64): Likewise.
18084
18085 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
18086
18087         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
18088         Change sa_flags from a long to an int and add __glibc_reserved0 before
18089         it for padding.
18090
18091 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
18092
18093         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
18094         anonymous by deleting "siginfo" name.
18095
18096 2015-07-21  Roland McGrath  <roland@hack.frob.com>
18097
18098         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
18099         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
18100         rather than __nacl_irt_filename.
18101         * sysdeps/nacl/xstat.c (__xstat): Likewise.
18102
18103         * NEWS: New item for arm-nacl port.
18104         * sysdeps/arm/nacl/libc.abilist: New file.
18105         * sysdeps/nacl/ld.abilist: New file.
18106         * sysdeps/nacl/libBrokenLocale.abilist: New file.
18107         * sysdeps/nacl/libanl.abilist: New file.
18108         * sysdeps/nacl/libcrypt.abilist: New file.
18109         * sysdeps/nacl/libdl.abilist: New file.
18110         * sysdeps/nacl/libm.abilist: New file.
18111         * sysdeps/nacl/libpthread.abilist: New file.
18112         * sysdeps/nacl/libresolv.abilist: New file.
18113         * sysdeps/nacl/librt.abilist: New file.
18114
18115 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
18116
18117         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
18118         __startcontext to initialize the new context.
18119         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
18120         up CFI directive to forbid further backtracing.
18121
18122 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
18123
18124         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
18125         reference.
18126         * charmaps/ANSI_X3.4-1968: Likewise.
18127         * charmaps/BS_4730: Likewise.
18128         * charmaps/BS_VIEWDATA: Likewise.
18129         * charmaps/CP1250: Likewise.
18130         * charmaps/CP1251: Likewise.
18131         * charmaps/CP1252: Likewise.
18132         * charmaps/CP1253: Likewise.
18133         * charmaps/CP1254: Likewise.
18134         * charmaps/CP1255: Likewise.
18135         * charmaps/CP1256: Likewise.
18136         * charmaps/CSN_369103: Likewise.
18137         * charmaps/EBCDIC-DK-NO: Likewise.
18138         * charmaps/GB_1988-80: Likewise.
18139         * charmaps/GREEK-CCITT: Likewise.
18140         * charmaps/GREEK7: Likewise.
18141         * charmaps/INIS-8: Likewise.
18142         * charmaps/ISIRI-3342: Likewise.
18143         * charmaps/ISO_2033-1983: Likewise.
18144         * charmaps/ISO_5427-EXT: Likewise.
18145         * locales/POSIX: Likewise.
18146         * locales/ar_SA: Likewise.
18147         * locales/be_BY: Likewise.
18148         * locales/be_BY@latin: Likewise.
18149         * locales/ca_ES: Likewise.
18150         * locales/cs_CZ: Likewise.
18151         * locales/da_DK: Likewise.
18152         * locales/de_BE: Likewise.
18153         * locales/de_CH: Likewise.
18154         * locales/de_LU: Likewise.
18155         * locales/en_AU: Likewise.
18156         * locales/en_BW: Likewise.
18157         * locales/en_CA: Likewise.
18158         * locales/en_DK: Likewise.
18159         * locales/en_GB: Likewise.
18160         * locales/en_IE: Likewise.
18161         * locales/en_NZ: Likewise.
18162         * locales/en_ZA: Likewise.
18163         * locales/en_ZW: Likewise.
18164         * locales/es_AR: Likewise.
18165         * locales/es_BO: Likewise.
18166         * locales/es_CL: Likewise.
18167         * locales/es_CO: Likewise.
18168         * locales/es_DO: Likewise.
18169         * locales/es_EC: Likewise.
18170         * locales/es_ES: Likewise.
18171         * locales/es_HN: Likewise.
18172         * locales/es_MX: Likewise.
18173         * locales/es_PA: Likewise.
18174         * locales/es_PE: Likewise.
18175         * locales/es_PY: Likewise.
18176         * locales/es_SV: Likewise.
18177         * locales/es_US: Likewise.
18178         * locales/es_UY: Likewise.
18179         * locales/es_VE: Likewise.
18180         * locales/et_EE: Likewise.
18181         * locales/fa_IR: Likewise.
18182         * locales/fo_FO: Likewise.
18183         * locales/fr_CA: Likewise.
18184         * locales/fr_CH: Likewise.
18185         * locales/gv_GB: Likewise.
18186         * locales/he_IL: Likewise.
18187         * locales/hr_HR: Likewise.
18188         * locales/id_ID: Likewise.
18189         * locales/is_IS: Likewise.
18190         * locales/it_CH: Likewise.
18191         * locales/iw_IL: Likewise.
18192         * locales/kl_GL: Likewise.
18193         * locales/ko_KR: Likewise.
18194         * locales/kw_GB: Likewise.
18195         * locales/lg_UG: Likewise.
18196         * locales/lt_LT: Likewise.
18197         * locales/lv_LV: Likewise.
18198         * locales/mi_NZ: Likewise.
18199         * locales/nhn_MX: Likewise.
18200         * locales/nl_BE: Likewise.
18201         * locales/pl_PL: Likewise.
18202         * locales/sk_SK: Likewise.
18203         * locales/sl_SI: Likewise.
18204         * locales/sv_FI: Likewise.
18205         * locales/tl_PH: Likewise.
18206         * locales/tr_TR: Likewise.
18207         * locales/vi_VN: Likewise.
18208
18209 2015-07-21  Khem Raj  <raj.khem@gmail.com>
18210
18211         [BZ #17475]
18212         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
18213         of tu_IN and bh_IN.
18214
18215 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
18216
18217         [BZ #18694]
18218         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
18219         bits/wordsize.h.
18220         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
18221
18222 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
18223
18224         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
18225         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
18226         (spawn_thread): New function.
18227         (load): Rename to reg_dtor_and_close.  Move dlopen to...
18228         (do_test): ... here.  Use IS_LOADED to test for its
18229         availability.
18230
18231 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
18232
18233         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
18234
18235 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
18236
18237         [BZ #18696]
18238         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
18239         si_addr_bnd.
18240         (si_lower): New.
18241         (si_upper): Likewise.
18242
18243 2015-07-16  David S. Miller  <davem@davemloft.net>
18244
18245         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
18246
18247 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18248
18249         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
18250         buffer.
18251         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
18252         fail output information.
18253
18254 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18255
18256         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
18257         and strstr-ppc64..
18258         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
18259         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
18260         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
18261         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
18262         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
18263
18264 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
18265
18266         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
18267         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
18268         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
18269         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
18270
18271 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
18272
18273         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
18274         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
18275         rtld_hidden_proto.
18276         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
18277
18278 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
18279
18280         * tst-nodelete-opened.c (do_test): Add comment to clarify how
18281         the test can fail.
18282
18283         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
18284
18285         [BZ #18676]
18286         * elf/tst-nodelete-opened.c: New test case.
18287         * elf/tst-nodelete-opened-lib.c: New test case module.
18288         * elf/Makefile (tests, modules-names): Use them.
18289         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
18290         early.
18291
18292 2015-07-15  David S. Miller  <davem@davemloft.net>
18293
18294         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
18295         futex-intenal.h
18296         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
18297         * sysdeps/sparc/sparc64/Makefile: Likewise.
18298         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
18299         Remove space from macro define.
18300         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
18301
18302 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
18303
18304         [BZ #17475]
18305         * locale/iso-639.def: Update Bhili and Tulu language codes as
18306         per iso639-3.
18307
18308 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
18309
18310         * elf/tst-leaks1.c (main): Converted to ...
18311         (do_test): ... this.
18312         (TEST_FUNCTION): New macro.
18313         Include test-skeleton.c.
18314         * localedata/tst-langinfo.c (main): Converted to ...
18315         (do_test): ... this.
18316         (TEST_FUNCTION): New macro.
18317         Include test-skeleton.c.
18318         * math/test-fpucw.c (main): Converted to ...
18319         (do_test): ... this.
18320         (TEST_FUNCTION): New macro.
18321         Include test-skeleton.c.
18322         * math/test-tgmath.c (main): Converted to ...
18323         (do_test): ... this.
18324         (TEST_FUNCTION): New macro.
18325         Include test-skeleton.c.
18326         * math/test-tgmath2.c (main): Converted to ...
18327         (do_test): ... this.
18328         (TEST_FUNCTION): New macro.
18329         Include test-skeleton.c.
18330         * setjmp/tst-setjmp.c (main): Converted to ...
18331         (do_test): ... this.
18332         (TEST_FUNCTION): New macro.
18333         Include test-skeleton.c.
18334         * stdio-common/tst-sscanf.c (main): Converted to ...
18335         (do_test): ... this.
18336         (TEST_FUNCTION): New macro.
18337         Include test-skeleton.c.
18338         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
18339         (do_test): ... this.
18340         (TEST_FUNCTION): New macro.
18341         Include test-skeleton.c.
18342
18343         * elf/tst-audit9.c (main): Converted to ...
18344         (do_test): ... this.
18345         (TEST_FUNCTION): New macro.
18346         Include test-skeleton.c.
18347
18348 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
18349
18350         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
18351
18352 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18353
18354         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
18355         New variable.
18356
18357 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18358
18359         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18360
18361 2015-07-14  Roland McGrath  <roland@hack.frob.com>
18362
18363         * sysdeps/generic/dl-fileid.h: New file.
18364         * sysdeps/posix/dl-fileid.h: New file.
18365         * sysdeps/nacl/dl-fileid.h: New file.
18366         * include/link.h: Include <dl-fileid.h>.
18367         (struct link_map): Replace l_dev and l_ino with l_file_id.
18368         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
18369         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
18370         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
18371
18372 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
18373
18374         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
18375
18376 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18377
18378         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
18379         Add iff $CXX is set.
18380         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
18381         Likewise.
18382         (tst-nodelete-zmodiff): Likewise.
18383         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
18384
18385 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
18386
18387         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
18388
18389 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
18390
18391         * sysdeps/aarch64/fpu/math_private.h
18392         (define math_opt_barrier): Add AArch64 version.
18393         (math_force_eval): Likewise.
18394
18395 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
18396
18397         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
18398
18399 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
18400
18401         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
18402         %ld with %jd and cast to intmax_t.
18403         (do_test_length_zero): Likewise.
18404
18405 2015-07-10  Roland McGrath  <roland@hack.frob.com>
18406
18407         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
18408
18409 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
18410
18411         * sysdeps/tile/libm-test-ulps: Regenerated.
18412
18413         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
18414         Comment out the whole function, not just its body.
18415
18416 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18417
18418         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
18419         locks.
18420
18421         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
18422
18423 2015-07-10  Torvald Riegel  <triegel@redhat.com>
18424
18425         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
18426         (sem_assume_only_signals_cause_futex_EINTR): Remove.
18427
18428 2015-07-10  Torvald Riegel  <triegel@redhat.com>
18429
18430         * sysdeps/nptl/futex-internal.h: New file.
18431         * sysdeps/nacl/futex-internal.h: New file.
18432         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
18433         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
18434         error checking.
18435         (setxid_unmark_thread): Likewise.
18436         (__nptl_setxid): Likewise.
18437         (__wait_lookup_done): Likewise.
18438         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
18439         * nptl/nptl-init.c (sighandler_setxid): Likewise.
18440         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
18441         * nptl/pthread_once.c (clear_once_control): Likewise.
18442         (__pthread_once_slow): Likewise.
18443         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
18444         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
18445         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
18446         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
18447         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
18448         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
18449         Likewise.
18450         (__pthread_rwlock_rdlock): Likewise.
18451         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
18452         Likewise.
18453         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
18454         Likewise.
18455         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
18456         Likewise.
18457         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
18458         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
18459         Likewise.
18460         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
18461         __ASSUME_PRIVATE_FUTEX check.
18462         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
18463         Check that shared futexes are supported.
18464         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
18465         wrappers with error checking.
18466         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
18467         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
18468         * nptl/pthread_barrierattr_setpshared.c
18469         (pthread_barrierattr_setpshared): Check that shared futexes are
18470         supported.
18471         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
18472         Likewise.
18473         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
18474         Likewise.
18475         * nptl/sem_init.c (futex_private_if_supported): Remove.
18476         (__new_sem_init): Adapt and check that shared futexes are supported.
18477         * nptl/sem_open.c (sem_open): Likewise.
18478         * nptl/sem_post.c (futex_wake): Remove.
18479         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
18480         (do_futex_wait): Use futex wrappers with error checking.
18481         * nptl/sem_wait.c: Include lowlevellock.h.
18482         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
18483         Use futex_supports_pshared.
18484         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
18485         Use futex wrappers with error checking.
18486         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
18487         Likewise.
18488         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
18489         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
18490         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
18491         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
18492         (futex_wake): Likewise.
18493         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
18494         (do_futex_wait): Use futex wrappers with error checking.
18495         (__new_sem_wait_slow): Update EINTR handling.
18496         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
18497
18498 2015-07-09  Martin Sebor  <msebor@redhat.com>
18499
18500         [BZ #18435]
18501         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
18502         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
18503         * nptl/Makefile (test-xfail-tst-once5): Define.
18504
18505 2015-07-09  Roland McGrath  <roland@hack.frob.com>
18506
18507         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
18508         * elf/dl-minimal.c: For readability, reorder some definitions and
18509         introduce more page breaks.  Include <stdio.h>.
18510         (__libc_fatal): New function.
18511
18512         * include/unistd.h: Add rtld_hidden_proto for _exit.
18513         * posix/_exit.c: Add rtld_hidden_def.
18514         * sysdeps/mach/hurd/_exit.c: Likewise.
18515         * sysdeps/nacl/_exit.c: Likewise.
18516         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
18517         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
18518
18519 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18520
18521         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
18522         bndmov encoding with zero displacement.
18523
18524 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
18525             H.J. Lu  <hongjiu.lu@intel.com>
18526
18527         [BZ #18134]
18528         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
18529         * sysdeps/i386/configure: Regenerated.
18530         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
18531         (_dl_runtime_profile): Save and restore Intel MPX return bound
18532         registers when calling _dl_call_pltexit.  Add
18533         PRESERVE_BND_REGS_PREFIX before return.
18534         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
18535         (LRV_BND1_OFFSET): Likewise.
18536         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
18537         lrv_bnd1.
18538         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
18539         typo in bndmov encoding.
18540         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
18541         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
18542         branch instructions to preserve bounds.
18543
18544 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18545
18546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
18547         [GLIBC_2.22]: Add fmemopen.
18548
18549 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18550
18551         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
18552         returns an error, also try to use host port from __mach_host_self for
18553         the __vm_wire call.
18554         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
18555
18556 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18557
18558         [BZ #18400]
18559         [BZ #18648]
18560         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
18561         Fix pr_uid and pr_gid members.
18562         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
18563         definition to elf_greg_t.
18564
18565 2015-07-08  Roland McGrath  <roland@hack.frob.com>
18566
18567         [BZ #18383]
18568         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
18569         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
18570         * sysdeps/arm/configure: Regenerated.
18571         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
18572         (test-xfail-tst-tlsalign-static): Variable removed.
18573
18574         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
18575         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
18576         rather than explicit 'ln -s'.
18577
18578         * resolv/rpc/netdb.h: New file.
18579         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
18580
18581 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18582
18583         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
18584         length buffers.
18585         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
18586         test-skeleton.c.
18587
18588         [BZ #6544]
18589         [BZ #11216]
18590         [BZ #12836]
18591         [BZ #13151]
18592         [BZ #13152]
18593         [BZ #14292]
18594         * include/stdio.h (fmemopen): Remove hidden prototype.
18595         (__fmemopen): Add new hidden prototype.
18596         * libio/Makefile: Add oldfmemopen object.
18597         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
18598         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
18599         compliance.
18600         * libio/oldfmemopen.c: New file: old fmemopen implementation for
18601         symbol compatibility.
18602         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
18603         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
18604         fmemopen.
18605         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
18606         on append and read mode.
18607         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
18608         fmemopen.
18609         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
18610         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
18611         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
18612         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
18613         Likewise.
18614         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
18615         [GLIBC_2.22]: Likewise.
18616         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
18617         Likewise.
18618         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
18619         Likewise.
18620         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
18621         [GLIBC_2.22]: Likewise.
18622         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
18623         [GLIBC_2.22]: Likewise.
18624         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
18625         [GLIBC_2.22]: Likewise.
18626         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
18627         [GLIBC_2.22]: Likewise.
18628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
18629         [GLIBC_2.22]: Likewise.
18630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
18631         [GLIBC_2.22]: Likewise.
18632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
18633         [GLIBC_2.22]: Likewise.
18634         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
18635         Likewise.
18636         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
18637         Likewise.
18638         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
18639         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
18640         [GLIBC_2.22]: Likewise.
18641         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
18642         [GLIBC_2.22]: Likewise.
18643         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
18644         [GLIBC_2.22]: Likewise.
18645         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
18646         [GLIBC_2.22]: Likewise.
18647         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
18648         Likewise.
18649         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
18650         Likewise.
18651         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
18652         Likewise.
18653         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
18654         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
18655
18656 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
18657
18658         [BZ #18643]
18659         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
18660         IPV6_PATHMTU, and IPV6_DONTFRAG.
18661
18662 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
18663
18664         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
18665         and _IO_UNBUFFERED.
18666         * libio/oldfileops.c: Likewise.
18667         * libio/wfileops.c: Likewise.
18668
18669 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
18670
18671         * nscd/selinux.c: Delete selinux/flask.h include.
18672
18673 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
18674
18675         [BZ #18641]
18676         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
18677         (putpwent): Likewise.
18678         (getpwnam): Likewise.
18679         (getpwent_r): Likewise.
18680         (getpwuid_r): Likewise.
18681         (getpwnam_r): Likewise.
18682         (fgetpwent_r): Likewise.
18683
18684 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
18685
18686         [BZ #18557]
18687         * inet/rcmd.c (__validuser2_sa): Check user first to
18688         short-circuit host check.
18689
18690 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
18691             Mikhail Ilin  <m.ilin@samsung.com>
18692
18693         [BZ #17833]
18694         * elf/Makefile (tests): Add tst-nodelete.
18695         (modules-names): Add tst-nodelete-uniquemod.
18696         (tst-nodelete-uniquemod.so-no-z-defs): New.
18697         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
18698         (tst-nodelete-zmod.so-no-z-defs): Likewise.
18699         ($(objpfx)tst-nodelete): Likewise.
18700         ($(objpfx)tst-nodelete.out): Likewise.
18701         (LDFLAGS-tst-nodelete): Likewise.
18702         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
18703         * elf/dl-close.c (_dl_close_worker): Add a parameter to
18704         implement forced object deletion.
18705         (_dl_close): Pass false to _dl_close_worker.
18706         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
18707         * elf/tst-nodelete.cc: New file.
18708         * elf/tst-nodeletelib.cc: Likewise.
18709         * elf/tst-znodeletelib.cc: Likewise.
18710         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
18711
18712 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
18713
18714         [BZ #18508]
18715         * stdlib/Makefile ($(objpfx)tst-makecontext3):
18716         Depend on $(libdl).
18717         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
18718         is not called infinitely times.
18719         (backtrace_helper): New function.
18720         (trace_arg): New struct.
18721         (st1): Enlarge stack size.
18722         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
18723         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
18724         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
18725         Likewise.
18726
18727 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
18728
18729         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18730
18731 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
18732
18733         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
18734         Include sys/types.h instead of bits/types.h.
18735         Remove inclusion of bits/wordsize.h.
18736
18737 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
18738
18739         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
18740         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
18741         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
18742         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
18743         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
18744         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
18745
18746 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
18747
18748         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
18749         link-defines.sym.
18750         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
18751         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
18752         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
18753         and LR_SIZE.
18754         * sysdeps/i386/link-defines.sym: New file.
18755
18756 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
18757
18758         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
18759         (modules-names): Add tst-auditmod3a tst-auditmod3b.
18760         ($(objpfx)tst-audit3): New rule.
18761         ($(objpfx)tst-audit3.out): Likewise.
18762         * sysdeps/i386/tst-audit3.c: New file.
18763         * sysdeps/i386/tst-audit3.h: Likewise.
18764         * sysdeps/i386/tst-auditmod3a.c: Likewise.
18765         * sysdeps/i386/tst-auditmod3b.c: Likewise.
18766
18767 2015-07-07  Torvald Riegel  <triegel@redhat.com>
18768
18769         [BZ #18633]
18770         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
18771         pointer in C code.
18772         (__strcat_c): Likewise.
18773         (__strcat_g): Likewise.
18774
18775 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
18776
18777         [BZ #18592]
18778         * misc/sbrk.c: Set errno to ENOMEM on overflow.
18779
18780 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
18781
18782         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
18783         New function.  (__ieee754_sqrtf): New function.
18784         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
18785         New function.
18786         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
18787         New function.
18788
18789 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
18790
18791         * sysdeps/ieee754/support.c: Remove unused file.
18792
18793 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18794
18795         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
18796         registers instead of d ones so the layout is kernel abi compatible.
18797         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
18798         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
18799         Likewise.
18800
18801 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18802
18803         * sysdeps/aarch64/libm-test-ulps: Regenerated.
18804
18805 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
18806
18807         [BZ #18619]
18808         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
18809         and return argument in case of subnormal argument.
18810
18811 2015-07-01  Martin Sebor  <msebor@redhat.com>
18812
18813         [BZ #18435]
18814         * nptl/Makefile: Add tst-once5.cc.
18815         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
18816         Remove macro redefinitions.
18817         * nptl/tst-once5.cc: New test.
18818
18819 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
18820
18821         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
18822
18823         * sysdeps/arm/libm-test-ulps: Regenerated.
18824
18825         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
18826         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18827
18828 2015-06-30  Torvald Riegel  <triegel@redhat.com>
18829
18830         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
18831         lll_lock_wait_private and lll_futex_wake probes.
18832
18833         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
18834         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
18835         Likewise.
18836         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
18837         atomic_spin_nop.
18838         * sysdeps/x86_64/bits/atomic.h: Likewise.
18839         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
18840         to atomic_spin_nop and move ...
18841         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
18842         ... here and ...
18843         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
18844         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
18845         atomic_spin_nop instead of BUSY_WAIT_NOP.
18846         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
18847         Likewise.
18848         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
18849         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
18850         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
18851         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
18852         instead of atomic_delay.
18853
18854 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
18855
18856         [BZ #18613]
18857         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
18858         X_ADJ not X when adjusting exponent.
18859         (__ieee754_gamma_r): Do intermediate computations in
18860         round-to-nearest then adjust overflowing and underflowing results
18861         as needed.
18862         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
18863         of X_ADJ not X when adjusting exponent.
18864         (__ieee754_gammaf_r): Do intermediate computations in
18865         round-to-nearest then adjust overflowing and underflowing results
18866         as needed.
18867         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
18868         log of X_ADJ not X when adjusting exponent.
18869         (__ieee754_gammal_r): Do intermediate computations in
18870         round-to-nearest then adjust overflowing and underflowing results
18871         as needed.  Use 1.0L not 1.0f as numerator of division.
18872         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
18873         log of X_ADJ not X when adjusting exponent.
18874         (__ieee754_gammal_r): Do intermediate computations in
18875         round-to-nearest then adjust overflowing and underflowing results
18876         as needed.  Use 1.0L not 1.0f as numerator of division.
18877         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
18878         of X_ADJ not X when adjusting exponent.
18879         (__ieee754_gammal_r): Do intermediate computations in
18880         round-to-nearest then adjust overflowing and underflowing results
18881         as needed.  Use 1.0L not 1.0f as numerator of division.
18882         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
18883         to auto-libm-test-in.
18884         (tgamma_test): Use ALL_RM_TEST.
18885         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
18886         tests of tgamma with spurious-overflow.
18887         * math/auto-libm-test-out: Regenerated.
18888         * math/gen-libm-have-vector-test.sh: Do not check for START.
18889         * sysdeps/i386/fpu/libm-test-ulps: Update.
18890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18891
18892         [BZ #18612]
18893         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
18894         arguments, just return 0.5 times the argument, with underflow
18895         forced as needed.
18896         * math/auto-libm-test-in: Add more tests of j1.
18897         * math/auto-libm-test-out: Regenerated.
18898
18899         [BZ #16559]
18900         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
18901         (__ieee754_j1): Force underflow exception for small results.
18902         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
18903         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
18904         (__ieee754_j1f): Force underflow exception for small results.
18905         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
18906         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
18907         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
18908         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
18909         (__ieee754_j1l): Force underflow exception for small results.
18910         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
18911         * math/auto-libm-test-in: Add more tests of j1 and jn.
18912         * math/auto-libm-test-out: Regenerated.
18913
18914         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
18915         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
18916         (PF_MPLS): Likewise.
18917         (AF_IB): Likewise.
18918         (AF_MPLS): Likewise.
18919         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
18920         value and macro.
18921         (MS_RMT_MASK): Include MS_LAZYTIME.
18922
18923 2015-06-26  Mel Gorman  <mgorman@suse.de>
18924
18925         [BZ #18502]
18926         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
18927         already minimal.
18928
18929 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
18930
18931         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
18932         (DT_MIPS_NUM): Update.
18933         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
18934         DT_MIPS_RLD_MAP_REL.
18935
18936 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
18937
18938         [BZ #16559]
18939         [BZ #18602]
18940         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
18941         round-to-nearest internally then recompute results that
18942         underflowed to zero in the original rounding mode.
18943         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
18944         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
18945         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
18946         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
18947         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
18948         * sysdeps/i386/fpu/libm-test-ulps: Update.
18949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18950
18951 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
18952
18953         * NEWS: Fixed description of link with vector math library.
18954
18955 2015-06-25  Andreas Schwab  <schwab@suse.de>
18956
18957         [BZ #18549]
18958         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
18959         * libio/test-fmemopen.c (do_test): Add test for it.
18960
18961 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18962
18963         [BZ #17841]
18964         * Makeconfig (no-pie-ldflag): New.
18965         (+link): Set to $(+link-pie) if default to PIE.
18966         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
18967         * config.make.in (build-pie-default): New.
18968         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
18969         is default.  AC_SUBST.
18970         * configure: Regenerated.
18971         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
18972
18973 2015-06-24  Roland McGrath  <roland@hack.frob.com>
18974
18975         * nptl/descr.h (struct pthread): Change type of field setxid_futex
18976         to 'unsigned int'.
18977
18978         * resolv/gai_misc.h (struct waitlist): Change type of field
18979         counterp to 'volatile unsigned int *'.
18980         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
18981         FUTEXADDR and OLDVAL.
18982         * resolv/getaddrinfo_a.c (getaddrinfo_a):
18983         Give local variable TOTAL type 'volatile unsigned int'.
18984         (struct async_waitlist): Change type of field counter to 'unsigned int'.
18985         * resolv/gai_suspend.c (gai_suspend):
18986         Give local variable CNTR type 'unsigned int'.
18987
18988         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
18989         counterp to 'volatile unsigned int *'.
18990         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
18991         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
18992         (aio_suspend): Give local variable CNTR type 'unsigned int'.
18993         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
18994         Give local variable TOTAL type 'volatile unsigned int'.
18995         (struct async_waitlist): Change type of field counter to 'unsigned int'.
18996
18997 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18998
18999         [BZ #18383]
19000         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
19001         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
19002         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
19003         comment for i386/x86-64.
19004         (test-xfail-tst-tlsalign-extern-static): Removed.
19005
19006 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
19007
19008         * math/test-double.h: New file.
19009         * math/test-float.h: Likewise.
19010         * math/test-ldouble.h: Likewise.
19011         * math/test-math-inline.h: Likewise.
19012         * math/test-math-no-inline.h: Likewise.
19013         * math/test-math-scalar.h: Likewise.
19014         * math/test-math-vector.h: Likewise.
19015         * math/test-vec-loop.h: Remove file.  Contents moved into
19016         test-math-vector.h.
19017         * math/libm-test.inc (MATHCONST): Do not document macro.
19018         * math/test-double.c: Include test-double.h, test-math-no-inline.h
19019         and test-math-scalar.h.
19020         (FUNC): Remove macro.
19021         (FUNC_TEST): Likewise.
19022         (FLOAT): Likewise.
19023         (MATHCONST): Likewise.
19024         (PRINTF_EXPR): Likewise.
19025         (PRINTF_XEXPR): Likewise.
19026         (PRINTF_NEXPR): Likewise.
19027         (TEST_DOUBLE): Likewise.
19028         (TEST_MATHVEC): Likewise.
19029         (__NO_MATH_INLINES): Likewise.
19030         * math/test-float.c: Include test-float.h, test-math-no-inline.h
19031         and test-math-scalar.h.
19032         (FUNC): Remove macro.
19033         (FUNC_TEST): Likewise.
19034         (FLOAT): Likewise.
19035         (MATHCONST): Likewise.
19036         (PRINTF_EXPR): Likewise.
19037         (PRINTF_XEXPR): Likewise.
19038         (PRINTF_NEXPR): Likewise.
19039         (TEST_FLOAT): Likewise.
19040         (TEST_MATHVEC): Likewise.
19041         (__NO_MATH_INLINES): Likewise.
19042         * math/test-idouble.c: Include test-double.h, test-math-inline.h
19043         and test-math-scalar.h.
19044         (FUNC): Remove macro.
19045         (FUNC_TEST): Likewise.
19046         (FLOAT): Likewise.
19047         (MATHCONST): Likewise.
19048         (PRINTF_EXPR): Likewise.
19049         (PRINTF_XEXPR): Likewise.
19050         (PRINTF_NEXPR): Likewise.
19051         (TEST_DOUBLE): Likewise.
19052         (TEST_MATHVEC): Likewise.
19053         (TEST_INLINE): Likewise.
19054         (__NO_MATH_INLINES): Likewise.
19055         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
19056         test-math-scalar.h.
19057         (FUNC): Remove macro.
19058         (FUNC_TEST): Likewise.
19059         (FLOAT): Likewise.
19060         (MATHCONST): Likewise.
19061         (PRINTF_EXPR): Likewise.
19062         (PRINTF_XEXPR): Likewise.
19063         (PRINTF_NEXPR): Likewise.
19064         (TEST_FLOAT): Likewise.
19065         (TEST_MATHVEC): Likewise.
19066         (TEST_INLINE): Likewise.
19067         (__NO_MATH_INLINES): Likewise.
19068         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
19069         and test-math-scalar.h.
19070         (FUNC): Remove macro.
19071         (FUNC_TEST): Likewise.
19072         (FLOAT): Likewise.
19073         (MATHCONST): Likewise.
19074         (PRINTF_EXPR): Likewise.
19075         (PRINTF_XEXPR): Likewise.
19076         (PRINTF_NEXPR): Likewise.
19077         (TEST_LDOUBLE): Likewise.
19078         (TEST_MATHVEC): Likewise.
19079         (TEST_INLINE): Likewise.
19080         (__NO_MATH_INLINES): Likewise.
19081         * math/test-ldouble.c: Include test-ldouble.h,
19082         test-math-no-inline.h and test-math-scalar.h.
19083         (FUNC): Remove macro.
19084         (FUNC_TEST): Likewise.
19085         (FLOAT): Likewise.
19086         (MATHCONST): Likewise.
19087         (PRINTF_EXPR): Likewise.
19088         (PRINTF_XEXPR): Likewise.
19089         (PRINTF_NEXPR): Likewise.
19090         (TEST_LDOUBLE): Likewise.
19091         (TEST_MATHVEC): Likewise.
19092         (__NO_MATH_INLINES): Likewise.
19093         * math/test-double-vlen2.h: Include test-double.h,
19094         test-math-no-inline.h and test-math-vector.h.
19095         (FLOAT): Remove macro.
19096         (FUNC): Likewise.
19097         (MATHCONST): Likewise.
19098         (PRINTF_EXPR): Likewise.
19099         (PRINTF_XEXPR): Likewise.
19100         (PRINTF_NEXPR): Likewise.
19101         (TEST_DOUBLE): Likewise.
19102         (TEST_MATHVEC): Likewise.
19103         (__NO_MATH_INLINES): Likewise.
19104         (CNCT): Likewise.
19105         (CONCAT): Likewise.
19106         (WRAPPER_NAME): Likewise.
19107         (WRAPPER_DECL): Likewise.
19108         (WRAPPER_DECL_ff): Likewise.
19109         (WRAPPER_DECL_fFF): Likewise.
19110         (VECTOR_WRAPPER): Likewise.
19111         (VECTOR_WRAPPER_ff): Likewise.
19112         (VECTOR_WRAPPER_fFF): Likewise.
19113         (VEC_LEN): New macro.
19114         * math/test-double-vlen4.h: Include test-double.h,
19115         test-math-no-inline.h and test-math-vector.h.
19116         (FLOAT): Remove macro.
19117         (FUNC): Likewise.
19118         (MATHCONST): Likewise.
19119         (PRINTF_EXPR): Likewise.
19120         (PRINTF_XEXPR): Likewise.
19121         (PRINTF_NEXPR): Likewise.
19122         (TEST_DOUBLE): Likewise.
19123         (TEST_MATHVEC): Likewise.
19124         (__NO_MATH_INLINES): Likewise.
19125         (CNCT): Likewise.
19126         (CONCAT): Likewise.
19127         (WRAPPER_NAME): Likewise.
19128         (WRAPPER_DECL): Likewise.
19129         (WRAPPER_DECL_ff): Likewise.
19130         (WRAPPER_DECL_fFF): Likewise.
19131         (VECTOR_WRAPPER): Likewise.
19132         (VECTOR_WRAPPER_ff): Likewise.
19133         (VECTOR_WRAPPER_fFF): Likewise.
19134         (VEC_LEN): New macro.
19135         * math/test-double-vlen8.h: Include test-double.h,
19136         test-math-no-inline.h and test-math-vector.h.
19137         (FLOAT): Remove macro.
19138         (FUNC): Likewise.
19139         (MATHCONST): Likewise.
19140         (PRINTF_EXPR): Likewise.
19141         (PRINTF_XEXPR): Likewise.
19142         (PRINTF_NEXPR): Likewise.
19143         (TEST_DOUBLE): Likewise.
19144         (TEST_MATHVEC): Likewise.
19145         (__NO_MATH_INLINES): Likewise.
19146         (CNCT): Likewise.
19147         (CONCAT): Likewise.
19148         (WRAPPER_NAME): Likewise.
19149         (WRAPPER_DECL): Likewise.
19150         (WRAPPER_DECL_ff): Likewise.
19151         (WRAPPER_DECL_fFF): Likewise.
19152         (VECTOR_WRAPPER): Likewise.
19153         (VECTOR_WRAPPER_ff): Likewise.
19154         (VECTOR_WRAPPER_fFF): Likewise.
19155         (VEC_LEN): New macro.
19156         * math/test-float-vlen4.h: Include test-float.h,
19157         test-math-no-inline.h and test-math-vector.h.
19158         (FLOAT): Remove macro.
19159         (FUNC): Likewise.
19160         (MATHCONST): Likewise.
19161         (PRINTF_EXPR): Likewise.
19162         (PRINTF_XEXPR): Likewise.
19163         (PRINTF_NEXPR): Likewise.
19164         (TEST_FLOAT): Likewise.
19165         (TEST_MATHVEC): Likewise.
19166         (__NO_MATH_INLINES): Likewise.
19167         (CNCT): Likewise.
19168         (CONCAT): Likewise.
19169         (WRAPPER_NAME): Likewise.
19170         (WRAPPER_DECL): Likewise.
19171         (WRAPPER_DECL_ff): Likewise.
19172         (WRAPPER_DECL_fFF): Likewise.
19173         (VECTOR_WRAPPER): Likewise.
19174         (VECTOR_WRAPPER_ff): Likewise.
19175         (VECTOR_WRAPPER_fFF): Likewise.
19176         (VEC_LEN): New macro.
19177         * math/test-float-vlen8.h: Include test-float.h,
19178         test-math-no-inline.h and test-math-vector.h.
19179         (FLOAT): Remove macro.
19180         (FUNC): Likewise.
19181         (MATHCONST): Likewise.
19182         (PRINTF_EXPR): Likewise.
19183         (PRINTF_XEXPR): Likewise.
19184         (PRINTF_NEXPR): Likewise.
19185         (TEST_FLOAT): Likewise.
19186         (TEST_MATHVEC): Likewise.
19187         (__NO_MATH_INLINES): Likewise.
19188         (CNCT): Likewise.
19189         (CONCAT): Likewise.
19190         (WRAPPER_NAME): Likewise.
19191         (WRAPPER_DECL): Likewise.
19192         (WRAPPER_DECL_ff): Likewise.
19193         (WRAPPER_DECL_fFF): Likewise.
19194         (VECTOR_WRAPPER): Likewise.
19195         (VECTOR_WRAPPER_ff): Likewise.
19196         (VECTOR_WRAPPER_fFF): Likewise.
19197         (VEC_LEN): New macro.
19198         * math/test-float-vlen16.h: Include test-float.h,
19199         test-math-no-inline.h and test-math-vector.h.
19200         (FLOAT): Remove macro.
19201         (FUNC): Likewise.
19202         (MATHCONST): Likewise.
19203         (PRINTF_EXPR): Likewise.
19204         (PRINTF_XEXPR): Likewise.
19205         (PRINTF_NEXPR): Likewise.
19206         (TEST_FLOAT): Likewise.
19207         (TEST_MATHVEC): Likewise.
19208         (__NO_MATH_INLINES): Likewise.
19209         (CNCT): Likewise.
19210         (CONCAT): Likewise.
19211         (WRAPPER_NAME): Likewise.
19212         (WRAPPER_DECL): Likewise.
19213         (WRAPPER_DECL_ff): Likewise.
19214         (WRAPPER_DECL_fFF): Likewise.
19215         (VECTOR_WRAPPER): Likewise.
19216         (VECTOR_WRAPPER_ff): Likewise.
19217         (VECTOR_WRAPPER_fFF): Likewise.
19218         (VEC_LEN): New macro.
19219         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
19220         test-vec-loop.h.
19221         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
19222         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
19223         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
19224         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
19225         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
19226         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
19227         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
19228
19229 2015-06-24  Roland McGrath  <roland@hack.frob.com>
19230
19231         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
19232         (__getlogin_r): ... this.
19233
19234 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
19235
19236         [BZ #18594]
19237         * math/s_ccosh.c (__ccosh): Compare with least normal value
19238         instead of comparing class with FP_SUBNORMAL.
19239         * math/s_ccoshf.c (__ccoshf): Likewise.
19240         * math/s_ccoshl.c (__ccoshl): Likewise.
19241         * math/s_cexp.c (__cexp): Likewise.
19242         * math/s_cexpf.c (__cexpf): Likewise.
19243         * math/s_cexpl.c (__cexpl): Likewise.
19244         * math/s_csin.c (__csin): Likewise.
19245         * math/s_csinf.c (__csinf): Likewise.
19246         * math/s_csinh.c (__csinh): Likewise.
19247         * math/s_csinhf.c (__csinhf): Likewise.
19248         * math/s_csinhl.c (__csinhl): Likewise.
19249         * math/s_csinl.c (__csinl): Likewise.
19250         * math/s_ctan.c (__ctan): Likewise.
19251         * math/s_ctanf.c (__ctanf): Likewise.
19252         * math/s_ctanh.c (__ctanh): Likewise.
19253         * math/s_ctanhf.c (__ctanhf): Likewise.
19254         * math/s_ctanhl.c (__ctanhl): Likewise.
19255         * math/s_ctanl.c (__ctanl): Likewise.
19256         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
19257         csin, csinh, ctan and ctanh.
19258         * math/auto-libm-test-out: Regenerated.
19259         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
19260         * sysdeps/i386/fpu/libm-test-ulps: Update.
19261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19262
19263 2015-06-24  Roland McGrath  <roland@hack.frob.com>
19264
19265         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
19266         return value is wrong, print the expected value too.
19267
19268 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19269
19270         [BZ #18585]
19271         * elf/readlib.c (is_gdb_python_file): New.
19272         (process_file): Don't issue errors on filenames with -gdb.py
19273         suffix.
19274
19275 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
19276
19277         * math/auto-libm-test-in: Add more tests of csin and csinh.
19278         * math/auto-libm-test-out: Regenerated.
19279         * math/libm-test.inc (csin_test_data): Remove tests moved to
19280         auto-libm-test-in.
19281         (csinh_test_data): Likewise.
19282
19283         [BZ #18593]
19284         * math/s_csin.c (__csin): Negate before rather than after possibly
19285         overflowing multiplication.
19286         * math/s_csinf.c (__csinf): Likewise.
19287         * math/s_csinh.c (__csinh): Likewise.
19288         * math/s_csinhf.c (__csinhf): Likewise.
19289         * math/s_csinhl.c (__csinhl): Likewise.
19290         * math/s_csinl.c (__csinl): Likewise.
19291         * math/auto-libm-test-in: Add some tests of csin and csinh.
19292         * math/auto-libm-test-out: Regenerated.
19293         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
19294         (csinh_test_data): Likewise.
19295         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19296
19297         [BZ #18586]
19298         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
19299         underflow exception for small results.
19300
19301 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
19302
19303         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
19304         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
19305         variable and included header.
19306         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
19307         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
19308         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
19309         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
19310         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
19311         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
19312         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
19313         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
19314         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
19315         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
19316         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
19317         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
19318         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
19319         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
19320         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
19321         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
19322
19323 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
19324
19325         [BZ #16526]
19326         [BZ #16538]
19327         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
19328         (__sin): Force underflow exception for arguments with small
19329         absolute value.
19330         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
19331         (__kernel_sinf): Force underflow exception for arguments with
19332         small absolute value.
19333         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
19334         (__kernel_sincosl): Force underflow exception for arguments with
19335         small absolute value.
19336         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
19337         (__kernel_sinl): Force underflow exception for arguments with
19338         small absolute value.
19339         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
19340         (__kernel_sincosl): Force underflow exception for arguments with
19341         small absolute value.
19342         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
19343         (__kernel_sinl): Force underflow exception for arguments with
19344         small absolute value.
19345         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
19346         (__kernel_sinl): Force underflow exception for arguments with
19347         small absolute value.
19348         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
19349         (__kernel_sinf): Force underflow exception for arguments with
19350         small absolute value.
19351         * math/auto-libm-test-in: Add more tests of sin and sincos.
19352         * math/auto-libm-test-out: Regenerated.
19353
19354         [BZ #18245]
19355         [BZ #18583]
19356         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
19357         (__kernel_standard_l): Use feholdexcept and fesetenv around
19358         conversion to double instead of special-casing overflow and
19359         underflow.
19360         * math/libm-test.inc (fmod_test_data): Add more tests.
19361         (remainder_test_data): Likewise.
19362         (sqrt_test_data): Likewise.
19363
19364 2015-06-23  Torvald Riegel  <triegel@redhat.com>
19365
19366         [BZ #17403]
19367         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
19368         atomic_read_barrier, atomic_write_barrier): Define.
19369         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
19370         atomic_read_barrier, atomic_write_barrier): Define.
19371
19372 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
19373
19374         * math/Makefile [$(PERL) != no]
19375         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
19376         dependency on libm-test.stmp below the inclusion of Rules.
19377
19378 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
19379
19380         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
19381         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
19382         and included header.
19383         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
19384         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
19385         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
19386         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
19387         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
19388         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
19389         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
19390         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
19391         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
19392         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
19393         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
19394         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
19395         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
19396         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
19397         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
19398         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
19399         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
19400         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
19401         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
19402
19403 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
19404
19405         [BZ #18371]
19406         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
19407         intermediate but not final result might underflow.
19408         * math/s_csqrtf.c (__csqrtf): Likewise.
19409         * math/s_csqrtl.c (__csqrtl): Likewise.
19410         * math/auto-libm-test-in: Add more tests of csqrt.
19411         * math/auto-libm-test-out: Regenerated.
19412         * sysdeps/i386/fpu/libm-test-ulps: Update.
19413
19414         [BZ #18219]
19415         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
19416         threshold on absolute value of exponent for which scaling is used.
19417         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
19418         * math/auto-libm-test-in: Add more tests of exp2.
19419         * math/auto-libm-test-out: Regenerated.
19420
19421 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
19422
19423         [BZ #17977]
19424         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
19425         when initializing interface list, based on the bug analysis
19426         and the patch proposed by Eric Newton.
19427         * resolv/tst-res_hconf_reorder.c: New test.
19428         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
19429         tst-res_hconf_reorder.
19430         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
19431         and $(shared-thread-library).
19432         (tst-res_hconf_reorder-ENV): New variable.
19433
19434         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
19435         in comment.
19436
19437 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
19438
19439         [BZ #16353]
19440         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
19441         (__expm1): Force underflow exception for arguments with small
19442         absolute value.
19443         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
19444         (__expm1f): Force underflow exception for arguments with small
19445         absolute value.
19446         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
19447         (__expm1): Force underflow exception for arguments with small
19448         absolute value.
19449         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
19450         (__expm1f): Force underflow exception for arguments with small
19451         absolute value.
19452         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
19453         Check for small arguments before calling __expm1.
19454         * math/auto-libm-test-in: Do not mark underflow exceptions as
19455         possibly missing for bug 16353.
19456         * math/auto-libm-test-out: Regenerated.
19457
19458 2015-06-22  Andreas Schwab  <schwab@suse.de>
19459
19460         [BZ #18513]
19461         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
19462         PTR queries.
19463
19464 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
19465
19466         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
19467
19468         * string/strcoll_l.c: Remove unused struct element idxnow.
19469
19470 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
19471
19472         [BZ #18569]
19473         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
19474         underflow and return argument in case of subnormal argument.
19475         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
19476         Likewise.
19477         * math/auto-libm-test-in: Add more tests of expm1.
19478         * math/auto-libm-test-out: Regenerated.
19479
19480         [BZ #16361]
19481         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
19482         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
19483         tiny results.
19484         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
19485         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
19486         tiny results.
19487         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
19488         mark underflow exceptions as possibly missing for bug 16361.
19489         * math/auto-libm-test-out: Regenerated.
19490
19491 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
19492
19493         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
19494         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
19495         Remove variable.
19496         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
19497         (test-xfail-XOPEN2K8/utmpx.h/conform).
19498
19499         * conform/conformtest.pl ($xerrors): New variable.
19500         (note_error): New function.
19501         (compiletest): New argument $xfail.  Use not_error.
19502         (runtest): Likewise.
19503         (top level): Handle xfail- lines.  Update calls to compiletest and
19504         runtest.  Handle xfail- and optional- in headers listed with
19505         allow-header.
19506         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
19507         (O_EXEC): Likewise.
19508         (O_SEARCH): Likewise.
19509         * conform/data/stropts.h-data (ioctl): Likewise.
19510         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
19511         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
19512         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
19513         (msghdr.msg_controllen): Likewise.
19514         (cmsghdr.cmsg_len): Likewise.
19515         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
19516         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
19517         variable.
19518         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
19519         (test-xfail-XPG4/stropts.h/conform): Likewise.
19520         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
19521         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
19522         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
19523         (test-xfail-UNIX98/stropts.h/conform): Likewise.
19524         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
19525         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
19526         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
19527         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
19528         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
19529         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
19530         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
19531         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
19532         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
19533         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
19534         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
19535         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
19536         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
19537         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
19538         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
19539
19540 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19541
19542         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
19543         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
19544         definitions for proper unfolding of __MATHDECL_VEC.
19545
19546 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19547
19548         * benchtests/bench-strcoll.c:
19549         Include string.h.
19550         (main): Remove unused variable res.
19551
19552 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19553
19554         * timezone/Makefile (%/UTC %/Universal):
19555         Generate test-result files for UTC and Universal.
19556
19557 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19558
19559         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19560
19561 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
19562
19563         [BZ #16350]
19564         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
19565         for arguments with small absolute value.
19566         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
19567         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
19568         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
19569         (__asinh): Force underflow exception for arguments with small
19570         absolute value.
19571         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
19572         (__asinhf): Force underflow exception for arguments with small
19573         absolute value.
19574         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
19575         (__asinhl): Force underflow exception for arguments with small
19576         absolute value.
19577         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
19578         (__asinhl): Force underflow exception for arguments with small
19579         absolute value.
19580         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
19581         (__asinhl): Force underflow exception for arguments with small
19582         absolute value.
19583         * math/auto-libm-test-in: Do not mark underflow exceptions as
19584         possibly missing for bug 16350.
19585         * math/auto-libm-test-out: Regenerated.
19586
19587         * include/bits/ipc.h: Remove file.
19588         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
19589         variable.
19590         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
19591         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
19592         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
19593         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
19594         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
19595         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
19596         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
19597         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
19598         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
19599
19600         * math/auto-libm-test-in: Remove spurious underflow allowance for
19601         tests of cexp.
19602         * math/auto-libm-test-out: Regenerated.
19603
19604         [BZ #18558]
19605         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
19606         unconditional definition.
19607         (MCAST_BLOCK_SOURCE): Likewise.
19608         (MCAST_UNBLOCK_SOURCE): Likewise.
19609         (MCAST_LEAVE_GROUP): Likewise.
19610         (MCAST_JOIN_SOURCE_GROUP): Likewise.
19611         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
19612         (MCAST_MSFILTER): Likewise.
19613         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
19614         Remove variable.
19615         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
19616         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
19617         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
19618         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
19619         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
19620
19621 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
19622
19623         * NEWS: Mention addition of x86_64 vector sincosf.
19624         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
19625         * math/test-float-vlen4.h: Likewise.
19626         * math/test-float-vlen8.h: Likewise.
19627         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19628         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
19629         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19630         * sysdeps/x86_64/fpu/Versions: New versions added.
19631         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19632         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
19633         Added build of SSE, AVX2 and AVX512 IFUNC versions.
19634         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
19635         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
19636         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
19637         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
19638         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
19639         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
19640         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
19641         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
19642         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
19643         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
19644         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
19645         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
19646         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
19647         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
19648         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
19649         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
19650         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
19651         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
19652         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
19653         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
19654         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
19655
19656         * NEWS: Mention addition of x86_64 vector sincos.
19657         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
19658         * math/math.h (__MATHDECL_VEC): New macro.
19659         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
19660         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
19661         declaration under condition.
19662         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
19663         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
19664         TEST_VEC_LOOP change.
19665         * math/test-double-vlen4.h: Likewise.
19666         * math/test-double-vlen8.h: Likewise.
19667         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
19668         * math/test-float-vlen4.h: Likewise.
19669         * math/test-float-vlen8.h: Likewise.
19670         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19671         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
19672         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19673         * sysdeps/x86_64/fpu/Versions: New versions added.
19674         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19675         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
19676         Added build of SSE, AVX2 and AVX512 IFUNC versions.
19677         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
19678         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
19679         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
19680         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
19681         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
19682         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
19683         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
19684         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
19685         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
19686         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
19687         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
19688         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
19689         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
19690         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
19691         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
19692         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
19693         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
19694         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
19695         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
19696         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
19697         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
19698
19699         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19700         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
19701         redirections for powf.
19702         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19703         * sysdeps/x86_64/fpu/Versions: New versions added.
19704         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19705         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
19706         Added build of SSE, AVX2 and AVX512 IFUNC versions.
19707         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
19708         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
19709         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
19710         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
19711         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
19712         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
19713         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
19714         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
19715         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
19716         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
19717         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
19718         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
19719         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
19720         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
19721         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
19722         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
19723         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
19724         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
19725         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
19726         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
19727         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
19728         * math/test-float-vlen16.h: Fixed 2 argument macro.
19729         * math/test-float-vlen4.h: Likewise.
19730         * math/test-float-vlen8.h: Likewise.
19731         * NEWS: Mention addition of x86_64 vector powf.
19732
19733 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
19734
19735         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19736         and redefine.
19737         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19738         and redefine.
19739         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
19740         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
19741         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
19742
19743         [BZ #18553]
19744         * resource/getpriority.c (getpriority): Rename to __getpriority
19745         and define as weak alias of __getpriority.
19746         * resource/setpriority.c (setpriority): Rename to __setpriority
19747         and define as weak alias of __setpriority.
19748         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
19749         __getpriority and define as weak alias of __getpriority.
19750         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
19751         __setpriority and define as weak alias of __setpriority.
19752         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
19753         strong name.
19754         (setpriority): Use __setpriority as strong name.
19755         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
19756         __getpriority and define as weak alias of __getpriority.
19757         * include/sys/resource.h (__getpriority): Declare.  Use
19758         libc_hidden_proto.
19759         (__setpriority): Likewise.
19760         (getpriority): Don't use libc_hidden_proto.
19761         (setpriority): Likewise.
19762         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
19763         getpriority.  Call __setpriority instead of setpriority.
19764         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
19765         Remove variable.
19766
19767         [BZ #18547]
19768         * misc/getttyent.c (getttynam): Rename to __getttynam and define
19769         as weak alias of __getttynam.  Use prototype function definition.
19770         Call __setttyent, __getttyent and __endttyent instead of
19771         setttyent, getttyent and endttyent.
19772         (getttyent): Rename to __getttyent and define as weak alias of
19773         __getttyent.  Call __setttyent instead of setttyent.  Call
19774         __fgets_unlocked instead of fgets_unlocked.
19775         (setttyent): Rename to __setttyent and define as weak alias of
19776         __setttyent.
19777         (endttyent): Rename to __endttyent and define as weak alias of
19778         __endttyent.
19779         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
19780         (__setttyent): Likewise.
19781         (__endttyent): Likewise.
19782         (getttyent): Don't use libc_hidden_proto.
19783         (setttyent): Likewise.
19784         (endttyent): Likewise.
19785         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
19786         __endttyent instead of setttyent, getttyent and endttyent.
19787         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
19788         Remove variable.
19789
19790         [BZ #18546]
19791         * socket/recv.c (__recv): Use libc_hidden_def.
19792         * socket/socket.c (__socket): Likewise.
19793         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
19794         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
19795         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
19796         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
19797         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
19798         libc_hidden_def.
19799         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
19800         libc_hidden_weak.
19801         * include/sys/socket.h (__socket): Do not use attribute_hidden.
19802         Use libc_hidden_proto.
19803         (__recv): Likewise.
19804         * socket/Versions (libc): Export __recv and __socket at version
19805         GLIBC_PRIVATE.
19806         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
19807         instead of recv.
19808         (init_mq_netlink): Call __socket instead of socket.
19809         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
19810         Remove variable.
19811
19812         [BZ #18545]
19813         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
19814         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
19815         hidden_weak.
19816         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
19817         define as alias of __mq_timedsend.  Use hidden_weak.
19818         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
19819         __mq_timedsend as strong name.
19820         (mq_timedreceive): Use __mq_timedreceive as strong name.
19821         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
19822         (__mq_timedreceive): Likewise.
19823         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
19824         __mq_timedreceive instead of mq_timedreceive.
19825         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
19826         instead of mq_timedsend.
19827         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
19828         Remove variable.
19829
19830         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
19831         hidden_def and hidden_weak instead of libc_hidden_def and
19832         libc_hidden_weak.
19833         (top level): Refer to hidden_def in comment.
19834         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
19835         macro.  Use it instead of libc_hidden_def.
19836         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
19837         specify __GI_* name explicitly.
19838         (mq_timedreceive): Likewise.
19839         (mq_setattr): Likewise.
19840
19841         [BZ #18544]
19842         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
19843         __pthread_barrier_init and define as weak alias of
19844         __pthread_barrier_init.
19845         * sysdeps/sparc/nptl/pthread_barrier_init.c
19846         (pthread_barrier_init): Likewise.
19847         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
19848         __pthread_barrier_wait and define as weak alias of
19849         __pthread_barrier_wait.
19850         * sysdeps/sparc/nptl/pthread_barrier_wait.c
19851         (pthread_barrier_wait): Likewise.
19852         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
19853         (pthread_barrier_wait): Likewise.
19854         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
19855         (pthread_barrier_wait): Likewise.
19856         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
19857         (pthread_barrier_wait): Likewise.
19858         * nptl/Versions (libpthread): Export __pthread_barrier_init and
19859         __pthread_barrier_wait at version GLIBC_PRIVATE.
19860         * include/pthread.h (__pthread_barrier_init): Declare.
19861         (__pthread_barrier_wait): Likewise.
19862         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
19863         Call __pthread_barrier_wait instead of pthread_barrier_wait.
19864         (helper_thread): Likewise.
19865         (init_mq_netlink): Call __pthread_barrier_init instead of
19866         pthread_barrier_init.
19867
19868         [BZ #18542]
19869         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
19870         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
19871         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
19872         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
19873         vswscanf.
19874         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
19875         Remove variable.
19876
19877         [BZ #18540]
19878         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
19879         strong alias of _IO_fflush.  Use libc_hidden_def.
19880         * libio/iofflush_u.c (fflush_unlocked): Rename to
19881         __fflush_unlocked and define as weak alias of __fflush_unlocked.
19882         Use libc_hidden_weak.
19883         * include/stdio.h (__fflush_unlocked): Declare.  Use
19884         libc_hidden_proto.
19885         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
19886         fflush_unlocked.
19887         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
19888         Remove variable.
19889
19890         [BZ #18539]
19891         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
19892         define as weak alias of __addseverity.
19893         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
19894         Remove variable.
19895         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
19896         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
19897         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
19898
19899         [BZ #18536]
19900         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
19901         (__tfind): Likewise.
19902         (__tdelete): Likewise.
19903         (__twalk): Likewise.
19904         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
19905         __twalk to GLIBC_PRIVATE.
19906         * include/search.h (__tsearch): Use libc_hidden_proto.
19907         (__tfind): Likewise.
19908         (__tdelete): Likewise.
19909         (__twalk): Likewise.
19910         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
19911         Call __tdelete instead of tdelete.
19912         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
19913         tfind.  Call __tsearch instead of tsearch.
19914         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
19915         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
19916         Remove variable.
19917         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
19918
19919         [BZ #18534]
19920         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
19921         (dprintf): Define as a weak alias of __dprintf, not a strong
19922         alias.
19923         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
19924         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
19925         dprintf.
19926         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
19927         Remove variable.
19928         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
19929         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
19930
19931         [BZ #18533]
19932         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
19933         not a strong alias.
19934         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
19935         Remove variable.
19936
19937         [BZ #18532]
19938         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
19939         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
19940         (in6addr_loopback): Rename to __in6addr_loopback and define as
19941         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
19942         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
19943         libc_hidden_proto.
19944         (__in6addr_any): Likewise.
19945         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
19946         in6addr_any.
19947         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
19948         variable.
19949         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
19950
19951 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
19952
19953         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
19954         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
19955         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
19956         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
19957         redirections for pow.
19958         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19959         * sysdeps/x86_64/fpu/Versions: New versions added.
19960         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19961         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
19962         build of SSE, AVX2 and AVX512 IFUNC versions.
19963         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
19964         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
19965         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
19966         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
19967         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
19968         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
19969         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
19970         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
19971         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
19972         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
19973         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
19974         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
19975         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
19976         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
19977         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
19978         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
19979         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
19980         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
19981         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
19982         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
19983         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
19984         * NEWS: Mention addition of x86_64 vector pow.
19985
19986         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19987         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
19988         redirections for expf.
19989         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19990         * sysdeps/x86_64/fpu/Versions: New versions added.
19991         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19992         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
19993         build of SSE, AVX2 and AVX512 IFUNC versions.
19994         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
19995         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
19996         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
19997         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
19998         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
19999         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
20000         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
20001         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
20002         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
20003         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
20004         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
20005         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
20006         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
20007         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
20008         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
20009         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
20010         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
20011         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
20012         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
20013         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
20014         * NEWS: Mention addition of x86_64 vector expf.
20015
20016         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
20017         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
20018         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
20019         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
20020         redirections for exp.
20021         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
20022         * sysdeps/x86_64/fpu/Versions: New versions added.
20023         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20024         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
20025         build of SSE, AVX2 and AVX512 IFUNC versions.
20026         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
20027         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
20028         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
20029         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
20030         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
20031         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
20032         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
20033         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
20034         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
20035         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
20036         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
20037         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
20038         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
20039         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
20040         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
20041         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
20042         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
20043         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20044         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
20045         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
20046         * NEWS: Mention addition of x86_64 vector exp.
20047
20048         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
20049         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
20050         redirections for logf.
20051         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
20052         * sysdeps/x86_64/fpu/Versions: New versions added.
20053         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20054         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
20055         build of SSE, AVX2 and AVX512 IFUNC versions.
20056         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
20057         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
20058         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
20059         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
20060         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
20061         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
20062         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
20063         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
20064         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
20065         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
20066         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
20067         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
20068         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
20069         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
20070         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
20071         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
20072         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
20073         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
20074         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
20075         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
20076         * NEWS: Mention addition of x86_64 vector logf.
20077
20078         * bits/libm-simd-decl-stubs.h: Added stubs for log.
20079         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
20080         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
20081         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
20082         redirections for log.
20083         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
20084         * sysdeps/x86_64/fpu/Versions: New versions added.
20085         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20086         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
20087         build of SSE, AVX2 and AVX512 IFUNC versions.
20088         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
20089         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
20090         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
20091         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
20092         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
20093         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
20094         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
20095         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
20096         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
20097         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
20098         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
20099         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
20100         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
20101         test.
20102         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
20103         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
20104         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
20105         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
20106         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20107         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
20108         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
20109         * NEWS: Mention addition of x86_64 vector log.
20110
20111 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20112
20113         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
20114         cfi_adjust_cfa_offset argument.
20115         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
20116         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
20117
20118         [BZ #18034]
20119         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
20120         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
20121         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
20122         ordering using ldar.
20123         (_dl_tlsdesc_dynamic): Likewise.
20124         (_dl_tlsdesc_return_lazy): Likewise.
20125         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
20126         relaxed atomics instead of volatile and synchronize with release store.
20127         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
20128         volatile.
20129         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
20130
20131 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
20132
20133         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
20134         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
20135         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
20136         * sysdeps/x86_64/fpu/Versions: New versions added.
20137         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20138         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
20139         build of SSE, AVX2 and AVX512 IFUNC versions.
20140         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
20141         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
20142         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
20143         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
20144         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
20145         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
20146         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
20147         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
20148         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
20149         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
20150         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
20151         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
20152         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
20153         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
20154         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
20155         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
20156         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
20157         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
20158         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
20159         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
20160         * NEWS: Mention addition of x86_64 vector sinf.
20161
20162 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
20163
20164         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
20165         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
20166         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
20167         Remove variable.
20168         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
20169         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
20170
20171 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
20172
20173         [BZ #18530]
20174         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
20175         strong alias of _IO_fputs.  Use libc_hidden_def.
20176         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
20177         and define as weak alias of __fputs_unlocked.  Use
20178         libc_hidden_weak.
20179         * include/stdio.h (__fputs_unlocked): Declare.  Use
20180         libc_hidden_proto.
20181         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
20182         fputs_unlocked.
20183
20184         [BZ #18529]
20185         * resolv/netdb.h [__USE_POSIX]: Change condition to
20186         [__USE_XOPEN2K].
20187         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
20188         not expect.
20189         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
20190         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
20191         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
20192         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
20193         [XPG4 || UNIX98] (AI_ALL): Likewise.
20194         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
20195         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
20196         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
20197         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
20198         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
20199         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
20200         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
20201         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
20202         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
20203         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
20204         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
20205         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
20206         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
20207         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
20208         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
20209         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
20210         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
20211         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
20212         [XPG4 || UNIX98] (gai_strerror): Likewise.
20213         [XPG4 || UNIX98] (getaddrinfo): Likewise.
20214         [XPG4 || UNIX98] (getnameinfo): Likewise.
20215
20216         [BZ #18528]
20217         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
20218         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
20219         __USE_XOPEN2K8].
20220         (getgrent): Likewise.
20221         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
20222         expect.
20223         [XPG3 || POSIX2008] (endgrent): Likewise.
20224         [XPG3] (setgrent): Likewise.
20225         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
20226         variable.
20227         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
20228
20229         [BZ #18527]
20230         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
20231         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
20232         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
20233         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
20234         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
20235         * include/unistd.h (__getlogin_r): Declare.  Use
20236         libc_hidden_proto.
20237         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
20238         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
20239         variable.
20240         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
20241         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
20242         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
20243
20244 2015-06-12  Martin Sebor  <msebor@redhat.com>
20245
20246         [BZ #18512]
20247         * Makerules (check-install-supported): New target.
20248         (install): Add check-install-supported as a dependency.
20249         * manual/install.texi (Installing the C Library): Document
20250         that overriding prefix and exec_prefix is not supported.
20251         Mention DESTDIR.
20252         * INSTALL: Regenerate from the above.
20253
20254 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
20255
20256         [BZ #18519]
20257         * posix/Versions (libc): Export __libc_pread at version
20258         GLIBC_PRIVATE.
20259         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
20260         instead of pread.
20261         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
20262         variable.
20263
20264         [BZ #18522]
20265         * misc/efgcvt_r.c
20266         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
20267         (cvt_symbol): Use weak_alias instead of strong_alias.
20268         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
20269         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
20270         Remove variable.
20271         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
20272         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
20273
20274         [BZ #18520]
20275         * inet/herrno.c (h_errno): Rename to __h_errno.
20276         (__libc_h_errno): Define as alias of __h_errno not h_errno.
20277         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
20278         to __h_errno instead of h_errno.
20279         * nptl/herrno.c (h_errno): Rename to __h_errno.
20280         (__h_errno_location): Refer to __h_errno not h_errno.
20281         * resolv/Versions (h_errno): Rename to __h_errno.
20282         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
20283         Remove variable.
20284         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
20285
20286 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
20287
20288         * configure.ac: More strict check for AVX512 assembler support.
20289         * configure: Regenerated.
20290
20291         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
20292         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
20293         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
20294         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
20295         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
20296         * sysdeps/x86_64/fpu/Versions: New versions added.
20297         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20298         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
20299         Added build of SSE, AVX2 and AVX512 IFUNC versions.
20300         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
20301         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
20302         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
20303         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
20304         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
20305         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
20306         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
20307         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
20308         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
20309         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
20310         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
20311         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
20312         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
20313         test.
20314         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
20315         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
20316         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
20317         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
20318         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20319         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
20320         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
20321         * NEWS: Mention addition of x86_64 vector sin.
20322
20323 2015-06-11  Florian Weimer  <fweimer@redhat.com>
20324
20325         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
20326         comment.
20327
20328 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
20329
20330         [BZ #18479]
20331         * nptl/pt-interp.c: New file.
20332         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
20333         Add pt-interp.
20334         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
20335         $(common-objpfx)runtime-linker.h.
20336
20337 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
20338
20339         * Makeconfig (+interp): Remove unused variable.
20340         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
20341         only.  Depend on $(common-objpfx)runtime-linker.h instead of
20342         $(elf-objpfx)runtime-linker.h.
20343         ($(elf-objpfx)runtime-linker.h): Rename to
20344         $(common-objpfx)runtime-linker.h and move ...
20345         * Makerules [$(build-shared) = yes]: ... here.
20346         * elf/interp.c: Include <runtime-linker.h> instead of
20347         <elf/runtime-linker.h>.
20348
20349 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20350
20351         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
20352         (__gettimeofday_syscall): Remove vsyscall fallback.
20353         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
20354         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
20355         Add syscall fallback function.
20356         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
20357         if vDSO is not present.
20358         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
20359         fallback function.
20360         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
20361         present.
20362         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
20363         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
20364
20365 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
20366
20367         [BZ #18497]
20368         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
20369         of wcscmp.
20370         (wcscmp): Define as weak alias of WCSCMP.
20371         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
20372         wcscoll.
20373         (USE_HIDDEN_DEF): Define.
20374         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
20375         __wcscoll.  Don't use libc_hidden_weak.
20376         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
20377         wcscmp.
20378         * sysdeps/i386/i686/multiarch/wcscmp-c.c
20379         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
20380         __GI_wcscmp.
20381         (weak_alias): Undefine and redefine.
20382         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
20383         __wcscmp and define as weak alias of __wcscmp.
20384         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
20385         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
20386         (__wcscoll): Likewise.
20387         (wcscmp): Don't use libc_hidden_proto.
20388         (wcscoll): Likewise.
20389         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
20390         wcscoll.
20391         * posix/regexec.c (check_node_accept_bytes): Likewise.
20392         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
20393         variable.
20394         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
20395         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
20396
20397         [BZ #18507]
20398         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
20399         __fstatvfs and define as weak alias of __fstatvfs.  Use
20400         libc_hidden_weak.
20401         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
20402         and define as weak alias of __statvfs.  Use libc_hidden_weak.
20403         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
20404         Define as alias of __fstatvfs, not fstatvfs.
20405         (fstatvfs64): Likewise.
20406         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
20407         Define as alias of __statvfs, not statvfs.
20408         (statvfs64): Likewise.
20409         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
20410         Remove variable.
20411
20412 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20413
20414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20415         (HAVE_GETCPU_VSYSCALL): Define.
20416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
20417         (HAVE_GETCPU_VSYSCALL): Likewise.
20418         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
20419         * sysdeps/unix/sysv/linux/sched_getcpu.c
20420         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
20421         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
20422         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
20423         prototype.
20424         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20425         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
20426         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
20427         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
20428         Define.
20429         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
20430         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20431         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
20432         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20433
20434 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
20435
20436         * sysdeps/x86_64/fpu/Makefile: New file.
20437         * sysdeps/x86_64/fpu/Versions: New file.
20438         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
20439         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
20440         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
20441         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
20442         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
20443         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
20444         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
20445         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
20446         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
20447         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
20448         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
20449         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
20450         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
20451         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
20452         Added build of SSE, AVX2 and AVX512 IFUNC versions.
20453         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
20454         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
20455         * sysdeps/x86_64/configure.ac: Options for libmvec build.
20456         * sysdeps/x86_64/configure: Regenerated.
20457         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
20458         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
20459         * manual/install.texi (Configuring and compiling): Document
20460         --disable-mathvec.
20461         * INSTALL: Regenerated.
20462         * NEWS: Mention addition of libmvec and x86_64 vector cos.
20463
20464         * math/Makefile: Added rules for vector tests.
20465         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
20466         declaration under condition.
20467         * math/test-double-vlen2.h: New file.
20468         * math/test-double-vlen4.h: New file.
20469         * math/test-double-vlen8.h: New file.
20470         * math/test-vec-loop.h: Added initialization macro.
20471         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
20472         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
20473         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
20474         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
20475         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
20476         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
20477         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
20478         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
20479         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
20480         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
20481         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
20482
20483         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
20484         * sysdeps/x86_64/fpu/Versions: New versions added.
20485         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
20486         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
20487         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
20488         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
20489         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
20490         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
20491         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
20492         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
20493         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
20494         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
20495         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
20496         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
20497         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
20498         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
20499         Added build of SSE, AVX2 and AVX512 IFUNC versions.
20500         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
20501         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
20502         * NEWS: Mention addition of x86_64 vector cosf.
20503
20504         * math/Makefile: Added CFLAGS for new tests.
20505         * math/test-float-vlen16.h: New file.
20506         * math/test-float-vlen4.h: New file.
20507         * math/test-float-vlen8.h: New file.
20508         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
20509         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
20510         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20511         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
20512         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
20513         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
20514         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
20515         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
20516         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
20517         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
20518         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
20519
20520 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
20521
20522         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
20523         * locale/programs/ld-ctype.c: Likewise.
20524
20525 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
20526
20527         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
20528         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
20529         bit_ZMM16_31_state): New macro.
20530         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20531         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
20532
20533 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
20534
20535         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
20536
20537 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
20538
20539         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
20540
20541 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
20542
20543         [BZ #18498]
20544         * libio/memstream.c (open_memstream): Rename to __open_memstream
20545         and define as weak alias of __open_memstream.
20546         * include/stdio.h (__open_memstream): Declare.  Use
20547         libc_hidden_proto.
20548         (open_memstream): Don't use libc_hidden_proto.
20549         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
20550         open_memstream.
20551         * posix/getopt.c (_getopt_internal_r): Likewise.
20552         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
20553         variable.
20554         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
20555         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
20556         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
20557
20558         [BZ #18496]
20559         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
20560         instead of wcrtomb.
20561
20562         [BZ #18483]
20563         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
20564         [__USE_XOPEN2K8].  Remove redundant #endif.
20565         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
20566         Remove redundant #if.
20567         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
20568         Remove variable.
20569         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
20570         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
20571
20572         [BZ #18495]
20573         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
20574         (__iswlower): Likewise.
20575         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
20576         (__iswlower): Likewise.
20577         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
20578         instead of towlower.
20579         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
20580         instead of iswlower.  Call __towupper instead of towupper.
20581         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
20582         instead of iswalnum.
20583
20584 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20585
20586         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
20587         errors to stderr.
20588
20589 2015-06-05  Florian Weimer  <fweimer@redhat.com>
20590
20591         [BZ #15661]
20592         [BZ #17322]
20593         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
20594         Check for overflow properly.  Check for O_APPEND.  Ignore large
20595         file system block sizes.  Add comments about problems.
20596         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
20597         * manual/filesys.texi (Storage Allocation): New node.
20598
20599 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20600
20601         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
20602         cancellable syscalls.
20603         (SYS_ify): Add guard to no redefine it.
20604         (INLINE_SYSCALL): Likewise.
20605         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
20606         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
20607         SYSCALL_CANCEL instead.
20608         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
20609         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
20610         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
20611         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
20612         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
20613         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
20614         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
20615         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
20616         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20617         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20618         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
20619         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
20620         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
20621         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
20622         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
20623         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
20624         Likewise.
20625         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
20626         (__libc_pread64): Likewise.
20627         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
20628         (__libc_preadv): Likewise.
20629         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
20630         (__libc_readv64): Likewise.
20631         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
20632         (__libc_pwrite): Likewise.
20633         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
20634         (__libc_pwrite64): Likewise.
20635         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
20636         (__libc_pwritev): Likewise.
20637         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
20638         (__libc_pwritev64): Likewise.
20639         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
20640         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
20641         (sync_file_range): Likewise.
20642         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
20643         Likewise.
20644         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
20645         Likewise.
20646         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
20647         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
20648         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
20649         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
20650         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
20651         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
20652         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20653         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
20654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
20655         Likewise.
20656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
20657         (__libc_read64): Likewise.
20658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
20659         Likewise.
20660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
20661         Likewise.
20662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
20663         Likewise.
20664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
20665         Likewise.
20666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
20667         (__libc_pread64): Likewise.
20668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
20669         Likewise.
20670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
20671         (__libc_pwrite64): Likewise.
20672         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
20673         (sync_file_range): Likewise.
20674         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
20675         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
20676         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
20677         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
20678         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
20679         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
20680         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
20681         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
20682         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
20683         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
20684         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
20685         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
20686         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
20687         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
20688         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
20689         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
20690         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
20691         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
20692         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
20693         Likewise.
20694         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
20695         Likewise.
20696         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
20697         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
20698         Likewise.
20699         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
20700         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
20701         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
20702         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
20703         Likewise.
20704         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
20705         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
20706         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
20707         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
20708         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
20709
20710 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
20711
20712         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
20713         Include dl-vdso.
20714         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
20715         Use VDSO routines for gettimeofday, clock_gettime if
20716         available.
20717         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
20718         Declare VDSO symbols.
20719         * sysdeps/unix/sysv/linux/arm/sysdep.h:
20720         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
20721         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
20722         * sysdeps/unix/sysv/linux/arm/Versions: Add
20723         __vdso_clock_gettime.
20724
20725 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20726
20727         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
20728         be an inline implementation regardless of library is built within.
20729         (open_not_cancel_2): Likewise.
20730         (__read_nocancel): Likewise.
20731         (__write_nocancel): Likewise.
20732         (openat_not_cancel): Likewise.
20733         (openat_not_cancel_3): Likewise.
20734         (openat64_not_cancel): Likewise.
20735         (openat64_not_cancel_3): Likewise.
20736         (__close_nocancel): Likewise.
20737         (pause_not_cancel): Likewise.
20738         (nanosleep_not_cancel): Likewise.
20739         (sigsuspend_not_cancel): Likewise.
20740
20741 2015-06-04  Torvald Riegel  <triegel@redhat.com>
20742
20743         [BZ #14958]
20744         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
20745         wake-up.
20746         (__pthread_rwlock_rdlock_slow): Likewise.
20747         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
20748         Likewise.
20749         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
20750         Likewise.
20751         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
20752         * nptl/tst-rwlock16.c: New file.
20753         * nptl/Makefile (tests): Add new test.
20754
20755 2015-06-04  Torvald Riegel  <triegel@redhat.com>
20756
20757         [BZ #18324]
20758         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
20759         missing wake-up of readers.
20760         * nptl/tst-rwlock15.c: New file.
20761         * nptl/Makefile (tests): Add new test.
20762
20763 2015-06-03  Roland McGrath  <roland@hack.frob.com>
20764
20765         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
20766         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
20767         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
20768         and __nacl_supply_interface_rtld.
20769         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
20770         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
20771         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
20772         Add __nacl_supply_interface_rtld.
20773         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
20774
20775 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
20776
20777         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
20778         isfinite.
20779         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
20780         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
20781
20782 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
20783
20784         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
20785         __signbit* with standard C99 macros.
20786         * math/e_exp10l.c: Likewise.
20787         * math/e_exp2l.c: Likewise.
20788         * math/e_scalb.c: Likewise.
20789         * math/e_scalbf.c: Likewise.
20790         * math/e_scalbl.c: Likewise.
20791         * math/s_ldexp.c: Likewise.
20792         * math/s_ldexpf.c: Likewise.
20793         * math/s_ldexpl.c: Likewise.
20794         * math/w_atan2.c: Likewise.
20795         * math/w_atan2f.c: Likewise.
20796         * math/w_atan2l.c: Likewise.
20797         * math/w_cosh.c: Likewise.
20798         * math/w_coshf.c: Likewise.
20799         * math/w_coshl.c: Likewise.
20800         * math/w_exp10.c: Likewise.
20801         * math/w_exp10f.c: Likewise.
20802         * math/w_exp10l.c: Likewise.
20803         * math/w_exp2.c: Likewise.
20804         * math/w_exp2f.c: Likewise.
20805         * math/w_exp2l.c: Likewise.
20806         * math/w_fmod.c: Likewise.
20807         * math/w_fmodf.c: Likewise.
20808         * math/w_fmodl.c: Likewise.
20809         * math/w_hypot.c: Likewise.
20810         * math/w_hypotf.c: Likewise.
20811         * math/w_hypotl.c: Likewise.
20812         * math/w_jnl.c: Likewise.
20813         * math/w_lgamma.c: Likewise.
20814         * math/w_lgamma_r.c: Likewise.
20815         * math/w_lgammaf.c: Likewise.
20816         * math/w_lgammaf_r.c: Likewise.
20817         * math/w_lgammal.c: Likewise.
20818         * math/w_lgammal_r.c: Likewise.
20819         * math/w_pow.c: Likewise.
20820         * math/w_powf.c: Likewise.
20821         * math/w_powl.c: Likewise.
20822         * math/w_remainder.c: Likewise.
20823         * math/w_remainderf.c: Likewise.
20824         * math/w_remainderl.c: Likewise.
20825         * math/w_scalb.c: Likewise.
20826         * math/w_scalbf.c: Likewise.
20827         * math/w_scalbl.c: Likewise.
20828         * math/w_scalbln.c: Likewise.
20829         * math/w_scalblnf.c: Likewise.
20830         * math/w_scalblnl.c: Likewise.
20831         * math/w_sinh.c: Likewise.
20832         * math/w_sinhf.c: Likewise.
20833         * math/w_sinhl.c: Likewise.
20834         * math/w_tgamma.c: Likewise.
20835         * math/w_tgammaf.c: Likewise.
20836         * math/w_tgammal.c: Likewise.
20837         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20838         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
20839         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
20840         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
20841         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
20842         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20843         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20844         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
20845         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
20846         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
20847         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20848         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
20849         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
20850         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
20851         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
20852         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
20853         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
20854         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
20855         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20856         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20857         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20858         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
20859         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
20860         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20861         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
20862         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
20863         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
20864         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
20865         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
20866         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20867         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
20868         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
20869         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
20870         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
20871         * stdio-common/printf_fp.c: Likewise.
20872         * stdio-common/printf_fphex.c: Likewise.
20873         * stdio-common/printf_size.c: Likewise.
20874
20875 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
20876
20877         [BZ #18470]
20878         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
20879         strnlen.
20880         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
20881         Remove variable.
20882         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
20883         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
20884         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
20885         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
20886         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
20887         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
20888         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
20889         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
20890         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
20891         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
20892
20893         [BZ #18468]
20894         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
20895         weak alias of __wmemchr.  Use libc_hidden_weak.
20896         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
20897         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
20898         instead of wmemchr.
20899
20900 2015-06-02  Roland McGrath  <roland@hack.frob.com>
20901
20902         [BZ #18383]
20903         * elf/tst-tlsalign-extern.c: New file.
20904         * elf/tst-tlsalign-extern-static.c: New file.
20905         * elf/tst-tlsalign-vars.c: New file.
20906         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
20907         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
20908         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
20909         ($(objpfx)tst-tlsalign-extern-static): Likewise.
20910         (test-xfail-tst-tlsalign-extern-static): New variable.
20911
20912 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
20913
20914         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
20915         Use variable name _sc_err instead of err.
20916         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
20917         instead of ret.
20918         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
20919         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
20920         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
20921         (INLINE_SYSCALL): Likewise.
20922
20923         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
20924         * include/string.h (__strnlen): Use libc_hidden_proto.
20925         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
20926         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
20927         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
20928         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
20929         (libc_hidden_def): Undefine and redefine.
20930         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
20931         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
20932         __GI_strnlen.
20933         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
20934         libc_hidden_def.
20935         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
20936
20937         [BZ #18469]
20938         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
20939         weak alias of __towlower.  Use libc_hidden_weak.
20940         (towupper): Rename to __towupper and define as weak alias of
20941         __towupper.  Use libc_hidden_weak.
20942         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
20943         (__towupper): Likewise.
20944         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
20945         __towlower instead of towlower.
20946
20947 2015-06-02  Roland McGrath  <roland@hack.frob.com>
20948
20949         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
20950         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
20951
20952 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20953
20954         * sysdeps/aarch64/libm-test-ulps: Update.
20955
20956 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20957
20958         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
20959         Define.
20960         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
20961         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
20962         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
20963         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
20964         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
20965         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
20966         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
20967
20968 2015-06-01  Martin Sebor  <msebor@redhat.com>
20969
20970         [BZ #18116]
20971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
20972         (__setcontext): Use extended four-operand version of mtsf whenever
20973         possible.
20974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
20975         (__novec_swapcontext): Likewise.
20976
20977 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20978
20979         * benchtests/scripts/compare_bench.py: New file.
20980         * benchtests/scripts/import_bench.py (mean): New function.
20981         (split_list): Likewise.
20982         (do_for_all_timings): Likewise.
20983         (compress_timings): Likewise.
20984
20985         * benchtests/scripts/import_bench.py: New file.
20986         * benchtests/scripts/validate_benchout.py: Import import_bench
20987         instead of jsonschema.
20988         (validate_bench): Remove function.
20989         (main): Use import_bench.
20990
20991 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
20992
20993         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
20994         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
20995
20996 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20997
20998         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20999
21000 2015-05-28  Roland McGrath  <roland@hack.frob.com>
21001
21002         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
21003         set THREAD_SELF->tid to a magic value and futex-wake it.
21004         Pass its address to the thread_exit system call.
21005         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
21006         bit is clear.
21007         * sysdeps/nacl/lowlevellock.h: New file.
21008         * sysdeps/nacl/lll_timedwait_tid.c: New file.
21009
21010         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
21011         Add TIMEOUT to current time, don't subtract it.
21012
21013 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
21014
21015         [BZ #2981]
21016         [BZ #18422]
21017         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
21018         ($(objpfx)tst-audit2.out): Also depend on
21019         $(objpfx)tst-auditmod9b.so.
21020         * elf/tst-audit2.c: Include <dlfcn.h>.
21021         (calloc_called): New.
21022         (calloc): Allow to be called more than once.
21023         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
21024
21025 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
21026
21027         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
21028         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
21029
21030 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
21031
21032         * stdlib/monetary.h: Fix comment.
21033
21034 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
21035
21036         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
21037         Avoid using variables in #defines that might cause shadowing.
21038         (INTERNAL_VSYSCALL_CALL): Likewise.
21039
21040 2015-05-26  Roland McGrath  <roland@hack.frob.com>
21041
21042         * sysdeps/nacl/lll_timedlock_wait.c: New file.
21043
21044         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
21045         * nptl/lll_timedlock_wait.c: ... to this new file.
21046         * nptl/Makefile (libpthread-routines): Add it.
21047         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
21048         * nptl/lll_timedwait_tid.c: ... to this new file.
21049         * nptl/Makefile (libpthread-routines): Add it.
21050         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
21051         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
21052         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
21053         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
21054         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
21055         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
21056         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
21057         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
21058         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
21059         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
21060
21061 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21062
21063         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
21064         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
21065         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
21066         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
21067         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
21068         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
21069         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
21070         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21071         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
21072         * sysdeps/unix/sysv/linux/tile/sysdep.h
21073         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
21074         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
21075         using vDSO syscall macro.
21076
21077 2015-05-26  Andriy Rysin  <arysin@gmail.com>
21078
21079         [BZ #17293]
21080         * uk_UA: Fix sorting order for Ukrainian locale
21081
21082 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
21083
21084         * stdlib/monetary.h: Fix comment.
21085
21086 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21087
21088         [BZ #18234]
21089         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
21090         st_mtim and st_ctim members.
21091         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
21092         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
21093         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
21094         (struct stat64): Likewise.
21095         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
21096         (struct stat64): Likewise.
21097         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
21098         (struct stat64): Likewise.
21099
21100 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21101
21102         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
21103         Define and include sysdep-vdso.h.
21104         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
21105         Likewise.
21106         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
21107         Likewise.
21108         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
21109         Define with VDSO_SYMBOL and use PTR_MANGLE.
21110         (__vdso_clock_gettime): Likewise.
21111         (__vdso_clock_getres): Likewise.
21112         (_libc_vdso_platform_setup): Likewise.
21113         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
21114         Likewise.
21115         (_libc_vdso_platform_setup): Likewise.
21116         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
21117         Likewise.
21118         (__vdso_clock_gettime): Likewise.
21119         (__vdso_clock_getres): Likewise.
21120         (__vdso_get_tbfreq): Likewise.
21121         (__vdso_getcpu): Likewise.
21122         (__vdso_time): Likewise.
21123         (__vdso_sigtramp_rt64): Likewise.
21124         (__vdso_signtramp32): Likewise.
21125         (__vdso_sigtramp_rt32): Likewise.
21126         (_libc_vdso_platform_setup): Likewise.
21127         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
21128         Likewise.
21129         (__vdso_clock_gettime): Likewise.
21130         (__vdso_clock_getres): Likewise.
21131         (_libc_vdso_platform_setup): Likewise.
21132         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
21133         Likewise.
21134         (__vdso_clock_gettime): Likewise.
21135         (_libc_vdso_platform_setup): Likewise.
21136         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21137         Likewise.
21138         (__vdso_getcpu): Likewise.
21139         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
21140         Use VDSO_SYMBOL macro to define.
21141         (__vdso_clock_gettime): Likewise.
21142         (__vdso_clock_getres): Likewise.
21143         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
21144         Likewise.
21145         (__vdso_clock_gettime): Likewise.
21146         (__vdso_clock_getres): Likewise.
21147         (__vdso_get_tbfreq): Likewise.
21148         (__vdso_getcpu): Likewise.
21149         (__vdso_time): Likewise.
21150         (__vdso_sigtramp_rt64): Likewise.
21151         (__vdso_signtramp32): Likewise.
21152         (__vdso_sigtramp_rt32): Likewise.
21153         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
21154         Likewise.
21155         (__vdso_clock_gettime): Likewise.
21156         (__vdso_clock_getres): Likewise.
21157         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
21158         Likewise.
21159         (__vdso_clock_gettime): Likewise.
21160         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
21161         Likewise.
21162         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
21163         macro.
21164         (INTERNAL_VSYSCALL): Likewise.
21165         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
21166         Remove macro.
21167         (INTERNAL_VSYSCALL): Likewise.
21168         (INTERNAL_VSYSCALL_NCS): Likewise.
21169         (INTERNAL_VSYSCALL_CALL): New macro.
21170         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
21171         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
21172         Likewise.
21173         (INTERNAL_VSYSCALL): Likewise.
21174         (INTERNAL_VSYSCALL_NCS): Likewise.
21175         (INTERNAL_VSYSCALL_CALL): New macro.
21176         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
21177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21178         (INLINE_VSYSCALL): Remove macro.
21179         (INTERNAL_VSYSCALL): Remove macro.
21180         (INTERNAL_VSYSCALL_NCS): Remove macro.
21181         (INTERNAL_VSYSCALL_CALL): New macro.
21182         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
21183         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
21184         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
21185         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
21186         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
21187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21188         (INLINE_VSYSCALL): Remove macro.
21189         (INTERNAL_VSYSCALL): Likewise.
21190         (INTERNAL_VSYSCALL_NCS): Likewise.
21191         (INTERNAL_VSYSCALL_CALL): New macro.
21192         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
21193         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
21194         PTR_DEMANGLE on vDSO pointer.
21195         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
21196         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
21197         macro.
21198         (INTERNAL_SYSCALL): Likewise.
21199         (INTERNAL_VSYSCALL_NCS): Remove macro.
21200         (INTERNAL_VSYSCALL_CALL): New macro.
21201         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
21202         Remove macro.
21203         (INTERNAL_VSYSCALL): Likewise.
21204         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
21205         sysdep-vdso.h instead of libc-vdso.h.
21206         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
21207         definition.
21208         (INLINE_VSYSCALL): Likewise.
21209         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
21210         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
21211         definition.
21212         (INLINE_VSYSCALL): Likewise.
21213         (INTERNAL_VSYSCALL): Likewise.
21214         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
21215         * sysdeps/unix/sysv/linux/timespec_get.c
21216         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
21217         (timespec_get): Use ANSI prototype.
21218         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
21219         and definition for Linux.
21220
21221 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
21222
21223         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
21224         * include/libc-symbols.h: libmvec_hidden_* macro series added.
21225
21226 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
21227
21228         [BZ #2981]
21229         [BZ #18410]
21230         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
21231         for missing DT_PLTRELSZ.
21232
21233 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21234
21235         Remove obsolete aliases that broke 'locale -a'
21236         [BZ #18412]
21237         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
21238         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
21239         breaking some applications that use 'locale -a' output.
21240         Change the encoding of this file from Latin-1 to ASCII to avoid
21241         other potential problems with people grepping this file.
21242
21243 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21244
21245         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
21246         -fasynchronous-unwind-tables.
21247         (CFLAGS-sendto.c): Likewise.
21248         (CFLAGS-sendmsg.c): Likewise.
21249         (CFLAGS-connect.c): Likewise.
21250         (CFLAGS-recvmsg.c): Likewise.
21251         (CFLAGS-recvfrom.c): Likewise.
21252         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
21253         (SOCKETCALL): New macro: non-cancellable socketcall.
21254         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
21255         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
21256         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
21257         * sysdeps/unix/sysv/linux/accept.c: New file.
21258         * sysdeps/unix/sysv/linux/bind.c: Likewise.
21259         * sysdeps/unix/sysv/linux/connect.c: Likewise.
21260         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
21261         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
21262         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
21263         * sysdeps/unix/sysv/linux/listen.c: Likewise.
21264         * sysdeps/unix/sysv/linux/recv.c: Likewise.
21265         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
21266         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
21267         * sysdeps/unix/sysv/linux/send.c: Likewise.
21268         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
21269         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
21270         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
21271         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
21272         * sysdeps/unix/sysv/linux/socket.c: Likewise.
21273         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
21274         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
21275         prototype.
21276         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
21277         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
21278         instead of __internal_xxx function.
21279         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
21280         prototype.
21281         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
21282         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
21283         instead of __internal_xxx function.
21284         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
21285         prototype.
21286         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
21287         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
21288         instead of __internal_xxx function.
21289         * sysdeps/unix/sysv/linux/accept.S: Remove file.
21290         * sysdeps/unix/sysv/linux/bind.S: Likewise.
21291         * sysdeps/unix/sysv/linux/connect.S: Likewise.
21292         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
21293         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
21294         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
21295         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
21296         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
21297         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
21298         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
21299         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
21300         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21301         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
21302         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
21303         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
21304         * sysdeps/unix/sysv/linux/listen.S: Likewise.
21305         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
21306         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
21307         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
21308         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
21309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
21310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
21311         * sysdeps/unix/sysv/linux/recv.S: Likewise.
21312         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
21313         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
21314         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
21315         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
21316         * sysdeps/unix/sysv/linux/send.S: Likewise.
21317         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
21318         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
21319         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
21320         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
21321         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
21322         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
21323         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
21324         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
21325         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
21326         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
21327         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
21328         socketcall is implemented in GLIBC.
21329
21330 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
21331
21332         * soft-fp/fmadf4.c: Include <libc-internal.h>.
21333         (__fma): Ignore uninitialized warnings around packing.
21334         * soft-fp/fmasf4.c: Include <libc-internal.h>.
21335         (__fmaf): Ignore uninitialized warnings around packing.
21336         * soft-fp/fmatf4.c: Include <libc-internal.h>.
21337         (__fmal): Ignore uninitialized warnings around packing.
21338
21339         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
21340         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
21341         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
21342         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
21343
21344         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
21345         switch statement into default case.
21346         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
21347
21348         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
21349         a conditional in forcing "inexact".
21350         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
21351         Likewise.
21352
21353 2015-05-22  Roland McGrath  <roland@hack.frob.com>
21354
21355         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
21356         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
21357         for each INTERNAL_SYSCALL use.
21358
21359 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
21360
21361         [BZ #438]
21362         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
21363         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
21364         variable.
21365
21366         [BZ #18444]
21367         * string/basename.c (basename): Rename to __basename and define as
21368         weak alias of __basename.  Use libc_hidden_weak.
21369         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
21370         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
21371         __basename instead of basename.
21372         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
21373         Remove variable.
21374         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
21375
21376 2015-05-18  Florian Weimer  <fweimer@redhat.com>
21377
21378         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
21379         (_IO_JUMPS_FILE_plus): New.
21380         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
21381         _IO_CAST_FIELD_ACCESS.
21382         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
21383         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
21384         * libio/freopen.c (freopen): Likewise.
21385         * libio/freopen64.c (freopen64): Likewise.
21386         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
21387         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
21388         * libio/iofwide.c (_IO_fwide): Likewise.
21389         * libio/memstream.c (open_memstream): Likewise.
21390         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21391         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
21392         * libio/oldiopopen.c (_IO_old_popen): Likewise.
21393
21394 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
21395
21396         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
21397         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
21398         NADJ.
21399         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
21400         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
21401         NADJ.
21402         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
21403         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
21404         NADJ.
21405
21406         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
21407         (p == 4) case.
21408
21409         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
21410         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
21411         Remove variable.
21412         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
21413         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
21414         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
21415
21416 2015-05-21  Florian Weimer  <fweimer@redhat.com>
21417
21418         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
21419         Adjust jump table label generation macros.
21420
21421 2015-05-21  Florian Weimer  <fweimer@redhat.com>
21422
21423         * stdio-common/vfprintf.c (vfprintf): Move local variables
21424         args_malloced, specs, specs_malloced, and the code after
21425         do_positional to the printf_positional function.
21426         (printf_positional): New function.
21427
21428 2015-05-21  Florian Weimer  <fweimer@redhat.com>
21429
21430         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
21431         function.
21432         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
21433         STEP4_TABLE, process_arg): Move macro definitions
21434         out of the vfprintf function.  (Cosmetic change only.)
21435
21436 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
21437
21438         * benchtests/Makefile (stdio-common-bench): Define.
21439         (benchset): Add stdio-common-bench.
21440         * sprintf-inputs: New file.
21441         * sprintf-source.c: New file.
21442
21443 2015-05-21  Andreas Schwab  <schwab@suse.de>
21444
21445         [BZ #13028]
21446         [BZ #17053]
21447         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
21448         of struct __res_state.
21449         * resolv/res_send.c (__libc_res_nsend): Likewise.
21450         (get_nsaddr): New function.
21451         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
21452         statp directly.
21453
21454 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
21455
21456         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
21457         -D_POSIX_C_SOURCE=199506L.
21458
21459         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
21460
21461         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
21462         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
21463         Do not mention otherwise.
21464         [POSIX] (_XOPEN_VERSION): Do not expect.
21465         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
21466         [POSIX] (_POSIX2_C_BIND): Likewise.
21467         [POSIX] (_POSIX2_VERSION): Likewise.
21468         [POSIX] (_XOPEN_XPG2): Likewise.
21469         [POSIX] (_XOPEN_XPG3): Likewise.
21470         [POSIX] (_XOPEN_XPG4): Likewise.
21471         [POSIX] (_XOPEN_UNIX): Likewise.
21472         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
21473         [POSIX] (_POSIX_BARRIERS): Likewise.
21474         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
21475         [POSIX] (_POSIX_CPUTIME): Likewise.
21476         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
21477         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
21478         [POSIX] (_POSIX_SHELL): Likewise.
21479         [POSIX] (_POSIX_SPAWN): Likewise.
21480         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
21481         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
21482         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
21483         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
21484         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
21485         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
21486         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
21487         [POSIX] (_XBS5_LP64_OFF64): Likewise.
21488         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
21489         [POSIX] (_POSIX_TIMEOUTS): Likewise.
21490         [POSIX] (_POSIX2_PBS): Likewise.
21491         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
21492         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
21493         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
21494         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
21495         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
21496         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
21497         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
21498         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
21499         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
21500         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
21501         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
21502         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
21503         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
21504         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
21505         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
21506         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
21507         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
21508         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
21509         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
21510         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
21511         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
21512         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
21513         [POSIX] (_SC_2_C_BIND): Likewise.
21514         [POSIX] (_SC_2_C_VERSION): Likewise.
21515         [POSIX] (_SC_2_PBS): Likewise.
21516         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
21517         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
21518         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
21519         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
21520         [POSIX] (_SC_2_PBS_TRACK): Likewise.
21521         [POSIX] (_SC_ATEXIT_MAX): Likewise.
21522         [POSIX] (_SC_BARRIERS): Likewise.
21523         [POSIX] (_SC_BASE): Likewise.
21524         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
21525         [POSIX] (_SC_DEVICE_IO): Likewise.
21526         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
21527         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
21528         [POSIX] (_SC_FD_MGMT): Likewise.
21529         [POSIX] (_SC_FIFO): Likewise.
21530         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
21531         [POSIX] (_SC_FILE_LOCKING): Likewise.
21532         [POSIX] (_SC_FILE_SYSTEM): Likewise.
21533         [POSIX] (_SC_IOV_MAX): Likewise.
21534         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
21535         [POSIX] (_SC_NETWORKING): Likewise.
21536         [POSIX] (_SC_PAGE_SIZE): Likewise.
21537         [POSIX] (_SC_PASS_MAX): Likewise.
21538         [POSIX] (_SC_PIPE): Likewise.
21539         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
21540         [POSIX] (_SC_REGEXP): Likewise.
21541         [POSIX] (_SC_SHELL): Likewise.
21542         [POSIX] (_SC_SIGNALS): Likewise.
21543         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
21544         [POSIX] (_SC_SPIN_LOCKS): Likewise.
21545         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
21546         [POSIX] (_SC_USER_GROUPS): Likewise.
21547         [POSIX] (_SC_USER_GROUPS_R): Likewise.
21548         [POSIX] (_SC_STREAMS): Likewise.
21549         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
21550         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
21551         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
21552         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
21553         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
21554         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
21555         [POSIX] (_PC_FILESIZEBITS): Likewise.
21556         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
21557         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
21558         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
21559         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
21560         [POSIX] (uid_t): Likewise.
21561         [POSIX] (gid_t): Likewise.
21562         [POSIX] (off_t): Likewise.
21563         [POSIX] (pid_t): Likewise.
21564         [POSIX] (cuserid): Allow.
21565         (_SC_2_CHAR_TERM): Require constant.
21566         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
21567         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
21568         variable.
21569
21570 2015-05-20  Roland McGrath  <roland@hack.frob.com>
21571
21572         * sysdeps/nacl/pthread-pids.h: New file.
21573         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
21574         (create_thread): Use __nacl_get_tid to initialize PD->tid.
21575
21576         * nptl/pthread-pids.h: New file.
21577         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
21578         * nptl/nptl-init.c: Include <pthread-pids.h>.
21579         (__pthread_initialize_minimal_internal):
21580         Call __pthread_initialize_pids instead of set_tid_address syscall.
21581
21582         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
21583         * sysdeps/posix/usleep.c: ... here.
21584
21585 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21586
21587         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
21588         call_pselect6 object.
21589         [$(subdir) = io]: Remove call_sync_file_range object.
21590         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
21591         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
21592         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
21593         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
21594
21595 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
21596
21597         * math/s_cproj.c: Add include "math_private.h".
21598         * math/s_cprojf.c: Likewise.
21599         * math/s_cprojl.c: Likewise.
21600
21601 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
21602
21603         [BZ #18244]
21604         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
21605         high mantissa bit when testing whether P is a NaN.
21606         * math/libm-test.inc (remainder_test_data): Add more tests.
21607         (remquo_test_data): Likewise.
21608
21609         [BZ #18049]
21610         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
21611         below -32, return the argument, with underflow if subnormal.
21612         * math/auto-libm-test-in: Add more tests of atanh.
21613         * math/auto-libm-test-out: Regenerated.
21614
21615 2015-05-19  Roland McGrath  <roland@hack.frob.com>
21616
21617         [BZ #18434]
21618         * nptl/tst-sem15.c: New file.
21619         * nptl/Makefile (tests): Add it.
21620         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
21621         s/<</>>/ to fix typo in EOVERFLOW check.
21622         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
21623
21624 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21625
21626         * manual/strings.texi (envz_remove): Fix typo in safety
21627         annotations.
21628
21629 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21630             Steve Ellcey  <sellcey@imgtec.com>
21631
21632         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
21633         in order to avoid strict alias warnings.
21634         (iruserok_af): Ditto for ra.
21635
21636 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
21637
21638         [BZ #17581]
21639         * malloc/hooks.c
21640         (magicbyte): Convert to a function and avoid returning 0x01.
21641         (mem2mem_check): Avoid using a length byte equal to the magic byte.
21642         (mem2chunk_check): Fix unsigned comparisons to zero.
21643         Hoist defs of sz and magic.
21644
21645 2015-05-19  Richard Henderson  <rth@redhat.com>
21646
21647         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
21648
21649         * sysdeps/alpha/fpu/libm-test-ulps: Update.
21650
21651 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21652
21653         [BZ #16159]
21654         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
21655         * malloc/arena.c (arena_lock): Check if arena is corrupt.
21656         (reused_arena): Find a non-corrupt arena.
21657         (heap_trim): Pass arena to unlink.
21658         * malloc/hooks.c (malloc_check_get_size): Pass arena to
21659         malloc_printerr.
21660         (top_check): Likewise.
21661         (free_check): Likewise.
21662         (realloc_check): Likewise.
21663         * malloc/malloc.c (malloc_printerr): Add arena argument.
21664         (unlink): Likewise.
21665         (munmap_chunk): Adjust.
21666         (ARENA_CORRUPTION_BIT): New macro.
21667         (arena_is_corrupt): Likewise.
21668         (set_arena_corrupt): Likewise.
21669         (sysmalloc): Use mmap if there are no usable arenas.
21670         (_int_malloc): Likewise.
21671         (__libc_malloc): Don't fail if arena_get returns NULL.
21672         (_mid_memalign): Likewise.
21673         (__libc_calloc): Likewise.
21674         (__libc_realloc): Adjust for additional argument to
21675         malloc_printerr.
21676         (_int_free): Likewise.
21677         (malloc_consolidate): Likewise.
21678         (_int_realloc): Likewise.
21679         (_int_memalign): Don't touch corrupt arenas.
21680         * malloc/tst-malloc-backtrace.c: New test case.
21681
21682         * Makefile (summarize-tests): Fix return value on success.
21683
21684         * manual/string.texi (Envz Functions): Add envz_remove.
21685
21686 2015-05-18  Roland McGrath  <roland@hack.frob.com>
21687
21688         * sysdeps/posix/opendir.c: Include <stdbool.h>.
21689         (invalid_name): New function, broken out of ...
21690         (__opendirat): ... here.  Call it.
21691         (need_isdir_precheck): New function, broken out of ...
21692         (__opendirat): ... here.  Call it.
21693         Use __fxstatat64, not __xstatat64.
21694         (opendir_oflags): New function, broken out of ...
21695         (__opendirat): ... here.  Call it.
21696         (opendir_tail): New function, broken out of ...
21697         (__opendirat): ... here.  Call it.
21698         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
21699         opendir_tail, rather than punting to __opendirat.
21700         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
21701
21702 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21703
21704         * .gitignore: Ignore generated *.pyc.
21705
21706 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
21707
21708         * include/stdio.h: Define __need_wint_t.
21709         * test-skeleton.c: Avoid `for' loop initial declaration.
21710         * nptl/tst-initializers1.c: Use test-skeleton.c.
21711
21712 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21713
21714         [BZ #18418]
21715         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
21716
21717 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
21718
21719         [BZ #16352]
21720         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
21721         (__ieee754_atanh): Force underflow exception for results with
21722         small absolute value.
21723         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
21724         (__ieee754_atanhf): Force underflow exception for results with
21725         small absolute value.
21726         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
21727         (__ieee754_atanh): Force underflow exception for results with
21728         small absolute value.
21729         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
21730         (__ieee754_atanhf): Force underflow exception for results with
21731         small absolute value.
21732         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
21733         (__ieee754_atanhl): Force underflow exception for results with
21734         small absolute value.
21735         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
21736         (__ieee754_atanhl): Force underflow exception for results with
21737         small absolute value.
21738         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
21739         (__ieee754_atanhl): Force underflow exception for results with
21740         small absolute value.
21741         * math/auto-libm-test-in: Do not allow missing underflow
21742         exceptions from atanh.
21743         * math/auto-libm-test-out: Regenerated.
21744
21745         [BZ #18221]
21746         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
21747         2**-28 as threshold for returning x or +/- 1/x.
21748         * math/auto-libm-test-in: Add more tests of tan.
21749         * math/auto-libm-test-out: Regenerated.
21750
21751         [BZ #18220]
21752         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
21753         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
21754         * math/auto-libm-test-in: Add another test of lgamma.
21755         * math/auto-libm-test-out: Regenerated.
21756
21757 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
21758
21759         * stdio-common/printf_fp.c (___printf_fp): Use abs.
21760         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
21761         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
21762         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
21763         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
21764         (ADD2A): Use fabs.  (SUB2A): Use fabs.
21765         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
21766         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
21767         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
21768         (log1): Use fabs.  (my_log2): Use fabs.
21769         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
21770         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
21771         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
21772         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
21773         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
21774         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
21775         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
21776         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
21777         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
21778         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
21779         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
21780
21781 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
21782
21783         [BZ #18217]
21784         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
21785         as threshold for returning 1 - x.
21786         * math/auto-libm-test-in: Add more tests of erfc.
21787         * math/auto-libm-test-out: Regenerated.
21788
21789 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
21790
21791         [BZ #18196]
21792         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
21793         threshold for large arguments.
21794         * math/auto-libm-test-in: Add another test of atan.
21795         * math/auto-libm-test-out: Regenerated.
21796
21797         [BZ #16339]
21798         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
21799         (__log1p): Force underflow exception for results with small
21800         absolute value.
21801         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
21802         (__log1pf): Force underflow exception for results with small
21803         absolute value.
21804         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
21805         (__log1p): Force underflow exception for results with small
21806         absolute value.
21807         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
21808         (__log1pf): Force underflow exception for results with small
21809         absolute value.
21810         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
21811         (__log1pl): Force underflow exception for results with small
21812         absolute value.
21813         * math/auto-libm-test-in: Do not allow missing underflow
21814         exceptions from log1p.
21815         * math/auto-libm-test-out: Regenerated.
21816
21817 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
21818             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21819
21820         [BZ #16704]
21821         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
21822
21823 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
21824
21825         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
21826         (libmvec): New variable.
21827         * configure.ac: Added option for mathvec build.
21828         * configure: Regenerated.
21829         * mathvec/Depend: New file.
21830         * mathvec/Makefile: New file.
21831         * shlib-versions: Added libmvec.
21832         * math/Makefile: Added rule for libm.so installation.
21833
21834         * bits/math-vector.h: New file.
21835         * bits/libm-simd-decl-stubs.h: New header.
21836         * math/Makefile (headers): Added new header
21837         libm-simd-decl-stubs.h.
21838         * math/math.h (__MATHCALL_VEC): New macro.
21839
21840         * math/gen-libm-have-vector-test.sh: Script generates series of macros
21841         for conditions in testing functions.
21842         * math/Makefile: Added call of libm-have-vector-test.sh.
21843         * math/libm-test.inc (HAVE_VECTOR): New macros.
21844
21845         * math/libm-test.inc: START refactored.
21846         * math/test-double.c (TEST_MATHVEC): Add define.
21847         * math/test-float.c: Likewise.
21848         * math/test-idouble.c: Likewise.
21849         * math/test-ifloat.c: Likewise.
21850         * math/test-ildoubl.c: Likewise.
21851         * math/test-ldouble.c: Likewise.
21852         * sysdeps/generic/math-tests-arch.h
21853         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
21854         architecture check.
21855
21856         * math/test-double.c (FUNC_TEST): New macro.
21857         * math/test-float.c: Likewise.
21858         * math/test-idouble.c: Likewise.
21859         * math/test-ifloat.c: Likewise.
21860         * math/test-ildoubl.c: Likewise.
21861         * math/test-ldouble.c: Likewise.
21862         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
21863
21864 2015-05-13  Roland McGrath  <roland@hack.frob.com>
21865
21866         * sysdeps/nacl/fdopendir.c: New file.
21867
21868         * dirent/scandir-tail.c: New file.
21869         * dirent/scandir64-tail.c: New file.
21870         * dirent/Makefile (routines): Add them.
21871         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
21872         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
21873         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
21874         [!SCANDIR] (SCANDIR_TAIL): New macro.
21875         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
21876         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
21877         (SCANDIRAT): Macro removed.
21878         (SCANDIR_TAIL): New macro.
21879         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
21880         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
21881         (SCANDIRAT): Just call __opendirat and __scandir_tail.
21882         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
21883         (READDIR): Macro removed.
21884         (SCANDIR_TAIL): New macro.
21885         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
21886         (SCANDIR_TAIL): New macro.
21887
21888         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
21889         * dirent/scandir-cancel.c: ... to this new file.
21890         * dirent/Makefile (routines): Add it.
21891         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
21892         * sysdeps/unix/sysv/linux/i386/scandir64.c
21893         (SKIP_SCANDIR_CANCEL): Macro removed.
21894         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
21895
21896         * dirent/tst-scandir.c: New file.
21897         * dirent/tst-scandir64.c: New file.
21898         * dirent/Makefile (tests): Add them.
21899
21900 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
21901
21902         [BZ #18409]
21903         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
21904
21905 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21906
21907         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
21908         list.
21909
21910 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
21911
21912         * benchtests/bench-strcoll.c: New benchmark.
21913         * benchtests/Makefile: Generate locales and run benchmark.
21914         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
21915         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
21916         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
21917         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
21918         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
21919         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
21920         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
21921         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
21922         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
21923         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
21924         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
21925         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
21926         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
21927         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
21928         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
21929         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
21930         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
21931         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
21932         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
21933         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
21934         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
21935         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
21936         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
21937         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
21938
21939 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
21940
21941         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
21942         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
21943
21944 2015-05-12  Roland McGrath  <roland@hack.frob.com>
21945
21946         * posix/uname-values.h: New file.
21947         * posix/uname.c: Include that instead of <config-name.h>.
21948         * sysdeps/nacl/uname-values.h: New file.
21949         * sysdeps/arm/nacl/uname-values.h: New file.
21950
21951 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
21952
21953         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
21954         splitting into fields.
21955
21956 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
21957
21958         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
21959         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
21960         * locale/localeinfo.h: Add enum collation_encoding_type.
21961         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
21962         * programs/ld-collate.c (collate_output): Add encoding type info.
21963         * string/strcoll_l.c (STRDIFF): New function.
21964         * (STRCOLL): Use STRDIFF to skip over equal prefix.
21965         * wcsmbs/wcscoll_l.c: Define STRDIFF.
21966
21967 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
21968
21969         [BZ #18397]
21970         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
21971         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
21972         <fpu_control.h> instead of <math/fpu_control.c>.
21973         * sysdeps/mips/mips32/fpu/Makefile: New file.
21974
21975 2015-05-11  Andreas Schwab  <schwab@suse.de>
21976
21977         [BZ #18007]
21978         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
21979         nss_endgrent.
21980         (_nss_compat_endgrent): Call nss_endgrent.
21981         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
21982         nss_endpwent.
21983         (_nss_compat_endpwent): Call nss_endpwent.
21984         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
21985         needent, call nss_setspent only if non-zero.
21986         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
21987         (internal_endspent): Don't call nss_endspent.
21988         (_nss_compat_endspent): Call nss_endspent.
21989         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
21990         Remove.  All uses removed.
21991         (internal_setent): Remove parameter stayopen, add parameter
21992         stream.  Use it instead of global variable.
21993         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
21994         (internal_endent, internal_getent): Add parameter stream.  Use it
21995         instead of global variable.
21996         (CONCAT(_nss_files_end,ENTNAME))
21997         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
21998         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
21999         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
22000         uses removed.
22001         (internal_setent, internal_endent): Add parameter stream.  Use it
22002         instead of global variable.
22003         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
22004         stream.
22005         (get_next_alias): Add parameter stream.
22006         (_nss_files_getaliasent_r): Pass global stream.
22007         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
22008         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
22009         (_nss_files_gethostbyname4_r): Pass local stream to
22010         internal_setent, internal_getent and internal_endent.  Remove
22011         locking.
22012
22013 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22014
22015         * tst-strfmon1.c (tests): Update expected currency symbol.
22016
22017 2015-05-08  Roland McGrath  <roland@hack.frob.com>
22018
22019         * sysdeps/nacl/gethostname.c: New file.
22020
22021 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
22022
22023         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
22024         and sinh.
22025         * math/auto-libm-test-out: Regenerated.
22026         * sysdeps/i386/fpu/libm-test-ulps: Update.
22027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22028
22029 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
22030
22031         [BZ #18125]
22032         * stdlib/tst-setcontext3.c: New file.
22033         * stdlib/tst-setcontext3.sh: New file.
22034         * stdlib/Makefile (tests): Add tst-setcontext3.
22035         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
22036         to verify test program created output file.
22037         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
22038         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
22039         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
22040         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
22041
22042 2015-05-06  Roland McGrath  <roland@hack.frob.com>
22043
22044         [BZ #18383]
22045         * elf/tst-tlsalign.c: New file.
22046         * elf/tst-tlsalign-static.c: New file.
22047         * elf/tst-tlsalign-lib.c: New file.
22048         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
22049         (tests-static): Add tst-tlsalign-static.
22050         (modules-names): Add tst-tlsalign-lib.
22051         (test-xfail-tst-tlsalign): New variable.
22052         (test-xfail-tst-tlsalign-static): New variable.
22053
22054         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
22055         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
22056
22057 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
22058
22059         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
22060         csqrt, erfc, sin and sincos.
22061         * math/auto-libm-test-out: Regenerated.
22062         * sysdeps/i386/fpu/libm-test-ulps: Update.
22063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22064
22065 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22066
22067         * sysdeps/aarch64/libm-test-ulps: Update.
22068
22069 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
22070
22071         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
22072         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
22073         * math/auto-libm-test-out: Regenerated.
22074         * sysdeps/i386/fpu/libm-test-ulps: Update.
22075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22076
22077 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
22078
22079         [BZ #18265]
22080         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
22081         (wcsncpy): Likewise.
22082
22083 2015-05-05  Florian Weimer  <fweimer@redhat.com>
22084
22085         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
22086         Assume __ASSUME_FALLOCATE is always true.
22087         * sysdeps/unix/sysv/linux/posix_fallocate64.c
22088         (__posix_fallocate64_l64): Likweise.
22089         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
22090         (posix_fallocate): Likewise.
22091         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
22092         (__posix_fallocate64_l64): Likewise.
22093         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22094         [!__ASSUME_FALLOCATE]: Add comment.
22095
22096 2015-05-05  Florian Weimer  <fweimer@redhat.com>
22097
22098         * sysdeps/unix/sysv/linux/i386/Makefile
22099         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
22100         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
22101         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
22102         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
22103         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
22104         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
22105         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
22106
22107 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
22108
22109         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
22110         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
22111         tgamma.
22112         * math/auto-libm-test-out: Regenerated.
22113         * sysdeps/i386/fpu/libm-test-ulps: Update.
22114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22115
22116 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
22117
22118         * math/auto-libm-test-in: Add more tests of tgamma.
22119         * math/auto-libm-test-out: Regenerated.
22120         * sysdeps/i386/fpu/libm-test-ulps: Update.
22121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22122
22123         * math/auto-libm-test-in: Add more tests of tanh.
22124         * math/auto-libm-test-out: Regenerated.
22125         * sysdeps/i386/fpu/libm-test-ulps: Update.
22126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22127
22128         * math/auto-libm-test-in: Add more tests of tan.
22129         * math/auto-libm-test-out: Regenerated.
22130         * sysdeps/i386/fpu/libm-test-ulps: Update.
22131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22132
22133         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
22134         * math/auto-libm-test-out: Regenerated.
22135         * sysdeps/i386/fpu/libm-test-ulps: Update.
22136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22137
22138         * math/auto-libm-test-in: Add another test of pow.
22139         * math/auto-libm-test-out: Regenerated.
22140         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22141
22142         * math/auto-libm-test-in: Add more tests of lgamma.
22143         * math/auto-libm-test-out: Regenerated.
22144         * sysdeps/i386/fpu/libm-test-ulps: Update.
22145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22146
22147         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
22148         log1p.
22149         * math/auto-libm-test-out: Regenerated.
22150         * sysdeps/i386/fpu/libm-test-ulps: Update.
22151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22152
22153 2015-05-01  Mark Wielaard  <mjw@redhat.com>
22154
22155         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
22156         Elf64_Chdr structs and ELFCOMPRESS constants.
22157
22158 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
22159
22160         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
22161         expm1.
22162         * math/auto-libm-test-out: Regenerated.
22163         * sysdeps/i386/fpu/libm-test-ulps: Update.
22164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22165
22166         * math/auto-libm-test-in: Add more tests of erf and erfc.
22167         * math/auto-libm-test-out: Regenerated.
22168         * sysdeps/i386/fpu/libm-test-ulps: Update.
22169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22170
22171 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22172
22173         * config.h.in (HAVE_AARCH64_BE): Add.
22174
22175 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
22176
22177         * math/auto-libm-test-in: Add more tests of csqrt.
22178         * math/auto-libm-test-out: Regenerated.
22179         * sysdeps/i386/fpu/libm-test-ulps: Update.
22180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22181
22182         * math/auto-libm-test-in: Add more tests of cosh and sinh.
22183         * math/auto-libm-test-out: Regenerated.
22184         * sysdeps/i386/fpu/libm-test-ulps: Update.
22185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22186
22187         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
22188
22189 2015-04-29  Roland McGrath  <roland@hack.frob.com>
22190
22191         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
22192         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
22193
22194         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
22195         (euidaccess, eaccess): Define as weak aliases.
22196
22197         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
22198         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
22199         but __suseconds_t is often 'long int' so some sources assume that
22200         type is being used (e.g. they use %ld to print tv_usec).
22201
22202 2015-04-29  Florian Weimer  <fweimer@redhat.com>
22203
22204         [BZ #18007]
22205         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
22206         (CVE-2014-8121)
22207         * nss/tst-nss-getpwent.c: New file.
22208         * nss/Makefile (tests): Add new test.
22209
22210 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
22211
22212         [BZ #18346]
22213         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
22214         exponents less than 48 as cases where high part of mantissa needs
22215         examining to determine whether argument is integral.
22216         * math/libm-test.inc (round_test_data): Add more tests.
22217
22218 2015-04-28  Mark Wielaard  <mjw@redhat.com>
22219
22220         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
22221
22222 2015-04-27  David S. Miller  <davem@davemloft.net>
22223
22224         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
22225         __tls_get_addr.
22226         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
22227
22228 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
22229
22230         [BZ#18333]
22231         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
22232
22233 2015-04-27  Florian Weimer  <fweimer@redhat.com>
22234
22235         [BZ#18333]
22236         * time/tzset.c (parse_tzname): Return error on memory allocation
22237         failure.
22238         * test-skeleton.c (struct temp_name_list): Change type of name
22239         member to non-const.
22240         (add_temp_file): Create a copy of the file name.
22241         (delete_temp_files): Deallocate memory.
22242         (create_temp_file): Add comment.
22243
22244 2015-04-24  Florian Weimer  <fweimer@redhat.com>
22245
22246         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
22247         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
22248
22249 2015-04-24  Roland McGrath  <roland@hack.frob.com>
22250
22251         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
22252         * sysdeps/arm/configure: Regenerated.
22253
22254 2015-04-24  Florian Weimer  <fweimer@redhat.com>
22255
22256         [BZ #17715]
22257         * time/tzfile.c (__tzfile_read): Check for large values of
22258         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
22259         * time/tzset.c (__tzstring_len): New function, based on the old
22260         __tzstring function.
22261         (__tzstring): Call __tzstring_len.
22262         (parse_tzname): New helper function extracted from
22263         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
22264         the input string.
22265         (parse_offset): New helper function extracted from
22266         __tzset_parse_tz.  Replace switch with fallthrough with
22267         initialization before sscanf.
22268         (parse_rule): Likewise.
22269         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
22270         new-style function definition.
22271         * timezone/Makefile (tests): Add tst-tzset.
22272         (tst-tzset.out): Dependencies on time zone files.
22273         (tst-tzset-ENV): Set TZDIR.
22274         (testdata/XT%): Copy crafted time zone files.
22275         * timezone/README: Mention crafted time zone files.
22276         * timezone/testdata/XT1, timezone/testdata/XT2,
22277         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
22278         files.
22279         * timezone/tst-tzset.c: New test.
22280
22281 2015-04-24  Florian Weimer  <fweimer@redhat.com>
22282
22283         * Makeconfig (+gccwarn): Remove -Winline.
22284
22285 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
22286
22287         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
22288
22289 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
22290
22291         * NEWS: Mention sysconf() cache information support for s390.
22292         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
22293
22294 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
22295
22296         * math/k_casinh.c (__kernel_casinh): Use __copysign.
22297         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
22298         (__nearbyint): Likewise.
22299         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
22300         (copysignl): Likewise.
22301
22302 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
22303
22304         [BZ #18287]
22305         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
22306         based on padding.  (CVE-2015-1781)
22307
22308 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22309
22310         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
22311         libc-vdso.h.
22312         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
22313         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
22314         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
22315         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
22316         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
22317         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
22318         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
22319         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
22320         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
22321         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
22322         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
22323         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
22324         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
22325         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
22326         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
22327         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
22328         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
22329         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
22330         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
22331         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
22332         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
22333         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
22334         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
22335
22336 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
22337
22338         * stdlib/setenv.c (__add_to_environ):
22339         Dump core quickly if setenv (..., NULL, ...) is called.
22340         This time, do it the right way, and pacify GCC with a pragma.
22341
22342 2015-04-17  Roland McGrath  <roland@hack.frob.com>
22343
22344         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
22345         IMAP->l_prev cannot be null, and #if out the code for the contrary
22346         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
22347         believe that NS (&_dl_ns[NSID]) could point outside the array.
22348
22349         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
22350         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
22351         before using NSID as an index.
22352
22353 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
22354
22355         [BZ #17825]
22356         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
22357         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
22358         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
22359
22360 2015-04-17  Roland McGrath  <roland@hack.frob.com>
22361
22362         Add preliminary port to Google Native Client on ARM.
22363         * abi-tags (.*-.*-nacl.*): New entry.
22364         * sysdeps/arm/nacl: New directory.
22365         * sysdeps/nacl: New directory.
22366
22367 2015-04-16  David S. Miller  <davem@davemloft.net>
22368
22369         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
22370         lowlevellock-futex.h
22371
22372 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
22373
22374         * sysdeps/tile/configure.ac: New file.
22375         * sysdeps/tile/configure: Regenerated.
22376
22377 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22378
22379         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
22380         conditionals for weak_alias and libc_hidden_weak.
22381         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
22382         libc_hidden_weak and weak_alias.
22383         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
22384         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
22385         and weak_alias for static one.
22386
22387 2015-04-15  David S. Miller  <davem@davemloft.net>
22388
22389         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
22390
22391 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
22392
22393         [BZ #18206]
22394         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
22395           Use signed comparision instead of substraction to avoid
22396           overflow bug.
22397         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
22398           Take the sign of ret.
22399         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
22400           Do not expect precise return values. Only the sign matters.
22401         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
22402         * wcsmbs/test-wcsncmp.c: New File.
22403         * string/test-strncmp.c: Add wcsncmp support.
22404
22405 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
22406
22407         [BZ #6792]
22408         * math/w_log1p.c: New file.
22409         * math/w_log1pf.c: Likewise.
22410         * math/w_log1pl.c: Likewise.
22411         * math/Makefile (libm-calls): Add w_log1p.
22412         * math/s_log1pl.c (log1pl): Remove weak_alias.
22413         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
22414         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
22415         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
22416         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
22417         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
22418         [NO_LONG_DOUBLE] (log1pl): Likewise.
22419         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
22420         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
22421         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
22422         (log1p): Remove long_double_symbol.
22423         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
22424         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
22425         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
22426         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
22427         remove weak_alias for corresponding log1p function.
22428         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
22429         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
22430         * sysdeps/ia64/fpu/w_log1p.c: New file.
22431         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
22432         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
22433         * math/libm-test.inc (log1p_test_data): Add errno expectations.
22434
22435 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
22436
22437         [BZ #18247]
22438         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
22439         decimal exponent by 1.
22440         * stdlib/tst-strtod-round-data: Add more tests.
22441         * stdlib/tst-strtod-round.c (tests): Regenerated.
22442
22443 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
22444
22445         * math/auto-libm-test-in: Add more tests of clog and clog10.
22446         * math/auto-libm-test-out: Regenerated.
22447         * sysdeps/i386/fpu/libm-test-ulps: Update.
22448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22449
22450 2015-04-09  Roland McGrath  <roland@hack.frob.com>
22451
22452         * Makeconfig (module-cppflags): Exclude all .v.i files.
22453         (skip-module-cppflags): Variable removed.
22454
22455         * configure.ac (libc_config_ok): Initialize before reading
22456         preconfigure scripts, not after.
22457         * configure: Regenerated.
22458
22459         * test-skeleton.c (TIMEOUT): Move #define to top level.
22460         (main): Grok environment variable TEST_DIRECT.  If set, print
22461         test expectation details into that file and then behave as if
22462         given --direct.
22463
22464 2015-04-09  Florian Weimer  <fweimer@redhat.com>
22465
22466         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
22467         warning on 32-bit.
22468
22469 2015-04-08  David S. Miller  <davem@davemloft.net>
22470
22471         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22472
22473 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
22474
22475         * math/auto-libm-test-in: Add more tests of atanh.
22476         * math/auto-libm-test-out: Regenerated.
22477         * sysdeps/i386/fpu/libm-test-ulps: Update.
22478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22479
22480         * math/auto-libm-test-in: Add more tests of atan.
22481         * math/auto-libm-test-out: Regenerated.
22482         * sysdeps/i386/fpu/libm-test-ulps: Update.
22483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22484
22485 2015-04-08  Florian Weimer  <fweimer@redhat.com>
22486
22487         * elf/pldd.c (main): Rewrite to use struct
22488         scratch_buffer instead of extend_alloca.
22489         * elf/pldd-xx.c (find_maps): Likewise.
22490         * grp/initgroups.c: Include <scratch_buffer.h> instead of
22491         <alloca.h>.
22492         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
22493         scratch_buffer instead of extend_alloca.
22494         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
22495         grp/compat-initgroups.c.
22496         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
22497         Rewrite to use struct scratch_buffer instead of extend_alloca.
22498         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
22499         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
22500
22501 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
22502
22503         * math/auto-libm-test-in: Add more tests of cbrt.
22504         * math/auto-libm-test-out: Regenerated.
22505         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22506
22507         * math/auto-libm-test-in: Add more tests of cabs.
22508         * math/auto-libm-test-out: Regenerated.
22509         * sysdeps/i386/fpu/libm-test-ulps: Update.
22510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22511
22512         [BZ #18210]
22513         [BZ #18211]
22514         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
22515         (__ieee754_atan2): Set FE_TONEAREST mode for internal
22516         computations.
22517         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
22518         clog10.
22519         * math/auto-libm-test-out: Regenerated.
22520         * sysdeps/i386/fpu/libm-test-ulps: Update.
22521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22522
22523         [BZ #18197]
22524         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
22525         (atan): Set FE_TONEAREST mode for internal computations.
22526         * math/auto-libm-test-in: Add more tests of atan.
22527         * math/auto-libm-test-out: Regenerated.
22528
22529 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
22530
22531         [BZ #17930]
22532         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
22533
22534 2015-04-07  Florian Weimer  <fweimer@redhat.com>
22535
22536         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
22537
22538 2015-04-07  Florian Weimer  <fweimer@redhat.com>
22539
22540         * include/scratch_buffer.h: New file.
22541         * malloc/scratch_buffer_grow.c: Likewise.
22542         * malloc/scratch_buffer_grow_preserve.c: Likewise.
22543         * malloc/scratch_buffer_set_array_size.c: Likewise.
22544         * malloc/tst-scratch_buffer.c: Likewise.
22545         * malloc/Makefile (routines): Add scratch_buffer_grow.
22546         (tests): Add test case.
22547         * malloc/Versions (GLIBC_PRIVATE): Export
22548         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
22549         __libc_scratch_buffer_set_array_size.
22550
22551 2015-04-06  Richard Henderson  <rth@redhat.com>
22552
22553         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
22554         * sysdeps/alpha/fpu/libm-test-ulps: Update.
22555
22556         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
22557         unsigned int before printing.
22558
22559 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22560
22561         [BZ #17596]
22562         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
22563         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
22564
22565 2015-04-02  Florian Weimer  <fweimer@redhat.com>
22566
22567         * include/libc-internal.h (libc_max_align_t): Define.
22568
22569 2015-04-02  Andreas Schwab  <schwab@suse.de>
22570
22571         [BZ #16850]
22572         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
22573
22574 2015-04-02  Mel Gorman  <mgorman@suse.de>
22575
22576         [BZ #17195]
22577         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
22578         as well as the main arena.
22579
22580 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
22581
22582         [BZ #18185]
22583         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
22584         sharing L2 cache to 2 for Silvermont/Knights Landing.
22585
22586 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
22587
22588         [BZ #17711]
22589         * config.make.in (have-protected-data): New.
22590         * configure.ac: Check linker support for protected data symbol.
22591         * configure: Regenerated.
22592         * elf/Makefile (modules-names): Add tst-protected1moda and
22593         tst-protected1modb if $(have-protected-data) is yes.
22594         (tests): Add tst-protected1a and tst-protected1b if
22595         $(have-protected-data) is yes.
22596         ($(objpfx)tst-protected1a): New.
22597         ($(objpfx)tst-protected1b): Likewise.
22598         (tst-protected1modb.so-no-z-defs): Likewise.
22599         * elf/tst-protected1a.c: New file.
22600         * elf/tst-protected1b.c: Likewise.
22601         * elf/tst-protected1mod.h: Likewise.
22602         * elf/tst-protected1moda.c: Likewise.
22603         * elf/tst-protected1modb.c: Likewise.
22604
22605 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
22606
22607         [BZ #17711]
22608         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
22609         indicates it is called from do_lookup_x on relocation against
22610         protected data, skip the data definion in the executable from
22611         copy reloc.
22612         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
22613         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
22614         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
22615         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
22616         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
22617         otherwise to 0.
22618         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
22619         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
22620         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
22621         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
22622         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
22623         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
22624
22625 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
22626
22627         * sysdeps/nptl/pthread.h: Remove duplicate definition of
22628         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
22629
22630 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
22631
22632         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
22633         THREAD_SETMEM_NC.
22634         * sysdeps/x86_64/nptl/tls.h: Ditto.
22635
22636 2015-03-27  Roland McGrath  <roland@hack.frob.com>
22637
22638         * dlfcn/tststatic.c (main): Converted to ...
22639         (do_test): ... this.
22640         (TEST_FUNCTION): New macro.
22641         Include test-skeleton.c.
22642
22643 2015-03-26  Alan Modra  <amodra@gmail.com>
22644
22645         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
22646         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
22647         zero for undefined weak.
22648         (elf_machine_plt_conflict): Similarly.
22649
22650 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
22651
22652         * math/auto-libm-test-in: Add more tests of acosh, asinh and
22653         atanh.
22654         * math/auto-libm-test-out: Regenerated.
22655         * sysdeps/i386/fpu/libm-test-ulps: Update.
22656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22657
22658         * math/auto-libm-test-in: Add another test of asin.
22659         * math/auto-libm-test-out: Regenerated.
22660         * sysdeps/i386/fpu/libm-test-ulps: Update.
22661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22662
22663         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
22664         Remove macro.
22665         (LLL_EBX_REG): Likewise.
22666         (LLL_ENTER_KERNEL): Likewise.
22667
22668         * math/auto-libm-test-in: Add more tests of asin.
22669         * math/auto-libm-test-out: Regenerated.
22670         * sysdeps/i386/fpu/libm-test-ulps: Update.
22671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22672
22673         [BZ #18138]
22674         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
22675         libc_do_syscall_args): New structure.
22676         (INTERNAL_SYSCALL_MAIN_0): New macro.
22677         (INTERNAL_SYSCALL_MAIN_1): Likewise.
22678         (INTERNAL_SYSCALL_MAIN_2): Likewise.
22679         (INTERNAL_SYSCALL_MAIN_3): Likewise.
22680         (INTERNAL_SYSCALL_MAIN_4): Likewise.
22681         (INTERNAL_SYSCALL_MAIN_5): Likewise.
22682         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
22683         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
22684         Replace conditional definitions by conditional definitions of ....
22685         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
22686         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
22687         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
22688         (libpthread-sysdep_routines): Add libc-do-syscall.
22689         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
22690         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
22691         to __NR_futex not 240.
22692
22693 2015-03-25  Alan Modra  <amodra@gmail.com>
22694
22695         * NEWS: Advertise TLS optimization.
22696         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
22697         (DT_PPC_NUM): Increment.
22698         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
22699         (CHECK_STATIC_TLS): Use here.
22700         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
22701         TLS descriptors.
22702         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
22703         * sysdeps/powerpc/dl-tls.c: New file.
22704         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
22705         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
22706         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
22707         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
22708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
22709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
22710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
22711
22712 2015-03-25  Alan Modra  <amodra@gmail.com>
22713
22714         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
22715         for overlapping .opd entries" to "support...".
22716         * sysdeps/powerpc/powerpc64/configure: Regenerate
22717
22718 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
22719
22720         * math/auto-libm-test-in: Add more tests of acos.
22721         * math/auto-libm-test-out: Regenerated.
22722         * sysdeps/i386/fpu/libm-test-ulps: Update.
22723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22724
22725         * math/auto-libm-test-in: Add more tests of expm1.
22726         * math/auto-libm-test-out: Regenerated.
22727         * sysdeps/i386/fpu/libm-test-ulps: Update.
22728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22729
22730 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
22731
22732         * math/auto-libm-test-in: Add more tests of cosh and sinh.
22733         * math/auto-libm-test-out: Regenerated.
22734         * sysdeps/i386/fpu/libm-test-ulps: Update.
22735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22736
22737         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
22738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22739
22740         * math/auto-libm-test-in: Add more tests of log2.
22741         * math/auto-libm-test-out: Regenerated.
22742         * sysdeps/i386/fpu/libm-test-ulps: Update.
22743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22744
22745 2015-03-23  Roland McGrath  <roland@hack.frob.com>
22746
22747         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
22748         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
22749         _IO_IS_APPENDING bit in READ_WRITE instead.
22750
22751 2015-03-23  Florian Weimer  <fweimer@redhat.com>
22752
22753         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
22754         (__determine_cpumask_size): Replace extend_alloca with a
22755         variable-length array.  Do not treat res == 0 as an error.
22756
22757 2015-03-23  Florian Weimer  <fweimer@redhat.com>
22758
22759         [BZ #18100]
22760         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
22761         and integer overflow.
22762         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
22763         (main): Add integer overflow tests.
22764         * manual/pattern.texi (Calling Wordexp): Document additional use
22765         for WRDE_SYNTAX.
22766
22767 2015-03-23  Alan Modra  <amodra@gmail.com>
22768
22769         * config.h.in: Remove HAVE_ASM_PPC_REL16.
22770         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
22771         and false branch of conditional.
22772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
22773         Likewise.
22774
22775 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
22776
22777         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
22778         libc-modules.h
22779         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
22780         unused declaration of _hurd_intr_rpc_msg_in_trap.
22781         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
22782         defined instead of whether it is non-zero.
22783         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
22784         input constraint instead of both input and output constraint.  Use ecx
22785         clobber instead of %ecx.
22786         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
22787         mutex_unlock): Use a statement expression instead of an expression list.
22788         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
22789         type to vm_size_t instead of vm_address_t.
22790         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
22791         defined instead of whether it is non-zero.
22792         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
22793         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
22794         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
22795         comparisons with mapaddr.
22796         * nscd/nscd-client.h: Include <time.h>.
22797         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
22798         9th parameter to __vm_region instead of int.
22799         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
22800         * scripts/check-local-headers.sh (exclude): Add device/,
22801         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
22802         cthreads.h.
22803
22804 2015-03-19  Roland McGrath  <roland@hack.frob.com>
22805
22806         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
22807         to account for alignment padding.
22808         * sysdeps/arm/memmove.S: Likewise.
22809
22810 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
22811
22812         * sysdeps/unix/sysv/linux/generic/README: New file.
22813
22814 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
22815
22816         [BZ #18138]
22817         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
22818         (futex_abstimed_wait)
22819         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
22820         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
22821         of lll_futex_timed_wait.
22822
22823 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
22824
22825         [BZ #17542]
22826         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
22827
22828 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
22829
22830         [BZ #17090]
22831         [BZ #17620]
22832         [BZ #17621]
22833         [BZ #17628]
22834         * NEWS: Update.
22835         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
22836         entries with Static TLS too.  Skip entries past the end of the
22837         allocated DTV, from Alan Modra.
22838         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
22839         Static TLS DTV entry set up from...
22840         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
22841         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
22842         * nptl/allocatestack.c (init_one_static_tls): ... and here...
22843         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
22844         for Static TLS.
22845         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
22846         that the slot we find is associated with the given map before
22847         using its generation count.
22848         * nptl_db/db_info.c: Include ldsodefs.h.
22849         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
22850         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
22851         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
22852         (link_map::l_tls_offset): New struct field.
22853         (dtv_t::counter): Likewise.
22854         (rtld_global): New struct.
22855         (_rtld_global): New rtld variable.
22856         (dl_tls_dtv_slotinfo_list): New rtld global field.
22857         (dtv_slotinfo_list): New struct.
22858         (dtv_slotinfo): Likewise.
22859         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
22860         (td_lookup): Rename to...
22861         (td_mod_lookup): ... this.  Use new mod parameter instead of
22862         LIBPTHREAD_SO.
22863         * nptl_db/td_thr_tlsbase.c: Include link.h.
22864         (dtv_slotinfo_list, dtv_slotinfo): New functions.
22865         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
22866         addresses even if the DTV is out of date or missing them.
22867         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
22868         index zero-length arrays.
22869         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
22870         (td_lookup): Make it a macro implemented in terms of...
22871         (td_mod_lookup): ... this declaration.
22872         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
22873         (DB_MAIN_VARIABLE): Likewise.
22874
22875 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22876
22877         [BZ #18134]
22878         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
22879
22880 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
22881
22882         * stdlib/setenv.c (__add_to_environ): Revert previous change.
22883
22884 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
22885
22886         [BZ #18128]
22887         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
22888         (atomic_add, atomic_increment_and_test)
22889         (atomic_decrement_and_test): Fix 64-bit arithmetic.
22890
22891 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
22892
22893         * stdlib/setenv.c (__add_to_environ):
22894         Dump core quickly if setenv (..., NULL, ...) is called.
22895
22896 2015-03-13  Roland McGrath  <roland@hack.frob.com>
22897
22898         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
22899         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
22900         all the necessary asm magic in one place.
22901         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
22902         using those.
22903
22904 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
22905
22906         [BZ #14906]
22907         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
22908         traced file mtime. Use consistent log message.
22909         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
22910         (register_traced_file): Call install_watches. Always set mtime.
22911         (invalidate_cache): Iterate over all trace files. Call install_watches.
22912         (inotify_check_files): Don't inline. Handle watching parent
22913         directories and configuration file movement in and out.
22914         (handle_inotify_events): New function.
22915         (main_loop_poll): Call handle_inotify_events.
22916         (main_loop_epoll): Likewise.
22917         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
22918         (struct traced_file): Use array of inotify fds. Add parent directory,
22919         and basename.
22920         (struct database_dyn): Remove unused file_mtime.
22921         (init_traced_file): New inline function.
22922         (define_traced_file): New macro.
22923         * nss/nss_db/db-init.c: Use define_traced_file.
22924         (_nss_db_init): Use init_traced_file.
22925         * nss/nss_files/files-init.c: Use define_traced_file.
22926         (_nss_files_init): Use init_traced_file.
22927
22928 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
22929
22930         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
22931         [_LIBC]: Do not include <stdlib.h>.
22932         [!_LIBC] (abort): Remove declaration.
22933         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
22934         _FP_STATIC_ASSERT instead of conditionally calling abort.
22935         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
22936         (_FP_EXTEND_CNAN): Likewise.
22937         (FP_TRUNC): Likewise.
22938         (__FP_CLZ): Likewise.
22939         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
22940
22941 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
22942
22943         * manual/string.texi (XPG basename): Fix prototype.
22944
22945 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22946
22947         [BZ #18080]
22948         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
22949         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
22950         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
22951         (__setcontext): Likewise.
22952         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
22953         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
22954         Call rt_sigprocmask syscall one time to set new signal mask
22955         and retrieve the current signal mask instead of two calls.
22956         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
22957         (__swapcontext): Likewise.
22958         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
22959         * stdlib/tst-setcontext2.c: New file.
22960
22961 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22962
22963         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
22964
22965 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
22966
22967         [BZ #18093]
22968         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
22969         the wrong size.
22970
22971 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
22972
22973         [BZ #18043]
22974         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
22975
22976 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
22977
22978         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
22979         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
22980         Remove define.
22981         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
22982         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
22983         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
22984         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
22985         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
22986         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
22987         define.
22988         * nptl_db/td_symbol_list.c (td_lookup): Remove
22989         HAVE_ASM_GLOBAL_DOT_NAME code.
22990         * sysdeps/powerpc/powerpc64/configure.ac: Remove
22991         HAVE_ASM_GLOBAL_DOT_NAME check.
22992         * sysdeps/powerpc/powerpc64/configure: Regenerate.
22993         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
22994         (DOT_LABEL): Remove define.
22995         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
22996         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
22997         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
22998         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
22999         (__TLS_GET_ADDR): Likewise.
23000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
23001         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
23002
23003 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
23004
23005         [BZ #18111]
23006         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
23007         (_FPU_SETCW): Initialize cw from fpsr before storing.
23008         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
23009         (fesetexceptflag): Rewrite using fpu_control.h.
23010         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
23011
23012 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
23013
23014         [BZ #18110]
23015         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
23016         asms.
23017         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
23018
23019 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
23020
23021         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
23022         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
23023         abort.
23024         (_FP_FMA): Likewise.
23025         (_FP_DIV): Likewise.
23026
23027 2015-03-10  Roland McGrath  <roland@hack.frob.com>
23028
23029         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
23030         with 0 in that case.
23031         * Makefile (summarize-tests): New canned sequence, factored out of
23032         commands for targets tests and xtests.  Display summary lines that
23033         don't start with PASS: or XFAIL: rather than ones that do start with
23034         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
23035         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
23036         do start with ERROR: or FAIL:.
23037         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
23038         (except for [$(build-shared) = yes]).
23039         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
23040         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
23041         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
23042         * nptl/Makefile: Revert 2015-03-04 changes.
23043         [$(CXX) empty] (tests-unsupported): New variable.
23044         * debug/Makefile: Likewise.
23045
23046         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
23047         gnulib file.  Replace __attribute with __attribute__ throughout.
23048
23049 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
23050
23051         * sysdeps/hppa/fpu/libm-test-ulps: Update.
23052
23053 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
23054
23055         [BZ #18104]
23056         * math/auto-libm-test-in: Add another test of pow.
23057         * math/auto-libm-test-out: Regenerated.
23058
23059 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23060
23061         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
23062         $(config-cflags-nofma).
23063
23064 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
23065
23066         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
23067         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
23068         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
23069         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
23070         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
23071         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
23072         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
23073         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
23074         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
23075         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
23076         Add comment on closing #endif.
23077
23078 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
23079
23080         * posix/wordexp.c (CHAR_IN_SET): New macro.
23081         (parse_param): Use it.
23082
23083 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23084
23085         * sysdeps/powerpc/fpu/libm-test-ulps: update.
23086
23087 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
23088
23089         [BZ #18043]
23090         * posix/wordexp.c (parse_param): Fix buffer overflow.
23091         * posix/wordexp-test.c (test_case): Add test case.
23092
23093 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
23094
23095         [BZ #18042]
23096         * posix/wordexp.c (parse_backtick): Fix off-by-one.
23097         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
23098
23099 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
23100
23101         [BZ #18043]
23102         * posix/wordexp-test.c (test_case): Add test for BZ #18043
23103         (do_bz18043): Delete.
23104         (at_page_end): New.
23105         (testit): Refactor to have words at the edge of unreadable page.
23106
23107 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
23108
23109         [BZ #16734]
23110         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
23111         Cleanup read-only streams as well.
23112         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
23113
23114 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23115
23116         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
23117         <bits/libc-lockP.h>
23118
23119 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
23120
23121         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
23122         on [__KERNEL__].
23123         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
23124         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
23125         * soft-fp/op-common.h (_FP_DECL): Likewise.
23126
23127 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
23128
23129         * elf/ifuncdep2.c (global): Replace
23130         __attribute__((visibility("protected"))) with
23131         asm (".protected global").
23132         * elf/ifuncmod1.c (global): Likewise.
23133         * elf/ifuncmod5.c (global): Likewise.
23134
23135 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
23136
23137         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
23138         <asm/sfp-machine.h> instead of <sfp-machine.h>.
23139
23140 2015-03-06  Roland McGrath  <roland@hack.frob.com>
23141
23142         * manual/install.texi (Configuring and compiling):
23143         Document test-wrapper-env-only.
23144         * INSTALL: Regenerated.
23145
23146 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
23147
23148         [BZ #18043]
23149         * posix/wordexp.c (parse_param): Fix buffer overflow.
23150         * posix/wordexp-test.c (do_bz18043): Add test case.
23151
23152 2015-03-06  Vincent Bernat  <vincent@bernat.im>
23153
23154         * time/tst-strptime2.c (do_test): Ensure failing tests are
23155         reported correctly.
23156         * time/tst-strptime3.c (do_test): Likewise.
23157
23158 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
23159
23160         Fix aio_error thread-safety.
23161         * sysdeps/pthread/aio_error.c: New file
23162         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
23163         synchronization.
23164
23165 2015-03-06  Florian Weimer  <fweimer@redhat.com>
23166
23167         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
23168         (group_number, vfprintf): Use it.
23169         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
23170         (JUMP, REF): Use it.
23171         (WORK_BUFFER_SIZE): New enum constant.
23172         (process_arg, vfprintf): Use it.
23173
23174 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
23175
23176         * manual/errno.texi (Error Messages): Complete example function
23177         by adding missing #define.
23178         (program_invocation_name): Add statement indicating GNU
23179         extension and reference which header file declares the variable.
23180         (program_invocation_short_name): Likewise.
23181
23182 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
23183
23184         * manual/errno.texi (Error Messages): Delete strerror ISO C89
23185         compatibility note.
23186
23187 2015-03-05  Roland McGrath  <roland@hack.frob.com>
23188
23189         * Makeconfig (test-wrapper-env-only): New variable.
23190         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
23191         then use that with $(test-wrapper-env-only) rather than using
23192         $(test-wrapper-env) $(run-program-env) $($*-ENV).
23193
23194 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
23195
23196         [BZ #18082]
23197         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
23198         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
23199         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
23200         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
23201         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
23202         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
23203         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
23204         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
23205         Likewise.
23206         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
23207         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
23208         Likewise.
23209         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
23210         Likewise.
23211         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
23212         Likewise.
23213         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
23214         Likewise.
23215         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
23216         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
23217         Likewise.
23218         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
23219         Likewise.
23220         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
23221         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
23222
23223 2015-03-04  Roland McGrath  <roland@hack.frob.com>
23224
23225         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
23226         (ETH_ALEN): New macro.
23227         (struct ether_addr): Use it for length of ether_addr_octet.
23228
23229         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
23230         (setdb): Don't call __nss_configure_lookup for "rpc".
23231         (do_test): Don't call test_rpc.
23232         (output_rpcent, test_rpc): Functions moved ...
23233         * sunrpc/test-rpcent.c: ... to this new file.
23234         * sunrpc/Makefile (tests): Add it.
23235
23236         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
23237         __xpg_sigpause.
23238         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
23239         * nptl/tst-signal6.c: Likewise.
23240         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
23241         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
23242
23243         * configure.ac (libc_cv_cxx_link_ok): New check.
23244         Reset CXX to empty if it fails to link.
23245         * configure: Regenerated.
23246         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
23247         bug-atexit3-lib only if $(CXX) is nonempty.
23248         * nptl/Makefile (tests): Likewise for tst-cancel24.
23249         (tests, tests-static): Likewise for tst-cancel24-static.
23250         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
23251         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
23252         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
23253         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
23254
23255 2015-03-04  Andreas Schwab  <schwab@suse.de>
23256
23257         [BZ #17631]
23258         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
23259         for non-GCC compilers.
23260         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
23261         Likewise.
23262
23263 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
23264
23265         [BZ #17776]
23266         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
23267         integer before bitwise and assembly operations.
23268         (feclearexcept): Likewise.
23269         * math/test-fenvinline.c: New file.
23270         * math/Makefile: Add test-fenvinline test.
23271
23272 2015-03-03  Alan Modra  <amodra@gmail.com>
23273
23274         [BZ #16512]
23275         * scripts/localplt.awk: Strip off symbol version.
23276         * NEWS: Mention bug fix.
23277
23278 2015-03-02  Roland McGrath  <roland@hack.frob.com>
23279
23280         * sysdeps/pthread/timer_routines.c
23281         (timer_free_list, thread_free_list, thread_active_list): Make static.
23282
23283 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
23284
23285         [BZ #17779]
23286         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
23287         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
23288         Undefine.
23289         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
23290         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
23291         Likewise.
23292         * sysdeps/unix/sysv/linux/sh/kernel-features.h
23293         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
23294         Likewise.
23295
23296 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
23297
23298         [BZ #18036]
23299         * posix/fnmatch_loop.c (END): Detect invalid pattern.
23300         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
23301
23302 2015-03-02  Andreas Schwab  <schwab@suse.de>
23303
23304         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
23305         variable name.
23306
23307 2015-03-02  Florian Weimer  <fweimer@redhat.com>
23308
23309         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
23310         Return error status.
23311
23312 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
23313
23314         [BZ #15969]
23315         * locale/findlocale.c (_nl_find_locale): Introduce const
23316         version of loc_name and drop unsafe type casts.
23317
23318 2015-02-27  Roland McGrath  <roland@hack.frob.com>
23319
23320         * dlfcn/tststatic2.c (main): Converted to ...
23321         (do_test): ... this.
23322         (TEST_FUNCTION): New macro.
23323         Include test-skeleton.c.
23324
23325 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23326
23327         [BZ #17711]
23328         * elf/Makefile (tests): Add vismain only if PIE is enabled.
23329         (tests-pie): Add vismain.
23330         (CFLAGS-vismain.c): New.
23331         * elf/vismain.c: Add comments for PIE requirement.
23332
23333 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
23334
23335         [BZ #18046]
23336         [BZ #18047]
23337         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
23338         0x1p-56L as threshold for just returning the argument.
23339         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
23340         0x1p-32L as threshold for just returning the argument.
23341         * math/auto-libm-test-in: Add more tests of atanh.
23342         * math/auto-libm-test-out: Regenerated.
23343         * sysdeps/i386/fpu/libm-test-ulps: Update.
23344         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
23345
23346 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
23347
23348         * string/bcopy.c (bcopy): Call memmove for performance.
23349
23350 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
23351
23352         * string/bzero.c (__bzero): Call memset for performance.
23353
23354 2015-02-27  John David Anglin  <dave.anglin@bell.net>
23355
23356         [BZ #18068]
23357         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
23358         to 00100000.
23359
23360 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
23361
23362         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
23363
23364 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
23365
23366         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
23367         (__kernel_standard): Use CSTR macro when setting exc.name.
23368         * sysdeps/ieee754/Makefile [$(subdir) = math]
23369         (CFLAGS-k_standard.c): Remove variable.
23370
23371         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
23372         setting p and q from "else if" to "else".
23373         (qzero): Likewise.
23374         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
23375         (qone): Likewise.
23376         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
23377         (qzerof): Likewise.
23378         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
23379         (qonef): Likewise.
23380         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
23381         (qzero): Likewise.
23382         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
23383         (qone): Likewise.
23384
23385         [BZ #18038]
23386         [BZ #18039]
23387         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
23388         return pi/2 for arguments below 0x1p-113L.
23389         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
23390         return pi/2 for arguments below 0x1p-106L.
23391         * math/auto-libm-test-in: Add more tests of acos.
23392         * math/auto-libm-test-out: Regenerated.
23393
23394         [BZ #16351]
23395         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
23396         (MO): New macro.
23397         (__ieee754_asin): Force underflow exception for results with small
23398         absolute value.
23399         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
23400         (MO): New macro.
23401         (__ieee754_asinf): Force underflow exception for results with
23402         small absolute value.
23403         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
23404         (__ieee754_asin): Force underflow exception for results with small
23405         absolute value.
23406         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
23407         (__ieee754_asinf): Force underflow exception for results with
23408         small absolute value.
23409         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
23410         (__ieee754_asinl): Force underflow exception for results with
23411         small absolute value.
23412         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
23413         (__ieee754_asinl): Force underflow exception for results with
23414         small absolute value.
23415         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
23416         (__ieee754_asinl): Force underflow exception for results with
23417         small absolute value.
23418         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
23419         Include <math.h>.
23420         * math/auto-libm-test-in: Do not mark underflow exceptions as
23421         possibly missing for bug 16351.
23422         * math/auto-libm-test-out: Regenerated.
23423
23424         [BZ #18030]
23425         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
23426         of power of 2 down when low part has opposite sign.
23427         * math/libm-test.inc (logb_test_data): Add more tests.
23428
23429 2015-02-26  Andreas Schwab  <schwab@suse.de>
23430
23431         [BZ #18032]
23432         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
23433         over collating symbol inside a bracket expression.  Minor cleanup.
23434         * posix/tst-fnmatch3.c (do_test): Add test case.
23435
23436 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
23437
23438         [BZ #18029]
23439         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
23440         Adjust exponent of power of 2 down when low part has opposite
23441         sign.
23442         * math/libm-test.inc (ilogb_test_data): Add more tests.
23443
23444 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
23445
23446         [BZ #15969]
23447         * locale/findlocale.c (_nl_find_locale): Fix constness error in
23448         the previous change.
23449
23450         [BZ #15969]
23451         * locale/findlocale.c (_nl_find_locale): Retry archive search
23452         after alias expansion.
23453
23454 2015-02-25  Roland McGrath  <roland@hack.frob.com>
23455
23456         * iconv/tst-iconv3.c (main): Converted to ...
23457         (do_test): ... this.
23458         (TEST_FUNCTION): New macro.
23459         Include test-skeleton.c.
23460
23461         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
23462         (convert): Make function static.
23463         (test_unalign): Likewise.  Add const to argument pointee types.
23464         (main): Replace with static function do_test.
23465         Print "Succeeded." only if RET is zero.
23466         (TEST_FUNCTION): New macro.
23467         Include test-skeleton.c.
23468
23469         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
23470         returns a null pointer.
23471
23472 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23473
23474         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
23475         to __memcpy_ppc only for static builds.
23476
23477 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
23478
23479         [BZ #18020]
23480         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
23481         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
23482         * math/auto-libm-test-in: Add more tests of asinh.
23483         * math/auto-libm-test-out: Regenerated.
23484         * sysdeps/i386/fpu/libm-test-ulps: Update.
23485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23486
23487 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
23488
23489         [BZ #15850]
23490         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
23491         and ip6_mtuinfo definitions here.
23492         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
23493         in this define too.  Update comment.
23494
23495 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
23496
23497         * elf/sprof.c (load_shobj): Tweak error message to match others.
23498
23499 2015-02-24  Kevin Easton  <kevin@guarana.org>
23500
23501         [BZ #16145] (partial fix)
23502         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
23503         to reduce lock contention.
23504
23505 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
23506
23507         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
23508         (struct timex): Update time comment.
23509         (ADJ_SETOFFSET): Define.
23510
23511 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
23512
23513         [BZ #18019]
23514         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
23515         2**56 not 2**28 as threshold for log (2x) formula.
23516         * math/auto-libm-test-in: Add more tests of acosh.
23517         * math/auto-libm-test-out: Regenerated.
23518         * sysdeps/i386/fpu/libm-test-ulps: Update.
23519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23520
23521 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
23522
23523         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
23524         parenthesis around the buf assignment.
23525         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
23526
23527 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
23528
23529         [BZ #16783]
23530         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
23531         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
23532         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
23533         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
23534         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
23535         * math/libm-test.inc (scalb_test_data): Add more tests.
23536
23537 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
23538
23539         [BZ #17916]
23540         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
23541         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
23542
23543 2015-02-24  Eric Rannaud  <e@nanocritical.com>
23544
23545         [BZ #17523]
23546         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
23547         * io/bits/fcntl2.h (open): Use it.
23548         (openat): Likewise.
23549         * io/open.c (__libc_open): Likewise.
23550         * io/open64.c (__libc_open64): Likewise.
23551         * io/open64_2.c (__open64_2): Likewise.
23552         * io/open_2.c (__open_2): Likewise.
23553         * io/openat.c (__openat): Likewise.
23554         * io/openat64.c (__openat64): Likewise.
23555         * io/openat64_2.c (__openat64_2): Likewise.
23556         * io/openat_2.c (__openat_2): Likewise.
23557         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
23558         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
23559         * sysdeps/posix/open64.c (__libc_open64): Likewise.
23560         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
23561         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
23562         (__open_nocancel): Likewise.
23563         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
23564         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
23565         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
23566
23567 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23568
23569         [BZ #14841]
23570         * resolv/gethnamaddr.c (getanswer): Skip logging if
23571         RES_USE_DNSSEC is set.
23572         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
23573
23574 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
23575
23576         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
23577
23578 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
23579
23580         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
23581         201304L, for Unicode 7.
23582
23583 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
23584
23585         [BZ #17836]
23586         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
23587         shared library.  Add gmon-start.os otherwise.
23588         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
23589         $(objpfx)gmon-start.os if builing shared library.
23590         ($(objpfx)g$(static-start-installed-name)): Likewise.
23591
23592 2015-02-23  Andreas Schwab  <schwab@suse.de>
23593
23594         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
23595
23596 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23597
23598         [BZ #17269]
23599         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
23600         (enlarge_userbuf): Likewise.
23601
23602 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
23603
23604         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
23605         * math/atest-exp.c (TIMEOUT): Adjust to 200.
23606         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
23607         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
23608
23609 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
23610
23611         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
23612         expression inside statement expression.
23613
23614 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
23615
23616         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
23617         <sysdeps/nptl/lowlevellock.h> and remove macros and
23618         functions that are now defined there.
23619         (SYS_futex): Remove.
23620         (lll_compare_and_swap): Remove.
23621         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
23622
23623 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
23624
23625         [BZ #17999]
23626         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
23627         instead of scandirat.
23628         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
23629         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
23630         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
23631         __scandirat.
23632         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
23633         (__scandirat): Declare.  Use libc_hidden_proto.
23634         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
23635         Remove variable.
23636         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
23637
23638 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
23639
23640         [BZ #15319]
23641         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
23642         (MO): New macro.
23643         (__ieee754_atan2): For results with small absolute value, force
23644         underflow exception and remove excess range and precision from
23645         return value.
23646         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
23647         (MO): New macro.
23648         (__ieee754_atan2f): For results with small absolute value, force
23649         underflow exception and remove excess range and precision from
23650         return value.
23651         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
23652         (MO): New macro.
23653         (__atan): For results with small absolute value, force underflow
23654         exception and remove excess range and precision from return value.
23655         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
23656         (MO): New macro.
23657         (__atanf): For results with small absolute value, force underflow
23658         exception and remove excess range and precision from return value.
23659         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
23660         <math.h>.
23661         (__ieee754_atan2): Force underflow exception for results with
23662         small absolute value.
23663         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
23664         <math_private.h>.
23665         (atan): Force underflow exception for results with small absolute
23666         value.
23667         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
23668         (__atanf): Force underflow exception for results with small
23669         absolute value.
23670         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
23671         <math.h>.
23672         (__atanl): Force underflow exception for results with small
23673         absolute value.
23674         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
23675         (__atanl): Force underflow exception for results with small
23676         absolute value.
23677         * sysdeps/x86/fpu/bits/mathinline.h
23678         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
23679         (__ieee754_atan2): Only define inline for long double.
23680         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
23681         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
23682         * math/auto-libm-test-in: Do not mark underflow exceptions as
23683         possibly missing for bug 15319.  Add more tests of atan2.
23684         * math/auto-libm-test-out: Regenerated.
23685         * math/libm-test.inc (casin_test_data): Do not mark underflow
23686         exceptions as possibly missing for bug 15319.
23687         (casinh_test_data): Likewise.
23688         * sysdeps/i386/fpu/libm-test-ulps: Update.
23689
23690 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
23691
23692         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
23693         * sysdeps/mips/bits/endian.h: Fix comments.
23694
23695 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
23696
23697         [BZ #17996]
23698         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
23699         (hdestroy_r): Likewise.
23700         (hsearch_r): Likewise.
23701         (__hcreate_r): Declare and use libc_hidden_proto.
23702         (__hdestroy_r): Likewise.
23703         (__hsearch_r): Likewise.
23704         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
23705         (hcreate): Call __hcreate_r instead of hcreate_r.
23706         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
23707         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
23708         as weak alias of __hcreate_r.
23709         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
23710         __hdestroy_r.
23711         (hsearch_r): Rename to __hsearch_r and define as weak alias of
23712         __hsearch_r.
23713         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
23714         Remove variable.
23715         (test-xfail-XPG4/search.h/linknamespace): Likewise.
23716         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
23717         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
23718         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
23719
23720 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
23721
23722         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
23723         arena_lock into a single arena_get.
23724
23725 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
23726
23727         * dl-reloc.c: Inlucde libc-internal.h.
23728         (_dl_try_allocate_static_tls): Call ALIGN_UP.
23729         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
23730         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
23731         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
23732         (grow_heap): Likewise.
23733         * malloc/malloc.c: Include libc-internal.h.
23734         (do_check_malloc): Call powerof2.
23735         (sysmalloc): Use pagesize. Call ALIGN_UP.
23736         (systrim): Use pagesize.
23737         (mremap_chunk): Use pagesize. Call ALIGN_UP.
23738         (__libc_valloc): Use pagesize.
23739         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
23740
23741 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
23742
23743         [BZ #17991]
23744         * include/sys/resource.h (__getrlimit64): Declare.  Use
23745         libc_hidden_proto.
23746         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
23747         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
23748         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
23749         getrlimit64.
23750         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
23751         __getrlimit64.
23752         [!getrlimit64] (getrlimit64): Define as weak alias of
23753         __getrlimit64.  Use libc_hidden_weak.
23754         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
23755         using __getrlimit64 not __new_getrlimit64.
23756         (__GI_getrlimit64): Likewise.
23757         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
23758         Likewise.
23759         (__GI_getrlimit64): Likewise.
23760         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
23761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
23762         (getrlimit): Add __getrlimit64 alias.
23763         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
23764         Likewise.
23765         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
23766         Remove variable.
23767         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
23768         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
23769
23770 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
23771
23772         * libio/fileops.c: Add missing sys/mman.h
23773         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
23774
23775 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
23776
23777         * manual/math.texi (Errors in Math Functions): Clarify goals
23778         regarding inexact and underflow exceptions.
23779
23780 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
23781
23782         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
23783         * sysdeps/mips/memset.S: Ditto.
23784
23785 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
23786
23787         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
23788
23789 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23790
23791         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
23792         (__v1longjmp): Remove versioned symbol.
23793         (__v1siglongjmp): Remove alias and versioned symbol.
23794         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
23795         (__v2siglongjmp): Likewise.
23796
23797 2015-02-16  Torvald Riegel  <triegel@redhat.com>
23798
23799         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
23800
23801 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
23802
23803         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
23804
23805 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
23806
23807         [BZ #17987]
23808         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
23809         zero result does not depend on the sign resulting from
23810         subtraction.
23811         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
23812         Likewise.
23813         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
23814         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
23815         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
23816         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
23817         * math/libm-test.inc (remquo_test_data): Add more tests.
23818
23819 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23820
23821         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
23822         Problem reported by J William Piggott.
23823
23824 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
23825
23826         [BZ #17978]
23827         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
23828         products 4 * y and 2 * y where those would overflow.
23829         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
23830         Likewise.
23831         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
23832         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
23833         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
23834         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
23835         * math/libm-test.inc (remquo_test_data): Add more tests.
23836
23837         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
23838
23839         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
23840         [defined _COMPILING_NEWLIB].
23841         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
23842         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
23843
23844         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
23845         [!defined __mips_isa_rev || __mips_isa_rev < 6].
23846
23847 2015-02-16  Torvald Riegel  <triegel@redhat.com>
23848
23849         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
23850         acquired.
23851
23852 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
23853
23854         [BZ #17792]
23855         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
23856         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
23857         HOST_STACK_END_ADDR): Likewise.
23858
23859 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
23860
23861         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
23862         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
23863         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
23864
23865 2015-02-13  Roland McGrath  <roland@hack.frob.com>
23866
23867         * sysdeps/generic/c++-types.data: New file.
23868         * sysdeps/generic/ld.abilist: New file.
23869         * sysdeps/generic/libBrokenLocale.abilist: New file.
23870         * sysdeps/generic/libanl.abilist: New file.
23871         * sysdeps/generic/libc.abilist: New file.
23872         * sysdeps/generic/libcrypt.abilist: New file.
23873         * sysdeps/generic/libdl.abilist: New file.
23874         * sysdeps/generic/libm.abilist: New file.
23875         * sysdeps/generic/libpthread.abilist: New file.
23876         * sysdeps/generic/libresolv.abilist: New file.
23877         * sysdeps/generic/librt.abilist: New file.
23878
23879 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
23880
23881         [BZ #17569]
23882         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
23883         Compute absolute value of x as modified by fmod, not original
23884         value of x.
23885         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
23886         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
23887         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
23888         RUN_TEST_ffI_f1_mod8.
23889         (remquo_test_data): Add more tests.
23890
23891 2015-02-13  Roland McGrath  <roland@hack.frob.com>
23892
23893         * sysdeps/init_array/pt-crti.S: New file.
23894
23895 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
23896
23897         [BZ #17967]
23898         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
23899         __builtin_fmaf instead of relying on contraction of a * b + c.
23900
23901 2015-02-12  J William Piggott  <elseifthen@gmx.com>
23902
23903         [BZ #17969]
23904         * manual/time.texi: correct the zoneinfo path in the TZ Variable
23905         node.
23906
23907 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
23908
23909         [BZ #17964]
23910         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
23911         __builtin_fma instead of relying on contraction of a * b + c.
23912
23913 2015-02-12  Roland McGrath  <roland@hack.frob.com>
23914
23915         * Makeconfig (ASFLAGS): Add -Werror=undef.
23916         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
23917         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
23918         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
23919
23920         * Makeconfig (after-link): New variable.
23921         (+link-pie, +link-pie-tests): Use it.
23922         (+link-static, +link-static-tests): Likewise.
23923         (+link, +link-tests): Likewise.
23924         * Makerules (build-module, build-module-asneeded): Likewise.
23925         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
23926         Likewise.
23927         * elf/Makefile ($(objpfx)ld.so): Likewise.
23928
23929 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
23930
23931         [BZ #17965]
23932         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
23933         both struct timeval and struct timespec.
23934
23935 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
23936
23937         [BZ #16560]
23938         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
23939         and redefine.
23940         (__ieee754_exp2l): Do not multiply small fractional parts by
23941         M_LN2l.
23942         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
23943         small argument.
23944         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
23945         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
23946         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
23947         * math/auto-libm-test-in: Add more tests of exp2.
23948         * math/auto-libm-test-out: Regenerated.
23949
23950 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23951
23952         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
23953         unaligned path.
23954
23955 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23956
23957         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
23958         little endian.
23959
23960 2015-02-12  Andreas Schwab  <schwab@suse.de>
23961
23962         [BZ #15790]
23963         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
23964         Filter out elision flags from value returned in kind.
23965         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
23966         * nptl/tst-pthread-mutexattr.c: New file.
23967
23968 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23969
23970         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
23971         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
23972         into gnu-gnu, and update comment to refer to abi-tags.
23973
23974 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
23975
23976         [BZ #15467]
23977         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
23978         (__sincos): Set errno to EDOM for infinite argument.
23979         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
23980         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
23981         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
23982         (__sincosl): Set errno to EDOM for infinite argument.
23983         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
23984         (__sincosl): Set errno to EDOM for infinite argument.
23985         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
23986         (__sincosl): Set errno to EDOM for infinite argument.
23987         * math/libm-test.inc (sincos_test_data): Test errno setting.
23988
23989 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
23990
23991         * string/strxfrm_l.c: Remove #define STRCMP.
23992         * string/strcoll_l.c: Remove #define STRLEN.
23993         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
23994         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
23995
23996 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
23997
23998         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
23999         * sysdeps/mips/mips32/sfp-machine.h: ... here.
24000         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
24001         * sysdeps/mips/mips64/Makefile: ... here.
24002         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
24003         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
24004         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
24005         * sysdeps/mips/mips64/sfp-machine.h: ... here.
24006         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
24007         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
24008         * sysdeps/mips/mips64/n64/Implies: Likewise.
24009
24010 2015-02-10  Roland McGrath  <roland@hack.frob.com>
24011
24012         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
24013         <sys/time.h>, <string.h>, and <errno.h>.
24014         (dest_offset, dest_address, value, zero): Remove unused variables.
24015         (ldouble): Remove typedef.
24016         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
24017         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
24018         1).  Fix code style.
24019         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
24020         (check): Function removed.
24021         (CHECK): New macro.
24022         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
24023         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
24024         Don't call set_sigaction_FP and remove_sigaction_FP here.
24025         (ldouble_test): Just use 'long double' as macro argument, no need for
24026         the 'ldouble' typedef.
24027         (do_test): Set up SIGFPE handler at start, using plain signal rather
24028         than sigaction.  Fix code style.
24029
24030 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
24031
24032         [BZ #17949]
24033         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
24034         jump label.
24035
24036 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
24037
24038         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
24039         * sysdeps/powerpc/powerpc32/configure: Regenerated.
24040
24041         * sysdeps/powerpc/configure.ac: Remove file.
24042         * sysdeps/powerpc/configure: Likewise.
24043
24044         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
24045         [sysdep_routines]: Remove wordcopy-power6 object.
24046         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
24047         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
24048         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
24049         (__memmove_ppc32): Likewise.
24050         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
24051         file.
24052         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
24053         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
24054         Remove preprocessor.
24055
24056         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
24057         [sysdep_routines]: Remove wide chars objects.
24058         [wcsmbs]: New rule for wide char objects.
24059
24060         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24061         Remove wordcopy-power6 obejct.
24062         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
24063         Use local call for wordcopy and memcpy symbols.
24064         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
24065         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
24066         implementation for loader.
24067         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
24068
24069         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24070         Remove wordcopy-power7 object.
24071         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
24072         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
24073         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
24074         (_wordcopy_fwd_dest_aligned): Likewise.
24075         (_wordcopy_bwd_aligned): Likewise.
24076         (_wordcopy_bwd_dest_aligned): Likewise.
24077
24078         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
24079         Rewrite to call __memmove_ppc instead of include default
24080         implementation.
24081
24082         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24083         Remove wide chars objects.
24084         [wcsmbs]: New rule for wide char objects.
24085
24086 2015-02-09  Andreas Schwab  <schwab@suse.de>
24087
24088         [BZ #17912]
24089         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
24090         in terms of __O_DIRECTORY.
24091
24092 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24093
24094         * time/getdate.c: Include <stdbool.h>.
24095         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
24096         call PTR_MANGLE.
24097         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
24098         PTR_DEMANGLE.
24099
24100 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24101
24102         Add ersatz _Static_assert on older C hosts
24103         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
24104         pre-C11 C platform that is not known to support _Static_assert.
24105
24106 2015-02-07  Richard Braun  <rbraun@sceen.net>
24107
24108         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
24109         sigstate.
24110         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
24111
24112 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24113
24114         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
24115         priority against unexistent AIO_PRIO_DELTA_MAX.
24116         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
24117         instead of int.
24118         * misc/fchflags.c (fchflags): Likewise.
24119         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
24120         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
24121         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
24122         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
24123         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
24124         Declare macros.
24125         [__USE_MISC] (chflags, fchflags): Declare functions.
24126         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
24127         EINVAL when nfds is greater than FD_SETSIZE.
24128         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
24129         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
24130         45.
24131         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
24132         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
24133         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
24134         MACH_RCV_TIMED_OUT.
24135         * hurd/hurd/signal.h (_hurd_self_sigstate,
24136         _hurd_critical_section_lock, _hurd_critical_section_unlock):
24137         Explicit casts from void *.
24138         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
24139         * abi-tags: Rename gnu-gnu os into gnu.
24140
24141         [BZ #4719]
24142         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
24143         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
24144         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
24145         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
24146         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
24147         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
24148
24149         [BZ #17944]
24150         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
24151         duplicates ADDR->sun_path with sockaddr LEN limitation.
24152         * sysdeps/mach/hurd/connect.c: Include <string.h>
24153         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
24154         * sysdeps/mach/hurd/sendmsg.c: Likewise.
24155         * sysdeps/mach/hurd/sendto.c: Likewise.
24156         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
24157         implementing it by hand.
24158
24159 2015-02-06  Roland McGrath  <roland@hack.frob.com>
24160
24161         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
24162         Use sfi_breg on ldr.
24163         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
24164         Likewise.
24165
24166         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
24167         it's defined.
24168         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
24169         Test SIGSETXID only if it's defined.
24170
24171         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
24172
24173         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
24174         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
24175
24176         * nptl/tst-align2.c: Moved ...
24177         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
24178         * nptl/Makefile (tests): Remove tst-align2.
24179         * sysdeps/unix/sysv/linux/Makefile
24180         [$(subdir) = nptl] (tests): Add tst-align-clone.
24181         * nptl/tst-getpid1.c: Moved ...
24182         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
24183         * nptl/tst-getpid2.c: Moved ...
24184         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
24185         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
24186         * sysdeps/unix/sysv/linux/Makefile
24187         [$(subdir) = nptl] (tests): ... here.
24188         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
24189         * sysdeps/unix/sysv/linux/Makefile
24190         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
24191
24192         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
24193         Drop trailing \n from perror argument.  Use return rather than exit.
24194
24195         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
24196         on [SA_SIGINFO].
24197         * nptl/tst-cancel21.c (do_test): Likewise.
24198         * debug/tst-backtrace6.c: Include <signal.h> first thing.
24199         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
24200         [!SA_SIGINFO]: Make it a stub test.
24201
24202         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
24203         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
24204
24205         * posix/tst-getlogin.c: Move to ...
24206         * login/tst-getlogin.c: ... here.
24207         * posix/Makefile (tests): Move tst-getlogin to ...
24208         * login/Makefile (tests): ... here.
24209
24210         * libio/tst-atime.c (do_test): Move local variables SV and E
24211         inside [ST_NOATIME] conditional.
24212
24213         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
24214
24215         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
24216
24217         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
24218         (wait_code): New function replaces macro.
24219         Call nanosleep rather than syscall.
24220
24221         * nptl/pt-system.c: Rewritten.  Put everything under
24222         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
24223         Use IFUNC to redirect when possible.
24224
24225         * nptl/pt-longjmp.c: Rewritten.  Put everything under
24226         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
24227         Use IFUNC to redirect when possible.
24228
24229         * nptl/pt-fork.c: Rewritten.  Put everything under
24230         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
24231         Use IFUNC to redirect when possible.
24232         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
24233
24234         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
24235         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
24236         unconditionally nowadays.  This included the only reference to
24237         __vdso_clock_gettime that appears outside libc proper.
24238         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
24239         Remove version set (containing only __vdso_clock_gettime).
24240         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
24241         Add attribute_hidden.
24242         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
24243         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
24244         libc_hidden_data_def.
24245         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
24246         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
24247
24248         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
24249         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
24250         setrpcent, and getrpcport to ...
24251         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
24252         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
24253         getrpcbynumber_r, and getrpcent_r to ...
24254         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
24255         * inet/getrpcbyname.c: Moved ...
24256         * sunrpc/getrpcbyname.c: ... here.
24257         * inet/getrpcbyname_r.c: Moved ...
24258         * sunrpc/getrpcbyname_r.c: ... here.
24259         * inet/getrpcbynumber.c: Moved ...
24260         * sunrpc/getrpcbynumber.c: ... here.
24261         * inet/getrpcbynumber_r.c: Moved ...
24262         * sunrpc/getrpcbynumber_r.c: ... here.
24263         * inet/getrpcent.c: Moved ...
24264         * sunrpc/getrpcent.c: ... here.
24265         * inet/getrpcent_r.c: Moved ...
24266         * sunrpc/getrpcent_r.c: ... here.
24267         * inet/Makefile (routines): Move those to ...
24268         * sunrpc/Makefile (routines): ... here.
24269         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
24270         the $(subdirs) list.
24271         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
24272         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
24273         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
24274         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
24275
24276         * elf/Makefile (routines): Include $(all-dl-routines), not just
24277         $(dl-routines).
24278         (rtld-routines): Likewise.  Use = rather than :=.
24279         * sysdeps/aarch64/Makefile [$(subdir) = elf]
24280         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
24281         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
24282         * sysdeps/arm/Makefile: Likewise.
24283         * sysdeps/i386/Makefile: Likewise.
24284         * sysdeps/x86_64/Makefile: Likewise.
24285         * sysdeps/hppa/Makefile [$(subdir) = elf]
24286         (sysdep_routines, sysdep-rtld-routines): Don't add
24287         $(sysdep-dl-routines) to these.
24288         * sysdeps/ia64/Makefile: Likewise.
24289         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
24290         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
24291         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
24292         Don't add dl-static to these; sysdep-dl-routines alone is enough.
24293         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
24294         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
24295         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
24296         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
24297         * sysdeps/powerpc/Makefile [$(subdir) = elf]
24298         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
24299         these; sysdep-dl-routines alone is enough.
24300
24301 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
24302
24303         [BZ #17932]
24304         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
24305         where multiplication results in zero and third argument is finite
24306         and nonzero.
24307         * math/auto-libm-test-in: Add more tests of fma.
24308         * math/auto-libm-test-out: Regenerated.
24309
24310         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
24311         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
24312         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
24313         (_FP_CMP_EQ): Likewise.
24314         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
24315
24316         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
24317         extra argument CHECK_NAN.  Redefine as wrapper around
24318         _FP_EXTEND_CNAN.
24319
24320 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
24321
24322         * version.h (RELEASE): Set to "stable".
24323         (VERSION): Set to "2.21"
24324         * include/features.h (__GLIBC_MINOR__): Set to 21.
24325
24326         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
24327
24328 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24329             Paul Eggert  <eggert@cs.ucla.edu>
24330
24331         [BZ #16618]
24332         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
24333         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
24334         size in bytes. Store needed elements in wpmax. Use needed size
24335         in bytes for extend_alloca.
24336
24337 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
24338
24339         * manual/install.texi: Latest tested versions are GCC 4.9.2,
24340         binutls 2.25, and texinfo 5.2.
24341         * INSTALL: Regenerate.
24342         * sysdeps/nios2/configure: Regenerate.
24343         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
24344         * manual/contrib.texi: Update.
24345         * po/be.po: Update.
24346         * po/bg.po: Update.
24347         * po/ca.po: Update.
24348         * po/cs.po: Update.
24349         * po/da.po: Update.
24350         * po/de.po: Update.
24351         * po/el.po: Update.
24352         * po/eo.po: Update.
24353         * po/es.po: Update.
24354         * po/fi.po: Update.
24355         * po/fr.po: Update.
24356         * po/gl.po: Update.
24357         * po/hr.po: Update.
24358         * po/hu.po: Update.
24359         * po/ia.po: Update.
24360         * po/id.po: Update.
24361         * po/it.po: Update.
24362         * po/ja.po: Update.
24363         * po/ko.po: Update.
24364         * po/lt.po: Update.
24365         * po/nb.po: Update.
24366         * po/nl.po: Update.
24367         * po/pl.po: Update.
24368         * po/pt_BR.po: Update.
24369         * po/ru.po: Update.
24370         * po/rw.po: Update.
24371         * po/sk.po: Update.
24372         * po/sl.po: Update.
24373         * po/sv.po: Update.
24374         * po/tr.po: Update.
24375         * po/uk.po: Update.
24376         * po/vi.po: Update.
24377         * po/zh_CN.po: Update.
24378         * po/zh_TW.po: Update.
24379
24380         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
24381         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
24382         * sysdeps/hppa/dl-irel.h: Remove #warning.
24383         * sysdeps/hppa/entry.h: Provide prototype for
24384         __canonicalize_funcptr_for_compare and cast argument.
24385         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
24386         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
24387         * sysdeps/hppa/sotruss-lib.c: New file.
24388         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
24389         (atomic_compare_and_exchange_val_acq): Use __typeof__.
24390         (atomic_compare_and_exchange_bool_acq): Likewise.
24391         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
24392         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
24393
24394         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
24395         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
24396         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
24397
24398 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
24399
24400         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
24401         called function in non-PIC case.
24402
24403 2015-01-31  David S. Miller  <davem@davemloft.net>
24404
24405         * sysdeps/sparc/sparc32/bits/atomic.h
24406         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
24407         unlock not after it.
24408         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
24409         volatile register usage warnings from the compiler.
24410
24411         * sysdeps/sparc/nptl/sem_init.c: Delete.
24412         * sysdeps/sparc/nptl/sem_post.c: Delete.
24413         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
24414         * sysdeps/sparc/nptl/sem_wait.c: Delete.
24415         * sysdeps/sparc/sparc32/sem_init.c: New file.
24416         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
24417         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
24418         padding explicitly initialized.
24419         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
24420         padding for in-semaphore spinlock.
24421         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
24422         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
24423         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
24424         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
24425         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
24426         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
24427         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
24428         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
24429         version.
24430         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
24431         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
24432
24433 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
24434
24435         [BZ #17801]
24436         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24437         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
24438         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
24439         New.
24440         (index_AVX_Fast_Unaligned_Load): Likewise.
24441         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
24442         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
24443         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
24444         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
24445         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
24446         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
24447         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
24448         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
24449         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
24450
24451 2015-01-29  Andreas Schwab  <schwab@suse.de>
24452
24453         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
24454
24455 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
24456
24457         [BZ #17892]
24458         * nscd/nscd_stat.c (send_stats): Initialize DATA.
24459
24460 2015-01-28  Martin Sebor  <msebor@redhat.com>
24461
24462         * math/README.libm-test: Clarify. Add "How to read the test output."
24463
24464 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
24465
24466         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
24467         Define to 0.
24468
24469 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
24470
24471         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
24472         (__HAVE_64B_ATOMICS): Define to 0.
24473
24474 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
24475
24476         [BZ #17885]
24477         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
24478         value to set as new flag.
24479
24480         [BZ #16576]
24481         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
24482         and use _ARCH_PPCSQ instead.
24483         (__ieee754_sqrt): Likewise.
24484         (__ieee754_sqrtf): Likewise.
24485         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
24486         _ARCH_PPCSQ is defined.
24487         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
24488         fsqrt instruction.
24489         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
24490         _ARCH_PPCSQ is defined.
24491         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
24492         fsqrts instruction.
24493         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
24494
24495 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24496
24497         * iconv/loop.c: Suppress array out of bound warning caused by GCC
24498         bug (GCC BZ #64739).
24499
24500 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
24501
24502         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
24503         Mark _retval as used.
24504         (lll_futex_wake_unlock): Likewise.
24505         (lll_futex_timed_wait_requeue_pi): Likewise.
24506
24507         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24508         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
24509         register variables.
24510
24511         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
24512         libm_hidden_def.
24513
24514         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
24515         (__bswap_64): Mark as __always_inline.
24516
24517 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
24518
24519         [BZ #15378]
24520         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
24521         when none of the search directories exist.
24522
24523 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
24524
24525         [BZ #17869]
24526         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
24527         power8 in .machine directive.
24528
24529         [BZ #17868]
24530         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
24531         set dependency from opd value.
24532
24533 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
24534
24535         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24536         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
24537         architecture.
24538
24539 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
24540
24541         [BZ #17870]
24542         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
24543         with uint64_t.
24544         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
24545         (uint64_t) 1.
24546         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
24547         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
24548         Replace 1UL with (uint64_t) 1.
24549         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
24550         int with uint64_t.
24551
24552 2015-01-23  Roland McGrath  <roland@hack.frob.com>
24553
24554         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
24555         (if_freenameindex): Likewise.
24556
24557         * resource/getrlimit64.c: Add missing libc_hidden_def.
24558
24559 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
24560
24561         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
24562         __label__.
24563         (_FP_FMA): Likewise.
24564         (_FP_TO_INT_ROUND): Likewise.
24565         (_FP_FROM_INT): Likewise.
24566
24567 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24568
24569         [BZ #16418]
24570         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
24571         Make code racy and cancel safe.
24572
24573 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
24574
24575         * sysdeps/arm/unwind-resume.h: Fix copyright year.
24576         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
24577         attribution.
24578
24579         * pwd/tst-getpw.c: Rewrite.
24580
24581         [BZ #17702]
24582         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
24583         (modules-names): Add moddummy1 and moddummy2.
24584         ($(objpfx)tst-rec-dlopen): Define.
24585         * dlfcn/moddummy1.c: New file.
24586         * dlfcn/moddummy2.c: New file.
24587         * dlfcn/tst-rec-dlopen.c: New file.
24588         * elf/dl-cache.c (_dl_load_cache_lookup):
24589         Return char*. Copy result with alloca/strcpy/strdup.
24590         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
24591         returns char*. Free cached. If not saving realname
24592         free cached.
24593         * elf/dl-open.c (dl_open_worker): Do not assert that
24594         _r_debug->r_state is RT_CONSISTENT.
24595         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
24596         returns char*.
24597
24598 2015-01-21  Torvald Riegel  <triegel@redhat.com>
24599             Carlos O'Donell  <carlos@redhat.com>
24600
24601         [BZ #12674]
24602         * nptl/sem_waitcommon.c: New file.
24603         * nptl/sem_wait.c: Include sem_waitcommon.c.
24604         (__sem_wait_cleanup, do_futex_wait): Remove.
24605         (__new_sem_wait): Adapt.
24606         (__new_sem_trywait): New function.
24607         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
24608         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
24609         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
24610         (sem_timedwait): Adapt.
24611         * nptl/sem_post.c (__new_sem_post): Adapt.
24612         (futex_wake): New function.
24613         (__old_sem_post): Add release MO fence.
24614         * nptl/sem_open.c (sem_open): Adapt.
24615         * nptl/sem_init.c (__new_sem_init): Adapt.
24616         (futex_private_if_supported): New function.
24617         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
24618         (__old_sem_getvalue): Add using previous code.
24619         * sysdeps/nptl/internaltypes.h: Adapt.
24620         * nptl/tst-sem13.c (do_test): Adapt.
24621         * nptl/tst-sem11.c (main): Adapt.
24622         * nptl/sem_trywait.c: Remove.
24623         * nptl/DESIGN-sem.txt: Remove.
24624         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
24625         (gen-as-const-headers): Remove structsem.sym.
24626         * nptl/structsem.sym: Remove.
24627         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
24628         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
24629         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
24630         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
24631         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
24632         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
24633         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
24634         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
24635         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
24636         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
24637         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
24638         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
24639         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
24640         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
24641         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
24642         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
24643         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
24644         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
24645         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
24646         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
24647         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
24648         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
24649
24650 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
24651
24652         * INSTALL: Regenerated.
24653
24654         * po/libc.pot: Regenerated.
24655
24656 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
24657             Sandra Loosemore  <sandra@codesourcery.com>
24658             Andrew Jenner  <andrew@codesourcery.com>
24659             Joseph Myers  <joseph@codesourcery.com>
24660             Nathan Sidwell  <nathan@codesourcery.com>
24661
24662         * NEWS: Mention new Nios II port.
24663         * sysdeps/nios2/Implies: New file.
24664         * sysdeps/nios2/Makefile: New file.
24665         * sysdeps/nios2/Subdirs: New file.
24666         * sysdeps/nios2/Versions: New file.
24667         * sysdeps/nios2/__longjmp.S: New file.
24668         * sysdeps/nios2/abort-instr.h: New file.
24669         * sysdeps/nios2/backtrace.c: New file.
24670         * sysdeps/nios2/bits/endian.h: New file.
24671         * sysdeps/nios2/bits/fenv.h: New file.
24672         * sysdeps/nios2/bits/link.h: New file.
24673         * sysdeps/nios2/bits/setjmp.h: New file.
24674         * sysdeps/nios2/bsd-_setjmp.S: New file.
24675         * sysdeps/nios2/bsd-setjmp.S: New file.
24676         * sysdeps/nios2/configure: New generated file.
24677         * sysdeps/nios2/configure.ac: New file.
24678         * sysdeps/nios2/crti.S: New file.
24679         * sysdeps/nios2/crtn.S: New file.
24680         * sysdeps/nios2/dl-init.c: New file.
24681         * sysdeps/nios2/dl-machine.h: New file.
24682         * sysdeps/nios2/dl-sysdep.h: New file.
24683         * sysdeps/nios2/dl-tls.h: New file.
24684         * sysdeps/nios2/dl-trampoline.S: New file.
24685         * sysdeps/nios2/gccframe.h: New file.
24686         * sysdeps/nios2/gmp-mparam.h: New file.
24687         * sysdeps/nios2/jmpbuf-offsets.h: New file.
24688         * sysdeps/nios2/jmpbuf-unwind.h: New file.
24689         * sysdeps/nios2/ldsodefs.h: New file.
24690         * sysdeps/nios2/libc-tls.c: New file.
24691         * sysdeps/nios2/libm-test-ulps: New file.
24692         * sysdeps/nios2/machine-gmon.h: New file.
24693         * sysdeps/nios2/math-tests.h: New file.
24694         * sysdeps/nios2/math_private.h: New file.
24695         * sysdeps/nios2/memusage.h: New file.
24696         * sysdeps/nios2/nptl/Makefile: New file.
24697         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
24698         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
24699         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
24700         * sysdeps/nios2/nptl/pthreaddef.h: New file.
24701         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
24702         * sysdeps/nios2/nptl/tls.h: New file.
24703         * sysdeps/nios2/preconfigure: New file.
24704         * sysdeps/nios2/s_fma.c: New file.
24705         * sysdeps/nios2/s_fmaf.c: New file.
24706         * sysdeps/nios2/setjmp.S: New file.
24707         * sysdeps/nios2/sfp-machine.h: New file.
24708         * sysdeps/nios2/sotruss-lib.c: New file.
24709         * sysdeps/nios2/stackguard-macros.h: New file.
24710         * sysdeps/nios2/stackinfo.h: New file.
24711         * sysdeps/nios2/start.S: New file.
24712         * sysdeps/nios2/sysdep.h: New file.
24713         * sysdeps/nios2/tls-macros.h: New file.
24714         * sysdeps/nios2/tst-audit.h: New file.
24715         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
24716         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
24717         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
24718         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
24719         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
24720         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
24721         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
24722         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
24723         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
24724         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
24725         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
24726         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
24727         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
24728         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
24729         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
24730         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
24731         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
24732         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
24733         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
24734         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
24735         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
24736         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
24737         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
24738         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
24739         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
24740         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
24741         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
24742         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
24743         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
24744         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
24745         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
24746         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
24747         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
24748         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
24749         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
24750         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
24751         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
24752         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
24753         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
24754         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
24755         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
24756         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
24757         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
24758         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
24759
24760 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
24761
24762         [BZ #17844]
24763         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
24764         (getutent): Use weak_alias in non SHARED case
24765         and default_symbol_version in SHARED case.
24766         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
24767         (getutent_r, pututline): Likewise.
24768         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
24769         (getutid): Likewise.
24770         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
24771         (getutid_r): Likewise.
24772         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
24773         (getutline): Likewise.
24774         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
24775         (getutline_r): Likewise.
24776         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
24777         (updwtmp): Likewise.
24778
24779 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
24780
24781         [BZ #17848]
24782         * sysdeps/s390/s390-32/memcmp.S
24783         (memcmp_g5): Rename to __memcmp_g5.
24784         * sysdeps/s390/s390-32/memcpy.S
24785         (memcpy_g5): Rename to __memcpy_g5.
24786         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24787         (memcpy_mvcle) Rename to __memcpy_mvcle.
24788         * sysdeps/s390/s390-32/memset.S
24789         (memset_g5): Rename to __memset_g5.
24790         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
24791         (IFUNC_RESOLVE): Prefix ifunc-resolve function
24792         and use prefixed functions.
24793         * sysdeps/s390/s390-32/multiarch/memcmp.S
24794         (memcmp_z196): Rename to __memcmp_z196.
24795         (memcmp_z10): Rename to __memcmp_z10.
24796         (memcmp): Set alias to __memcmp_g5.
24797         (bcmp): Set alias to __memcmp_g5.
24798         * sysdeps/s390/s390-32/multiarch/memcpy.S
24799         (memcpy_z196): Rename to __memcpy_z196.
24800         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24801         (memcpy_z10): Rename to __memcpy_z10.
24802         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24803         (memcpy): Set alias to __memcpy_g5.
24804         * sysdeps/s390/s390-32/multiarch/memset.S
24805         (memset_z196): Rename to __memset_z196.
24806         Jump to __memset_mvcle instead of memset_mvcle.
24807         (memset_z10): Rename to __memset_z10.
24808         Jump to __memset_mvcle instead of memset_mvcle.
24809         (memset_mvcle) Rename to __memset_mvcle.
24810         (memset): Set alias to __memset_g5.
24811         * sysdeps/s390/s390-64/memcmp.S
24812         (memcmp_z900): Rename to __memcmp_z900.
24813         * sysdeps/s390/s390-64/memcpy.S
24814         (memcpy_z900): Rename to __memcpy_z900.
24815         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24816         (memcpy_mvcle) Rename to __memcpy_mvcle.
24817         * sysdeps/s390/s390-64/memset.S
24818         (memset_z900): Rename to __memset_z900.
24819         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
24820         (IFUNC_RESOLVE): Prefix ifunc-resolve function
24821         and use prefixed functions.
24822         * sysdeps/s390/s390-64/multiarch/memcmp.S
24823         (memcmp_z196): Rename to __memcmp_z196.
24824         (memcmp_z10): Rename to __memcmp_z10.
24825         (memcmp): Set alias to __memcmp_z900.
24826         (bcmp): Set alias to __memcmp_z900.
24827         * sysdeps/s390/s390-64/multiarch/memcpy.S
24828         (memcpy_z196): Rename to __memcpy_z196.
24829         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24830         (memcpy_z10): Rename to __memcpy_z10.
24831         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24832         (memcpy): Set alias to __memcpy_z900.
24833         * sysdeps/s390/s390-64/multiarch/memset.S
24834         (memset_z196): Rename to __memset_z196.
24835         Jump to __memset_mvcle instead of memset_mvcle.
24836         (memset_z10): Rename to __memset_z10.
24837         Jump to __memset_mvcle instead of memset_mvcle.
24838         (memset_mvcle) Rename to __memset_mvcle.
24839         (memset): Set alias to __memset_z900.
24840
24841 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
24842
24843         [BZ #17748]
24844         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
24845         __fesetenv instead of fesetenv.
24846
24847 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
24848
24849         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
24850         macro.
24851
24852 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24853
24854         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
24855         regression on LE.
24856
24857         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
24858         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
24859         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
24860         strncmp-power8 object.
24861         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24862         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
24863         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
24864         * NEWS: Update.
24865
24866 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
24867             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24868
24869         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
24870         trailing byte check.
24871
24872 2015-01-13  David S. Miller  <davem@davemloft.net>
24873
24874         * include/signal.h (__sigreturn): Guard with __USE_MISC.
24875
24876 2015-01-13  Roland McGrath  <roland@hack.frob.com>
24877
24878         * login/logout.c (logout): Use memset rather than bzero.
24879         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
24880         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
24881         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
24882         (_gethtbyaddr): Likewise.
24883         * locale/programs/simple-hash.c (bcopy): Macro removed.
24884
24885 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24886
24887         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24888         Add strcmp-power8 object.
24889         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24890         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
24891         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
24892         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
24893         __strcmp_power8 implementation.
24894         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
24895         * NEWS: Update.
24896
24897         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24898         Add strncpy-power8 and stpncpy-power8 objects.
24899         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24900         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
24901         implementations.
24902         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
24903         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
24904         __stpncpy_power8 implementation.
24905         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
24906         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
24907         __strncpy_power8 implementation.
24908         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
24909         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
24910         * NEWS: Update.
24911
24912         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
24913         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
24914         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
24915
24916         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
24917         strncat-power8 object.
24918         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
24919         __strcat_power8 implementation.
24920         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24921         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
24922         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
24923         optimized strcat for power8.
24924
24925         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
24926         strcpy-power8 and stpcpy-power8 objects.
24927         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24928         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
24929         implementations.
24930         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
24931         multiarch stpcpy implementation for POWER8.
24932         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
24933         multiarch strcpy implementation for POWER8.
24934         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
24935         __strcpy_power8 function.
24936         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
24937         stpcpy for POWER8.
24938         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
24939         strcpy for POWER8.
24940         * NEWS: Update.
24941
24942 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
24943
24944         [BZ #16009]
24945         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
24946         weights and rules. Use do_xfrm_cached if data fits in cache,
24947         do_xfrm otherwise.  Moved former main loop to...
24948         * (do_xfrm_cached): New function.
24949         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
24950         find_idx, find_position and stack_push.
24951         * (find_idx): New function.
24952         * (find_position): Likewise.
24953         * localedata/sort-test.sh: Added test run for do_xfrm.
24954         * localedata/xfrm-test.c (main): Added command line option
24955         -nocache to run the test with strings that are too large for
24956         the STRXFRM cache.
24957
24958 2015-01-13  Torvald Riegel  <triegel@redhat.com>
24959
24960         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
24961         variable to lll_futex_wake call, not the value itself.
24962
24963 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
24964
24965         [BZ #17803]
24966         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
24967         twom64.  Adjust value to 0x1p-64L.
24968         (__scalblnl): Only return standard underflowing result for K <=
24969         -64 not K <= -63; adjust exponent for underflowing result by 64
24970         not 63.
24971         * math/libm-test.inc (scalbn_test_data): Add more tests.
24972         (scalbln_test_data): Likewise.
24973
24974         [BZ #17834]
24975         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
24976         0x1p63L.
24977         (__scalblnl): Get new exponent of adjusted subnormal value from ES
24978         not HX.
24979         * math/libm-test.inc (scalbn_test_data): Add more tests.
24980         (scalbln_test_data): Likewise.
24981
24982 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24983             Stefani Seibold  <stefani@seibold.net>
24984
24985         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
24986         (sysdep_routines): Add dl-vdso here, ...
24987         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
24988         (sysdep_routines): ... not here.
24989         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
24990         fallback when vDSO is not presented.
24991         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
24992         Define with libc_hidden_proto/libc_hidden_data_def definitions.
24993         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
24994         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
24995         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
24996         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
24997         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
24998         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
24999         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
25000         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
25001         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
25002         fallback configurable symbol when vDSO is not available.
25003         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
25004         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
25005         be able to redefine fallback symbol when vDSO is not available.
25006         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
25007         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
25008
25009 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25010
25011         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
25012         (TLS_INIT_TP): Add tm_capable initialization.
25013         (TLS_DEFINE_INIT_TP): Likewise.
25014         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
25015         TCB.
25016         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
25017         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
25018         calculation.
25019         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
25020         transactoion is lock elision is built and TCB tm_capable is set.
25021         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
25022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
25023         (INTERNAL_SYSCALL_NCS): Likewise.
25024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
25025         (INTERNAL_SYSCALL_NCS): Likewise.
25026         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
25027
25028         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
25029         for powerpc.
25030         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
25031         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
25032         and remove it for 32 bits case.
25033         [pthread_rwlock_t] (__rwelision): New field for lock elision.
25034         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
25035         initialization.
25036         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
25037         Disable lock elision with rdlocks if elision is not available.
25038
25039         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
25040         (sysdep_routines): Add lock elision objects.
25041         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
25042         [pthread_mutex_t] (__spins): Rework to add lock elision field.
25043         [pthread_mutex_t] (__elision): Add field.
25044         [__PTHREAD_SPINS]: Adjust to init lock elision field.
25045         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
25046         elision definitions for powerpc.
25047         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
25048         implementation of lock elision for powerpc.
25049         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
25050         implementation of timed lock elision for powerpc.
25051         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
25052         implementation of trylock with lock elision for powerpc.
25053         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
25054         implementaion of unlock for lock elision for powerpc.
25055         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
25056         automatic enable lock elision for mutexes.
25057         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
25058         transaction execution definitions for powerpc.
25059         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
25060         definitions.
25061         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
25062         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
25063         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
25064         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
25065         * NEWS: Update.
25066
25067 2015-01-09  Roland McGrath  <roland@hack.frob.com>
25068
25069         * sysdeps/posix/shm-directory.c: Use <> rather than ""
25070         for #include of <shm-directory.h>.
25071
25072 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
25073
25074         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
25075         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
25076
25077 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
25078
25079         [BZ #17791]
25080         * NEWS: Mention bug fix.
25081         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
25082         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
25083         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
25084
25085 2015-01-09  Torvald Riegel <triegel@redhat.com>
25086
25087         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
25088
25089 2015-01-09  Torvald Riegel <triegel@redhat.com>
25090
25091         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
25092
25093 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
25094
25095         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
25096         pointer and cast to uintptr_t.
25097
25098 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
25099
25100         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
25101         removed.
25102         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
25103
25104 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
25105
25106         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
25107         of 0.
25108
25109 2015-01-08  Roland McGrath  <roland@hack.frob.com>
25110
25111         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
25112         <nptl/pthreadP.h> instead.
25113         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
25114
25115         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
25116         already defined.
25117         [__SIGRTMIN] (init): Function removed.
25118         [__SIGRTMIN] (initialized): Variable removed.
25119         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
25120         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
25121         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
25122         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
25123         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
25124         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
25125         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
25126         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
25127         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
25128         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
25129         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
25130         * sysdeps/nptl/allocrtsig.c: New file.
25131         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
25132         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
25133         * sysdeps/generic/testrtsig.h: File removed.
25134
25135         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
25136         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
25137
25138         * nptl/nptl-init.c (pthread_functions): Conditionalize
25139         .ptr__nptl_setxid initialization on [SIGSETXID].
25140
25141         * sysdeps/nptl/sys/procfs.h: New file.
25142         * nptl_db/Makefile (headers): Add it.
25143         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
25144
25145         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
25146         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
25147         * nptl/pthread_attr_setaffinity.c: Include it.
25148         * nptl/pthread_setattr_default_np.c: Likewise.
25149         * nptl/check-cpuset.h: New file.
25150
25151 2015-01-08  Richard Henderson  <rth@redhat.com>
25152
25153         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
25154         (CFLAGS-tst-execstack-prog.c): Likewise.
25155         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
25156
25157 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
25158             Sandra Loosemore  <sandra@codesourcery.com>
25159             Andrew Jenner  <andrew@codesourcery.com>
25160             Joseph Myers  <joseph@codesourcery.com>
25161             Nathan Sidwell  <nathan@codesourcery.com>
25162
25163         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
25164         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
25165         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
25166         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
25167         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
25168         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
25169         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
25170         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
25171         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
25172         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
25173         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
25174         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
25175         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
25176         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
25177         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
25178         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
25179         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
25180
25181 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25182
25183         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
25184         timespec struct member in syscall macro.
25185         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
25186         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
25187         first timeval struct member in syscall macro.
25188         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
25189
25190 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
25191
25192         [BZ #17748]
25193         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
25194         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
25195         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
25196         __feupdateenv and define as weak alias of __feupdateenv.  Use
25197         libm_hidden_weak.
25198         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
25199         libm_hidden_def.
25200         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
25201         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
25202         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
25203         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
25204         libm_hidden_def.
25205         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
25206         __feupdateenv and define as weak alias of __feupdateenv.  Use
25207         libm_hidden_weak.
25208         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
25209         libm_hidden_def.
25210         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
25211         __feupdateenv and define as weak alias of __feupdateenv.  Use
25212         libm_hidden_weak.
25213         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
25214         libm_hidden_def.
25215         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
25216         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
25217         (__feupdateenv): Likewise.
25218         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
25219         __feupdateenv and define as weak alias of __feupdateenv.  Use
25220         libm_hidden_weak.
25221         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
25222         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
25223         libm_hidden_def.
25224         * sysdeps/tile/math_private.h (__feupdateenv): New inline
25225         function.
25226         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
25227         libm_hidden_def.
25228         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
25229         __feupdateenv instead of feupdateenv.
25230         (default_libc_feupdateenv_test): Likewise.
25231         (libc_feresetround_ctx): Likewise.
25232
25233 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25234
25235         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
25236         prototype.
25237
25238 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
25239
25240         * posix/regcomp.c (parse_bracket_exp): Initialize type to
25241         COLL_SYM in a couple of places to avoid uninitialized variable
25242         wanings on tilegx gcc 4.8.2.
25243
25244 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
25245
25246         * sysdeps/aarch64/strcpy.S: New file.
25247         * sysdeps/aarch64/stpcpy.S: New file.
25248         * NEWS: Updated.
25249
25250 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
25251
25252         * sysdeps/aarch64/strrchr.S: New file.
25253         * NEWS: Updated.
25254
25255 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
25256
25257         [BZ #17658]
25258         * stdlib/setenv.c: Fix memory leak when setting large,
25259         duplicate string.
25260
25261 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
25262
25263         [BZ #17273]
25264         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
25265         and tabs from buffer before parsing fstab entry.
25266         * misc/tst-mntent.c (main): Add test for mount entry with
25267         trailing spaces and tabs.
25268
25269 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
25270
25271         [BZ #17748]
25272         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
25273         * math/fesetround.c (fesetround): Rename to __fesetround and
25274         define as weak alias of __fesetround.  Use libm_hidden_weak.
25275         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
25276         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
25277         * sysdeps/arm/fesetround.c (fesetround): Likewise.
25278         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
25279         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
25280         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
25281         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
25282         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
25283         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
25284         __fesetround_inline.
25285         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
25286         __fesetround_inline instead of __fesetround.
25287         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
25288         __fesetround and define as weak alias of __fesetround.  Use
25289         libm_hidden_weak.  Call __fesetround_inline instead of
25290         __fesetround.
25291         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
25292         __fesetround and define as weak alias of __fesetround.  Use
25293         libm_hidden_weak.
25294         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
25295         Likewise.
25296         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
25297         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
25298         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
25299         * sysdeps/tile/math_private.h (__fesetround): New inline function.
25300         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
25301         __fesetround and define as weak alias of __fesetround.  Use
25302         libm_hidden_weak.
25303         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
25304         __fesetround instead of fesetround.
25305         (default_libc_feholdexcept_setround): Likewise.
25306         (libc_feholdsetround_ctx): Likewise.
25307         (libc_feholdsetround_noex_ctx): Likewise.
25308
25309         [BZ #17748]
25310         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
25311         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
25312         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
25313         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
25314         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
25315         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
25316         define as weak alias of __fesetenv.  Use libm_hidden_weak.
25317         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
25318         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
25319         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
25320         define as weak alias of __fesetenv.  Use libm_hidden_weak.
25321         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
25322         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
25323         define as weak alias of __fesetenv.  Use libm_hidden_weak.
25324         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
25325         libm_hidden_def.
25326         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
25327         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
25328         Likewise.
25329         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
25330         define as weak alias of __fesetenv.  Use libm_hidden_weak.
25331         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
25332         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
25333         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
25334         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
25335         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
25336         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
25337         __fesetenv instead of fesetenv.
25338         (libc_feresetround_noex_ctx): Likewise.
25339         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
25340         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
25341         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
25342         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
25343         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
25344         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
25345         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
25346         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
25347         (__feupdateenv): Likewise.
25348         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
25349         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
25350         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
25351         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
25352
25353 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
25354
25355         [BZ #17806]
25356         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
25357         addresses have been freed.
25358
25359 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
25360
25361         * resolv/res_init.c (__res_vinit): Improve comments about nserv
25362         and nservall.
25363
25364 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
25365
25366         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
25367         Clean up check_pf allocation pattern. addresses
25368
25369 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25370
25371         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
25372         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
25373         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
25374         * nptl/pthread_exit.c (__pthread_exit): Likewise.
25375         * nptl/pthread_join.c (pthread_join): Likewise.
25376         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
25377         * sysdeps/posix/waitid.c (__waitid): Likewise.
25378         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
25379         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
25380         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
25381         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
25382         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
25383         Likewise.
25384         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
25385         (__libc_pread64): Likewise.
25386         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
25387         (__libc_pwrite): Likewise.
25388         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
25389         (__libc_pwrite64): Likewsie.
25390         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
25391         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
25392         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
25393         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
25394         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
25395         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
25396         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
25397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
25398         Likewise.
25399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
25400         (__libc_pread64): Likewise.
25401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
25402         Likewise.
25403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
25404         (__libc_pwrite64): Likewise.
25405         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
25406         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
25407         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
25408         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
25409         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
25410         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
25411         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
25412         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
25413         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
25414         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
25415         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
25416         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
25417         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
25418         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
25419         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25420         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
25421         Likewise.
25422
25423 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25424
25425         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
25426         (CFLAGS-test-double.c): Likewise.
25427         (CFLAGS-test-ldouble.c): Likewise.
25428         (CPPFLAGS-test-ifloat.c): Likewise.
25429         (CPPFLAGS-test-idouble.c): Likewise.
25430         (CPPFLAGS-test-ildoubl.c): Likewise.
25431         (CFLAGS-test-test-fenv.c): Remove variable.
25432         (CFLAGS-test-misc.c): Likewise.
25433
25434 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
25435
25436         [BZ #17797]
25437         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
25438         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
25439         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
25440         CLOCKS_PER_SEC == 1000000.
25441         * time/clocktest.c (main): Replace %ld with %jd and cast to
25442         intmax_t.
25443
25444 2015-01-05  Roland McGrath  <roland@hack.frob.com>
25445
25446         * sysdeps/generic/unwind-resume.h: New file.
25447         * sysdeps/gnu/unwind-resume.c: Include it.
25448         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
25449         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
25450         argument list.
25451         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
25452         global rather than static.
25453         (_Unwind_Resume): Update user.
25454         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
25455         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
25456         rather than static.  Add __attribute__ ((cold)).
25457         (_Unwind_Resume, __gcc_personality_v0): Update callers.
25458         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
25459         * sysdeps/arm/arm-unwind-resume.S: New file.
25460         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
25461         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
25462         * sysdeps/arm/Makefile [$(subdir) = csu]
25463         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
25464         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
25465         Add rt-arm-unwind-resume.
25466         [$(subdir) = nptl]
25467         (libpthread-sysdep_routines, libpthread-shared-only-routines):
25468         Add pt-arm-unwind-resume.
25469         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
25470         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
25471
25472 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
25473
25474         [BZ #17748]
25475         * include/fenv.h (__feholdexcept): Declare.  Use
25476         libm_hidden_proto.
25477         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
25478         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
25479         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
25480         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
25481         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
25482         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
25483         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
25484         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
25485         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
25486         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
25487         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
25488         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
25489         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
25490         (feholdexcept): Likewise.
25491         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25492         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
25493         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
25494         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
25495         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
25496         __feholdexcept instead of feholdexcept.
25497         (default_libc_feholdexcept_setround): Likewise.
25498
25499 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
25500
25501         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
25502         to avoid using stl/str to align destination.
25503
25504 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
25505
25506         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
25507
25508 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
25509
25510         [BZ #17796]
25511         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
25512         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
25513         Define as weak alias not strong alias.
25514
25515 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
25516
25517         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
25518         bltzal with addiupc.
25519         (RTLD_START): Ditto.
25520
25521 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
25522
25523         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
25524         for __vdso_* functions in declarations.
25525         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
25526         definitions.
25527         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
25528         INTERNAL_VSYSCALL): Use struct return types to check for error.
25529
25530         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
25531         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
25532         function with cast from llround().
25533         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
25534         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
25535         Define.
25536
25537 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
25538
25539         [BZ #17793]
25540         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
25541         Define as weak alias not strong alias.
25542
25543         [BZ #17635]
25544         * ctype/ctype-c99.c: New file.  isblank implementation moved from
25545         ...
25546         * ctype/ctype-extn.c: ... here.
25547         (__isblank_l): Move to ...
25548         * ctype/ctype-c99_l.c: ... here.  New file.
25549         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
25550         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
25551         Remove variable.
25552         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25553         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25554         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25555         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25556         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25557
25558         [BZ #17777]
25559         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
25560         (posix_fadvise64): Define as weak alias not strong alias.
25561         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
25562         (posix_fallocate64): Likewise.
25563         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
25564         Remove variable.
25565         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25566         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25567         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25568         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25569         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25570
25571 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
25572
25573         [BZ #16191]
25574         * NEWS: Mention bug fix.
25575         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
25576         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
25577         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
25578         (HOST_STACK_END_ADDR): Likewise.
25579
25580 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
25581
25582         [BZ #17748]
25583         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
25584         * math/fegetround.c (fegetround): Rename to __fegetround and
25585         define as weak alias of __fegetround.  Use libm_hidden_weak.
25586         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
25587         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
25588         * sysdeps/arm/fegetround.c (fegetround): Likewise.
25589         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
25590         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
25591         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
25592         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
25593         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
25594         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
25595         Undefine after rather than before function definition; use
25596         parentheses around function name in definition.
25597         (__fegetround): Also undefine macro after function definition.
25598         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
25599         __fegetround and define as weak alias of __fegetround.  Use
25600         libm_hidden_weak.  Do not undefine as macro.
25601         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
25602         Likewise.
25603         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
25604         __fegetround and define as weak alias of __fegetround.  Use
25605         libm_hidden_weak.
25606         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
25607         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
25608         * sysdeps/tile/math_private.h (__fegetround): New inline function.
25609         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
25610         __fegetround and define as weak alias of __fegetround.  Use
25611         libm_hidden_weak.
25612         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
25613         __fegetround instead of fegetround.
25614
25615         [BZ #17782]
25616         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
25617         Condition macro definition on [__USE_MISC].
25618
25619         [BZ #17781]
25620         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
25621         (struct sigaction): Change type of sa_flags field to int.
25622
25623         [BZ #17780]
25624         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
25625         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
25626         __glibc_reserved0.
25627
25628         * nptl/version.c (banner): Use single year in copyright notice.
25629
25630         * NEWS: Update copyright dates.
25631         * catgets/gencat.c (print_version): Likewise.
25632         * csu/version.c (banner): Likewise.
25633         * debug/catchsegv.sh: Likewise.
25634         * debug/pcprofiledump.c (print_version): Likewise.
25635         * debug/xtrace.sh (do_version): Likewise.
25636         * elf/ldconfig.c (print_version): Likewise.
25637         * elf/ldd.bash.in: Likewise.
25638         * elf/pldd.c (print_version): Likewise.
25639         * elf/sotruss.sh: Likewise.
25640         * elf/sprof.c (print_version): Likewise.
25641         * iconv/iconv_prog.c (print_version): Likewise.
25642         * iconv/iconvconfig.c (print_version): Likewise.
25643         * locale/programs/locale.c (print_version): Likewise.
25644         * locale/programs/localedef.c (print_version): Likewise.
25645         * login/programs/pt_chown.c (print_version): Likewise.
25646         * malloc/memusage.sh (do_version): Likewise.
25647         * malloc/memusagestat.c (print_version): Likewise.
25648         * malloc/mtrace.pl: Likewise.
25649         * manual/libc.texinfo: Likewise.
25650         * nptl/version.c (banner): Likewise.
25651         * nscd/nscd.c (print_version): Likewise.
25652         * nss/getent.c (print_version): Likewise.
25653         * nss/makedb.c (print_version): Likewise.
25654         * posix/getconf.c (main): Likewise.
25655         * scripts/test-installation.pl: Likewise.
25656         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
25657
25658 2015-01-02  Will Newton  <will.newton@linaro.org>
25659
25660         * sysdeps/arm/armv7/configure: Removed.
25661         * sysdeps/arm/armv7/configure.ac: Likewise.
25662
25663 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
25664
25665         * All files with FSF copyright notices: Update copyright dates
25666         using scripts/update-copyrights.
25667         * intl/plural.c: Regenerated.
25668         * locale/programs/charmap-kw.h: Likewise.
25669         * locale/programs/locfile-kw.h: Likewise.
25670
25671 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
25672
25673         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
25674
25675 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
25676
25677         [BZ #17748]
25678         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
25679         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
25680         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
25681         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
25682         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
25683         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
25684         define as weak alias of __fegetenv.  Use libm_hidden_weak.
25685         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
25686         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
25687         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
25688         define as weak alias of __fegetenv.  Use libm_hidden_weak.
25689         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
25690         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
25691         define as weak alias of __fegetenv.  Use libm_hidden_weak.
25692         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
25693         libm_hidden_def.
25694         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
25695         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
25696         Likewise.
25697         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
25698         define as weak alias of __fegetenv.  Use libm_hidden_weak.
25699         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
25700         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
25701         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
25702         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
25703         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
25704         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
25705         __fegetenv instead of fegetenv.
25706         (libc_feholdsetround_noex_ctx): Likewise.
25707
25708 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25709
25710         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
25711         (Elf_MIPS_ABIFlags_v0): New structure.
25712         (EF_MIPS_FP64): Define.
25713         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
25714         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
25715         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
25716         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
25717         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
25718         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
25719         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
25720         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
25721         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
25722         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
25723         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
25724         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
25725         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
25726         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
25727         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
25728         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
25729         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
25730         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
25731         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
25732         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
25733         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
25734         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
25735         field.
25736         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
25737         EF_MIPS_FP64.
25738         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
25739         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
25740         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
25741         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
25742         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
25743         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
25744         * sysdeps/mips/tst-abi-interlink.c: Likewise.
25745         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
25746         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
25747         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
25748         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
25749         record the current FP ABI extension.
25750         (mips-mode-switch): Define to show if kernel headers support mode
25751         switching.
25752         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
25753         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
25754         supported SYSV ABI version to 3.
25755         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
25756         feature.
25757
25758 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25759             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25760
25761         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
25762         path.
25763         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
25764
25765 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
25766
25767         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
25768         __fegetround and redefine to call __fegetround.  Remove condition
25769         on [!__NO_MATH_INLINES].
25770         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
25771         function.
25772         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
25773         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
25774         Remove macro.
25775         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
25776         instead of <fenv_libc.h>.
25777         (__llrintl): Call fegetround instead of __fegetround.
25778         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
25779         instead of <fenv_libc.h>.
25780         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
25781         (__lrintl): Call fegetround instead of __fegetround.
25782         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
25783         instead of <fenv_libc.h>.
25784         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
25785         (__rintl): Call fegetround instead of __fegetround.
25786
25787 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
25788
25789         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
25790         arrays.
25791
25792 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
25793
25794         [BZ #17775]
25795         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
25796         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
25797         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
25798
25799 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
25800
25801         * sysdeps/i386/tls-macros.h: Include <features.h>.
25802         (TLS_LE): Use non-PIC version for GCC >= 5.0.
25803         (TLS_IE): Likewise.
25804         (TLS_LD): Likewise.
25805         (TLS_GD): Likewise.
25806         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
25807         define for GCC >= 5.0.
25808
25809 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
25810
25811         * math/test-fenv.c (test_single_exception, set_single_exc,
25812         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
25813         feexcp_mask_test, feenable_test, fe_single_test): Add
25814         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
25815         case where they are not used.
25816         * math/libm-test.inc: Likewise.
25817         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
25818         unused in the absence of FP rounding/exception support.
25819         * stdio-common/tst-printf-round.c: Likewise.
25820         * stdlib/tst-strtod-round.c: Likewise.
25821         * stdlib/tst-strtod-underflow.c: Likewise.
25822
25823 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
25824
25825         [BZ #17723]
25826         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
25827         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
25828         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
25829         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
25830         libm_hidden_weak.
25831         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
25832         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
25833         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
25834         libm_hidden_def.
25835         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
25836         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
25837         libm_hidden_weak.
25838         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
25839         Likewise.
25840         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
25841         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
25842         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
25843         libm_hidden_weak.
25844         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
25845         libm_hidden_def.
25846         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
25847         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
25848         (__feraiseexcept): Likewise.
25849         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
25850         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
25851         libm_hidden_weak.
25852         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
25853         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
25854         libm_hidden_def.
25855         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
25856         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
25857         Use libm_hidden_def.
25858         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
25859         libm_hidden_def.
25860         (feraiseexcept): Define as weak not strong alias.  Use
25861         libm_hidden_weak.
25862         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
25863         New inline function.  Factored out of ...
25864         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
25865         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
25866         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
25867         feraiseexcept.
25868         * math/w_acos.c (__acos): Likewise.
25869         * math/w_asin.c (__asin): Likewise.
25870         * math/w_ilogb.c (__ilogb): Likewise.
25871         * math/w_j0.c (y0): Likewise.
25872         * math/w_j1.c (y1): Likewise.
25873         * math/w_jn.c (yn): Likewise.
25874         * math/w_log.c (__log): Likewise.
25875         * math/w_log10.c (__log10): Likewise.
25876         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
25877         * sysdeps/aarch64/fpu/math_private.h
25878         (libc_feupdateenv_test_aarch64): Likewise.
25879         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
25880         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
25881         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
25882         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
25883         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
25884         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
25885         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
25886         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
25887         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
25888         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
25889
25890 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
25891
25892         [BZ #17732]
25893         * io/test-utime.c (main): Replace %ld with %jd and cast to
25894         intmax_t.
25895         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
25896         * nptl/tst-mutex5.c: Include <stdint.h>.
25897         (do_test): Replace %ld with %jd and cast to intmax_t.
25898         * posix/tst-regex.c (run_test): Likewise.
25899         (run_test_backwards): Likewise.
25900         * rt/tst-clock.c: Include <stdint.h>.
25901         (clock_test): Replace %ld with %jd and cast to intmax_t.
25902         * rt/tst-cpuclock1.c: Include <stdint.h>.
25903         (do_test): Replace %lu with %ju and cast to uintmax_t.
25904         * rt/tst-cpuclock2.c: Include <stdint.h>.
25905         (do_test): Replace %lu with %ju and cast to uintmax_t.
25906         * rt/tst-mqueue1.c: Include <stdint.h>.
25907         (check_attrs): Replace %ld with %jd and cast to intmax_t.
25908         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
25909         intmax_t.
25910         * rt/tst-mqueue4.c (do_test): Likewise.
25911         * rt/tst-timer4.c: Include <stdint.h>.
25912         (check_ts): Replace %ld with %jd and cast to intmax_t.
25913         (do_test): Likewise.
25914         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
25915         and cast to intmax_t.
25916         * sysdeps/pthread/tst-timer.c (main): Likewise.
25917         * time/clocktest.c (main): Likewise.
25918         * time/tst-posixtz.c (do_test): Likewise.
25919         * timezone/tst-timezone.c (main): Likewise.
25920
25921 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
25922             H.J. Lu  <hongjiu.lu@intel.com>
25923
25924         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
25925         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
25926         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
25927         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
25928         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
25929         version if bit_Fast_Unaligned_Load is set.
25930         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
25931         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
25932         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
25933         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
25934         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
25935         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
25936         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25937         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
25938         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
25939         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
25940         to 4.
25941         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
25942         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
25943         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
25944         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
25945
25946 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
25947
25948         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
25949         instead of #if to avoid a Wundef warning.
25950         * stdlib/tst-limits.c (do_test): Likewise.
25951
25952         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
25953         parallel other exception macros.
25954         (fegetenv): Convert from macro to extern inline so that it applies
25955         retroactively to inline functions already seen by the compiler.
25956         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
25957
25958         * posix/Makefile (before-compile): Use $(objpfx) for
25959         posix-conf-vars-def.h.
25960
25961 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
25962
25963         * posix/getconf.c (main): Use size_t for type of I.
25964         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
25965         NSPEC.
25966
25967         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
25968         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
25969         * posix/posix-envs.def: Likewise.
25970         * sysdeps/posix/sysconf.c: Likewise.
25971         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
25972         (specs): Remove array.
25973         * scripts/gen-posix-conf-vars.awk: Support generation of specs
25974         array.
25975
25976         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
25977         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
25978         (__sysconf): Use CONF_IS_* macros.
25979
25980         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
25981         ($(objpfx)posix-conf-vars-def.h): New target.
25982         * posix/posix-conf-vars.list: New file.
25983         * posix/posix-conf-vars.h: New file.
25984         * posix/confstr.c: Include posix-conf-vars.h.
25985         (confstr): Use CONF_IS_* macros.
25986         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
25987         CONF_IS_* macros.
25988         * scripts/gen-posix-conf-vars.awk: New file.
25989
25990 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
25991
25992         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
25993         fegetround): Add no-op macros to avoid linknamespace issues.
25994
25995         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
25996         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
25997
25998         * sysdeps/unix/sysv/linux/tile/sysdep.h
25999         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
26000         assembly-specific section to avoid a redefinition warning.
26001
26002         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
26003         long before casting to pointer to avoid a cast warning.
26004
26005 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
26006
26007         * sysdeps/tile/tilegx/Implies: New file.
26008
26009 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
26010
26011         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
26012
26013 2014-12-23  Florian Weimer  <fweimer@redhat.com>
26014
26015         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
26016
26017 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
26018
26019         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
26020         not define.
26021         * sysdeps/unix/sysv/linux/utimes.c: Do not include
26022         <kernel-features.h>.
26023         (__utimes) [__NR_utimes]: Make code unconditional.
26024         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
26025         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
26026         (__ASSUME_UTIMES): Do not undefine.
26027         * sysdeps/unix/sysv/linux/tile/kernel-features.h
26028         (__ASSUME_UTIMES): Likewise.
26029         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26030         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
26031         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
26032         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
26033
26034 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
26035
26036         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
26037
26038 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
26039
26040         [BZ #17747]
26041         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
26042         alias to weak alias for j0l, y0l.
26043         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
26044         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
26045
26046         [BZ #17746]
26047         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
26048         conversion.
26049
26050 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
26051
26052         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
26053         to zero if not already defined.
26054
26055 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
26056
26057         [BZ #17724]
26058         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
26059         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
26060         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
26061         (char *) casts added.
26062         * sysdeps/ieee754/k_standardf.c: New file.
26063         * sysdeps/ieee754/k_standardl.c: Likewise.
26064         * math/Makefile (libm-support): Remove k_standard.
26065         (libm-calls): Add k_standard.
26066
26067 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
26068
26069         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
26070         Optimize to avoid an unnecessary FPCR read.
26071
26072 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
26073
26074         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
26075         Optimize to reduce FPCR/FPSR accesses.
26076
26077 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
26078
26079         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
26080         Call libc_fetestexcept_aarch64.
26081
26082 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
26083
26084         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
26085         Call libc_fesetround_aarch64.
26086
26087 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
26088
26089         [BZ #17733]
26090         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
26091         (__bind): Do not define as weak alias.
26092         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
26093         define.
26094         (__getsockname): Do not define as weak alias.
26095
26096 2014-12-22  Will Newton  <will.newton@linaro.org>
26097
26098         * manual/install.texi: Document that we require bison 2.7
26099         or above.
26100         * INSTALL: Regenerate.
26101         * configure.ac: Use AC_CHECK_PROG_VER instead of
26102         AC_PATH_PROG when checking for bison and check for
26103         version 2.7 or above.
26104         * configure: Regenerate.
26105
26106 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
26107
26108         [BZ #17745]
26109         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
26110         * sysdeps/tile/ffsll.c (ffsll): To here.
26111
26112         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
26113
26114 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
26115
26116         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
26117         if not defined.
26118         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
26119         definition.
26120         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
26121         hidden ___tls_get_addr.
26122         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
26123         hidden __tls_get_addr.
26124         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
26125         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
26126         Likewise.
26127
26128 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
26129
26130         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
26131         _dl_init call.
26132
26133 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
26134
26135         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
26136         from "call _dl_init@PLT".
26137         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
26138
26139 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
26140
26141         * manual/search.texi: (Array Sort Function): Clarify stable sorting
26142         guarantees.
26143
26144 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
26145
26146         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
26147
26148 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
26149
26150         [BZ #17744]
26151         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
26152         strnlen.
26153
26154 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
26155
26156         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
26157         of multu on MIPSr6.
26158         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
26159         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
26160         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
26161         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
26162         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
26163
26164 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
26165
26166         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
26167         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
26168         (PTR_SUBU): Use subu for mips32r6/mips64r6.
26169         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
26170         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
26171         mips32r6/mips64r6.
26172         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
26173
26174 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
26175
26176         * string/strncat.c (STRNCAT): Simplify implementation.
26177
26178 2014-12-19  David S. Miller  <davem@davemloft.net>
26179
26180         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
26181         access the quad as both a long double and as a series of 4 words.
26182
26183         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
26184         link_map->l_info array access.
26185
26186 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
26187
26188         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
26189
26190         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
26191         * math/atest-exp2.c (TIMEOUT): Likewise.
26192         * math/atest-sincos.c (TIMEOUT): Likewise.
26193
26194 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
26195
26196         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
26197         -Wno-error with -fno-builtin-lround.
26198
26199 2014-12-19  Torvald Riegel  <triegel@redhat.com>
26200
26201         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
26202         Contains futex constants and functions moved over from ...
26203         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
26204         <lowlevellock-futex.h>.
26205         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
26206         (lll_timedwait_tid): Add comments and parentheses around macro
26207         arguments.
26208
26209 2014-12-19  Torvald Riegel  <triegel@redhat.com>
26210
26211         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
26212         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
26213         (__lll_private_flag): Remove.
26214         (lll_futex_wait): Likewise.
26215         (lll_futex_timed_wait): Likewise.
26216         (lll_futex_wake): Likewise.
26217         (lll_futex_requeue): Likewise.
26218         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
26219         (__lll_timedwait_tid): Spell out argument names.
26220         (lll_timedwait_tid): Add comments and parentheses around macro
26221         arguments.
26222         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
26223         LLL_SHARED and LLL_PRIVATE usable from assembly code.
26224
26225 2014-12-19  Torvald Riegel  <triegel@redhat.com>
26226
26227         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
26228         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
26229         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
26230         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
26231         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
26232         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
26233         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
26234         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
26235         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
26236         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
26237         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
26238         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
26239         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
26240         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
26241         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
26242         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
26243         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
26244         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
26245         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
26246
26247 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
26248
26249         * sysdeps/x86_64/x32/Makefile: New file.
26250
26251 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
26252
26253         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
26254         1L with (mp_limb_t) 1.
26255
26256 2014-12-17  Roland McGrath  <roland@hack.frob.com>
26257
26258         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
26259         * nptl/libc_pthread_init.c: ... here.
26260         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
26261         * nptl/register-atfork.c: ... here.
26262
26263         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
26264         Use pthread_sigmask rather than INTERNAL_SYSCALL.
26265         Use assert_perror to check its return value.
26266         (__gai_create_helper_thread): Likewise.
26267
26268         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
26269
26270         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
26271
26272 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
26273
26274         [BZ #17725]
26275         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
26276         __profil_counter.
26277         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
26278         Likewise.
26279         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
26280         Likewise.
26281         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
26282         Likewise.
26283         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
26284         (profil_counter): Likewise.
26285         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
26286         (profil_counter): Likewise.
26287         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
26288         Likewise.
26289         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
26290         Likewise.
26291         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
26292         (profil_counter): Likewise.
26293         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
26294         Likewise.
26295         [!__profil_counter] (profil_counter): Define as weak alias of
26296         __profil_counter.
26297         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
26298         (profil_counter): Rename to __profil_counter.
26299         [!__profil_counter] (profil_counter): Define as weak alias of
26300         __profil_counter.
26301         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
26302         (profil_counter): Rename to __profil_counter.
26303         [!__profil_counter] (profil_counter): Define as weak alias of
26304         __profil_counter.
26305         * sysdeps/posix/profil.c: Update comment referring to
26306         profil_counter.
26307         (__profil): Use __profil_counter instead of profil_counter.
26308         * sysdeps/posix/sprofil.c (profil_counter): Rename to
26309         __profil_counter.  Use __profil_counter_ushort and
26310         __profil_counter_uint in definitions.
26311         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
26312         instead of profil_counter_uint and profil_counter_ushort.
26313
26314         [BZ #17722]
26315         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
26316         define as weak alias of __inet_makeaddr.
26317         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
26318         as weak alias of __inet_addr.
26319         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
26320         as weak alias of __inet_pton.  Use libc_hidden_weak.
26321         * include/arpa/inet.h (__inet_pton): Declare.  Use
26322         libc_hidden_proto.
26323         (inet_makeaddr): Don't use libc_hidden_proto.
26324         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
26325         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
26326         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
26327         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
26328         Remove variable.
26329         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
26330         (test-xfail-POSIX/time.h/linknamespace): Likewise.
26331
26332 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
26333
26334         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
26335
26336 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26337
26338         * stdio-common/bug-vfprintf-nargs.c (do_test):
26339         Cast value to intptr_t to avoid format warning
26340         for usage with PRIdPTR printing macro.
26341
26342 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26343
26344         * libio/tst-widetext.c (do_test):
26345         Use format type %td instead of %Zd for ptrdiff_t
26346         in order to avoid format warning.
26347
26348 2014-12-17  Andreas Schwab  <schwab@suse.de>
26349
26350         * nscd/mem.c (gc): Add size_t cast to match printf format.
26351
26352 2014-12-16  Roland McGrath  <roland@hack.frob.com>
26353
26354         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
26355         (init): Apply PTR_MANGLE to pointers before storing them.
26356         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
26357         before using them.
26358
26359 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
26360
26361         [BZ #17719]
26362         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
26363         define as weak alias of __memrchr.
26364         (__memrchr): Do not define as strong alias of memrchr.
26365         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
26366         Remove variable.
26367         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
26368         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
26369         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
26370
26371         [BZ #17717]
26372         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
26373         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
26374         (if_indextoname): Rename to __if_indextoname and define as weak
26375         alias of __if_indextoname.  Use libc_hidden_weak.
26376         (if_freenameindex): Rename to __if_freenameindex and define as
26377         weak alias of __if_freenameindex.
26378         (if_nameindex): Rename to __if_nameindex and define as weak alias
26379         of __if_nameindex.
26380         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
26381         __if_nametoindex and define as weak alias of __if_nametoindex.
26382         Use libc_hidden_weak.
26383         (if_freenameindex): Rename to __if_freenameindex and define as
26384         weak alias of __if_freenameindex.
26385         (if_nameindex): Rename to __if_nameindex and define as weak alias
26386         of __if_nameindex.
26387         (if_indextoname): Rename to __if_indextoname and define as weak
26388         alias of __if_indextoname.  Use libc_hidden_weak.
26389         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
26390         __if_nametoindex and define as weak alias of __if_nametoindex.
26391         Use libc_hidden_weak.
26392         (if_freenameindex): Rename to __if_freenameindex and define as
26393         weak alias of __if_freenameindex.  Use libc_hidden_weak.
26394         (if_nameindex_netlink): Use __if_freenameindex instead of
26395         if_freenameindex.
26396         (if_nameindex): Rename to __if_nameindex and define as weak alias
26397         of __if_nameindex.  Use libc_hidden_weak.
26398         (if_indextoname): Rename to __if_indextoname and define as weak
26399         alias of __if_indextoname.  Use libc_hidden_weak.
26400         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
26401         libc_hidden_proto.
26402         [!_ISOMAC] (__if_freenameindex): Likewise.
26403         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
26404         if_nametoindex.
26405         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
26406         variable.
26407         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
26408         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
26409         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
26410         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
26411         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
26412         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
26413         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
26414
26415         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
26416         Remove variable.
26417         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
26418         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
26419
26420 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26421
26422         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
26423         subscript above bounds'
26424
26425         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
26426         bounds.
26427
26428 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
26429
26430         * libio/tst-fopenloc.c: Use test-skeleton.c.
26431
26432         * stdlib/tst-bsearch.c: Use test-skeleton.c.
26433         (entry): Rename to ITEM.
26434         (do_test, comp): Adjust.
26435
26436         * stdio-common/tst-fseek.c: Use test-skeleton.c.
26437
26438 2014-12-16  Torvald Riegel  <triegel@redhat.com>
26439
26440         * string/tester.c: Include <libc-internal.h>.
26441         (test_memset): Ignore -Wmemset-transposed-args.
26442
26443 2014-12-16  Torvald Riegel  <triegel@redhat.com>
26444
26445         * misc/tst-mntent2.c (do_test): Fix warning.
26446
26447 2014-12-16  Torvald Riegel  <triegel@redhat.com>
26448
26449         * elf/tst-unique4lib.cc(a): Mark as used.
26450
26451 2014-12-16  Florian Weimer  <fweimer@redhat.com>
26452
26453         [BZ #17630]
26454         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
26455         names.
26456
26457 2014-12-16  Allan McRae  <allan@archlinux.org>
26458
26459         * stdio-common/Makefile (tests): Re-add bug26.
26460
26461 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
26462
26463         [BZ #17657]
26464         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
26465         static array.
26466
26467 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
26468
26469         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
26470         (__lll_lock_wait): Likewise.
26471         (__lll_timedlock_wait): Likewise.
26472         (__lll_timedwait_tid): Likewise.
26473         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
26474         (__lll_robust_timedlock_wait): Likewise.
26475         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
26476         (lll_cond_trylock): Likewise.
26477         (__lll_lock): Likewise.
26478         (__lll_robust_lock): Likewise.
26479         (__lll_cond_lock): Likewise.
26480         (lll_robust_cond_lock): Likewise.
26481         (__lll_timedlock): Likewise.
26482         (__lll_robust_timedlock): Likewise.
26483         (__lll_unlock): Likewise.
26484         (__lll_robust_unlock): Likewise.
26485         (lll_wait_tid): Likewise.
26486         (lll_timedwait_tid): Likewise.
26487
26488 2014-12-15  Torvald Riegel  <triegel@redhat.com>
26489
26490         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
26491
26492 2014-12-15  Torvald Riegel  <triegel@redhat.com>
26493
26494         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
26495
26496 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
26497
26498         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
26499         * stdio-common/tst-sprintf.c: Likewise.
26500
26501 2014-12-15  Torvald Riegel  <triegel@redhat.com>
26502
26503         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
26504
26505 2014-12-15  Jeff Law  <law@redhat.com>
26506
26507         [BZ #16617]
26508         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
26509         on the heap.  (CVE-2012-3406)
26510         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
26511         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
26512         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
26513
26514 2014-12-15  Will Newton  <will.newton@linaro.org>
26515
26516         * manual/install.texi: Bump required version of texinfo
26517         to 4.7 from 4.5.
26518         * INSTALL: Regenerated.
26519         * configure.ac: Check for makeinfo version 4.7 and above.
26520         * configure: Regenerated.
26521
26522 2014-12-12  Roland McGrath  <roland@hack.frob.com>
26523
26524         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
26525         PREFIX, string constant to insert between directory and name.
26526         * sysdeps/posix/shm_open.c: Update caller.
26527         * sysdeps/posix/shm_unlink.c: Likewise.
26528         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
26529         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
26530         (SEM_SHM_PREFIX): New macro.
26531         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
26532         [$(have-thread-library) = no].
26533         * nptl/Makefile (libpthread-routines): Add shm-directory.
26534         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
26535         * sysdeps/nptl/shm-directory.h: New file.
26536         * sysdeps/posix/shm-directory.c
26537         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
26538         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
26539         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
26540         INTERNAL_SYSCALL.
26541         (__where_is_shmfs): Function removed.
26542         (mountpoint, defaultmount, defaultdir, __namedsem_once):
26543         Variables removed.
26544         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
26545         Use SHM_GET_NAME.
26546         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
26547
26548         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
26549         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
26550         unconditional for use inside libpthread.
26551         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
26552
26553 2014-12-12  Roland McGrath  <roland@hack.frob.com>
26554
26555         * nptl/pthread_getaffinity.c: New file.
26556         * nptl/pthread_setaffinity.c: New file.
26557         * nptl/pthread_getname.c: New file.
26558         * nptl/pthread_setname.c: New file.
26559
26560         * nptl/pthread_create.c (START_THREAD_DEFN)
26561         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
26562
26563 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
26564             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26565
26566         * resolv/res_send.c (send_vc): Disable warning resplen may
26567         be used uninitialized.
26568
26569 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
26570
26571         * nptl/tst-mutex6.c
26572         (ATTR_NULL): New define checks ATTR against NULL.
26573         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
26574         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
26575
26576 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
26577
26578         [BZ #17581]
26579         * malloc/hooks.c
26580         (mem2mem_check): Revert my previous change.
26581         (malloc_check_get_size): Revert my previous change.
26582         (mem2chunk_check): Revert my previous change.
26583
26584 2014-12-11  Roland McGrath  <roland@hack.frob.com>
26585
26586         * sysdeps/posix/shm-directory.c: New file.
26587         * sysdeps/posix/shm-directory.h: New file.
26588         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
26589         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
26590         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
26591         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
26592         Transmute EPERM to EACCES.
26593         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
26594         from ...
26595         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
26596         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
26597
26598 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
26599
26600         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
26601         pointer and cast to uintptr_t.
26602         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
26603         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
26604         Add cast to avoid warning.
26605         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
26606
26607 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
26608
26609         * nptl/semaphore.h: Move to ...
26610         * sysdeps/pthread/semaphore.h: ... here.
26611         * Makefile (installed-headers): Change nptl/semaphore.h to
26612         sysdeps/pthread/semaphore.h.
26613
26614 2014-12-11  Roland McGrath  <roland@hack.frob.com>
26615
26616         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
26617         generated error format strings.
26618
26619         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
26620         -Wformat-extra-args warnings for scanf formats.
26621         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
26622         test of zero-length format (duh).
26623         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
26624         corner-case scanf format test.
26625         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
26626         generated fprintf format string.
26627         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
26628         corner-case sprintf format tests.
26629         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
26630         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
26631         -Wformat-extra-args warnings throughout.
26632         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
26633         (CFLAGS-scanf4.c): Likewise.
26634         (CFLAGS-scanf7.c): Likewise.
26635         (CFLAGS-tst-sprintf.c): Likewise.
26636         (CFLAGS-tst-printf.c): Likewise.
26637         (CFLAGS-tst-printfsz.c): Likewise.
26638
26639 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
26640
26641         * include/cpio.h: New file.
26642         * include/fmtmsg.h: Likewise.
26643
26644         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
26645         corresponding format argument to size_t.
26646         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
26647         arguments.
26648         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
26649         corresponding format argument to size_t.
26650         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
26651         arguments.
26652         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
26653         corresponding format argument to size_t.
26654         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
26655         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
26656         (CFLAGS-tst-mbswcs2.c): Likewise.
26657         (CFLAGS-tst-mbswcs3.c): Likewise.
26658         (CFLAGS-tst-mbswcs4.c): Likewise.
26659         (CFLAGS-tst-mbswcs5.c): Likewise.
26660         (CFLAGS-tst-trans.c): Likewise.
26661
26662 2014-12-11  Roland McGrath  <roland@hack.frob.com>
26663
26664         * posix/regexbug1.c (main): Use "%s" format with regerror results,
26665         rather than assuming they won't contain any '%'s.
26666
26667 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
26668
26669         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
26670         inhibit_loop_to_libcall to avoid recursive calls.
26671         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
26672         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
26673
26674 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
26675
26676         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
26677         prototype.
26678
26679 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
26680
26681         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
26682         integer value instead of boolean.
26683
26684 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
26685
26686         * malloc/malloc.c: Fix powerof2 check.
26687
26688 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
26689
26690         * locale/programs/locfile.h (maybe_swap_uint32):
26691         Remove inline and add unused attribute.
26692
26693 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
26694
26695         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
26696         Truncating assembler expression to a .long expression.
26697
26698 2014-12-11  Andreas Schwab  <schwab@suse.de>
26699
26700         * elf/rtld.c (struct map_args): Constify str member.
26701         (do_preload): Constify fname argument.
26702
26703 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26704
26705         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
26706         constants definition.
26707
26708 2014-12-11  Andreas Schwab  <schwab@suse.de>
26709
26710         [BZ #16657]
26711         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
26712         FORCE_ELISION instead of DO_ELISION.
26713         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
26714         Remove.
26715         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
26716         Likewise.
26717
26718         * iconvdata/gconv-modules: Remove duplicate entry.
26719
26720 2014-12-11  Will Newton  <will.newton@linaro.org>
26721
26722         Merge gettext 0.19.3 into intl/.
26723
26724         This involves a number of cosmetic changes to comments
26725         and ANSI function definitions and prototypes throughout
26726         all the files. The gettext copyright header is used but
26727         with the date ranges taken from the glibc copy.
26728
26729         * NEWS: Add gettext merge to 2.21.
26730         * intl/bindtextdom.c: Switch to gettext copyright.
26731         Use ANSI definitions and prototypes.
26732         Use gl_* locking primitives rather than __libc_* ones.
26733         Use __builtin_expect rather than __glibc_likely/unlikely.
26734         * intl/dcgettext.c: Switch to gettext copyright.
26735         Use ANSI definitions and prototypes.
26736         * intl/dcigettext.c: Switch to gettext copyright.
26737         Use ANSI definitions and prototypes.
26738         (INTDIV0_RAISES_SIGFPE): New define.
26739         Use gl_* locking primitives rather than __libc_* ones.
26740         Include eval-plural.h instead of plural-eval.c.
26741         Use __builtin_expect rather than __glibc_likely/unlikely.
26742         * intl/dcngettext.c: Switch to gettext copyright.
26743         Use ANSI definitions and prototypes.
26744         * intl/dgettext.c: Likewise.
26745         * intl/dngettext.c: Likewise.
26746         * intl/plural-eval.c: Renamed to...
26747         * intl/eval-plural.h: ...this.
26748         * intl/explodename.c: Switch to gettext copyright.
26749         Use ANSI definitions and prototypes.
26750         (_nl_explode_name): Use strchr instead of __rawmemchr.
26751         * intl/finddomain.c: Switch to gettext copyright.
26752         Use ANSI definitions and prototypes.
26753         Use gl_* locking primitives rather than __libc_* ones.
26754         (_nl_find_domain): Use malloc rather than alloca for
26755         allocation of temporary locale name.
26756         * intl/gettext.c: Switch to gettext copyright.
26757         Use ANSI definitions and prototypes.
26758         * intl/gettextP.h: Switch to gettext copyright.
26759         Use ANSI definitions and prototypes.
26760         Use gl_* locking primitives rather than __libc_* ones.
26761         * intl/gmo.h: Switch to gettext copyright.
26762         (struct sysdep_string): Move struct segment_pair outside of
26763         struct definition.
26764         * intl/hash-string.c: Use ANSI definitions and prototypes.
26765         * intl/hash-string.h: Switch to gettext copyright.
26766         Use ANSI definitions and prototypes.
26767         * intl/l10nflist.c: Switch to gettext copyright.
26768         Use ANSI definitions and prototypes.
26769         (_nl_normalize_codeset): Avoid integer overflow.
26770         * intl/loadinfo.h: Switch to gettext copyright.
26771         Use ANSI definitions and prototypes.
26772         (LIBINTL_DLL_EXPORTED): New define.
26773         (PATH_SEPARATOR): New define.
26774         * intl/loadmsgcat.c: Switch to gettext copyright.
26775         * intl/localealias.c: Switch to gettext copyright.
26776         Use ANSI definitions and prototypes.
26777         (_nl_expand_alias): Use PATH_SEPARATOR.
26778         * intl/ngettext.c: Switch to gettext copyright.
26779         Use ANSI definitions and prototypes.
26780         * intl/plural-exp.c: Likewise.
26781         * intl/plural-exp.h: Switch to gettext copyright.
26782         Use ANSI definitions and prototypes.
26783         (struct expression): Move definition of enum operator outside
26784         of struct definition.
26785         * intl/plural.c: Regenerate.
26786         * intl/plural.y: Switch to gettext copyright.
26787         Use ANSI definitions and prototypes.
26788         Port to bison 3.0.
26789         * intl/textdomain.c: Switch to gettext copyright.
26790         Use ANSI definitions and prototypes.
26791         Use gl_* locking primitives rather than __libc_* ones.
26792
26793 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
26794
26795         * debug/warning-nop.c: Add used atrribute.
26796
26797 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
26798
26799         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
26800
26801         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
26802         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
26803         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
26804
26805 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
26806             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26807
26808         [BZ #17634]
26809         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
26810         Undefine after defining function.  Define as weak alias of
26811         __wcschr.  Use libc_hidden_weak.
26812         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
26813         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
26814         (libc_hidden_def): Also define __GI___wcschr alias.
26815         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
26816         __wcschr and define as weak alias of __wcschr.
26817         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
26818         __wcschr.
26819         [!WCSCHR] (DEFAULT_WCSCHR): Define.
26820         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
26821         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
26822         libc_hidden_weak.  Do not use libc_hidden_def.
26823         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
26824         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
26825         __GI___wcschr alias.
26826         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
26827         [IS_IN (libc)] (wcschr): Define as macro expanding to
26828         __redirect_wcschr.
26829         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
26830         [IS_IN (libc)] (__wcschr_power6): Likewise.
26831         [IS_IN (libc)] (__wcschr_power7): Likewise.
26832         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
26833         instead of wcschr.
26834         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
26835         __libc_wcschr.
26836         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
26837         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
26838         __wcschr and define as weak alias of __wcschr.  Use
26839         libc_hidden_builtin_def.
26840         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
26841         as weak alias of __wcschr.  Use libc_hidden_weak.
26842         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
26843         wcschr.
26844         * time/era.c (_nl_init_era_entries): Likewise.
26845         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
26846         variable.
26847         (test-xfail-XPG3/time.h/linknamespace): Likewise.
26848         (test-xfail-XPG4/time.h/linknamespace): Likewise.
26849
26850 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
26851
26852         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
26853         format for long int variable.
26854
26855 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
26856
26857         [BZ #10672]
26858         * manual/search.texi: (Array Sort Function): Remove claim how to make
26859         qsort stable.
26860
26861 2014-12-10  Andreas Schwab  <schwab@suse.de>
26862
26863         [BZ #12847]
26864         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
26865         user-controlled locks.
26866
26867 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
26868
26869         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
26870         register.
26871
26872 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
26873
26874         * configure.ac (--disable-werror): New configure option.
26875         (enable_werror): New AC_SUBST.
26876         * configure: Regenerated.
26877         * config.make.in (enable-werror): New variable.
26878         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
26879         -Wno-error=undef.
26880         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
26881         * manual/install.texi (Configuring and compiling): Document
26882         --disable-werror.
26883         * INSTALL: Regenerated.
26884         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
26885         (CFLAGS-tst-chk2.c): Likewise.
26886         (CFLAGS-tst-chk3.c): Likewise.
26887         (CFLAGS-tst-chk4.cc): Likewise.
26888         (CFLAGS-tst-chk5.cc): Likewise.
26889         (CFLAGS-tst-chk6.cc): Likewise.
26890         (CFLAGS-tst-lfschk1.c): Likewise.
26891         (CFLAGS-tst-lfschk2.c): Likewise.
26892         (CFLAGS-tst-lfschk3.c): Likewise.
26893         (CFLAGS-tst-lfschk4.cc): Likewise.
26894         (CFLAGS-tst-lfschk5.cc): Likewise.
26895         (CFLAGS-tst-lfschk6.cc): Likewise.
26896
26897         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
26898         (main): Disable -Wdeprecated-declarations around calls to
26899         register_printf_function.
26900
26901         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
26902         (do_test): Disable -Wdiv-by-zero around some calls to
26903         fwrite_unlocked and fread_unlocked.
26904
26905         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
26906         (DIAG_POP_NEEDS_COMMENT): Likewise.
26907         (_DIAG_STR1): Likewise.
26908         (_DIAG_STR): Likewise.
26909         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
26910         * stdio-common/bug21.c: Include <libc-internal.h>.
26911         (do_test): Disable -Wformat around call to sscanf.
26912         * stdio-common/scanf14.c: Include <libc-internal.h>.
26913         (main): Disable -Wformat around some calls to scanf functions.
26914
26915 2014-12-09  Torvald Riegel  <triegel@redhat.com>
26916
26917         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
26918
26919 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26920
26921         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
26922         stack variable alignment.
26923
26924 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
26925
26926         [BZ #17682]
26927         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
26928         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
26929         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
26930         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
26931         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
26932         __getrlimit instead of getrlimit.
26933         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
26934         __gettimeofday instead of gettimeofday.
26935         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
26936         Likewise.
26937         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
26938         Likewise.
26939         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
26940         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
26941         Remove variable.
26942         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
26943         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
26944
26945 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26946
26947         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
26948         for wide-character tests.
26949
26950 2014-12-04  Roland McGrath  <roland@hack.frob.com>
26951
26952         * io/openat64.c: #include <libc-internal.h>
26953         (__openat64): Prototypify.  Use ignore_value on MODE.
26954         * io/openat.c: Likewise.
26955         * misc/reboot.c: #include <libc-internal.h>
26956         (reboot): Prototypify.  Use ignore_value on HOWTO.
26957         * misc/ptrace.c: #include <libc-internal.h>
26958         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
26959
26960 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
26961
26962         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
26963         XPG4, UNIX98 and XOPEN2K.
26964         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
26965         Remove variable.
26966         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
26967
26968 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
26969
26970         * libio/fileops.c: Use ISO C style for function definitions.
26971         * libio/iofopen.c: Likewise.
26972         * libio/wfileops.c: Likewise.
26973
26974         [BZ #17653]
26975         * libio/fileops.c (_IO_new_file_underflow): Unset cached
26976         offset on EOF.
26977         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
26978         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
26979         (fgets_func): Function pointer to fgets and fgetws.
26980         (do_ftell_test): Add test to verify ftell value after read
26981         EOF.
26982         (do_test): Set fgets_func.
26983
26984         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
26985         O_TRUNC flag for w and w+ modes.
26986         (do_rewind_test): Likewise.
26987         (do_ftell_test): Likewise.
26988         (do_write_test): Likewise.
26989
26990         [BZ #17647]
26991         * libio/fileops.c (do_ftell): Seek only when there are
26992         unflushed writes.
26993         * libio/wfileops.c (do_ftell_wide): Likewise.
26994         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
26995         test case.
26996         (do_one_test): Call it.
26997
26998 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
26999
27000         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
27001         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
27002         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
27003         Remove variable.
27004         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
27005         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
27006         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
27007
27008 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
27009
27010         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
27011         Remove variable.
27012         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
27013
27014         [BZ #17668]
27015         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
27016         as weak alias of __getifaddrs.  Use libc_hidden_weak.
27017         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
27018         __freeifaddrs.  Use libc_hidden_weak.
27019         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
27020         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
27021         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
27022         __freeifaddrs.  Use libc_hidden_weak.
27023         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
27024         __getifaddrs and define as weak alias of __getifaddrs.  Use
27025         libc_hidden_weak.
27026         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
27027         __freeifaddrs.  Use libc_hidden_weak.
27028         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
27029         Remove variable.
27030         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
27031         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
27032
27033 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
27034
27035         [BZ #17601]
27036         * sysdeps/mips/start.S (__start): Use indirect jump to call
27037         __libc_start_main.
27038
27039 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
27040
27041         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
27042
27043         * nptl/tst-mutex1.c: Include <stdbool.h>.
27044         [!ATTR] (ATTR_NULL): New macro.
27045         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
27046         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
27047         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
27048
27049         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
27050         to char *.
27051
27052         [BZ #17665]
27053         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
27054         Change conditional to [__USE_MISC].
27055
27056         [BZ #17664]
27057         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
27058         fgets_unlocked.
27059         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
27060         __fgets_unlocked.
27061         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
27062         fgets_unlocked.
27063         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
27064         Remove variable.
27065         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
27066         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
27067         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
27068         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
27069         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
27070         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
27071         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
27072         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
27073         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
27074
27075         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
27076
27077 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27078
27079         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27080         Remove strpbrk objects.
27081         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27082         (__libc_ifunc_impl_list): Remove strpbrk implementation.
27083         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
27084         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
27085         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
27086         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
27087
27088         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27089         Remove strcspn objects.
27090         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27091         (__libc_ifunc_impl_list): Remove strcspn implementation.
27092         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
27093         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
27094         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
27095         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
27096
27097         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27098         Remove strspn objetcs.
27099         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27100         (__libc_ifunc_impl_list): Remove strspn implementation.
27101         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
27102         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
27103         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
27104         * sysdeps/powerpc/powerpc64/strspn.S: New file.
27105
27106 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
27107
27108         [BZ #17581]
27109         * malloc/hooks.c
27110         (mem2mem_check): Add a terminator to the chain of checking blocks.
27111         (malloc_check_get_size): Use it here.
27112         (mem2chunk_check): Ditto.
27113
27114 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27115
27116         * sysdeps/powerpc/powerpc64/strtok.S: New file.
27117         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
27118
27119 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
27120
27121         * bits/ioctl-types.h: Indent preprocessor directives correctly.
27122
27123         * nptl/nptl-init.c: Include libc-internal.h.
27124         (__pthread_initialize_minimal_internal): Use ROUND_UP.
27125
27126         * elf/ldconfig.c (search_dir): Expand comment.
27127
27128 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
27129
27130         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
27131         variable.
27132         (linknamespace-symlist-stdlibs-tests): Likewise.
27133         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
27134         instead of $(objpfx)symlist-stdlibs.
27135         (linknamespace-libs-isoc): New variable.
27136         (linknamespace-libs): Use $(linknamespace-libs-isoc).
27137         (linknamespace-libs-ISO): New variable.
27138         (linknamespace-libs-ISO99): Likewise.
27139         (linknamespace-libs-ISO11): Likewise.
27140         (linknamespace-libs-XPG3): Likewise.
27141         (linknamespace-libs-XPG4): Likewise.
27142         (linknamespace-libs-POSIX): Likewise.
27143         (linknamespace-libs-UNIX98): Likewise.
27144         (linknamespace-libs-XOPEN2K): Likewise.
27145         (linknamespace-libs-POSIX2008): Likewise.
27146         (linknamespace-libs-XOPEN2K8): Likewise.
27147         ($(objpfx)symlist-stdlibs): Replace by
27148         $(linknamespace-symlist-stdlibs-tests).  Use
27149         $(linknamespace-libs-$*) as set of libraries.
27150         ($(linknamespace-header-tests)): Update dependencies.  Use
27151         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
27152         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
27153         * conform/linknamespace.pl: Remove comment about considering
27154         definitions of symbols from irrelevant libraries.
27155
27156 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
27157
27158         [BZ #13862]
27159         * elf/dl-tls.c: Include <atomic.h>.
27160         (oom): Remove #ifdef SHARED/#endif.
27161         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
27162         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
27163         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
27164         big enough.
27165         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
27166         * nptl/Makefile (tests): Add tst-stack4.
27167         (modules-names): Add tst-stack4mod.
27168         ($(objpfx)tst-stack4): New.
27169         (tst-stack4mod.sos): Likewise.
27170         ($(objpfx)tst-stack4.out): Likewise.
27171         ($(tst-stack4mod.sos)): Likewise.
27172         (clean): Likewise.
27173         * nptl/tst-stack4.c: New file.
27174         * nptl/tst-stack4mod.c: Likewise.
27175
27176 2014-11-27  J. Brown  <jb999@gmx.de>
27177
27178         * sysdeps/x86/bits/string.h: Add recent CPUs.
27179
27180 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
27181
27182         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
27183         sigblock.
27184
27185         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
27186         feof.
27187
27188         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
27189         variable.
27190
27191 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
27192
27193         * nscd/connections.c: Include libc-internal.h because of macro
27194         usage ignore_value.
27195
27196 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
27197
27198         * string/bits/string3.h (__warn_memset_zero_len): Don't
27199         declare for gcc newer than 5.0.
27200         (memset): Don't test for zero-length __LEN for gcc newer than
27201         5.0.
27202
27203 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
27204
27205         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
27206         size_t for %zu format.
27207
27208         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
27209         difference, not %ju.
27210
27211 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
27212
27213         * include/libc-internal.h (ignore_value): New macro.
27214         * nscd/connections.c (restart): Wrap calls to setuid and setgid
27215         with ignore_value.
27216
27217         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
27218         definition.
27219
27220         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
27221         pthread_cleanup_push to void *.
27222
27223         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
27224         Undefine.
27225
27226         [BZ #16619]
27227         [BZ #16740]
27228         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
27229         instead of 1L << 52.
27230
27231         * libio/bug-rewind.c (do_test): Check fwscanf return values.
27232         * libio/bug-rewind2.c (do_test): Likewise.
27233
27234         * debug/test-stpcpy_chk-ifunc.c: Remove file.
27235         * debug/test-strcpy_chk-ifunc.c: Likewise.
27236         * wcsmbs/test-wcschr-ifunc.c: Likewise.
27237         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
27238         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
27239         * wcsmbs/test-wcslen-ifunc.c: Likewise.
27240         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
27241         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
27242         * Rules [$(multi-arch) = no] (tests): Do not filter out
27243         $(tests-ifunc).
27244         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
27245         * debug/Makefile (tests-ifunc): Remove variable.
27246         (tests): Do not add $(tests-ifunc).
27247         * wcsmbs/Makefile (tests-ifunc): Remove variable.
27248         (tests): Do not add $(tests-ifunc).
27249         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
27250         [TEST_IFUNC]: Remove conditionals.
27251         * string/test-string.h (TEST_IFUNC): Remove macro.
27252         [TEST_IFUNC]: Remove conditionals.
27253
27254         * string/test-strchr.c [!WIDE] (L): New macro.
27255         [WIDE] (L): Likewise.
27256         (check1): Use CHAR instead of char.  Use L on string and character
27257         constants.
27258
27259 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
27260
27261         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
27262         tests.
27263         * sysdeps/powerpc/bits/atomic.h
27264         (__arch_atomic_exchange_and_add_32_acq): Add definition.
27265         (__arch_atomic_exchange_and_add_32_rel): Likewise.
27266         (atomic_exchange_and_add_acq): Likewise.
27267         (atomic_exchange_and_add_rel): Likewise.
27268         * sysdeps/powerpc/powerpc32/bits/atomic.h
27269         (__arch_atomic_exchange_and_add_64_acq): Add definition.
27270         (__arch_atomic_exchange_and_add_64_rel): Likewise.
27271         * sysdeps/powerpc/powerpc64/bits/atomic.h
27272         (__arch_atomic_exchange_and_add_64_acq): Add definition.
27273         (__arch_atomic_exchange_and_add_64_rel): Likewise.
27274
27275 2014-11-26  Torvald Riegel  <triegel@redhat.com>
27276
27277         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
27278         Change synchronization of __sched_fifo_min_prio and
27279         __sched_fifo_max_prio.
27280         * nptl/pthread_mutexattr_getprioceiling.c
27281         (pthread_mutexattr_getprioceiling): Likewise.
27282         * nptl/pthread_mutexattr_setprioceiling.c
27283         (pthread_mutexattr_setprioceiling): Likewise.
27284         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
27285         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
27286         Likewise.
27287
27288 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
27289
27290         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
27291         void.
27292
27293 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
27294
27295         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
27296         third argument const.
27297
27298 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27299
27300         fnmatch: work around GCC compiler warning bug with uninit var
27301         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
27302         This works around a bug with x86-64 GCC 4.9.2 and earlier
27303         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
27304         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
27305         used uninitialized in this function [-Wmaybe-uninitialized]".
27306
27307 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
27308
27309         * posix/bug-regex31.c (main): Return RES not 0.
27310
27311 2014-11-25  Anton Blanchard <anton@samba.org>
27312
27313         * sysdeps/powerpc/bits/atomic.h
27314         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
27315
27316 2014-11-24  Sterling Augustine  <saugustine@google.com>
27317
27318         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
27319
27320 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
27321
27322         [BZ #17608]
27323         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
27324
27325 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
27326
27327         [BZ #17633]
27328         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
27329         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
27330         variable.
27331         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
27332         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
27333
27334 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
27335
27336         * string/strncpy.c (strncpy): Improve performance by using memset.
27337
27338 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
27339
27340         * string/strcpy.c (strcpy):
27341         Improve performance by using strlen and memcpy.
27342
27343 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
27344
27345         * string/strcoll_l.c (get_next_seq): __always_inline.
27346         * string/strcoll_l.c (do_compare): __always_inline.
27347
27348 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27349
27350         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
27351         defined.
27352         * include/mqueue.h: Likewise.
27353         * include/stdlib.h: Likewise.
27354
27355         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
27356         (get_null_defines): Adjust.
27357         * sunrpc/Makefile: Adjust comment.
27358         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
27359         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
27360         (CFLAGS-interp.c): Likewise.
27361         (CFLAGS-ldconfig.c): Likewise.
27362         (CPPFLAGS-.os): Likewise.
27363         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
27364         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
27365         * extra-modules.mk (extra-modules.mk): Likewise.
27366         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
27367         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
27368         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
27369         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
27370         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
27371         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
27372         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
27373         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
27374         * iconvdata/Makefile (CPPFLAGS): Likewise.
27375         (cpp-srcs-left): Add libof for all iconvdata routines.
27376         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
27377         * include/assert.h: Likewise.
27378         * include/ctype.h: Likewise.
27379         * include/errno.h: Likewise.
27380         * include/libc-symbols.h: Likewise.
27381         * include/math.h: Likewise.
27382         * include/netdb.h: Likewise.
27383         * include/resolv.h: Likewise.
27384         * include/stdio.h: Likewise.
27385         * include/stdlib.h: Likewise.
27386         * include/string.h: Likewise.
27387         * include/sys/stat.h: Likewise.
27388         * include/wctype.h: Likewise.
27389         * intl/l10nflist.c: Likewise.
27390         * libidn/idn-stub.c: Likewise.
27391         * libio/libioP.h: Likewise.
27392         * nptl/libc_multiple_threads.c: Likewise.
27393         * nptl/pthreadP.h: Likewise.
27394         * posix/regex_internal.h: Likewise.
27395         * resolv/res_hconf.c: Likewise.
27396         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
27397         * sysdeps/arm/memmove.S: Likewise.
27398         * sysdeps/arm/sysdep.h: Likewise.
27399         * sysdeps/generic/_itoa.h: Likewise.
27400         * sysdeps/generic/symbol-hacks.h: Likewise.
27401         * sysdeps/gnu/errlist.awk: Likewise.
27402         * sysdeps/gnu/errlist.c: Likewise.
27403         * sysdeps/i386/i586/memcpy.S: Likewise.
27404         * sysdeps/i386/i586/memset.S: Likewise.
27405         * sysdeps/i386/i686/memcpy.S: Likewise.
27406         * sysdeps/i386/i686/memmove.S: Likewise.
27407         * sysdeps/i386/i686/mempcpy.S: Likewise.
27408         * sysdeps/i386/i686/memset.S: Likewise.
27409         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
27410         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27411         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
27412         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
27413         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27414         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
27415         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
27416         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27417         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
27418         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27419         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27420         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27421         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27422         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27423         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27424         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27425         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
27426         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
27427         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
27428         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27429         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
27430         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
27431         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27432         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27433         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27434         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
27435         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
27436         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27437         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
27438         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
27439         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27440         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
27441         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
27442         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27443         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
27444         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
27445         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27446         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27447         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
27448         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
27449         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27450         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27451         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
27452         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
27453         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27454         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27455         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
27456         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
27457         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27458         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
27459         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27460         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
27461         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
27462         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27463         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
27464         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
27465         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27466         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
27467         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
27468         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27469         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
27470         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27471         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
27472         * sysdeps/nptl/bits/libc-lock.h: Likewise.
27473         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
27474         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
27475         * sysdeps/posix/closedir.c: Likewise.
27476         * sysdeps/posix/opendir.c: Likewise.
27477         * sysdeps/posix/readdir.c: Likewise.
27478         * sysdeps/posix/rewinddir.c: Likewise.
27479         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
27480         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
27481         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
27482         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
27483         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
27484         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
27485         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
27486         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
27487         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
27488         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
27489         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
27490         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
27491         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
27492         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
27493         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
27494         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
27495         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
27496         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
27497         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
27498         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
27499         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
27500         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
27501         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
27502         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
27503         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
27504         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
27505         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
27506         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
27507         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
27508         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
27509         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
27510         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
27511         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
27512         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
27513         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
27514         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
27515         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
27516         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
27517         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
27518         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
27519         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
27520         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
27521         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
27522         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
27523         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
27524         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
27525         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
27526         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
27527         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
27528         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
27529         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
27530         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
27531         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
27532         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
27533         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
27534         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
27535         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
27536         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
27537         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
27538         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
27539         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
27540         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
27541         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
27542         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
27543         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
27544         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
27545         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
27546         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
27547         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
27548         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
27549         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
27550         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
27551         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
27552         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
27553         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
27554         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
27555         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
27556         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
27557         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
27558         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
27559         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
27560         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
27561         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
27562         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
27563         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
27564         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
27565         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
27566         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
27567         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
27568         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
27569         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
27570         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
27571         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
27572         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27573         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27574         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
27575         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27576         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27577         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
27578         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
27579         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27580         * sysdeps/unix/alpha/sysdep.S: Likewise.
27581         * sysdeps/unix/alpha/sysdep.h: Likewise.
27582         * sysdeps/unix/make-syscalls.sh: Likewise.
27583         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
27584         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27585         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27586         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
27587         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27588         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
27589         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
27590         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27591         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
27592         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
27593         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27594         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
27595         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27596         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
27597         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
27598         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
27599         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27600         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
27601         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
27602         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
27603         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
27604         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27605         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
27606         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
27607         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27608         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
27609         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
27611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
27612         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
27613         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27614         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27615         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
27616         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27617         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
27618         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27619         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
27620         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27621         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
27622         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
27623         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27624         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27625         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27626         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
27627         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27628         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
27629         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27630         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
27631         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
27632         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27633         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27634         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27635         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27636         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
27637         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
27638         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27639         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27640         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27641         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
27642         * sysdeps/x86_64/memcpy.S: Likewise.
27643         * sysdeps/x86_64/memmove.c: Likewise.
27644         * sysdeps/x86_64/memset.S: Likewise.
27645         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
27646         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
27647         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
27648         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
27649         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
27650         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
27651         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
27652         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27653         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27654         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27655         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27656         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27657         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
27658         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27659         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27660         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
27661         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
27662         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27663         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
27664         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27665         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
27666         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27667         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
27668         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
27669         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27670         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27671         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27672         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
27673         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
27674         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27675         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
27676         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27677         * sysdeps/x86_64/strcmp.S: Likewise.
27678
27679         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
27680
27681         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
27682         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
27683         * elf/rtld-Rules: Likewise.
27684         * elf/setup-vdso.h: Likewise.
27685         * include/assert.h: Likewise.
27686         * include/bits/stdlib-float.h: Likewise.
27687         * include/errno.h: Likewise.
27688         * include/sys/stat.h: Likewise.
27689         * include/unistd.h: Likewise.
27690         * sysdeps/aarch64/setjmp.S: Likewise.
27691         * sysdeps/alpha/setjmp.S: Likewise.
27692         * sysdeps/arm/__longjmp.S: Likewise.
27693         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
27694         * sysdeps/arm/setjmp.S: Likewise.
27695         * sysdeps/arm/sysdep.h: Likewise.
27696         * sysdeps/generic/_itoa.h: Likewise.
27697         * sysdeps/generic/dl-sysdep.h: Likewise.
27698         * sysdeps/generic/ldsodefs.h: Likewise.
27699         * sysdeps/i386/dl-tls.h: Likewise.
27700         * sysdeps/i386/setjmp.S: Likewise.
27701         * sysdeps/m68k/setjmp.c: Likewise.
27702         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
27703         * sysdeps/mach/hurd/opendir.c: Likewise.
27704         * sysdeps/posix/getcwd.c: Likewise.
27705         * sysdeps/posix/opendir.c: Likewise.
27706         * sysdeps/posix/profil.c: Likewise.
27707         * sysdeps/powerpc/dl-procinfo.h: Likewise.
27708         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
27709         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
27710         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
27711         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27712         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
27713         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27714         * sysdeps/s390/dl-tls.h: Likewise.
27715         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27716         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27717         * sysdeps/sh/sh3/setjmp.S: Likewise.
27718         * sysdeps/sh/sh4/setjmp.S: Likewise.
27719         * sysdeps/unix/alpha/sysdep.h: Likewise.
27720         * sysdeps/unix/arm/sysdep.S: Likewise.
27721         * sysdeps/unix/i386/sysdep.S: Likewise.
27722         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27723         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
27724         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27725         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27726         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27727         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
27728         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27729         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27730         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
27731         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
27732         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
27733         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27734         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27737         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27738         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27739         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27740         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27741         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27742         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27743         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27744         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27745         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27746         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27747         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27748         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27749         * sysdeps/unix/x86_64/sysdep.S: Likewise.
27750         * sysdeps/x86_64/setjmp.S: Likewise.
27751
27752         * include/math.h: Use IS_IN instead of IS_IN_libm.
27753         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
27754         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
27755         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
27756         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
27757         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
27758         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
27759         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
27760         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
27761         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
27762         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
27763         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
27764         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
27765         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
27766         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
27767         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
27768         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
27769         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27770         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
27771         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27772         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
27773         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
27774         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
27775         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
27776         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
27777         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
27778         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
27779         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
27780         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27781         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27782         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
27783         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
27784         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
27785         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
27786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
27787         Likewise.
27788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
27789         Likewise.
27790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
27791         Likewise.
27792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
27793         Likewise.
27794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
27795         Likewise.
27796         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
27797         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
27798         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
27799         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
27800         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
27801         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
27802         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
27803         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
27804         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
27805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
27806         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
27807         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
27808         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
27809         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
27810         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
27811         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
27812         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
27813         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
27814         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
27815         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
27816         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
27817         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
27818         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
27819         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
27820         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
27821         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
27822         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
27823
27824         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
27825         * nptl/pthreadP.h: Likewise.
27826         * nptl_db/structs.def: Likewise.
27827         * sysdeps/arm/sysdep.h: Likewise.
27828         * sysdeps/nptl/bits/libc-lock.h: Likewise.
27829         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
27830         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
27831         * sysdeps/unix/alpha/sysdep.h: Likewise.
27832         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
27833         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27834         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27835         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27836         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
27837         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
27838         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27839         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
27840         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27841         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
27842         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
27843         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
27844         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27845         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
27846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
27847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
27848         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27849         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27850         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27851         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
27852         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
27853         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27854         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27855         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
27856         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
27857         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27858
27859         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
27860         * nptl/pthreadP.h: Likewise.
27861         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
27862         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27863         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27864         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
27865         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
27866         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
27867         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27868         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
27869         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
27870         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
27871         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27872         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
27873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
27874         Likewise.
27875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
27876         Likewise.
27877         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27878         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27879         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27880         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
27881         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
27882         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27883         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
27884         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27885
27886         * dlfcn/dladdr.c: Use IS_IN.
27887         * dlfcn/dladdr1.c: Likewise.
27888         * dlfcn/dlclose.c: Likewise.
27889         * dlfcn/dlerror.c: Likewise.
27890         * dlfcn/dlinfo.c: Likewise.
27891         * dlfcn/dlmopen.c: Likewise.
27892         * dlfcn/dlopen.c: Likewise.
27893         * dlfcn/dlsym.c: Likewise.
27894         * dlfcn/dlvsym.c: Likewise.
27895
27896         * include/ifaddrs.h: Use IS_IN.
27897         * inet/check_pf.c: Likewise.
27898         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
27899         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
27900
27901         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
27902         IS_IN_ldconfig.
27903         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
27904         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
27905
27906         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
27907         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
27908         IS_IN (libc).
27909
27910         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
27911
27912         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
27913         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
27914         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
27915         * include/libc-symbols.h (IS_IN_LIB): New macro.
27916         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
27917         * include/netdb.h: Likewise.
27918         * include/stap-probe.h: Remove all uses of IN_LIB.
27919
27920         * Makeconfig (module-cppflags-real): Define MODULE_NAME
27921         instead of IN_MODULE.
27922         * include/libc-symbols.h (IN_MODULE): Define using
27923         MODULE_NAME.
27924         (PASTE_NAME, PASTE_NAME1): New macros.
27925         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
27926         of IN_LIB.
27927         (STAP_PROBE_ASM): Likewise.
27928
27929 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27930
27931         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
27932         __mach_init in dlopened libc.
27933
27934 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
27935
27936         * sysdeps/arm/preconfigure.ac: Delete EABI check.
27937         * sysdeps/arm/preconfigure: Regenerate.
27938
27939 2014-11-21  Roland McGrath  <roland@hack.frob.com>
27940
27941         * nptl/pthread_create.c (__pthread_create_2_1): Set
27942         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
27943         when copying values from IATTR into PD.
27944
27945 2014-11-21  Will Newton  <will.newton@linaro.org>
27946             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
27947
27948         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
27949         Refactor inline-asm.  Also add comment.
27950
27951         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
27952         ElfW macro instead of hardcoded Elf64 types.
27953         (la_aarch64_gnu_pltenter): Likewise.
27954         * sysdeps/aarch64/dl-machine.h
27955         (elf_machine_runtime_setup): Use ElfW(Addr).
27956
27957         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
27958         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
27959         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
27960         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
27961         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
27962         (R_AARCH64_TLS_DTPMOD64): Rename to ..
27963         (R_AARCH64_TLS_DTPMOD): This.
27964         (R_AARCH64_TLS_DTPREL64): Rename to ...
27965         (R_AARCH64_TLS_DTPREL): This.
27966         (R_AARCH64_TLS_TPREL64): Rename to ...
27967         (R_AARCH64_TLS_TPREL): This.
27968         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
27969         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
27970         R_AARCH64_TLS_TPREL64.
27971         (elf_machine_rela): Likewise.
27972
27973 2014-11-21  Torvald Riegel  <triegel@redhat.com>
27974
27975         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
27976         by setting it to 0.  64b atomics are not supported currently.
27977
27978 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
27979
27980         [BZ #16469]
27981         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
27982         search domain names.
27983
27984 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
27985
27986         [BZ #16469]
27987         * NEWS: Update.
27988         * resolv/res_query.c (__libc_res_nquerydomain): Retain
27989         trailing dot.
27990         * posix/tst-getaddrinfo5.c: New.
27991         * posix/Makefile (tests): Add it.
27992
27993 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
27994
27995         [BZ #14498]
27996         * NEWS: Fixed.
27997         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
27998         after parsing line but before break_if_match.
27999         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
28000         if there is a protocol mismatch.
28001
28002 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
28003
28004         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
28005         because the potential race is on the user-supplied stream.
28006
28007 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
28008
28009         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
28010         string literal if not passed a buffer.
28011         * manual/job.texi (ctermid): Update reasoning, note deviation
28012         from posix, suggest mtasurace when not passed a buffer, for
28013         future non-preliminary safety notes.
28014
28015 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
28016
28017         * manual/users.texi (cuserid): Fix MT-Safety note for the case
28018         of not passing it a buffer.
28019         Reported by Peng Haitao.
28020
28021 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
28022
28023         * manual/Makefile ($(objpfx)stamp-summary): Require
28024         check-safety.sh to pass.
28025         * manual/check-safety.sh: Wish for verification that every
28026         @deftypefn and @deftypefun is followed by a @safety remark.
28027
28028 2014-11-20  Roland McGrath  <roland@hack.frob.com>
28029
28030         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
28031
28032         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
28033         PTHREAD_CANCEL_ASYNCHRONOUS.
28034         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
28035         send SIGCANCEL.
28036
28037         * nptl/default-sched.h: New file.
28038         * sysdeps/unix/sysv/linux/default-sched.h: New file.
28039         * nptl/pthread_create.c: Include it.
28040         (__pthread_create_2_1): Use collect_default_sched instead of making
28041         Linux syscalls here directly.
28042
28043 2014-11-20  Torvald Riegel  <triegel@redhat.com>
28044
28045         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
28046         __pthread_once): Use C11 atomics.
28047
28048 2014-11-20  Torvald Riegel  <triegel@redhat.com>
28049
28050         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
28051
28052 2014-11-20  Torvald Riegel  <triegel@redhat.com>
28053
28054         * include/atomic.h (__atomic_link_error, __atomic_check_size,
28055         atomic_thread_fence_acquire, atomic_thread_fence_release,
28056         atomic_thread_fence_seq_cst, atomic_load_relaxed,
28057         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
28058         atomic_compare_exchange_weak_relaxed,
28059         atomic_compare_exchange_weak_acquire,
28060         atomic_compare_exchange_weak_release,
28061         atomic_exchange_acquire, atomic_exchange_release,
28062         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
28063         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
28064         atomic_fetch_and_acquire,
28065         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
28066
28067 2014-11-20  Torvald Riegel  <triegel@redhat.com>
28068
28069         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
28070         USE_ATOMIC_COMPILER_BUILTINS): Define.
28071         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
28072         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28073         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
28074         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28075         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
28076         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28077         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
28078         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28079         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
28080         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28081         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
28082         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28083         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
28084         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28085         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
28086         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28087         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
28088         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28089         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
28090         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28091         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
28092         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28093         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
28094         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28095         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
28096         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28097         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
28098         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28099         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
28100         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28101         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
28102         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28103         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
28104         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28105         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
28106         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28107         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
28108         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28109         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
28110         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
28111
28112 2014-11-19  Roland McGrath  <roland@hack.frob.com>
28113
28114         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
28115         the sched_priority value here.  It was already checked when the user
28116         called pthread_attr_setschedparam.
28117
28118         * nptl/tst-bad-schedattr.c: New file.
28119         * nptl/Makefile (tests): Add it.
28120
28121 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
28122             Florian Weimer  <fweimer@redhat.com>
28123             Joseph Myers  <joseph@codesourcery.com>
28124             Adam Conrad  <adconrad@0c3.net>
28125             Andreas Schwab  <schwab@suse.de>
28126             Brooks  <bmoses@google.com>
28127
28128         [BZ #17625]
28129         * wordexp-test.c (__dso_handle): Add prototype.
28130         (__register_atfork): Likewise.
28131         (__app_register_atfork): New function.
28132         (registered_forks): New global.
28133         (register_fork): New function.
28134         (test_case): Add 3 new tests for WRDE_CMDSUB.
28135         (main): Call __app_register_atfork.
28136         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
28137         fork count is non-zero fail the test.
28138         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
28139         is set.
28140         (parse_dollars): Remove check for WRDE_NOCMD.
28141         (parse_dquote): Likewise.
28142
28143 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
28144
28145         * Makeconfig (built-modules): List non-library modules to be
28146         built.
28147         (module-cppflags): Include libc-modules.h for
28148         everything except shlib-versions.v.i.
28149         (CPPFLAGS): Use it.
28150         (before-compile): Add libc-modules.h.
28151         ($(common-objpfx)libc-modules.h,
28152         $(common-objpfx)libc-modules.stmp): New targets.
28153         (common-generated): Add libc-modules.h and libc-modules.stmp.
28154         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
28155         * include/libc-symbols.h: Don't include libc-modules.h.
28156         * include/libc-modules.h: Remove file.
28157         * scripts/gen-libc-modules.awk: New script to generate
28158         libc-modules.h.
28159         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
28160         Depend on libc-modules.stmp.
28161
28162         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
28163
28164         * Makeconfig (in-module): Get value of libof set for the
28165         translation unit.
28166         (CPPFLAGS): Use $(in-module).
28167         * Makerules: Don't suffix routine names for nonlib.
28168         * include/libc-modules.h: New file.
28169         * include/libc-symbols.h: Include libc-modules.h
28170         (IS_IN): New macro to replace IS_IN_* macros.
28171         * elf/Makefile: Set libof-* for each routine.
28172         * elf/rtld-Rules: Likewise.
28173         * extra-modules.mk: Likewise.
28174         * iconv/Makefile: Likewise.
28175         * iconvdata/Makefile: Likewise.
28176         * locale/Makefile: Likewise.
28177         * malloc/Makefile: Likewise.
28178         * nss/Makefile: Likewise.
28179         * sysdeps/gnu/Makefile: Likewise.
28180         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
28181         * sysdeps/unix/sysv/linux/Makefile: Likewise.
28182         * sysdeps/s390/s390-64/Makefile: Likewise.
28183         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
28184         CPPFLAGS for nscd instead of nonlib.
28185
28186 2014-11-18  Roland McGrath  <roland@hack.frob.com>
28187
28188         * nptl/createthread.c: New file.
28189
28190         * nptl/createthread.c: Moved ...
28191         * sysdeps/unix/sysv/linux/createthread.c: ... here.
28192
28193         * nptl/createthread.c: Add proper top-line comment.
28194         (do_clone): Folded into ...
28195         (create_thread): ... here.  Take new arguments STOPPED_START and
28196         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
28197         increment __nptl_threads, do event-reporting logic, do
28198         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
28199         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
28200         resource cleanup if sched_setaffinity or sched_setscheduler fails,
28201         just send SIGCANCEL.
28202         * nptl/pthread_create.c: Forward-declare create_thread before
28203         including createthread.c.
28204         (start_thread): Use new macro START_THREAD_DEFN to replace defining
28205         declaration, and new macro START_THREAD_SELF to replace argument.
28206         Remove return statement.
28207         (report_thread_creation): New function.
28208         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
28209         synchronization logic, and __nptl_nthreads increment here, around
28210         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
28211         PD->parent_cancelhandling here, before create_thread.  When
28212         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
28213         __deallocate_stack, and ENOMEM translation here.
28214
28215 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
28216
28217         [BZ #17616]
28218         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
28219         (mptwo): Rename to __mptwo.
28220         (__inv): Use __mptwo instead of mptwo.
28221         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
28222         (mptwo): Rename to __mptwo.
28223         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
28224         of mpone and __mptwo instead of mptwo.
28225         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
28226         instead of mpone.
28227         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
28228         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
28229         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
28230         of mpone and __mptwo instead of mptwo.
28231         (__mpranred): Use __mpone instead of mpone.
28232         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
28233         variable.
28234         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
28235         (test-xfail-ISO99/math.h/linknamespace): Likewise.
28236         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
28237         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
28238         (test-xfail-ISO11/math.h/linknamespace): Likewise.
28239         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
28240         (test-xfail-XPG3/math.h/linknamespace): Likewise.
28241         (test-xfail-XPG4/math.h/linknamespace): Likewise.
28242         (test-xfail-POSIX/math.h/linknamespace): Likewise.
28243         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
28244         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
28245         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
28246         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
28247         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
28248         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
28249         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
28250         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
28251         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
28252         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
28253
28254 2014-11-18  Tom de Vries  <tom@codesoucery.com>
28255
28256         * manual/signal.texi (Primitives Interrupted by Signals): In section,
28257         replace BSD Handler xref with BSD Signal Handling.
28258
28259 2014-11-17  Richard Henderson  <rth@redhat.com>
28260
28261         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
28262         (_FP_PACK_RAW_2): Remove.
28263         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
28264         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
28265         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
28266         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
28267         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
28268         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
28269         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
28270         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
28271         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
28272         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
28273         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
28274         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
28275         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
28276         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
28277         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
28278         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
28279
28280 2014-11-14  Roland McGrath  <roland@hack.frob.com>
28281
28282         * signal/signal.h [__USE_MISC]
28283         (struct sigvec): Remove type.
28284         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
28285         (sigvec): Remove declaration.
28286         * sysdeps/posix/sigvec.c: Moved ...
28287         * signal/sigvec.c: ... here, replacing old file.
28288         (struct sigvec): New type, copied from old signal.h definition.
28289         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
28290         (__sigvec): Convert definition to prototype.
28291         (sigvec): Replace weak_alias with compat_symbol.
28292         * signal/Versions (libc: GLIBC_2.21): New version set.
28293         * include/signal.h: Remove __sigvec declaration.
28294         * sysdeps/unix/bsd/sigvec.c: Remove file.
28295         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
28296         * manual/signal.texi (BSD Handler): Remove subsection.
28297         Move siginterrupt up to ...
28298         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
28299         (Blocking in BSD): Fold subsection into its parent.
28300         * NEWS: Mention sigvec removal.
28301
28302 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
28303
28304         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
28305         (DLA_FMS): Make definition conditional only on [__FMA4__].
28306         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
28307         definition.
28308
28309         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
28310         Make definition conditional only on [PROF].
28311         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
28312         definition.
28313         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
28314         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
28315
28316         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
28317         !__GNUC__].
28318         * include/signal.h (__sigpause): Move declaration above call to
28319         libc_hidden_proto.
28320         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
28321         variable.
28322         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
28323         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
28324
28325 2014-11-14  David S. Miller  <davem@davemloft.net>
28326
28327         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
28328         Define before including <string/memcpy.c> and <string/mempcpy.c>.
28329
28330 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
28331
28332         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
28333         * configure: Regenerated.
28334         * manual/install.texi (Tools for Compilation): Document a
28335         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
28336         compiler verified to work.
28337         * INSTALL: Regenerated.
28338
28339         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
28340         redeclare with asm name.
28341         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
28342         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
28343         including <string.h>.
28344         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
28345         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
28346         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
28347         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
28348         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
28349         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
28350         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
28351
28352 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
28353
28354         * stdlib/strtol.c (__strtol): Use prototype definition.
28355
28356         [BZ #17594]
28357         * stdlib/strtol.c (SYM__): New macro.
28358         (SYM__1): Likewise.
28359         (__strtol): Likewise.
28360         (strtol): Rename to __strtol and define as weak alias of
28361         __strtol.  Use libc_hidden_weak.
28362
28363 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
28364
28365         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
28366         Use numbered labels in inline assembly.
28367
28368 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
28369
28370         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
28371         Add setjmp LIBC_PROBE.
28372         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
28373         Likewise.
28374         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
28375         Add longjmp, longjmp_target LIBC_PROBE.
28376         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
28377         Likewise.
28378
28379 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
28380
28381         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
28382         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
28383         to get rid of unused variable warning.
28384
28385 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
28386
28387         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
28388         Check for unwind_backtrace ==  NULL only in SHARED case.
28389         (__backchain_backtrace): Compile only in SHARED case.
28390         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
28391         Likewise.
28392         (__backchain_backtrace): Declare as static.
28393
28394 2014-11-12  Roland McGrath  <roland@hack.frob.com>
28395
28396         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
28397         (__libc_multiple_threads_ptr): Variable moved ...
28398         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
28399
28400 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
28401
28402         * conform/GlibcConform.pm: New file.
28403         * conform/conformtest.pl: Use GlibcConform module.
28404         * conform/linknamespace.pl: New file.
28405         * conform/list-header-symbols.pl: Likewise.
28406         * conform/Makefile (linknamespace-symlists-base): New variable.
28407         (linknamespace-symlists-tests): Likewise.
28408         (linknamespace-header-base): Likewise.
28409         (linknamespace-header-tests): Likewise.
28410         (tests-special): Add new tests.
28411         ($(linknamespace-symlists-tests)): New rule.
28412         (linknamespace-libs): New variable.
28413         ($(objpfx)symlist-stdlibs): New rule.
28414         ($(linknamespace-header-tests)): Likewise.
28415         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
28416         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
28417         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
28418         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
28419         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
28420         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
28421         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
28422         (test-xfail-ISO/math.h/linknamespace): Likewise.
28423         (test-xfail-ISO/signal.h/linknamespace): Likewise.
28424         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
28425         (test-xfail-ISO/time.h/linknamespace): Likewise.
28426         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
28427         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
28428         (test-xfail-ISO99/math.h/linknamespace): Likewise.
28429         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
28430         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
28431         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
28432         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
28433         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
28434         (test-xfail-ISO11/math.h/linknamespace): Likewise.
28435         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
28436         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
28437         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
28438         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
28439         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
28440         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
28441         (test-xfail-XPG3/math.h/linknamespace): Likewise.
28442         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
28443         (test-xfail-XPG3/search.h/linknamespace): Likewise.
28444         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
28445         (test-xfail-XPG3/time.h/linknamespace): Likewise.
28446         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
28447         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
28448         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
28449         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
28450         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
28451         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
28452         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
28453         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
28454         (test-xfail-XPG4/math.h/linknamespace): Likewise.
28455         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
28456         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
28457         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
28458         (test-xfail-XPG4/search.h/linknamespace): Likewise.
28459         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
28460         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
28461         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
28462         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
28463         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
28464         (test-xfail-XPG4/time.h/linknamespace): Likewise.
28465         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
28466         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
28467         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
28468         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
28469         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
28470         (test-xfail-POSIX/math.h/linknamespace): Likewise.
28471         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
28472         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
28473         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
28474         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
28475         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
28476         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
28477         (test-xfail-POSIX/time.h/linknamespace): Likewise.
28478         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
28479         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
28480         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
28481         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
28482         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
28483         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
28484         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
28485         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
28486         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
28487         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
28488         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
28489         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
28490         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
28491         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
28492         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
28493         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
28494         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
28495         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
28496         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
28497         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
28498         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
28499         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
28500         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
28501         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
28502         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
28503         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
28504         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
28505         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
28506         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
28507         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
28508         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
28509         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
28510         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
28511         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
28512         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
28513         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
28514         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
28515         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
28516         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
28517         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
28518         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
28519         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
28520         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
28521         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
28522         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
28523         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
28524         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
28525         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
28526         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
28527         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
28528         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
28529         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
28530         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
28531         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
28532         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
28533         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
28534         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
28535         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
28536         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
28537         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
28538         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
28539         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
28540         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
28541         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
28542         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
28543         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
28544         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
28545         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
28546         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
28547         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
28548         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
28549         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
28550         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
28551         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
28552         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
28553         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
28554         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
28555         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
28556         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
28557         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
28558         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
28559         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
28560         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
28561         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
28562         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
28563         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
28564         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
28565         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
28566         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
28567         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
28568         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
28569         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
28570         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
28571         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
28572         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
28573         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
28574         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
28575         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
28576
28577         [BZ #17589]
28578         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
28579         of fgets_unlocked.
28580
28581         [BZ #17585]
28582         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
28583         (memmem): Rename to __memmem and define as weak alias of
28584         __memmem.  Use libc_hidden_weak.
28585         (__memmem): Use libc_hidden_def.
28586         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
28587         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
28588         memmem.
28589
28590         [BZ #17582]
28591         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
28592         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
28593         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
28594         and define as weak alias of __fgets_unlocked.  Use
28595         libc_hidden_weak.
28596         (__fgets_unlocked): Use libc_hidden_def.
28597         * include/stdio.h (__fgets_unlocked): Declare.  Use
28598         libc_hidden_proto.
28599         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
28600         __fgets_unlocked instead of fgets_unlocked.
28601         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
28602         (GET_NPROCS_CONF_PARSER): Likewise.
28603         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
28604         (GET_NPROCS_CONF_PARSER): Likewise.
28605
28606         [BZ #17574]
28607         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
28608         weak alias of __wmemset.  Use libc_hidden_weak.
28609         (__wmemset): Use libc_hidden_def.
28610         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
28611         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
28612         of wmemset.
28613
28614         [BZ #17573]
28615         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
28616         with asm name __mempcpy.
28617         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
28618
28619         [BZ #17572]
28620         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
28621         and define as weak alias of __rawmemchr.
28622         (__rawmemchr): Do not define as strong alias of rawmemchr.
28623
28624         [BZ #17571]
28625         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
28626         alias of __qsort_r.
28627         (qsort): Call __qsort_r instead of qsort_r.
28628         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
28629         (__qsort_r): Declare.  Call libc_hidden_proto.
28630         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
28631         instead of qsort_r.
28632         * nscd/gai.c (__qsort_r): Define to qsort_r.
28633         * posix/tst-rfc3484.c (__qsort_r): Likewise.
28634         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
28635         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
28636
28637         [BZ #17570]
28638         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
28639         define as weak alias of __malloc_info.
28640
28641         [BZ #17584]
28642         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
28643         as weak alias of __rewinddir.  Don't use libc_hidden_def.
28644         (__rewinddir): Use libc_hidden_def.
28645         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
28646         as weak alias of __rewinddir.  Don't use libc_hidden_def.
28647         (__rewinddir): Use libc_hidden_def.
28648         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
28649         weak alias of __rewinddir.  Don't use libc_hidden_def.
28650         (__rewinddir): Use libc_hidden_def.
28651         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
28652         (__rewinddir): Use libc_hidden_proto.
28653         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
28654         rewinddir.
28655         (__getcwd): Use __rewinddir instead of rewinddir.
28656
28657         [BZ #17583]
28658         * libio/fileno.c (fileno): Rename to __fileno and define as weak
28659         alias of __fileno.  Use libc_hidden_weak.
28660         (__fileno): Use libc_hidden_def.
28661         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
28662         * libio/ftello.c (ftello): Rename to __ftello and define as weak
28663         alias of __ftello.
28664         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
28665         __ftello.
28666         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
28667         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
28668         libc_hidden_def.
28669         (fread_unlocked): Don't use libc_hidden_ver.
28670         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
28671         and define as weak alias of __fread_unlocked.  Don't use
28672         libc_hidden_def.
28673         (__fread_unlocked): Use libc_hidden_def.
28674         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
28675         (ftello): Don't use libc_hidden_proto.
28676         (__ftello): Declare.  Use libc_hidden_proto.
28677         (fread_unlocked): Don't use libc_hidden_proto.
28678         (__fread_unlocked): Declare.  Use libc_hidden_proto.
28679         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
28680         and __ftello instead of fileno, fread_unlocked and ftello.
28681
28682 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
28683
28684         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
28685         GOT12.
28686         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
28687         Likewise.
28688         (_dl_start_user): Likewise.
28689         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
28690
28691 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
28692             Siddhesh Poyarekar  <siddhesh@redhat.com>
28693
28694         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
28695         Move argv and envp down instead of moving argc up.
28696         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
28697
28698 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
28699
28700         [BZ #17506]
28701         * test-skeleton.c (main): Return successful if one of
28702         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
28703         * string/tst-strcoll-overflow.c: Define expected status.
28704
28705 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
28706
28707         [BZ #17475]
28708         * locale/iso-639.def: Define Bhili and Tulu language codes.
28709
28710 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
28711
28712         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
28713
28714 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
28715
28716         [BZ #17555]
28717         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
28718
28719 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
28720
28721         * configure.ac: Updated check of minimal required version to
28722         2.22.
28723         * manual/install.texi (Tools for Compilation): Updated version
28724         number.
28725         * configure: Regenerated.
28726         * INSTALL: Likewise.
28727
28728 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
28729
28730         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
28731         __tls_get_addr.
28732
28733 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
28734
28735         * include/sys/wait.h (__libc_waitpid): Remove declaration.
28736         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
28737         (__waitpid): Don't define as alias.  Use libc_hidden_def not
28738         libc_hidden_weak.
28739         (waitpid): Define as alias of __waitpid.
28740         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
28741         __waitpid.
28742         (__waitpid): Don't define as alias.  Use libc_hidden_def not
28743         libc_hidden_weak.
28744         (waitpid): Define as alias of __waitpid.
28745         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
28746         __libc_waitpid alias.
28747         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
28748         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
28749         Likewise.
28750         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
28751         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
28752         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
28753         alias.
28754         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
28755         __waitpid.
28756         (__waitpid): Don't define as alias.  Use libc_hidden_def not
28757         libc_hidden_weak.
28758         (waitpid): Define as alias of __waitpid.
28759
28760 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
28761
28762         * manual/llio.texi: Add comment that write safety has been
28763         fixed in Linux.
28764
28765         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
28766         (localplt-build-dso): Add elf/ld.so.
28767         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
28768         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
28769         and free for ld.so.
28770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
28771         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
28772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
28773         Likewise.
28774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
28775         Likewise.
28776         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
28777         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
28778         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
28779         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
28780         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
28781         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
28782         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
28783         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
28784         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
28785         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
28786         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
28787
28788 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
28789
28790         [BZ #14132]
28791         * include/libc-symbols.h (INTUSE): Remove macro.
28792         (INTDEF): Likewise.
28793         (INTVARDEF): Likewise.
28794         (_INTVARDEF): Likewise.
28795         (INTDEF2): Likewise.
28796         (INTVARDEF2): Likewise.
28797         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
28798         rtld_hidden_def instead of INTVARDEF.
28799         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
28800         (_dl_starting_up_internal): Remove declaration.
28801         (_dl_starting_up): Use rtld_hidden_proto.
28802         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
28803         declaration.
28804         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
28805         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
28806         _dl_starting_up.
28807         * elf/dl-writev.h (_dl_writev): Likewise.
28808         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
28809         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
28810         _dl_starting_up_internal.
28811
28812 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28813
28814         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
28815         test-skeleton.c.
28816
28817 2014-11-05  Will Newton  <will.newton@linaro.org>
28818
28819         * benchtests/Makefile: (bench-malloc): Add malloc thread
28820         scalability benchmark.
28821         * benchtests/bench-malloc-threads.c: New file.
28822
28823 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
28824
28825         * sysdeps/aarch64/strchrnul.S: New file.
28826
28827 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28828
28829         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
28830         definition.
28831         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
28832         Likwise.
28833         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
28834         Likewise.
28835         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
28836         Likewise.
28837         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
28838         Likewise.
28839         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
28840         Likewise.
28841
28842 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
28843
28844         * catgets/test-gencat.c: Use test-skeleton.c.
28845         * catgets/tst-catgets.c: Likewise.
28846         * csu/tst-empty.c: Likewise.
28847         * elf/tst-audit2.c: Likewise.
28848         * elf/tst-global1.c: Likewise.
28849         * elf/tst-pathopt.c: Likewise.
28850         * elf/tst-piemod1.c: Likewise.
28851         * elf/tst-tls10.c: Likewise.
28852         * elf/tst-tls11.c: Likewise.
28853         * elf/tst-tls12.c: Likewise.
28854         * gnulib/tst-gcc.c: Likewise.
28855         * iconvdata/tst-e2big.c: Likewise.
28856         * iconvdata/tst-loading.c: Likewise.
28857         * iconv/tst-iconv1.c: Likewise.
28858         * iconv/tst-iconv2.c: Likewise.
28859         * inet/test-inet6_opt.c: Likewise.
28860         * inet/tst-gethnm.c: Likewise.
28861         * inet/tst-network.c: Likewise.
28862         * inet/tst-ntoa.c: Likewise.
28863         * intl/tst-codeset.c: Likewise.
28864         * intl/tst-gettext2.c: Likewise.
28865         * intl/tst-gettext3.c: Likewise.
28866         * intl/tst-ngettext.c: Likewise.
28867         * intl/tst-translit.c: Likewise.
28868         * io/test-stat.c: Likewise.
28869         * libio/test-fmemopen.c: Likewise.
28870         * libio/tst-freopen.c: Likewise.
28871         * libio/tst-sscanf.c: Likewise.
28872         * libio/tst-ungetwc1.c: Likewise.
28873         * libio/tst-ungetwc2.c: Likewise.
28874         * libio/tst-widetext.c: Likewise.
28875         * localedata/tst-ctype.c: Likewise.
28876         * localedata/tst-digits.c: Likewise.
28877         * localedata/tst-leaks.c: Likewise.
28878         * localedata/tst-mbswcs1.c: Likewise.
28879         * localedata/tst-mbswcs2.c: Likewise.
28880         * localedata/tst-mbswcs3.c: Likewise.
28881         * localedata/tst-mbswcs4.c: Likewise.
28882         * localedata/tst-mbswcs5.c: Likewise.
28883         * localedata/tst-setlocale.c: Likewise.
28884         * localedata/tst-trans.c: Likewise.
28885         * localedata/tst-wctype.c: Likewise.
28886         * localedata/tst-xlocale1.c: Likewise.
28887         * login/tst-grantpt.c: Likewise.
28888         * malloc/tst-calloc.c: Likewise.
28889         * malloc/tst-malloc.c: Likewise.
28890         * malloc/tst-mallocstate.c: Likewise.
28891         * malloc/tst-mcheck.c: Likewise.
28892         * malloc/tst-mtrace.c: Likewise.
28893         * malloc/tst-obstack.c: Likewise.
28894         * math/atest-exp2.c: Likewise.
28895         * math/atest-exp.c: Likewise.
28896         * math/atest-sincos.c: Likewise.
28897         * math/test-matherr.c: Likewise.
28898         * math/test-misc.c: Likewise.
28899         * math/test-powl.c: Likewise.
28900         * math/tst-definitions.c: Likewise.
28901         * misc/tst-dirname.c: Likewise.
28902         * misc/tst-efgcvt.c: Likewise.
28903         * misc/tst-fdset.c: Likewise.
28904         * misc/tst-hsearch.c: Likewise.
28905         * misc/tst-mntent2.c: Likewise.
28906         * nptl/tst-sem7.c: Likewise.
28907         * nptl/tst-sem8.c: Likewise.
28908         * nptl/tst-sem9.c: Likewise.
28909         * nss/test-netdb.c: Likewise.
28910         * posix/tst-fnmatch.c: Likewise.
28911         * posix/tst-getlogin.c: Likewise.
28912         * posix/tst-gnuglob.c: Likewise.
28913         * posix/tst-mmap.c: Likewise.
28914         * pwd/tst-getpw.c: Likewise.
28915         * resolv/tst-inet_ntop.c: Likewise.
28916         * rt/tst-timer.c: Likewise.
28917         * stdio-common/test-fseek.c: Likewise.
28918         * stdio-common/test-popen.c: Likewise.
28919         * stdio-common/test-vfprintf.c: Likewise.
28920         * stdio-common/tst-cookie.c: Likewise.
28921         * stdio-common/tst-fileno.c: Likewise.
28922         * stdio-common/tst-gets.c: Likewise.
28923         * stdio-common/tst-obprintf.c: Likewise.
28924         * stdio-common/tst-perror.c: Likewise.
28925         * stdio-common/tst-sprintf2.c: Likewise.
28926         * stdio-common/tst-sprintf3.c: Likewise.
28927         * stdio-common/tst-sprintf.c: Likewise.
28928         * stdio-common/tst-swprintf.c: Likewise.
28929         * stdio-common/tst-tmpnam.c: Likewise.
28930         * stdio-common/tst-unbputc.c: Likewise.
28931         * stdio-common/tst-wc-printf.c: Likewise.
28932         * stdlib/tst-environ.c: Likewise.
28933         * stdlib/tst-fmtmsg.c: Likewise.
28934         * stdlib/tst-limits.c: Likewise.
28935         * stdlib/tst-rand48-2.c: Likewise.
28936         * stdlib/tst-rand48.c: Likewise.
28937         * stdlib/tst-random2.c: Likewise.
28938         * stdlib/tst-random.c: Likewise.
28939         * stdlib/tst-strtol.c: Likewise.
28940         * stdlib/tst-strtoll.c: Likewise.
28941         * stdlib/tst-tls-atexit.c: Likewise.
28942         * stdlib/tst-xpg-basename.c: Likewise.
28943         * string/test-ffs.c: Likewise.
28944         * string/tst-bswap.c: Likewise.
28945         * string/tst-inlcall.c: Likewise.
28946         * string/tst-strtok.c: Likewise.
28947         * string/tst-strxfrm.c: Likewise.
28948         * sysdeps/x86_64/tst-audit10.c: Likewise.
28949         * sysdeps/x86_64/tst-audit3.c: Likewise.
28950         * sysdeps/x86_64/tst-audit4.c: Likewise.
28951         * sysdeps/x86_64/tst-audit5.c: Likewise.
28952         * time/tst-ftime_l.c: Likewise.
28953         * time/tst-getdate.c: Likewise.
28954         * time/tst-mktime3.c: Likewise.
28955         * time/tst-mktime.c: Likewise.
28956         * time/tst-posixtz.c: Likewise.
28957         * time/tst-strptime2.c: Likewise.
28958         * time/tst-strptime3.c: Likewise.
28959         * wcsmbs/tst-btowc.c: Likewise.
28960         * wcsmbs/tst-mbrtowc.c: Likewise.
28961         * wcsmbs/tst-mbsrtowcs.c: Likewise.
28962         * wcsmbs/tst-wchar-h.c: Likewise.
28963         * wcsmbs/tst-wcpncpy.c: Likewise.
28964         * wcsmbs/tst-wcrtomb.c: Likewise.
28965         * wcsmbs/tst-wcsnlen.c: Likewise.
28966         * wcsmbs/tst-wcstof.c: Likewise.
28967
28968 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
28969
28970         [BZ #14132]
28971         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
28972         INTDEF.
28973         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
28974         declaration.
28975         (_dl_mcount): Use rtld_hidden_proto.
28976         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
28977         _dl_mcount.
28978         * elf/rtld.c (_rtld_global_ro): Likewise.
28979
28980         [BZ #14132]
28981         * elf/dl-init.c (_dl_init): Don't use INTDEF.
28982         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
28983         of _dl_init_internal.
28984         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
28985         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
28986         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
28987         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
28988         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
28989         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
28990         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
28991         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
28992         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
28993         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
28994         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
28995         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
28996         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
28997         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
28998         * sysdeps/tile/dl-start.S (_start): Likewise.
28999         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
29000         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
29001
29002         [BZ #14132]
29003         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
29004         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
29005         (rtld_progname): Make macro definition unconditional.
29006         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
29007         INTDEF.
29008         (dlmopen_doit): Do not use INTUSE with _dl_argv.
29009         (dl_main): Likewise.
29010         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
29011         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
29012         instead of _dl_argv_internal.
29013         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
29014         __GI__dl_argv instead of INTUSE(_dl_argv).
29015         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
29016         __GI__dl_argv instead of _dl_argv_internal.
29017
29018         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
29019         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
29020         macro.
29021         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
29022         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
29023         New macro.
29024         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
29025         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
29026         macro.
29027         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
29028         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
29029
29030 2014-11-04  Andreas Schwab  <schwab@suse.de>
29031
29032         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
29033
29034 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29035
29036         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
29037         mtvsrd instruction in binary form.
29038
29039 2014-11-03  Andreas Schwab  <schwab@suse.de>
29040
29041         [BZ #17522]
29042         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
29043         for less than MB_LEN_MAX use a local buffer of that size.
29044         * libio/tst-fputws.c: New file.
29045         * libio/Makefile (tests): Add tst-fputws.
29046
29047 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
29048
29049         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
29050         the size of the fpu_fr.fpu_dregs[] array.
29051
29052 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
29053
29054         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
29055         (__nanosleep): Do not define as alias.
29056         (nanosleep): Define as alias of __nanosleep.
29057         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
29058         __libc_nanosleep name.
29059
29060 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
29061
29062         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
29063         install.texi in comment.
29064
29065 2014-10-31  Torvald Riegel  <triegel@redhat.com>
29066
29067         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
29068         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
29069         ... add here and use lwsync or sync ...
29070         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
29071         ... and add here using lwsync.
29072
29073 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
29074
29075         * elf/dl-machine-reject-phdr.h: New file.
29076         * elf/dl-load.c: #include that.
29077         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
29078         if that returned true.
29079
29080 2014-10-31  Roland McGrath  <roland@hack.frob.com>
29081
29082         [BZ #17496]
29083         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
29084         gen-as-const-headers chunk.  Add a big scare comment after the last
29085         safe place to touch before-compile.
29086
29087 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
29088
29089         * manual/install.texi (Tools for Compilation): Update autoconf
29090         version requirements.
29091         * INSTALL: Regenerated.
29092
29093         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
29094         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
29095         (__libc_pselect): Likewise.
29096
29097         [BZ #14138]
29098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
29099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29102
29103 2014-10-31  Torvald Riegel  <triegel@redhat.com>
29104
29105         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
29106         correct barrier instruction.
29107         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
29108         Likewise.
29109         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
29110         Likewise.
29111
29112 2014-10-30  Roland McGrath  <roland@hack.frob.com>
29113
29114         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
29115         after defining inlines.  Instead, just use parens to defeat macro
29116         expansion of __isctype in its declaration.
29117
29118 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
29119
29120         * include/sys/uio.h (__libc_readv): Remove declaration.
29121         (__libc_writev): Likewise.
29122         * misc/readv.c (__libc_readv): Rename to __readv.
29123         (__readv): Do not define as alias.
29124         (readv): Define as alias of __readv.
29125         * misc/writev.c (__libc_writev): Rename to __writev.
29126         (__writev): Do not define as alias.
29127         (writev): Define as alias of __writev.
29128         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
29129         (__readv): Do not define as alias.
29130         (readv): Define unconditionally as alias of __readv.
29131         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
29132         (__writev): Do not define as alias.
29133         (writev): Define unconditionally as alias of __writev.
29134         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
29135         name.
29136         (writev): Do not define __libc_writev name.
29137
29138 2014-10-30  Roland McGrath  <roland@hack.frob.com>
29139
29140         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
29141         (convert_charseq): New function, broken out of ...
29142         (use_from_charmap): ... here.  Call it.
29143         (use_to_charmap): Use convert_charseq and free instead of duplicating
29144         its code with a variable-length stack struct.
29145
29146 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
29147
29148         * include/fcntl.h (__libc_creat): Remove declaration.
29149         * io/creat.c (__libc_creat): Rename to creat.
29150         (creat): Do not define as alias.
29151         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
29152         of creat instead of __libc_creat.
29153         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
29154         to creat.
29155         (creat): Do not define as alias.
29156         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
29157         __libc_creat.
29158         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
29159         __libc_creat name.
29160         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
29161         Likewise.
29162
29163 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
29164
29165         * manual/llio.texi: Add comments discussing why write() may be
29166         considered MT-unsafe on Linux.
29167
29168 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
29169
29170         * dl-load.c (local_strdup): Remove.
29171         (expand_dynamic_string_token): Use __strdup.
29172         (decompose_rpath): Likewise.
29173         (_dl_map_object): Likewise.
29174
29175 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
29176
29177         [BZ #14132]
29178         * sysdeps/generic/unwind-dw2-fde.c
29179         (__register_frame_info_bases_internal): Do not declare.
29180         (__register_frame_info_table_bases_internal): Likewise.
29181         (__deregister_frame_info_bases_internal): Likewise.
29182         (__register_frame_info_bases): Declare and use hidden_proto before
29183         definition.  Use hidden_def instead of INTDEF.
29184         (__register_frame_info_table_bases): Likewise.
29185         (__deregister_frame_info_bases): Likewise.
29186         (__register_frame_info): Do not use INTUSE.
29187         (__register_frame): Likewise.
29188         (__register_frame_info_table): Likewise.
29189         (__register_frame_table): Likewise.
29190         (__deregister_frame_info): Likewise.
29191         (__deregister_frame): Likewise.
29192
29193 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
29194
29195         * sysdeps/unix/sysv/linux/arm/kernel-features.h
29196         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
29197         not undefine.
29198         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
29199         Likewise.
29200         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
29201         Likewise.
29202
29203 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
29204
29205         [BZ #14138]
29206         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
29207         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
29208         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
29209         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
29210         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
29211         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
29212         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
29213         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
29214         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
29215         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
29216         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
29217         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
29218         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
29219         syscall.
29220         (setfsuid): Likewise.
29221         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
29222         (setfsuid): Likewise.
29223         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
29224         (setfsuid): Likewise.
29225         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
29226         Likewise.
29227         (setfsuid): Likewise.
29228         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
29229         (setfsuid): Likewise.
29230         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
29231         Likewise.
29232         (setfsuid): Likewise.
29233
29234 2014-10-27  Andreas Schwab  <schwab@suse.de>
29235
29236         [BZ #17501]
29237         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
29238         check for Slow_SSE4_2 feature bit.
29239         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
29240         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
29241         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
29242         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
29243
29244 2014-10-24  Roland McGrath  <roland@hack.frob.com>
29245
29246         * configure.ac: Validate compiler version with a empirical test of
29247         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
29248         $CC -v output.
29249         * configure: Regenerated.
29250
29251         * inet/htons.c (htons): Prototypify.
29252         * inet/htonl.c (htonl): Likewise.
29253
29254 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29255
29256         * string/strncat.c (strncat): Improve performance by using strlen.
29257
29258 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29259
29260         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
29261
29262 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29263
29264         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
29265         Call libc_fetestexcept_aarch64.
29266
29267 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29268
29269         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
29270         Call libc_feholdexcept_aarch64.
29271
29272 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29273
29274         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
29275         Call get_rounding_mode.
29276
29277 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29278
29279         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
29280         Simplify logic.
29281
29282 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29283
29284         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
29285         Simplify logic.
29286
29287 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
29288
29289         [BZ #14138]
29290         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
29291         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
29292         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
29293         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
29294         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
29295         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
29296         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
29297         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
29298         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
29299         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
29300         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
29301         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
29302         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
29303         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
29304         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
29305         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
29306         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
29307         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
29308         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
29309         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
29310         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
29311         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
29312         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
29313         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
29314         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
29315         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
29316         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
29317         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
29318         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
29319         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
29320         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
29321         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
29322         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
29323         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
29324         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
29325         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
29326         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
29327         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
29328         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
29329         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
29330         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
29331         syscall.
29332         (geteuid): Likewise.
29333         (getgid): Likewise.
29334         (getuid): Likewise.
29335         (getresgid): Likewise.
29336         (getresuid): Likewise.
29337         (getgroups): Likewise.
29338         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
29339         (geteuid): Likewise.
29340         (getgid): Likewise.
29341         (getuid): Likewise.
29342         (getresgid): Likewise.
29343         (getresuid): Likewise.
29344         (getgroups): Likewise.
29345         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
29346         (geteuid): Likewise.
29347         (getgid): Likewise.
29348         (getuid): Likewise.
29349         (getresgid): Likewise.
29350         (getresuid): Likewise.
29351         (getgroups): Likewise.
29352         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
29353         Likewise.
29354         (geteuid): Likewise.
29355         (getgid): Likewise.
29356         (getuid): Likewise.
29357         (getresgid): Likewise.
29358         (getresuid): Likewise.
29359         (getgroups): Likewise.
29360         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
29361         (geteuid): Likewise.
29362         (getgid): Likewise.
29363         (getuid): Likewise.
29364         (getresgid): Likewise.
29365         (getresuid): Likewise.
29366         (getgroups): Likewise.
29367         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
29368         Likewise.
29369         (geteuid): Likewise.
29370         (getgid): Likewise.
29371         (getuid): Likewise.
29372         (getgroups): Likewise.
29373
29374         [BZ #14138]
29375         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
29376         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
29377         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
29378         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
29379         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
29380         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
29381         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
29382         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
29383         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
29384         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
29385         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
29386         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
29387         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
29388         __chown.
29389         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
29390         (lchown): Likewise.
29391         (fchown): Likewise.
29392         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
29393         Likewise.
29394         (lchown): Likewise.
29395         (fchown): Likewise.
29396         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
29397         (lchown): Likewise.
29398         (fchown): Likewise.
29399         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
29400         Likewise.
29401         (lchown): Likewise.
29402         (fchown): Likewise.
29403
29404 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
29405
29406         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
29407         Simplify logic.
29408
29409 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
29410
29411         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
29412         Cleanup logic.
29413
29414 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
29415
29416         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
29417         Remove unused include.
29418
29419 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
29420
29421         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
29422         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
29423         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
29424         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
29425
29426 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
29427             Helge Deller <deller@gmx.de>
29428
29429         [BZ #17508]
29430         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
29431         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
29432         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
29433
29434 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
29435
29436         [BZ #14132]
29437         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
29438         Remove macro definition.
29439         (__ashrdi3_v_glibc20): Likewise.
29440         (__lshrdi3_v_glibc20): Likewise.
29441         (__cmpdi2_v_glibc20): Likewise.
29442         (__ucmpdi2_v_glibc20): Likewise.
29443         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
29444         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
29445         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
29446         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
29447         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
29448         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
29449
29450 2014-10-22  Roland McGrath  <roland@hack.frob.com>
29451
29452         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
29453         old GNU extension [0] syntax.
29454         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
29455         alloca rather than an array member with variable length.
29456         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
29457         * nscd/nscd.c (invalidate_db): New function, broken out of ...
29458         (parse_opt): ... here.  Likewise use alloca there.
29459         Validate the -i argument before checking for rootness.
29460         (send_shutdown): New function, broken out of ...
29461         (parse_opt): ... here.
29462
29463 2014-10-22  Roland McGrath  <roland@hack.frob.com>
29464
29465         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
29466         macro to get at the _rt_local_ro field.
29467         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
29468         ([PIC] case) or _dl_hwcap ([!PIC] case).
29469         * sysdeps/arm/setjmp.S: Likewise.
29470
29471         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
29472         * sysdeps/arm/configure.ac: New check to define it.
29473         * sysdeps/arm/configure: Regenerated.
29474         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
29475         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
29476         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
29477         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
29478         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
29479         Use move/movt pair instead of a load.
29480         (LDST_GLOBAL): Macro removed.
29481         (LDR_GLOBAL): New macro replaces it.
29482         (LDR_HIDDEN): New macro.
29483         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
29484         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
29485
29486         * setjmp/tst-setjmp-static.c: New file.
29487         * setjmp/Makefile (tests): Add it.
29488         (tests-static): New variable.
29489
29490 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
29491
29492         [BZ #17485]
29493         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
29494
29495 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
29496
29497         [BZ #14132]
29498         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
29499
29500 2014-10-21  Roland McGrath  <roland@hack.frob.com>
29501
29502         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
29503
29504 2014-10-20  Roland McGrath  <roland@hack.frob.com>
29505
29506         * io/fts.c (dirent_not_directory): New function.
29507         (fts_build): Call it.
29508
29509 2014-10-20  Roland McGrath  <roland@hack.frob.com>
29510
29511         * nptl/version.c (__nptl_main): Use normal __write rather than
29512         INTERNAL_SYSCALL.
29513         (banner): Update copyright years.
29514
29515         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
29516         gettimeofday.
29517         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
29518         * nptl/pthread_cond_timedwait.c: Likewise.
29519         * nptl/pthread_mutex_timedlock.c: Likewise.
29520         * nptl/sem_timedwait.c: Likewise.
29521
29522         * sysdeps/nptl/bits/libc-lock.h
29523         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
29524         (__libc_lock_init_recursive): Return void, not 0.
29525         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
29526         (__libc_rwlock_init): Likewise.
29527         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
29528
29529 2014-10-20  Torvald Riegel  <triegel@redhat.com>
29530
29531         [BZ #15215]
29532         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
29533         (__pthread_once_slow): ... here.
29534         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
29535         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
29536
29537 2014-10-20  Torvald Riegel  <triegel@redhat.com>
29538
29539         [BZ #15215]
29540         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
29541         __PTHREAD_ONCE_FORK_GEN_INCR): New.
29542         * sysdeps/nptl/fork.c (__libc_fork): Use them.
29543         * nptl/pthread_once.c (__pthread_once): Likewise.
29544         Update comments.
29545
29546 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
29547
29548         [BZ #14138]
29549         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
29550         name.
29551         (writev): Use __libc_writev as strong name.
29552         * sysdeps/unix/sysv/linux/readv.c: Remove file.
29553         * sysdeps/unix/sysv/linux/writev.c: Likewise.
29554
29555 2014-10-17  Roland McGrath  <roland@hack.frob.com>
29556
29557         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
29558
29559         * sysdeps/i386/nptl/tls.h
29560         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
29561         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
29562         New macros.
29563         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
29564         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
29565         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
29566         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
29567         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
29568         Call CHECK_THREAD_SYSINFO instead of doing an assert.
29569
29570         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
29571         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
29572         on [__NR_futex].
29573         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
29574         broken out of ...
29575         (__pthread_mutex_init): ... here.  Call it.
29576         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
29577         Conditionalize PI cases on [__NR_futex].
29578         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
29579         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
29580         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
29581
29582         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
29583         conditional on [SIGSETXID].
29584         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
29585         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
29586         is defined.  Likewise for SIGSETXID.
29587         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
29588         Conditionalize definitions on [SIGSETXID].
29589         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
29590         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
29591         unblocking on [SIGCANCEL].
29592
29593         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
29594         [__NR_set_robust_list].
29595
29596 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
29597
29598         * string/strcoll_l.c (get_next_seq): Fix up formatting.
29599         (do_compare): Likewise.
29600
29601 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
29602
29603         [BZ #15884]
29604         * string/strcoll_l.c: Don't include stdio.h.
29605         (coll_seq): Remove members idxarr and rulearr.
29606         (get_next_seq_cached): Remove function.
29607         (get_next_seq): Likewise.
29608         (get_next_seq_nocache): Rename to get_next_seq.
29609         (do_compare): Remove function.
29610         (do_compare_nocache): Rename to do_compare.
29611         (STRCOLL): Remove weight and rules cache.
29612
29613 2014-10-16  Roland McGrath  <roland@hack.frob.com>
29614
29615         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
29616         * sysdeps/arm/sfp-machine.h: ... to here.
29617         * sysdeps/arm/Implies: Remove arm/soft-fp.
29618
29619 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
29620
29621         * conform/data/sys/utsname.h-data (*_t): Allow.
29622         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
29623         [POSIX] (WEXITED): Do not expect constant.
29624         [POSIX] (WSTOPPED): Likewise.
29625         [POSIX] (WNOHANG): Likewise.
29626         [POSIX] (WNOWAIT): Likewise.
29627         [POSIX] (siginfo_t): Do not expect type or elements.
29628         [POSIX] (pid_t): Do not expect type.
29629         [POSIX] (signal.h): Do not allow header.
29630         [POSIX] (sys/resource.h): Likewise.
29631         [POSIX] (si_*): Do not allow pattern.
29632         [POSIX] (W*): Likewise.
29633         [POSIX] (P_*): Likewise.
29634         [POSIX] (BUS_*): Likewise.
29635         [POSIX] (CLD_*): Likewise.
29636         [POSIX] (FPE_*): Likewise.
29637         [POSIX] (ILL_*): Likewise.
29638         [POSIX] (POLL_*): Likewise.
29639         [POSIX] (SEGV_*): Likewise.
29640         [POSIX] (SI_*): Likewise.
29641         [POSIX] (TRAP_*): Likewise.
29642         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
29643         variable.
29644
29645 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
29646
29647         [BZ #12926]
29648         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
29649         infinite loop when __recvmsg returns 0.
29650
29651 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
29652
29653         * CANCEL-FCT-WAIVE: Remove file.
29654         * CANCEL-FILE-WAIVE: Likewise.
29655
29656         [BZ #14132]
29657         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
29658         instead of INTVARDEF.
29659         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
29660         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
29661         rtld_hidden_data_def instead of INTVARDEF.
29662         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
29663         * elf/dl-deps.c (expand_dst): Likewise.
29664         * elf/dl-load.c (_dl_dst_count): Likewise.
29665         (_dl_dst_substitute): Likewise.
29666         (decompose_rpath): Likewise.
29667         (_dl_init_paths): Likewise.
29668         (open_path): Likewise.
29669         (_dl_map_object): Likewise.
29670         * elf/rtld.c (dl_main): Likewise.
29671         (process_dl_audit): Likewise.
29672         (process_envvars): Likewise.
29673         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
29674         Remove declaration.
29675         (__libc_enable_secure): Use rtld_hidden_proto.
29676
29677 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
29678
29679         * elf/dl-load.c
29680         (add_path): New function broken out of _dl_rtld_di_serinfo.
29681         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
29682
29683 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
29684
29685         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
29686         parentheses around macro arguments.
29687         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
29688         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
29689         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
29690         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
29691         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
29692         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
29693         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
29694         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
29695         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
29696         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
29697         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
29698         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
29699         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
29700         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
29701         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
29702         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
29703         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
29704         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
29705         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
29706         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
29707         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
29708         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
29709         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
29710         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
29711         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
29712         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
29713         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
29714         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
29715         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
29716         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
29717         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
29718         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
29719         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
29720         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
29721         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
29722         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
29723         Likewise.
29724         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
29725         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
29726         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
29727         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
29728         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
29729         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
29730         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
29731         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
29732         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
29733         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
29734         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
29735         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
29736         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
29737         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
29738         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
29739         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
29740         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
29741         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
29742         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
29743         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
29744         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
29745         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
29746         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
29747         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
29748         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
29749         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
29750         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
29751         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
29752         (_FP_FRAC_SRS_1): Likewise.
29753         (_FP_FRAC_CLZ_1): Likewise.
29754         (_FP_MUL_MEAT_1_imm): Likewise.
29755         (_FP_MUL_MEAT_1_wide): Likewise.
29756         (_FP_MUL_MEAT_1_hard): Likewise.
29757         (_FP_SQRT_MEAT_1): Likewise.
29758         (_FP_FRAC_ASSEMBLE_1): Likewise.
29759         (_FP_FRAC_DISASSEMBLE_1): Likewise.
29760         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
29761         (__FP_CLZ_2): Likewise.
29762         (_FP_MUL_MEAT_2_wide): Likewise.
29763         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
29764         (_FP_MUL_MEAT_2_gmp): Likewise.
29765         (_FP_MUL_MEAT_2_120_240_double): Likewise.
29766         (_FP_SQRT_MEAT_2): Likewise.
29767         (_FP_FRAC_ASSEMBLE_2): Likewise.
29768         (_FP_FRAC_DISASSEMBLE_2): Likewise.
29769         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
29770         (_FP_FRAC_CLZ_4): Likewise.
29771         (_FP_MUL_MEAT_4_wide): Likewise.
29772         (_FP_MUL_MEAT_4_gmp): Likewise.
29773         (_FP_SQRT_MEAT_4): Likewise.
29774         (_FP_FRAC_ASSEMBLE_4): Likewise.
29775         (_FP_FRAC_DISASSEMBLE_4): Likewise.
29776         * soft-fp/op-common.h (_FP_CMP): Likewise.
29777         (_FP_CMP_EQ): Likewise.
29778         (_FP_CMP_UNORD): Likewise.
29779         (_FP_TO_INT): Likewise.
29780         (_FP_FROM_INT): Likewise.
29781         [!__FP_CLZ] (__FP_CLZ): Likewise.
29782         (_FP_DIV_HELP_imm): Likewise.
29783         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
29784         Likewise.
29785         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
29786         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
29787         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
29788         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
29789         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
29790         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
29791         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
29792         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
29793         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
29794         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
29795         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
29796         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
29797         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
29798         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
29799         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
29800         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
29801         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
29802         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
29803         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
29804         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
29805         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
29806         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
29807         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
29808         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
29809         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
29810         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
29811         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
29812         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
29813         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
29814         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
29815         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
29816         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
29817         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
29818         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
29819         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
29820         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
29821         (FP_UNPACK_RAW_SP): Likewise.
29822         (FP_PACK_RAW_S): Likewise.
29823         (FP_PACK_RAW_SP): Likewise.
29824         (FP_UNPACK_S): Likewise.
29825         (FP_UNPACK_SP): Likewise.
29826         (FP_UNPACK_SEMIRAW_S): Likewise.
29827         (FP_UNPACK_SEMIRAW_SP): Likewise.
29828         (FP_PACK_S): Likewise.
29829         (FP_PACK_SP): Likewise.
29830         (FP_PACK_SEMIRAW_S): Likewise.
29831         (FP_PACK_SEMIRAW_SP): Likewise.
29832         (_FP_SQRT_MEAT_S): Likewise.
29833         (FP_CMP_S): Likewise.
29834         (FP_CMP_EQ_S): Likewise.
29835         (FP_CMP_UNORD_S): Likewise.
29836         (FP_TO_INT_S): Likewise.
29837         (FP_FROM_INT_S): Likewise.
29838
29839         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
29840
29841         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
29842         (FP_EX_INVALID_IMZ): Likewise.
29843         (FP_EX_INVALID_IMZ_FMA): Likewise.
29844         (FP_EX_INVALID_ISI): Likewise.
29845         (FP_EX_INVALID_ZDZ): Likewise.
29846         (FP_EX_INVALID_IDI): Likewise.
29847         (FP_EX_INVALID_SQRT): Likewise.
29848         (FP_EX_INVALID_CVI): Likewise.
29849         (FP_EX_INVALID_VC): Likewise.
29850         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
29851         "invalid" exceptions.
29852         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
29853         (_FP_ADD_INTERNAL): Likewise.
29854         (_FP_MUL): Likewise.
29855         (_FP_FMA): Likewise.
29856         (_FP_DIV): Likewise.
29857         (_FP_CMP_CHECK_NAN): Likewise.
29858         (_FP_SQRT): Likewise.
29859         (_FP_TO_INT): Likewise.
29860         (FP_EXTEND): Likewise.
29861
29862 2014-10-09  Allan McRae  <allan@archlinux.org>
29863
29864         * po/fr.po: Update French translation from translation project.
29865
29866 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
29867
29868         [BZ #14132]
29869         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
29870         of INTDEF.
29871         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
29872         (__cxa_atexit): Use libc_hidden_proto.
29873         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
29874
29875         [BZ #14132]
29876         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
29877         declaration.
29878         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
29879         [!_ISOMAC] (__iswspace_l_internal): Likewise.
29880         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
29881         [!_ISOMAC] (__iswctype_internal): Likewise.
29882         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
29883         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
29884         alias.
29885         (fcntl): Remove __fcntl_internal alias.
29886         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
29887         __connect_internal alias.
29888         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
29889         Likewise.
29890
29891         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
29892         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
29893         FP_DENORM_ZERO.
29894         (_FP_CHECK_FLUSH_ZERO): New macro.
29895         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
29896         (_FP_CMP): Likewise.
29897         (_FP_CMP_EQ): Likewise.
29898         (_FP_TO_INT): Do not set inexact for subnormal arguments if
29899         FP_DENORM_ZERO.
29900         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
29901         (FP_TRUNC): Likewise.
29902
29903         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
29904         treated as invalid conversion, not as normal exponent.
29905
29906         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
29907         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
29908         (_FP_CMP_EQ): Likewise.
29909         (_FP_CMP_UNORD): Likewise.
29910         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
29911         (FP_CMP_EQ_D): Likewise.
29912         (FP_CMP_UNORD_D): Likewise.
29913         * soft-fp/extended.h (FP_CMP_E): Likewise.
29914         (FP_CMP_EQ_E): Likewise.
29915         (FP_CMP_UNORD_E): Likewise.
29916         * soft-fp/quad.h (FP_CMP_Q): Likewise.
29917         (FP_CMP_EQ_Q): Likewise.
29918         (FP_CMP_UNORD_Q): Likewise.
29919         * soft-fp/single.h (FP_CMP_S): Likewise.
29920         (FP_CMP_EQ_S): Likewise.
29921         (FP_CMP_UNORD_S): Likewise.
29922         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
29923         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
29924         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
29925         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
29926         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
29927         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
29928         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
29929         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
29930         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
29931         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
29932         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
29933         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
29934         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
29935         to FP_CMP_Q.
29936         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
29937         FP_CMP_Q.
29938         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
29939         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
29940         FP_CMP_EQ_Q.
29941         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
29942         FP_CMP_Q.
29943         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
29944         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
29945         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
29946         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
29947         FP_CMP_EQ_Q.
29948         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
29949         FP_CMP_Q.
29950         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
29951         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
29952         FP_CMP_EQ_Q.
29953         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
29954         FP_CMP_Q.
29955         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
29956         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
29957         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
29958         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
29959         FP_CMP_EQ_Q.
29960
29961         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
29962         a subnormal result, set the underflow exception if trapping on
29963         underflow is enabled.
29964         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
29965         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
29966         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
29967         redefine to 0.
29968         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
29969         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
29970         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
29971         * soft-fp/extendxftf2.c (__extendxftf2): Use
29972         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
29973
29974         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
29975         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
29976         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
29977         FP_HANDLE_EXCEPTIONS.
29978         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
29979         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
29980         FP_HANDLE_EXCEPTIONS.
29981         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
29982         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
29983         FP_HANDLE_EXCEPTIONS.
29984         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
29985         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
29986         FP_HANDLE_EXCEPTIONS.
29987
29988 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
29989
29990         [BZ #14132]
29991         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
29992         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
29993         use INTUSE.
29994         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
29995         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
29996         Remove alias.
29997         (__adjtimex): Define using libc_hidden_ver.
29998         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
29999         Remove declaration.
30000         (ntp_gettime): Call __adjtimex directly.
30001         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
30002         Remove declaration.
30003         (ntp_gettimex): Call __adjtimex directly.
30004         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
30005         __adjtimex_internal alias.
30006
30007 2014-10-08  Roland McGrath  <roland@hack.frob.com>
30008
30009         [BZ #17460]
30010         * nscd/nscd.c (more_help): Rewrite list of tables collection
30011         using xstrdup and asprintf.
30012
30013         * nscd/nscd_conf.c: Remove local xstrdup declaration.
30014
30015 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
30016             Roland McGrath  <roland@hack.frob.com>
30017
30018         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
30019         (do_lookup_unique): ... local function 'enter' here; update callers.
30020
30021 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
30022
30023         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
30024         compat_symbol calls on [SHARED].
30025         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
30026         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
30027         Remove.
30028         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
30029         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
30030         (oldsetrlimit): Remove.
30031         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
30032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
30033         (lchown): New syscall entry.
30034         (oldsetrlimit): Remove.
30035         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
30036         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
30037         (oldsetrlimit): Remove.
30038         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
30039
30040         [BZ #14138]
30041         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
30042         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
30043         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
30044         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
30045         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
30046         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
30047         (fchown): Likewise.
30048         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
30049         (fchown): Likewise.
30050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
30051         Likewise.
30052
30053 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30054
30055         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
30056         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
30057         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
30058         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
30059         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
30060         Likewise.
30061         (__old_sem_post): Likewise.
30062
30063 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
30064
30065         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
30066         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
30067         HAVE_CLOCK_GETTIME_VSYSCALL macros.
30068         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
30069         Use INLINE_VSYSCALL macro.
30070         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
30071         __vdso_clock_gettime.
30072         * sysdeps/unix/sysv/linux/tile/init-first.c
30073         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
30074         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
30075         __vdso_clock_gettime.
30076
30077         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
30078         to set up frame more cleanly.
30079
30080         * sysdeps/tile/memcmp.c: New file.
30081
30082         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
30083
30084         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
30085         * sysdeps/tile/tilegx/strcasestr.c: New file.
30086         * sysdeps/tile/tilegx/strnlen.c: New file.
30087         * sysdeps/tile/tilegx/strstr.c: New file.
30088
30089         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
30090
30091 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
30092
30093         * nptl/tst-setuid3.c: Write errors to stdout.
30094
30095 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
30096
30097         * elf/dl-deps.c
30098         (preload): New functions broken out of _dl_map_object_deps.
30099         (_dl_map_object_deps):  Remove a nested function. Update call sites.
30100
30101 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
30102
30103         [BZ #14138]
30104         * sysdeps/unix/sysv/linux/execve.c: Remove file.
30105         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
30106
30107 2014-10-01  Steve Ellcey  <sellcey@mips.com>
30108
30109         * sysdeps/mips/strcmp.S: New.
30110
30111 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
30112
30113         [BZ #14138]
30114         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
30115         (linkat): Likewise.
30116         (mkdirat): Likewise.
30117         (readlinkat): Likewise.
30118         (renameat): Likewise.
30119         (symlinkat): Likewise.
30120         (unlinkat): Likewise.
30121         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
30122         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
30123         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
30124         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
30125         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
30126         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
30127         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
30128
30129 2014-09-30  Will Newton  <will.newton@linaro.org>
30130
30131         * math/math.h: Define long double math functions if
30132         _LIBC_TEST is defined.
30133         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
30134
30135         * localedata/Makefile: Move assignment to tests-special
30136         into an ifdef testing run-built-tests.
30137         * timezone/Makefile: Likewise.
30138
30139 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
30140
30141         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
30142         with $(BASH) not $(SHELL).
30143
30144 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
30145             Matthew LeGendre  <legendre1@llnl.gov>
30146
30147         [BZ #17411]
30148         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
30149         l_reloc_result.
30150
30151 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
30152
30153         * stdio-common/printf_fp.c
30154         (hack_digit): New function, broken out of ...
30155         (__printf_fp): ... local function here.  Update call sites.
30156         hack_digit now takes an additional parameter that is a pointer
30157         to a struct of the referenced locals.  Those locals moved inside
30158         the struct and references updated.
30159
30160 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
30161
30162         * aclocal.m4: Require autoconf 2.69.
30163         * configure: Regenerated.
30164         * sysdeps/aarch64/configure: Likewise.
30165         * sysdeps/alpha/configure: Likewise.
30166         * sysdeps/arm/armv7/configure: Likewise.
30167         * sysdeps/arm/configure: Likewise.
30168         * sysdeps/ia64/configure: Likewise.
30169         * sysdeps/mach/configure: Likewise.
30170         * sysdeps/mips/configure: Likewise.
30171         * sysdeps/s390/configure: Likewise.
30172         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
30173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
30174
30175         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
30176         file.
30177         * sysdeps/ia64/configure.ac: Likewise.
30178
30179 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
30180
30181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
30182         specify symbol version for ld.so.  Do not include entry for
30183         libpthread.
30184         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
30185         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
30186         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
30187
30188         [BZ #14171]
30189         * Makeconfig [$(build-shared) = yes]
30190         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
30191         makefiles.
30192         [$(build-shared) = yes && $(soversions.mk-done) = t]
30193         ($(common-objpfx)gnu/lib-names.h): Remove rule.
30194         [$(build-shared) = yes && $(soversions.mk-done) = t]
30195         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
30196         to Makerules.
30197         [$(build-shared) = yes && $(soversions.mk-done) = t]
30198         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
30199         here.
30200         [$(build-shared) = yes && $(soversions.mk-done) = t]
30201         (common-generated): Don't append gnu/lib-names.h and
30202         gnu/lib-names.stmp here.
30203         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
30204         (lib-names-h-abi): New variable.
30205         [$(build-shared) = yes && $(soversions.mk-done) = t]
30206         (lib-names-stmp-abi): Likewise.
30207         [$(build-shared) = yes && $(soversions.mk-done) = t &&
30208         abi-variants] (before-compile): Append
30209         $(common-objpfx)$(lib-names-h-abi).
30210         [$(build-shared) = yes && $(soversions.mk-done) = t &&
30211         abi-variants] (common-generated): Append gnu/lib-names.h.
30212         [$(build-shared) = yes && $(soversions.mk-done) = t &&
30213         abi-variants] (install-others-nosubdir): Depend on
30214         $(inst_includedir)/$(lib-names-h-abi).
30215         [$(build-shared) = yes && $(soversions.mk-done) = t &&
30216         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
30217         [$(build-shared) = yes && $(soversions.mk-done) = t]
30218         ($(common-objpfx)$(lib-names-h-abi)): New rule.
30219         [$(build-shared) = yes && $(soversions.mk-done) = t]
30220         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
30221         [$(build-shared) = yes && $(soversions.mk-done) = t]
30222         (common-generated): Append $(lib-names-h-abi) and
30223         $(lib-names-stmp-abi).
30224         * scripts/lib-names.awk: Do not handle multi being set.
30225         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
30226         Remove variable.
30227         (abi-lp64_be-ld-soname): Likewise.
30228         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
30229         Likewise.
30230         (abi-hard-ld-soname): Likewise.
30231         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
30232         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
30233         Remove variable.
30234         (abi-o32_hard-ld-soname): Likewise.
30235         (abi-o32_soft_2008-ld-soname): Likewise.
30236         (abi-o32_hard_2008-ld-soname): Likewise.
30237         (abi-n32_soft-ld-soname): Likewise.
30238         (abi-n32_hard-ld-soname): Likewise.
30239         (abi-n32_soft_2008-ld-soname): Likewise.
30240         (abi-n32_hard_2008-ld-soname): Likewise.
30241         (abi-n64_soft-ld-soname): Likewise.
30242         (abi-n64_hard-ld-soname): Likewise.
30243         (abi-n64_soft_2008-ld-soname): Likewise.
30244         (abi-n64_hard_2008-ld-soname): Likewise.
30245         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
30246         Likewise.
30247         (abi-64-v2-ld-soname): Likewise.
30248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
30249         ld.so entries.
30250         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
30251         variable.
30252         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
30253         entry.
30254         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
30255         variable.
30256         (abi-64-ld-soname): Likewise.
30257         (abi-x32-ld-soname): Likewise.
30258         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
30259         entry.
30260         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
30261
30262 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
30263
30264         [BZ #14138]
30265         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
30266         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
30267         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
30268         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
30269         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
30270         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
30271         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
30272         syscall entry for GLIBC_2.2 symbol version.
30273         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
30274         Likewise.
30275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
30276         (setrlimit): Likewise.
30277         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
30278         Likewise.
30279
30280 2014-09-23  Will Newton  <will.newton@linaro.org>
30281
30282         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
30283         _LINUX_ARM_SYSDEP_H include guard too.
30284         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
30285         define.
30286
30287 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
30288
30289         * sysdeps/unix/sysv/linux/eventfd.c:
30290         Make first argument unsigned.
30291         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
30292         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
30293
30294 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
30295
30296         [BZ #16852]
30297         * socket/recvmmsg.c (recvmmsg): Drop const argument.
30298         * socket/sys/socket.h: Likewise.
30299         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
30300
30301 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30302
30303         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
30304
30305 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
30306
30307         * time/tst-ftime.c: New test.
30308         * time/Makefile (tests): Add tst-ftime.
30309
30310 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
30311
30312         * soft-fp/extended.h: Fix comment formatting.
30313         * soft-fp/op-1.h: Likewise.
30314         * soft-fp/op-2.h: Likewise.
30315         * soft-fp/op-4.h: Likewise.
30316         * soft-fp/op-8.h: Likewise.
30317         * soft-fp/op-common.h: Likewise.
30318         * soft-fp/soft-fp.h: Likewise.
30319
30320         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
30321
30322 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
30323
30324         [BZ #6652]
30325         * Makeconfig (soversions-default-setname): Remove variable.
30326         ($(common-objpfx)soversions.i): Don't pass default_setname to
30327         soversions.awk.
30328         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
30329         oldest_abi to abi-versions.awk.
30330         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
30331         * config.make.in (oldest-abi): Remove variable.
30332         * configure.ac (--enable-oldest-abi): Remove configure option.
30333         * configure: Regenerated.
30334         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
30335         text.
30336         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
30337         * scripts/soversions.awk: Do not handle default_setname variable.
30338         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
30339         variable.
30340         * sysdeps/mach/hurd/configure: Regenerated.
30341         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
30342         variable.
30343         * sysdeps/unix/sysv/linux/configure: Regenerated.
30344
30345 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
30346
30347         * elf/Makefile (CFLAGS-interp.c): Remove.
30348         ($(elf-objpfx)runtime-linker.h): Generate header with linker
30349         path string.
30350         * elf/interp.c: Include generated runtime-linker.h
30351
30352         * Makerules (lib%.so): Don't include $(+interp) in
30353         prerequisites.
30354         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
30355         * dlfcn/eval.c: Remove file.
30356
30357         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
30358         macros.
30359
30360         [BZ #17266]
30361         * misc/sys/cdefs.h: Define __extern_always_inline for clang
30362         4.2 and newer.
30363
30364         [BZ #17370]
30365         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
30366
30367 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
30368             Jakub Jelinek  <jakub@redhat.com>
30369
30370         [BZ #17266]
30371         * libio/stdio.h: Check definition of __fortify_function
30372         instead of __extern_always_inline to include bits/stdio2.h.
30373         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
30374         check if __extern_always_inline is defined.
30375         [__USE_MISC || __USE_XOPEN]: Likewise.
30376         [__USE_ISOC99] Likewise.
30377         * misc/sys/cdefs.h (__fortify_function): Define only if
30378         __extern_always_inline is defined.
30379         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
30380         __extern_always_inline and __extern_inline only for g++-4.3
30381         and newer or a compatible gcc.
30382
30383 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
30384
30385         [BZ #17371]
30386         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
30387         last change to handle zero prefix length.
30388
30389 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
30390
30391         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
30392         _SC_REGEX_VERSION.
30393
30394         * posix/getconf.c (vars): Add _POSIX_IPV6 and
30395         _POSIX_RAW_SOCKETS.
30396
30397 2014-09-13  Allan McRae  <allan@archlinux.org>
30398
30399         * po/ru.po: Update Russian translation from translation project.
30400
30401 2014-09-12  Roland McGrath  <roland@hack.frob.com>
30402
30403         * locale/programs/locale.c (show_locale_vars): Inline local function
30404         into its sole call site.  Clean up some style nits.
30405         (print_item): New function, broken out of ...
30406         (show_info): ... local function here.  Clean up style nits.
30407
30408         * locale/programs/ld-ctype.c (set_one_default): New function, broken
30409         out of ...
30410         (set_class_defaults): ... local function set_default here.
30411         Define set_default as a macro locally to pass constant parameters.
30412         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
30413         rather than a shared local.
30414
30415         * stdlib/rpmatch.c (try): New function, broken out of ...
30416         (rpmatch): ... local function here.  Also, prototypify definition.
30417
30418 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
30419
30420         * scripts/soversions.awk: Do not handle configuration names.
30421         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
30422         vendor and os variables to soversions.awk.
30423         * configure.ac: Do not modify gnu-* host_os.
30424         * configure: Regenerated
30425         * shlib-versions: Remove first column with configuration names.
30426         * nptl/shlib-versions: Likewise.
30427         * nptl_db/shlib-versions: Likewise.
30428         * sysdeps/hppa/shlib-versions: Likewise.
30429         * sysdeps/m68k/shlib-versions: Likewise.
30430         * sysdeps/mach/hurd/shlib-versions: Likewise.
30431         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
30432         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
30433         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
30434         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
30435         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
30436         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
30437         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
30438         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
30439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
30440         Likewise.
30441         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
30442         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
30443         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
30444         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
30445         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
30446         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
30447         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
30448         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
30449
30450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
30451         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
30452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
30453         Regenerated.
30454         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
30455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
30456         Condition symbol version definitions on [HAVE_ELFV2_ABI].
30457
30458         * shlib-versions: Remove OS-specific entries.  Moved to files in
30459         sysdeps.
30460         * sysdeps/mach/hurd/shlib-versions: New file.
30461         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
30462
30463         * nptl/shlib-versions: Remove architecture-specific entries.
30464         Moved to files in sysdeps.
30465         * shlib-versions: Likewise.
30466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
30467         file.
30468         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
30469         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
30470         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
30471         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
30472
30473         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
30474         (UDP_NO_CHECK6_RX): Likewise.
30475
30476 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
30477
30478         * sysdeps/posix/sysconf.c (__sysconf): Spell
30479         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
30480
30481 2014-08-12  Florian Weimer  <fweimer@redhat.com>
30482
30483         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
30484         loading.
30485         * iconv/Versions (__gconv_transliterate): Export for use from
30486         gconv modules.
30487         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
30488         (struct __gconv_trans_data, __gconv_trans_fct,
30489         __gconv_trans_context_fct, __gconv_trans_query_fct,
30490         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
30491         definitions.
30492         (struct __gconv_step_data): Remove __trans member.
30493         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
30494         longer hidden.  Remove unused trans_data argument.
30495         * iconv/gconv_int.h (struct trans_struct): Remove definition.
30496         (__gconv_translit_find): Remove declaration.
30497         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
30498         prototype.
30499         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
30500         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
30501         trans_data argument.  Add hidden definition.
30502         (__gconv_translit_find): Remove.
30503         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
30504         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
30505         * iconv/skeleton.c: Remove transliteration initialization.
30506         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
30507         __gconv_step_data initialization.
30508         * libio/iofwide.c (__libio_translit_): Remove.
30509         (_IO_fwide): Adjust struct __gconv_step_data initialization.
30510         * wcsmbs/btowc.c (__btowc): Likewise.
30511         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
30512         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
30513         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
30514         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
30515         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
30516         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
30517         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
30518         * wcsmbs/wctob.c (wctob): Likewise.
30519
30520 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
30521
30522         [BZ #16194]
30523         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
30524         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
30525         register usage.
30526         * sysdeps/x86/Makefile: Adjust.
30527
30528 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
30529             Roland McGrath  <roland@hack.frob.com>
30530
30531         * locale/weight.h: Add include guard.
30532         (findidx): Make static rather than auto; take new parameters
30533         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
30534         * locale/weightwc.h: Likewise.
30535         * posix/fnmatch_loop.c
30536         (FCT): Change type of EXTRA from int32_t to wint_t.
30537         Don't include either header inside the function.
30538         Call FINDIDX rather than findidx, and pass new arguments.
30539         #undef FINDIDX at the end of the file.
30540         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
30541         FINDIDX before including fnmatch_loop.c for the non-wide version.
30542         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
30543         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
30544         for the wide version.
30545         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
30546         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
30547         Pass new arguments to findidx.
30548         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
30549         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
30550         Don't #include it inside the function.  Pass new arguments to findidx.
30551         * posix/regex_internal.h
30552         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
30553         (re_string_elem_size_at): Don't #include it inside the function.
30554         Pass new arguments to findidx.
30555         * string/strcoll_l.c: #include WEIGHT_H at top level.
30556         (get_next_seq): Don't #include it inside the function.
30557         Pass new arguments to findidx.
30558         (get_next_seq_nocache): Likewise.
30559         * string/strxfrm_l.c: #include WEIGHT_H at top level.
30560         (STRXFRM): Don't #include it inside the function.
30561         Pass new arguments to findidx.
30562
30563 2014-09-11  Florian Weimer  <fweimer@redhat.com>
30564
30565         [BZ #17344]
30566         * malloc/malloc.c (unlink): Turn asserts into a call to
30567         malloc_printerr.
30568
30569 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
30570
30571         [BZ #17370]
30572         * libio/wfileops (do_ftell_wide): Free OUT.
30573
30574 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
30575
30576         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
30577
30578 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
30579
30580         [BZ #17363]
30581         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
30582         group if the current group is empty.
30583
30584 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30585
30586         * benchtests/bench-memset.c (test_main): Add more test from size
30587         from 32 to 512 bytes.
30588         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30589         Add POWER8 memset object.
30590         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30591         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
30592         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
30593         implementation.
30594         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
30595         Likewise.
30596         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
30597         multiarch POWER8 memset optimization.
30598         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
30599         POWER8 memset optimization.
30600
30601         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30602         Remove bzero multiarch objects.
30603         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
30604         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
30605         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
30606         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
30607         Remove define.
30608         [__bzero]: Redefine to specific name.
30609         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
30610         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
30611         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
30612         define.
30613         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
30614         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
30615
30616 2014-09-10  Florian Weimer  <fweimer@redhat.com>
30617
30618         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
30619         warnings into errors.
30620
30621         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
30622         __cxa_thread_atexit_impl prototype.
30623
30624 2014-09-09  Steve Ellcey  <sellcey@mips.com>
30625
30626         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
30627         Fix capitalization of error message.
30628
30629 2014-09-09  Steve Ellcey  <sellcey@mips.com>
30630
30631         * sysdeps/mips/preconfigure: Modify ABI tests.
30632
30633 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
30634
30635         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
30636
30637 2014-09-07  Roland McGrath  <roland@hack.frob.com>
30638             Carlos O'Donell  <carlos@systemhalted.org>
30639
30640         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
30641         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
30642         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
30643         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
30644         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
30645         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
30646         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
30647         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
30648         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
30649         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
30650         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
30651         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
30652         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
30653         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
30654         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
30655         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
30656         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
30657         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
30658         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
30659         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
30660         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
30661         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
30662         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
30663         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
30664         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
30665         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
30666         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
30667         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
30668         Deconditionalize the code that was previously under [RESET_PID].
30669         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
30670         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
30671         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
30672         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
30673         include sysdep.h.
30674
30675 2014-09-08  Allan McRae  <allan@archlinux.org>
30676
30677         * version.h (RELEASE): Set to "development".
30678         (VERSION): Set to "2.20.90"
30679
30680 2014-09-07  Allan McRae  <allan@archlinux.org
30681
30682         * version.h (RELEASE): Set to "stable".
30683         (VERSION): Set to "2.20"
30684         * include/features.h (__GLIBC_MINOR__): Set to 20.
30685
30686         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
30687         Liebler.
30688
30689         * po/ko.po: Update Korean translation from translation project.
30690
30691 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
30692
30693         [BZ #17354]
30694         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
30695         macro for handling signed relocations.
30696
30697 2014-09-03  Florian Weimer  <fweimer@redhat.com>
30698
30699         [BZ #17325]
30700         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
30701         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
30702         assert.
30703         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
30704         * iconvdata/ibm935.c (BODY): Likewise.
30705         * iconvdata/ibm937.c (BODY): Likewise.
30706         * iconvdata/ibm939.c (BODY): Likewise.
30707         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
30708         assert.
30709         * iconvdata/Makefile (iconv-test.out): Pass module list to test
30710         script.
30711         * iconvdata/run-iconv-test.sh: New test loop for checking for
30712         decoder crashers.
30713
30714 2014-09-02  Khem Raj  <raj.khem@gmail.com>
30715
30716         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
30717         libm_hidden_ver.
30718
30719 2014-09-01  Allan McRae  <allan@archlinux.org>
30720
30721         * po/eo.po: Update Esperanto translation from translation project.
30722
30723         * po/ca.po: Update Catalan translation from translation project.
30724
30725 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30726
30727         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
30728         __proc_dostop call.
30729
30730 2014-08-27  Mark Wielaard  <mjw@redhat.com>
30731
30732         [BZ #17319]
30733         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
30734         to call set_thread_area instead of hand written asm.
30735         (__NR_set_thread_area): Removed define.
30736         (TLS_FLAG_WRITABLE): Likewise.
30737         (__ASSUME_SET_THREAD_AREA): Remove check.
30738         (TLS_EBX_ARG): Remove define.
30739         (TLS_LOAD_EBX): Likewise.
30740
30741 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30742
30743         Simplify atomicity of socket creation in bind.
30744
30745         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
30746         looking up the name after linking the file.
30747
30748 2014-08-27  Allan McRae  <allan@archlinux.org>
30749
30750         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
30751
30752 2014-08-26  Florian Weimer  <fweimer@redhat.com>
30753
30754         [BZ #17187]
30755         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
30756         trans_compare, open_translit, __gconv_translit_find):
30757         Remove module loading code.
30758
30759 2014-08-26  Allan McRae  <allan@archlinux.org>
30760
30761         * po/vi.po: Update Vietnamese translation from translation project.
30762
30763         * po/uk.po: Update Ukrainian translation from translation project.
30764
30765         * po/fr.po: Update French translation from translation project.
30766
30767         * po/ru.po: Update Russian translation from translation project.
30768
30769         * po/pl.po: Update Polish translation from translation project.
30770
30771         * po/cs.po: Update Czech translation from translation project.
30772
30773         * po/de.po: Update German translation from translation project.
30774
30775         * po/bg.po: Update Bulgarian translation from translation project.
30776
30777         * po/sv.po: Update Sweedish translation from translation project.
30778
30779         * po/nl.po: Update Dutch translation from translation project.
30780
30781         * po/es.po: Update Spanish translation from translation project.
30782
30783 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
30784
30785         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
30786
30787         * catgets/Makefile (CPPFLAGS-gencat): Remove.
30788         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
30789         (CPPFLAGS-iconvconfig): Likewise.
30790         * timezone/Makefile (CPPFLAGS-zic): Likewise.
30791
30792         * include/libc-symbols.h: Remove unnecessary check for
30793         NOT_IN_libc.
30794         * nptl/pthreadP.h: Likewise.
30795         * sysdeps/aarch64/setjmp.S: Likewise.
30796         * sysdeps/alpha/setjmp.S: Likewise.
30797         * sysdeps/arm/sysdep.h: Likewise.
30798         * sysdeps/i386/setjmp.S: Likewise.
30799         * sysdeps/m68k/setjmp.c: Likewise.
30800         * sysdeps/posix/getcwd.c: Likewise.
30801         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
30802         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
30803         * sysdeps/s390/s390-32/setjmp.S: Likewise.
30804         * sysdeps/s390/s390-64/setjmp.S: Likewise.
30805         * sysdeps/sh/sh3/setjmp.S: Likewise.
30806         * sysdeps/sh/sh4/setjmp.S: Likewise.
30807         * sysdeps/unix/alpha/sysdep.h: Likewise.
30808         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30809         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30810         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
30811         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30814         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30815         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30816         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30817         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30818         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30819         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30820         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30821         * sysdeps/x86_64/setjmp.S: Likewise.
30822
30823 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
30824
30825         [BZ #17263]
30826         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
30827         <stdint.h>.
30828         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
30829         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
30830
30831 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
30832
30833         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
30834
30835         [BZ #17262]
30836         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
30837         and __x86_64__ when disabling x87 inline functions.
30838
30839 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
30840
30841         [BZ #17259]
30842         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
30843         asm statement with __cpuid_count.
30844
30845 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
30846
30847         * configure.ac: Change __ehdr_start code to dereference the struct.
30848         Run readelf on the output to look for relocations.
30849         * configure: Regenerated.
30850
30851 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
30852
30853         [BZ #17261]
30854         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
30855         value to 0.
30856         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
30857
30858 2014-08-12  Roland McGrath  <roland@hack.frob.com>
30859
30860         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
30861
30862 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
30863
30864         [BZ #16892]
30865         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
30866         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
30867
30868 2014-08-12  Sean Anderson  <seanga2@gmail.com>
30869
30870         * malloc/malloc.c: Fix typo in comment.
30871
30872 2014-08-09  Allan McRae  <allan@archlinux.org>
30873
30874         * Regenerate libc.po.
30875
30876 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
30877
30878         * intl/tst-gettext2.sh: Check every lang file for creation.
30879
30880 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
30881
30882         * sysdeps/aarch64/fpu/math_private.h
30883         (libc_feholdsetround_noex_aarch64_ctx): New function.
30884
30885 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
30886
30887         * sysdeps/arm/armv6/strcpy.S (strcpy):
30888         Fix performance issue in misaligned cases.
30889
30890 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30891
30892         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
30893         Move definition from termios.h.
30894         (struct termio): Likewise.
30895         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
30896         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
30897         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
30898         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
30899         Likewise.
30900         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
30901         Move definition to ioctl-types.h
30902         (struct termio): Likewise.
30903         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
30904         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
30905         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
30906         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
30907         Likewise.
30908
30909 2014-08-05  Richard Henderson  <rth@redhat.com>
30910
30911         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
30912         exceptions.
30913         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
30914         Add fraiseexcpt.
30915         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
30916         Use __feraiseexcept.
30917         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
30918         Protect libm symbols with IS_IN_libm.
30919
30920         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
30921
30922 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
30923
30924         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
30925
30926 2014-08-04  Will Newton  <will.newton@linaro.org>
30927
30928         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
30929         file.
30930
30931 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
30932
30933         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
30934         variants for each function.
30935
30936 2014-08-04  Roland McGrath  <roland@hack.frob.com>
30937
30938         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
30939         appended ...
30940         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
30941         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
30942         appended ...
30943         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
30944         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
30945         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
30946         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
30947         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
30948         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
30949         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
30950         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
30951         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
30952         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
30953         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
30954         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
30955         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
30956         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
30957         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
30958         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
30959         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
30960         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
30961         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
30962         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
30963         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
30964         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
30965         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
30966         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
30967         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
30968         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
30969         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
30970         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
30971         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
30972         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
30973         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
30974         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
30975         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
30976         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
30977         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
30978         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
30979         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
30980         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
30981         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
30982         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
30983         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
30984         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
30985         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
30986         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
30987         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
30988         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
30989         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
30990         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
30991         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
30992         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
30993         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
30994         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
30995         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
30996         Update #include.
30997         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
30998         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
30999
31000 2014-08-04  Roland McGrath  <roland@hack.frob.com>
31001
31002         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
31003         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
31004         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
31005         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
31006         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
31007         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
31008
31009 2014-08-04  Roland McGrath  <roland@hack.frob.com>
31010
31011         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
31012         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
31013         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31014         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
31015
31016 2014-08-04  Roland McGrath  <roland@hack.frob.com>
31017
31018         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
31019         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
31020         (__libc_vfork): Define function under this name.
31021         (__vfork): Define as an alias.
31022         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
31023         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
31024
31025 2014-08-04  Roland McGrath  <roland@hack.frob.com>
31026
31027         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
31028         that was previously under [RESET_PID].
31029         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
31030
31031 2014-08-04  Andreas Schwab  <schwab@suse.de>
31032
31033         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
31034
31035 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
31036
31037         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
31038         (main): Likewise.
31039
31040 2014-08-01  Roland McGrath  <roland@hack.frob.com>
31041
31042         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
31043
31044 2014-08-01  Richard Henderon  <rth@redhat.com>
31045
31046         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
31047         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
31048         typo in exact zero test.
31049         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
31050         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
31051         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
31052
31053 2014-08-01  Roland McGrath  <roland@hack.frob.com>
31054
31055         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
31056         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
31057         * sysdeps/arm/sysdep.h: ... here.
31058         [!__ASSEMBLER__]: Include <stdint.h>.
31059
31060 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31061
31062         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
31063         (HAVE_WCTYPE_H): Likewise.
31064         (HAVE_ISWCTYPE): Likewise.
31065         (ENABLE_NLS): Likewise.
31066         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
31067         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
31068
31069         * posix/regex_internal.c: Check if DEBUG is defined and is
31070         set.
31071
31072         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
31073         (HAVE_MBSRTOWCS): Likewise.
31074         * posix/fnmatch.c: Include string.h unconditionally.
31075
31076 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
31077
31078         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
31079         reversal.
31080
31081 2014-07-31  Roland McGrath  <roland@hack.frob.com>
31082
31083         * sysdeps/generic/safe-fatal.h: New file.
31084         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
31085         * nptl/forward.c: Include it.
31086         (__pthread_unwind): Use __safe_fatal as default action, rather
31087         than a bogus use of INTERNAL_SYSCALL that could never work.
31088
31089         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
31090         * configure.ac (libc_cv_builtin_trap): New test.
31091         * configure: Regenerated.
31092         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
31093         (ABORT_INSTRUCTION): Define using __builtin_trap.
31094
31095         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
31096         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
31097         * sysdeps/nptl/nptl-signals.h: New file.
31098         * nptl/pthreadP.h: Include <nptl-signals.h>.
31099
31100 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
31101
31102         * sysdeps/s390/s390-64/utf16-utf32-z9.c
31103         (ONE_DIRECTION): Define.
31104         * sysdeps/s390/s390-64/utf8-utf16-z9.c
31105         (ONE_DIRECTION): Define.
31106         * sysdeps/s390/s390-64/utf8-utf32-z9.c
31107         (ONE_DIRECTION): Define.
31108
31109 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
31110
31111         * sysdeps/s390/Makefile: Delete file.
31112         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
31113         * sysdeps/s390/__longjmp.c: Delete file.
31114         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
31115         Remove fields __flags and __reserved.
31116         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
31117         and add versioning.
31118         * sysdeps/s390/rtld-__longjmp.c: Delete file.
31119         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
31120         * sysdeps/s390/rtld-setjmp.S: Likewise.
31121         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
31122         * sysdeps/s390/s390-32/__longjmp.c: ... here.
31123         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
31124         * sysdeps/s390/s390-32/setjmp.S: ... here.
31125         Add versioning.
31126         (__sigsetjmp): Remove setting __flags field.
31127         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
31128         * sysdeps/s390/s390-64/__longjmp.c: ... here.
31129         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
31130         * sysdeps/s390/s390-64/setjmp.S: ... here.
31131         Add versioning.
31132         (__sigsetjmp): Remove setting __flags field.
31133         * sysdeps/s390/setjmp.S: Delete file.
31134         * sysdeps/s390/sigjmp.c: Likewise.
31135         * sysdeps/s390/v1-longjmp.c: Likewise.
31136         * sysdeps/s390/v1-setjmp.h: Likewise.
31137         * sysdeps/s390/v1-sigjmp.c: Likewise.
31138         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
31139         Remove v1-longjmp_chk.
31140         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
31141         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
31142         Include debug/longjmp_chk.c and add versioning.
31143         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
31144         Include nptl/pt-longjmp.c and add versioning.
31145         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
31146         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
31147         Include __longjmp.c.
31148         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
31149         Move to ...
31150         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
31151         (__getcontext): Remove setting __flags field.
31152         Add versioning.
31153         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
31154         Don't restore upper high grps.
31155         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
31156         Likewise.
31157         (__swapcontext): Remove setting uc_flags field.
31158         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
31159         Delete file.
31160         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
31161         Include __longjmp.c.
31162         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
31163         Move to ...
31164         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
31165         (__getcontext): Remove setting __flags field.
31166         Add versioning.
31167         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
31168         (__swapcontext): Remove setting uc_flags field.
31169         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
31170         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
31171         Remove fields uc_high_gprs and __reserved.
31172         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
31173         New file with reverted content.
31174         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
31175         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
31176         Regenerated.
31177         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
31178         Regenerated.
31179
31180 2014-07-31  Andreas Schwab  <schwab@suse.de>
31181
31182         * config.h.in (HAVE_IFUNC): Define to 0.
31183         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
31184         definedness.
31185
31186 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
31187
31188         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31189         memmove-avx-unaligned, memcpy-avx-unaligned and
31190         mempcpy-avx-unaligned.
31191         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
31192         Add tests for AVX memcpy functions.
31193         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
31194         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
31195         memcpy_chk.
31196         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
31197         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
31198         memmove_chk.
31199         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
31200         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
31201         mempcpy_chk.
31202         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
31203         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
31204         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
31205
31206 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31207
31208         [BZ #17213]
31209         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
31210         powerpc64le.
31211
31212 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
31213
31214         [BZ #16839]
31215         * manual/llio.texi: Add section about open file description locks.
31216         * manual/examples/ofdlocks.c: Example of open file description
31217         lock usage.
31218         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
31219         F_OFD_SETLK, and F_OFD_SETLKW.
31220
31221 2014-07-23  Allan McRae  <allan@archlinux.org>
31222
31223         * po/es.po: Update Spanish translation from translation project.
31224
31225 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
31226
31227         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
31228
31229 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
31230
31231         [BZ #17078]
31232         * sysdeps/arm/dl-machine.h (elf_machine_rela)
31233         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
31234         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
31235
31236 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
31237
31238         [BZ #17088]
31239         * math/fesetenv.c (__fesetenv)
31240         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
31241         * math/feupdateenv.c (__feupdateenv)
31242         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
31243
31244         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
31245         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
31246         (__ASSUME_SOCKETCALL): Do not define.
31247
31248         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
31249         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
31250         (__ASSUME_SOCKETCALL): Do not define.
31251         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
31252         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
31253         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
31254         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
31255         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
31256         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
31257         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31258         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31259
31260         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
31261         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
31262         (__ASSUME_SOCKETCALL): Do not define.
31263         (__ASSUME_IPC64): Define unconditionally.
31264         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
31265         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
31266         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
31267         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
31268         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
31269         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31270         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
31271         Likewise.
31272
31273         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
31274         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
31275         (__ASSUME_SOCKETCALL): Do not define.
31276         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
31277         (__ASSUME_FUTEX_LOCK_PI): Likewise.
31278         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
31279         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
31280         (__ASSUME_REQUEUE_PI): Define unconditionally.
31281         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
31282         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
31283         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31284         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
31285         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31286         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31287
31288         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
31289         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
31290         (__ASSUME_SOCKETCALL): Do not define.
31291         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
31292         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
31293         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31294         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
31295         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31296         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31297
31298         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
31299         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
31300         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
31301         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
31302         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
31303         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
31304         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31305         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
31306         (__ASSUME_GETCPU_SYSCALL): Likewise.
31307
31308         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
31309         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
31310         cases for individual architectures.
31311         * sysdeps/gnu/configure: Regenerated.
31312         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
31313         LIBC_SLIBDIR_RTLDDIR.
31314         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
31315         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
31316         LIBC_SLIBDIR_RTLDDIR.
31317         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
31318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
31319         LIBC_SLIBDIR_RTLDDIR.
31320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
31321         Regenerated.
31322         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
31323         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
31324         file.
31325         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
31326         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
31327         file.
31328         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
31329         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
31330         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
31331         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
31332
31333         * sysdeps/aarch64/shlib-versions: Move to ...
31334         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
31335         * sysdeps/alpha/shlib-versions: Move to ...
31336         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
31337         * sysdeps/arm/shlib-versions: Move to ...
31338         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
31339         * sysdeps/hppa/shlib-versions: Move all contents except for
31340         libgcc_s entry to ...
31341         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
31342         entry from ...
31343         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
31344         * sysdeps/ia64/shlib-versions: Move to ...
31345         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
31346         entry from ...
31347         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
31348         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
31349         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
31350         * sysdeps/microblaze/shlib-versions: Move to ...
31351         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
31352         * sysdeps/mips/shlib-versions: Move to ...
31353         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
31354         entry from ...
31355         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
31356         * sysdeps/tile/shlib-versions: Move to ...
31357         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
31358         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
31359         from ...
31360         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
31361         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
31362         entry from ...
31363         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
31364
31365 2014-07-17  Will Newton  <will.newton@linaro.org>
31366
31367         * sysdeps/arm/bits/atomic.h
31368         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
31369         (__arch_compare_and_exchange_bool_16_int): Likewise.
31370         (__arch_compare_and_exchange_bool_64_int): Likewise.
31371
31372         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
31373         into an #else block.
31374
31375 2014-07-16  Roland McGrath  <roland@hack.frob.com>
31376
31377         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
31378         just Linux configurations.  Test empirically that the compiler sets
31379         __ARM_EABI__, rather than using the tuple to decide.
31380         * sysdeps/arm/preconfigure: Regenerated.
31381         * sysdeps/unix/sysv/linux/arm/configure: File removed.
31382         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
31383         contents appended ...
31384         * sysdeps/arm/configure.ac: ... here.
31385         * sysdeps/arm/configure: Regenerated.
31386
31387 2014-07-15  Roland McGrath  <roland@hack.frob.com>
31388
31389         * nptl/pthread_kill.c: New file.
31390         * nptl/pthread_sigmask.c: New file.
31391         * nptl/pthread_sigqueue.c: New file.
31392
31393         * sysdeps/nptl/lowlevellock.h: New file.
31394         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
31395         * sysdeps/nptl/lowlevellock-futex.h: New file.
31396
31397         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
31398         Remove dead declarations.
31399
31400 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
31401
31402         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
31403         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
31404         config-cflags-avx2.
31405         * sysdeps/x86_64/configure.ac: Likewise.
31406         * sysdeps/i386/configure: Regenerated.
31407         * sysdeps/x86_64/configure: Likewise.
31408         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31409         memset-avx2 only if config-cflags-avx2 is yes.
31410         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
31411         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
31412         defined.
31413         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
31414         only if HAVE_AVX2_SUPPORT is defined.
31415         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
31416
31417 2014-07-14  Alan Modra  <amodra@gmail.com>
31418
31419         [BZ #17153]
31420         * elf/elf.h (DT_PPC64_NUM): Correct value.
31421         * NEWS: Add to fixed bug list.
31422
31423 2014-07-13  Jim Meyering  <meyering@fb.com>
31424
31425         [BZ 17150]
31426         regex: don't deref NULL upon heap allocation failure
31427         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
31428         failure in one more place.
31429         To trigger the segfault, configure grep -with-included-regex,
31430         build it, and run these commands:
31431         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
31432
31433 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
31434
31435         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31436
31437 2014-07-11  Richard Henderson  <rth@redhat.com>
31438
31439         * sysdeps/aarch64/libm-test-ulps: Update.
31440
31441 2014-07-10  Florian Weimer  <fweimer@redhat.com>
31442
31443         [BZ #17135]
31444         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
31445         * nptl/allocatestack.c (__nptl_setxid_error): New function.
31446         (__nptl_setxid): Initialize error member.  Call
31447         __nptl_setxid_error.
31448         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
31449         * nptl/descr.h (struct xid_command): Add error member.
31450         * nptl/tst-setuid3.c: New file.
31451         * nptl/Makefile (tests): Add it.
31452
31453 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31454
31455         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
31456         New define.
31457         (__lll_trylock): Use __lll_base_trylock.
31458         (__lll_cond_trylock): Likewise.
31459
31460 2014-07-10  Roland McGrath  <roland@hack.frob.com>
31461
31462         * nptl/pthread_create.c (start_thread): Use atomic_or and
31463         lll_futex_wake directly rather than lll_robust_dead.
31464         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
31465         (lll_robust_dead): Macro removed.
31466         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
31467         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
31468         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
31469         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
31470         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
31471         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
31472         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
31473         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
31474         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
31475         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
31476         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
31477         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
31478         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
31479         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
31480         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
31481
31482         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
31483         Use atomic_compare_and_exchange_val_acq directly rather than
31484         lll_robust_trylock.
31485         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
31486         (__lll_robust_trylock, lll_robust_trylock): Removed.
31487         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
31488         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
31489         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
31490         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
31491         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
31492         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
31493         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
31494         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
31495         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
31496         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
31497         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
31498         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
31499         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
31500         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
31501
31502 2014-07-02  Florian Weimer  <fweimer@redhat.com>
31503
31504         * manual/locale.texi (Locale Names): New section documenting
31505         locale name syntax.  Adjust menu and node chaining accordingly.
31506         (Choosing Locale): Reference Locale Names, Locale Categories.
31507         Mention setting LC_ALL=C.  Reflect that name syntax is now
31508         documented.
31509         (Locale Categories): New section title.  Reference Locale Names.
31510         LC_ALL is an environment variable, but not a category.
31511         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
31512         description, now in Locale Name.  Reference that section.  Locale
31513         name syntax is now documented.
31514
31515 2014-07-02  Florian Weimer  <fweimer@redhat.com>
31516
31517         [BZ #17137]
31518         * locale/findlocale.c (name_present, valid_locale_name): New
31519         functions.
31520         (_nl_find_locale): Use the loc_name variable to store name
31521         candidates.  Call name_present and valid_locale_name to check and
31522         validate locale names.  Return an error if the locale is invalid.
31523
31524 2014-07-02  Florian Weimer  <fweimer@redhat.com>
31525
31526         * locale/setlocale.c (setlocale): Use strdup for allocating
31527         composite name copy.
31528
31529 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31530
31531         Sync up with gnulib.
31532         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
31533         [!_LIBC && ENABLE_NLS]: Include gettext.h.
31534         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
31535         and _GL_ARG_NONNULL.
31536         [USE_UNLOCKED_IO]: Include unlocked-io.h.
31537         [!_LIBC]: Include code for Windows and Cygwin.
31538         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
31539         Include prototype for int strerror_r.
31540         [!_LIBC] (is_open): New function.
31541         (flush_stdout): New function.
31542         (print_errno_message): Use it.
31543         (error): Likewise.
31544         (error_at_line): Likewise.
31545         (error_tail) Add function attribute macros.  Use
31546         __builtin_expect.
31547
31548         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
31549
31550         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
31551
31552         * io/ftw.c: Include sys/param.h unconditionally.
31553
31554         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
31555
31556         [BZ #17125]
31557         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
31558         libc_freeres_ptr.
31559         (freecache): New function to free CACHE on exit.
31560
31561         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
31562         initialization.
31563
31564 2014-07-09  David S. Miller  <davem@davemloft.net>
31565
31566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31567
31568         * sysdeps/sparc/nptl/internaltypes.h: Delete.
31569         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
31570         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
31571         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
31572         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
31573         * sysdeps/sparc/nptl/sem_init.c: Likewise.
31574         * sysdeps/sparc/nptl/sem_post.c: Likewise.
31575         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
31576         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
31577         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
31578         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
31579         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
31580         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
31581
31582 2014-07-09  Andreas Schwab  <schwab@suse.de>
31583
31584         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
31585         output.
31586         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
31587         (do_test): Likewise.
31588
31589         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
31590
31591 2014-07-09  Will Newton  <will.newton@linaro.org>
31592
31593         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
31594         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
31595         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31596         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31597         * sysdeps/hppa/start.S (_start): Likewise.
31598
31599 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
31600
31601         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
31602
31603         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
31604         defined.
31605
31606 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
31607
31608         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
31609         after checking that it is non-NULL.
31610
31611         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
31612
31613 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31614
31615         * sysdeps/powerpc/memmove.c: Remove file.
31616         * sysdeps/powerpc/powerpc32/power4/memcopy.h
31617         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
31618         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
31619         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
31620         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
31621         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
31622         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
31623         string memmove instead of removed powerpc one.
31624
31625         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
31626         [weak_alias]: Fix compiler warning due trailing data.
31627         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
31628         [weak_alias]: Likewise.
31629         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
31630         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
31631
31632         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
31633         (__libc_ifunc_impl_list): Add memmove functions.
31634
31635 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
31636
31637         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
31638         Remove code.
31639         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
31640         Likewise.
31641         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
31642         Likewise.
31643         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
31644         Likewise.
31645         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
31646         Likewise.
31647         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
31648         Likewise.
31649         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
31650         Likewise.
31651         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
31652         Likewise.
31653         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
31654         Likewise.
31655         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
31656         Likewise.
31657         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
31658         Likewise.
31659         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
31660         Likewise.
31661         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
31662         Likewise.
31663         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
31664         Likewise.
31665         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
31666         Likewise.
31667         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
31668         Likewise.
31669         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
31670         Likewise.
31671
31672 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31673
31674         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
31675         to avoid alignment traps in non-cacheable memory.
31676         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
31677
31678         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
31679         multiarch objects.
31680         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
31681         file: multiarch power7 memmove.
31682         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
31683         multiarch default memmove.
31684         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
31685         multiarch memove for powerpc32/power4.
31686
31687         * string/bcopy.c: Use full path to include memmove.c.
31688         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
31689         multiarch objects.
31690         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
31691         bcopy for powerpc64.
31692         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
31693         bcopy for powerpc64.
31694         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
31695         and memmove implementations.
31696         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
31697         optimized multiarch memmove for POWER7/powerpc64.
31698         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
31699         default multiarch memmove for powerpc64.
31700         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
31701         multiarch for powerpc64.
31702         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
31703         for POWER7/powerpc64.
31704         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
31705         memmove for POWER7/powerpc64.
31706
31707         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
31708         glibc default one.
31709
31710         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
31711         __ELF_NATIVE_CLASS equal to 64.
31712
31713 2014-07-07  Roland McGrath  <roland@hack.frob.com>
31714
31715         * sysdeps/nptl/lowlevellock.h: File removed.
31716
31717         * NEWS: NPTL is no longer an add-on!
31718         * nptl/internaltypes.h: Moved ...
31719         * sysdeps/nptl/internaltypes.h: ... here.
31720         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
31721         * sysdeps/nptl/fork.c: Likewise.
31722         * sysdeps/nptl/gai_misc.h: Likewise.
31723         * sysdeps/nptl/librt-cancellation.c: Likewise.
31724         * sysdeps/nptl/jmp-unwind.c: Likewise.
31725         * sysdeps/nptl/setxid.h: Likewise.
31726         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
31727         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
31728         * sysdeps/unix/sysv/linux/arm/Implies: New file.
31729         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
31730         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
31731         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
31732         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
31733         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
31734         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
31735         * sysdeps/unix/sysv/linux/mips/Implies: New file.
31736         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
31737         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
31738         * sysdeps/unix/sysv/linux/sh/Implies: New file.
31739         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
31740         * sysdeps/unix/sysv/linux/tile/Implies: New file.
31741         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
31742         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
31743         * nptl/Makeconfig: Moved ...
31744         * sysdeps/nptl/Makeconfig: ... here.
31745         * nptl/configure: File removed.
31746         * nptl/ANNOUNCE: File removed.
31747         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
31748         * sysdeps/unix/sysv/linux/configure: Regenerated.
31749
31750         * nptl/Makefile (routines): Add libc_pthread_init,
31751         libc_multiple_threads, register-atfork and unregister-atfork.
31752         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
31753         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
31754         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
31755         pthread-pi-defines.sym, structsem.sym.
31756         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
31757         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
31758         [$(subdir) = nptl] (tests): Add tst-setgetname.
31759         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
31760         * sysdeps/unix/sysv/linux/sigaction.c: Just include
31761         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
31762         [!LIBC_SIGACTION]: Remove aliases.
31763         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
31764         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
31765         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
31766         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
31767         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
31768         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
31769         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31770         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31771         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
31772         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
31773         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
31774         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
31775         __libc_allocate_rtsig_private.
31776         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
31777         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
31778         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
31779         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
31780         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
31781         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
31782         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
31783         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
31784         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
31785         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
31786         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
31787         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
31788         * nptl/internaltypes.h: ... here.
31789         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
31790         * sysdeps/nptl/jmp-unwind.c: ... here.
31791         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
31792         * nptl/libc-lowlevellock.c: ... here.
31793         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
31794         * nptl/libc_multiple_threads.c: ... here.
31795         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
31796         * nptl/libc_pthread_init.c: ... here.
31797         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
31798         * nptl/lowlevelbarrier.sym: ... here.
31799         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
31800         * nptl/lowlevelcond.sym: ... here.
31801         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
31802         * nptl/lowlevellock.c: ... here.
31803         * nptl/lowlevellock.h: Moved ...
31804         * sysdeps/nptl/lowlevellock.h: ... here.
31805         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
31806         * nptl/lowlevelrobustlock.c: ... here.
31807         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
31808         * nptl/lowlevelrobustlock.sym: ... here.
31809         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
31810         * nptl/lowlevelrwlock.sym: ... here.
31811         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
31812         * nptl/pt-fork.c: ... here.
31813         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
31814         * nptl/pthread-pi-defines.sym: ... here.
31815         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
31816         * nptl/pthread_attr_getaffinity.c: ... here.
31817         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
31818         * nptl/pthread_attr_setaffinity.c: ... here.
31819         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
31820         * nptl/pthread_mutex_cond_lock.c: ... here.
31821         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
31822         Update #include.
31823         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
31824         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
31825         * nptl/pthread_once.c: ... here, replacing old file.
31826         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
31827         * nptl/pthread_yield.c: ... here.
31828         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
31829         * nptl/register-atfork.c: ... here.
31830         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
31831         * nptl/sem_post.c: ... here.
31832         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
31833         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
31834         * nptl/sem_timedwait.c: ... here.
31835         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
31836         * nptl/sem_trywait.c: ... here.
31837         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
31838         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
31839         * nptl/sem_wait.c: ... here.
31840         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
31841         * nptl/structsem.sym: ... here.
31842         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
31843         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
31844         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
31845         * nptl/unregister-atfork.c: ... here.
31846         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
31847         * nptl/unwindbuf.sym: ... here.
31848         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
31849         * sysdeps/nptl/fork.c: ... here.
31850         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
31851         * sysdeps/nptl/fork.h: ... here.
31852         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
31853         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
31854         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
31855         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
31856         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
31857         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
31858         * sysdeps/unix/sysv/linux/getpid.c: ... here.
31859         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
31860         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
31861         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
31862         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
31863         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
31864         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
31865         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
31866         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
31867         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
31868         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
31869         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
31870         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
31871         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
31872         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
31873         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
31874         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
31875         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
31876         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
31877         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
31878         * sysdeps/unix/sysv/linux/raise.c: ... here.
31879         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
31880         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
31881         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
31882         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
31883         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
31884         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
31885         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
31886         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
31887         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
31888         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
31889         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
31890         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
31891         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
31892         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
31893         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
31894
31895 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
31896
31897         * sysdeps/generic/memcopy.h: Add comment for
31898         MEMCPY_OK_FOR_FWD_MEMMOVE.
31899
31900 2014-07-04  Will Newton  <will.newton@linaro.org>
31901
31902         * string/memchr.c: Merge from gnulib.
31903         [_LIBC]: Remove conditionals.
31904         (__ptr_t): Remove define.
31905         (LONG_MAX_32_BITS): Likewise.
31906         (LONG_MAX): Likewise.
31907         (MEMCHR): Use ANSI prototype and optimize algorithm.
31908
31909         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
31910
31911 2014-07-03  Roland McGrath  <roland@hack.frob.com>
31912
31913         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
31914         (lll_futex_timed_wait_bitset): Fix syscall argument count.
31915
31916         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
31917         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
31918         in a bare environment with no <stdlib.h> installed.
31919         * sysdeps/nptl/configure: Regenerated.
31920
31921         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
31922
31923         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
31924         AC_EGREP_CPP for kernel header checks, so they only succeed if
31925         including <linux/version.h> actually works right.
31926         * sysdeps/unix/sysv/linux/configure: Regenerated.
31927
31928         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
31929         value so it's not diagnosed as unused.
31930
31931         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
31932         thing) with "ifeq ($(subdir),rt)".
31933
31934 2014-07-03  Richard Henderson  <rth@redhat.com>
31935
31936         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
31937         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
31938         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
31939
31940         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
31941         (math_force_eval): New.
31942
31943         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
31944         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
31945
31946         * sysdeps/alpha/fpu/s_round.c: Remove file.
31947         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
31948
31949         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
31950         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
31951         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
31952         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
31953         (_dl_start, print_statistics): Likewise.
31954         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
31955         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
31956
31957         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31958         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31959         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31960         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31961         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
31962         (HP_SMALL_TIMING_AVAIL): Define.
31963         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31964         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
31965         (HP_SMALL_TIMING_AVAIL): Define.
31966         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31967         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31968
31969         * sysdeps/aarch64/hp-timing.h: New file.
31970
31971         * sysdeps/generic/hp-timing.h: Remove dead comment.
31972         * sysdeps/generic/hp-timing-common.h: New file.
31973         * sysdeps/alpha/hp-timing.h: Include it.
31974         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
31975         * sysdeps/i386/i686/hp-timing.h: Likewise.
31976         * sysdeps/ia64/hp-timing.h: Likewise.
31977         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
31978         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
31979         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
31980         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
31981         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
31982         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
31983         (hp_timing_t): New.
31984
31985         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
31986         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
31987         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
31988         * elf/rtld.c (_dl_start_final): Likewise.
31989         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
31990         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31991         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31992         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31993         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31994         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
31995         (HP_TIMING_DIFF_INIT): Remove.
31996         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31997         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
31998         (HP_TIMING_DIFF_INIT): Remove.
31999         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
32000         * sysdeps/i386/i686/hp-timing.c: Remove file.
32001         * sysdeps/x86_64/hp-timing.c: Remove file.
32002         * sysdeps/ia64/hp-timing.c: Remove file.
32003         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
32004         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
32005         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
32006         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
32007
32008         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
32009         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
32010         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
32011         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
32012         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
32013         (HP_TIMING_ACCUM): Remove.
32014         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
32015         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
32016         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
32017
32018         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
32019         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
32020         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
32021         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
32022         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
32023         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
32024         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
32025         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
32026
32027         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
32028
32029 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
32030
32031         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
32032
32033 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32034
32035         Sync up with gettext.
32036         * intl/loadmsgcat.c: Define O_BINARY if not defined.
32037         [_MSC_VER]: Include malloc.h
32038         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
32039         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
32040         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
32041         TEMP_FAILURE_RETRY.  Cast return of alloca.
32042         [!_LIBC] Call gl_rwlock_init.
32043         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
32044
32045 2014-07-02  Roland McGrath  <roland@hack.frob.com>
32046
32047         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
32048         before checking its value.
32049
32050 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32051
32052         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
32053
32054         * debug/memcpy_chk.c: Don't include pagecopy.h.
32055         * debug/mempcpy_chk.c: Likewise.
32056         * string/memcpy.c: Likewise.
32057         * string/memmove.c: Likewise.
32058         * sysdeps/powerpc/memmove.c: Likewise.
32059         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
32060         definition of PAGE_COPY_FWD_MAYBE here...
32061         * sysdeps/generic/pagecopy.h: ... from here.
32062         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
32063
32064 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
32065             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32066
32067         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
32068         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
32069         optimizations.
32070         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
32071         (__libc_ifunc_impl_list): Likewise.
32072         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
32073         multiarch strcat for PPC64.
32074         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
32075         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
32076
32077 2014-07-02  Roland McGrath  <roland@hack.frob.com>
32078
32079         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
32080
32081 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32082
32083         * intl/loadmsgcat.c: Remove declaration of
32084         get_sysdep_segment_value.
32085         (get_sysdep_segment_value): Use ISO C style.
32086         (_nl_load_domain): Use ISO C style.  Get rid of redundant
32087         semicolon.  Fix typo and formatting in comment.
32088         (_nl_unload_domain): Use ISO C style.
32089
32090         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
32091
32092 2014-07-02  Will Newton  <will.newton@linaro.org>
32093
32094         * malloc/obstack.c: Merge from gnulib master.
32095         [HAVE_CONFIG_H]: Remove conditional code.
32096         [!_LIBC]: Include config.h.
32097         [!ELIDE_CODE]: Don't include inttypes.h, include
32098         stdint.h unconditionally.
32099         (print_and_abort): Mark as _Noreturn.
32100         (_obstack_allocated_p): Mark as __attribute_pure__.
32101         (obstack_free): Rename to __obstack_free.
32102         [!__attribute__]: Remove conditional code.
32103         * malloc/obstack.h: Merge from gnulib master.
32104         [__cplusplus]: Move conditional down.
32105         [!__attribute_pure__]: Define __attribute_pure__ here
32106         if it is not already defined.
32107         (_obstack_memory_used): Mark as __attribute_pure__.
32108         [!__obstack_free]: Define as obstack_free.
32109         [__GNUC__]: Remove check for ancient NeXT gcc.
32110
32111 2014-07-02  Will Newton  <will.newton@linaro.org>
32112             Paul Eggert  <eggert@cs.ucla.edu>
32113
32114         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
32115
32116 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32117
32118         * resolv/gethnamaddr.c: Add comment warning that the file is
32119         not maintained.
32120
32121 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
32122
32123         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
32124         entries.
32125
32126         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
32127         entry for aio_cancel and aio_cancel64.
32128         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
32129         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
32130         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
32131         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
32132         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
32133         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
32134         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
32135         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
32136         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
32137         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
32138         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
32139         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
32140         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
32141
32142 2014-07-01  Roland McGrath  <roland@hack.frob.com>
32143
32144         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
32145         * nptl/pthread_mutex_lock.c: Likewise.
32146         * nptl/pthread_mutex_timedlock.c: Likewise.
32147         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
32148
32149 2014-07-01  Richard henderson  <rth@redhat.com>
32150
32151         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
32152         (__isnan, __isnanl): Remove.
32153         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
32154
32155         * sysdeps/alpha/fpu/libm-test-ulps: Update.
32156
32157 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
32158
32159         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32160
32161 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
32162
32163         * resolv/nss_dns/dns-host.c (getanswer_r)
32164         [MULTI_PTRS_ARE_ALIASES]: Remove code.
32165
32166 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
32167
32168         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32169         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
32170         undefine.
32171         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
32172         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
32173
32174 2014-07-01  Roland McGrath <roland@hack.frob.com>
32175
32176         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
32177         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
32178
32179         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
32180         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
32181
32182         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
32183         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
32184         ... here.
32185         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
32186         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
32187
32188         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
32189         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
32190         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
32191         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
32192
32193         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
32194         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
32195         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
32196         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
32197         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
32198         Moved ...
32199         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
32200         ... here.
32201         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
32202         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
32203         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
32204         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
32205         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
32206         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
32207         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
32208         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
32209         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
32210         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
32211         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
32212         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
32213         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
32214         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
32215         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
32216         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
32217         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
32218         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
32219         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
32220         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
32221         ... here.
32222         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
32223         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
32224         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
32225         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
32226         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
32227         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
32228         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
32229         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
32230
32231 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
32232
32233         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
32234         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
32235         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
32236         Add sysdep.
32237
32238 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32239
32240         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32241
32242 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
32243
32244         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
32245         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
32246
32247         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
32248
32249         * sysdeps/arm/libm-test-ulps: Regenerated.
32250
32251 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
32252             Roland McGrath <roland@hack.frob.com>
32253
32254         * test-skeleton.c (signal_handler): Kill the whole process group
32255         before killing the child individually.
32256         (main): Report any failure on `setpgid'.
32257
32258 2014-06-30  Roland McGrath  <roland@hack.frob.com>
32259
32260         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
32261         from _TLS_H to _ARM_NPTL_TLS_H.
32262         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
32263         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
32264
32265 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
32266
32267         [BZ #16539]
32268         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
32269         (__expm1l): Return argument unchanged when small but not
32270         subnormal.
32271
32272         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
32273         include macro name.
32274         (_FP_UNPACK_RAW_1_P): Likewise.
32275         (_FP_PACK_RAW_1): Likewise.
32276         (_FP_PACK_RAW_1_P): Likewise.
32277         (_FP_MUL_MEAT_1_wide): Likewise.
32278         (_FP_MUL_MEAT_DW_1_hard): Likewise.
32279         (_FP_MUL_MEAT_1_hard): Likewise.
32280         (_FP_DIV_MEAT_1_imm): Likewise.
32281         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
32282         (_FP_DIV_MEAT_1_udiv): Likewise.
32283         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
32284         (_FP_UNPACK_RAW_2): Likewise.
32285         (_FP_UNPACK_RAW_2_P): Likewise.
32286         (_FP_PACK_RAW_2): Likewise.
32287         (_FP_PACK_RAW_2_P): Likewise.
32288         (_FP_MUL_MEAT_DW_2_wide): Likewise.
32289         (_FP_MUL_MEAT_2_wide): Likewise.
32290         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
32291         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
32292         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
32293         (_FP_MUL_MEAT_2_gmp): Likewise.
32294         (_FP_DIV_MEAT_2_udiv): Likewise.
32295         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
32296         (_FP_FRAC_SRL_4): Likewise.
32297         (_FP_FRAC_SRST_4): Likewise.
32298         (_FP_FRAC_SRS_4): Likewise.
32299         (_FP_UNPACK_RAW_4): Likewise.
32300         (_FP_UNPACK_RAW_4_P): Likewise.
32301         (_FP_PACK_RAW_4): Likewise.
32302         (_FP_PACK_RAW_4_P): Likewise.
32303         (_FP_MUL_MEAT_DW_4_wide): Likewise.
32304         (_FP_MUL_MEAT_4_wide): Likewise.
32305         (_FP_MUL_MEAT_4_gmp): Likewise.
32306         (umul_ppppmnnn): Likewise.
32307         (_FP_DIV_MEAT_4_udiv): Likewise.
32308         (__FP_FRAC_ADD_4): Likewise.
32309         (__FP_FRAC_SUB_3): Likewise.
32310         (__FP_FRAC_SUB_4): Likewise.
32311         (__FP_FRAC_DEC_3): Likewise.
32312         (__FP_FRAC_DEC_4): Likewise.
32313         (__FP_FRAC_ADDI_4): Likewise.
32314         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
32315         (_FP_FRAC_SRL_8): Likewise.
32316         (_FP_FRAC_SRS_8): Likewise.
32317
32318         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
32319         include macro name.
32320         (FP_UNPACK_RAW_EP): Likewise.
32321         (FP_PACK_RAW_E): Likewise.
32322         (FP_PACK_RAW_EP): Likewise.
32323         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
32324         (_FP_ISSIGNAN): Likewise.
32325         (_FP_ADD_INTERNAL): Likewise.
32326         (_FP_FMA): Likewise.
32327         (_FP_CMP): Likewise.
32328         (_FP_SQRT): Likewise.
32329         (_FP_TO_INT): Likewise.
32330         (_FP_FROM_INT): Likewise.
32331         (FP_EXTEND): Likewise.
32332         (_FP_DIV_MEAT_N_loop): Likewise.
32333
32334 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
32335
32336         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
32337         throughout.
32338
32339 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
32340
32341         [BZ #17097]
32342         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
32343         result with correct sign in case of exponents that produce
32344         overflow except for X very close to 1.
32345
32346 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
32347
32348         mktime: merge #if/#ifdef usage from glibc
32349         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
32350         as that works with both Glibc's and Gnulib's style.
32351         See thread starting at Siddhesh Poyarekar's bug report at:
32352         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
32353
32354 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
32355
32356         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
32357         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
32358         * sysdeps/tile/tilegx/memmove.c: Remove file.
32359
32360 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
32361
32362         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
32363         abi-name definition.
32364         * scripts/soversions.awk: Do not handle or generate ABI lines.
32365         * shlib-versions: Remove ABI entries.
32366         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
32367         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
32368
32369 2014-06-27  Roland McGrath  <roland@hack.frob.com>
32370
32371         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
32372         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
32373         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
32374         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
32375         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
32376         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
32377         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
32378         Moved ...
32379         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
32380         ... here.
32381         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
32382         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
32383         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
32384         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
32385         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
32386         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
32387         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
32388         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
32389         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
32390         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
32391         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
32392         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
32393         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
32394         Moved ...
32395         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
32396         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
32397         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
32398         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
32399         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
32400         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
32401         Moved ...
32402         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
32403         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
32404         Moved ...
32405         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
32406         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
32407         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
32408         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
32409         Moved ...
32410         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
32411         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
32412         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
32413         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
32414         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
32415         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
32416         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
32417         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
32418         Moved ...
32419         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
32420         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
32421         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
32422         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
32423         Moved ...
32424         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
32425         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
32426         Moved ...
32427         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
32428         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
32429         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
32430         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
32431         Moved ...
32432         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
32433         ... here.
32434         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
32435         Identical file removed.
32436         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
32437         Moved ...
32438         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
32439         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
32440         Identical file removed.
32441         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
32442         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
32443         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
32444         Moved ...
32445         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
32446         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
32447         Identical file removed.
32448         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
32449         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
32450         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
32451         Identical file removed.
32452         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
32453         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
32454         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
32455         Identical file removed.
32456         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
32457         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
32458         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
32459         Identical file removed.
32460         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
32461         Moved ...
32462         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
32463         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
32464         Identical file removed.
32465         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
32466         Moved ...
32467         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
32468         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
32469         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
32470         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
32471         Identical file removed.
32472         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
32473         Moved ...
32474         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
32475         ... here.
32476         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
32477         Identical file removed.
32478         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
32479         Moved ...
32480         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
32481         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
32482         Identical file removed.
32483         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
32484         Moved ...
32485         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
32486         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
32487         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
32488         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
32489         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
32490         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
32491         Moved ...
32492         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
32493         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
32494         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
32495
32496         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
32497         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
32498         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
32499         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
32500         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
32501
32502 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
32503
32504         [BZ #17092]
32505         * nscd/nscd.c (monitor_child): Return exit status of child
32506         instead of return value from wait syscall.
32507
32508 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
32509
32510         * configure.ac (libc_commonpagesize): Remove variable.
32511         (libc_relro_required): Likewise.
32512         (libc_cv_z_relro): Remove configure test.
32513         * configure: Regenerated.
32514         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
32515         variable.
32516         (libc_relro_required): Likewise.
32517         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
32518         (libc_relro_required): Likewise.
32519         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
32520         (libc_relro_required): Likewise.
32521         * sysdeps/arm/preconfigure: Regenerated.
32522         * sysdeps/ia64/preconfigure: Remove file.
32523         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
32524         variable.
32525         (libc_relro_required): Likewise.
32526
32527         [BZ #16561]
32528         [BZ #16562]
32529         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
32530         (__ieee754_yn): Set FE_TONEAREST mode internally and then
32531         recompute overflowing results in original rounding mode.
32532         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
32533         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
32534         recompute overflowing results in original rounding mode.
32535         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
32536         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
32537         recompute overflowing results in original rounding mode.
32538         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
32539         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
32540         recompute overflowing results in original rounding mode.
32541         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
32542         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
32543         recompute overflowing results in original rounding mode.
32544         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
32545         (libc_feholdsetround_ctx): New macro.
32546         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
32547         * sysdeps/i386/fpu/libm-test-ulps: Update.
32548         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
32549
32550 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
32551
32552         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
32553         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
32554         corresponding .cpsetup call.
32555
32556 2014-06-26  Roland McGrath  <roland@hack.frob.com>
32557
32558         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
32559         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
32560         * sysdeps/arm/Makefile [$(subdir) = csu]
32561         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
32562         (static-only-routines): Add aeabi_read_tp here.
32563         (shared-only-routines): Add libc-aeabi_read_tp here.
32564         (CFLAGS-libc-start.c): Add -fexceptions here.
32565         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
32566         (sysdep_routines, static-only-routines, shared-only-routines):
32567         Don't add to these here.
32568         (CFLAGS-libc-start.c): Likewise.
32569
32570         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
32571         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
32572         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
32573         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
32574         * sysdeps/arm/Makefile [$(subdir) = rt]
32575         (librt-sysdep_routines, librt-shared-only-routines):
32576         Append rt-aeabi_unwind_cpp_pr1 here.
32577         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
32578         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
32579         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
32580         (libpthread-sysdep_routines, libpthread-shared-only-routines):
32581         Append nptl-aeabi_unwind_cpp_pr1 here.
32582         (tests): Filter out tst-cleanupx4 here.
32583         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
32584         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
32585         Don't do those here.
32586
32587 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
32588
32589         * scripts/list-sources.sh: Do not handle ports specially.
32590
32591 2014-06-26  Roland McGrath  <roland@hack.frob.com>
32592
32593         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
32594         * sysdeps/arm/feupdateenv.c: Likewise.
32595
32596         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
32597
32598 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
32599
32600         * manual/texinfo.tex: Update to version 2014-05-05.10 with
32601         trailing whitespace removed.
32602         * scripts/config.guess: Update to version 2014-03-23.
32603         * scripts/config.sub: Update to version 2014-05-01
32604         * scripts/install-sh: Update to version 2013-12-25.23.
32605         * scripts/move-if-change: Update from gnulib.
32606
32607 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32608
32609         * debug/memmove_chk.c: Remove pagecopy.h include.
32610
32611 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
32612
32613         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
32614         identical to gnulib mktime.
32615
32616 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
32617
32618         * configure.ac: Do not test for machine being rs6000.  Do not test
32619         for powerpc*-*soft.
32620         * configure: Regenerated.
32621
32622         [BZ #11505]
32623         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
32624         test.
32625         * configure: Regenerated.
32626         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
32627         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
32628         Remove configure test.
32629         * sysdeps/arm/configure: Regenerated.
32630         * sysdeps/nptl/configure.ac: Do not check
32631         libc_cv_asm_cfi_directives.
32632         * sysdeps/nptl/configure: Regenerated.
32633         * sysdeps/x86_64/nptl/configure.ac: Remove file.
32634         * sysdeps/x86_64/nptl/configure: Remove generated file.
32635         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
32636         unconditional.
32637         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
32638
32639 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32640
32641         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
32642         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
32643         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
32644         it is defined.
32645
32646         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
32647         instead of whether it is defined.
32648         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
32649         * sysdeps/hppa/dl-machine.h: Likewise.
32650         * sysdeps/ia64/dl-machine.h: Likewise.
32651         * sysdeps/m68k/dl-machine.h: Likewise.
32652         * sysdeps/microblaze/dl-machine.h: Likewise.
32653         * sysdeps/mips/dl-machine.: Likewise.
32654         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
32655         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
32656         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
32657         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
32658         * sysdeps/sh/dl-machine.h: Likewise.
32659         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
32660         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
32661         * sysdeps/tile/dl-machine.h: Likewise.
32662         * sysdeps/x86_64/dl-machine.h: Likewise.
32663
32664         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
32665         code.
32666         (verify_persistent_db): Likewise.
32667
32668 2014-06-26  Roland McGrath  <roland@hack.frob.com>
32669
32670         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
32671         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
32672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
32673         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
32674         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
32675         Moved ...
32676         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
32677         ... here.
32678         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
32679         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
32680         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
32681         Identical file removed.
32682         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
32683         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
32684         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
32685         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
32686         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
32687         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
32688         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
32689         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
32690         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
32691         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
32692         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
32693         Moved ...
32694         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
32695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
32696         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
32697         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
32698         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
32699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
32700         Moved ...
32701         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
32702         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
32703         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
32704         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
32705         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
32706         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
32707         Identical file removed.
32708         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
32709         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
32710         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
32711         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
32712         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
32713         Moved ...
32714         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
32715         ... here.
32716         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
32717         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
32718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
32719         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
32720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
32721         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
32722         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
32723         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
32724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
32725         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
32726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
32727         Moved ...
32728         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
32729         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
32730         Moved ...
32731         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
32732         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
32733         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
32734         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
32735         Moved ...
32736         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
32737         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
32738         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
32739
32740         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
32741         folded into ...
32742         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
32743         * sysdeps/unix/sysv/linux/s390/Versions
32744         (libpthread: GLIBC_2.19): New version set.
32745         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
32746         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
32747         (librt: GLIBC_2.3.3): New version set.
32748         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
32749         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
32750         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
32751         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
32752         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
32753         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
32754         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
32755         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
32756         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
32757         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
32758         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
32759         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
32760         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
32761         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
32762         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
32763         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
32764         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
32765         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
32766         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
32767         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
32768         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
32769         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
32770         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
32771         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
32772         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
32773         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
32774         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
32775         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
32776         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
32777         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
32778         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
32779         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
32780         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
32781         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
32782         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
32783         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
32784         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
32785         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
32786         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
32787         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
32788         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
32789         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
32790         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
32791         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
32792         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
32793
32794         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
32795         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
32796         (__libc_vfork): Define the function under this name.
32797         [!NOT_IN_libc] (__vfork): Make this an alias.
32798         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
32799         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
32800         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
32801         (__libc_vfork): Define the function under this name.
32802         [!NOT_IN_libc] (__vfork): Make this an alias.
32803         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
32804         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
32805         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
32806         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
32807         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
32808         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
32809
32810         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
32811         code that was previously under [RESET_PID].
32812         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
32813         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
32814         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
32815
32816         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
32817         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
32818         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
32819         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
32820         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
32821         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
32822         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
32823         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
32824         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
32825         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
32826         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
32827         Moved ...
32828         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
32829         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
32830         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
32831         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
32832         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
32833         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
32834         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
32835         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
32836         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
32837         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
32838         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
32839         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
32840         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
32841         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
32842         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
32843         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
32844         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
32845         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
32846         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
32847         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
32848         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
32849         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
32850         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
32851         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
32852         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
32853         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
32854         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
32855         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
32856         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
32857
32858 2014-06-25  Roland McGrath  <roland@hack.frob.com>
32859
32860         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
32861         that was previously under [RESET_PID].
32862         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
32863
32864 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
32865
32866         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
32867         not undefine and redefine.
32868         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
32869         [O_CLOEXEC]: Make code unconditional.
32870         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
32871         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
32872         <kernel-features.h>.
32873         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
32874         conditional variable definition.
32875         (shm_open) [O_CLOEXEC]: Make code unconditional.
32876         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
32877         code.
32878
32879         * configure.ac (USE_REGPARMS): Don't define here.
32880         * configure: Regenerated.
32881         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
32882         * sysdeps/i386/configure: Regenerated.
32883
32884         * nptl/createthread.c: Don't include kernel-features.h.
32885         * nptl/pthread_cancel.c: Likewise.
32886         * nptl/pthread_condattr_setclock.c: Likewise.
32887         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
32888         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
32889         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
32890         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
32891         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
32892         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
32893         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
32894         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
32895         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
32896         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
32897         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
32898         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
32899         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
32900         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
32901         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
32902         * nscd/gai.c: Likewise.
32903         * nss/nss_db/db-open.c: Likewise.
32904         * sysdeps/generic/ldsodefs.h: Likewise.
32905         * sysdeps/sh/nptl/tls.h: Likewise.
32906         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
32907         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
32908         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
32909         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
32910         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
32911         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
32912         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
32913         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
32914         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
32915         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
32916         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
32917         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
32918         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
32919         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
32920         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
32921         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
32922         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
32923         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
32924         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
32925         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
32926         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
32927         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
32928         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
32929         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
32930         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
32931         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
32932         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
32933         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
32934         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
32935         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
32936         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
32937         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
32938         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
32939         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
32940         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
32941         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
32942         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
32943         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
32944         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
32945         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
32946         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
32947         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
32948         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
32949         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
32950         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
32951         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
32952         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
32953         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
32954         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
32955         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
32956         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
32957         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
32958         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
32959         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
32960         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
32961         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
32962         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
32963         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
32964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
32965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
32966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
32967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
32968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
32969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
32970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
32971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
32972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
32973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
32974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
32975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
32976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
32977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
32978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
32979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
32984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
32985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
32986         * sysdeps/unix/sysv/linux/pread.c: Likewise.
32987         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
32988         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
32989         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
32990         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
32991         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
32992         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
32993         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
32994         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
32995         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
32996         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
32997         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
32998         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
32999         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
33000         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
33001         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
33002         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
33003         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
33004         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
33005         * sysdeps/unix/sysv/linux/system.c: Likewise.
33006         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
33007         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
33008         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
33009         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
33010         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
33011         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
33012         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
33013
33014         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
33015         * configure: Regenerated.
33016         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
33017
33018         * configure.ac (base_machine): Do not set specially for particular
33019         machines here.
33020         * configure: Regenerated.
33021         * sysdeps/powerpc/preconfigure: Move machine and base_machine
33022         settings from configure.ac.
33023         * sysdeps/i386/preconfigure: New file.
33024         * sysdeps/s390/preconfigure: Likewise.
33025         * sysdeps/sh/preconfigure: Likewise.
33026         * sysdeps/sparc/preconfigure: Likewise.
33027
33028 2014-06-25  Roland McGrath  <roland@hack.frob.com>
33029
33030         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
33031         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
33032         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
33033         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
33034         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
33035         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
33036         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
33037         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
33038         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
33039         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
33040         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
33041         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
33042         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
33043         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
33044         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
33045         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
33046         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
33047         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
33048         * sysdeps/sparc/sparc64/Makefile: ... appended here.
33049
33050         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
33051         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
33052         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
33053         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
33054         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
33055         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
33056         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
33057         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
33058         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
33059         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
33060         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
33061         * sysdeps/sparc/sparc32/sem_post.c: ... here.
33062         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
33063         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
33064         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
33065         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
33066         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
33067         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
33068         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
33069         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
33070         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
33071         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
33072         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
33073         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
33074         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
33075         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
33076         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
33077         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
33078         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
33079         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
33080         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
33081         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
33082         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
33083         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
33084         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
33085         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
33086         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
33087         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
33088
33089         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
33090         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
33091         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
33092         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
33093         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
33094         Moved ...
33095         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
33096         ... here.
33097         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
33098         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
33099         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
33100         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
33101         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
33102         Moved ...
33103         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
33104         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
33105         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
33106         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
33107         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
33108         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
33109         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
33110         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
33111         Moved ...
33112         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
33113         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
33114         Moved ...
33115         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
33116         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
33117         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
33118         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
33119         Moved ...
33120         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
33121         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
33122         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
33123         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
33124         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
33125         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
33126         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
33127         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
33128         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
33129         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
33130         Moved ...
33131         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
33132         ... here.
33133         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
33134         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
33135         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
33136         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
33137         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
33138         Moved ...
33139         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
33140         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
33141         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
33142         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
33143         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
33144         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
33145         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
33146         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
33147         Moved ...
33148         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
33149         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
33150         Moved ...
33151         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
33152         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
33153         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
33154         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
33155         Moved ...
33156         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
33157         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
33158         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
33159         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
33160         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
33161
33162 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
33163
33164         * timezone/checktab.awk: Update from tzcode 2014e.
33165         * timezone/private.h: Likewise.
33166         * timezone/tzfile.h: Likewise.
33167         * timezone/zdump.c: Likewise.
33168         * timezone/zic.c: Likewise.
33169
33170         * sysdeps/unix/sysv/linux/kernel-features.h
33171         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
33172         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
33173         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
33174         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
33175         Remove conditional code.
33176
33177 2014-06-25  Will Newton  <will.newton@linaro.org>
33178
33179         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
33180         (_dl_arm_cap_flags): Add HWCAP2 values.
33181         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
33182         (_DL_HWCAP_COUNT): Increase to 37.
33183         (_DL_HWCAP_LAST): New define.
33184         (_DL_HWCAP2_LAST): New define.
33185         (_dl_procinfo): Add support for printing
33186         AT_HWCAP2 entries.
33187         (_dl_string_hwcap): Use _dl_hwcap_string.
33188
33189 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33190
33191         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33192
33193 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
33194
33195         * README: Do not mention ports directory.
33196
33197         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
33198         Remove macro.
33199         * sysdeps/unix/sysv/linux/futimes.c: Do not include
33200         <kernel-features.h>.
33201         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
33202         conditional variable definition.
33203         (__futimes): Update comment.
33204         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
33205         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
33206
33207         [BZ #16560]
33208         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
33209         arguments close to 0.
33210         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
33211         Likewise.
33212         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
33213         Likewise.
33214         * math/auto-libm-test-in: Add more tests of exp10.
33215         * math/auto-libm-test-out: Regenerated.
33216         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33217
33218         * sysdeps/unix/sysv/linux/kernel-features.h
33219         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
33220         * sysdeps/unix/sysv/linux/readv.c: Do not include
33221         <kernel-features.h>.
33222         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
33223         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
33224         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
33225         unconditional.
33226         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
33227         conditional code.
33228         * sysdeps/unix/sysv/linux/writev.c: Do not include
33229         <kernel-features.h>.
33230         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
33231         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
33232         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
33233         unconditional.
33234         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
33235         conditional code.
33236
33237 2014-06-25  Will Newton  <will.newton@linaro.org>
33238
33239         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
33240         comment changes throughout the file.  Remove checks
33241         for HAVE_*_H definitions that are not required.
33242         (__gen_tempname): Call abort if an unknown kind value is
33243         passed.
33244
33245 2014-06-25  Andreas Schwab  <schwab@suse.de>
33246
33247         [BZ #17086]
33248         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
33249         scalbln, scalblnf, scalblnl in libc.
33250
33251 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
33252
33253         [BZ #17086]
33254         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
33255         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
33256         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
33257
33258 2014-06-24  Roland McGrath  <roland@hack.frob.com>
33259
33260         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
33261         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
33262         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
33263         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
33264         Update #include.
33265         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
33266         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
33267         Update #include.
33268         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
33269         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
33270         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
33271         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
33272         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
33273         * sysdeps/x86/bits/pthreadtypes.h: ... here.
33274         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
33275         * sysdeps/x86/bits/semaphore.h: ... here.
33276         * sysdeps/x86/nptl/elide.h: Moved ...
33277         * sysdeps/x86/elide.h: ... here.
33278         * sysdeps/x86_64/nptl/Implies: File removed.
33279         * sysdeps/i386/nptl/Implies: File removed.
33280
33281 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
33282
33283         [BZ #16539]
33284         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
33285         return the argument for normal arguments with exponent below -64.
33286         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
33287         Likewise.
33288         * math/auto-libm-test-in: Add another test of expm1.
33289         * math/auto-libm-test-out: Regenerated.
33290
33291         [BZ #16287]
33292         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
33293         calling __erfcl for arguments at least 16.
33294         * math/auto-libm-test-in: Add more tests of erf.
33295         * math/auto-libm-test-out: Regenerated.
33296
33297         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
33298         individual architectures.
33299         * sysdeps/unix/sysv/linux/configure: Regenerated.
33300         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
33301         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
33302         * sysdeps/unix/sysv/linux/powerpc/configure.ac
33303         (ldd_rewrite_script): Define variable.
33304         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
33305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
33306         file.
33307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
33308         generated file.
33309         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
33310         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
33311         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
33312         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
33313         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
33314         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
33315         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
33316         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
33317
33318 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
33319
33320         [BZ #17084]
33321         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
33322         Rename member __data.d to __data.__elision_data.
33323
33324 2014-06-24  Wilco  <wdijkstr@arm.com>
33325
33326         * NEWS: Add 16918 to fixed bug list.
33327
33328 2014-06-24  Wilco  <wdijkstr@arm.com>
33329
33330         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
33331
33332 2014-06-24  Wilco  <wdijkstr@arm.com>
33333
33334         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
33335         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
33336         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
33337         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
33338         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
33339         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
33340         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
33341         Use _FPU_MASK_RM.
33342
33343 2014-06-24  Wilco  <wdijkstr@arm.com>
33344
33345         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
33346
33347 2014-06-24  Wilco  <wdijkstr@arm.com>
33348
33349         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
33350         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
33351         * sysdeps/arm/fesetround.c (fesetround): Remove space.
33352         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
33353
33354 2014-06-24  Wilco  <wdijkstr@arm.com>
33355
33356         [BZ #16918]
33357         * sysdeps/arm/feupdateenv.c (feupdateenv):
33358         Rewrite to reduce FPSCR accesses and fix return value.
33359
33360 2014-06-24  Wilco  <wdijkstr@arm.com>
33361
33362         * sysdeps/arm/fclrexcpt.c (feclearexcept):
33363         Optimize to avoid unnecessary FPSCR writes.
33364         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
33365         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
33366         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
33367         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
33368
33369 2014-06-24  Wilco  <wdijkstr@arm.com>
33370
33371         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
33372         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
33373         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
33374         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
33375         Call libc_fetestexcept_vfp.
33376         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
33377         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
33378         __SOFTFP__ ifdef so that they can be built for softfp.
33379
33380 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
33381
33382         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
33383         argument type signed char.
33384
33385         * Makerules (check-abi): Dump diff of symlist if the test
33386         fails.
33387
33388 2014-06-23  Roland McGrath  <roland@hack.frob.com>
33389
33390         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
33391         using abort.
33392
33393         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
33394         Remove unused variable ST.
33395
33396 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
33397
33398         [BZ #16354]
33399         [BZ #17061]
33400         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
33401         small arguments before calling __expm1.
33402         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
33403         small arguments before calling __expm1f.
33404         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
33405         small arguments before calling __expm1l.
33406         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
33407         Likewise.
33408         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33409         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
33410         spurious underflow for some cosh tests.
33411         * math/auto-libm-test-out: Regenerated.
33412         * sysdeps/i386/fpu/libm-test-ulps: Update.
33413
33414         [BZ #17050]
33415         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
33416         (__ieee754_y1): Set errno if return value overflows.
33417         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
33418         (__ieee754_y1f): Set errno if return value overflows.
33419         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
33420         (__ieee754_y1l): Set errno if return value overflows.
33421         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
33422         (__ieee754_y1l): Set errno if return value overflows.
33423         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
33424         * math/auto-libm-test-out: Regenerated.
33425
33426         * math/gen-auto-libm-tests.c: Document use of
33427         ignore-zero-inf-sign.
33428         (input_flag_type): Add value flag_ignore_zero_inf_sign.
33429         (input_flags): Add ignore-zero-inf-sign.
33430         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
33431         * math/gen-libm-test.pl (generate_testfile): Handle
33432         ignore-zero-inf-sign.
33433         * math/auto-libm-test-in: Mark some cpow tests with
33434         ignore-zero-inf-sign and some with xfail-rounding.
33435         * math/auto-libm-test-out: Regenerated.
33436         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
33437         * sysdeps/i386/fpu/libm-test-ulps: Update.
33438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33439
33440         [BZ #16315]
33441         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
33442         overflowing or underflowing operations take place with sign of
33443         result.
33444         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
33445         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
33446         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
33447         (__ieee754_pow): Recompute overflowing and underflowing results in
33448         original rounding mode.
33449         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
33450         (__powl_helper): Allow negative argument X and scale negated value
33451         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
33452         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
33453         overflowing or underflowing operations take place with sign of
33454         result.
33455         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
33456         Include <math.h>.
33457         * math/auto-libm-test-in: Add more tests of pow.
33458         * math/auto-libm-test-out: Regenerated.
33459         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
33460         (pow_tonearest_test_data): Remove.
33461         (pow_test_tonearest): Likewise.
33462         (pow_towardzero_test_data): Likewise.
33463         (pow_test_towardzero): Likewise.
33464         (pow_downward_test_data): Likewise.
33465         (pow_test_downward): Likewise.
33466         (pow_upward_test_data): Likewise.
33467         (pow_test_upward): Likewise.
33468         (main): Don't call removed functions.
33469         * sysdeps/i386/fpu/libm-test-ulps: Update.
33470         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33471
33472 2014-06-23  Roland McGrath  <roland@hack.frob.com>
33473
33474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
33475         Moved ...
33476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
33477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
33478         Moved ...
33479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
33480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
33481         Moved ...
33482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
33483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
33484         Moved ...
33485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
33486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
33487         File removed.
33488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
33489         File removed.
33490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
33491         File removed.
33492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
33493         File removed.
33494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
33495         File removed.
33496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
33497         File removed.
33498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
33499         File removed.
33500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
33501         File removed.
33502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
33503         File removed.
33504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
33505         File removed.
33506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
33507         File removed.
33508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
33509         File removed.
33510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
33511         Moved ...
33512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
33513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
33514         Moved ...
33515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
33516         ... here.
33517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
33518         Moved ...
33519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
33520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
33521         Moved ...
33522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
33523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
33524         Moved ...
33525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
33526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
33527         Moved ...
33528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
33529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
33530         Moved ...
33531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
33532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
33533         Moved ...
33534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
33535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
33536         Moved ...
33537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
33538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
33539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
33540         ... here.
33541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
33542         Moved ...
33543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
33544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
33545         Moved ...
33546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
33547         ... here.
33548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
33549         Moved ...
33550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
33551         ... here.
33552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
33553         Moved ...
33554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
33555         ... here.
33556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
33557         Moved ...
33558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
33559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
33560         Moved ...
33561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
33562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
33563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
33564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
33565         Moved ...
33566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
33567         ... here.
33568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
33569         Moved ...
33570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
33571         ... here.
33572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
33573         Moved ...
33574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
33575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
33576         Moved ...
33577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
33578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
33579         Moved ...
33580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
33581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
33582         Moved ...
33583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
33584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
33585         Moved ...
33586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
33587         ... here.
33588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
33589         Moved ...
33590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
33591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
33592         Moved ...
33593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
33594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
33595         Moved ...
33596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
33597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
33598         Moved ...
33599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
33600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
33601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
33602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
33603         Moved ...
33604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
33605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
33606         Moved ...
33607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
33608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
33609         Moved ...
33610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
33611         ... here.
33612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
33613         Moved ...
33614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
33615         ... here.
33616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
33617         Moved ...
33618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
33619         ... here.
33620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
33621         Moved ...
33622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
33623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
33624         Moved ...
33625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
33626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
33627         Moved ...
33628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
33629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
33630         Moved ...
33631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
33632         ... here.
33633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
33634         Moved ...
33635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
33636         ... here.
33637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
33638         Moved ...
33639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
33640         ... here.
33641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
33642         Moved ...
33643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
33644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
33645         Moved ...
33646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
33647
33648 2014-06-23  Will Newton  <will.newton@linaro.org>
33649             Wilco  <wdijkstr@arm.com>
33650
33651         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
33652         implementation.  Include get-rounding-mode.h.
33653         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
33654         [!libc_feholdsetround_noex_ctx]: Define
33655         libc_feholdsetround_noex_ctx.
33656         [!libc_feholdsetround_noexf_ctx]: Define
33657         libc_feholdsetround_noexf_ctx.
33658         [!libc_feholdsetround_noexl_ctx]: Define
33659         libc_feholdsetround_noexl_ctx.
33660         (libc_feholdsetround_ctx): New function.
33661         (libc_feresetround_ctx): New function.
33662         (libc_feholdsetround_noex_ctx): New function.
33663         (libc_feresetround_noex_ctx): New function.
33664
33665 2014-06-23  Roland McGrath  <roland@hack.frob.com>
33666
33667         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
33668         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
33669         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
33670         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
33671         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
33672         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
33673
33674         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
33675         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
33676         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
33677         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
33678         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
33679         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
33680         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
33681         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
33682         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
33683         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
33684         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
33685         Moved ...
33686         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
33687         ... here.
33688         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
33689         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
33690         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
33691         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
33692         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
33693         Moved ...
33694         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
33695         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
33696         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
33697         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
33698         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
33699         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
33700         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
33701         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
33702         Moved ...
33703         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
33704         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
33705         Moved ...
33706         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
33707         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
33708         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
33709         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
33710         Moved ...
33711         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
33712         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
33713         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
33714         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
33715         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
33716         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
33717         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
33718         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
33719         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
33720         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
33721         Moved ...
33722         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
33723         ... here.
33724         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
33725         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
33726         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
33727         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
33728         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
33729         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
33730         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
33731         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
33732         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
33733         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
33734         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
33735         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
33736         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
33737         Moved ...
33738         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
33739         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
33740         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
33741         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
33742         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
33743         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
33744         Moved ...
33745         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
33746         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
33747         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
33748         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
33749         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
33750
33751         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
33752         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
33753         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
33754         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
33755         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
33756         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
33757         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
33758         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
33759         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
33760         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
33761         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
33762         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
33763         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
33764         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
33765         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
33766         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
33767         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
33768         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
33769         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
33770         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
33771         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
33772         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
33773         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
33774         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
33775         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
33776         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
33777         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
33778         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
33779
33780 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
33781
33782         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33783         (FALLOC_FL_COLLAPSE_RANGE): New macro.
33784         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
33785         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
33786         (IPV6_PMTUDISC_INTERFACE): Likewise.
33787         (IPV6_PMTUDISC_OMIT): Likewise.
33788
33789 2014-06-23  Andreas Schwab  <schwab@suse.de>
33790
33791         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
33792         Remove unused errout label.
33793
33794 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33795
33796         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
33797         macro: hardware supports Vector Crypto instructions.
33798
33799 2014-06-23  Will Newton  <will.newton@linaro.org>
33800
33801         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
33802         rather than __builtin_expect.
33803
33804         * elf/dl-lookup.c (undefined_msg): Remove variable.
33805         (_dl_lookup_symbol_x): Replace undefined_msg with string
33806         literal.
33807
33808         * elf/dl-lookup.c (do_lookup_unique): New function.
33809         (do_lookup_x): Move STB_GNU_UNIQUE handling code
33810         to a separate function.
33811
33812 2014-06-23  Andreas Schwab  <schwab@suse.de>
33813
33814         [BZ #17079]
33815         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
33816         before reading the next line.
33817
33818 2014-06-23  Will Newton  <will.newton@linaro.org>
33819
33820         * test-skeleton.c (signal_handler): Use printf and %m
33821         rather than perror.  Use printf rather than fprintf to
33822         stderr.  Use puts rather than fputs to stderr.
33823         (main): Likewise.
33824
33825 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
33826
33827         * nscd/nscd.c (thread_info_t): Remove typedef.
33828         (thread_info): Remove variable.
33829
33830 2014-06-21  Allan McRae  <allan@archlinux.org>
33831
33832         * NEWS: Mention CVE-2014-4043.
33833
33834 2014-06-20  Roland McGrath  <roland@hack.frob.com>
33835
33836         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
33837         * nptl/smp.h: ... here.
33838
33839         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
33840
33841         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
33842         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
33843         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
33844         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
33845
33846         * nptl/allocatestack.c: Include <stack-aliasing.h>.
33847         * nptl/stack-aliasing.h: New file.
33848         * sysdeps/i386/i686/stack-aliasing.h: New file.
33849         * sysdeps/i386/i686/nptl/Makefile: File removed.
33850         * sysdeps/x86_64/stack-aliasing.h: New file.
33851         * sysdeps/x86_64/nptl/Makefile
33852         (CFLAGS-pthread_create.c): Variable removed.
33853
33854         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
33855         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
33856         old file.
33857         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
33858         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
33859         old file.
33860
33861 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
33862
33863         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33864         (__ASSUME_SIGFRAME_V2): Remove macro.
33865         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
33866         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
33867         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
33868         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
33869         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
33870         Declare as function.  Remove conditional macro definitions.
33871         (__default_rt_sa_restorer): Likewise.
33872         (__default_sa_restorer_v1): Remove declaration.
33873         (__default_sa_restorer_v2): Likewise.
33874         (__default_rt_sa_restorer_v1): Likewise.
33875         (__default_rt_sa_restorer_v2): Likewise.
33876         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
33877         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
33878         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
33879
33880 2014-06-20  Roland McGrath  <roland@hack.frob.com>
33881
33882         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
33883         (libpthread-routines): Add sysdep.
33884         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
33885         * sysdeps/unix/sysv/linux/sparc/Versions
33886         (libpthread: GLIBC_2.3.3): New version set.
33887         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
33888         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
33889         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
33890         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
33891         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
33892         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
33893         Moved ...
33894         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
33895         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
33896         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
33897         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
33898         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
33899         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
33900         * sysdeps/sparc/nptl/sem_init.c: ... here.
33901         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
33902         * sysdeps/sparc/nptl/sem_post.c: ... here.
33903         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
33904         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
33905         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
33906         * sysdeps/sparc/nptl/sem_wait.c: ... here.
33907         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
33908         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
33909         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
33910         (libpthread-routines): Add cpu_relax.
33911         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
33912         File removed.
33913         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
33914         (librt: GLIBC_2.3.3): New version set.
33915         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
33916         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
33917         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
33918         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
33919         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
33920         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
33921         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
33922         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
33923         Moved ...
33924         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
33925         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
33926         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
33927         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
33928         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
33929         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
33930         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
33931         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
33932         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
33933         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
33934         Moved ...
33935         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
33936         Update #include.
33937         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
33938         Moved ...
33939         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
33940         Update #include.
33941         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
33942         Moved ...
33943         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
33944         Update #include.
33945         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
33946         Moved ...
33947         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
33948         Update #include.
33949         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
33950         Moved ...
33951         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
33952         Update #include.
33953         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
33954         Moved ...
33955         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
33956         Update #include.
33957         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
33958         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
33959         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
33960         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
33961         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
33962         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
33963         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
33964         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
33965         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
33966         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
33967         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33968         Moved ...
33969         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
33970         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
33971         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
33972         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
33973         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
33974
33975 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
33976
33977         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
33978         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
33979         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
33980         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
33981         * nscd/nscd.c: Likewise.
33982         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
33983         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
33984         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
33985         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
33986
33987         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
33988         <kernel-features.h>.
33989         (init_mq_netlink): Remove conditional have_sock_cloexec
33990         definitions.  Remove code conditional on have_sock_cloexec < 0.
33991         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
33992         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
33993         * sysdeps/unix/sysv/linux/opensock.c: Do not include
33994         <kernel-features.h>.
33995         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
33996         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
33997
33998 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
33999
34000         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
34001         Add tests for memset_chk and memset.
34002
34003         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
34004         with AVX2_Usable.
34005
34006 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
34007
34008         [BZ #16046]
34009         * elf/tst-dl-iter-static.c: New file.
34010         * elf/Makefile (tests-static): Add tst-dl-iter-static.
34011
34012         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
34013         error.
34014
34015 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
34016
34017         * sysdeps/unix/sysv/linux/kernel-features.h
34018         (__ASSUME_F_GETOWN_EX): Remove macro.
34019         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
34020         <kernel-features.h>.
34021         (miss_F_GETOWN_EX): Remove variable or macro.
34022         (do_fcntl): Do not check miss_F_GETOWN_EX.
34023         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
34024
34025         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
34026         Remove macro.
34027         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
34028         [!__ASSUME_AT_RANDOM]: Remove conditional code.
34029         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
34030
34031         * sysdeps/unix/sysv/linux/kernel-features.h
34032         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
34033         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
34034         [ADJ_OFFSET_SS_READ]: Make code unconditional.
34035         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
34036
34037 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
34038
34039         [BZ #17075]
34040         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
34041         Fix calculation of the symbol's value.
34042         * sysdeps/arm/tst-armtlsdescloc.c: New file.
34043         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
34044         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
34045         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
34046         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
34047         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
34048         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
34049         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
34050         (modules-names): Add `tst-armtlsdescmod',
34051         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
34052         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
34053         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
34054         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
34055         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
34056         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
34057         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
34058         ($(objpfx)tst-armtlsdescloc): New dependency.
34059         ($(objpfx)tst-armtlsdescextnow): Likewise.
34060         ($(objpfx)tst-armtlsdescextlazy): Likewise.
34061         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
34062         TLS scheme support.
34063         * sysdeps/arm/configure: Regenerate.
34064
34065 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
34066
34067         * include/fcntl.h (__atfct_seterrno): Remove prototype.
34068         (__atfct_seterrno_2): Likewise.
34069         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
34070         <kernel-features.h>.
34071         (__ASSUME_ATFCTS): Do not undefine and redefine.
34072         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
34073         (__have_atfcts): Remove conditional definition.
34074         (__fxstatat([__NR_fstatat64]: Make code unconditional.
34075         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
34076         unreachable if [__ASSUME_ATFCTS].
34077         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
34078         not undefine and redefine.
34079         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
34080         <kernel-features.h>.
34081         (faccessat) [__NR_faccessat]: Make code unconditional.
34082         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
34083         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
34084         <kernel-features.h>.
34085         (fchmodat) [__NR_fchmodat]: Make code unconditional.
34086         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
34087         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
34088         <kernel-features.h>.
34089         (fchownat) [__NR_fchownat]: Make code unconditional.
34090         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
34091         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
34092         <kernel-features.h>.
34093         (futimesat) [__NR_futimesat]: Make code unconditional.
34094         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
34095         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
34096         <kernel-features.h>.
34097         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
34098         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
34099         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
34100         <kernel-features.h>.
34101         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
34102         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
34103         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
34104         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
34105         <kernel-features.h>.
34106         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
34107         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
34108         * sysdeps/unix/sysv/linux/linkat.c: Do not include
34109         <kernel-features.h>.
34110         (linkat) [__NR_linkat]: Make code unconditional.
34111         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
34112         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
34113         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
34114         <kernel-features.h>.
34115         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
34116         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
34117         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
34118         <kernel-features.h>.
34119         (mkdirat) [__NR_mkdirat]: Make code unconditional.
34120         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
34121         * sysdeps/unix/sysv/linux/openat.c: Do not include
34122         <kernel-features.h>.
34123         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
34124         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
34125         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
34126         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
34127         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
34128         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
34129         <kernel-features.h>.
34130         (readlinkat) [__NR_readlinkat]: Make code unconditional.
34131         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
34132         result of INLINE_SYSCALL directly, not via int variable.
34133         * sysdeps/unix/sysv/linux/renameat.c: Do not include
34134         <kernel-features.h>.
34135         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
34136         (renameat) [__NR_renameat]: Make code unconditional.
34137         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
34138         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
34139         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
34140         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
34141         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
34142         (__ASSUME_ATFCTS): Do not undefine and redefine.
34143         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
34144         <kernel-features.h>.
34145         (symlinkat) [__NR_symlinkat]: Make code unconditional.
34146         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
34147         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
34148         <kernel-features.h>.
34149         (unlinkat) [__NR_unlinkat]: Make code unconditional.
34150         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
34151         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
34152         (__ASSUME_ATFCTS): Do not undefine and redefine.
34153         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
34154         <kernel-features.h>.
34155         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
34156         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
34157         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
34158         <kernel-features.h>.
34159         (__xmknodat) [__NR_mknodat]: Make code unconditional.
34160         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
34161
34162 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
34163
34164         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
34165
34166 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
34167
34168         [BZ #17069]
34169         * posix/regcomp.c (parse_reg_exp): Deallocate partially
34170         constructed tree before returning error.
34171         * posix/bug-regexp36.c: Expand test case.
34172
34173 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
34174
34175         [BZ #6803]
34176         * math/libm-test.inc (scalbln_test_date):
34177         Add errno expectations.
34178         * math/w_scalblnf.c: New File.
34179         Add wrapper which checks for setting errno to ERANGE.
34180         Add weak_alias for corresponding scalbln function.
34181         * math/w_scalbln.c: Likewise.
34182         * math/w_scalblnl.c: Likewise.
34183         * math/Makefile (libm-calls): Add w_scalbln.
34184         * sysdeps/ieee754/flt-32/s_scalblnf.c:
34185         Remove weak_alias for corresponding scalbln function.
34186         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
34187         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
34188         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
34189         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
34190         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
34191         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
34192         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
34193         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
34194         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
34195         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
34196         Remove long_double_symbol for scalblnl function in libm, libc.
34197         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
34198         Add wrapper which checks for setting errno to ERANGE.
34199         Add long_double_symbol for scalblnl function in libm, libc.
34200         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
34201         Remove long_double_symbol for scalblnl in libm.
34202         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
34203         Add wrapper which checks for setting errno to ERANGE.
34204         Add long_double_symbol for scalblnl function in libm.
34205         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
34206         Do not use wrapper because of own implementation.
34207
34208 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
34209
34210         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
34211         3 bytes for __pad1 for x32.
34212         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
34213
34214 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
34215             H.J. Lu  <hongjiu.lu@intel.com>
34216
34217         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
34218         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
34219         * sysdeps/x86_64/multiarch/memset.S: Likewise.
34220         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
34221         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
34222
34223 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
34224
34225         [BZ #17069]
34226         * posix/regcomp.c (parse_expression): Deallocate partially
34227         constructed tree before returning error.
34228         * posix/Makefile.c (tests): Add bug-regex36.
34229         (generated): Add bug-regex36.mtrace.
34230         (tests-special): Add $(objpfx)bug-regex36-mem.out
34231         (bug-regex36-ENV): New variable.
34232         ($(objpfx)bug-regex36-mem.out): New rule.
34233         * posix/bug-regex36.c: New file.
34234
34235 2014-06-19  Will Newton  <will.newton@linaro.org>
34236
34237         * malloc/malloc.c (systrim): If extra is zero then return
34238         early.
34239
34240 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
34241
34242         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
34243
34244 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
34245
34246         * sysdeps/aarch64/strchr.S: New file.
34247
34248 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
34249
34250         [BZ #17022]
34251         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
34252         from arguments -2 or below.
34253         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34254         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
34255
34256 2014-06-18  Andreas Schwab  <schwab@suse.de>
34257
34258         [BZ #17062]
34259         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
34260         of a bracket expr not to run off the end of the string.
34261         * posix/Makefile (tests): Add tst-fnmatch3.
34262         * posix/tst-fnmatch3.c: New file.
34263
34264 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
34265
34266         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
34267         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
34268         [$(cross-compiling) = no]: Likewise.
34269         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
34270         [$(cross-compiling) = no]: Likewise.
34271
34272 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
34273
34274         [BZ #17031]
34275         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
34276         double, adjusted for any remainder from the high double.
34277         * math/libm-test.inc (nearbyint): Add tests.
34278         (rint): Likewise.
34279
34280 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34281
34282         * nptl/sysdeps/powerpc/Makefile: Moved ...
34283         * sysdeps/powerpc/nptl/Makefile: ... here.
34284         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
34285         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
34286         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
34287         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
34288         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
34289         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
34290         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
34291         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
34292         * nptl/sysdeps/powerpc/tls.h: Moved ...
34293         * sysdeps/powerpc/nptl/tls.h: ... here.
34294
34295 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
34296
34297         [BZ #16681]
34298         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
34299         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
34300         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
34301         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
34302         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
34303         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
34304         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
34305         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
34306         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
34307
34308 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
34309
34310         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
34311
34312 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
34313
34314         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
34315         defined operator.
34316
34317         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
34318         $TIMEOUTFACTOR.
34319
34320 2014-06-16  Florian Weimer  <fweimer@redhat.com>
34321
34322         [BZ #17058]
34323         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
34324         non-executed part of the test.
34325
34326 2014-06-16  Andreas Schwab  <schwab@suse.de>
34327
34328         * string/bits/string2.h (strdup, strndup): Update feature guard.
34329
34330 2014-06-14  David S. Miller  <davem@davemloft.net>
34331
34332         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34333
34334 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
34335
34336         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
34337         that was previously under [RESET_PID].
34338         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
34339
34340         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
34341         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
34342         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
34343         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
34344         (__libc_vfork): New strong alias.
34345         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
34346
34347 2014-06-14 Andi Kleen  <ak@linux.intel.com>
34348
34349         * sysdeps/generic/elide.h: New file.
34350
34351 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
34352
34353         * Makefile (installed-headers): Adjust path of pthread.h header.
34354
34355 2014-06-13  Roland McGrath  <roland@hack.frob.com>
34356
34357         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
34358         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
34359         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
34360         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
34361
34362         * nptl/sysdeps/s390/Makefile: Moved ...
34363         * sysdeps/s390/nptl/Makefile: ... here.
34364         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
34365         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
34366         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
34367         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
34368         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
34369         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
34370         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
34371         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
34372         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
34373         * sysdeps/s390/nptl/pthreaddef.h: ... here.
34374         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
34375         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
34376         * nptl/sysdeps/s390/tls.h: Moved ...
34377         * sysdeps/s390/nptl/tls.h: ... here.
34378
34379         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
34380         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
34381
34382 2014-06-13  David S. Miller  <davem@davemloft.net>
34383
34384         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
34385         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
34386         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
34387         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
34388         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
34389         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
34390         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
34391         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
34392         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
34393         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
34394         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
34395         Remove RESET_PID cpp guards.
34396         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
34397         Remove RESET_PID cpp guards.
34398         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
34399
34400 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
34401
34402         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
34403         __sp to uintptr_t.
34404
34405 2014-06-13  Andi Kleen  <ak@linux.intel.com>
34406
34407         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
34408         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
34409         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
34410         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
34411         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
34412         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
34413         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
34414         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
34415         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
34416         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
34417         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
34418         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
34419         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
34420         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
34421         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
34422         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
34423         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
34424         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
34425         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
34426         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
34427
34428         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
34429         (pthread_rwlock_rdlock): Add elision.
34430         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
34431         (pthread_rwlock_wrlock): Add elision.
34432         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
34433         (pthread_rwlock_trywrlock): Add elision.
34434         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
34435         (pthread_rwlock_tryrdlock): Add elision.
34436         * nptl/pthread_rwlock_unlock.c: Include elide.h.
34437         (pthread_rwlock_tryrdlock): Add elision unlock.
34438         * nptl/sysdeps/pthread/pthread.h:
34439         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
34440         (PTHREAD_RWLOCK_INITIALIZER,
34441         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
34442         Handle new elision field.
34443         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
34444         * sysdeps/arm/nptl/bits/pthreadtypes.h
34445         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34446         * sysdeps/sh/nptl/bits/pthreadtypes.h
34447         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34448         * sysdeps/tile/nptl/bits/pthreadtypes.h
34449         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34450         * sysdeps/a/nptl/bits/pthreadtypes.h
34451         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34452         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34453         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34454         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34455         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34456         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
34457         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34458         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34459         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34460         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34461         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34462         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34463         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34464         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34465         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34466         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
34467         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34468         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
34469         (elision_init): Set try_xbegin to zero when no RTM.
34470         * sysdeps/x86/nptl/bits/pthreadtypes.h
34471         (pthread_rwlock_t): Change __pad1 to __rwelision.
34472         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34473
34474 2014-06-13  Andi Kleen  <ak@linux.intel.com>
34475
34476         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
34477         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
34478         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
34479         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
34480
34481 2014-06-13  Meador Inge  <meadori@codesourcery.com>
34482
34483         [BZ #16996]
34484         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
34485         that the cached result has been set before returning it.
34486
34487 2014-06-12  Roland McGrath  <roland@hack.frob.com>
34488
34489         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
34490         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
34491         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
34492         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
34493         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
34494         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
34495
34496         * nptl/sysdeps/sparc/Makefile: Moved ...
34497         * sysdeps/sparc/nptl/Makefile: ... here.
34498         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
34499         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
34500         * nptl/sysdeps/sparc/tls.h: Moved ...
34501         * sysdeps/sparc/nptl/tls.h: ... here.
34502         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
34503         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
34504         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
34505         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
34506         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
34507         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
34508         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
34509         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
34510         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
34511         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
34512         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
34513         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
34514         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
34515         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
34516         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
34517         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
34518         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
34519         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
34520         Update #include.
34521         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
34522         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
34523         Update #include.
34524         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
34525         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
34526         Update #include.
34527         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
34528         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
34529         Update #include.
34530
34531         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
34532
34533         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
34534         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
34535
34536         * sysdeps/pthread/posix-timer.h: Include <list.h>.
34537         (struct list_links): Type removed.
34538         (struct thread_node, struct timer_node): Replace struct list_links
34539         with struct list_head.
34540         (list_unlink_ip): Likewise.
34541         * sysdeps/pthread/timer_routines.c
34542         (timer_free_list, thread_free_list, thread_active_list): Likewise.
34543         (list_append, list_insbefore): Likewise.
34544         (list_init): Function removed.
34545         (thread_init, init_module): Use INIT_LIST_HEAD instead.
34546         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
34547         * sysdeps/pthread/Makefile: ... here, new file.
34548
34549         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
34550         * sysdeps/nptl/Implies: ... here.
34551         * sysdeps/unix/sysv/linux/Implies: Add nptl.
34552         * nptl/sysdeps/pthread/list.h: Moved ...
34553         * include/list.h: ... here.
34554         * nptl/sysdeps/pthread/createthread.c: Moved ...
34555         * nptl/createthread.c: ... here.
34556         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
34557         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
34558         * nptl/pt-longjmp.c: ... here.
34559         * nptl/sysdeps/pthread/Makefile: Moved ...
34560         * sysdeps/nptl/Makefile: ... here.
34561         * nptl/sysdeps/pthread/Subdirs: Moved ...
34562         * sysdeps/nptl/Subdirs: ... here.
34563         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
34564         * sysdeps/nptl/aio_misc.h: ... here.
34565         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
34566         * sysdeps/nptl/bits/libc-lock.h: ... here.
34567         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
34568         * sysdeps/nptl/bits/libc-lockP.h: ... here.
34569         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
34570         * sysdeps/nptl/bits/stdio-lock.h: ... here.
34571         * nptl/sysdeps/pthread/configure: Moved ...
34572         * sysdeps/nptl/configure: ... here.
34573         * nptl/sysdeps/pthread/configure.ac: Moved ...
34574         * sysdeps/nptl/configure.ac: ... here.
34575         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
34576         * sysdeps/nptl/gai_misc.h: ... here.
34577         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
34578         * sysdeps/nptl/librt-cancellation.c: ... here.
34579         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
34580         * sysdeps/nptl/malloc-machine.h: ... here.
34581         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
34582         * sysdeps/nptl/pthread-functions.h: ... here.
34583         * nptl/sysdeps/pthread/pthread.h: Moved ...
34584         * sysdeps/nptl/pthread.h: ... here.
34585         * nptl/sysdeps/pthread/setxid.h: Moved ...
34586         * sysdeps/nptl/setxid.h: ... here.
34587         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
34588         * sysdeps/nptl/sigfillset.c: ... here.
34589         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
34590         * sysdeps/nptl/tcb-offsets.h: ... here.
34591         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
34592         * sysdeps/nptl/tst-mqueue8x.c: ... here.
34593         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
34594         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
34595         * nptl/sysdeps/pthread/allocalim.h: Moved ...
34596         * sysdeps/pthread/allocalim.h: ... here.
34597         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
34598         * sysdeps/pthread/bits/sigthread.h: ... here.
34599         * nptl/sysdeps/pthread/flockfile.c: Moved ...
34600         * sysdeps/pthread/flockfile.c: ... here.
34601         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
34602         * sysdeps/pthread/ftrylockfile.c: ... here.
34603         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
34604         * sysdeps/pthread/funlockfile.c: ... here.
34605         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
34606         * sysdeps/pthread/posix-timer.h: ... here.
34607         * nptl/sysdeps/pthread/timer_create.c: Moved ...
34608         * sysdeps/pthread/timer_create.c: ... here.
34609         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
34610         * sysdeps/pthread/timer_delete.c: ... here.
34611         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
34612         * sysdeps/pthread/timer_getoverr.c: ... here.
34613         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
34614         * sysdeps/pthread/timer_gettime.c: ... here.
34615         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
34616         * sysdeps/pthread/timer_routines.c: ... here.
34617         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
34618         * sysdeps/pthread/timer_settime.c: ... here.
34619         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
34620         * sysdeps/pthread/tst-timer.c: ... here.
34621         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
34622         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
34623
34624         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
34625         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
34626
34627         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
34628         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
34629         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
34630         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
34631         Update #include target.
34632         * nptl/sysdeps/i386/i686/Makefile: Moved ...
34633         * sysdeps/i386/i686/nptl/Makefile: ... here.
34634         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
34635         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
34636         Update #include target.
34637         * nptl/sysdeps/i386/i686/tls.h: Moved ...
34638         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
34639         * nptl/sysdeps/i386/Makefile: Moved ...
34640         * sysdeps/i386/nptl/Makefile: ... here.
34641         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
34642         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
34643         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
34644         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
34645         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
34646         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
34647         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
34648         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
34649         * sysdeps/i386/nptl/pthreaddef.h: ... here.
34650         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
34651         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
34652         * nptl/sysdeps/i386/tls.h: Moved ...
34653         * sysdeps/i386/nptl/tls.h: ... here.
34654
34655         * sysdeps/sh/Makefile [$(subdir) = csu]
34656         (gen-as-const-headers): Add tcb-offsets.sym.
34657         * nptl/sysdeps/sh/Makefile: File removed.
34658         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
34659         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
34660         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
34661         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
34662         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
34663         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
34664         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
34665         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
34666         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
34667         * sysdeps/sh/nptl/pthreaddef.h: ... here.
34668         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
34669         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
34670         * nptl/sysdeps/sh/tls.h: Moved ...
34671         * sysdeps/sh/nptl/tls.h: ... here.
34672         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
34673         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
34674         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
34675         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
34676         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
34677         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
34678         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
34679         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
34680         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
34681         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
34682         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
34683         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
34684         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
34685         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
34686         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
34687         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
34688         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
34689         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
34690         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
34691         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
34692         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
34693         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
34694         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
34695         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
34696         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
34697         Moved ...
34698         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
34699         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
34700         Moved ...
34701         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
34702         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
34703         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
34704         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
34705         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
34706         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
34707         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
34708         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
34709         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
34710         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
34711         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
34712         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
34713         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
34714         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
34715         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
34716         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
34717         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
34718         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
34719         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
34720
34721 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
34722
34723         * posix/spawn_faction_addopen.c: Include string.h.
34724
34725 2014-06-11  Roland McGrath  <roland@hack.frob.com>
34726
34727         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
34728         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
34729         * nptl/sysdeps/x86_64/Makefile: Moved ...
34730         * sysdeps/x86_64/nptl/Makefile: ... here.
34731         * nptl/sysdeps/x86_64/configure: Moved ...
34732         * sysdeps/x86_64/nptl/configure: ... here.
34733         * nptl/sysdeps/x86_64/configure.ac: Moved ...
34734         * sysdeps/x86_64/nptl/configure.ac: ... here.
34735         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
34736         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
34737         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
34738         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
34739         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
34740         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
34741         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
34742         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
34743         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
34744         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
34745         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
34746         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
34747         * nptl/sysdeps/x86_64/tls.h: Moved ...
34748         * sysdeps/x86_64/nptl/tls.h: ... here.
34749         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
34750         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
34751         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
34752         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
34753
34754         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
34755
34756 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34757
34758         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34759
34760 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
34761
34762         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
34763         type.
34764         [POSIX] (off_t): Likewise.
34765         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
34766         [POSIX] (S_ISBLK): Require macro.
34767         [POSIX] (S_ISCHR): Likewise.
34768         [POSIX] (S_ISDIR): Likewise.
34769         [POSIX] (S_ISFIFO): Likewise.
34770         [POSIX] (S_ISREG): Likewise.
34771         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
34772         optional-macro.
34773         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
34774         type.
34775         [POSIX] (time_t): Likewise.
34776         [POSIX] (timer_t): Likewise.
34777
34778 2014-06-11  Florian Weimer  <fweimer@redhat.com>
34779
34780         [BZ #17048]
34781         * posix/spawn_int.h (struct __spawn_action): Make the path string
34782         non-const to support deallocation.
34783         * posix/spawn_faction_addopen.c
34784         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
34785         * posix/spawn_faction_destroy.c
34786         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
34787         path in all spawn_do_open actions.
34788         * posix/tst-spawn.c (do_test): Exercise the copy operation in
34789         posix_spawn_file_actions_addopen.
34790
34791 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
34792
34793         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
34794         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
34795         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
34796         conditional code always true.
34797         (__libc_vfork): New alias.
34798
34799 2014-06-11  Roland McGrath  <roland@hack.frob.com>
34800
34801         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34802         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
34803
34804         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
34805
34806         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34807         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
34808
34809         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
34810         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
34811
34812         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34813         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
34814
34815 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34816
34817         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
34818         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
34819         multiarch strcmp for PPC64.
34820         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
34821         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
34822         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
34823         multiarch optimizations.
34824         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34825         (__libc_ifunc_impl_list): Likewise.
34826
34827 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
34828
34829         * benchtests/scripts/validate_benchout.py: New script.
34830         * benchtests/Makefile (bench-func): Call it.
34831         * benchtests/scripts/benchout.schema.json: New file.
34832
34833 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
34834
34835         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
34836         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
34837         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
34838         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
34839         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
34840         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
34841         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
34842         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
34843         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
34844         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
34845         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
34846         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
34847         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
34848         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
34849         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
34850         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
34851         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
34852         Moved ...
34853         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
34854         ... here.
34855         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
34856         Moved ...
34857         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
34858         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
34859         Moved ...
34860         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
34861         ... here.
34862         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
34863         Moved ...
34864         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
34865         ... here.
34866         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
34867         Moved ...
34868         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
34869         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
34870         Moved ...
34871         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
34872         ... here.
34873         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
34874         Moved ...
34875         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
34876         ... here.
34877         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
34878         Moved ...
34879         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
34880         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
34881         Moved ...
34882         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
34883         ... here.
34884         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
34885         Moved ...
34886         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
34887         ... here.
34888         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
34889         Moved ...
34890         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
34891         ... here.
34892         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
34893         Moved ...
34894         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
34895         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
34896         Moved ...
34897         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
34898         ... here.
34899         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
34900         Moved ...
34901         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
34902         ... here.
34903         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
34904         Moved ...
34905         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
34906         ... here.
34907         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
34908         Moved ...
34909         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
34910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
34911         Moved ...
34912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
34913         ... here.
34914         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
34915         Moved ...
34916         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
34917         ... here.
34918         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
34919         Moved ...
34920         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
34921         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
34922         Moved ...
34923         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
34924         ... here.
34925         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
34926         Moved ...
34927         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
34928         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
34929         Moved ...
34930         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
34931         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
34932         Moved ...
34933         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
34934         ... here.
34935         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
34936         Moved ...
34937         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
34938         ... here.
34939         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
34940         Moved ...
34941         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
34942         ... here.
34943         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
34944         Moved ...
34945         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
34946         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
34947         Moved ...
34948         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
34949         ... here.
34950         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
34951         Moved ...
34952         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
34953         ... here.
34954         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
34955         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
34956         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
34957         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
34958         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
34959         Moved ...
34960         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
34961         ... here.
34962         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
34963         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
34964         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
34965         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
34966         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
34967         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
34968         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
34969         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
34970         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
34971         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
34972         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
34973         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
34974         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
34975         Moved ...
34976         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
34977         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
34978         Moved ...
34979         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
34980         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
34981         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
34982         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
34983         Moved ...
34984         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
34985         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
34986         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
34987         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
34988         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
34989         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
34990         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
34991
34992 2014-06-10  Wilco  <wdijkstr@arm.com>
34993
34994         * math/test-fenv-return.c: New file.
34995         * math/Makefile: Add new test test-fenv-return.
34996
34997 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
34998
34999         [BZ #17042]
35000         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
35001         when x - 1 is zero.
35002         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
35003         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
35004         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
35005         0.0L for an argument of 1.0L.
35006         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
35007         Likewise.
35008         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
35009         value when x - 1 is zero.
35010         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
35011         * sysdeps/i386/fpu/libm-test-ulps: Update.
35012         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35013
35014 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
35015
35016         [BZ #15119]
35017         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
35018
35019 2014-06-09  Roland McGrath  <roland@hack.frob.com>
35020
35021         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
35022         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
35023
35024 2014-06-09  Roland McGrath  <roland@hack.frob.com>
35025
35026         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
35027         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
35028
35029         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
35030         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
35031
35032         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
35033         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
35034
35035         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
35036         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
35037
35038         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
35039         if not already defined.
35040         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
35041         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
35042         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
35043         (TLS_INIT_TP): Use it.
35044         (TLS_DEFINE_INIT_TP): New macro.
35045         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
35046
35047 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
35048
35049         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
35050         constant.
35051         [POSIX] (IXANY): Likewise.
35052         [POSIX] (OLCUC): Likewise.
35053         [POSIX || POSIX2008] (CBAUD): Do not allow.
35054         [POSIX || POSIX2008] (DEFECHO): Likewise.
35055         [POSIX || POSIX2008] (ECHOCTL): Likewise.
35056         [POSIX || POSIX2008] (ECHOKE): Likewise.
35057         [POSIX || POSIX2008] (ECHOPRT): Likewise.
35058         [POSIX || POSIX2008] (EXTA): Likewise.
35059         [POSIX || POSIX2008] (EXTB): Likewise.
35060         [POSIX || POSIX2008] (FLUSHO): Likewise.
35061         [POSIX || POSIX2008] (LOBLK): Likewise.
35062         [POSIX || POSIX2008] (PENDIN): Likewise.
35063         [POSIX || POSIX2008] (SWTCH): Likewise.
35064         [POSIX || POSIX2008] (VDISCARD): Likewise.
35065         [POSIX || POSIX2008] (VDSUSP): Likewise.
35066         [POSIX || POSIX2008] (VLNEXT): Likewise.
35067         [POSIX || POSIX2008] (VREPRINT): Likewise.
35068         [POSIX || POSIX2008] (VSTATUS): Likewise.
35069         [POSIX || POSIX2008] (VWERASE): Likewise.
35070         (B*): Change to B[0123456789]*.
35071         * conform/data/time.h-data [POSIX || UNIX98]
35072         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
35073         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
35074         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
35075         [POSIX] (tm_*): Do not allow.
35076
35077 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
35078
35079         * Makefile (install): Don't set LANGUAGE.
35080         * Makefile.in (install): Likewise.
35081         * assert/Makefile (test-assert-ENV): Remove variable.
35082         (test-assert-perr-ENV): Likewise.
35083         * elf/Makefile (neededtest4-ENV): Likewise.
35084         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
35085         [$(cross-compiling) = no]: Don't set LANGUAGE.
35086         * io/ftwtest-sh (LANG): Remove variable.
35087         * libio/Makefile (tst-widetext-ENV): Likewise.
35088         * manual/install.texi (Running make install): Don't refer to
35089         environment settings for make install.
35090         * INSTALL: Regenerated.
35091         * nptl/tst-tls6.sh: Don't set LANG.
35092         * posix/globtest.sh (LANG): Remove variable.
35093         * string/Makefile (tester-ENV): Likewise.
35094         (inl-tester-ENV): Likewise.
35095         (noinl-tester-ENV): Likewise.
35096         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
35097         [$(cross-compiling) = no]: Don't set LANGUAGE.
35098         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
35099         without explicit environment settings.
35100
35101 2014-06-06  Roland McGrath  <roland@hack.frob.com>
35102
35103         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
35104         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
35105         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
35106         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
35107
35108 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
35109
35110         * crypt/crypt-private.h [DOS]: Add some includes taken from the
35111         other files in the crypt directory.
35112         * crypt/crypt.c: Remove duplicate includes.
35113         * crypt/crypt-entry.c: Likewise.
35114         * crypt/crypt_util.c: Likewise.
35115
35116 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
35117
35118         * Makeconfig (run-program-env): New variable.
35119         (run-program-prefix-before-env): Likewise.
35120         (run-program-prefix-after-env): Likewise.
35121         (run-program-prefix): Define in terms of new variables.
35122         (built-program-cmd-before-env): New variable.
35123         (built-program-cmd-after-env): Likewise.
35124         (built-program-cmd): Define in terms of new variables.
35125         (test-program-prefix-before-env): New variable.
35126         (test-program-prefix-after-env): Likewise.
35127         (test-program-prefix): Define in terms of new variables.
35128         (test-program-cmd-before-env): New variable.
35129         (test-program-cmd-after-env): Likewise.
35130         (test-program-cmd): Define in terms of new variables.
35131         * Rules (make-test-out): Use $(run-program-env).
35132         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
35133         (help): Do not mention environment variables.  Mention
35134         --timeoutfactor option.
35135         (timeoutfactor): New variable.
35136         (blacklist_exports): Remove function.
35137         (exports): Remove variable.
35138         (command): Do not include ${exports}.
35139         * manual/install.texi (Configuring and compiling): Do not mention
35140         test wrappers preserving environment variables.  Mention that last
35141         assignment to a variable must take precedence.
35142         * INSTALL: Regenerated.
35143         * benchtests/Makefile (run-bench): Use $(run-program-env).
35144         * catgets/Makefile ($(objpfx)test1.cat): Use
35145         $(built-program-cmd-before-env), $(run-program-env) and
35146         $(built-program-cmd-after-env).
35147         ($(objpfx)test2.cat): Do not specify environment variables
35148         explicitly.
35149         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
35150         $(run-program-env) and $(built-program-cmd-after-env).
35151         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
35152         $(run-program-env) and $(test-program-cmd-after-env).
35153         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
35154         explicitly.
35155         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
35156         run_program_env and test_program_cmd_after_env arguments.
35157         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
35158         * elf/tst-pathopt.sh: Use run_program_env argument.
35159         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
35160         $(test-wrapper-env) and $(run-program-env).
35161         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
35162         run_program_env arguments.
35163         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
35164         * intl/Makefile ($(objpfx)tst-gettext.out): Use
35165         $(test-program-prefix-before-env), $(run-program-env) and
35166         $(test-program-prefix-after-env).
35167         ($(objpfx)tst-gettext2.out): Likewise.
35168         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
35169         run_program_env and test_program_prefix_after_env arguments.
35170         * intl/tst-gettext2.sh: Likewise.
35171         * intl/tst-gettext4.sh: Do not set environment variables
35172         explicitly.
35173         * intl/tst-gettext6.sh: Likewise.
35174         * intl/tst-translit.sh: Likewise.
35175         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
35176         $(test-program-prefix-before-env), $(run-program-env) and
35177         $(test-program-prefix-after-env).
35178         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
35179         run_program_env and test_program_prefix_after_env arguments.
35180         * math/Makefile (run-regen-ulps): Use $(run-program-env).
35181         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
35182         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
35183         explicitly with each use of ${test_wrapper_env}.
35184         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
35185         $(test-program-prefix-before-env), $(run-program-env) and
35186         $(test-program-prefix-after-env).
35187         * posix/tst-getconf.sh: Do not set environment variables
35188         explicitly.
35189         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
35190         run_program_env and test_program_prefix_after_env arguments.
35191         * stdio-common/tst-printf.sh: Do not set environment variables
35192         explicitly.
35193         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
35194         $(test-program-prefix-before-env), $(run-program-env) and
35195         $(test-program-prefix-after-env).
35196         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
35197         run_program_env and test_program_prefix_after_env arguments.
35198         Split $test calls into $test_pre and $test.
35199         * timezone/Makefile (build-testdata): Use
35200         $(built-program-cmd-before-env), $(run-program-env) and
35201         $(built-program-cmd-after-env).
35202
35203 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35204
35205         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
35206         strlen for non SHARED builds.
35207
35208 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
35209
35210         * nptl/allocatestack.c (check_list): Inlined function...
35211         (__reclaim_stacks): ... here.
35212
35213 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
35214
35215         [BZ #15698]
35216         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
35217         memory overrun.
35218
35219 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
35220
35221         * Rules (make-test-out): Include
35222         LOCPATH=$(common-objpfx)localedata in default environment.
35223         * debug/Makefile (tst-chk1-ENV): Remove variable.
35224         (tst-chk2-ENV): Likewise.
35225         (tst-chk3-ENV): Likewise.
35226         (tst-chk4-ENV): Likewise.
35227         (tst-chk5-ENV): Likewise.
35228         (tst-chk6-ENV): Likewise.
35229         (tst-lfschk1-ENV): Likewise.
35230         (tst-lfschk2-ENV): Likewise.
35231         (tst-lfschk3-ENV): Likewise.
35232         (tst-lfschk4-ENV): Likewise.
35233         (tst-lfschk5-ENV): Likewise.
35234         (tst-lfschk6-ENV): Likewise.
35235         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
35236         (tst-iconv7-ENV): Likewise.
35237         * intl/Makefile (LOCPATH-ENV): Likewise.
35238         (tst-codeset-ENV): Likewise.
35239         (tst-gettext3-ENV): Likewise.
35240         (tst-gettext5-ENV): Likewise.
35241         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
35242         (tst-fopenloc-ENV): Likewise.
35243         (tst-fgetws-ENV): Remove variable.
35244         (tst-ungetwc1-ENV): Likewise.
35245         (tst-ungetwc2-ENV): Likewise.
35246         (bug-ungetwc2-ENV): Likewise.
35247         (tst-swscanf-ENV): Likewise.
35248         (bug-ftell-ENV): Likewise.
35249         (tst-fgetwc-ENV): Likewise.
35250         (tst-fseek-ENV): Likewise.
35251         (tst-ftell-partial-wide-ENV): Likewise.
35252         (tst-ftell-active-handler-ENV): Likewise.
35253         (tst-ftell-append-ENV): Likewise.
35254         * posix/Makefile (tst-fnmatch-ENV): Likewise.
35255         (tst-regexloc-ENV): Likewise.
35256         (bug-regex1-ENV): Likewise.
35257         (tst-regex-ENV): Likewise.
35258         (tst-regex2-ENV): Likewise.
35259         (bug-regex5-ENV): Likewise.
35260         (bug-regex6-ENV): Likewise.
35261         (bug-regex17-ENV): Likewise.
35262         (bug-regex18-ENV): Likewise.
35263         (bug-regex19-ENV): Likewise.
35264         (bug-regex20-ENV): Likewise.
35265         (bug-regex22-ENV): Likewise.
35266         (bug-regex23-ENV): Likewise.
35267         (bug-regex25-ENV): Likewise.
35268         (bug-regex26-ENV): Likewise.
35269         (bug-regex30-ENV): Likewise.
35270         (bug-regex32-ENV): Likewise.
35271         (bug-regex33-ENV): Likewise.
35272         (bug-regex34-ENV): Likewise.
35273         (bug-regex35-ENV): Likewise.
35274         (tst-rxspencer-ENV): Likewise.
35275         (tst-rxspencer-no-utf8-ENV): Likewise.
35276         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
35277         (tst-sscanf-ENV): Likewise.
35278         (tst-swprintf-ENV): Likewise.
35279         (tst-swscanf-ENV): Likewise.
35280         (test-vfprintf-ENV): Likewise.
35281         (scanf13-ENV): Likewise.
35282         (bug14-ENV): Likewise.
35283         (tst-grouping-ENV): Likewise.
35284         * stdlib/Makefile (tst-strtod-ENV): Likewise.
35285         (tst-strtod3-ENV): Likewise.
35286         (tst-strtod4-ENV): Likewise.
35287         (tst-strtod5-ENV): Likewise.
35288         (testmb2-ENV): Likewise./
35289         * string/Makefile (tst-strxfrm-ENV): Likewise.
35290         (tst-strxfrm2-ENV): Likewise.
35291         (bug-strcoll1-ENV): Likewise.
35292         (test-strcasecmp-ENV): Likewise.
35293         (test-strncasecmp-ENV): Likewise.
35294         * time/Makefile (tst-strptime-ENV): Likewise.
35295         (tst-ftime_l-ENV): Likewise.
35296         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
35297         (tst-mbrtowc-ENV): Likewise.
35298         (tst-wcrtomb-ENV): Likewise.
35299         (tst-mbrtowc2-ENV): Likewise.
35300         (tst-c16c32-1-ENV): Likewise.
35301         (tst-mbsnrtowcs-ENV): Likewise.
35302
35303 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
35304
35305         * manual/resource.texi (How to get information about the memory
35306         subsystem?): Fix typo.
35307         Reported by Peon de la Parra Ivan <peon@keba.com>
35308
35309 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
35310
35311         [BZ #16882]
35312         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
35313         (pthread_spin_lock): Branch out of spin loop to proper location.
35314         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
35315         (pthread_spin_lock): Likewise.
35316
35317         * nptl/tst-spin4.c: New test.
35318         * nptl/Makefile (tests): Add tst-spin4.
35319
35320 2014-06-03  Andreas Schwab  <schwab@suse.de>
35321
35322         [BZ #15946]
35323         * resolv/res_send.c (send_dg): Reload file descriptor after
35324         calling reopen.
35325
35326 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
35327
35328         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
35329
35330 2014-06-03  Richard Henderson  <rth@redhat.com>
35331
35332         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
35333         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
35334         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
35335         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
35336         in the SAVE_PID block.
35337         (__libc_vfork): New alias.
35338         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
35339
35340         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
35341         child in registers, not on the stack.  Remove RESET_PID conditionals.
35342         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
35343
35344 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35345
35346         * sysdeps/aarch64/libm-test-ulps: Regenerate.
35347
35348 2014-06-03  Wilco  <wdijkstr@arm.com>
35349
35350         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
35351         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
35352         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
35353         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
35354         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
35355         Likewise.
35356
35357 2014-06-03  Wilco  <wdijkstr@arm.com>
35358
35359         * sysdeps/aarch64/fpu/math_private.h
35360         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
35361         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
35362         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
35363         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
35364         Fix declarations.
35365
35366 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
35367
35368         * crypt/crypt-private.h: Include ufc-crypt.h.
35369         (__b64_from_24bit): Declare extern.
35370         * crypt/crypt_util.c(__b64_from_24bit): New function.
35371         (b64t): New static const variable.
35372         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
35373         (b64t): Remove variable.
35374         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
35375         * crypt/sha256-crypt.c: Include crypt-private.h.
35376         (b64t): Remove variable.
35377         (__sha256_crypt_r): Remove b64_from_24bit and replace
35378         with __b64_from_24bit.
35379         * crypt/sha512-crypt.c: Likewise.
35380
35381 2014-06-02  Roland McGrath  <roland@hack.frob.com>
35382
35383         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
35384         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
35385         Label the code __libc_vfork rather than __vfork.
35386         [!NOT_IN_libc] (vfork): Define as weak alias.
35387         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
35388         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
35389         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
35390
35391 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35392
35393         * malloc/malloc.c (malloc_info): Fix format specifier for
35394         n_mmaps.
35395
35396 2014-06-02  Wilco  <wdijkstr@arm.com>
35397
35398         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
35399         FPCR write.
35400
35401 2014-06-02  Wilco  <wdijkstr@arm.com>
35402
35403         [BZ #17009]
35404         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
35405         Rewrite to reduce FPCR/FPSR accesses.
35406
35407 2014-06-01  David S. Miller  <davem@davemloft.net>
35408
35409         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35410
35411 2014-05-31  David S. Miller  <davem@davemloft.net>
35412
35413         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
35414         to occur in round to nearest mode when |x| >= 2.0
35415
35416 2014-05-30  Richard Henderson  <rth@twiddle.net>
35417
35418         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
35419         (PSEUDO_RET_NOERRNO): Remove.
35420         (ret): Don't redefine.
35421         (ret_NOERRNO): Define in terms of ret.
35422         (ret_ERRVAL): Likewise.
35423
35424         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
35425         use of PSEUDO_RET; perform the error check directly.
35426
35427 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
35428
35429         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
35430         with __int128_t.
35431
35432 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
35433
35434         * malloc/malloc (malloc_info): Fix formatting.
35435
35436 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
35437             Roland McGrath  <roland@hack.frob.com>
35438
35439         * malloc/malloc (malloc_info): Also print mmapped statistics.
35440
35441 2014-05-30  Roland McGrath  <roland@hack.frob.com>
35442
35443         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
35444         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
35445
35446 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
35447
35448         * malloc/malloc.c (malloc_info): Inline mi_arena.
35449
35450 2014-05-29  Richard Henderson  <rth@twiddle.net>
35451
35452         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
35453         Remove comma before expanding ASM_ARGS_##nr.
35454         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
35455         Make _x0 a strict output; make _x8 a strict input; adjust expansion
35456         of ASM_ARGS_##nr.
35457         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
35458         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
35459         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
35460         (ASM_ARGS_1): Add leading comma.
35461
35462         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
35463         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
35464         to __errno_location.
35465         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
35466         Remove the expected plt for __errno_location.
35467
35468         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
35469         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
35470         call to __read_tp.
35471
35472         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
35473         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
35474         it and break it down.
35475         (DOCARGS_0, DOCARGS_1): Do nothing.
35476         (DOCARGS_2): Update to store into the new stack frame.
35477         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
35478         (UNDOCARGS_1): Update to restore from the new stack frame.
35479         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
35480         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
35481
35482         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
35483         (SINGLE_THREAD_P): New parameter for result regno.
35484         (PSEUDO): Update to match; use cbz instead of beq.
35485
35486         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
35487         Use ENTRY to define the _nocancel entry point.  Share the syscall
35488         and syscall error check paths with the cancel path.
35489         (PSEUDO_END): New.
35490
35491         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
35492         whitespace; tabs before and after asm mnemonics.
35493
35494 2014-05-29  Eric Wong  <normalperson@yhbt.net>
35495
35496         [BZ #15132]
35497         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35498         Call fstat64 or stat64 internally, depending on arguments passed.
35499         Replace stat buffer argument with file descriptor argument.
35500         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
35501         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
35502         Pass fd to __internal_statvfs instead of calling fstat64.
35503         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
35504         Pass fd to __internal_statvfs64 instead of calling fstat64.
35505         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
35506         Pass -1 to __internal_statvfs instead of calling stat64.
35507         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
35508         Pass -1 to __internal_statvfs64 instead of calling stat64.
35509
35510 2014-05-28  Roland McGrath  <roland@hack.frob.com>
35511
35512         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
35513         that was previously under [RESET_PID].
35514         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
35515
35516         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
35517         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
35518
35519 2014-05-27  Roland McGrath  <roland@hack.frob.com>
35520
35521         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
35522
35523         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
35524         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
35525
35526 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
35527
35528         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
35529
35530 2014-05-27  Andreas Schwab  <schwab@suse.de>
35531
35532         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
35533         TLS_INIT_TP macro.
35534         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
35535         * elf/rtld.c (init_tls, dl_main): Likewise.
35536         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
35537         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
35538         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
35539         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
35540         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
35541         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
35542         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
35543         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
35544         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
35545         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
35546         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
35547         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
35548         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
35549         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
35550         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
35551         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
35552         * sysdeps/generic/tls.h: Update description.
35553
35554 2014-05-27  Will Newton  <will.newton@linaro.org>
35555
35556         [BZ #16990]
35557         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
35558         and restore r2 rather than just restoring.
35559
35560 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
35561
35562         [BZ #16724]
35563         * libio/tst-ftell-append.c: New test case.
35564         * libio/Makefile (tests): Add test case.
35565         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
35566         append mode.
35567         * libio/wfileops.c (do_ftell_wide): Likewise.
35568
35569 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35570
35571         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35572
35573         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
35574         ...
35575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
35576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
35577         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
35578         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
35579         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
35580         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
35581         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
35582         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
35583         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
35584         Moved ...
35585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
35586         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
35587         Moved ...
35588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
35589         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
35590         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
35591         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
35592         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
35593         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
35594         ...
35595         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
35596         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
35597         Moved ...
35598         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
35599         here.
35600         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
35601         ...
35602         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
35603         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
35604         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
35605
35606         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
35607         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
35608         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
35609         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
35610
35611         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
35612         merge into ...
35613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
35614         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
35615         ...
35616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
35617         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
35618         ...
35619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
35620         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
35621         Moved ...
35622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
35623         here.
35624         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
35625         Moved ...
35626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
35627         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
35628         Moved ...
35629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
35630
35631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
35632         conditional [RESET_PID].
35633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
35634         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
35635         removed.
35636         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
35637         removed.
35638
35639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
35640         <tcb-offsets.h>.
35641         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
35642         (__libc_vfork): New strong alias.
35643         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
35644         removed.
35645         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
35646         Removed.
35647
35648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
35649         <tcb-offsets.h>.
35650         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
35651         (__libc_vfork): New strong alias.
35652         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
35653         removed.
35654         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
35655         removed.
35656
35657 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
35658
35659         * malloc/malloc.c (mi_arena): New function.
35660         (malloc_info): Remove nested function mi_arena. Call non-nosted
35661         function mi_arena.
35662
35663 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35664
35665         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
35666         by insrwi.
35667         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
35668         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
35669         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
35670         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
35671         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
35672         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
35673         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
35674
35675 2014-05-26  Andreas Schwab  <schwab@suse.de>
35676
35677         [BZ #16984]
35678         * locale/programs/repertoire.c (repertoire_read): Add slash
35679         between I18NPATH element and file name.
35680         * locale/programs/locfile.c (locfile_read): Likewise.
35681
35682 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
35683
35684         * nptl/pthread_mutexattr_settype.c
35685         (__pthread_mutexattr_settype):
35686         Disable lock elision for PTHREAD_MUTEX_NORMAL.
35687
35688 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
35689
35690         * nptl/tst-mutex5 (do_test):
35691         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
35692
35693 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35694
35695         * benchtests/README: Document 'init' directive.
35696         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
35697         BENCH_INIT.
35698         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
35699         (parse_file): Recognize 'init' directive.
35700
35701 2014-05-26  Kyle McMartin  <kyle@redhat.com>
35702
35703         [BZ #16796]
35704         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
35705         alignment of struct pthread.
35706
35707 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35708
35709         [BZ #16878]
35710         * nscd/netgroupcache.c (addgetnetgrentX): Look for
35711         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
35712         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
35713         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
35714
35715 2014-05-25  Richard Henderson  <rth@twiddle.net>
35716
35717         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
35718         (SINGLE_THREAD_P_PIC): Remove.
35719         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
35720         (SINGLE_THREAD_P_PIC): Remove.
35721
35722         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
35723         branch to syscall error ...
35724         (PSEUDO): ... here.
35725         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
35726         from __local_syscall_error to .Lsyscall_error.
35727         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
35728         (SYSCALL_ERROR): Update label name.
35729
35730         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
35731         Do not use DOARGS/UNDOARGS.
35732         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
35733         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
35734         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
35735         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
35736         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
35737
35738         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
35739         block comment.
35740
35741         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
35742         define if !NOT_IN_libc.
35743         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
35744         define with non-default symbol versions.
35745
35746 2014-05-23  Richard Henderson  <rth@twiddle.net>
35747
35748         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
35749         (vfork, __vfork): Define via compat_symbol.
35750
35751         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
35752         [!HAVE_IFUNC] (vfork_compat): Remove.
35753         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
35754
35755 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
35756
35757         [BZ #16978]
35758         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
35759         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
35760         variable.
35761
35762 2014-05-23  Richard Henderson  <rth@twiddle.net>
35763
35764         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
35765         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
35766         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
35767         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
35768
35769         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
35770         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
35771         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
35772         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
35773         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
35774         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
35775         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
35776         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
35777         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
35778         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
35779         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
35780         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
35781         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
35782         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
35783         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
35784         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
35785         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
35786         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
35787         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
35788         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
35789         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
35790         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
35791         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
35792         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
35793         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
35794         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
35795         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
35796         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
35797         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
35798         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
35799         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
35800         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
35801         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
35802         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
35803         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
35804         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
35805         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
35806         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
35807         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
35808         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
35809         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
35810         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
35811         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
35812         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
35813         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
35814         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
35815         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
35816         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
35817         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
35818         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
35819         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
35820         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
35821         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
35822         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
35823         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
35824         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
35825
35826         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
35827         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
35828         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
35829         before exiting on error.
35830         (__libc_vfork): New strong alias.
35831         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
35832         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
35833
35834         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
35835         that was previously under [RESET_PID].
35836         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
35837
35838         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
35839
35840 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
35841
35842         [BZ #16977]
35843         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
35844         value when x - 1 is zero.
35845         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
35846         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
35847         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
35848         0.0L for an argument of 1.0L.
35849         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
35850         Likewise.
35851         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
35852         value when x - 1 is zero.
35853         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
35854         * sysdeps/i386/fpu/libm-test-ulps: Update.
35855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35856
35857 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
35858
35859         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
35860         alphasort and versionsort.
35861
35862 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35863
35864         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
35865         macro.
35866         [copysignf]: Likewise.
35867
35868 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
35869
35870         * crypt/md5-crypt.c: Fix formatting.
35871
35872 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
35873
35874         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
35875         (b64_from_24bit): New function.
35876
35877 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35878
35879         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
35880         libc_hidden_builtin_def to ifunc.
35881         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
35882         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
35883
35884 2014-05-21  Roland McGrath  <roland@hack.frob.com>
35885
35886         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
35887         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
35888
35889 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
35890
35891         * nscd/Depend (linuxthreads): Remove.
35892         (nptl): Add.
35893         * resolv/Depend (linuxthreads): Remove.
35894         * rt/Depend (linuxthreads): Remove.
35895
35896         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
35897         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
35898         $(common-objpfx)elf/.
35899         (link-libc-before-gnulib): Likewise.
35900         (elfobjdir): Remove variable.
35901         * Makefile (install): Use $(elf-objpfx) instead of
35902         $(common-objpfx)elf/.
35903         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
35904         $(elfobjdir)/.
35905         (link-libc-deps): Likewise.
35906         ($(common-objpfx)libc.so): Likewise.
35907         ($(common-objpfx)linkobj/libc.so): Likewise.
35908         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
35909         instead of $(common-objpfx)elf/.
35910         (symbolic-link-list): Likewise.
35911         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
35912         [$(cross-compiling) = no]: Likewise.
35913         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
35914         $(elfobjdir)/.
35915         (static-gnulib-arch): Likewise.
35916         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
35917         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
35918         $(common-objpfx)elf/.
35919
35920 2014-05-21  Richard Henderson  <rth@redhat.com>
35921
35922         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
35923         (SINGLE_THREAD_P): Use the correct width load.  Fold
35924         into the ldr offset.
35925
35926         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
35927         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
35928
35929 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
35930
35931         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
35932         (libgcc_s_resume): Use __attribute_used__.
35933         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
35934         Likewise.
35935
35936 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35937
35938         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
35939         optimization when used with float constants.
35940
35941         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35942
35943 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
35944
35945         [BZ #16915]
35946         * locale/nl_langinfo_l.c: Make direct reference to every
35947         _nl_current_CATEGORY symbol.
35948         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
35949         (tests-static): Add tst-langinfo-static.
35950         (tests-special): Add tst-langinfo-static.out.
35951         ($(objpfx)tst-langinfo.out): Redirect output.
35952         ($(objpfx)tst-langinfo-static.out): New.
35953         * localedata/tst-langinfo.sh: Send output to stdout.
35954         * localedata/tst-langinfo-static.c: New file.
35955
35956         [BZ #16965]
35957         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
35958         when the shift amount is modulo the limb size.
35959
35960 2014-05-20  Richard Henderson  <rth@redhat.com>
35961
35962         [BZ #16967]
35963         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
35964         Change type of sa_flags from unsigned int to int.
35965
35966         [BZ #16966]
35967         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
35968
35969         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
35970
35971 2014-05-20  Will Newton  <will.newton@linaro.org>
35972
35973         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
35974         Test the return value of the system call in the nocancel case.
35975
35976 2014-05-20  Will Newton  <will.newton@linaro.org>
35977             Yvan Roux  <yvan.roux@linaro.org>
35978
35979         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
35980         #include of asm/ptrace.h.
35981         (PTRACE_GET_THREAD_AREA): Remove #undef.
35982         (PTRACE_GETHBPREGS): Likewise.
35983         (PTRACE_SETHBPREGS): Likewise.
35984         (struct user_regs_struct): New structure.
35985         (struct user_fpsimd_struct): New structure.
35986         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
35987         #include of asm/ptrace.h and second #include of sys/user.h.
35988         (PTRACE_GET_THREAD_AREA): Remove #undef.
35989         (PTRACE_GETHBPREGS): Likewise.
35990         (PTRACE_SETHBPREGS): Likewise.
35991         (ELF_NGREG): Use new struct user_regs_struct.
35992         (elf_fpregset_t): Use new struct user_fpsimd_struct.
35993
35994 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35995
35996         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
35997         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
35998
35999 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
36000
36001         [BZ #16958]
36002         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
36003         membar to avoid block loads/stores to overlap previous stores.
36004
36005 2014-05-17  Richard Henderson  <rth@redhat.com>
36006
36007         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
36008         Create the __##syscall_name##_nocancel entry point.
36009         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
36010         Remove; let the sysdep-cancel.h code create it.
36011
36012 2014-05-17  David S. Miller  <davem@davemloft.net>
36013
36014         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
36015         Protect with __USE_GNU.
36016         (TIOCSET_TEMPT): Likewise.
36017         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
36018         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
36019         these are already provided in bits/ioctl-types.h
36020
36021 2014-05-16  Roland McGrath  <roland@hack.frob.com>
36022
36023         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
36024         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
36025
36026         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
36027         Use wait4 regardless of [__NR_waitpid].
36028
36029 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
36030
36031         PR libgcc/60166
36032         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36033         (_FP_NANSIGN_Q): Set the quiet bit.
36034
36035 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
36036
36037         * benchtests/Makefile
36038         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
36039         not $(common-objpfx)math/libm.so.
36040         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
36041         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
36042         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
36043         $(common-objpfx)dlfcn/libdl.so.
36044         ($(objpfx)tst-audit8): Depend on $(libm), not
36045         $(common-objpfx)math/libm.so.
36046         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
36047         not $(common-objpfx)dlfcn/libdl.so.
36048         * math/Makefile
36049         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
36050         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
36051         [$(build-shared) = yes].
36052         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
36053         $(common-objpfx)nptl/libpthread.so.
36054         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
36055         $(common-objpfx)math/libm.so$(libm.so-version) or
36056         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
36057         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
36058         $(common-objpfx)dlfcn/libdl.so.
36059         * setjmp/Makefile (link-libm): Remove variable.
36060         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
36061         * stdio-common/Makefile (link-libm): Remove variable.
36062         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
36063         * stdlib/Makefile (link-libm): Remove variable.
36064         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
36065         ($(objpfx)tst-strtod-round): Likewise.
36066         ($(objpfx)tst-tininess): Likewise.
36067         ($(objpfx)tst-strtod-underflow): Likewise.
36068         ($(objpfx)tst-strtod6): Likewise.
36069         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
36070         $(libdl), not $(common-objpfx)nptl/libpthread.so and
36071         $(common-objpfx)dlfcn/libdl.so.
36072
36073 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36074
36075         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
36076         BSD terminal modes definitions.
36077
36078 2014-05-16  Roland McGrath  <roland@hack.frob.com>
36079
36080         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
36081         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
36082
36083         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
36084         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
36085         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
36086         Don't do #include_next.
36087         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
36088         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
36089         Don't do #include_next.
36090         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
36091         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
36092         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
36093         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
36094
36095 2014-05-16  Allan McRae  <allan@archlinux.org>
36096
36097         * po/sv.po: Update Swedish translation from translation project.
36098
36099         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
36100         in sed expression.
36101
36102 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
36103
36104         [BZ #16917]
36105         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
36106         errno if the TIOCGPTN ioctl fails with an error different than
36107         EINVAL.
36108         * login/tst-ptsname.c: New file.
36109         * login/Makefile (tests): Add tst-ptsname.
36110
36111         [BZ #16943]
36112         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
36113         and prlimit64.
36114
36115 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
36116
36117         [BZ #16849]
36118         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
36119         herrno to return EAI_AGAIN.
36120
36121 2014-05-14  Roland McGrath  <roland@hack.frob.com>
36122
36123         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
36124         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
36125         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
36126         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
36127         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
36128         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
36129         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
36130         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
36131         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
36132         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
36133         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
36134         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
36135         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
36136         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
36137         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
36138         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
36139         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
36140         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
36141         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
36142         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
36143         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
36144         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
36145         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
36146         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
36147         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
36148         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
36149         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
36150         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
36151         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
36152         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
36153         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
36154         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
36155         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
36156         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
36157         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
36158         Moved ...
36159         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
36160         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
36161         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
36162         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
36163         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
36164         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
36165         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
36166         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
36167         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
36168         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
36169         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
36170         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
36171         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
36172         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
36173         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
36174         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
36175         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
36176         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
36177         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
36178         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
36179         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
36180         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
36181         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
36182         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
36183         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
36184         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
36185         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
36186         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
36187         Moved ...
36188         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
36189         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
36190         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
36191         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
36192         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
36193         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
36194         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
36195         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
36196         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
36197         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
36198         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
36199         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
36200         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
36201         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
36202         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
36203         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
36204         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
36205         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
36206         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
36207         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
36208         Moved ...
36209         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
36210         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
36211         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
36212
36213         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
36214         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
36215         (libpthread-sysdep_routines): Add elision-related stuff here instead.
36216         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
36217         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
36218         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
36219         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
36220         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
36221         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
36222         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
36223         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
36224         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
36225         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
36226         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
36227         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
36228         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
36229         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
36230         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
36231         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
36232         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
36233         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
36234         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
36235         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
36236         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
36237         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
36238         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
36239         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
36240         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
36241         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
36242         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
36243         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
36244
36245         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
36246         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
36247
36248         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
36249         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
36250         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
36251         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
36252         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
36253         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
36254         Moved ...
36255         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
36256         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
36257         Moved ...
36258         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
36259         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
36260         Moved ...
36261         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
36262         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
36263         Moved ...
36264         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
36265         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
36266         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
36267         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
36268         Moved ...
36269         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
36270         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
36271         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
36272         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
36273         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
36274         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
36275         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
36276         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
36277         Moved ...
36278         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
36279         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
36280         Moved ...
36281         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
36282         ... here.
36283         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
36284         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
36285         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
36286         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
36287         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
36288         Moved ...
36289         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
36290         ... here.
36291         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
36292         Moved ...
36293         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
36294         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
36295         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
36296         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
36297         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
36298         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
36299         Moved ...
36300         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
36301         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
36302         Moved ...
36303         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
36304         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
36305         Moved ...
36306         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
36307         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
36308         Moved ...
36309         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
36310         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
36311         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
36312         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
36313         Moved ...
36314         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
36315         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
36316         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
36317         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
36318         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
36319         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
36320         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
36321         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
36322         Moved ...
36323         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
36324         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
36325         Moved ...
36326         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
36327         ... here.
36328         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
36329         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
36330         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
36331         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
36332         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
36333         Moved ...
36334         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
36335         ... here.
36336         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
36337         Moved ...
36338         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
36339         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
36340         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
36341         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
36342         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
36343         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
36344         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
36345         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
36346         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
36347         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
36348         Moved ...
36349         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
36350         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
36351         Moved ...
36352         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
36353         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
36354         Moved ...
36355         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
36356         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
36357         Moved ...
36358         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
36359         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
36360         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
36361         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
36362         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
36363         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
36364         Moved ...
36365         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
36366         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
36367         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
36368         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
36369         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
36370         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
36371         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
36372         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
36373         Moved ...
36374         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
36375         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
36376         Moved ...
36377         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
36378         ... here.
36379         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
36380         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
36381         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
36382         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
36383         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
36384         Moved ...
36385         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
36386         ... here.
36387         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
36388         Moved ...
36389         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
36390         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
36391         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
36392         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
36393         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
36394         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
36395         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
36396         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
36397         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
36398         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
36399         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
36400
36401         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
36402         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
36403
36404         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
36405         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
36406
36407         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
36408         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
36409         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
36410         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
36411         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
36412         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
36413         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
36414         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
36415         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
36416         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
36417         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
36418         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
36419         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
36420         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
36421         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
36422         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
36423         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
36424         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
36425         Moved ...
36426         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
36427         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
36428         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
36429         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
36430         Moved ...
36431         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
36432         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
36433         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
36434         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
36435         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
36436         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
36437         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
36438         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
36439         Moved ...
36440         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
36441         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
36442         Moved ...
36443         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
36444         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
36445         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
36446         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
36447         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
36448         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
36449         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
36450         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
36451         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
36452         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
36453         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
36454         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
36455         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
36456         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
36457         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
36458         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
36459         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
36460
36461         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
36462         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
36463         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
36464         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
36465         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
36466
36467         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
36468         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
36469         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
36470         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
36471         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
36472         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
36473         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
36474         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
36475         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
36476         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
36477
36478         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
36479         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
36480
36481         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
36482         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
36483         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
36484         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
36485         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
36486         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
36487         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
36488         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
36489         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
36490         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
36491         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
36492         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
36493         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
36494         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
36495         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
36496         Update #include.
36497         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
36498         Likewise.
36499         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
36500         Likewise.
36501         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
36502         Likewise.
36503         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
36504         Likewise.
36505         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
36506         Likewise.
36507         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
36508         Likewise.
36509         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
36510         Likewise.
36511         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
36512         Likewise.
36513         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
36514         Likewise.
36515         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
36516         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
36517         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
36518         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
36519         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
36520         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
36521         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
36522         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
36523         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
36524         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
36525         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
36526         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
36527         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
36528         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
36529         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
36530
36531         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
36532         that was previously under [RESET_PID].
36533         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
36534         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
36535         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
36536
36537         * sysdeps/i386/nptl/Implies: New file.
36538         * sysdeps/x86_64/nptl/Implies: New file.
36539         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
36540         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
36541         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
36542         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
36543
36544         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
36545         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
36546         (__libc_vfork): New strong alias.
36547         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
36548         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
36549
36550         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
36551         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
36552         (__libc_vfork): New strong alias.
36553         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
36554         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
36555
36556         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
36557         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
36558         (__libc_vfork): New strong alias.
36559         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
36560         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
36561         * nptl/pt-vfork.c: New file.
36562         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
36563         (libpthread: GLIBC_2.20): New version set (empty).
36564
36565 2014-05-14  Will Newton  <will.newton@linaro.org>
36566
36567         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
36568         rather than #if.
36569
36570 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
36571
36572         [BZ #16564]
36573         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
36574         arguments with exponent 65 or above.
36575         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
36576         arguments 0x1p113L or above.
36577         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
36578         to arguments 0x1p107L or above.
36579         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
36580         positive arguments with exponent 65 or above.
36581         * math/auto-libm-test-in: Add more tests of log1p.
36582         * math/auto-libm-test-out: Regenerated.
36583
36584         [BZ #16928]
36585         * math/s_cacos.c (__cacos): Ensure zero real part of result from
36586         non-finite arguments is +0.
36587         * math/s_cacosf.c (__cacosf): Likewise.
36588         * math/s_cacosl.c (__cacosl): Likewise.
36589         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
36590         * sysdeps/i386/fpu/libm-test-ulps: Update.
36591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36592
36593         [BZ #16927]
36594         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
36595         value.
36596         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
36597         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
36598         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
36599         for explicit high bit of mantissa when testing for argument equal
36600         to 1.
36601         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
36602         * sysdeps/i386/fpu/libm-test-ulps: Update.
36603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36604
36605         [BZ #16516]
36606         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
36607         (__erf): Scale by 16 instead of 8 in potentially underflowing
36608         case.  Ensure exception if result actually underflows.
36609         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
36610         (__erff): Scale by 16 instead of 8 in potentially underflowing
36611         case.  Ensure exception if result actually underflows.
36612         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
36613         (efx8): Remove variable.
36614         (__erfl): Scale by 16 instead of 8 in potentially underflowing
36615         case.  Ensure exception if result actually underflows.
36616         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
36617         (efx8): Remove variable.
36618         (__erfl): Scale by 16 instead of 8 in potentially underflowing
36619         case.  Ensure exception if result actually underflows.
36620         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
36621         (efx8): Remove variable.
36622         (__erfl): Scale by 16 instead of 8 in potentially underflowing
36623         case.  Ensure exception if result actually underflows.
36624         * math/auto-libm-test-in: Add more tests of erf.
36625         * math/auto-libm-test-out: Regenerated.
36626
36627 2014-05-14  Andreas Schwab  <schwab@suse.de>
36628
36629         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
36630         Remove code conditionalized on USE___THREAD.
36631
36632         * config.h.in (HAVE_PT_CHOWN): Define as 0.
36633         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
36634         not definedness.
36635
36636 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
36637
36638         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
36639         Define unconditionally.
36640         (__ASSUME_O_CLOEXEC): Likewise.
36641         (__ASSUME_SOCK_CLOEXEC): Likewise.
36642         (__ASSUME_IN_NONBLOCK): Likewise.
36643         (__ASSUME_PIPE2): Likewise.
36644         (__ASSUME_EVENTFD2): Likewise.
36645         (__ASSUME_SIGNALFD4): Likewise.
36646         (__ASSUME_DUP3): Likewise.
36647         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36648         (__ASSUME_DUP3): Do not define.
36649         (__ASSUME_EVENTFD2): Likewise.
36650         (__ASSUME_IN_NONBLOCK): Likewise.
36651         (__ASSUME_O_CLOEXEC): Likewise.
36652         (__ASSUME_PIPE2): Likewise.
36653         (__ASSUME_SIGNALFD4): Likewise.
36654         (__ASSUME_SOCK_CLOEXEC): Likewise.
36655         (__ASSUME_UTIMES): Undefine.
36656         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36657         (__ASSUME_UTIMES): Do not define.
36658         (__ASSUME_O_CLOEXEC): Likewise.
36659         (__ASSUME_SOCK_CLOEXEC): Likewise.
36660         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
36661         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
36662         0x020621].
36663         (__ASSUME_PIPE2): Likewise.
36664         (__ASSUME_EVENTFD2): Likewise.
36665         (__ASSUME_SIGNALFD4): Likewise.
36666         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
36667         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
36668         Do not define.
36669         (__ASSUME_EVENTFD2): Likewise.
36670         (__ASSUME_SIGNALFD4): Likewise.
36671         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
36672         (__ASSUME_32BITUIDS): Likewise.
36673         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
36674         (__ASSUME_IPC64): Likewise.
36675         (__ASSUME_ST_INO_64_BIT): Likewise.
36676         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
36677         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
36678         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36679         (__ASSUME_UTIMES): Do not define.
36680         (__ASSUME_PSELECT): Likewise.
36681         (__ASSUME_PPOLL): Likewise.
36682         (__ASSUME_O_CLOEXEC): Likewise.
36683         (__ASSUME_SOCK_CLOEXEC): Likewise.
36684         (__ASSUME_IN_NONBLOCK): Likewise.
36685         (__ASSUME_PIPE2): Likewise.
36686         (__ASSUME_EVENTFD2): Likewise.
36687         (__ASSUME_SIGNALFD4): Likewise.
36688         (__ASSUME_DUP3): Likewise.
36689         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
36690         (__ASSUME_UTIMES): Likewise.
36691         (__ASSUME_O_CLOEXEC): Likewise.
36692         (__ASSUME_SOCK_CLOEXEC): Likewise.
36693         (__ASSUME_IN_NONBLOCK): Likewise.
36694         (__ASSUME_PIPE2): Likewise.
36695         (__ASSUME_EVENTFD2): Likewise.
36696         (__ASSUME_SIGNALFD4): Likewise.
36697         (__ASSUME_DUP3): Likewise.
36698         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36699         (__ASSUME_UTIMES): Likewise.
36700         (__ASSUME_O_CLOEXEC): Likewise.
36701         (__ASSUME_SOCK_CLOEXEC): Likewise.
36702         (__ASSUME_IN_NONBLOCK): Likewise.
36703         (__ASSUME_PIPE2): Likewise.
36704         (__ASSUME_EVENTFD2): Likewise.
36705         (__ASSUME_SIGNALFD4): Likewise.
36706         (__ASSUME_DUP3): Likewise.
36707         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
36708         Likewise.
36709         (__ASSUME_UTIMES): Likewise.
36710         (__ASSUME_EVENTFD2): Likewise.
36711         (__ASSUME_SIGNALFD4): Likewise.
36712         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36713         (__ASSUME_O_CLOEXEC): Likewise.
36714         (__ASSUME_SOCK_CLOEXEC): Likewise.
36715         (__ASSUME_IN_NONBLOCK): Likewise.
36716         (__ASSUME_PIPE2): Likewise.
36717         (__ASSUME_EVENTFD2): Likewise.
36718         (__ASSUME_SIGNALFD4): Likewise.
36719         (__ASSUME_DUP3): Likewise.
36720         (__ASSUME_UTIMES): Undefine.
36721
36722         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
36723         feclearexcept.  Remove symbol versioning code.
36724         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
36725         symbol versioning code.
36726         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
36727         symbol versioning code.
36728         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
36729         feupdateenv.  Remove symbol versioning code.
36730         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
36731         fegetexceptflag.  Remove symbol versioning code.
36732         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
36733         fesetexceptflag.  Remove symbol versioning code.
36734         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
36735         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
36736         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
36737         (__posix_fadvise64_l32): Remove prototype.
36738         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
36739         code.
36740
36741 2014-05-13  Roland McGrath  <roland@hack.frob.com>
36742
36743         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
36744         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
36745         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
36746         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
36747
36748 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
36749
36750         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
36751         current working directory
36752
36753 2014-05-13  Roland McGrath  <roland@hack.frob.com>
36754
36755         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
36756         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
36757         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
36758         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
36759         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
36760         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
36761         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
36762         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
36763         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
36764         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
36765         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
36766         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
36767         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
36768         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
36769         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
36770         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
36771         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
36772         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
36773         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
36774         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
36775         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
36776         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
36777         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
36778         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
36779         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
36780         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
36781         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
36782         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
36783         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
36784         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
36785         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
36786         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
36787         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
36788         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
36789         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
36790         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
36791         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
36792         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
36793         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
36794         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
36795         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
36796         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
36797
36798         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
36799         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
36800
36801         * sysdeps/unix/sysv/linux/arm/Makefile
36802         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
36803         Add rt-aeabi_unwind_cpp_pr1.
36804         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
36805         Add nptl-aeabi_unwind_cpp_pr1.
36806         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
36807         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
36808         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
36809         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
36810         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
36811         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
36812
36813         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
36814         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
36815         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
36816         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
36817
36818         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
36819         Deconditionalize the code that was previously under [RESET_PID].
36820         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
36821
36822         * sysdeps/generic/exit-thread.h: New file.
36823         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
36824         * include/unistd.h (__exit_thread): Remove declaration.
36825         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
36826         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
36827         * csu/libc-start.c: Include <exit-thread.h>.
36828         (LIBC_START_MAIN): Pass no argument to __exit_thread.
36829         * nptl/pthread_create.c: Include <exit-thread.h>.
36830         (start_thread): Call __exit_thread in place of __exit_thread_inline.
36831         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
36832         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
36833         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
36834         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
36835         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
36836         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
36837         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
36838         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
36839         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
36840         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
36841         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
36842         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
36843         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
36844         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
36845         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
36846         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
36847
36848 2014-05-13  Andreas Schwab  <schwab@suse.de>
36849
36850         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
36851
36852 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
36853
36854         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
36855         (__ASSUME_UTIMES): Do not condition on kernel version.
36856         (__ASSUME_PSELECT): Define unconditionally.
36857         (__ASSUME_PPOLL): Likewise.
36858         (__ASSUME_ATFCTS): Likewise.
36859         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
36860         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
36861         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
36862         (__ASSUME_UTIMENSAT): Define unconditionally.
36863         (__ASSUME_PRIVATE_FUTEX): Likewise.
36864         (__ASSUME_FALLOCATE): Likewise.
36865         (__ASSUME_O_CLOEXEC): Likewise.
36866         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
36867         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
36868         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
36869         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
36870         (__ASSUME_IN_NONBLOCK): Likewise.
36871         (__ASSUME_PIPE2): Likewise.
36872         (__ASSUME_EVENTFD2): Likewise.
36873         (__ASSUME_SIGNALFD4): Likewise.
36874         (__ASSUME_DUP3): Likewise.
36875         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36876         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
36877         (__ASSUME_AT_RANDOM): Likewise.
36878         (__ASSUME_PREADV): Likewise.
36879         (__ASSUME_PWRITEV): Likewise.
36880         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
36881         (__ASSUME_F_GETOWN_EX): Define unconditionally.
36882         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
36883         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
36884         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
36885         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36886         (__ASSUME_O_CLOEXEC): Define unconditionally.
36887         (__ASSUME_PSELECT): Do not undefine conditionally.
36888         (__ASSUME_PPOLL): Likewise.
36889         (__ASSUME_ATFCTS): Likewise.
36890         (__ASSUME_SET_ROBUST_LIST): Likewise.
36891         (__ASSUME_UTIMENSAT): Likewise.
36892         (__ASSUME_FDATASYNC): Define unconditionally.
36893         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36894         (__ASSUME_SIGFRAME_V2): Likewise.
36895         )__ASSUME_EVENTFD2): Likewise.
36896         (__ASSUME_SIGNALFD4): Likewise.
36897         (__ASSUME_PSELECT): Do not undefine conditionally.
36898         (__ASSUME_PPOLL): Likewise.
36899         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36900         (__ASSUME_PSELECT): Define unconditionally.
36901         (__ASSUME_PPOLL): Likewise.
36902         (__ASSUME_O_CLOEXEC): Likewise.
36903         (__ASSUME_SOCK_CLOEXEC): Likewise.
36904         (__ASSUME_IN_NONBLOCK): Likewise.
36905         (__ASSUME_PIPE2): Likewise.
36906         (__ASSUME_EVENTFD2): Likewise.
36907         (__ASSUME_SIGNALFD4): Likewise.
36908         (__ASSUME_DUP3): Likewise.
36909         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
36910         (__ASSUME_O_CLOEXEC): Likewise.
36911         (__ASSUME_SOCK_CLOEXEC): Likewise.
36912         (__ASSUME_IN_NONBLOCK): Likewise.
36913         (__ASSUME_PIPE2): Likewise.
36914         (__ASSUME_EVENTFD2): Likewise.
36915         (__ASSUME_SIGNALFD4): Likewise.
36916         (__ASSUME_DUP3): Likewise.
36917         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36918         (__ASSUME_EVENTFD2): Likewise.
36919         (__ASSUME_SIGNALFD4): Likewise.
36920         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36921
36922 2014-05-12  Andreas Schwab  <schwab@suse.de>
36923
36924         [BZ #16932]
36925         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
36926         (_nss_nis_gethostbyname4_r): Return error if item length is larger
36927         than maximum RPC packet size.
36928         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
36929         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
36930         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
36931         (_nss_nis_getservbyport_r): Likewise.
36932
36933 2014-05-12  Will Newton  <will.newton@linaro.org>
36934
36935         * malloc/Makefile (tests): Add tst-mallopt.
36936         * malloc/tst-mallopt.c: New file.
36937
36938 2014-05-09  Roland McGrath  <roland@hack.frob.com>
36939
36940         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
36941         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
36942
36943 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36944
36945         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
36946         (tst-tlsmod6.so): Likewise.
36947
36948 2014-05-09  Roland McGrath  <roland@hack.frob.com>
36949
36950         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
36951
36952 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
36953
36954         [BZ #16064]
36955         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
36956         and <dl-procinfo.h>.
36957         (__fegetenv): Save SSE state in envp->__eip if supported.
36958         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
36959         envp->__eip if supported.
36960         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
36961         and <dl-procinfo.h>.
36962         (__fesetenv): Always set __eip, __cs_selector, __opcode,
36963         __data_offset and __data_selector in environment to 0.  Set SSE
36964         state if supported.
36965         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
36966         test-fenv-sse.
36967         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
36968         -mfpmath=sse.
36969         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
36970
36971 2014-05-09  Will Newton  <will.newton@linaro.org>
36972
36973         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
36974         and libc_relro_required for ARM.
36975         * sysdeps/arm/preconfigure: Regenerate.
36976
36977 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36978             Stefan Liebler  <stli@linux.vnet.ibm.com>
36979
36980         * config.make.in (enable-lock-elision): New Makefile variable.
36981         * configure.ac: Likewise.
36982         * configure: Regenerate.
36983         * sysdeps/s390/configure.ac:
36984         Add check for gcc transactions support.
36985         * sysdeps/s390/configure: Regenerate.
36986         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
36987         Build elision files if enabled.
36988         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
36989         Add lock elision support for s390.
36990         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
36991         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
36992         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
36993         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
36994         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
36995         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
36996         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
36997         Likewise.
36998         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
36999         Likewise.
37000         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
37001         Likewise.
37002         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
37003         Likewise.
37004         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
37005         (__lll_timedlock_elision, __lll_lock_elision)
37006         (__lll_unlock_elision, __lll_trylock_elision)
37007         (lll_timedlock_elision, lll_lock_elision)
37008         (lll_unlock_elision, lll_trylock_elision): Add.
37009         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
37010         (pthread_mutex_t): Add lock elision support for s390.
37011
37012 2014-05-14  Wilco  <wdijkstr@arm.com>
37013
37014         * sysdeps/arm/fclrexcpt.c: Cleanup.
37015         * sysdeps/arm/fedisblxcpt.c: Cleanup.
37016         * sysdeps/arm/feenablxcpt.c: Cleanup.
37017         * sysdeps/arm/fegetenv.c: Cleanup.
37018         * sysdeps/arm/fegetexcept.c: Cleanup.
37019         * sysdeps/arm/fegetround.c: Cleanup.
37020         * sysdeps/arm/feholdexcpt.c: Cleanup.
37021         * sysdeps/arm/fesetenv.c: Cleanup.
37022         * sysdeps/arm/fesetround.c: Cleanup.
37023         * sysdeps/arm/feupdateenv.c: Cleanup.
37024         * sysdeps/arm/fgetexcptflg.c: Cleanup.
37025         * sysdeps/arm/fraiseexcpt.c: Cleanup.
37026         * sysdeps/arm/fsetexcptflg.c: Cleanup.
37027         * sysdeps/arm/ftestexcept.c: Cleanup.
37028         * sysdeps/arm/get-rounding-mode.h: Cleanup.
37029         * sysdeps/arm/setfpucw.c: Cleanup.
37030
37031 2014-05-09  Will Newton  <will.newton@linaro.org>
37032
37033         * sysdeps/arm/armv7/strcmp.S: New file.
37034         * NEWS: Mention addition of ARMv7 optimized strcmp.
37035
37036 2014-05-08  Roland McGrath  <roland@hack.frob.com>
37037
37038         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
37039         look for %.ac rather than %.in.
37040
37041         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
37042         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
37043         * sysdeps/mach/hurd/configure: Regenerated.
37044         * sysdeps/unix/sysv/linux/configure: Regenerated.
37045
37046         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
37047
37048 2014-05-07  Steve Ellcey  <sellcey@mips.com>
37049
37050         [BZ# 16922]
37051         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
37052         (LONG_SUB): Ditto.
37053         (PTR_SUB): Ditto.
37054
37055 2014-05-07  Andreas Schwab  <schwab@suse.de>
37056
37057         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
37058         when skipping over non-matching result from nscd.
37059
37060 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
37061
37062         [BZ #16876]
37063         * nptl/sockperf.c (client): Check socket return value.
37064
37065         [BZ #16877]
37066         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
37067         nscd security class.
37068
37069 2014-05-06  Roland McGrath  <roland@hack.frob.com>
37070
37071         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
37072         * sysdeps/arm/unwind.h: ... here.
37073
37074 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
37075
37076         [BZ# 16916]
37077         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
37078         Define.
37079
37080 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
37081
37082         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
37083         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
37084         multiarch strncpy for PPC64.
37085         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
37086         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
37087         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
37088         multiarch optimizations.
37089         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37090         (__libc_ifunc_impl_list): Likewise.
37091         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
37092         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
37093         multiarch stpncpy for PPC64.
37094         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
37095         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
37096
37097 2014-05-06  Andreas Schwab  <schwab@suse.de>
37098
37099         [BZ #16912]
37100         * gmon/mcount.c (_MCOUNT_DECL): Use
37101         atomic_compare_and_exchange_bool_acq instead of
37102         catomic_compare_and_exchange_bool_acq.
37103
37104 2014-05-05  Roland McGrath  <roland@hack.frob.com>
37105
37106         * elf/Makefile (others, install-bin): Remove pldd.
37107         (pldd-modules): Variable removed.
37108         ($(objpfx)pldd): Target removed.
37109         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
37110         (others, install-bin): Append pldd here.
37111         ($(objpfx)pldd): New target.
37112
37113         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
37114         to 0, so the first #if test emitted later doesn't see it undefined.
37115         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
37116         * sysdeps/gnu/errlist.c: Regenerated.
37117
37118 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37119
37120         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
37121         [libc_hidden_builtin_def]: Define to empty value.
37122         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
37123         [libc_hidden_builtin_def]: Likewise.
37124         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
37125         [libc_hidden_builtin_def]: Likewise.
37126         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
37127         [libc_hidden_builtin_def]: Likewise.
37128         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
37129         __redirect_memcpy and define ifunc as default hidden symbol.
37130         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
37131         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
37132
37133 2014-05-04  Adam Conrad  <adconrad@0c3.net>
37134
37135         * locale/iso-4217.def: Reintroduce XDR currency.
37136
37137 2014-05-04  Allan McRae  <allan@archlinux.org>
37138
37139         * po/eo.po: Update Esperanto translation from translation project.
37140
37141 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
37142
37143         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
37144         and FEATURE_INDEX_MAX to 1.
37145         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
37146
37147 2014-05-01  Steve Ellcey  <sellcey@mips.com>
37148
37149         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
37150         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
37151         * iconvdata/big5.c (ONE_DIRECTION): Define.
37152         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
37153         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
37154         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
37155         * iconvdata/cp932.c (ONE_DIRECTION): Define.
37156         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
37157         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
37158         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
37159         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
37160         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
37161         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
37162         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
37163         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
37164         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
37165         * iconvdata/gbk.c (ONE_DIRECTION): Define.
37166         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
37167         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
37168         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
37169         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
37170         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
37171         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
37172         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
37173         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
37174         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
37175         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
37176         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
37177         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
37178         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
37179         * iconvdata/iso646.c (ONE_DIRECTION): Define.
37180         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
37181         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
37182         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
37183         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
37184         * iconvdata/johab.c (ONE_DIRECTION): Define.
37185         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
37186         * iconvdata/sjis.c (ONE_DIRECTION): Define.
37187         * iconvdata/t.61.c (ONE_DIRECTION): Define.
37188         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
37189         * iconvdata/tscii.c (ONE_DIRECTION): Define.
37190         * iconvdata/uhc.c (ONE_DIRECTION): Define.
37191         * iconvdata/unicode.c (ONE_DIRECTION): Define.
37192         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
37193         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
37194         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
37195
37196 2014-05-01  Roland McGrath  <roland@hack.frob.com>
37197
37198         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
37199         (_IO_JUMPS_OFFSET): Define to 0.
37200
37201         * nptl/sysdeps/pthread/bits/libc-lock.h
37202         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
37203         (__libc_lock_define_initialized_recursive): Always define using
37204         initializer.  Modern compilers treat uninitialized (implicit zero) and
37205         explicit zero initializers the same (i.e. put the datum in bss).
37206
37207 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
37208
37209         * nscd/nscd-client.h: Include <string.h>.
37210
37211 2014-05-01  David S. Miller  <davem@davemloft.net>
37212
37213         [BZ #16885]
37214         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
37215         multiple zero bytes exist at the end of a string.
37216         Reported by Aurelien Jarno <aurelien@aurel32.net>
37217
37218         * string/test-strcmp.c (check): Add explicit test for situations where
37219         there are multiple zero bytes after the first.
37220
37221 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
37222
37223         [BZ #16890]
37224         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
37225         when compiling wprintf.
37226         * stdio-common/tstdiomisc.c (t3): New function.
37227         (main): Call it.
37228
37229 2014-05-01  Steve Ellcey  <sellcey@mips.com>
37230
37231         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
37232         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
37233         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
37234         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
37235
37236 2014-05-01  Steve Ellcey  <sellcey@mips.com>
37237
37238         * stdlib/longlong.h: Updated from GCC.
37239
37240 2014-05-01  Will Newton  <will.newton@linaro.org>
37241             Bernard Ogden  <bernie.ogden@linaro.org>
37242
37243         * NEWS: Update fixed bug list.
37244
37245         [BZ #15119]
37246         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
37247
37248 2014-04-30  David S. Miller  <davem@davemloft.net>
37249
37250         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
37251         (libc_feholdexcept_setround_sparc_ctx): New function.
37252         (libc_fesetenv_sparc_ctx): Likewise.
37253         (libc_feupdateenv_sparc_ctx): Likewise.
37254         (libc_feholdsetround_sparc_ctx): Likewise.
37255         (libc_feholdexcept_setround_ctx): Define.
37256         (libc_feholdexcept_setroundf_ctx): Likewise.
37257         (libc_feholdexcept_setroundl_ctx): Likewise.
37258         (libc_fesetenv_ctx): Likewise.
37259         (libc_fesetenvf_ctx): Likewise.
37260         (libc_fesetenvl_ctx): Likewise.
37261         (libc_feupdateenv_ctx): Likewise.
37262         (libc_feupdateenvf_ctx): Likewise.
37263         (libc_feupdateenvl_ctx): Likewise.
37264         (libc_feresetround_ctx): Likewise.
37265         (libc_feresetroundf_ctx): Likewise.
37266         (libc_feresetroundl_ctx): Likewise.
37267         (libc_feholdsetround_ctx): Likewise.
37268         (libc_feholdsetroundf_ctx): Likewise.
37269         (libc_feholdsetroundl_ctx): Likewise.
37270
37271         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
37272         with __USE_GNU instead of XOPEN cpp guards.
37273
37274         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
37275         0.
37276
37277         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
37278         with XOPEN cpp guards.
37279
37280 2014-04-30  Julian Brown  <julian@codesourcery.com>
37281
37282         [BZ #16888]
37283         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
37284         handling.
37285
37286 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
37287
37288         [BZ #9894]
37289         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
37290         Change to 2.6.32.
37291         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
37292         * sysdeps/unix/sysv/linux/configure: Regenerated.
37293         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
37294         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
37295         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
37296         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
37297         * README: Update reference to required Linux kernel version.
37298         * manual/install.texi (Linux): Update reference to required Linux
37299         kernel headers version.
37300         * INSTALL: Regenerated.
37301
37302         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
37303         header inclusion.
37304         [POSIX] (limits.h): Likewise.
37305         [POSIX] (math.h): Likewise.
37306         [POSIX] (sys/wait.h): Likewise.
37307         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
37308         function.
37309         [POSIX] (stddef.h): Do not allow header inclusion.
37310
37311 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37312
37313         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
37314
37315 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
37316
37317         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
37318         Return immediately after lll_futex_wake.
37319
37320 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
37321
37322         [BZ #16791]
37323         * nscd/nscd-client.h (datahead_init_common): Initialize entire
37324         structure.
37325         (datahead_init_pos): Call datahead_init_common early.
37326         (datahead_init_neg): Likewise.
37327
37328         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
37329         datahead_init_neg): New functions.
37330         * nscd/aicache.c (addhstaiX): Use them.
37331         * nscd/grpcache.c (cache_addgr): Likewise.
37332         * nscd/hstcache.c (cache_addhst): Likewise.
37333         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37334         * nscd/netgroupcache.c (do_notfound): Likewise.
37335         (addgetnetgrentX): Likewise.
37336         (addinnetgrX): Likewise.
37337         * nscd/pwdcache.c (cache_addpw): Likewise.
37338         * nscd/servicescache.c (cache_addserv): Likewise.
37339
37340 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
37341             Atsushi Onoe  <atsushi@onoe.org>
37342
37343         [BZ #14308]
37344         [BZ #12994]
37345         [BZ #13651]
37346         * resolv/res_query.c (__libc_res_nsearch): Return if at least
37347         one response is valid.
37348         * resolv/res_send.c (send_dg): Check for validity of other
37349         response if the current response is a referral.
37350
37351 2014-04-29  Steve Ellcey  <sellcey@mips.com>
37352
37353         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
37354
37355 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
37356
37357         [BZ #16823]
37358         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
37359         Always divide by positive zero when computing -Inf result.
37360         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
37361         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
37362
37363 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37364
37365         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
37366         FPSCR if value do not change.
37367         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
37368         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
37369         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
37370         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
37371         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
37372         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
37373         function.
37374
37375 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
37376
37377         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
37378         * sysdeps/unix/sysv/linux/hppa: Move directory from
37379         ports/systeps/unix/sysv/linux/hppa.
37380         * README: Update listing for hppa-*-linux-gnu.
37381
37382 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
37383
37384         [BZ #16754]
37385         * manual/stdio.texi (Hook functions): Fix types of stream hook
37386         functions.
37387         [BZ #16854]
37388         * socket/sys/socket.h: Fix typo in comment.
37389
37390 2014-04-28  Wilco  <wdijkstr@arm.com>
37391
37392         * sysdeps/arm/fenv_private.h: New file.
37393         * sysdeps/arm/math_private.h: New file.
37394         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
37395
37396 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
37397
37398         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
37399         with __int128_t.
37400         (La_x86_64_retval): Likewise.
37401
37402 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
37403
37404         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
37405         fpsr if value didn't change.
37406         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
37407         to fpcr if value didn't change.
37408         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
37409         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
37410         fpsr or fpcr if value didn't change.
37411         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
37412         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
37413         fpcr if value didn't change.
37414         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
37415         to fpsr if value didn't change.
37416
37417 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
37418
37419         * nptl/tst-sem3.c: Use test-skeleton.c
37420         (main): Rename to do_test.  Use return instead of
37421         exit.
37422         * nptl/tst-sem4.c: Use test-skeleton.c
37423         (main): Rename to do_test.
37424
37425 2014-04-22  David S. Miller  <davem@davemloft.net>
37426
37427         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37428         (struct sigaction): New struct member __glibc_reserved0, change
37429         type of sa_flags to int.
37430
37431 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
37432
37433         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
37434         (COUNT_LEADING_ZEROS_0): Define for AArch64.
37435
37436 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
37437
37438         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
37439         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
37440
37441 2014-04-22  Will Newton  <will.newton@linaro.org>
37442             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
37443
37444         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
37445         (__longjmp): Add longjmp and longjmp_target SystemTap
37446         probes.
37447         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
37448         (__sigsetjmp): Add setjmp SystemTap probe.
37449
37450 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
37451
37452         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
37453         match manual order.
37454
37455 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37456
37457         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
37458
37459         * sysdeps/powerpc/fpu/fenv_private.h
37460         (libc_feholdexcept_setroundl_ctx): Define to
37461         libc_feholdexcept_setround_ppc_ctx.
37462         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
37463         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
37464         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
37465         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
37466
37467 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
37468
37469         * sysdeps/aarch64/math-tests.h: New file.
37470
37471 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
37472
37473         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
37474         New.
37475         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37476         Check and set bit_AVX2_Usable.
37477         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
37478         macro.
37479         (bit_AVX2): Likewise.
37480         (index_AVX2_Usable): Likewise.
37481         (CPUID_AVX2): Likewise.
37482         (HAS_AVX2): Likewise.
37483
37484 2014-04-17  Will Newton  <will.newton@linaro.org>
37485
37486         * manual/setjmp.texi (System V contexts): Add note that
37487         calling setcontext on a context created by a call to a
37488         signal handler is undefined.  Update text to note that
37489         setcontext from a signal handler is possible but not
37490         recommended.
37491
37492         [BZ #16629]
37493         * stdlib/tst-setcontext.c: Include signal.h.
37494         (main): Check that the signal stack before and
37495         after swapcontext is the same.
37496
37497         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
37498         Re-implement to restore registers in user code and avoid
37499         rt_sigreturn system call.
37500
37501 2014-04-17  Wilco  <wdijkstr@arm.com>
37502
37503         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
37504         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
37505         * math/test-fenv.c: Skip exception trap tests on targets which only
37506         support non-stop mode.
37507
37508 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
37509             Wilco Dijkstra  <wilco.dijkstra@arm.com>
37510
37511         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
37512         (libc_feholdsetround_aarch64_ctx)
37513         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
37514         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
37515         (libc_feresetround_ctx, libc_feresetroundf_ctx)
37516         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
37517         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
37518         (libc_feresetround_noexl_ctx): Define.
37519
37520 2014-04-16  Richard Henderson  <rth@redhat.com>
37521
37522         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
37523
37524         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
37525         unwind tables.
37526
37527         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
37528         const from the non-libc, non-ldso copy.
37529
37530         * sysdeps/alpha/libm-test-ulps: Regenerate.
37531
37532 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
37533             Wilco Dijkstra  <wilco.dijkstra@arm.com>
37534
37535         * sysdeps/aarch64/fpu/math_private.h: New file.
37536
37537 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37538
37539         * sysdeps/aarch64/libm-test-ulps: Regenerate.
37540
37541 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
37542
37543         [BZ #16275]
37544         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
37545         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
37546         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
37547         Intel MPX bound registers before _dl_profile_fixup.
37548         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
37549         registers after _dl_profile_fixup.  Save and restore bound
37550         registers bnd0/bnd1 when calling _dl_call_pltexit.
37551         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
37552         (LR_BND_OFFSET): Likewise.
37553         (LRV_BND0_OFFSET): Likewise.
37554         (LRV_BND1_OFFSET): Likewise.
37555
37556 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37557
37558         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
37559         to...
37560         * sysdeps/mach/hurd/i386/tls.h: ... here.
37561         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
37562         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
37563         fields.
37564
37565 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37566
37567         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
37568
37569 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
37570
37571         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37572
37573 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
37574
37575         [BZ #14770]
37576         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
37577         * sysdeps/s390/configure: Regenerate.
37578
37579         [BZ #16824]
37580         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
37581         Set round-to-nearest internally to reduce error accumulation.
37582
37583 2014-04-16  Alan Modra  <amodra@gmail.com>
37584
37585         [BZ #16740]
37586         [BZ #16619]
37587         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
37588         * math/libm-test.inc (frexp_test_data): Add tests.
37589         * NEWS: Update fixed bug list.
37590
37591 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
37592
37593         * benchtests/Makefile: Depend on libraries in build directory.
37594         (bench-math): Separate out math tests.
37595         (bench-pthread): Separate out pthread tests.
37596         (bench): Include math and pthread tests.
37597
37598 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
37599
37600         [BZ #16831]
37601         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
37602         _dl_debug_initialize.
37603
37604         * configure.ac: Remove SELinux header check.
37605         * configure: Regenerate.
37606         * nscd/selinux.c (perms): Array of const char* to permission names.
37607         (nscd_request_avc_has_perm): Call security_deny_unknown to find
37608         default policy. Call string_to_security_class and string_to_av_perm to
37609         translate strings. Enforce default policy and call avs_has_perm with
37610         results of translated strings.
37611
37612 2014-04-13  David S. Miller  <davem@davemloft.net>
37613
37614         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37615
37616 2014-04-12  Allan McRae  <allan@archlinux.org>
37617
37618         [BZ #16838]
37619         * manual/string.texi (Collation Functions): Fix qsort argument
37620         order in example.
37621         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
37622
37623 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
37624
37625         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
37626         Make the test a no-op if there are no exceptions defined.
37627
37628 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
37629
37630         * elf/Makefile (tests): make tst-dlopen-aout conditional on
37631         enable-hardcoded-path-in-tests
37632
37633 2014-04-11  Will Newton  <will.newton@linaro.org>
37634
37635         * benchtests/Makefile (extra-objs): Add json-lib.o.
37636         (bench-func): Tidy up JSON output.
37637         * benchtests/bench-skeleton.c: Include json-lib.h.
37638         (main): Use JSON library functions to do output of
37639         benchmark results.
37640         * benchtests/bench-timing-type.c (main): Output the
37641         timing type simply, leaving formatting to the user.
37642         * benchtests/json-lib.c: New file.
37643         * benchtests/json-lib.h: Likewise.
37644
37645 2014-04-11  Torvald Riegel  <triegel@redhat.com>
37646
37647         [BZ #15215]
37648         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
37649         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
37650         memory barriers.  Add comments.
37651         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
37652         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
37653         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
37654         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
37655         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
37656         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
37657
37658 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37659
37660         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
37661         * sysdeps/s390/s390-64/configure.ac: ... this ...
37662         * sysdeps/s390/configure.ac: ... to here.
37663         * sysdeps/s390/s390-32/configure: Delete file.
37664         * sysdeps/s390/s390-64/configure: Delete file.
37665         * sysdeps/s390/configure: Regenerate.
37666
37667 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
37668
37669         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
37670
37671 2014-04-11  Will Newton  <will.newton@linaro.org>
37672
37673         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
37674         to zero if it is not defined elsewhere.  (mtrim): Test
37675         the value of MALLOC_DEBUG with #if rather than #ifdef.
37676
37677 2014-04-10 Torvald Riegel  <triegel@redhat.com>
37678
37679         * benchtests/pthread_once-inputs: New file.
37680         * benchtests/pthread_once-source.c: New file.
37681         * benchtests/README: Update documentation.
37682
37683 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
37684             H.J. Lu  <hongjiu.lu@intel.com>
37685
37686         [BZ #16275]
37687         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
37688         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
37689         * sysdeps/x86_64/configure: Regenerated.
37690         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
37691         macro.
37692         (REGISTER_SAVE_RAX): Likewise.
37693         (REGISTER_SAVE_RCX): Likewise.
37694         (REGISTER_SAVE_RDX): Likewise.
37695         (REGISTER_SAVE_RSI): Likewise.
37696         (REGISTER_SAVE_RDI): Likewise.
37697         (REGISTER_SAVE_R8): Likewise.
37698         (REGISTER_SAVE_R9): Likewise.
37699         (REGISTER_SAVE_BND0): Likewise.
37700         (REGISTER_SAVE_BND1): Likewise.
37701         (REGISTER_SAVE_BND2): Likewise.
37702         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
37703         bound registers when calling _dl_fixup.
37704
37705 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37706
37707         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
37708         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
37709         of its definition.
37710         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
37711         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
37712         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
37713         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
37714         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
37715         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
37716         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
37717
37718 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
37719
37720         [BZ #15514]
37721         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
37722         pathconf(_PC_NAME_MAX).
37723
37724 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37725
37726         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
37727         Remove macro usage.
37728         (__PTHREAD_SPINS): Move definition to ...
37729         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
37730         (__PTHREAD_SPINS): ... here.
37731         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
37732         (__PTHREAD_SPIN): Likewise.
37733         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
37734         (__PTHREAD_SPIN): Likewise.
37735         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
37736         (__PTHREAD_SPIN): Likewise.
37737         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
37738         (__PTHREAD_SPIN): Likewise.
37739         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
37740         (__PTHREAD_SPIN): Likewise.
37741         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
37742         (__PTHREAD_SPIN): Likewise.
37743         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
37744         (__PTHREAD_SPIN): Likewise.
37745         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
37746         (__PTHREAD_SPIN): Likewise.
37747         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
37748         (__PTHREAD_SPIN): Likewise.
37749         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
37750         (__PTHREAD_SPIN): Likewise.
37751         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
37752         (__PTHREAD_SPIN): Likewise.
37753         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
37754         (__PTHREAD_SPIN): Likewise.
37755
37756         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
37757         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
37758         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
37759         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
37760         imply folder.
37761         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
37762         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
37763         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
37764         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
37765         correct imply path.
37766         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
37767         strlen symbol for non multi-arch builds.
37768         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
37769         missing hidden_def and weak_alias.
37770
37771 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
37772
37773         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
37774
37775 2014-04-07  Will Newton  <will.newton@linaro.org>
37776
37777         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
37778         and contents.  [!_LIBC] Remove #ifndef and contents.
37779         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
37780         * string/memccpy.c (__memccpy): Use ANSI prototype.
37781         * string/memfrob.c (memfrob): Likewise.
37782         * string/strcoll.c (STRCOLL): Likewise.
37783         * string/strlen.c (strlen): Likewise.
37784         * string/strtok.c (STRTOK): Likewise.
37785         * string/strcat.c: Remove unused #include of memcopy.h.
37786         (strcat): Use ANSI prototype.
37787         * string/strchr.c: Remove unused #include of memcopy.h.
37788         (strchr): Use ANSI prototype.
37789         * string/strcmp.c: Remove unused #include of memcopy.h.
37790         (strcmp): Use ANSI prototype.
37791         * string/strcpy.c: Remove unused #include of memcopy.h.
37792         (strcpy): Use ANSI prototype.
37793
37794 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37795
37796         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
37797         * config.make.in (config-extra-cppflags): Set it from
37798         libc_extra_cppflags.
37799         * configure.ac (libc_extra_cflags): Make it accumulate over
37800         configure fragments.
37801         (libc_extra_cppflags): New flag.
37802         * configure. Regenerate.
37803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
37804         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
37805         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
37806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
37807
37808         [BZ #16815]
37809         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
37810         result for FE_DOWNWARD rounding mode.
37811         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
37812         Likewise.
37813         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37814
37815 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
37816
37817         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
37818         in function argument name.
37819
37820 2014-04-03  David Svoboda  <svoboda@cert.org>
37821
37822         [BZ #5666]
37823         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
37824         explicitly.
37825
37826 2014-04-03  Roland McGrath  <roland@hack.frob.com>
37827
37828         * elf/dl-unmap-segments.h: New file.
37829         * sysdeps/generic/ldsodefs.h
37830         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
37831         * elf/dl-close.c: Include <dl-unmap-segments.h>.
37832         * elf/dl-fptr.c: Likewise.
37833         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
37834         * sysdeps/aarch64/tlsdesc.c: Likewise.
37835         * sysdeps/arm/tlsdesc.c: Likewise.
37836         * sysdeps/i386/tlsdesc.c: Likewise.
37837         * sysdeps/tile/dl-runtime.c: Likewise.
37838         * sysdeps/x86_64/tlsdesc.c: Likewise.
37839         * elf/dl-load.h: New file.
37840         * elf/dl-load.c: Include it.
37841         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
37842         Macros moved to dl-load.h.
37843         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
37844         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
37845         Use _dl_unmap_segments in place of __munmap.
37846         Break out segment-mapping loop into ...
37847         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
37848
37849 2014-04-03  Will Newton  <will.newton@linaro.org>
37850
37851         * elf/dl-lookup.c (do_lookup_x): Remove comment
37852         referring to nested function and move variable
37853         declarations down to before first use.
37854
37855 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
37856
37857         [BZ #16799]
37858         [BZ #16800]
37859         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
37860         with 0 numerator.
37861         * math/s_catanf.c (__catanf): Likewise.
37862         * math/s_catanh.c (__catanh): Likewise.
37863         * math/s_catanhf.c (__catanhf): Likewise.
37864         * math/s_catanhl.c (__catanhl): Likewise.
37865         * math/s_catanl.c (__catanl): Likewise.
37866         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
37867         by positive zero when computing -Inf result.
37868         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
37869         (catanh_test): Likewise.
37870         * sysdeps/i386/fpu/libm-test-ulps: Update.
37871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37872
37873         [BZ #16789]
37874         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
37875         instead of using underflowing value in computing result.
37876         * math/s_clog10.c (__clog10): Likewise.
37877         * math/s_clog10f.c (__clog10f): Likewise.
37878         * math/s_clog10l.c (__clog10l): Likewise.
37879         * math/s_clogf.c (__clogf): Likewise.
37880         * math/s_clogl.c (__clogl): Likewise.
37881         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
37882         (clog10_test): Likewise.
37883         * sysdeps/i386/fpu/libm-test-ulps: Update.
37884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37885
37886 2014-04-02  Alan Modra  <amodra@gmail.com>
37887
37888         [BZ #16739]
37889         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
37890         output when value is near a power of two.  Use int64_t for lx and
37891         remove casts.  Use decimal rather than hex exponent constants.
37892         Don't use long double multiplication when double will suffice.
37893         * math/libm-test.inc (nextafter_test_data): Add tests.
37894         * NEWS: Add 16739 and 16786 to bug list.
37895
37896         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
37897
37898         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
37899
37900 2014-04-01  Will Newton  <will.newton@linaro.org>
37901
37902         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
37903         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
37904
37905 2014-04-01  Florian Weimer  <fweimer@redhat.com>
37906
37907         [BZ #13347]
37908         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
37909         * nptl/tst-setuid2.c: New file.
37910         * nptl/Makefile (xtests): Add tst-setuid2.
37911
37912 2014-04-01  Alan Modra  <amodra@gmail.com>
37913
37914         [BZ #16786]
37915         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
37916
37917 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
37918
37919         [BZ #6803]
37920         [BZ #6804]
37921         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
37922         set errno as appropriate.
37923         * math/w_scalbf.c (__scalbf): Likewise.
37924         * math/w_scalbl.c (__scalbl): Likewise.
37925         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
37926         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
37927         * math/libm-test.inc (scalb_test_data): Add errno expectations.
37928         Add more NaN tests.
37929
37930         [BZ #16349]
37931         * math/w_atan2.c: Include <errno.h>.
37932         (__atan2): Set errno for result underflowing to zero.
37933         * math/w_atan2f.c: Include <errno.h>.
37934         (__atan2f): Set errno for result underflowing to zero.
37935         * math/w_atan2l.c: Include <errno.h>.
37936         (__atan2l): Set errno for result underflowing to zero.
37937         * math/auto-libm-test-in: Don't allow missing errno for some atan2
37938         tests.
37939         * math/auto-libm-test-out: Regenerated.
37940
37941 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37942
37943         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
37944         Encode instruction correctly in little endian.
37945         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
37946         Likewise.
37947         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
37948         Likewise.
37949         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
37950         Likewise.
37951         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
37952         Likewise.
37953
37954 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
37955
37956         [BZ #9894]
37957         * sysdeps/unix/sysv/linux/kernel-features.h
37958         [__sparc__ && !__arch64__ && !__sparc_v9__]
37959         (__ASSUME_SET_ROBUST_LIST): Do not define.
37960         [__sparc__ && !__arch64__ && !__sparc_v9__]
37961         (__ASSUME_FUTEX_LOCK_PI): Likewise.
37962         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
37963         Likewise.
37964         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37965         (__ASSUME_FUTEX_LOCK_PI): Undefine.
37966         (__ASSUME_REQUEUE_PI): Likewise.
37967         (__ASSUME_SET_ROBUST_LIST): Likewise.
37968         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37969         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
37970         Undefine.
37971         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37972         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
37973         Likewise.
37974         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
37975         Likewise.
37976         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
37977         Likewise.
37978         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37979         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
37980         Undefine.
37981         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
37982         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
37983         Likewise.
37984
37985         [BZ #16648]
37986         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37987         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
37988         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
37989
37990 2014-03-31  Will Newton  <will.newton@linaro.org>
37991
37992         * benchtests/Makefile (bench): Add ffs and ffsll to list
37993         of tests.
37994         * benchtests/ffs-inputs: New file.
37995         * benchtests/ffsll-inputs: Likewise.
37996
37997 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
37998
37999         [BZ #16770]
38000         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
38001         too large before casting to int.
38002         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
38003         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
38004         * math/libm-test.inc (scalb_test_data): Add more tests.
38005
38006 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
38007
38008         * benchtests/Makefile (DETAILED_OPT): New make option.
38009         (bench-func): Run benchmark program with -d if DETAILED_OPT is
38010         set.
38011         * benchtests/bench-skeleton.c: Include stdbool.h.
38012         (main): Store and print timings per input.
38013         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
38014         member to each argument value.
38015         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
38016         (_print_arg_data): Initialize per-input timing to 0.
38017
38018         * benchtests/Makefile (timing-type): New binary.
38019         (bench-clean): Also remove bench-timing-type.
38020         (bench): New target for timing-type.
38021         (bench-func): Print output in JSON format.
38022         * benchtests/bench-skeleton.c (main): Print output in JSON
38023         format.
38024         * benchtests/bench-timing-type.c: New file.
38025         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
38026         (TIMING_PRINT_STATS): Remove.
38027         * benchtests/scripts/bench.py (_print_arg_data): Store variant
38028         name separately.
38029
38030         * benchtests/bench-modf.c: Remove.
38031         * benchtests/modf-inputs: New inputs file.
38032
38033 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
38034
38035         [BZ #16362]
38036         * math/s_clog10.c (M_PI_LOG10E): New macro.
38037         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
38038         imaginary parts are 0.
38039         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
38040         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
38041         imaginary parts are 0.
38042         * math/s_clog10l.c (M_PI_LOG10El): New macro.
38043         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
38044         imaginary parts are 0.
38045         * math/libm-test.inc (clog10_test_data): Update expected results
38046         for when real and imaginary parts are 0.
38047
38048 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
38049
38050         * elf/dl-load.c: Finish conversion of __builtin_expect into
38051         __glibc_{un}likely.
38052
38053 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
38054
38055         [BZ #16348]
38056         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
38057         1+x for argument with exponent below -67.
38058         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
38059         Likewise.
38060         * math/auto-libm-test-in: Add more tests of exp.
38061         * math/auto-libm-test-out: Regenerated.
38062
38063 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38064
38065         [BZ #16759]
38066         * inet/getnetgrent_r.c (get_nonempty_val): New function.
38067         (nscd_getnetgrent): Use it.
38068
38069         [BZ #16760]
38070         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
38071         of stpcpy.
38072
38073 2014-03-27  Andi Kleen  <ak@linux.intel.com>
38074
38075         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
38076         (lll_robust_lock, lll_cond_lock, lll_timedlock)
38077         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
38078         (lll_robust_unlock): Remove out of line section. Use cfi
38079         intrinsics.
38080         (LLL_STUB_UNWIND_INFO*): Remove.
38081         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
38082         (lll_robust_lock, lll_cond_lock, lll_timedlock)
38083         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
38084         (lll_robust_unlock): Remove out of line section. Use cfi
38085         intrinsics.
38086         (LLL_STUB_UNWIND_INFO*): Remove.
38087
38088 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38089
38090         [BZ #16758]
38091         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
38092         blank values.
38093
38094 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
38095
38096         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
38097
38098 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
38099
38100         [BZ #16198]
38101         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
38102         fnstenv.
38103         * math/test-fenv-preserve.c: New file.
38104         * math/Makefile (tests): Add test-fenv-preserve.
38105
38106 2014-03-26  Will Newton <will.newton@linaro.org>
38107
38108         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
38109
38110 2014-03-25  Roland McGrath  <roland@hack.frob.com>
38111
38112         * scripts/versionlist.awk: Partition the version sets and emit all
38113         GLIBC_* (sorted) before all others (sorted).
38114
38115 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
38116
38117         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
38118         GLIBC_2.2.5 version.
38119
38120 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38121
38122         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
38123         calls.
38124
38125         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
38126         previous change.
38127
38128         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38129
38130 2014-03-25  Andreas Schwab  <schwab@suse.de>
38131
38132         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
38133         label to be used after in6ailist is initialized.
38134
38135 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38136
38137         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
38138         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
38139
38140 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
38141
38142         [BZ #16357]
38143         [BZ #16599]
38144         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
38145         min_plus_half.
38146         (fp_formats): Update initializers.
38147         (init_fp_formats): Initialize new field.
38148         (output_for_one_input_case): Allow underflow for results up to
38149         min_plus_half.
38150         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
38151         * math/auto-libm-test-in: Don't mark some underflows from asin and
38152         atanh as spurious.
38153         * math/auto-libm-test-out: Regenerated.
38154         * sysdeps/i386/fpu/libm-test-ulps: Update.
38155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38156
38157 2014-03-25  Andreas Schwab  <schwab@suse.de>
38158
38159         * libio/Makefile (tst-ftell-partial-wide-ENV)
38160         (tst-ftell-active-handler-ENV): Define.
38161
38162 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
38163
38164         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
38165
38166 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
38167
38168         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
38169
38170 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
38171
38172         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
38173         * sysdeps/x86_64/fpu/multiarch/e_exp.c
38174         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
38175
38176 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
38177
38178         [BZ #16634]
38179         * elf/dl-load.c (open_verify): Add mode parameter.
38180         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
38181         (open_path): Change from boolean 'secure' to complete flag 'mode'
38182         (_dl_map_object): Adjust.
38183         * elf/Makefile (tests): Add tst-dlopen-aout.
38184         * elf/tst-dlopen-aout.c: New test.
38185
38186 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
38187
38188         [BZ #16714]
38189         * sysdeps/unix/sysv/linux/s390/bits/stat.h
38190         (struct stat): Rename member pad0 to __glibc_reserved0.
38191
38192         [BZ #16712]
38193         * sysdeps/s390/s390-32/bits/wordsize.h
38194         (__WORDSIZE32_SIZE_ULONG): New define.
38195         * sysdeps/s390/s390-64/bits/wordsize.h
38196         (__WORDSIZE32_SIZE_ULONG): Likewise.
38197         * sysdeps/generic/stdint.h (SIZE_MAX):
38198         Define as UL if __WORDSIZE32_SIZE_ULONG.
38199
38200         [BZ #16713]
38201         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
38202         (__glibc_reserved0): New variable.
38203         (sa_flags): Change type to int.
38204
38205         * posix/Makefile (before-compile): Use += before-compile instead
38206         of a :=.
38207
38208         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
38209         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
38210
38211 2014-03-20  Andreas Schwab  <schwab@suse.de>
38212
38213         [BZ #16743]
38214         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
38215         non-matching result from nscd.
38216
38217 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38218
38219         * scripts/bench.py: Moved to ...
38220         * benchtests/scripts/bench.py: ... here.
38221         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
38222
38223 2014-03-24  Andreas Schwab  <schwab@suse.de>
38224
38225         [BZ #16002]
38226         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
38227         alloca_account and account alloca use for struct in6ailist.
38228
38229 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
38230
38231         [BZ #16284]
38232         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
38233         rounding mode to recompute results that overflow to infinity or
38234         underflow to zero.
38235         * math/auto-libm-test-in: Don't mark tests as expected to fail for
38236         bug 16284.
38237         * math/auto-libm-test-out: Regenerated.
38238         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
38239         (ccosh_test): Likewise.
38240         (csin_test_data): Use plus_oflow.
38241         (csin_test): Use ALL_RM_TEST.
38242         (csinh_test_data): Use plus_oflow.
38243         (csinh_test): Use ALL_RM_TEST.
38244         * sysdeps/i386/fpu/libm-test-ulps: Update.
38245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38246
38247 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
38248
38249         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
38250         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
38251         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
38252
38253         [BZ #16731]
38254         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
38255         when x - 1 is zero.
38256         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
38257         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
38258         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
38259         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
38260         argument is 1.
38261         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
38262         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
38263         zero.
38264         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
38265         * sysdeps/i386/fpu/libm-test-ulps: Update.
38266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38267
38268 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
38269
38270         * scripts/bench.pl: Remove file.
38271         * scripts/bench.py: New benchmark script.
38272         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
38273         * benchtests/README: Mention python dependency.
38274         * scripts/pylintrc: New file.
38275         * scripts/pylint: New file.
38276
38277         * bits/mathdef.h: Use #ifdef instead of #if.
38278         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
38279         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
38280         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
38281         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
38282         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
38283         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
38284
38285 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38286             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
38287
38288         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
38289         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
38290         and strpbrk-ppc64 objects.
38291         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
38292         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
38293         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
38294         multiarch strpbrk for POWER7.
38295         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
38296         multiarch strpbrk for PPC64.
38297         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
38298         ifunc selector.
38299         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
38300         strpbrk for POWER7.
38301
38302 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
38303
38304         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
38305         (atan_test): Likewise.
38306         (atanh_test_data): Use NO_TEST_INLINE for two tests.
38307         (atanh_test): Use ALL_RM_TEST.
38308         (atan2_test_data): Likewise.
38309         (cabs_test): Likewise.
38310         (cacosh_test): Likewise.
38311         (carg_test): Likewise.
38312         (casin_test): Likewise.
38313         (casinh_test): Likewise.
38314         (cbrt_test): Likewise.
38315         (csqrt_test): Likewise.
38316         (erf_test): Likewise.
38317         (erfc_test): Likewise.
38318         (pow10_test): Likewise.
38319         (exp2_test): Likewise.
38320         (hypot_test): Likewise.
38321         (j0_test): Likewise.
38322         (j1_test): Likewise.
38323         (lgamma_test): Likewise.
38324         (gamma_test): Likewise.
38325         (sincos_test): Likewise.
38326         (tanh_test): Likewise.
38327         (y0_test): Likewise.
38328         (y1_test): Likewise.
38329         * sysdeps/i386/fpu/libm-test-ulps: Update.
38330         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38331
38332 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38333
38334         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
38335         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
38336         and strcspn-ppc64 objects.
38337         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
38338         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
38339         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
38340         multiarch strcspn for POWER7.
38341         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
38342         multiarch strcspn for PPC64.
38343         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
38344         ifunc selector.
38345         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
38346         strcspn for POWER7.
38347
38348 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
38349
38350         * math/gen-libm-test.pl (generate_testfile): Expect only function
38351         name as argument to AUTO_TESTS_* and pass results for all rounding
38352         modes to parse_args.
38353         (parse_auto_input): Separate inputs of automatic tests from
38354         outputs before storing in %auto_tests.
38355         * math/libm-test.inc (acos_test_data): Update call to
38356         AUTO_TESTS_f_f.
38357         (acos_test): Use ALL_RM_TEST.
38358         (acos_tonearest_test_data): Remove.
38359         (acos_test_tonearest): Likewise.
38360         (acos_towardzero_test_data): Likewise.
38361         (acos_test_towardzero): Likewise.
38362         (acos_downward_test_data): Likewise.
38363         (acos_test_downward): Likewise.
38364         (acos_upward_test_data): Likewise.
38365         (acos_test_upward): Likewise.
38366         (acosh_test_data): Update call to AUTO_TESTS_f_f.
38367         (asin_test_data): Likewise.
38368         (asin_test): Use ALL_RM_TEST.
38369         (asin_tonearest_test_data): Remove.
38370         (asin_test_tonearest): Likewise.
38371         (asin_towardzero_test_data): Likewise.
38372         (asin_test_towardzero): Likewise.
38373         (asin_downward_test_data): Likewise.
38374         (asin_test_downward): Likewise.
38375         (asin_upward_test_data): Likewise.
38376         (asin_test_upward): Likewise.
38377         (asinh_test_data): Update call to AUTO_TESTS_f_f.
38378         (atan_test_data): Likewise.
38379         (atanh_test_data): Likewise.
38380         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
38381         (cabs_test_data): Update call to AUTO_TESTS_c_f.
38382         (carg_test_data): Likewise.
38383         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
38384         (ccos_test_data): Update call to AUTO_TESTS_c_c.
38385         (ccosh_test_data): Likewise.
38386         (cexp_test_data): Likewise.
38387         (clog_test_data): Likewise.
38388         (clog10_test_data): Likewise.
38389         (cos_test_data): Update call to AUTO_TESTS_f_f.
38390         (cos_test): Use ALL_RM_TEST.
38391         (cos_tonearest_test_data): Remove.
38392         (cos_test_tonearest): Likewise.
38393         (cos_towardzero_test_data): Likewise.
38394         (cos_test_towardzero): Likewise.
38395         (cos_downward_test_data): Likewise.
38396         (cos_test_downward): Likewise.
38397         (cos_upward_test_data): Likewise.
38398         (cos_test_upward): Likewise.
38399         (cosh_test_data): Update call to AUTO_TESTS_f_f.
38400         (cosh_test): Use ALL_RM_TEST.
38401         (cosh_tonearest_test_data): Remove.
38402         (cosh_test_tonearest): Likewise.
38403         (cosh_towardzero_test_data): Likewise.
38404         (cosh_test_towardzero): Likewise.
38405         (cosh_downward_test_data): Likewise.
38406         (cosh_test_downward): Likewise.
38407         (cosh_upward_test_data): Likewise.
38408         (cosh_test_upward): Likewise.
38409         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
38410         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
38411         (ctan_test_data): Likewise.
38412         (ctan_test): Use ALL_RM_TEST.
38413         (ctan_tonearest_test_data): Remove.
38414         (ctan_test_tonearest): Likewise.
38415         (ctan_towardzero_test_data): Likewise.
38416         (ctan_test_towardzero): Likewise.
38417         (ctan_downward_test_data): Likewise.
38418         (ctan_test_downward): Likewise.
38419         (ctan_upward_test_data): Likewise.
38420         (ctan_test_upward): Likewise.
38421         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
38422         (ctanh_test): Use ALL_RM_TEST.
38423         (ctanh_tonearest_test_data): Remove.
38424         (ctanh_test_tonearest): Likewise.
38425         (ctanh_towardzero_test_data): Likewise.
38426         (ctanh_test_towardzero): Likewise.
38427         (ctanh_downward_test_data): Likewise.
38428         (ctanh_test_downward): Likewise.
38429         (ctanh_upward_test_data): Likewise.
38430         (ctanh_test_upward): Likewise.
38431         (erf_test_data): Update call to AUTO_TESTS_f_f.
38432         (erfc_test_data): Likewise.
38433         (exp_test_data): Likewise.
38434         (exp_test): Use ALL_RM_TEST.
38435         (exp_tonearest_test_data): Remove.
38436         (exp_test_tonearest): Likewise.
38437         (exp_towardzero_test_data): Likewise.
38438         (exp_test_towardzero): Likewise.
38439         (exp_downward_test_data): Likewise.
38440         (exp_test_downward): Likewise.
38441         (exp_upward_test_data): Likewise.
38442         (exp_test_upward): Likewise.
38443         (exp10_test_data): Update call to AUTO_TESTS_f_f.
38444         (exp10_test): Use ALL_RM_TEST.
38445         (exp10_tonearest_test_data): Remove.
38446         (exp10_test_tonearest): Likewise.
38447         (exp10_towardzero_test_data): Likewise.
38448         (exp10_test_towardzero): Likewise.
38449         (exp10_downward_test_data): Likewise.
38450         (exp10_test_downward): Likewise.
38451         (exp10_upward_test_data): Likewise.
38452         (exp10_test_upward): Likewise.
38453         (exp2_test_data): Update call to AUTO_TESTS_f_f.
38454         (expm1_test_data): Likewise.
38455         (expm1_test): Use ALL_RM_TEST.
38456         (expm1_tonearest_test_data): Remove.
38457         (expm1_test_tonearest): Likewise.
38458         (expm1_towardzero_test_data): Likewise.
38459         (expm1_test_towardzero): Likewise.
38460         (expm1_downward_test_data): Likewise.
38461         (expm1_test_downward): Likewise.
38462         (expm1_upward_test_data): Likewise.
38463         (expm1_test_upward): Likewise.
38464         (fma_test_data): Update call to AUTO_TESTS_fff_f.
38465         (fma_test): Use ALL_RM_TEST.
38466         (fma_towardzero_test_data): Remove.
38467         (fma_test_towardzero): Likewise.
38468         (fma_downward_test_data): Likewise.
38469         (fma_test_downward): Likewise.
38470         (fma_upward_test_data): Likewise.
38471         (fma_test_upward): Likewise.
38472         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
38473         (j0_test_data): Update call to AUTO_TESTS_f_f.
38474         (j1_test_data): Likewise.
38475         (jn_test_data): Update call to AUTO_TESTS_if_f.
38476         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
38477         (log_test_data): Update call to AUTO_TESTS_f_f.
38478         (log10_test_data): Likewise.
38479         (log1p_test_data): Likewise.
38480         (log2_test_data): Likewise.
38481         (pow_test_data): Update call to AUTO_TESTS_ff_f.
38482         (pow_tonearest_test_data): Likewise.
38483         (sin_test_data): Update call to AUTO_TESTS_f_f.
38484         (sin_test): Use ALL_RM_TEST.
38485         (sin_tonearest_test_data): Remove.
38486         (sin_test_tonearest): Likewise.
38487         (sin_towardzero_test_data): Likewise.
38488         (sin_test_towardzero): Likewise.
38489         (sin_downward_test_data): Likewise.
38490         (sin_test_downward): Likewise.
38491         (sin_upward_test_data): Likewise.
38492         (sin_test_upward): Likewise.
38493         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
38494         (sinh_test_data): Update call to AUTO_TESTS_f_f.
38495         (sinh_test): Use ALL_RM_TEST.
38496         (sinh_tonearest_test_data): Remove.
38497         (sinh_test_tonearest): Likewise.
38498         (sinh_towardzero_test_data): Likewise.
38499         (sinh_test_towardzero): Likewise.
38500         (sinh_downward_test_data): Likewise.
38501         (sinh_test_downward): Likewise.
38502         (sinh_upward_test_data): Likewise.
38503         (sinh_test_upward): Likewise.
38504         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
38505         (sqrt_test): Use ALL_RM_TEST.
38506         (sqrt_tonearest_test_data): Remove.
38507         (sqrt_test_tonearest): Likewise.
38508         (sqrt_towardzero_test_data): Likewise.
38509         (sqrt_test_towardzero): Likewise.
38510         (sqrt_downward_test_data): Likewise.
38511         (sqrt_test_downward): Likewise.
38512         (sqrt_upward_test_data): Likewise.
38513         (sqrt_test_upward): Likewise.
38514         (tan_test_data): Update call to AUTO_TESTS_f_f.
38515         (tan_test): Use ALL_RM_TEST.
38516         (tan_tonearest_test_data): Remove.
38517         (tan_test_tonearest): Likewise.
38518         (tan_towardzero_test_data): Likewise.
38519         (tan_test_towardzero): Likewise.
38520         (tan_downward_test_data): Likewise.
38521         (tan_test_downward): Likewise.
38522         (tan_upward_test_data): Likewise.
38523         (tan_test_upward): Likewise.
38524         (tanh_test_data): Update call to AUTO_TESTS_f_f.
38525         (tgamma_test_data): Likewise.
38526         (y0_test_data): Likewise.
38527         (y1_test_data): Likewise.
38528         (yn_test_data): Update call to AUTO_TESTS_if_f.
38529         (main): Do not call removed functions.
38530
38531 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
38532
38533         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
38534         (ldexp_test_data): Remove.
38535         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
38536         scalbn_test_data.
38537         (scalb_test): Use ALL_RM_TEST.
38538
38539 2014-03-19  Andreas Schwab  <schwab@suse.de>
38540
38541         * nscd/nscd.service: Also invalidate netgroup cache on reload.
38542
38543 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
38544
38545         [BZ #16649]
38546         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
38547         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
38548         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
38549         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
38550         (__ASSUME_PREADV): Undefine.
38551         (__ASSUME_PWRITEV): Likewise.
38552
38553 2014-03-18  Roland McGrath  <roland@hack.frob.com>
38554
38555         * bits/mman-linux.h: Add comment about non-Linux use.
38556         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
38557         bits/mman-linux.h resting place.
38558
38559         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
38560         * bits/mman-linux.h: ... here.
38561
38562 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38563
38564         * conform/conformtest.pl: Add standard definition when calling C
38565         preprocessor on data files.
38566         (checknamespace): Remove unused variable.
38567
38568 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
38569
38570         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
38571         minus_oflow, plus_uflow and minus_uflow in expected results.
38572         * math/libm-test.inc (scalbn_test_data): Add more tests of
38573         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
38574         minus_uflow.
38575         (scalbn_test): Use ALL_RM_TEST.
38576         (scalbln_test_data): Add more tests of negative arguments.  Use
38577         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
38578         (scalbln_test): Use ALL_RM_TEST.
38579
38580 2014-03-18  Roland McGrath  <roland@hack.frob.com>
38581
38582         * scripts/abilist.awk: Ignore symbols marked with .hidden.
38583
38584 2014-03-18  Will Newton  <will.newton@linaro.org>
38585
38586         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
38587         inaccurate comment.
38588
38589 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
38590
38591         * Makerules [!subdir] (check-abi): Exit with error status if a
38592         test failed.
38593
38594 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
38595
38596         * math/libm-test.inc (nearbyint_test_data): Include all tests used
38597         for rint.  Include results for all rounding modes.
38598         (nearbyint_test): Use ALL_RM_TEST.
38599         (rint_test_data): Include all tests used for nearbyint.
38600
38601 2014-03-17  Will Newton  <will.newton@linaro.org>
38602
38603         * nptl/sysdeps/pthread/pthread.h: Revert previous
38604         change.
38605
38606         * sysdeps/generic/ldsodefs.h: Revert previous
38607         change.
38608
38609         * libio/genops.c: Revert previous change.
38610         * libio/libioP.h: Likewise.
38611         * stdio-common/vfprintf.c: Likewise.
38612
38613         * sysdeps/generic/math_private.h: Revert previous
38614         change.
38615
38616         * sysdeps/generic/math_private.h: Check whether
38617         HAVE_RM_CTX is defined with #ifdef rather
38618         than #if.
38619
38620         * argp/argp-fmtstream.h: Check whether
38621         __STRICT_ANSI__ is defined with #ifdef rather
38622         than #if.
38623         * argp/argp.h: Likewise.
38624
38625         * libio/genops.c: Check whether
38626         _IO_JUMPS_OFFSET is defined with #ifdef rather
38627         than #if.
38628         * libio/libioP.h: Likewise.
38629         * stdio-common/vfprintf.c: Likewise.
38630
38631         * sysdeps/generic/ldsodefs.h: Check whether
38632         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
38633         than #if.
38634
38635         * nptl/sysdeps/pthread/pthread.h: Check
38636         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
38637         its value.
38638
38639 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
38640
38641         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
38642         setting O_APPEND.
38643         * libio/tst-ftell-active-handler.c (do_append_test): Add a
38644         test case.
38645
38646         [BZ #16680]
38647         * libio/fileops.c (_IO_file_open): Seek to end of file but
38648         don't cache the offset.
38649         (get_file_offset): Remove function.
38650         (do_ftell): Use cached offset when available.
38651         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
38652         don't cache the offset.
38653         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
38654         case.
38655         (do_one_test): Call it.
38656         (do_ftell_test): Fix up expected old offset for a+ mode.
38657         * libio/wfileops.c (do_ftell_wide): Used cached offset when
38658         available.
38659
38660         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
38661         up test status with function return status.
38662         (do_write_test): Likewise.
38663         (do_append_test): Likewise.
38664
38665         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
38666         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
38667         Remove.
38668
38669 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
38670
38671         * math/gen-libm-test.pl (parse_args): Handle results specified for
38672         each rounding mode separately.
38673         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
38674         tests and results from lrint_tonearest_test_data,
38675         lrint_towardzero_test_data, lrint_downward_test_data and
38676         lrint_upward_test_data.
38677         (lrint_test): Use ALL_RM_TEST.
38678         (lrint_tonearest_test_data): Remove.
38679         (lrint_test_tonearest): Likewise.
38680         (lrint_towardzero_test_data): Likewise.
38681         (lrint_test_towardzero): Likewise.
38682         (lrint_downward_test_data): Likewise.
38683         (lrint_test_downward): Likewise.
38684         (lrint_upward_test_data): Likewise.
38685         (lrint_test_upward): Likewise.
38686         (llrint_test_data): Merge in per-rounding-mode tests and results
38687         from llrint_tonearest_test_data, llrint_towardzero_test_data,
38688         llrint_downward_test_data and llrint_upward_test_data.
38689         (llrint_test): Use ALL_RM_TEST.
38690         (llrint_tonearest_test_data): Remove.
38691         (llrint_test_tonearest): Likewise.
38692         (llrint_towardzero_test_data): Likewise.
38693         (llrint_test_towardzero): Likewise.
38694         (llrint_downward_test_data): Likewise.
38695         (llrint_test_downward): Likewise.
38696         (llrint_upward_test_data): Likewise.
38697         (llrint_test_upward): Likewise.
38698         (rint_test_data): Merge in per-rounding-mode tests and results
38699         from rint_tonearest_test_data, rint_towardzero_test_data,
38700         rint_downward_test_data and rint_upward_test_data.  Add
38701         per-rounding-mode results for tests not in those arrays.
38702         (rint_test): Use ALL_RM_TEST.
38703         (rint_tonearest_test_data): Remove.
38704         (rint_test_tonearest): Likewise.
38705         (rint_towardzero_test_data): Likewise.
38706         (rint_test_towardzero): Likewise.
38707         (rint_downward_test_data): Likewise.
38708         (rint_test_downward): Likewise.
38709         (rint_upward_test_data): Likewise.
38710         (rint_test_upward): Likewise.
38711         (main): Don't call removed functions.
38712
38713 2014-03-14  Roland McGrath  <roland@hack.frob.com>
38714
38715         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
38716         "Compiled on ..." crapola.  It is anti-useful.
38717
38718 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
38719
38720         * scripts/evaluate-test.sh: Handle fourth argument to determine
38721         whether test run should stop on failure.
38722         * Makeconfig (stop-on-test-failure): New variable.
38723         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
38724         $(stop-on-test-failure).
38725         * Makefile (tests): Give a summary of results from testing and
38726         exit with failure status if they include an ERROR or FAIL.
38727         (xtests): Likewise.
38728         * manual/install.texi (Configuring and compiling): Mention
38729         stop-on-test-failure=y.
38730         * INSTALL: Regenerated.
38731
38732 2014-03-14  Roland McGrath  <roland@hack.frob.com>
38733
38734         * scripts/versionlist.awk: New file.
38735         * Makerules [$(build-shared) = yes]
38736         (postclean-generated): Add Versions.def, not Versions.def.v and
38737         Versions.def.v.i.
38738         ($(common-objpfx)Versions.def.v.i): Target removed.
38739         ($(common-objpfx)Versions.def): New target.
38740         ($(common-objpfx)Versions.all): Depend on that rather that
38741         $(common-objpfx)Versions.def.v.
38742         * Versions.def: File removed.
38743
38744         * Makeconfig (+gccwarn): Add -Wundef.
38745         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
38746         a dl-sysdep.h breaking its contract.
38747         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
38748         * include/stackinfo.h: New file.
38749         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
38750         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
38751         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
38752         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
38753         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
38754         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
38755         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38756         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38757         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38758         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38759         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38760         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
38761         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38762         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38763         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38764
38765 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38766
38767         [BZ #16707]
38768         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
38769         implementation.
38770         * math/libm-test.inc (round_test_data): Add more tests.
38771
38772         [BZ #16706]
38773         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
38774         implementation.
38775         * math/libm-test.inc (nearbyint_test_data): Add more tests.
38776
38777         [BZ #16701]
38778         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
38779         implementation.
38780         * math/libm-test.inc (ceil_test_data): Add more tests.
38781
38782         * math/libm-test.inc (trunc_test_data): Add more tests related to
38783         BZ#16414.
38784
38785 2014-03-14  Roland McGrath  <roland@hack.frob.com>
38786
38787         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
38788         with #if rather than #ifdef.
38789         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
38790
38791 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
38792
38793         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
38794         first.  Disable AVX-512 GCC support if assembler doesn't support
38795         it.
38796         * sysdeps/x86_64/configure: Regenerated.
38797
38798 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
38799
38800         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
38801         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
38802         (__old_pthread_attr_setstack): Likewise.
38803         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
38804         [!_STACK_GROWS_DOWN]: Likewise.
38805
38806 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
38807
38808         * config.make.in (have-bash2): Delete.
38809         * configure.ac (libc_cv_have_bash2): Delete.
38810         * configure: Regenerate.
38811         * elf/Makefile (common-ldd-rewrite): Rename to ...
38812         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
38813         (sh-ldd-rewrite): Delete.
38814         (bash-ldd-rewrite): Delete.
38815         (have-bash2): Delete checks.
38816         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
38817         ldd-rewrite.
38818
38819         * config.make.in (have-ksh): Delete.
38820         (KSH): Delete.
38821         * configure.ac (libc_cv_have_ksh): Delete.
38822         * configure: Regenerate.
38823
38824         * elf/Makefile: Delete $(have-ksh) check.
38825         ($(objpfx)sotruss): Change KSH to BASH.
38826         * elf/sotruss.ksh: Rename to ...
38827         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
38828         function style to match POSIX.  Drop ksh vim mode setting.
38829
38830         * manual/time.texi (Specifying the Time Zone with TZ): Change
38831         Tuesday to Thursday.
38832
38833         * debug/tst-longjmp_chk2.c: Update header comment.
38834         (stackoverflow_handler): Add comment.  Call assert on pass value.
38835
38836 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
38837
38838         [BZ #16194]
38839         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
38840         (HAVE_AVX512_ASM_SUPPORT): Likewise.
38841         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
38842         (La_x86_64_vector): Add zmm.
38843         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
38844         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
38845         ($(objpfx)tst-audit10): New target.
38846         ($(objpfx)tst-audit10.out): Likewise.
38847         (tst-audit10-ENV): New.
38848         (AVX512-CFLAGS): Likewise.
38849         (CFLAGS-tst-audit10.c): Likewise.
38850         (CFLAGS-tst-auditmod10a.c): Likewise.
38851         (CFLAGS-tst-auditmod10b.c): Likewise.
38852         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
38853         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
38854         * sysdeps/x86_64/configure: Regenerated.
38855         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
38856         AVX-512 zmm register support.
38857         (_dl_x86_64_save_sse): Likewise.
38858         (_dl_x86_64_restore_sse): Likewise.
38859         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
38860         size vector registers.
38861         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
38862         (ZMM_SIZE): Likewise.
38863         * sysdeps/x86_64/tst-audit10.c: New file.
38864         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
38865         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
38866
38867 2014-03-13  Roland McGrath  <roland@hack.frob.com>
38868
38869         * configure.ac (HAVE_EHDR_START): New check.
38870         * configure: Regenerated.
38871         * config.h.in (HAVE_EHDR_START): New #undef.
38872         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
38873         assuming the lowest-addressed segment maps the start of the file.
38874
38875 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
38876
38877         * INSTALL: Regenerated.
38878
38879 2014-03-13  Will Newton  <will.newton@linaro.org>
38880
38881         * manual/setjmp.texi (System V contexts): Improve
38882         clarity and grammar of documentation.
38883
38884 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
38885
38886         [BZ #16381]
38887         * elf/Makefile (tests): Add tst-pie2.
38888         (tests-pie): Add tst-pie2.
38889         * elf/tst-pie2.c: New file.
38890         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
38891         for ET_EXEC.
38892         * elf/rtld.c (map_doit): Load executable as lt_executable.
38893         (dl_main): Likewise.
38894
38895 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
38896
38897         [BZ #16642]
38898         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
38899         (__ASSUME_PSELECT): Undefine.
38900
38901 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38902
38903         [BZ #16689]
38904         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
38905         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
38906         static build.
38907         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
38908         selector for static builds.
38909
38910 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
38911
38912         [BZ #16695]
38913         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
38914         key in the buffer.
38915
38916 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38917
38918         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
38919         IFUNC selector for static builds.
38920
38921 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
38922
38923         * sysdeps/mips/math_private.h [__mips_hard_float]
38924         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
38925         libc_feresetround_mips_ctx.
38926         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
38927         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
38928         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
38929
38930         [BZ #16677]
38931         * math/s_nextafter.c (__nextafter): Do not return value from
38932         overflowing computation.
38933         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38934         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
38935         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38936         Likewise.
38937         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
38938         Likewise.
38939         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38940         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
38941
38942 2014-03-11  Roland McGrath  <roland@hack.frob.com>
38943
38944         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
38945         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
38946         Move sfi_sp use from the load-multiple (that no longer sets sp) to
38947         the new mov targetting sp.
38948
38949 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38950
38951         [BZ #16683]
38952         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
38953         Define it for static builds as well.
38954         (NO_BZERO_IMPL): Likewise.
38955
38956 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
38957
38958         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
38959         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
38960         multiarch strspn for PPC64.
38961         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
38962         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
38963         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
38964         (__libc_ifunc_impl_list): Likewise.
38965         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
38966         multiarch optimizations
38967         * string/strspn.c (strspn): Using macro to redefine symbol name.
38968
38969 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
38970             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38971
38972         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
38973         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
38974         multiarch strncat for PPC64.
38975         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
38976         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
38977         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
38978         (__libc_ifunc_impl_list): Likewise.
38979         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
38980         multiarch optimizations
38981
38982 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38983
38984         [BZ #16639]
38985         * nscd/nscd.service: Make service type forking.
38986
38987 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38988
38989         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
38990         sign in non default rounding modes.
38991         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
38992
38993 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
38994
38995         * math/libm-test.inc (ALL_RM_TEST): New macro.
38996         (ceil_test): Use ALL_RM_TEST.
38997         (cimag_test): Likewise.
38998         (conj_test): Likewise.
38999         (copysign_test): Likewise.
39000         (cproj_test): Likewise.
39001         (creal_test): Likewise.
39002         (fabs_test): Likewise.
39003         (floor_test): Likewise.
39004         (fmax_test): Likewise.
39005         (fmin_test): Likewise.
39006         (fmod_test): Likewise.
39007         (fpclassify_test): Likewise.
39008         (frexp_test): Likewise.
39009         (ilogb_test): Likewise.
39010         (isfinite_test): Likewise.
39011         (finite_test): Likewise.
39012         (isgreater_test): Likewise.
39013         (isgreaterequal_test): Likewise.
39014         (isinf_test): Likewise.
39015         (isless_test): Likewise.
39016         (islessequal_test): Likewise.
39017         (islessgreater_test): Likewise.
39018         (isnan_test): Likewise.
39019         (isnormal_test): Likewise.
39020         (issignaling_test): Likewise.
39021         (isunordered_test): Likewise.
39022         (logb_test): Likewise.
39023         (logb_downward_test_data): Remove.
39024         (logb_test_downward): Likewise.
39025         (lround_test): Use ALL_RM_TEST.
39026         (llround_test): Likewise.
39027         (modf_test): Likewise.
39028         (nexttoward_test): Likewise.
39029         (remainder_test): Likewise.
39030         (drem_test): Likewise.
39031         (remainder_tonearest_test_data): Likewise.
39032         (remainder_test_tonearest): Likewise.
39033         (drem_test_tonearest): Likewise.
39034         (remainder_towardzero_test_data): Likewise.
39035         (remainder_test_towardzero): Likewise.
39036         (drem_test_towardzero): Likewise.
39037         (remainder_downward_test_data): Likewise.
39038         (remainder_test_downward): Likewise.
39039         (drem_test_downward): Likewise.
39040         (remainder_upward_test_data): Likewise.
39041         (remainder_test_upward): Likewise.
39042         (drem_test_upward): Likewise.
39043         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
39044         (round_test): Use ALL_RM_TEST.
39045         (signbit_test): Likewise.
39046         (trunc_test): Likewise.
39047         (significand_test): Likewise.
39048         (main): Don't call removed functions.
39049
39050 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
39051
39052         [BZ #16674]
39053         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
39054         || __USE_XOPEN2K8].
39055         (ILL_ILLOPN): Likewise.
39056         (ILL_ILLADR): Likewise.
39057         (ILL_ILLTRP): Likewise.
39058         (ILL_PRVOPC): Likewise.
39059         (ILL_PRVREG): Likewise.
39060         (ILL_COPROC): Likewise.
39061         (ILL_BADSTK): Likewise.
39062         (FPE_INTDIV): Likewise.
39063         (FPE_INTOVF): Likewise.
39064         (FPE_FLTDIV): Likewise.
39065         (FPE_FLTOVF): Likewise.
39066         (FPE_FLTUND): Likewise.
39067         (FPE_FLTRES): Likewise.
39068         (FPE_FLTINV): Likewise.
39069         (FPE_FLTSUB): Likewise.
39070         (SEGV_MAPERR): Likewise.
39071         (SEGV_ACCERR): Likewise.
39072         (BUS_ADRALN): Likewise.
39073         (BUS_ADRERR): Likewise.
39074         (BUS_OBJERR): Likewise.
39075         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39076         (TRAP_TRACE): Likewise.
39077         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39078         __USE_XOPEN2K8].
39079         (CLD_KILLED): Likewise.
39080         (CLD_DUMPED): Likewise.
39081         (CLD_TRAPPED): Likewise.
39082         (CLD_STOPPED): Likewise.
39083         (CLD_CONTINUED): Likewise.
39084         (POLL_IN): Likewise.
39085         (POLL_OUT): Likewise.
39086         (POLL_MSG): Likewise.
39087         (POLL_ERR): Likewise.
39088         (POLL_PRI): Likewise.
39089         (POLL_HUP): Likewise.
39090         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
39091         Likewise.
39092         (ILL_ILLOPN): Likewise.
39093         (ILL_ILLADR): Likewise.
39094         (ILL_ILLTRP): Likewise.
39095         (ILL_PRVOPC): Likewise.
39096         (ILL_PRVREG): Likewise.
39097         (ILL_COPROC): Likewise.
39098         (ILL_BADSTK): Likewise.
39099         (FPE_INTDIV): Likewise.
39100         (FPE_INTOVF): Likewise.
39101         (FPE_FLTDIV): Likewise.
39102         (FPE_FLTOVF): Likewise.
39103         (FPE_FLTUND): Likewise.
39104         (FPE_FLTRES): Likewise.
39105         (FPE_FLTINV): Likewise.
39106         (FPE_FLTSUB): Likewise.
39107         (SEGV_MAPERR): Likewise.
39108         (SEGV_ACCERR): Likewise.
39109         (BUS_ADRALN): Likewise.
39110         (BUS_ADRERR): Likewise.
39111         (BUS_OBJERR): Likewise.
39112         (BUS_MCEERR_AR): Likewise.
39113         (BUS_MCEERR_AO): Likewise.
39114         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39115         (TRAP_TRACE): Likewise.
39116         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39117         __USE_XOPEN2K8].
39118         (CLD_KILLED): Likewise.
39119         (CLD_DUMPED): Likewise.
39120         (CLD_TRAPPED): Likewise.
39121         (CLD_STOPPED): Likewise.
39122         (CLD_CONTINUED): Likewise.
39123         (POLL_IN): Likewise.
39124         (POLL_OUT): Likewise.
39125         (POLL_MSG): Likewise.
39126         (POLL_ERR): Likewise.
39127         (POLL_PRI): Likewise.
39128         (POLL_HUP): Likewise.
39129         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
39130         (ILL_ILLOPN): Likewise.
39131         (ILL_ILLADR): Likewise.
39132         (ILL_ILLTRP): Likewise.
39133         (ILL_PRVOPC): Likewise.
39134         (ILL_PRVREG): Likewise.
39135         (ILL_COPROC): Likewise.
39136         (ILL_BADSTK): Likewise.
39137         (FPE_INTDIV): Likewise.
39138         (FPE_INTOVF): Likewise.
39139         (FPE_FLTDIV): Likewise.
39140         (FPE_FLTOVF): Likewise.
39141         (FPE_FLTUND): Likewise.
39142         (FPE_FLTRES): Likewise.
39143         (FPE_FLTINV): Likewise.
39144         (FPE_FLTSUB): Likewise.
39145         (SEGV_MAPERR): Likewise.
39146         (SEGV_ACCERR): Likewise.
39147         (BUS_ADRALN): Likewise.
39148         (BUS_ADRERR): Likewise.
39149         (BUS_OBJERR): Likewise.
39150         (BUS_MCEERR_AR): Likewise.
39151         (BUS_MCEERR_AO): Likewise.
39152         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39153         (TRAP_TRACE): Likewise.
39154         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39155         __USE_XOPEN2K8].
39156         (CLD_KILLED): Likewise.
39157         (CLD_DUMPED): Likewise.
39158         (CLD_TRAPPED): Likewise.
39159         (CLD_STOPPED): Likewise.
39160         (CLD_CONTINUED): Likewise.
39161         (POLL_IN): Likewise.
39162         (POLL_OUT): Likewise.
39163         (POLL_MSG): Likewise.
39164         (POLL_ERR): Likewise.
39165         (POLL_PRI): Likewise.
39166         (POLL_HUP): Likewise.
39167         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
39168         Likewise.
39169         (ILL_ILLOPN): Likewise.
39170         (ILL_ILLADR): Likewise.
39171         (ILL_ILLTRP): Likewise.
39172         (ILL_PRVOPC): Likewise.
39173         (ILL_PRVREG): Likewise.
39174         (ILL_COPROC): Likewise.
39175         (ILL_BADSTK): Likewise.
39176         (ILL_BADIADDR): Likewise.
39177         (ILL_BREAK): Likewise.
39178         (FPE_INTDIV): Likewise.
39179         (FPE_INTOVF): Likewise.
39180         (FPE_FLTDIV): Likewise.
39181         (FPE_FLTOVF): Likewise.
39182         (FPE_FLTUND): Likewise.
39183         (FPE_FLTRES): Likewise.
39184         (FPE_FLTINV): Likewise.
39185         (FPE_FLTSUB): Likewise.
39186         (FPE_DECOVF): Likewise.
39187         (FPE_DECDIV): Likewise.
39188         (FPE_DECERR): Likewise.
39189         (FPE_INVASC): Likewise.
39190         (FPE_INVDEC): Likewise.
39191         (SEGV_MAPERR): Likewise.
39192         (SEGV_ACCERR): Likewise.
39193         (SEGV_PSTKOVF): Likewise.
39194         (BUS_ADRALN): Likewise.
39195         (BUS_ADRERR): Likewise.
39196         (BUS_OBJERR): Likewise.
39197         (BUS_MCEERR_AR): Likewise.
39198         (BUS_MCEERR_AO): Likewise.
39199         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39200         (TRAP_TRACE): Likewise.
39201         (TRAP_BRANCH): Likewise.
39202         (TRAP_HWBKPT): Likewise.
39203         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39204         __USE_XOPEN2K8].
39205         (CLD_KILLED): Likewise.
39206         (CLD_DUMPED): Likewise.
39207         (CLD_TRAPPED): Likewise.
39208         (CLD_STOPPED): Likewise.
39209         (CLD_CONTINUED): Likewise.
39210         (POLL_IN): Likewise.
39211         (POLL_OUT): Likewise.
39212         (POLL_MSG): Likewise.
39213         (POLL_ERR): Likewise.
39214         (POLL_PRI): Likewise.
39215         (POLL_HUP): Likewise.
39216         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
39217         (ILL_ILLOPN): Likewise.
39218         (ILL_ILLADR): Likewise.
39219         (ILL_ILLTRP): Likewise.
39220         (ILL_PRVOPC): Likewise.
39221         (ILL_PRVREG): Likewise.
39222         (ILL_COPROC): Likewise.
39223         (ILL_BADSTK): Likewise.
39224         (FPE_INTDIV): Likewise.
39225         (FPE_INTOVF): Likewise.
39226         (FPE_FLTDIV): Likewise.
39227         (FPE_FLTOVF): Likewise.
39228         (FPE_FLTUND): Likewise.
39229         (FPE_FLTRES): Likewise.
39230         (FPE_FLTINV): Likewise.
39231         (FPE_FLTSUB): Likewise.
39232         (SEGV_MAPERR): Likewise.
39233         (SEGV_ACCERR): Likewise.
39234         (BUS_ADRALN): Likewise.
39235         (BUS_ADRERR): Likewise.
39236         (BUS_OBJERR): Likewise.
39237         (BUS_MCEERR_AR): Likewise.
39238         (BUS_MCEERR_AO): Likewise.
39239         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39240         (TRAP_TRACE): Likewise.
39241         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39242         __USE_XOPEN2K8].
39243         (CLD_KILLED): Likewise.
39244         (CLD_DUMPED): Likewise.
39245         (CLD_TRAPPED): Likewise.
39246         (CLD_STOPPED): Likewise.
39247         (CLD_CONTINUED): Likewise.
39248         (POLL_IN): Likewise.
39249         (POLL_OUT): Likewise.
39250         (POLL_MSG): Likewise.
39251         (POLL_ERR): Likewise.
39252         (POLL_PRI): Likewise.
39253         (POLL_HUP): Likewise.
39254         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
39255         (ILL_ILLOPN): Likewise.
39256         (ILL_ILLADR): Likewise.
39257         (ILL_ILLTRP): Likewise.
39258         (ILL_PRVOPC): Likewise.
39259         (ILL_PRVREG): Likewise.
39260         (ILL_COPROC): Likewise.
39261         (ILL_BADSTK): Likewise.
39262         (FPE_INTDIV): Likewise.
39263         (FPE_INTOVF): Likewise.
39264         (FPE_FLTDIV): Likewise.
39265         (FPE_FLTOVF): Likewise.
39266         (FPE_FLTUND): Likewise.
39267         (FPE_FLTRES): Likewise.
39268         (FPE_FLTINV): Likewise.
39269         (FPE_FLTSUB): Likewise.
39270         (SEGV_MAPERR): Likewise.
39271         (SEGV_ACCERR): Likewise.
39272         (BUS_ADRALN): Likewise.
39273         (BUS_ADRERR): Likewise.
39274         (BUS_OBJERR): Likewise.
39275         (BUS_MCEERR_AR): Likewise.
39276         (BUS_MCEERR_AO): Likewise.
39277         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39278         (TRAP_TRACE): Likewise.
39279         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39280         __USE_XOPEN2K8].
39281         (CLD_KILLED): Likewise.
39282         (CLD_DUMPED): Likewise.
39283         (CLD_TRAPPED): Likewise.
39284         (CLD_STOPPED): Likewise.
39285         (CLD_CONTINUED): Likewise.
39286         (POLL_IN): Likewise.
39287         (POLL_OUT): Likewise.
39288         (POLL_MSG): Likewise.
39289         (POLL_ERR): Likewise.
39290         (POLL_PRI): Likewise.
39291         (POLL_HUP): Likewise.
39292         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
39293         (ILL_ILLOPN): Likewise.
39294         (ILL_ILLADR): Likewise.
39295         (ILL_ILLTRP): Likewise.
39296         (ILL_PRVOPC): Likewise.
39297         (ILL_PRVREG): Likewise.
39298         (ILL_COPROC): Likewise.
39299         (ILL_BADSTK): Likewise.
39300         (FPE_INTDIV): Likewise.
39301         (FPE_INTOVF): Likewise.
39302         (FPE_FLTDIV): Likewise.
39303         (FPE_FLTOVF): Likewise.
39304         (FPE_FLTUND): Likewise.
39305         (FPE_FLTRES): Likewise.
39306         (FPE_FLTINV): Likewise.
39307         (FPE_FLTSUB): Likewise.
39308         (SEGV_MAPERR): Likewise.
39309         (SEGV_ACCERR): Likewise.
39310         (BUS_ADRALN): Likewise.
39311         (BUS_ADRERR): Likewise.
39312         (BUS_OBJERR): Likewise.
39313         (BUS_MCEERR_AR): Likewise.
39314         (BUS_MCEERR_AO): Likewise.
39315         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39316         (TRAP_TRACE): Likewise.
39317         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39318         __USE_XOPEN2K8].
39319         (CLD_KILLED): Likewise.
39320         (CLD_DUMPED): Likewise.
39321         (CLD_TRAPPED): Likewise.
39322         (CLD_STOPPED): Likewise.
39323         (CLD_CONTINUED): Likewise.
39324         (POLL_IN): Likewise.
39325         (POLL_OUT): Likewise.
39326         (POLL_MSG): Likewise.
39327         (POLL_ERR): Likewise.
39328         (POLL_PRI): Likewise.
39329         (POLL_HUP): Likewise.
39330         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
39331         (ILL_ILLOPN): Likewise.
39332         (ILL_ILLADR): Likewise.
39333         (ILL_ILLTRP): Likewise.
39334         (ILL_PRVOPC): Likewise.
39335         (ILL_PRVREG): Likewise.
39336         (ILL_COPROC): Likewise.
39337         (ILL_BADSTK): Likewise.
39338         (ILL_DBLFLT): Likewise.
39339         (ILL_HARDWALL): Likewise.
39340         (FPE_INTDIV): Likewise.
39341         (FPE_INTOVF): Likewise.
39342         (FPE_FLTDIV): Likewise.
39343         (FPE_FLTOVF): Likewise.
39344         (FPE_FLTUND): Likewise.
39345         (FPE_FLTRES): Likewise.
39346         (FPE_FLTINV): Likewise.
39347         (FPE_FLTSUB): Likewise.
39348         (SEGV_MAPERR): Likewise.
39349         (SEGV_ACCERR): Likewise.
39350         (BUS_ADRALN): Likewise.
39351         (BUS_ADRERR): Likewise.
39352         (BUS_OBJERR): Likewise.
39353         (BUS_MCEERR_AR): Likewise.
39354         (BUS_MCEERR_AO): Likewise.
39355         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39356         (TRAP_TRACE): Likewise.
39357         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39358         __USE_XOPEN2K8].
39359         (CLD_KILLED): Likewise.
39360         (CLD_DUMPED): Likewise.
39361         (CLD_TRAPPED): Likewise.
39362         (CLD_STOPPED): Likewise.
39363         (CLD_CONTINUED): Likewise.
39364         (POLL_IN): Likewise.
39365         (POLL_OUT): Likewise.
39366         (POLL_MSG): Likewise.
39367         (POLL_ERR): Likewise.
39368         (POLL_PRI): Likewise.
39369         (POLL_HUP): Likewise.
39370         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
39371         (ILL_ILLOPN): Likewise.
39372         (ILL_ILLADR): Likewise.
39373         (ILL_ILLTRP): Likewise.
39374         (ILL_PRVOPC): Likewise.
39375         (ILL_PRVREG): Likewise.
39376         (ILL_COPROC): Likewise.
39377         (ILL_BADSTK): Likewise.
39378         (FPE_INTDIV): Likewise.
39379         (FPE_INTOVF): Likewise.
39380         (FPE_FLTDIV): Likewise.
39381         (FPE_FLTOVF): Likewise.
39382         (FPE_FLTUND): Likewise.
39383         (FPE_FLTRES): Likewise.
39384         (FPE_FLTINV): Likewise.
39385         (FPE_FLTSUB): Likewise.
39386         (SEGV_MAPERR): Likewise.
39387         (SEGV_ACCERR): Likewise.
39388         (BUS_ADRALN): Likewise.
39389         (BUS_ADRERR): Likewise.
39390         (BUS_OBJERR): Likewise.
39391         (BUS_MCEERR_AR): Likewise.
39392         (BUS_MCEERR_AO): Likewise.
39393         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39394         (TRAP_TRACE): Likewise.
39395         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39396         __USE_XOPEN2K8].
39397         (CLD_KILLED): Likewise.
39398         (CLD_DUMPED): Likewise.
39399         (CLD_TRAPPED): Likewise.
39400         (CLD_STOPPED): Likewise.
39401         (CLD_CONTINUED): Likewise.
39402         (POLL_IN): Likewise.
39403         (POLL_OUT): Likewise.
39404         (POLL_MSG): Likewise.
39405         (POLL_ERR): Likewise.
39406         (POLL_PRI): Likewise.
39407         (POLL_HUP): Likewise.
39408         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
39409         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
39410
39411         [BZ #16670]
39412         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
39413         before #include of <time.h>.
39414         [!__USE_XOPEN2K] (__need_timespec): Likewise.
39415         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
39416         (test-xfail-UNIX98/sched.h/conform): Likewise.
39417
39418 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
39419
39420         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
39421         error absence of trapping exception support.
39422         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
39423
39424 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
39425
39426         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
39427         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
39428         * timezone/Makefile (testdata): Move definition above include of
39429         Rules.
39430         (test-zones): New variable.
39431         (tests-special): Add zone files.
39432         (build-testdata): Use $(evaluate-test).
39433
39434         * elf/Makefile (tests-special): Rename tests to end with .out.
39435         ($(objpfx)noload-mem): Likewise.
39436         ($(objpfx)tst-leaks1-mem): Likewise.
39437         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
39438         * iconv/Makefile (xtests-special): Change test-iconvconfig to
39439         $(objpfx)test-iconvconfig.out.
39440         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
39441         set -e inside subshell and redirect output to file.
39442         * iconvdata/Makefile (generated): Rename tests to end with .out.
39443         Correct type.
39444         (tests-special): Rename tests to end with .out.
39445         ($(objpfx)mtrace-tst-loading): Likewise.
39446         * intl/Makefile (generated): Likewise.
39447         (tests-special): Likewise.
39448         ($(objpfx)mtrace-tst-gettext): Likewise.
39449         * misc/Makefile (generated): Likewise.
39450         (tests-special): Likewise.
39451         ($(objpfx)tst-error1-mem): Likewise.
39452         * nptl/Makefile (tests-special): Likewise.
39453         ($(objpfx)tst-stack3-mem): Likewise.
39454         (generated): Likewise.
39455         * posix/Makefile (generated): Likewise.
39456         (tests-special): Likewise.
39457         (xtests-special): Likewise.
39458         ($(objpfx)tst-fnmatch-mem): Likewise.
39459         ($(objpfx)bug-regex2-mem): Likewise.
39460         ($(objpfx)bug-regex14-mem): Likewise.
39461         ($(objpfx)bug-regex21-mem): Likewise.
39462         ($(objpfx)bug-regex31-mem): Likewise.
39463         ($(objpfx)tst-vfork3-mem): Likewise.
39464         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
39465         ($(objpfx)tst-pcre-mem): Likewise.
39466         ($(objpfx)tst-boost-mem): Likewise.
39467         ($(objpfx)bug-ga2-mem): Likewise.
39468         ($(objpfx)bug-glob2-mem): Likewise.
39469         * resolv/Makefile (generate): Likewise.
39470         (tests-special): Likewise.
39471         (xtests-special): Likewise.
39472         (generated): Likewise.
39473         ($(objpfx)mtrace-tst-leaks): Likewise.
39474         ($(objpfx)mtrace-tst-leaks2): Likewise.
39475
39476         * scripts/merge-test-results.sh: New file.
39477         * Makefile (tests-special-notdir): New variable.
39478         (tests): Run merge-test-results.sh.
39479         (xtests): Likewise.
39480         * Rules (tests-special-notdir): New variable.
39481         (xtests-special-notdir): Likewise.
39482         (tests): Run merge-test-results.sh
39483         (xtests): Likewise.
39484
39485         * Makeconfig (test-xfail-name): New variable.
39486         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
39487         compute variable name for expected failures.
39488         * conform/Makefile (conformtest-headers-data): New variable.
39489         (conformtest-standards): Likewise.
39490         (conformtest-headers-ISO): Likewise.
39491         (conformtest-headers-ISO99): Likewise.
39492         (conformtest-headers-ISO11): Likewise.
39493         (conformtest-headers-POSIX): Likewise.
39494         (conformtest-headers-XPG3): Likewise.
39495         (conformtest-headers-XPG4): Likewise.
39496         (conformtest-headers-UNIX98): Likewise.
39497         (conformtest-headers-XOPEN2K): Likewise.
39498         (conformtest-headers-POSIX2008): Likewise.
39499         (conformtest-headers-XOPEN2K8): Likewise.
39500         (conformtest-header-list-base): Likewise.
39501         (conformtest-header-list-tests): Likewise.
39502         (conformtest-header-base): Likewise.
39503         (conformtest-header-tests): Likewise.
39504         (tests-special): Add $(conformtest-header-list-tests).  If
39505         [$(fast-check) && !$(cross-compiling)], add
39506         $(conformtest-header-tests) instead of
39507         $(objpfx)run-conformtest.out.
39508         (generated): Add $(conformtest-header-list-base).  If
39509         [$(fast-check) && !$(cross-compiling)], add
39510         $(conformtest-header-base).  Remove previous setting.
39511         ($(conformtest-header-list-tests)): New target.
39512         (test-xfail-run-conformtest): Remove variable.
39513         ($(objpfx)run-conformtest.out): Remove target.
39514         (test-xfail-ISO11/complex.h/conform): New variable.
39515         (test-xfail-ISO11/stdalign.h/conform): Likewise.
39516         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
39517         (test-xfail-XPG3/varargs.h/conform): Likewise.
39518         (test-xfail-XPG4/varargs.h/conform): Likewise.
39519         (test-xfail-UNIX98/varargs.h/conform): Likewise.
39520         (test-xfail-XPG4/ndbm.h/conform): Likewise.
39521         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
39522         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
39523         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
39524         (test-xfail-XPG3/fcntl.h/conform): Likewise.
39525         (test-xfail-XPG3/ftw.h/conform): Likewise.
39526         (test-xfail-XPG3/grp.h/conform): Likewise.
39527         (test-xfail-XPG3/langinfo.h/conform): Likewise.
39528         (test-xfail-XPG3/limits.h/conform): Likewise.
39529         (test-xfail-XPG3/pwd.h/conform): Likewise.
39530         (test-xfail-XPG3/search.h/conform): Likewise.
39531         (test-xfail-XPG3/signal.h/conform): Likewise.
39532         (test-xfail-XPG3/stdio.h/conform): Likewise.
39533         (test-xfail-XPG3/stdlib.h/conform): Likewise.
39534         (test-xfail-XPG3/string.h/conform): Likewise.
39535         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
39536         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
39537         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
39538         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
39539         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
39540         (test-xfail-XPG3/sys/types.h/conform): Likewise.
39541         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
39542         (test-xfail-XPG3/termios.h/conform): Likewise.
39543         (test-xfail-XPG3/time.h/conform): Likewise.
39544         (test-xfail-XPG3/unistd.h/conform): Likewise.
39545         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
39546         (test-xfail-XPG4/fcntl.h/conform): Likewise.
39547         (test-xfail-XPG4/langinfo.h/conform): Likewise.
39548         (test-xfail-XPG4/netdb.h/conform): Likewise.
39549         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
39550         (test-xfail-XPG4/signal.h/conform): Likewise.
39551         (test-xfail-XPG4/stdio.h/conform): Likewise.
39552         (test-xfail-XPG4/stdlib.h/conform): Likewise.
39553         (test-xfail-XPG4/stropts.h/conform): Likewise.
39554         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
39555         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
39556         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
39557         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
39558         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
39559         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
39560         (test-xfail-XPG4/sys/time.h/conform): Likewise.
39561         (test-xfail-XPG4/sys/types.h/conform): Likewise.
39562         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
39563         (test-xfail-XPG4/termios.h/conform): Likewise.
39564         (test-xfail-XPG4/ucontext.h/conform): Likewise.
39565         (test-xfail-XPG4/unistd.h/conform): Likewise.
39566         (test-xfail-XPG4/utmpx.h/conform): Likewise.
39567         (test-xfail-POSIX/sched.h/conform): Likewise.
39568         (test-xfail-POSIX/signal.h/conform): Likewise.
39569         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
39570         (test-xfail-POSIX/tar.h/conform): Likewise.
39571         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
39572         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
39573         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
39574         (test-xfail-UNIX98/netdb.h/conform): Likewise.
39575         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
39576         (test-xfail-UNIX98/sched.h/conform): Likewise.
39577         (test-xfail-UNIX98/signal.h/conform): Likewise.
39578         (test-xfail-UNIX98/stdio.h/conform): Likewise.
39579         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
39580         (test-xfail-UNIX98/stropts.h/conform): Likewise.
39581         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
39582         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
39583         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
39584         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
39585         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
39586         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
39587         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
39588         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
39589         (test-xfail-UNIX98/unistd.h/conform): Likewise.
39590         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
39591         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
39592         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
39593         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
39594         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
39595         (test-xfail-XOPEN2K/math.h/conform): Likewise.
39596         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
39597         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
39598         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
39599         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
39600         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
39601         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
39602         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
39603         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
39604         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
39605         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
39606         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
39607         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
39608         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
39609         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
39610         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
39611         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
39612         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
39613         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
39614         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
39615         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
39616         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
39617         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
39618         (test-xfail-POSIX2008/signal.h/conform): Likewise.
39619         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
39620         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
39621         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
39622         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
39623         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
39624         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
39625         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
39626         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
39627         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
39628         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
39629         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
39630         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
39631         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
39632         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
39633         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
39634         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
39635         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
39636         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
39637         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
39638         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
39639         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
39640         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
39641         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
39642         (conformtest-cc-flags): Likewise.
39643         ($(conformtest-header-tests): New target.
39644         * conform/check-header-lists.sh: New file.
39645         * conform/run-conformtest.sh: Remove.
39646
39647         * conform/conformtest.pl: Allow ' and \ in values given for
39648         constants.
39649         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
39650         inclusion.
39651         [POSIX] (sys/types.h): Likewise.
39652         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
39653         inclusion.
39654         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
39655         inclusion.
39656         * conform/data/signal.h-data (SIGIO): Remove expectation.
39657         [XPG3] (SIGBUS): Do not expect.
39658         [POSIX || XPG3] (SIGPOLL): Likewise.
39659         [POSIX || XPG3] (SIGPROF): Likewise.
39660         [POSIX || XPG3] (SIGSYS): Likewise.
39661         [XPG3] (SIGTRAP): Likewise.
39662         [POSIX || XPG3] (SIGURG): Likewise.
39663         [POSIX || XPG3] (SIGVTALRM): Likewise.
39664         [POSIX || XPG3] (SIGXCPU): Likewise.
39665         [POSIX || XPG3] (SIGXFSZ): Likewise.
39666         [POSIX] (SA_SIGINFO): Expect.
39667         [XPG3] (siginfo_t): Do not expect type or contents.
39668         [POSIX] (si_pid): Do not expect element.
39669         [POSIX] (si_uid): Likewise.
39670         [POSIX] (si_addr): Likewise.
39671         [POSIX] (si_status): Likewise.
39672         [POSIX] (si_band): Likewise.
39673         [XPG4] (si_value): Likewise.
39674         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
39675         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
39676         [POSIX || XPG3] (ILL_ILLADR): Likewise.
39677         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
39678         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
39679         [POSIX || XPG3] (ILL_PRVREG): Likewise.
39680         [POSIX || XPG3] (ILL_COPROC): Likewise.
39681         [POSIX || XPG3] (ILL_BADSTK): Likewise.
39682         [POSIX || XPG3] (FPE_INTDIV): Likewise.
39683         [POSIX || XPG3] (FPE_INTOVF): Likewise.
39684         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
39685         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
39686         [POSIX || XPG3] (FPE_FLTUND): Likewise.
39687         [POSIX || XPG3] (FPE_FLTRES): Likewise.
39688         [POSIX || XPG3] (FPE_FLTINV): Likewise.
39689         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
39690         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
39691         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
39692         [POSIX || XPG3] (BUS_ADRALN): Likewise.
39693         [POSIX || XPG3] (BUS_ADRERR): Likewise.
39694         [POSIX || XPG3] (BUS_OBJERR): Likewise.
39695         [POSIX || XPG3] (CLD_EXITED): Likewise.
39696         [POSIX || XPG3] (CLD_KILLED): Likewise.
39697         [POSIX || XPG3] (CLD_DUMPED): Likewise.
39698         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
39699         [POSIX || XPG3] (CLD_STOPPED): Likewise.
39700         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
39701         [POSIX || XPG3] (POLL_IN): Likewise.
39702         [POSIX || XPG3] (POLL_OUT): Likewise.
39703         [POSIX || XPG3] (POLL_MSG): Likewise.
39704         [POSIX || XPG3] (POLL_ERR): Likewise.
39705         [POSIX || XPG3] (POLL_PRI): Likewise.
39706         [POSIX || XPG3] (POLL_HUP): Likewise.
39707         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
39708         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
39709         (SIG*): Do not allow.
39710         [XPG3] (si_*): Likewise.
39711         [XPG3] (SI_*): Likewise.
39712         [XPG3 || XPG4] (sigev_*): Likewise.
39713         [XPG3 || XPG4] (SIGEV_*): Likewise.
39714         [XPG3 || XPG4] (sival_*): Likewise.
39715         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
39716         [POSIX || XPG3] (BUS_*): Likewise.
39717         [POSIX || XPG3] (CLD_*): Likewise.
39718         [POSIX || XPG3] (FPE_*): Likewise.
39719         [POSIX || XPG3] (ILL_*): Likewise.
39720         [POSIX || XPG3] (POLL_*): Likewise.
39721         [POSIX || XPG3] (SEGV_*): Likewise.
39722         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
39723         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
39724         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
39725         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
39726         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
39727         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
39728         Specify type and value.
39729         (TVERSLEN): Likewise.
39730         (REGTYPE): Likewise.
39731         (AREGTYPE): Likewise.
39732         (LNKTYPE): Likewise.
39733         (SYMTYPE): Likewise.
39734         (CHRTYPE): Likewise.
39735         (BLKTYPE): Likewise.
39736         (DIRTYPE): Likewise.
39737         (FIFOTYPE): Likewise.
39738         (CONTTYPE): Likewise.
39739         (TSUID): Likewise.
39740         (TSGID): Likewise.
39741         (TSVTX): Likewise.
39742         (TUREAD): Likewise.
39743         (TUWRITE): Likewise.
39744         (TUEXEC): Likewise.
39745         (TGREAD): Likewise.
39746         (TGWRITE): Likewise.
39747         (TGEXEC): Likewise.
39748         (TOREAD): Likewise.
39749         (TOWRITE): Likewise.
39750         (TOEXEC): Likewise.
39751         [POSIX] (TSVTX): Expect constant.
39752
39753 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
39754
39755         * Makefile (tests): Change dependencies to ....
39756         (tests-special): ... additions to this variable.
39757         (tests): Depend on $(tests-special).
39758         * Makerules (check-abi-list): New variable.
39759         (check-abi): Depend on $(check-abi-list).
39760         [$(subdir) = elf] (tests-special): Add
39761         $(objpfx)check-abi-libc.out.
39762         [$(build-shared) = yes && subdir] (tests-special): Add
39763         $(check-abi-list).
39764         [$(build-shared) = yes && subdir] (tests): Do not depend on
39765         check-abi.
39766         * Rules (tests): Depend on $(tests-special).
39767         (xtests): Depend on $(xtests-special).
39768         * catgets/Makefile (tests): Change dependencies to ....
39769         (tests-special): ... additions to this variable.
39770         * conform/Makefile (tests): Change dependencies to ....
39771         (tests-special): ... additions to this variable.
39772         * elf/Makefile (tests): Change dependencies to ....
39773         (tests-special): ... additions to this variable.
39774         * grp/Makefile (tests): Change dependencies to ....
39775         (tests-special): ... additions to this variable.
39776         * iconv/Makefile (xtests): Change dependencies to ....
39777         (xtests-special): ... additions to this variable.
39778         * iconvdata/Makefile (tests): Change dependencies to ....
39779         (tests-special): ... additions to this variable.
39780         * intl/Makefile (tests): Change dependencies to ....
39781         (tests-special): ... additions to this variable.  Also add
39782         $(objpfx)tst-gettext.out.
39783         * io/Makefile (tests): Change dependencies to ....
39784         (tests-special): ... additions to this variable.
39785         * libio/Makefile (tests): Change dependencies to ....
39786         (tests-special): ... additions to this variable.
39787         * malloc/Makefile (tests): Change dependencies to ....
39788         (tests-special): ... additions to this variable.
39789         * misc/Makefile (tests): Change dependencies to ....
39790         (tests-special): ... additions to this variable.
39791         * nptl/Makefile (tests): Change dependencies to ....
39792         (tests-special): ... additions to this variable.
39793         * nptl_db/Makefile (tests): Change dependencies to ....
39794         (tests-special): ... additions to this variable.
39795         * posix/Makefile (tests): Change dependencies to ....
39796         (tests-special): ... additions to this variable.
39797         (xtests): Change dependencies to ....
39798         (xtests-special): ... additions to this variable.
39799         * resolv/Makefile (tests): Change dependencies to ....
39800         (tests-special): ... additions to this variable.
39801         (xtests): Change dependencies to ....
39802         (xtests-special): ... additions to this variable.
39803         * stdio-common/Makefile (tests): Change dependencies to ....
39804         (tests-special): ... additions to this variable.
39805         (do-tst-unbputc): Remove target.
39806         (do-tst-printf): Likewise.
39807         * stdlib/Makefile (tests): Change dependencies to ....
39808         (tests-special): ... additions to this variable.
39809         * string/Makefile (tests): Change dependencies to ....
39810         (tests-special): ... additions to this variable.
39811         * sysdeps/x86/Makefile (tests): Change dependencies to ....
39812         (tests-special): ... additions to this variable.
39813
39814         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
39815         whole file.
39816         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
39817         whole file.
39818         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
39819         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
39820
39821         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
39822         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
39823         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
39824         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
39825         * conform/data/libgen.h-data [XPG3]: Likewise.
39826         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
39827         * conform/data/ndbm.h-data [XPG3]: Likewise.
39828         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
39829         * conform/data/netdb.h-data [XPG3]: Likewise.
39830         * conform/data/netinet/in.h-data [XPG3]: Likewise.
39831         * conform/data/poll.h-data [XPG3]: Likewise.
39832         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
39833         * conform/data/strings.h-data [XPG3]: Likewise.
39834         * conform/data/stropts.h-data [XPG3]: Likewise.
39835         * conform/data/sys/mman.h-data [XPG3]: Likewise.
39836         * conform/data/sys/resource.h-data [XPG3]: Likewise.
39837         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
39838         Likewise.
39839         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
39840         * conform/data/sys/time.h-data [XPG3]: Likewise.
39841         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
39842         * conform/data/sys/uio.h-data [XPG3]: Likewise.
39843         * conform/data/sys/un.h-data [XPG3]: Likewise.
39844         * conform/data/syslog.h-data [XPG3]: Likewise.
39845         * conform/data/ucontext.h-data [XPG3]: Likewise.
39846         * conform/data/utmpx.h-data [XPG3]: Likewise.
39847         * conform/data/varargs.h-data [UNIX98]: Enable file.
39848
39849         * manual/Makefile (INSTALL_INFO): Remove variable setting.
39850
39851         * math/libm-test.inc (struct test_f_f_data): Move expected results
39852         into structure for each rounding mode.
39853         (struct test_ff_f_data): Likewise.
39854         (struct test_ff_f_data_nexttoward): Likewise.
39855         (struct test_fi_f_data): Likewise.
39856         (struct test_fl_f_data): Likewise.
39857         (struct test_if_f_data): Likewise.
39858         (struct test_fff_f_data): Likewise.
39859         (struct test_c_f_data): Likewise.
39860         (struct test_f_f1_data): Likewise.
39861         (struct test_fF_f1_data): Likewise.
39862         (struct test_ffI_f1_data): Likewise.
39863         (struct test_c_c_data): Likewise.
39864         (struct test_cc_c_data): Likewise.
39865         (struct test_f_i_data): Likewise.
39866         (struct test_ff_i_data): Likewise.
39867         (struct test_f_l_data): Likewise.
39868         (struct test_f_L_data): Likewise.
39869         (struct test_fFF_11_data): Likewise.
39870         (RM_): New macro.
39871         (RM_FE_DOWNWARD): Likewise.
39872         (RM_FE_TONEAREST): Likewise.
39873         (RM_FE_TOWARDZERO): Likewise.
39874         (RM_FE_UPWARD): Likewise.
39875         (RUN_TEST_LOOP_f_f): Update references to expected results.
39876         (RUN_TEST_LOOP_2_f): Likewise.
39877         (RUN_TEST_LOOP_fff_f): Likewise.
39878         (RUN_TEST_LOOP_c_f): Likewise.
39879         (RUN_TEST_LOOP_f_f1): Likewise.
39880         (RUN_TEST_LOOP_fF_f1): Likewise.
39881         (RUN_TEST_LOOP_fI_f1): Likewise.
39882         (RUN_TEST_LOOP_ffI_f1): Likewise.
39883         (RUN_TEST_LOOP_c_c): Likewise.
39884         (RUN_TEST_LOOP_cc_c): Likewise.
39885         (RUN_TEST_LOOP_f_i): Likewise.
39886         (RUN_TEST_LOOP_f_i_tg): Likewise.
39887         (RUN_TEST_LOOP_ff_i_tg): Likewise.
39888         (RUN_TEST_LOOP_f_b): Likewise.
39889         (RUN_TEST_LOOP_f_b_tg): Likewise.
39890         (RUN_TEST_LOOP_f_l): Likewise.
39891         (RUN_TEST_LOOP_f_L): Likewise.
39892         (RUN_TEST_LOOP_fFF_11): Likewise.
39893         * math/gen-libm-test.pl (parse_args): Output four copies of
39894         expected results for each test.
39895
39896         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
39897         (__ASSUME_UTIMES): Remove.
39898         * sysdeps/unix/sysv/linux/tile/kernel-features.h
39899         (__ASSUME_UTIMES): Likewise.
39900
39901         * math/gen-auto-libm-tests.c: Update comment on output format.
39902         (output_for_one_input_case): Generate before-rounding and
39903         after-rounding information as conditions on output flags not
39904         floating-point format.
39905         * math/auto-libm-test-out: Regenerated.
39906         * math/gen-libm-test.pl (cond_value): New function.
39907         (or_cond_value): Use cond_value.
39908         (generate_testfile): Handle conditional exceptions.
39909
39910 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
39911
39912         * math/libm-test.inc (max_valid_error): New variable.
39913         (init_max_error): Take new argument specifying whether function
39914         results are exactly determined.  Set max_valid_error and bound
39915         other variables for errors based on this argument.
39916         (set_max_error): Do not record results above max_valid_error.
39917         (check_float_internal): Only accept errors of up to 0.5ulps if
39918         also at most max_valid_error.
39919         (START): Take new argument EXACT and pass it to init_max_error.
39920         (acos_test): Update call to START.
39921         (acos_test_tonearest): Likewise.
39922         (acos_test_towardzero): Likewise.
39923         (acos_test_downward): Likewise.
39924         (acos_test_upward): Likewise.
39925         (acosh_test): Likewise.
39926         (asin_test): Likewise.
39927         (asin_test_tonearest): Likewise.
39928         (asin_test_towardzero): Likewise.
39929         (asin_test_downward): Likewise.
39930         (asin_test_upward): Likewise.
39931         (asinh_test): Likewise.
39932         (atan_test): Likewise.
39933         (atanh_test): Likewise.
39934         (atan2_test): Likewise.
39935         (cabs_test): Likewise.
39936         (cacos_test): Likewise.
39937         (cacosh_test): Likewise.
39938         (carg_test): Likewise.
39939         (casin_test): Likewise.
39940         (casinh_test): Likewise.
39941         (catan_test): Likewise.
39942         (catanh_test): Likewise.
39943         (cbrt_test): Likewise.
39944         (ccos_test): Likewise.
39945         (ccosh_test): Likewise.
39946         (ceil_test): Likewise.
39947         (cexp_test): Likewise.
39948         (cimag_test): Likewise.
39949         (clog_test): Likewise.
39950         (clog10_test): Likewise.
39951         (conj_test): Likewise.
39952         (copysign_test): Likewise.
39953         (cos_test): Likewise.
39954         (cos_test_tonearest): Likewise.
39955         (cos_test_towardzero): Likewise.
39956         (cos_test_downward): Likewise.
39957         (cos_test_upward): Likewise.
39958         (cosh_test): Likewise.
39959         (cosh_test_tonearest): Likewise.
39960         (cosh_test_towardzero): Likewise.
39961         (cosh_test_downward): Likewise.
39962         (cosh_test_upward): Likewise.
39963         (cpow_test): Likewise.
39964         (cproj_test): Likewise.
39965         (creal_test): Likewise.
39966         (csin_test): Likewise.
39967         (csinh_test): Likewise.
39968         (csqrt_test): Likewise.
39969         (ctan_test): Likewise.
39970         (ctan_test_tonearest): Likewise.
39971         (ctan_test_towardzero): Likewise.
39972         (ctan_test_downward): Likewise.
39973         (ctan_test_upward): Likewise.
39974         (ctanh_test): Likewise.
39975         (ctanh_test_tonearest): Likewise.
39976         (ctanh_test_towardzero): Likewise.
39977         (ctanh_test_downward): Likewise.
39978         (ctanh_test_upward): Likewise.
39979         (erf_test): Likewise.
39980         (erfc_test): Likewise.
39981         (exp_test): Likewise.
39982         (exp_test_tonearest): Likewise.
39983         (exp_test_towardzero): Likewise.
39984         (exp_test_downward): Likewise.
39985         (exp_test_upward): Likewise.
39986         (exp10_test): Likewise.
39987         (exp10_test_tonearest): Likewise.
39988         (exp10_test_towardzero): Likewise.
39989         (exp10_test_downward): Likewise.
39990         (exp10_test_upward): Likewise.
39991         (pow10_test): Likewise.
39992         (exp2_test): Likewise.
39993         (expm1_test): Likewise.
39994         (expm1_test_tonearest): Likewise.
39995         (expm1_test_towardzero): Likewise.
39996         (expm1_test_downward): Likewise.
39997         (expm1_test_upward): Likewise.
39998         (fabs_test): Likewise.
39999         (fdim_test): Likewise.
40000         (floor_test): Likewise.
40001         (fma_test): Likewise.
40002         (fma_test_towardzero): Likewise.
40003         (fma_test_downward): Likewise.
40004         (fma_test_upward): Likewise.
40005         (fmax_test): Likewise.
40006         (fmin_test): Likewise.
40007         (fmod_test): Likewise.
40008         (fpclassify_test): Likewise.
40009         (frexp_test): Likewise.
40010         (hypot_test): Likewise.
40011         (ilogb_test): Likewise.
40012         (isfinite_test): Likewise.
40013         (finite_test): Likewise.
40014         (isgreater_test): Likewise.
40015         (isgreaterequal_test): Likewise.
40016         (isinf_test): Likewise.
40017         (isless_test): Likewise.
40018         (islessequal_test): Likewise.
40019         (islessgreater_test): Likewise.
40020         (isnan_test): Likewise.
40021         (isnormal_test): Likewise.
40022         (issignaling_test): Likewise.
40023         (isunordered_test): Likewise.
40024         (j0_test): Likewise.
40025         (j1_test): Likewise.
40026         (jn_test): Likewise.
40027         (ldexp_test): Likewise.
40028         (lgamma_test): Likewise.
40029         (gamma_test): Likewise.
40030         (lrint_test): Likewise.
40031         (lrint_test_tonearest): Likewise.
40032         (lrint_test_towardzero): Likewise.
40033         (lrint_test_downward): Likewise.
40034         (lrint_test_upward): Likewise.
40035         (llrint_test): Likewise.
40036         (llrint_test_tonearest): Likewise.
40037         (llrint_test_towardzero): Likewise.
40038         (llrint_test_downward): Likewise.
40039         (llrint_test_upward): Likewise.
40040         (log_test): Likewise.
40041         (log10_test): Likewise.
40042         (log1p_test): Likewise.
40043         (log2_test): Likewise.
40044         (logb_test): Likewise.
40045         (logb_test_downward): Likewise.
40046         (lround_test): Likewise.
40047         (llround_test): Likewise.
40048         (modf_test): Likewise.
40049         (nearbyint_test): Likewise.
40050         (nextafter_test): Likewise.
40051         (nexttoward_test): Likewise.
40052         (pow_test): Likewise.
40053         (pow_test_tonearest): Likewise.
40054         (pow_test_towardzero): Likewise.
40055         (pow_test_downward): Likewise.
40056         (pow_test_upward): Likewise.
40057         (remainder_test): Likewise.
40058         (drem_test): Likewise.
40059         (remainder_test_tonearest): Likewise.
40060         (drem_test_tonearest): Likewise.
40061         (remainder_test_towardzero): Likewise.
40062         (drem_test_towardzero): Likewise.
40063         (remainder_test_downward): Likewise.
40064         (drem_test_downward): Likewise.
40065         (remainder_test_upward): Likewise.
40066         (drem_test_upward): Likewise.
40067         (remquo_test): Likewise.
40068         (rint_test): Likewise.
40069         (rint_test_tonearest): Likewise.
40070         (rint_test_towardzero): Likewise.
40071         (rint_test_downward): Likewise.
40072         (rint_test_upward): Likewise.
40073         (round_test): Likewise.
40074         (scalb_test): Likewise.
40075         (scalbn_test): Likewise.
40076         (scalbln_test): Likewise.
40077         (signbit_test): Likewise.
40078         (sin_test): Likewise.
40079         (sin_test_tonearest): Likewise.
40080         (sin_test_towardzero): Likewise.
40081         (sin_test_downward): Likewise.
40082         (sin_test_upward): Likewise.
40083         (sincos_test): Likewise.
40084         (sinh_test): Likewise.
40085         (sinh_test_tonearest): Likewise.
40086         (sinh_test_towardzero): Likewise.
40087         (sinh_test_downward): Likewise.
40088         (sinh_test_upward): Likewise.
40089         (sqrt_test): Likewise.
40090         (sqrt_test_tonearest): Likewise.
40091         (sqrt_test_towardzero): Likewise.
40092         (sqrt_test_downward): Likewise.
40093         (sqrt_test_upward): Likewise.
40094         (tan_test): Likewise.
40095         (tan_test_tonearest): Likewise.
40096         (tan_test_towardzero): Likewise.
40097         (tan_test_downward): Likewise.
40098         (tan_test_upward): Likewise.
40099         (tanh_test): Likewise.
40100         (tgamma_test): Likewise.
40101         (trunc_test): Likewise.
40102         (y0_test): Likewise.
40103         (y1_test): Likewise.
40104         (yn_test): Likewise.
40105         (significand_test): Likewise.
40106
40107         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
40108         individual tests in comment.
40109         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
40110         (prev_max_error): New variable.
40111         (prev_real_max_error): Likewise.
40112         (prev_imag_max_error): Likewise.
40113         (compare_ulp_data): Don't refer to test names in comment.
40114         (find_test_ulps): Remove function.
40115         (find_function_ulps): Likewise.
40116         (find_complex_function_ulps): Likewise.
40117         (init_max_error): Take function name as argument.  Look up ulps
40118         for that function.
40119         (print_ulps): Remove function.
40120         (print_max_error): Use prev_max_error instead of calling
40121         find_function_ulps.
40122         (print_complex_max_error): Use prev_real_max_error and
40123         prev_imag_max_error instead of calling find_complex_function_ulps.
40124         (check_float_internal): Take max_ulp parameter instead of calling
40125         find_test_ulps.  Don't call print_ulps.
40126         (check_float): Update call to check_float_internal.
40127         (check_complex): Update calls to check_float_internal.
40128         (START): Pass argument to init_max_error.
40129         * math/gen-libm-test.pl (%results): Don't include "kind"
40130         information.
40131         (parse_ulps): Don't handle ulps of individual tests.
40132         (print_ulps_file): Likewise.
40133         (output_ulps): Likewise.
40134         * math/README.libm-test: Update.
40135         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
40136         individual tests.
40137         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
40138         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
40139         * sysdeps/arm/libm-test-ulps: Likewise.
40140         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
40141         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
40142         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
40143         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
40144         * sysdeps/microblaze/libm-test-ulps: Likewise.
40145         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
40146         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
40147         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
40148         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
40149         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
40150         * sysdeps/sh/libm-test-ulps: Likewise.
40151         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
40152         * sysdeps/tile/libm-test-ulps: Likewise.
40153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40154
40155 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
40156
40157         * math/libm-test.inc (print_complex_max_error): Check separately
40158         whether real and imaginary errors are within allowed range and
40159         pass 0 to print_complex_function_ulps instead of value within
40160         allowed range.
40161
40162 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
40163
40164         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
40165         formatting.
40166         (get_handles_fopen): Likewise.
40167         (do_write_test): Likewise.
40168
40169         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
40170
40171         * libio/fileops.c (do_ftell): Use cached offset when
40172         available.
40173         * libio/iofwide.c (do_ftell_wide): Likewise.
40174         * libio/iofdopen.c (_IO_new_fdopen): Don't use
40175         _IO_file_attach.
40176         * libio/wfileops.c (_IO_fwide): Don't cache offset.
40177
40178         [BZ #16532]
40179         * libio/libioP.h (get_file_offset): New function.
40180         * libio/fileops.c (get_file_offset): Likewise.
40181         (do_ftell): Likewise.
40182         (_IO_new_file_seekoff): Split out ftell logic.
40183         * libio/wfileops.c (do_ftell_wide): Likewise.
40184         (_IO_wfile_seekoff): Split out ftell logic.
40185         * libio/tst-ftell-active-handler.c: New test case.
40186         * libio/Makefile (tests): Add it.
40187
40188 2014-03-03  Roland McGrath  <roland@hack.frob.com>
40189
40190         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
40191         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
40192
40193 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
40194
40195         [BZ #16639]
40196         * nscd/connections.c (nscd_init): Call do_exit.
40197         (start_threads): Call do_exit and notify_parent.
40198         (begin_drop_privileges): Call do_exit.
40199         (finish_drop_privileges): Likewise.
40200         * nscd/selinux.c (preserve_capabilities): Likewise.
40201         (install_real_capabilities): Likewise.
40202         (nscd_selinux_enabled): Likewise.
40203         (avc_create_thread): Likewise.
40204         (avc_alloc_lock): Likewise.
40205         (nscd_avc_init): Likewise.
40206         * nscd/nscd.c (parent_fd): New static variable.
40207         (main): Create a pipe between parent and child processes.
40208         Skip closing parent_fd.
40209         (monitor_child): New function.
40210         (do_exit): Likewise.
40211         (notify_parent): Likewise.
40212         * nscd/nscd.h (notify_parent): Likewise.
40213         (do_exit): Likewise.
40214
40215 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
40216
40217         * malloc/malloc.c (__libc_calloc): Revert last change.
40218
40219 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40220
40221         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40222
40223 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
40224
40225         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
40226         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
40227         implementation.
40228         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40229         (__libc_ifunc_impl_list): Likewise.
40230         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
40231         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
40232         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
40233         * string/strrchr.c: Define STRRCHR.
40234
40235 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
40236
40237         * benchtest/bench-strtok.c (simple_strtok): Delete.
40238         (strtok_string): Use as benchmark.
40239         * string/strtok (STRTOK): New macro.
40240
40241 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
40242
40243         * manual/threads.texi: Add header and standard comments to all
40244         functions.
40245
40246         * elf/dl-lookup.c (check_match): New function.
40247         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
40248         (do_lookup_x): Remove nested function check_match. Use non-nested
40249         function check_match.
40250
40251 2014-02-28  Roland McGrath  <roland@hack.frob.com>
40252
40253         * csu/Makefile (generated, before-compile): Use += rather than =.
40254         * catgets/Makefile (generated, generated-dirs): Likewise.
40255         * debug/Makefile (generated): Likewise.
40256         * dlfcn/Makefile (generated): Likewise.
40257         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
40258         * iconvdata/Makefile (before-compile, generated): Likewise.
40259         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
40260         * libio/Makefile (generated): Likewise.
40261         * malloc/Makefile (generated): Likewise.
40262         * manual/Makefile (generated, generated-dirs): Likewise.
40263         * misc/Makefile (generated): Likewise.
40264         * posix/Makefile (generated): Likewise.
40265         * resolv/Makefile (generated): Likewise.
40266         * sunrpc/Makefile (generated, generated-dirs): Likewise.
40267         * timezone/Makefile (generated, generated-dirs): Likewise.
40268
40269         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
40270
40271 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40272
40273         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40274         power8 implementation.
40275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
40276         file: POWER8 llround ifunc implementation.
40277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
40278         (__lllround): Add POWER8 implementation.
40279         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
40280         POWER8 llround implementation.
40281
40282         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
40283         power8 implementation.
40284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
40285         file: POWER8 llrint ifunc implementation.
40286         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
40287         Add POWER8 implementation.
40288         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
40289         POWER8 llrint implementation.
40290
40291         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
40292         power8 implementation.
40293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
40294         file: POWER8 finite ifunc implementation.
40295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
40296         Add POWER8 implementation.
40297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
40298         Likewise.
40299         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
40300         POWER8 finite implementation.
40301         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
40302
40303         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
40304         power8 implementation.
40305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
40306         file: POWER8 isinf ifunc implementation.
40307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
40308         POWER8 implementation.
40309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
40310         Likewise.
40311         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
40312         isinf implementation.
40313         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
40314
40315         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
40316         (INIT_ARCH): Add hwcap2 initialization.
40317         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40318         power8 implementation.
40319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
40320         file: POWER8 isnan ifunc implementation.
40321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
40322         POWER8 implementation.
40323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
40324         Likewise.
40325         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
40326         isnan implementation.
40327         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
40328
40329 2014-02-27  Joey Ye  <joey.ye@arm.com>
40330
40331         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
40332         (_FP_NANFRAC_Q): Set to zero.
40333
40334 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40335
40336         [BZ #16623]
40337         * math/auto-libm-test-in: New test inputs.
40338         * math/auto-libm-test-out: Regenerate.
40339         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
40340         and DA.
40341         (__cos): Likewise.
40342         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
40343
40344 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
40345
40346         * scripts/evaluate-test.sh: Take new argument indicating whether
40347         failure is expected.
40348         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
40349         indicating whether failure is expected.
40350         * conform/Makefile (test-xfail-run-conformtest): New variable.
40351         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
40352         level.
40353         * posix/Makefile (test-xfail-annexc): New variable.
40354         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
40355
40356 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
40357
40358         * argp/Makefile: Include Makeconfig immediately after defining
40359         subdir.
40360         * assert/Makefile: Likewise.
40361         * benchtests/Makefile: Likewise.
40362         * catgets/Makefile: Likewise.
40363         * conform/Makefile: Likewise.
40364         * crypt/Makefile: Likewise.
40365         * csu/Makefile: Likewise.
40366         (all): Remove target.
40367         * ctype/Makefile: Include Makeconfig immediately after defining
40368         subdir.
40369         * debug/Makefile: Likewise.
40370         * dirent/Makefile: Likewise.
40371         * dlfcn/Makefile: Likewise.
40372         * gmon/Makefile: Likewise.
40373         * gnulib/Makefile: Likewise.
40374         * grp/Makefile: Likewise.
40375         * gshadow/Makefile: Likewise.
40376         * hesiod/Makefile: Likewise.
40377         * hurd/Makefile: Likewise.
40378         (all): Remove target.
40379         * iconvdata/Makefile: Include Makeconfig immediately after
40380         defining subdir.
40381         * inet/Makefile: Likewise.
40382         * intl/Makefile: Likewise.
40383         * io/Makefile: Likewise.
40384         * libio/Makefile: Likewise.
40385         (all): Remove target.
40386         * locale/Makefile: Include Makeconfig immediately after defining
40387         subdir.
40388         * login/Makefile: Likewise.
40389         * mach/Makefile: Likewise.
40390         (all): Remove target.
40391         * malloc/Makefile: Include Makeconfig immediately after defining
40392         subdir.
40393         (all): Remove target.
40394         * manual/Makefile: Include Makeconfig immediately after defining
40395         subdir.
40396         * math/Makefile: Likewise.
40397         * misc/Makefile: Likewise.
40398         * nis/Makefile: Likewise.
40399         * nss/Makefile: Likewise.
40400         * po/Makefile: Likewise.
40401         (all): Remove target.
40402         * posix/Makefile: Include Makeconfig immediately after defining
40403         subdir.
40404         * pwd/Makefile: Likewise.
40405         * resolv/Makefile: Likewise.
40406         * resource/Makefile: Likewise.
40407         * rt/Makefile: Likewise.
40408         * setjmp/Makefile: Likewise.
40409         * shadow/Makefile: Likewise.
40410         * signal/Makefile: Likewise.
40411         * socket/Makefile: Likewise.
40412         * soft-fp/Makefile: Likewise.
40413         * stdio-common/Makefile: Likewise.
40414         * stdlib/Makefile: Likewise.
40415         * streams/Makefile: Likewise.
40416         * string/Makefile: Likewise.
40417         * sunrpc/Makefile: Likewise.
40418         (all): Remove target.
40419         * sysvipc/Makefile: Include Makeconfig immediately after defining
40420         subdir.
40421         * termios/Makefile: Likewise.
40422         * time/Makefile: Likewise.
40423         * timezone/Makefile: Likewise.
40424         (all): Remove target.
40425         * wcsmbs/Makefile: Include Makeconfig immediately after defining
40426         subdir.
40427         * wctype/Makefile: Likewise.
40428
40429 2014-02-26  Steve Ellcey  <sellcey@mips.com>
40430
40431         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
40432         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
40433         (libc_feholdexcept_setround_mips): Ditto.
40434         (libc_feholdsetround): New.
40435         (libc_feholdsetroundf): New.
40436         (libc_feholdsetroundl): New.
40437         (libc_feupdateenv_test_mips): New.
40438         (libc_feupdateenv_test): New.
40439         (libc_feupdateenv_testf): New.
40440         (libc_feupdateenv_testl): New.
40441         (libc_feresetround): New.
40442         (libc_feresetroundf): New.
40443         (libc_feresetroundl): New.
40444         (libc_fetestexcept_mips): New.
40445         (libc_fetestexcept): New.
40446         (libc_fetestexceptf): New.
40447         (libc_fetestexceptl): New.
40448         (HAVE_RM_CTX): New.
40449         (libc_feholdexcept_setround_mips_ctx): New.
40450         (libc_feholdexcept_setround_ctx): New.
40451         (libc_feholdexcept_setroundf_ctx): New.
40452         (libc_feholdexcept_setroundl_ctx): New.
40453         (libc_fesetenv_mips_ctx): New.
40454         (libc_fesetenv_ctx): New.
40455         (libc_fesetenv_ctxf): New.
40456         (libc_fesetenv_ctxl): New.
40457         (libc_feupdateenv_mips_ctx): New.
40458         (libc_feupdateenv_ctx): New.
40459         (libc_feupdateenvf_ctx): New.
40460         (libc_feupdateenvl_ctx): New.
40461         (libc_feholdsetround_mips_ctx): New.
40462         (libc_feholdsetround_ctx): New.
40463         (libc_feholdsetroundf_ctx): New.
40464         (libc_feholdsetroundl_ctx): New.
40465         (libc_feresetround_mips_ctx): New.
40466         (libc_feresetround_ctx): New.
40467         (libc_feresetroundf_ctx): New.
40468         (libc_feresetroundl_ctx): New.
40469
40470 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
40471
40472         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
40473
40474         * manual/ipc.texi: New file.
40475         * manual/Makefile (chapters): Add ipc.
40476         * manual/job.texi: Add "Inter-Process Communication" to next.
40477         * manual/process.texi: Add "Inter-Process Communication" to prev.
40478
40479 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40480
40481         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40482
40483 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
40484
40485         * malloc/malloc.c (__libc_calloc): Simplify implementation.
40486
40487         * manual/arith.texi: Fix spaces after sentences.
40488         * manual/charset.texi: Likewise.
40489         * manual/errno.texi: Likewise.
40490         * manual/install.texi: Likewise.
40491         * manual/llio.texi: Likewise.
40492         * manual/locale.texi: Likewise.
40493         * manual/maint.texi: Likewise.
40494         * manual/math.texi: Likewise.
40495         * manual/memory.texi: Likewise.
40496         * manual/message.texi: Likewise.
40497         * manual/probes.texi: Likewise.
40498         * manual/resource.texi: Likewise.
40499         * manual/signal.texi: Likewise.
40500         * manual/socket.texi: Likewise.
40501         * manual/stdio.texi: Likewise.
40502         * manual/string.texi: Likewise.
40503         * manual/time.texi: Likewise.
40504         * manual/users.texi: Likewise.
40505
40506 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
40507
40508         [BZ #16632]
40509         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
40510         _DEFAULT_SOURCE is defined.
40511
40512 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
40513             Carlos O'Donell  <carlos@redhat.com>
40514
40515         [BZ #16613]
40516         * elf/dl-tls.c (_dl_count_modids): New function.
40517         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
40518         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
40519         audit library and increment generation counter.
40520         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
40521         * elf/tst-audit9.c: New file.
40522         * elf/tst-auditmod9a.c: New file.
40523         * elf/tst-auditmod9b.c: New file.
40524         * elf/Makefile: Add rules to build and run tst-audit9.
40525
40526 2014-02-25  Florian Weimer  <fweimer@redhat.com>
40527
40528         [BZ #15347]
40529         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
40530
40531 2014-02-25  Will Newton  <will.newton@linaro.org>
40532
40533         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
40534         (__longjmp): Restore sp and lr before restoring callee
40535         saved registers.  Add longjmp and longjmp_target
40536         SystemTap probe point.
40537         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
40538         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
40539         Define to zero to match jmpbuf layout.
40540         * sysdeps/arm/setjmp.S: Include stap-probe.h.
40541         (__sigsetjmp): Save sp and lr before saving callee
40542         saved registers.  Add setjmp SystemTap probe point.
40543
40544 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
40545
40546         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
40547
40548 2014-02-24  Andreas Schwab  <schwab@suse.de>
40549
40550         [BZ #15804]
40551         * elf/pldd.c (wait_for_ptrace_stop): New function.
40552         (main): Call it after attaching.
40553
40554 2014-02-22  Roland McGrath  <roland@hack.frob.com>
40555
40556         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
40557         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
40558         Versions files is now verboten.
40559         * hurd/Versions (libc: GLIBC_2.0):
40560         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
40561         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
40562         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
40563         * mach/Versions: Likewise.
40564
40565         * csu/Versions: Remove unused %include.
40566         * resolv/Versions: Likewise.
40567
40568 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
40569
40570         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
40571         ($(objpfx)check-local-headers.out): Likewise.
40572         ($(objpfx)begin-end-check.out): Likewise.
40573         * Makerules (check-abi-%.out): Likewise.
40574         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
40575         ($(objpfx)test2.cat): Likewise.
40576         ($(objpfx)de/libc.cat): Likewise.
40577         ($(objpfx)test-gencat.out): Likewise.
40578         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
40579         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
40580         ($(objpfx)noload-mem): Likewise.
40581         ($(objpfx)tst-pathopt.out): Likewise.
40582         ($(objpfx)tst-rtld-load-self.out): Likewise.
40583         ($(objpfx)tst-array1-cmp.out): Likewise.
40584         ($(objpfx)tst-array1-static-cmp.out): Likewise.
40585         ($(objpfx)tst-array2-cmp.out): Likewise.
40586         ($(objpfx)tst-array3-cmp.out): Likewise.
40587         ($(objpfx)tst-array4-cmp.out): Likewise.
40588         ($(objpfx)tst-array5-cmp.out): Likewise.
40589         ($(objpfx)tst-array5-static-cmp.out): Likewise.
40590         ($(objpfx)check-textrel.out): Likewise.
40591         ($(objpfx)check-execstack.out): Likewise.
40592         ($(objpfx)check-localplt.out): Likewise.
40593         ($(objpfx)order2-cmp.out): Likewise.
40594         ($(objpfx)tst-leaks1-mem): Likewise.
40595         ($(objpfx)tst-leaks1-static-mem): Likewise.
40596         ($(objpfx)tst-initorder-cmp.out): Likewise.
40597         ($(objpfx)tst-initorder2-cmp.out): Likewise.
40598         ($(objpfx)tst-unused-dep.out): Likewise.
40599         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
40600         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
40601         * iconv/Makefile (test-iconvconfig): Likewise.
40602         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
40603         ($(objpfx)iconv-test.out): Likewise.
40604         ($(objpfx)tst-tables.out): Likewise.
40605         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
40606         ($(objpfx)tst-gettext.out): Likewise.
40607         ($(objpfx)tst-translit.out): Likewise.
40608         ($(objpfx)tst-gettext2.out): Likewise.
40609         ($(objpfx)tst-gettext4.out): Likewise.
40610         ($(objpfx)tst-gettext6.out): Likewise.
40611         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
40612         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
40613         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
40614         ($(objpfx)tst-fopenloc-mem.out): Likewise.
40615         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
40616         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
40617         * posix/Makefile ($(objpfx)globtest.out): Likewise.
40618         ($(objpfx)wordexp-tst.out): Likewise.
40619         ($(objpfx)annexc.out): Likewise.
40620         ($(objpfx)tst-fnmatch-mem): Likewise.
40621         ($(objpfx)bug-regex2-mem): Likewise.
40622         ($(objpfx)bug-regex14-mem): Likewise.
40623         ($(objpfx)bug-regex21-mem): Likewise.
40624         ($(objpfx)bug-regex31-mem): Likewise.
40625         ($(objpfx)tst-vfork3-mem): Likewise.
40626         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
40627         ($(objpfx)tst-pcre-mem): Likewise.
40628         ($(objpfx)tst-boost-mem): Likewise.
40629         ($(objpfx)tst-getconf.out): Likewise.
40630         ($(objpfx)bug-ga2-mem): Likewise.
40631         ($(objpfx)bug-glob2-mem): Likewise.
40632         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
40633         ($(objpfx)mtrace-tst-leaks2): Likewise.
40634         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
40635         ($(objpfx)tst-printf.out): Likewise.
40636         ($(objpfx)tst-setvbuf1.out): Likewise.
40637         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
40638         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
40639         ($(objpfx)tst-fmtmsg.out): Likewise.
40640         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
40641         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
40642
40643         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
40644         * bits/sigaction.h [__USE_MISC]: Likewise.
40645         * bits/waitstatus.h: Update #endif comments.
40646         * ctype/ctype.h: Likewise.
40647         * dirent/dirent.h: Likewise.
40648         [__USE_MISC]: Remove redundant conditionals.
40649         * grp/grp.h: Update #endif comments.
40650         [__USE_GNU]: Remove redundant conditionals.
40651         [__USE_MISC]: Likewise.
40652         * inet/netinet/in.h [__USE_GNU]: Likewise.
40653         * io/sys/stat.h [__USE_MISC]: Likewise.
40654         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
40655         * libio/bits/stdio.h: Update #endif comments.
40656         [__USE_MISC]: Remove redundant conditionals.
40657         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
40658         * libio/stdio.h: Update #endif comments.
40659         [__USE_MISC]: Remove redundant conditionals.
40660         * math/bits/math-finite.h [__USE_MISC]: Likewise.
40661         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
40662         * math/math.h: Update #else and #endif comments.
40663         [__USE_MISC]: Remove redundant conditionals.
40664         * misc/sys/uio.h: Update #endif comments.
40665         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
40666         * posix/glob.h [__USE_MISC]: Likewise.
40667         * posix/sys/types.h: Update #endif comments.
40668         [__USE_MISC]: Remove redundant conditionals.
40669         * posix/sys/wait.h: Update #endif comments.
40670         [__USE_MISC]: Remove redundant conditionals.
40671         * posix/unistd.h: Update #endif comments.
40672         [__USE_MISC]: Remove redundant conditionals.
40673         * pwd/pwd.h [__USE_GNU]: Likewise.
40674         [__USE_MISC]: Likewise.
40675         * resolv/netdb.h [__USE_GNU]: Likewise.
40676         * signal/signal.h: Update #endif comments.
40677         [__USE_MISC]: Remove redundant conditionals.
40678         * stdlib/stdlib.h: Update #else and #endif comments.
40679         [__USE_MISC]: Remove redundant conditionals.
40680         [__USE_GNU]: Likewise.
40681         * string/bits/string2.h [__USE_MISC]: Likewise.
40682         * string/string.h: Update #endif comments.
40683         [__USE_MISC]: Remove redundant conditionals.
40684         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
40685         Likewise.
40686         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
40687         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
40688         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
40689         Likewise.
40690         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
40691         Likewise.
40692         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
40693         comments.
40694         [__USE_MISC]: Remove redundant conditionals.
40695         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
40696         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
40697         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
40698         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
40699         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
40700         Likewise.
40701         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
40702         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
40703         Likewise.
40704         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
40705         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
40706         Likewise.
40707         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
40708         Likewise.
40709         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
40710         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
40711         Likewise.
40712         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
40713         Likewise.
40714         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
40715         * sysdeps/x86/bits/string.h: Update #endif comments.
40716         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
40717         conditionals.
40718         * time/sys/time.h: Update #endif comments.
40719         * time/time.h: Likewise.
40720         [__USE_MISC]: Remove redundant conditionals.
40721
40722 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
40723
40724         [BZ #16600]
40725         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
40726
40727 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
40728
40729         * Versions.def (librt): Add GLIBC_2.17.
40730
40731 2014-02-21  Adam Conrad  <adconrad@0c3.net>
40732
40733         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
40734         synonym for _SYS_AUXV_H to allow direct inclusion.
40735         * sysdeps/sparc/bits/hwcap.h: Likewise.
40736         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
40737         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
40738         * sysdeps/sparc/sysdep.h: Likewise.
40739
40740 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
40741
40742         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
40743
40744 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
40745
40746         * benchtests/bench-strrchr.c: Print length instead of position.
40747
40748 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
40749
40750         [BZ #16611]
40751         * sysdeps/unix/sysv/linux/kernel-features.h
40752         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
40753         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
40754         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
40755         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
40756         Likewise.
40757         [__i386__ || __powerpc__ || __sh__ || __sparc__]
40758         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40759         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
40760         (__ASSUME_SENDMMSG): Define instead of using previous
40761         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
40762         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
40763         (__ASSUME_SENDMMSG_SYSCALL): Define.
40764         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
40765         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
40766         Likewise.
40767         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40768         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
40769         Likewise.
40770         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
40771         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
40772         Likewise.
40773         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
40774         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
40775         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
40776         [__ASSUME_SENDMMSG]: Change conditionals to
40777         [__ASSUME_SENDMMSG_SOCKETCALL].
40778         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40779         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
40780         Define.
40781         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40782         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
40783         Likewise.
40784         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
40785         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
40786         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
40787         [!__ASSUME_SENDMMSG]: Change conditional to
40788         [!__ASSUME_SENDMMSG_SOCKETCALL].
40789         * sysdeps/unix/sysv/linux/tile/kernel-features.h
40790         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
40791         Define.
40792
40793         [BZ #16610]
40794         * sysdeps/unix/sysv/linux/kernel-features.h
40795         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
40796         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
40797         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
40798         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
40799         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
40800         [__i386__ || __sparc__]
40801         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40802         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
40803         (__ASSUME_RECVMMSG): Define instead of using previous
40804         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
40805         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
40806         (__ASSUME_RECVMMSG_SYSCALL): Define.
40807         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
40808         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40809         Likewise.
40810         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40811         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40812         Likewise.
40813         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
40814         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40815         Likewise.
40816         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
40817         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
40818         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
40819         [__ASSUME_RECVMMSG]: Change condition to
40820         [__ASSUME_RECVMMSG_SOCKETCALL].
40821         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40822         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40823         Define.
40824         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40825         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40826         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40827         Likewise.
40828         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
40829         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
40830         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
40831         [!__ASSUME_RECVMMSG]: Change condition to
40832         [!__ASSUME_RECVMMSG_SOCKETCALL].
40833         * sysdeps/unix/sysv/linux/tile/kernel-features.h
40834         (__ASSUME_RECVMMSG_SYSCALL): Define.
40835
40836         [BZ #16609]
40837         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
40838         __powerpc__ || __s390__ || __sh__ || __sparc__]
40839         (__ASSUME_SOCKETCALL): Define.
40840         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
40841         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
40842         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
40843         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
40844         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
40845         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
40846         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
40847         (__ASSUME_ACCEPT4): Define instead of using previous
40848         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
40849         __powerpc__ || __sparc__ || __s390__)] condition.
40850         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
40851         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
40852         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
40853         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
40854         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
40855         [!__ASSUME_ACCEPT4]: Change condition to
40856         [!__ASSUME_ACCEPT4_SOCKETCALL].
40857         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
40858         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
40859         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
40860         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40861         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
40862         __ASSUME_ACCEPT4_SYSCALL.
40863         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
40864         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
40865         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
40866         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
40867         __ASSUME_ACCEPT4_SYSCALL.
40868         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
40869         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
40870         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
40871         [__ASSUME_ACCEPT4]: Change condition to
40872         [__ASSUME_ACCEPT4_SOCKETCALL].
40873         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
40874         (__ASSUME_SOCKETCALL): Define.
40875         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
40876         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40877         (__ASSUME_SOCKETCALL): Define.
40878         (__ASSUME_ACCEPT4): Remove.
40879         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
40880         Define.
40881         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40882         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
40883         Likewise.
40884         * sysdeps/unix/sysv/linux/tile/kernel-features.h
40885         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
40886
40887         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
40888         macro.
40889         (HWCAP_ARM_LPAE): Likewise.
40890         (HWCAP_ARM_EVTSTRM): Likewise.
40891         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
40892         Add vpfd32, lpae and evtstrm.
40893         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
40894         Increase to 22.
40895
40896 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
40897
40898         * math/auto-libm-test-in: Add tests of clog10.
40899         * math/auto-libm-test-out: Regenerated.
40900         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
40901         * sysdeps/i386/fpu/libm-test-ulps: Update.
40902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40903
40904 2014-02-18  Andreas Schwab  <schwab@suse.de>
40905
40906         [BZ #16574]
40907         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
40908         Store non-zero if the second buffer was newly allocated.
40909         (send_dg): Likewise.
40910         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
40911         to send_vc and send_dg.
40912         (res_nsend): Pass NULL for ansp2_malloced.
40913         * resolv/res_query.c (__libc_res_nquery): Add parameter
40914         answerp2_malloced and pass it down to __libc_res_nsend.
40915         (res_nquery): Pass additional NULL to __libc_res_nquery.
40916         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
40917         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
40918         second answer buffer if answerp2_malloced was set.
40919         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
40920         (__libc_res_nquerydomain): Add parameter
40921         answerp2_malloced and pass it down to __libc_res_nquery.
40922         (res_nquerydomain): Pass additional NULL to
40923         __libc_res_nquerydomain.
40924         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
40925         additional NULL to __libc_res_nsend and __libc_res_nquery.
40926         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
40927         additional NULL to __libc_res_nsearch.
40928         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
40929         parameter of __libc_res_nsearch to check for separately allocated
40930         second buffer.
40931         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
40932         __libc_res_nquery.
40933         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
40934         additional NULL to __libc_res_nquery.
40935         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
40936         __libc_res_nsearch.
40937         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
40938         * include/resolv.h: Update prototypes of __libc_res_nquery,
40939         __libc_res_nsearch, __libc_res_nsend.
40940
40941 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
40942
40943         * math/auto-libm-test-in: Add tests of fma.
40944         * math/auto-libm-test-out: Regenerated.
40945         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
40946         (fma_towardzero_test_data): Likewise.
40947         (fma_downward_test_data): Likewise.
40948         (fma_upward_test_data): Likewise.
40949         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
40950         mpc_mode.
40951         (rounding_modes): Add values for new field.
40952         (func_calc_method): Add value mpfr_fff_f.
40953         (func_calc_desc): Add mpfr_fff_f union field.
40954         (test_function): Add field exact_args.
40955         (FUNC): Add macro argument EXACT_ARGS.
40956         (FUNC_mpfr_f_f): Update call to FUNC.
40957         (FUNC_mpfr_f_f): Likewise.
40958         (FUNC_mpfr_ff_f): Likewise.
40959         (FUNC_mpfr_if_f): Likewise.
40960         (FUNC_mpc_c_f): Likewise.
40961         (FUNC_mpc_c_c): Likewise.
40962         (test_functions): Add fma.  Update calls to FUNC.
40963         (handle_input_arg): Add argument exact_args.
40964         (add_test): Update call to handle_input_arg.
40965         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
40966         (output_for_one_input_case): Update call to calc_generic_results.
40967         Recalculate exact zero results in each rounding mode.
40968
40969         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
40970         non-negative before setting low bit.
40971         * math/auto-libm-test-in: Mark one asin test possibly having
40972         spurious underflow.
40973         * math/auto-libm-test-out: Regenerated.
40974         * sysdeps/i386/fpu/libm-test-ulps: Update.
40975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40976
40977 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
40978
40979         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
40980         * sysdeps/unix/sysv/linux/microblaze: Move directory from
40981         ports/sysdeps/unix/sysv/linux/microblaze.
40982         * README: Add missing listing for microblaze*-*-linux-gnu.
40983
40984 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
40985
40986         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
40987         duplicate code
40988
40989 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
40990
40991         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
40992         * sysdeps/unix/sysv/linux/ia64: Move directory from
40993         ports/sysdeps/unix/sysv/linux/ia64.
40994         * README: Update listing for ia64-*-linux-gnu.
40995
40996 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
40997             Joseph Myers  <joseph@codesourcery.com>
40998
40999         * Makeconfig (test-name): New variable.
41000         (evaluate-test): Likewise.
41001         * Makerules (do-test-clean): Remove .test-result files.
41002         (common-mostlyclean): Likewise.
41003         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
41004         * scripts/evaluate-test.sh: New file.
41005
41006 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
41007
41008         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
41009         separate $(objpfx)tst-fopenloc-cmp.out and
41010         $(objpfx)tst-fopenloc-mem.out targets.
41011         (tests): Update dependencies.
41012         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
41013         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
41014         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
41015         (tst-rxspencer-no-utf8-ARGS): New variable.
41016         (tst-rxspencer-no-utf8-ENV): Likewise.
41017         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
41018         instead of $(objpfx)tst-rxspencer-mem.
41019         ($(objpfx)tst-rxspencer-mem): Change target to
41020         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
41021         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
41022         * posix/tst-rxspencer-no-utf8.c: New file.
41023
41024         * elf/Makefile ($(objpfx)order.out): Remove rule.
41025         [$(run-built-tests) = yes] (tests): Depend on
41026         $(objpfx)order-cmp.out.
41027         ($(objpfx)order-cmp.out): New rule.
41028         [$(run-built-tests) = yes] (tests): Depend on
41029         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
41030         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
41031         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
41032         $(objpfx)tst-array5-static-cmp.out.
41033         ($(objpfx)tst-array1.out): Remove rule.
41034         ($(objpfx)tst-array1-cmp.out): New rule.
41035         ($(objpfx)tst-array1-static.out): Remove rule.
41036         ($(objpfx)tst-array1-static-cmp.out): New rule.
41037         ($(objpfx)tst-array2.out): Remove rule.
41038         ($(objpfx)tst-array2-cmp.out): New rule.
41039         ($(objpfx)tst-array3.out): Remove rule.
41040         ($(objpfx)tst-array3-cmp.out): New rule.
41041         ($(objpfx)tst-array4.out): Remove rule.
41042         ($(objpfx)tst-array4-cmp.out): New rule.
41043         ($(objpfx)tst-array5.out): Remove rule.
41044         ($(objpfx)tst-array5-cmp.out): New rule.
41045         ($(objpfx)tst-array5-static.out): Remove rule.
41046         ($(objpfx)tst-array5-static-cmp.out): New rule.
41047         [$(run-built-tests) = yes] (tests): Depend on
41048         $(objpfx)order2-cmp.out.
41049         ($(objpfx)order2.out): Remove rule.
41050         ($(objpfx)order2-cmp.out): New rule.
41051         ($(objpfx)tst-initorder.out): Remove rule.
41052         [$(run-built-tests) = yes] (tests): Depend on
41053         $(objpfx)tst-initorder-cmp.out.
41054         ($(objpfx)tst-initorder-cmp.out): New rule.
41055         ($(objpfx)tst-initorder2.out): Remove rule.
41056         [$(run-built-tests) = yes] (tests): Depend on
41057         $(objpfx)tst-initorder2-cmp.out.
41058         ($(objpfx)tst-initorder2-cmp.out): New rule.
41059         [$(run-built-tests) = yes] (tests): Depend on
41060         $(objpfx)tst-unused-dep-cmp.out.
41061         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
41062         ($(objpfx)tst-unused-dep-cmp.out): New rule.
41063         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
41064         on $(objpfx)tst-setvbuf1-cmp.out.
41065         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
41066         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
41067         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
41068         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
41069         ($(objpfx)tst-svc.out): Remove rule.
41070         ($(objpfx)tst-svc-cmp.out): New rule.
41071
41072 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
41073
41074         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
41075         * ctype/ctype.h [__USE_MISC]: Likewise.
41076         * dirent/dirent.h [__USE_MISC]: Likewise.
41077         * grp/grp.h [__USE_MISC]: Likewise.
41078         * io/fcntl.h [__USE_MISC]: Likewise.
41079         * io/sys/stat.h [__USE_MISC]: Likewise.
41080         * libio/stdio.h [__USE_MISC]: Likewise.
41081         * posix/unistd.h [__USE_MISC]: Likewise.
41082         * pwd/pwd.h [__USE_MISC]: Likewise.
41083         * stdlib.h [__USE_MISC]: Likewise.
41084         * string/bits/string2.h [__USE_MISC]: Likewise.
41085         * string/string.h [__USE_MISC]: Likewise.
41086         * time/time.h [__USE_MISC]: Likewise.
41087
41088 2014-02-13  Andreas Schwab  <schwab@suse.de>
41089
41090         [BZ #16574]
41091         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
41092         second answer buffer if it was separately allocated.
41093
41094 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
41095
41096         * sysdeps/mips/math-tests.h: Include <features.h>.
41097         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
41098         (ROUNDING_TESTS_long_double): Do not define.
41099         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
41100         (EXCEPTION_TESTS_long_double): Likewise.
41101         * sysdeps/mips/mips64/libm-test-ulps: Update.
41102
41103         * include/features.h (__USE_BSD): Remove macro definitions.
41104         (__USE_SVID): Likewise.
41105         (_BSD_SOURCE): Likewise.
41106         (_SVID_SOURCE): Likewise.
41107         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
41108         from definition of _DEFAULT_SOURCE.
41109         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
41110         [_DEFAULT_SOURCE].
41111         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
41112         * bits/mman.h [__USE_BSD]: Likewise.
41113         * bits/termios.h [__USE_BSD]: Likewise.
41114         * bits/waitstatus.h [__USE_BSD]: Likewise.
41115         * ctype/ctype.h [__USE_SVID]: Likewise.
41116         * dirent/dirent.h [__USE_BSD]: Likewise.
41117         * grp/grp.h [__USE_SVID]: Likewise.
41118         [__USE_BSD]: Likewise.
41119         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
41120         * io/fcntl.h [__USE_BSD]: Likewise.
41121         * io/ftw.h [__USE_BSD]: Likewise.
41122         * io/sys/stat.h [__USE_BSD]: Likewise.
41123         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
41124         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
41125         * libio/stdio.h [__USE_SVID]: Likewise.
41126         [__USE_BSD]: Likewise.
41127         * math/math.h [__USE_SVID]: Likewise.
41128         [__USE_BSD]: Likewise.
41129         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
41130         * misc/bits/syslog.h [__USE_BSD]: Likewise.
41131         * misc/search.h [__USE_SVID]: Likewise.
41132         * misc/sys/mman.h [__USE_BSD]: Likewise.
41133         * misc/sys/syslog.h [__USE_BSD]: Likewise.
41134         * misc/sys/uio.h [__USE_BSD]: Likewise.
41135         * posix/bits/unistd.h [__USE_BSD]: Likewise.
41136         * posix/glob.h [__USE_BSD]: Likewise.
41137         * posix/regex.h [__USE_BSD]: Likewise.
41138         * posix/sys/types.h [__USE_BSD]: Likewise.
41139         [__USE_SVID]: Likewise.
41140         * posix/sys/utsname.h [__USE_SVID]: Likewise.
41141         * posix/sys/wait.h [__USE_BSD]: Likewise.
41142         [__USE_SVID]: Likewise.
41143         * posix/unistd.h [__USE_BSD]: Likewise.
41144         [__USE_SVID]: Likewise.
41145         * pwd/pwd.h [__USE_SVID]: Likewise.
41146         * resolv/netdb.h [__USE_BSD]: Likewise.
41147         * setjmp/setjmp.h [__USE_BSD]: Likewise.
41148         * signal/signal.h [__USE_BSD]: Likewise.
41149         [__USE_SVID]: Likewise.
41150         * socket/sys/socket.h [__USE_BSD]: Likewise.
41151         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
41152         * stdlib/stdlib.h [__USE_BSD]: Likewise.
41153         [__USE_SVID]: Likewise.
41154         * string/bits/string2.h [__USE_BSD]: Likewise.
41155         [__USE_SVID]: Likewise.
41156         * string/bits/string3.h [__USE_BSD]: Likewise.
41157         * string/endian.h [__USE_BSD]: Likewise.
41158         * string/string.h [__USE_SVID]: Likewise.
41159         [__USE_BSD]: Likewise.
41160         * string/strings.h [__USE_BSD]: Likewise.
41161         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
41162         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
41163         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
41164         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
41165         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
41166         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
41167         Likewise.
41168         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
41169         Likewise.
41170         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
41171         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
41172         Likewise.
41173         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
41174         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
41175         Likewise.
41176         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
41177         Likewise.
41178         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
41179         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
41180         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
41181         Likewise.
41182         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
41183         Likewise.
41184         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
41185         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
41186         * termios/termios.h [__USE_BSD]: Likewise.
41187         * time/sys/time.h [__USE_BSD]: Likewise.
41188         * time/time.h [__USE_BSD]: Likewise.
41189         [__USE_SVID]: Likewise.
41190
41191         * Makefile (subdir_targets): Remove subdir_lint.out.
41192
41193         * stdio-common/Makefile (do-tst-unbputc): Remove target.
41194         (do-tst-printf): Likewise.
41195         (tests): Depend directly on $(objpfx)tst-unbputc.out and
41196         $(objpfx)tst-printf.out.
41197
41198         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
41199
41200         * Makerules (check-abi-%): Change target to
41201         $(objpfx)check-abi-%.out.
41202         (check-abi target): Update dependencies.
41203         (check-abi-pattern variable): Redirect output of diff to $@.
41204         (check-abi variable): Likewise.
41205         * elf/Makefile (check-abi): Update dependencies.
41206
41207         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
41208         unused.
41209         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
41210         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
41211         subnormal range.
41212         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
41213         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
41214         value has largest subnormal exponent.
41215         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
41216         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
41217         * sysdeps/aarch64/soft-fp/sfp-machine.h
41218         (_FP_TININESS_AFTER_ROUNDING): New macro.
41219         * sysdeps/alpha/soft-fp/sfp-machine.h
41220         (_FP_TININESS_AFTER_ROUNDING): Likewise.
41221         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
41222         Likewise.
41223         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
41224         (_FP_TININESS_AFTER_ROUNDING): Likewise.
41225         * sysdeps/mips/soft-fp/sfp-machine.h
41226         (_FP_TININESS_AFTER_ROUNDING): Likewise.
41227         * sysdeps/powerpc/soft-fp/sfp-machine.h
41228         (_FP_TININESS_AFTER_ROUNDING): Likewise.
41229         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
41230         Likewise.
41231         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
41232         (_FP_TININESS_AFTER_ROUNDING): Likewise.
41233         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
41234         (_FP_TININESS_AFTER_ROUNDING): Likewise.
41235         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
41236         Likewise.
41237
41238 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
41239
41240         [BZ #16545]
41241         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
41242         model 1.
41243
41244 2014-02-12  Richard Henderson  <rth@redhat.com>
41245
41246         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
41247         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
41248         * sysdeps/unix/sysv/linux/alpha: Move directory from
41249         ports/sysdeps/unix/sysv/linux/alpha.
41250         * README: Update listing for alpha-*-linux-gnu.
41251
41252 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
41253
41254         * include/features.h: Update comment documenting feature test
41255         macros.
41256         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
41257         _DEFAULT_SOURCE.
41258         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
41259         (_SVID_SOURCE): Likewise.
41260         (_DEFAULT_SOURCE): Update description of default features.
41261         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
41262         with _GNU_SOURCE.
41263         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
41264         (S_ISVTX): Likewise.
41265         * manual/math.texi (Mathematical Constants): Likewise.
41266         * manual/signal.texi (Interrupted Primitives): Likewise.
41267         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
41268         * math/test-matherr.c (_SVID_SOURCE): Do not define.
41269         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
41270         Don't refer to _SVID_SOURCE in warning text.
41271
41272         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41273
41274         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
41275         already defined.
41276         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
41277         * sysdeps/mips/dl-lookup.c: Remove.
41278         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
41279
41280 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
41281
41282         [BZ #16447]
41283         * math/auto-libm-test-in: Add testcase for expl.
41284         * math/auto-libm-test-out: Regenerate.
41285         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
41286         calculation of unsafe.
41287         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
41288
41289 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
41290
41291         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
41292         * sysdeps/unix/sysv/linux/aarch64: Move directory from
41293         ports/sysdeps/unix/sysv/linux/aarch64.
41294         * README: Update listing for aarch64*-*-linux-gnu.
41295
41296 2014-02-11  Will Newton  <will.newton@linaro.org>
41297
41298         * manual/probes.texi (Mathematical Function Probes): Use
41299         "triggered" instead of "hit".
41300
41301         * manual/probes.texi (Internal Probes): Add documentation
41302         of setjmp, longjmp and longjmp_target probes.
41303
41304         * include/stap-probe.h: Add comment about probe argument
41305         format.
41306
41307         * malloc/mtrace.c (attribute_hidden): Remove unused macro
41308         definition.  (tr_where, tr_freehook, tr_mallochook,
41309         tr_reallochook, tr_memalignhook): Use ANSI protoype.
41310
41311 2014-02-11  David S. Miller  <davem@davemloft.net>
41312
41313         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
41314         processing int_tests.
41315
41316 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
41317
41318         * sysdeps/mips: Move directory from ports/sysdeps/mips.
41319         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
41320         * sysdeps/unix/sysv/linux/mips: Move directory from
41321         ports/sysdeps/unix/sysv/linux/mips.
41322         * README: Update listing for mips-*-linux-gnu and
41323         mips64-*-linux-gnu.
41324
41325 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
41326
41327         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
41328         * sysdeps/unix/sysv/linux/m68k: Move directory from
41329         ports/sysdeps/unix/sysv/linux/m68k.
41330         * README: Update listing for m68k-*-linux-gnu.
41331
41332 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
41333
41334         * sysdeps/tile: Move directory from ports/sysdeps/tile.
41335         * sysdeps/unix/sysv/linux/generic: Move directory from
41336         ports/sysdeps/unix/sysv/linux/generic.
41337         * sysdeps/unix/sysv/linux/tile: Move directory from
41338         ports/sysdeps/unix/sysv/linux/tile.
41339         * README: Update listing for tile*-*-linux-gnu.
41340
41341 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
41342
41343         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
41344         __builtin_expect.
41345         * benchtests/bench-memmem.c (simple_memmem): Likewise.
41346         * catgets/open_catalog.c (__open_catalog): Likewise.
41347         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
41348         * debug/confstr_chk.c: Likewise.
41349         * debug/fread_chk.c (__fread_chk): Likewise.
41350         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
41351         * debug/getgroups_chk.c: Likewise.
41352         * debug/mbsnrtowcs_chk.c: Likewise.
41353         * debug/mbsrtowcs_chk.c: Likewise.
41354         * debug/mbstowcs_chk.c: Likewise.
41355         * debug/memcpy_chk.c: Likewise.
41356         * debug/memmove_chk.c: Likewise.
41357         * debug/mempcpy_chk.c: Likewise.
41358         * debug/memset_chk.c: Likewise.
41359         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
41360         * debug/strcat_chk.c (__strcat_chk): Likewise.
41361         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
41362         * debug/strncat_chk.c (__strncat_chk): Likewise.
41363         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
41364         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
41365         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
41366         * debug/wcpncpy_chk.c: Likewise.
41367         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
41368         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
41369         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
41370         * debug/wcsncpy_chk.c: Likewise.
41371         * debug/wcsnrtombs_chk.c: Likewise.
41372         * debug/wcsrtombs_chk.c: Likewise.
41373         * debug/wcstombs_chk.c: Likewise.
41374         * debug/wmemcpy_chk.c: Likewise.
41375         * debug/wmemmove_chk.c: Likewise.
41376         * debug/wmempcpy_chk.c: Likewise.
41377         * debug/wmemset_chk.c: Likewise.
41378         * dirent/scandirat.c (SCANDIRAT): Likewise.
41379         * dlfcn/dladdr1.c (dladdr1): Likewise.
41380         * dlfcn/dladdr.c (dladdr): Likewise.
41381         * dlfcn/dlclose.c (dlclose_doit): Likewise.
41382         * dlfcn/dlerror.c (__dlerror): Likewise.
41383         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
41384         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
41385         * dlfcn/dlopen.c (dlopen_doit): Likewise.
41386         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
41387         * dlfcn/dlsym.c (dlsym_doit): Likewise.
41388         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
41389         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
41390         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
41391         Likewise.
41392         * elf/dl-conflict.c: Likewise.
41393         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
41394         * elf/dl-dst.h: Likewise.
41395         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
41396         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
41397         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
41398         * elf/dl-init.c (call_init, _dl_init): Likewise.
41399         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
41400         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
41401         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
41402         Likewise.
41403         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
41404         Likewise.
41405         * elf/dl-minimal.c (__libc_memalign): Likewise.
41406         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
41407         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
41408         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
41409         * elf/dl-sym.c (do_sym): Likewise.
41410         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
41411         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
41412         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
41413         * elf/dl-writev.h (_dl_writev): Likewise.
41414         * elf/ldconfig.c (search_dir): Likewise.
41415         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
41416         (dl_main): Likewise.
41417         * elf/setup-vdso.h (setup_vdso): Likewise.
41418         * grp/compat-initgroups.c (compat_call): Likewise.
41419         * grp/fgetgrent.c (fgetgrent): Likewise.
41420         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
41421         * grp/putgrent.c (putgrent): Likewise.
41422         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
41423         Likewise.
41424         * hurd/hurdinit.c: Likewise.
41425         * iconvdata/8bit-gap.c (struct): Likewise.
41426         * iconvdata/ansi_x3.110.c : Likewise.
41427         * iconvdata/big5.c : Likewise.
41428         * iconvdata/big5hkscs.c : Likewise.
41429         * iconvdata/cp1255.c: Likewise.
41430         * iconvdata/cp1258.c : Likewise.
41431         * iconvdata/cp932.c : Likewise.
41432         * iconvdata/euc-cn.c: Likewise.
41433         * iconvdata/euc-jisx0213.c : Likewise.
41434         * iconvdata/euc-jp.c: Likewise.
41435         * iconvdata/euc-jp-ms.c : Likewise.
41436         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
41437         * iconvdata/gb18030.c : Likewise.
41438         * iconvdata/gbbig5.c (const): Likewise.
41439         * iconvdata/gbgbk.c: Likewise.
41440         * iconvdata/gbk.c : Likewise.
41441         * iconvdata/ibm1364.c : Likewise.
41442         * iconvdata/ibm930.c : Likewise.
41443         * iconvdata/ibm932.c: Likewise.
41444         * iconvdata/ibm933.c : Likewise.
41445         * iconvdata/ibm935.c : Likewise.
41446         * iconvdata/ibm937.c : Likewise.
41447         * iconvdata/ibm939.c : Likewise.
41448         * iconvdata/ibm943.c: Likewise.
41449         * iconvdata/iso_11548-1.c: Likewise.
41450         * iconvdata/iso-2022-cn.c : Likewise.
41451         * iconvdata/iso-2022-cn-ext.c : Likewise.
41452         * iconvdata/iso-2022-jp-3.c: Likewise.
41453         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
41454         * iconvdata/iso-2022-kr.c : Likewise.
41455         * iconvdata/iso646.c (gconv_end): Likewise.
41456         * iconvdata/iso_6937-2.c : Likewise.
41457         * iconvdata/iso_6937.c : Likewise.
41458         * iconvdata/iso8859-1.c: Likewise.
41459         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
41460         * iconvdata/shift_jisx0213.c : Likewise.
41461         * iconvdata/sjis.c : Likewise.
41462         * iconvdata/t.61.c : Likewise.
41463         * iconvdata/tcvn5712-1.c : Likewise.
41464         * iconvdata/tscii.c: Likewise.
41465         * iconvdata/uhc.c : Likewise.
41466         * iconvdata/unicode.c (gconv_end): Likewise.
41467         * iconvdata/utf-16.c (gconv_end): Likewise.
41468         * iconvdata/utf-32.c (gconv_end): Likewise.
41469         * iconvdata/utf-7.c (base64): Likewise.
41470         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
41471         * iconv/gconv_close.c (__gconv_close): Likewise.
41472         * iconv/gconv_open.c (__gconv_open): Likewise.
41473         * iconv/gconv_simple.c (internal_ucs4_loop_single)
41474         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
41475         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
41476         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
41477         (ucs4le_internal_loop_single): Likewise.
41478         * iconv/iconv.c (iconv): Likewise.
41479         * iconv/iconv_close.c: Likewise.
41480         * iconv/loop.c (SINGLE): Likewise.
41481         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
41482         * include/atomic.h: Likewise.
41483         * inet/inet6_option.c (option_alloc): Likewise.
41484         * intl/bindtextdom.c (set_binding_values): Likewise.
41485         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
41486         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
41487         * intl/localealias.c (read_alias_file): Likewise.
41488         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
41489         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
41490         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
41491         * libio/fmemopen.c (fmemopen): Likewise.
41492         * libio/iofgets.c (_IO_fgets): Likewise.
41493         * libio/iofgets_u.c (fgets_unlocked): Likewise.
41494         * libio/iofgetws.c (fgetws): Likewise.
41495         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
41496         * libio/iogetdelim.c (_IO_getdelim): Likewise.
41497         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
41498         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
41499         * locale/findlocale.c (_nl_find_locale): Likewise.
41500         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
41501         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
41502         Likewise.
41503         * locale/setlocale.c (setlocale): Likewise.
41504         * login/programs/pt_chown.c (main): Likewise.
41505         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
41506         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
41507         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
41508         (mmap, mmap64, mremap, munmap): Likewise.
41509         * math/e_exp2l.c: Likewise.
41510         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
41511         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
41512         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
41513         * math/s_catan.c (__catan): Likewise.
41514         * math/s_catanf.c (__catanf): Likewise.
41515         * math/s_catanh.c (__catanh): Likewise.
41516         * math/s_catanhf.c (__catanhf): Likewise.
41517         * math/s_catanhl.c (__catanhl): Likewise.
41518         * math/s_catanl.c (__catanl): Likewise.
41519         * math/s_ccosh.c (__ccosh): Likewise.
41520         * math/s_ccoshf.c (__ccoshf): Likewise.
41521         * math/s_ccoshl.c (__ccoshl): Likewise.
41522         * math/s_cexp.c (__cexp): Likewise.
41523         * math/s_cexpf.c (__cexpf): Likewise.
41524         * math/s_cexpl.c (__cexpl): Likewise.
41525         * math/s_clog10.c (__clog10): Likewise.
41526         * math/s_clog10f.c (__clog10f): Likewise.
41527         * math/s_clog10l.c (__clog10l): Likewise.
41528         * math/s_clog.c (__clog): Likewise.
41529         * math/s_clogf.c (__clogf): Likewise.
41530         * math/s_clogl.c (__clogl): Likewise.
41531         * math/s_csin.c (__csin): Likewise.
41532         * math/s_csinf.c (__csinf): Likewise.
41533         * math/s_csinh.c (__csinh): Likewise.
41534         * math/s_csinhf.c (__csinhf): Likewise.
41535         * math/s_csinhl.c (__csinhl): Likewise.
41536         * math/s_csinl.c (__csinl): Likewise.
41537         * math/s_csqrt.c (__csqrt): Likewise.
41538         * math/s_csqrtf.c (__csqrtf): Likewise.
41539         * math/s_csqrtl.c (__csqrtl): Likewise.
41540         * math/s_ctan.c (__ctan): Likewise.
41541         * math/s_ctanf.c (__ctanf): Likewise.
41542         * math/s_ctanh.c (__ctanh): Likewise.
41543         * math/s_ctanhf.c (__ctanhf): Likewise.
41544         * math/s_ctanhl.c (__ctanhl): Likewise.
41545         * math/s_ctanl.c (__ctanl): Likewise.
41546         * math/w_pow.c: Likewise.
41547         * math/w_powf.c: Likewise.
41548         * math/w_powl.c: Likewise.
41549         * math/w_scalb.c (sysv_scalb): Likewise.
41550         * math/w_scalbf.c (sysv_scalbf): Likewise.
41551         * math/w_scalbl.c (sysv_scalbl): Likewise.
41552         * misc/error.c (error_tail): Likewise.
41553         * misc/pselect.c (__pselect): Likewise.
41554         * nis/nis_callback.c (__nis_create_callback): Likewise.
41555         * nis/nis_call.c (__nisfind_server): Likewise.
41556         * nis/nis_creategroup.c (nis_creategroup): Likewise.
41557         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
41558         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
41559         * nis/nis_getservlist.c (nis_getservlist): Likewise.
41560         * nis/nis_lookup.c (nis_lookup): Likewise.
41561         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
41562         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
41563         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
41564         * nis/nis_xdr.c (xdr_endpoint): Likewise.
41565         * nis/nss_compat/compat-grp.c (getgrent_next_file)
41566         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
41567         * nis/nss_compat/compat-initgroups.c (add_group)
41568         (internal_getgrent_r): Likewise.
41569         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
41570         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
41571         * nis/nss_compat/compat-spwd.c (getspent_next_file)
41572         (internal_getspnam_r): Likewise.
41573         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
41574         (_nss_nis_getaliasbyname_r): Likewise.
41575         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
41576         (_nss_nis_getntohost_r): Likewise.
41577         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
41578         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
41579         (_nss_nis_getgrgid_r): Likewise.
41580         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
41581         (internal_nis_gethostent_r, internal_gethostbyname2_r)
41582         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
41583         (_nss_nis_gethostbyname4_r): Likewise.
41584         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
41585         (initgroups_netid): Likewise.
41586         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
41587         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
41588         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
41589         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
41590         (_nss_nis_getprotobynumber_r): Likewise.
41591         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
41592         (_nss_nis_getsecretkey): Likewise.
41593         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
41594         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
41595         (_nss_nis_getpwuid_r): Likewise.
41596         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
41597         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
41598         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
41599         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
41600         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
41601         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
41602         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
41603         Likewise.
41604         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
41605         (_nss_nisplus_getntohost_r): Likewise.
41606         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
41607         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
41608         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
41609         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
41610         Likewise.
41611         * nis/nss_nisplus/nisplus-initgroups.c
41612         (_nss_nisplus_initgroups_dyn): Likewise.
41613         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
41614         (_nss_nisplus_getnetbyaddr_r): Likewise.
41615         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
41616         (_nss_nisplus_getprotobynumber_r): Likewise.
41617         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
41618         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
41619         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
41620         Likewise.
41621         * nis/nss_nisplus/nisplus-service.c
41622         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
41623         (_nss_nisplus_getservbyport_r): Likewise.
41624         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
41625         (_nss_nisplus_getspnam_r): Likewise.
41626         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
41627         Likewise.
41628         * nscd/aicache.c (addhstaiX): Likewise.
41629         * nscd/cache.c (cache_search, prune_cache): Likewise.
41630         * nscd/connections.c (register_traced_file, send_ro_fd)
41631         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
41632         (main_loop_epoll): Likewise.
41633         * nscd/grpcache.c (addgrbyX): Likewise.
41634         * nscd/hstcache.c (addhstbyX): Likewise.
41635         * nscd/initgrcache.c (addinitgroupsX): Likewise.
41636         * nscd/mem.c (gc, mempool_alloc): Likewise.
41637         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
41638         (addinnetgrX): Likewise.
41639         * nscd/nscd-client.h (__nscd_acquire_maplock)
41640         (__nscd_drop_map_ref): Likewise.
41641         * nscd/nscd_getai.c (__nscd_getai): Likewise.
41642         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
41643         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
41644         Likewise.
41645         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
41646         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
41647         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
41648         (__nscd_get_map_ref): Likewise.
41649         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
41650         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
41651         Likewise.
41652         * nscd/pwdcache.c (addpwbyX): Likewise.
41653         * nscd/selinux.c (preserve_capabilities): Likewise.
41654         * nscd/servicescache.c (addservbyX): Likewise.
41655         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
41656         * posix/fnmatch.c (fnmatch): Likewise.
41657         * posix/getopt.c (_getopt_internal_r): Likewise.
41658         * posix/glob.c (glob, glob_in_dir): Likewise.
41659         * posix/wordexp.c (exec_comm_child): Likewise.
41660         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
41661         (getanswer_r, gaih_getanswer_slice): Likewise.
41662         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
41663         * resolv/res_init.c: Likewise.
41664         * resolv/res_mkquery.c (res_nmkquery): Likewise.
41665         * resolv/res_query.c (__libc_res_nquery): Likewise.
41666         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
41667         Likewise.
41668         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
41669         * stdio-common/perror.c (perror): Likewise.
41670         * stdio-common/printf_fp.c (___printf_fp): Likewise.
41671         * stdio-common/tmpnam.c (tmpnam): Likewise.
41672         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
41673         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
41674         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
41675         Likewise.
41676         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
41677         * stdlib/putenv.c (putenv): Likewise.
41678         * stdlib/setenv.c (__add_to_environ): Likewise.
41679         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
41680         * stdlib/strtol_l.c (INTERNAL): Likewise.
41681         * string/memmem.c (memmem): Likewise.
41682         * string/strerror.c (strerror): Likewise.
41683         * string/strnlen.c (__strnlen): Likewise.
41684         * string/test-memmem.c (simple_memmem): Likewise.
41685         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
41686         * sunrpc/pm_getport.c (__get_socket): Likewise.
41687         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
41688         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
41689         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
41690         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
41691         Likewise.
41692         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
41693         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
41694         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
41695         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
41696         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
41697         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
41698         Likewise.
41699         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
41700         Likewise.
41701         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
41702         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
41703         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
41704         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
41705         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
41706         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
41707         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
41708         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
41709         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
41710         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
41711         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
41712         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
41713         Likewise.
41714         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
41715         Likewise.
41716         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
41717         Likewise.
41718         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
41719         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
41720         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
41721         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
41722         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
41723         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
41724         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
41725         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
41726         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
41727         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
41728         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
41729         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
41730         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41731         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
41732         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
41733         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
41734         Likewise.
41735         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
41736         Likewise.
41737         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
41738         Likewise.
41739         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
41740         Likewise.
41741         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
41742         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
41743         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
41744         Likewise.
41745         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
41746         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
41747         * sysdeps/posix/opendir.c (__opendirat): Likewise.
41748         * sysdeps/posix/sleep.c: Likewise.
41749         * sysdeps/posix/tempname.c: Likewise.
41750         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
41751         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
41752         Likewise.
41753         * sysdeps/powerpc/powerpc32/dl-machine.h
41754         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
41755         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41756         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
41757         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
41758         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
41759         Likewise.
41760         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
41761         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
41762         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
41763         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
41764         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
41765         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
41766         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
41767         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
41768         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
41769         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
41770         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
41771         (elf_machine_lazy_rel): Likewise.
41772         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
41773         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
41774         (elf_machine_lazy_rel): Likewise.
41775         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
41776         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
41777         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
41778         * sysdeps/unix/grantpt.c (grantpt): Likewise.
41779         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
41780         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
41781         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
41782         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
41783         Likewise.
41784         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
41785         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
41786         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
41787         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
41788         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
41789         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
41790         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
41791         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
41792         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
41793         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
41794         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
41795         Likewise.
41796         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
41797         (__posix_fallocate64_l64): Likewise.
41798         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
41799         (posix_fallocate): Likewise.
41800         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
41801         Likewise.
41802         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
41803         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
41804         (getifaddrs_internal): Likewise.
41805         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
41806         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
41807         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
41808         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
41809         * sysdeps/unix/sysv/linux/posix_fallocate64.c
41810         (__posix_fallocate64_l64): Likewise.
41811         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
41812         Likewise.
41813         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
41814         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
41815         (__get_clockfreq): Likewise.
41816         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
41817         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
41818         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
41819         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
41820         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
41821         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
41822         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
41823         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
41824         Likewise.
41825         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
41826         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
41827         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
41828         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
41829         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
41830         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
41831         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
41832         Likewise.
41833         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
41834         (posix_fallocate): Likewise.
41835         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
41836         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
41837         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
41838         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
41839         (elf_machine_rela, elf_machine_rela_relative)
41840         (elf_machine_lazy_rel): Likewise.
41841         * time/asctime.c (asctime_internal): Likewise.
41842         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
41843         * time/tzset.c (__tzset_parse_tz): Likewise.
41844         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
41845         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
41846         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
41847         * wcsmbs/wcsmbsload.h: Likewise.
41848
41849         [BZ #15894]
41850         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
41851
41852         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
41853         (arena_get2): Remove THREAD_STATS conditionals.
41854         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
41855         (__malloc_stats, int): Likewise.
41856
41857 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
41858
41859         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
41860         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
41861
41862         * manual/setjmp.texi: Fix typos/grammar errors.
41863
41864         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
41865         Only return early when n is <= 0.  Delete unused return statement.
41866
41867         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
41868         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
41869         * debug/tst-longjmp_chk3.c: New file.
41870
41871         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
41872         (test_main): Replace code with set_fortify_handler call.
41873         * debug/test-strcpy_chk.c: Likewise.
41874         * debug/tst-chk1.c: Likewise.
41875         * debug/tst-longjmp_chk.c: Likewise.
41876         * test-skeleton.c: Include fcntl.h & paths.h
41877         (set_fortify_handler): Define.
41878
41879         * debug/tst-longjmp_chk.c: Add header comment and include
41880         ../test-skeleton.c.
41881         (do_test): Mark static.
41882         (TEST_FUNCTION): Define.
41883
41884         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
41885         (IP_PMTUDISC_INTERFACE): Likewise.
41886         (IP_MULTICAST_IF): Likewise.
41887         (IP_MULTICAST_TTL): Likewise.
41888         (IP_MULTICAST_LOOP): Likewise.
41889         (IP_ADD_MEMBERSHIP): Likewise.
41890         (IP_DROP_MEMBERSHIP): Likewise.
41891         (IP_UNBLOCK_SOURCE): Likewise.
41892         (IP_BLOCK_SOURCE): Likewise.
41893         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
41894         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
41895         (IP_MSFILTER): Likewise.
41896         (MCAST_JOIN_GROUP): Likewise.
41897         (MCAST_BLOCK_SOURCE): Likewise.
41898         (MCAST_UNBLOCK_SOURCE): Likewise.
41899         (MCAST_LEAVE_GROUP): Likewise.
41900         (MCAST_JOIN_SOURCE_GROUP): Likewise.
41901         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
41902         (MCAST_MSFILTER): Likewise.
41903         (IP_MULTICAST_ALL): Likewise.
41904         (IP_UNICAST_IF): Likewise.
41905
41906         * timezone/Makefile: Delete $(have-ksh) check.
41907         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
41908         * timezone/tzselect.ksh: Add +x mode bits.
41909
41910         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
41911         (ANON_INODE_FS_MAGIC): Likewise.
41912         (BDEVFS_MAGIC): Likewise.
41913         (BINFMTFS_MAGIC): Likewise.
41914         (BTRFS_TEST_MAGIC): Likewise.
41915         (CRAMFS_MAGIC_WEND): Likewise.
41916         (DEBUGFS_MAGIC): Likewise.
41917         (ECRYPTFS_SUPER_MAGIC): Likewise.
41918         (EXT3_SUPER_MAGIC): Likewise.
41919         (EXT4_SUPER_MAGIC): Likewise.
41920         (FUTEXFS_SUPER_MAGIC): Likewise.
41921         (HOSTFS_SUPER_MAGIC): Likewise.
41922         (HUGETLBFS_MAGIC): Likewise.
41923         (MINIX3_SUPER_MAGIC): Likewise.
41924         (MTD_INODE_FS_MAGIC): Likewise.
41925         (NILFS_SUPER_MAGIC): Likewise.
41926         (OPENPROM_SUPER_MAGIC): Likewise.
41927         (PIPEFS_MAGIC): Likewise.
41928         (PSTOREFS_MAGIC): Likewise.
41929         (QNX6_SUPER_MAGIC): Likewise.
41930         (RAMFS_MAGIC): Likewise.
41931         (REISERFS_SUPER_MAGIC_STRING): Likewise.
41932         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
41933         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
41934         (SECURITYFS_MAGIC): Likewise.
41935         (SELINUX_MAGIC): Likewise.
41936         (SMACK_MAGIC): Likewise.
41937         (SOCKFS_MAGIC): Likewise.
41938         (SQUASHFS_MAGIC): Likewise.
41939         (STACK_END_MAGIC): Likewise.
41940         (TMPFS_MAGIC): Likewise.
41941         (USBDEVICE_SUPER_MAGIC): Likewise.
41942         (V9FS_MAGIC): Likewise.
41943         (XENFS_SUPER_MAGIC): Likewise.
41944         (CRAMFS_MAGIC): Fix typo in comment.
41945         (EXT2_SUPER_MAGIC): Update comment.
41946         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
41947
41948 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
41949
41950         * sysdeps/arm: Move directory from ports/sysdeps/arm.
41951         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
41952         * sysdeps/unix/sysv/linux/arm: Move directory from
41953         ports/sysdeps/unix/sysv/linux/arm.
41954         * README: Update listing for arm-*-linux-gnueabi.
41955
41956         * README: Remove mention of am33.
41957
41958 2014-02-07  Roland McGrath  <roland@hack.frob.com>
41959
41960         * bits/sigset.h (__sigemptyset): Use a statement expression rather
41961         than the comma operator, to avoid "rhs of comma has no effect"
41962         compiler warnings.
41963         (__sigfillset, __sigandset, __sigorset): Likewise.
41964         * include/signal.h (__sigemptyset): Likewise.
41965         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
41966
41967 2014-02-07  Allan McRae  <allan@archlinux.org>
41968
41969         * version.h (RELEASE): Set to "development".
41970         (VERSION): Set to "2.19.90"
41971         * NEWS: Add 2.20 section.
41972
41973 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
41974
41975         [BZ #16529]
41976         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
41977
41978 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41979
41980         * manual/contrib.texi: Update entry for Carlos O'Donell,
41981         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
41982
41983 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
41984
41985         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
41986
41987         * sysdeps/unix/sysv/linux/kernel-features.h
41988         [__LINUX_KERNEL_VERSION >= 0x020621]
41989         (__ASSUME_PROC_PID_TASK_COMM): Define.
41990
41991 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41992
41993         [BZ #16398]
41994         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
41995         conversion when destination buffer does not have enough space.
41996         * libio/tst-ftell-partial-wide.c: New test case.
41997         * libio/Makefile (tests): Add tst-ftell-partial-wide.
41998
41999         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
42000         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
42001         Leonard and Allan McRae.
42002
42003 2014-02-04  David S. Miller  <davem@davemloft.net>
42004
42005         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
42006         32-bit.
42007
42008 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42009
42010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
42011         New file
42012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
42013         New file
42014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
42015         New file.
42016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
42017         New file.
42018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
42019         New file.
42020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
42021         New file.
42022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
42023         New file.
42024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
42025         New file.
42026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
42027         New file.
42028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
42029         New file.
42030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
42031         New file.
42032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
42033         New file.
42034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
42035         New file.
42036
42037 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42038
42039         * nptl/shlib-versions: Change powerpc*le start to 2.17.
42040         * shlib-versions: Likewise.
42041
42042 2014-02-04  Roland McGrath  <roland@hack.frob.com>
42043             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42044
42045         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
42046         (abilist-pattern): New variable, set to %-le.abilist.
42047
42048         * Makerules (abilist-pattern): New variable.
42049         (vpath): Use $(abilist-pattern) in place of %.abilist.
42050         (check-abi-% pattern rule): Likewise.
42051         (check-abi, update-abi): Likewise.
42052
42053 2014-02-04  Eric Wong  <normalperson@yhbt.net>
42054
42055         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
42056
42057 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
42058
42059         * manual/startup.texi: Add next, previous, and top entries for
42060         the `Program Arguments' and `Environment Variables' nodes.
42061
42062 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
42063
42064         * manual/macros.texi: Add comments before MTASC-safety macros.
42065
42066         * manual/users.texi: Document MTASC-safety properties.
42067
42068         * manual/threads.texi (pthread_key_create, pthread_key_delete)
42069         (pthread_getspecific, pthread_setspecific): Format with
42070         @deftypefun, and add @safety note.
42071         * manual/signal.texi: Move comments that analyze the above
42072         functions to their home place.
42073
42074 2014-02-03  Allan McRae  <allan@archlinux.org>
42075
42076         * po/sl.po: Update Slovenian translation from translation project.
42077
42078 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
42079
42080         * manual/time.texi (timegm): Add missing blank after @c.
42081         Reported by Joseph Myers <joseph@codesourcery.com>.
42082
42083 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
42084
42085         * manual/check-safety.sh: New.
42086         * manual/Makefile ($(objpfx)stamp-summary): Run it.
42087
42088         * manual/terminal.texi: Document MTASC-safety properties.
42089
42090         * manual/filesys.texi: Document MTASC-safety properties.
42091
42092         * manual/errno.texi: Document MTASC-safety properties.
42093
42094         * manual/intro.texi: Document safety identifiers and
42095         conditionals.
42096
42097         * manual/string.texi (wcstok): Fix prototype.
42098         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
42099
42100         * manual/time.texi: Document MTASC-safety properties.
42101
42102         * manual/string.texi: Document MTASC-safety properties.
42103
42104         * manual/threads.texi: Document MTASC-safety properties.
42105
42106         * manual/stdio.texi: Document MTASC-safety properties.
42107
42108         * manual/syslog.texi: Document MTASC-safety properties.
42109
42110         * manual/sysinfo.texi: Document MTASC-safety properties.
42111
42112         * manual/startup.texi: Document MTASC-safety properties.
42113
42114         * manual/socket.texi: Document MTASC-safety properties.
42115
42116         * manual/signal.texi: Document MTASC-safety properties.
42117
42118 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
42119
42120         * manual/setjmp.texi: Document MTASC-safety properties.
42121
42122         * manual/search.texi: Document MTASC-safety properties.
42123
42124         * manual/resource.texi: Document MTASC-safety properties.
42125
42126         * manual/process.texi: Document MTASC-safety properties.
42127
42128         * manual/platform.texi: Document MTASC-safety properties.
42129
42130         * manual/pipe.texi: Document MTASC-safety properties.
42131
42132         * manual/pattern.texi: Document MTASC-safety properties.
42133
42134         * manual/message.texi: Document MTASC-safety properties.
42135
42136         [BZ #12751]
42137         * manual/memory.texi: Document MTASC-safety properties.
42138
42139         * manual/math.texi: Document MTASC-safety properties.
42140
42141         * manual/locale.texi: Document MTASC-safety properties.
42142
42143         * manual/llio.texi: Document MTASC-safety properties.
42144
42145         * manual/libdl.texi: New.
42146
42147         * manual/lang.texi: Document MTASC-safety properties.
42148
42149         * manual/job.texi: Document MTASC-safety properties.
42150
42151         * manual/getopt.texi: Document MTASC-safety properties.
42152
42153         * manual/ctype.texi: Document MTASC-safety properties.
42154
42155 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
42156
42157         [BZ #16046]
42158         * csu/libc-tls.c (static_map): Remove variable.
42159         (__libc_setup_tls): Use main executable's link map for TLS data.
42160         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
42161         casing for LM_ID_BASE and GL(dl_nns).
42162         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
42163         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
42164         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
42165         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
42166         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
42167         member.
42168         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
42169         l_phnum members.
42170
42171 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
42172
42173         * manual/debug.texi: Document MTASC-safety properties.
42174
42175 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
42176
42177         [BZ #16510]
42178         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
42179         of __x86_64__ when disabling x87 inline functions.
42180
42181 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
42182
42183         * manual/charset.texi: Document MTASC-safety properties.
42184
42185         * manual/crypt.texi: Document MTASC-safety properties.
42186
42187         * manual/conf.texi: Document MTASC-safety properties.
42188
42189         * manual/arith.texi: Document MTASC-safety properties.
42190
42191         * manual/argp.texi: Document MTASC-safety properties.
42192
42193         * manual/macros.texi: Introduce macros to document multi
42194         thread, asynchronous signal and asynchronous cancellation
42195         safety properties.
42196         * manual/intro.texi: Introduce the properties themselves.
42197
42198 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
42199
42200         * sysdeps/sh/sh4/Makefile: New file.
42201
42202 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
42203
42204         * math/gen-libm-test.pl ($srcdir): New variable.
42205         ($auto_input): Use it.
42206
42207 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
42208
42209         [BZ #16506]
42210         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
42211         access beyond array bounds when parsing netgroups file.
42212
42213         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
42214         the old buffer before realloc.
42215
42216 2014-01-27  Allan McRae  <allan@archlinux.org>
42217
42218         * po/fr.po: Update French translation from translation project.
42219
42220 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
42221
42222         * sysdeps/sh/libm-test-ulps: Regenerate.
42223
42224 2014-01-24  David S. Miller  <davem@davemloft.net>
42225
42226         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
42227
42228 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
42229
42230         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
42231         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
42232
42233 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
42234
42235         [BZ #16474]
42236         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
42237         string pointers after reallocation.
42238
42239 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
42240
42241         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
42242         __SH4A__ instead of __SH_FPU_ANY__.
42243
42244 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
42245
42246         * sysdeps/sh/fpu_control.h: New file.
42247         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
42248         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
42249         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
42250         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
42251         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
42252         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
42253         * sysdeps/sh/sys/ucontext.h: Remove.
42254         * sysdeps/sh/sys: Remove directory.
42255
42256 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42257
42258         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
42259         s390/sys/ucontext.h.
42260         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
42261         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
42262
42263 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
42264
42265         [BZ #15605]
42266         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
42267
42268 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42269
42270         [BZ#16431]
42271         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
42272         Adjust the vDSO correctly for internal calls.
42273         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
42274
42275 2014-01-20  Allan McRae  <allan@archlinux.org>
42276
42277         * po/ca.po: Update Catalan translation from translation project.
42278
42279 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
42280
42281         * sysdeps/s390/sotruss-lib.c: New file.
42282
42283 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42284
42285         [BZ#16430]
42286         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
42287         (__GI___gettimeofday): Alias for a different internal symbol to avoid
42288         local calls issues by not having a PLT stub required for IFUNC calls.
42289         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
42290
42291 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
42292
42293         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
42294         * math/test-fpucw-static.c: Likewise.
42295
42296 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
42297
42298         [BZ #16453]
42299         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
42300
42301 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42302
42303         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
42304         implementation for powerpc.
42305
42306 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
42307
42308         [BZ #14782]
42309         * sysdeps/posix/system.c (__libc_system): Do not enable
42310         asynchronous cancellation.
42311
42312 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42313
42314         [BZ #16427]
42315         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
42316         handling only for numbers special also in the IEEE case.
42317
42318 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42319
42320         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
42321
42322 2014-01-11  Allan McRae  <allan@archlinux.org>
42323
42324         * po/bg.po: Update Bulgarian translation from translation project.
42325
42326         * po/de.po: Update German translation from translation project.
42327
42328 2014-01-10  Roland McGrath  <roland@hack.frob.com>
42329
42330         * sysdeps/generic/gcc-compat.h: New file.
42331
42332 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
42333
42334         * benchtests/asin-inputs: Correct slow inputs.
42335         * benchtests/acos-inputs: Likewise.
42336
42337 2014-01-10  Allan McRae  <allan@archlinux.org>
42338
42339         * po:sv.po: Update Swedish translation from translation project.
42340
42341         * po/vi.po: Update Vietnamese translation from translation project.
42342
42343         * po/eo.po: Update Esperanto translation from translation project.
42344
42345         * po/cs.po: Update Czech translation from translation project.
42346
42347         * po/nl.po: Update Dutch translation from translation project.
42348
42349         * po/pl.po: Update Polish translation from translation project.
42350
42351         * po/ru.po: Update Russian translation from translation project.
42352
42353         * po/uk.po: Update Ukrainian translation from translation project.
42354
42355 2014-01-08  Brooks Moses  <bmoses@google.com>
42356
42357         * elf/dl-load.c: Fix comment typo.
42358
42359 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
42360
42361         * po/header.pot: Rename to...
42362         * po/pot.header: ... this.
42363         * po/Makefile: Use pot.header.
42364
42365 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
42366             Maxim Kuvyrkov  <maxim@kugelworks.com>
42367
42368         [BZ #16394]
42369         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
42370         SRC and DEST against LEN.
42371
42372 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42373
42374         [BZ #16414]
42375         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
42376         implementation.
42377         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
42378
42379 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42380
42381         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42382
42383 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
42384
42385         [BZ #16408]
42386         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
42387         for large positive arguments.
42388
42389 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
42390
42391         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42392
42393         * math/auto-libm-test-in: Mark various tests with
42394         xfail-rounding:ldbl-128ibm.
42395         * math/auto-libm-test-out: Regenerated.
42396
42397         [BZ #16407]
42398         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
42399         Increase overflow threshold.
42400
42401 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
42402
42403         [BZ #14286]
42404         * stdio-common/vfprintf.c: Check for integer overflow.
42405
42406 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42407
42408         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
42409         the first argument and return value of __tls_get_addr_internal.
42410
42411 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42412
42413         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
42414         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
42415
42416 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42417
42418         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
42419         * sysdeps/s390/rtld-global-offsets.sym: New file.
42420         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
42421         GLIBC_2.19 symbol.
42422         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
42423         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
42424         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
42425         ... this.
42426         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
42427         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
42428         ... this.
42429         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
42430         Regenerate.
42431         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
42432         Regenerate.
42433         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
42434         halfs of GPRs for high_gprs contexts.
42435         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
42436         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
42437         field.
42438         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
42439         uc_flags field.
42440         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
42441         64 bit versions:
42442         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
42443         for high GPRs (uc_high_gprs) and for future extensions
42444         (__reserved).
42445         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
42446         for future extensions (__reserved).
42447         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
42448         64 bit versions:
42449         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
42450         SC_HIGHGPRS offset definition.
42451         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
42452         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
42453
42454         * Versions.def: Add GLIBC_2.19 for libpthread.
42455         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
42456         siglongjmp for libpthread with GLIBC_2.19 symver.
42457         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
42458         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
42459         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
42460         * sysdeps/s390/__longjmp.c: New file.
42461         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
42462         * sysdeps/s390/longjmp.c: New file.
42463         * sysdeps/s390/setjmp.S: New file.
42464         * sysdeps/s390/sigjmp.S: New file.
42465         * sysdeps/s390/v1-longjmp.c: New file.
42466         * sysdeps/s390/v1-setjmp.h: New file.
42467         * sysdeps/s390/v1-sigjmp.c: New file.
42468         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
42469         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
42470         GLIBC_2.19 version.
42471         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
42472         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
42473         versioned symbols for ____longjmp_chk.
42474         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
42475         Likewise.
42476         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
42477         Regenerate.
42478         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
42479         Regenerate.
42480         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
42481         Regenerate.
42482         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
42483         Regenerate.
42484         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
42485         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
42486         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
42487         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
42488         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
42489         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
42490         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
42491         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
42492         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
42493         * sysdeps/s390/rtld-__longjmp.c: New file.
42494         * sysdeps/s390/rtld-setjmp.S: New file.
42495
42496 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
42497
42498         [BZ #16400]
42499         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
42500         Return -__logl (x) for small positive arguments without evaluating
42501         a polynomial.
42502
42503 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
42504
42505         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
42506         Rename to ...
42507         (__ptrace_peeksiginfo_args): ... this.
42508         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
42509         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
42510         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
42511
42512 2014-01-06  Allan McRae  <allan@archlinux.org>
42513
42514         * inet/netinet/in.h: Fix typo in comment.
42515
42516 2014-01-05  Andreas Jaeger  <aj@suse.de>
42517
42518         * sysdeps/i386/fpu/libm-test-ulps: Update.
42519
42520 2014-01-05  Allan McRae  <allan@archlinux.org>
42521
42522         * po/libc.pot: Regenerated.
42523
42524         * malloc/memusagestat.c: Fix gettext call formatting.
42525
42526 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
42527
42528         * nscd/nscd.c: Improve usage() output.
42529
42530 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
42531
42532         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
42533         * sysdeps/unix/sysv/linux/configure: Regenerated.
42534         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
42535         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
42536
42537 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
42538
42539         [BZ #16390]
42540         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42541         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
42542
42543 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42544
42545         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
42546         extra tokens at end of #undef directive.
42547         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
42548         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
42549         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
42550
42551 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
42552
42553         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42554
42555         * math/auto-libm-test-in: Mark various tests with
42556         xfail-rounding:ldbl-128ibm.
42557         * math/auto-libm-test-out: Regenerated.
42558
42559 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
42560
42561         [BZ #16386]
42562         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
42563         numbers with subnormal high part when calculating exponent.
42564
42565         [BZ #16385]
42566         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
42567         fabs.
42568
42569         [BZ #16384]
42570         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
42571         M_LN2l.
42572         (__ieee754_acoshl): Use __log1pl not __log1p.
42573
42574 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
42575
42576         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
42577         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
42578         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
42579         (grow_heap, heap_trim, _int_new_arena, get_free_list)
42580         (reused_arena, arena_get2): Convert to GNU style.
42581         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
42582         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
42583         (memalign_check, __malloc_set_state): Likewise.
42584         * malloc/mallocbug.c (main): Likewise.
42585         * malloc/malloc.c (__malloc_assert, malloc_init_state)
42586         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
42587         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
42588         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
42589         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
42590         (__posix_memalign, malloc_info): Likewise.
42591         * malloc/malloc.h: Likewise.
42592         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
42593         (mallochook, memalignhook, reallochook, mabort): Likewise.
42594         * malloc/mcheck.h: Likewise.
42595         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
42596         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
42597         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
42598         * malloc/morecore.c (__default_morecore): Likewise.
42599         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
42600         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
42601         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
42602         (print_and_abort): Likewise.
42603         * malloc/obstack.h: Likewise.
42604         * malloc/set-freeres.c (__libc_freeres): Likewise.
42605         * malloc/tst-mallocstate.c (main): Likewise.
42606         * malloc/tst-mtrace.c (main): Likewise.
42607         * malloc/tst-realloc.c (do_test): Likewise.
42608
42609 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42610
42611         [BZ #16366]
42612         * nscd/netgroupcache.c (do_notfound): New function.
42613         (addgetnetgrentX): Use it.
42614
42615         [BZ # 16365]
42616         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
42617         NSS_STATUS_NOTFOUND.
42618
42619 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
42620
42621         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
42622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42623
42624 2014-01-01  Allan McRae  <allan@archlinux.org>
42625
42626         * scripts/update-copyrights: Update configure input file suffix.
42627
42628         * NEWS: Update copyright year.
42629         * catgets/gencat.c: Likewise.
42630         * csu/version.c: Likewise.
42631         * debug/catchsegv.sh: Likewise.
42632         * debug/pcprofiledump.c: Likewise.
42633         * debug/xtrace.sh: Likewise.
42634         * elf/ldconfig.c: Likewise.
42635         * elf/ldd.bash.in: Likewise.
42636         * elf/pldd.c: Likewise.
42637         * elf/sotruss.ksh: Likewise.
42638         * elf/sprof.c: Likewise.
42639         * iconv/iconv_prog.c: Likewise.
42640         * iconv/iconvconfig.c: Likewise.
42641         * locale/programs/locale.c: Likewise.
42642         * locale/programs/localedef.c: Likewise.
42643         * login/programs/pt_chown.c: Likewise.
42644         * malloc/memusage.sh: Likewise.
42645         * malloc/memusagestat.c: Likewise.
42646         * malloc/mtrace.pl: Likewise.
42647         * manual/libc.texinfo: Likewise.
42648         * nscd/nscd.c: Likewise.
42649         * nss/getent.c: Likewise.
42650         * nss/makedb.c: Likewise.
42651         * posix/getconf.c: Likewise.
42652         * scripts/test-installation.pl: Likewise.
42653
42654         * All files with FSF copyright notices: Update copyright dates
42655         using scripts/update-copyrights.
42656         * intl/plural.c: Regenerated.
42657         * locale/programs/charmap-kw.h: Likewise.
42658         * locale/programs/locfile-kw.h: Likewise.
42659
42660 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
42661
42662         * sysdeps/unix/sysv/linux/configure: Regenerated.
42663         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
42664         the linux/fanotify.h header.
42665         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
42666         HAVE_LINUX_FANOTIFY_H is defined.
42667
42668 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
42669
42670         * benchtests/cos-inputs: New inputs.
42671         * benchtests/sin-inputs: Likewise.
42672
42673         * benchtests/atan-inputs: New inputs. Fix name of multiple
42674         precision fallback inputs.
42675
42676         * benchtests/atanh-inputs: New inputs.
42677         * benchtests/tanh-inputs: Likewise.
42678
42679         * benchtests/acosh-inputs: New inputs.
42680         * benchtests/asinh-inputs: Likewise.
42681
42682         * benchtests/cosh-inputs: New inputs.
42683         * benchtests/sinh-inputs: Likewise.
42684
42685         * benchtests/acos-inputs: Add more inputs.
42686         * benchtests/asin-inputs: Likewise.
42687
42688 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
42689
42690         [BZ #16375]
42691         * manual/arith.texi: Fix spelling.
42692         * manual/charset.texi: Likewise.
42693         * manual/errno.texi: Likewise.
42694         * manual/filesys.texi: Likewise.
42695         * manual/lang.texi: Likewise.
42696         * manual/llio.texi: Likewise.
42697         * manual/locale.texi: Likewise.
42698         * manual/message.texi: Likewise.
42699         * manual/resource.texi: Likewise.
42700         * manual/search.texi: Likewise.
42701         * manual/setjmp.texi: Likewise.
42702         * manual/stdio.texi: Likewise.
42703         * manual/string.texi: Likewise.
42704         * manual/sysinfo.texi: Likewise.
42705         * manual/time.texi: Likewise.
42706
42707 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
42708
42709         * po/sl.po: New file.
42710
42711 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
42712
42713         * .gitignore: Add core/.gdbinit/.gdb_history.
42714
42715 2013-12-27  Allan McRae  <allan@archlinux.org>
42716
42717         [BZ #16369]
42718         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
42719         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
42720
42721 2013-12-24  Brooks Moses  <bmoses@google.com>
42722
42723         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
42724         all compilers that claim C++98 compliance, not just GCC.
42725         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
42726         Likewise.
42727
42728 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
42729
42730         * NEWS: Restore accidentally deleted bug-fix entries.
42731
42732 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
42733             Ondřej Bílka  <neleai@seznam.cz>
42734
42735         [BZ #15073]
42736         * malloc/malloc.c (_int_free): Perform sanity check only if we
42737         have_lock.
42738
42739 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
42740
42741         [BZ #12986]
42742         * manual/stdio.texi (String Input Conversions): Clarify that character
42743         classes are not supported.
42744
42745 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42746
42747         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42748
42749 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
42750
42751         [BZ #16337]
42752         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
42753         Calculate results for small negative arguments directly rather
42754         than using reflection formula with special underflow handling.
42755
42756         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
42757         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
42758         sysdeps/unix/bsd/bsd4.4/syscalls.list.
42759         (fchflags): Likewise.
42760         (revoke): Likewise.
42761         (setlogin): Likewise.
42762         (sigaltstack): Likewise.
42763         (wait4): Likewise.
42764         (sigblock): Remove.
42765         (sigsetmask): Likewise.
42766         (wait3): Likewise.
42767         (waitpid): Likewise.
42768         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
42769         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
42770         file.
42771         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
42772         * sysdeps/unix/bsd/Makefile: ... here.
42773         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
42774         * sysdeps/unix/bsd/Versions: ... here.
42775         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
42776         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
42777         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
42778         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
42779         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
42780         * sysdeps/unix/bsd/sigblock.c: ... here.
42781         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
42782         * sysdeps/unix/bsd/sigsetmask.c: ... here.
42783         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
42784         * sysdeps/unix/bsd/sigvec.c: ... here.
42785         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
42786         * sysdeps/unix/bsd/tcdrain.c: ... here.
42787         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
42788         * sysdeps/unix/bsd/tcgetattr.c: ... here.
42789         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
42790         * sysdeps/unix/bsd/tcsetattr.c: ... here.
42791         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
42792         * sysdeps/unix/bsd/wait.c: ... here.
42793         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
42794         * sysdeps/unix/bsd/wait3.c: ... here.
42795         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
42796         * sysdeps/unix/bsd/waitpid.c: ... here.
42797
42798 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
42799
42800         [BZ #16356]
42801         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
42802         round-to-nearest for [!USE_AS_EXPM1L].
42803         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
42804         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
42805         more tests of exp and exp10.  Expect some exp10 tests to miss
42806         exceptions or fail in directed rounding modes.
42807         * math/auto-libm-test-out: Regenerated.
42808         * math/libm-test.inc (exp10_tonearest_test_data): New array.
42809         (exp10_test_tonearest): New function.
42810         (exp10_towardzero_test_data): New array.
42811         (exp10_test_towardzero): New function.
42812         (exp10_downward_test_data): New array.
42813         (exp10_test_downward): New function.
42814         (exp10_upward_test_data): New array.
42815         (exp10_test_upward): New function.
42816         (main): Call the new functions.
42817         * sysdeps/i386/fpu/libm-test-ulps: Update.
42818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42819
42820 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
42821
42822         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
42823         asinh, atan, atan2, atanh, cbrt, cos and cosh.
42824         * math/auto-libm-test-out: Regenerated.
42825         * math/libm-test.inc (acosh_test_data): Add more tests.
42826         (atanh_test_data): Likewise.
42827         (ceil_test_data): Likewise.
42828         (copysign_test_data): Likewise.
42829         * sysdeps/i386/fpu/libm-test-ulps: Update.
42830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42831
42832         * timezone/checktab.awk: Update from tzcode 2013i.
42833         * timezone/private.h: Likewise.
42834         * timezone/scheck.c: Likewise.
42835         * timezone/tzfile.h: Likewise.
42836         * timezone/tzselect.ksh: Likewise.
42837         * timezone/zdump.c: Likewise.
42838         * timezone/zic.c: Likewise.
42839
42840         * math/auto-libm-test-in: Add tests of cpow.
42841         * math/auto-libm-test-out: Regenerated.
42842         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
42843         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42844         mpc_cc_c.
42845         (func_calc_desc): Add mpc_cc_c union field.
42846         (test_functions): Add cpow.
42847         (special_fill_2pi): New function.
42848         (special_real_inputs): Add 2pi.
42849         (calc_generic_results): Handle mpc_cc_c.
42850         * sysdeps/i386/fpu/libm-test-ulps: Update.
42851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42852
42853         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
42854         csqrt, ctan and ctanh.
42855         * math/auto-libm-test-out: Regenerated.
42856         * math/libm-test.inc (TEST_COND_x86_64): New macro.
42857         (TEST_COND_x86): Likewise.
42858         (ccos_test_data): Use AUTO_TESTS_c_c.
42859         (ccosh_test_data): Likewise.
42860         (cexp_test_data): Likewise.
42861         (clog_test_data): Likewise.
42862         (csqrt_test_data): Likewise.
42863         (ctan_test_data): Likewise.
42864         (ctan_tonearest_test_data): Likewise.
42865         (ctan_towardzero_test_data): Likewise.
42866         (ctan_downward_test_data): Likewise.
42867         (ctan_upward_test_data): Likewise.
42868         (ctanh_test_data): Likewise.
42869         (ctanh_tonearest_test_data): Likewise.
42870         (ctanh_towardzero_test_data): Likewise.
42871         (ctanh_downward_test_data): Likewise.
42872         (ctanh_upward_test_data): Likewise.
42873         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42874         mpc_c_c.
42875         (func_calc_desc): Add mpc_c_c union field.
42876         (FUNC_mpc_c_c): New macro.
42877         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
42878         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
42879         ctanh.
42880         (special_fill_min_subnorm_p120): New function.
42881         (special_real_inputs): Add min_subnorm_p120.
42882         (calc_generic_results): Handle mpc_c_c.
42883         * sysdeps/i386/fpu/libm-test-ulps: Update.
42884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42885
42886 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
42887
42888         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
42889         (do_sin_slow): New functions.
42890         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
42891         (cslow2, csloww1, csloww2): Use the new functions.
42892
42893         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
42894         Use M to change sign of result instead of X.  Assume X is
42895         positive.
42896         (csloww1): Likewise.
42897         (__sin): Adjust.
42898         (__cos): Adjust.
42899
42900         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
42901         arguments A and DA.
42902         (__sin): Adjust.
42903         (__cos): Likewise.
42904
42905         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
42906         (__cos): Likewise.
42907         (sloww1): Don't adjust sign of DX.
42908         (csloww1): Likewise.
42909         (sloww2): Use X directly and don't adjust sign of DX.
42910         (csloww2): Likewise.
42911
42912 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
42913
42914         * math/auto-libm-test-in: Add tests of cabs and carg.
42915         * math/auto-libm-test-out: Regenerated.
42916         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
42917         (carg_test_data): Likewise.
42918         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42919         mpc_c_f.
42920         (func_calc_desc): Add mpc_c_f union field.
42921         (test_functions): Add cabs and carg.
42922         (calc_generic_results): Handle mpc_c_f.
42923
42924         * sysdeps/powerpc/powerpc32/libgcc-compat.S
42925         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
42926         as a macro and a compat symbol.
42927         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
42928         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
42929         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
42930         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
42931         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
42932         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
42933         not use .hidden.
42934         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
42935         Likewise.
42936         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
42937         Likewise.
42938         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
42939         Likewise.
42940         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
42941         Likewise.
42942         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
42943         Likewise.
42944         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
42945         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
42946         from GLIBC_2.3.2.
42947
42948 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42949
42950         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42951
42952 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
42953
42954         * manual/texinfo.tex: Update to version 2013-11-26.10 with
42955         trailing whitespace removed.
42956         * scripts/config.guess: Update to version 2013-11-29.
42957         * scripts/config.sub: Update to version 2013-10-01.
42958
42959         * math/auto-libm-test-in: Add tests of sincos.
42960         * math/auto-libm-test-out: Regenerated.
42961         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
42962         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42963         mpfr_f_11.
42964         (func_calc_desc): Add mpfr_f_11 union field.
42965         (test_functions): Add sincos.
42966         (calc_generic_results): Handle mpfr_f_11.
42967         * sysdeps/i386/fpu/libm-test-ulps: Update.
42968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42969
42970 2013-12-19  Andreas Schwab  <schwab@suse.de>
42971
42972         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
42973         CALL_MCOUNT.
42974         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
42975         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
42976         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
42977
42978 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
42979
42980         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
42981         * sysdeps/i386/fpu/libm-test-ulps: Update.
42982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42983
42984         [BZ #16293]
42985         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
42986         round-to-nearest mode when using frndint.
42987         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
42988         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
42989         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
42990         Likewise.
42991         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
42992         sinh test to fail.
42993         * math/auto-libm-test-out: Regenerated.
42994         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
42995         (TEST_COND_x86): Likewise.
42996         (expm1_tonearest_test_data): New array.
42997         (expm1_test_tonearest): New function.
42998         (expm1_towardzero_test_data): New array.
42999         (expm1_test_towardzero): New function.
43000         (expm1_downward_test_data): New array.
43001         (expm1_test_downward): New function.
43002         (expm1_upward_test_data): New array.
43003         (expm1_test_upward): New function.
43004         (main): Run the new test functions.
43005         * sysdeps/i386/fpu/libm-test-ulps: Update.
43006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43007
43008         * include/features.h: Update comment documenting feature test
43009         macros.  Mention _DEFAULT_SOURCE in comment.
43010         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
43011         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
43012         _BSD_SOURCE and _SVID_SOURCE.
43013         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
43014         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
43015         !_SVID_SOURCE]: Likewise.
43016         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
43017         (__USE_POSIX_IMPLICITLY): Define.
43018         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
43019         (_POSIX_SOURCE): Undefine and redefine.
43020         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
43021         (_POSIX_C_SOURCE): Likewise.
43022         * manual/creature.texi (_DEFAULT_SOURCE): Document.
43023         (Feature Test Macros): Update documentation of default features.
43024
43025 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
43026
43027         * benchtests/Makefile: Add bench-strtok.
43028         * benchtests/bench-strtok.c: New file: strtok benchtest.
43029
43030 2013-12-19  Allan McRae  <allan@archlinux.org>
43031
43032         * manual/install.texi: Suppress menu for plain text output.
43033         * INSTALL: Regenerated.
43034
43035 2013-12-18  Brooks Moses  <bmoses@google.com>
43036
43037         [BZ #15846]
43038         * misc/getauxval.c: Include errno.h.
43039         (__getauxval): Set errno to ENOENT if the requested type is not
43040         found.
43041         * misc/sys/auxv.h (getauxval): Document that it may set errno;
43042         don't declare with __attribute_const__.
43043         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
43044         * manual/startup.texi: Document that getauxval sets errno.
43045
43046 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
43047
43048         * math/auto-libm-test-in: Add tests of jn and yn.
43049         * math/auto-libm-test-out: Regenerated.
43050         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
43051         (yn_test_data): Likewise.
43052         * math/gen-auto-libm-tests.c (func_calc_method): Add value
43053         mpfr_if_f.
43054         (func_calc_desc): Add mpfr_if_f union field.
43055         (FUNC_mpfr_if_f): New macro.
43056         (test_functions): Add jn and yn.
43057         (calc_generic_results): Assert type of second input for
43058         mpfr_ff_f.  Handle mpfr_if_f.
43059         (output_for_one_input_case): Disable all checking for arguments
43060         fitting floating-point types in case of an integer argument.
43061         * sysdeps/i386/fpu/libm-test-ulps: Update.
43062         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43063
43064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
43065         Don't expect fegetround reference in libm.so.
43066
43067 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
43068
43069         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
43070         $(config-cflags-nofma).
43071
43072 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
43073
43074         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
43075         * math/auto-libm-test-out: Regenerated.
43076
43077         [BZ #16338]
43078         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
43079         to determine exponent and adjust argument to have exponent of -1.
43080         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
43081         log2.
43082         * math/auto-libm-test-out: Regenerated.
43083         * sysdeps/i386/fpu/libm-test-ulps: Update.
43084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43085
43086 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
43087
43088         * manual/probes.texi: Remove cases when per-thread arenas are
43089         disabled.
43090
43091 2013-12-18  Andreas Schwab  <schwab@suse.de>
43092
43093         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
43094         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
43095         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
43096         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
43097         * sysdeps/i386/i686/multiarch/Makefile: Update.
43098         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
43099
43100 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
43101
43102         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
43103         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
43104
43105 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
43106
43107         [BZ #15968]
43108         Support TZ transition times < 00:00:00.
43109         This is needed for version-3 tz-format files; it supports time
43110         stamps past 2037 for America/Godthab (the only entry in the tz
43111         database for which this change is relevant).
43112         * manual/time.texi (TZ Variable): Document transition times
43113         from -167:59:59 through -00:00:01.
43114         * time/tzset.c (tz_rule): Time of day is now signed.
43115         (__tzset_parse_tz): Parse negative time of day.
43116
43117         Document TZ transition times >= 25:00:00.
43118         * manual/time.texi (TZ Variable): Document transition times from
43119         25:00:00 through 167:59:59.  These are already supported, and this
43120         support will help with version-3 tz-format files.
43121
43122         * manual/time.texi (TZ Variable): Modernize North America example
43123         to reflect current (i.e., 2007-and-later) daylight saving rules.
43124
43125         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
43126
43127 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
43128
43129         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
43130         * sysdeps/unix/bsd/bits/stat.h: Likewise.
43131         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
43132         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
43133         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
43134         * sysdeps/unix/bsd/bsdstat.h: Likewise.
43135         * sysdeps/unix/bsd/clock.c: Likewise.
43136         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
43137         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
43138         * sysdeps/unix/bsd/init-posix.c: Likewise.
43139         * sysdeps/unix/bsd/poll.c: Likewise.
43140         * sysdeps/unix/bsd/ptsname.c: Likewise.
43141         * sysdeps/unix/bsd/seekdir.c: Likewise.
43142         * sysdeps/unix/bsd/setegid.c: Likewise.
43143         * sysdeps/unix/bsd/seteuid.c: Likewise.
43144         * sysdeps/unix/bsd/setgid.c: Likewise.
43145         * sysdeps/unix/bsd/setrgid.c: Likewise.
43146         * sysdeps/unix/bsd/setruid.c: Likewise.
43147         * sysdeps/unix/bsd/setsid.c: Likewise.
43148         * sysdeps/unix/bsd/setuid.c: Likewise.
43149         * sysdeps/unix/bsd/sigaction.c: Likewise.
43150         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
43151         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
43152         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
43153         * sysdeps/unix/bsd/telldir.c: Likewise.
43154         * sysdeps/unix/bsd/times.c: Likewise.
43155         * sysdeps/unix/bsd/usleep.c: Likewise.
43156
43157         * misc/Makefile (install-lib): Remove libbsd-compat.a.
43158         ($(objpfx)libbsd-compat.a): Remove rule.
43159
43160         * include/features.h (__FAVOR_BSD): Do not define.
43161         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
43162         features conflicting with POSIX.
43163         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
43164         (_BSD_SOURCE): Remove description of not being a subset of other
43165         feature test macros.
43166         * manual/job.texi (getpgrp): Do not document BSD version.
43167         (getpgid): Do not document by reference to BSD getpgrp.
43168         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
43169         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
43170         * signal/signal.h [__FAVOR_BSD]: Likewise.
43171         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
43172         instead of making contents conditional on [__FAVOR_BSD].
43173         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
43174
43175 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43176
43177         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43178
43179 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
43180
43181         [BZ #16314]
43182         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
43183         values below 2**-450, not 2**-500.
43184         * math/auto-libm-test-in: Don't allow spurious underflow from
43185         hypot.
43186         * math/auto-libm-test-out: Regenerated.
43187
43188         [BZ #16316]
43189         [BZ #16330]
43190         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
43191         values of ha and hb and sort them after adjusting subnormal
43192         arguments.
43193         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
43194         Likewise.
43195         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
43196         values of ea and eb and sort them after adjusting subnormal
43197         arguments.
43198         * math/auto-libm-test-in: Do not expect some hypot tests of
43199         subnormals to fail.  Add more hypot tests.
43200         * math/auto-libm-test-out: Regenerated.
43201
43202 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43203
43204         [BZ #13304]
43205         * sysdeps/sh/s_fma.c: New file.
43206         * sysdeps/sh/s_fmaf.c: New file.
43207         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
43208         version.
43209         * sysdeps/sh/Implies: Add sh/soft-fp.
43210
43211 2013-12-16  Roland McGrath  <roland@hack.frob.com>
43212
43213         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
43214         level of indirection to members `objname', `errstring', `malloced'.
43215         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
43216         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
43217         it as the __longjmp argument (just pass 1 instead).
43218         (_dl_catch_error): Initialize C with argument pointers and address of
43219         volatile local ERRCODE rather than copying values out of C at return.
43220
43221 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
43222
43223         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
43224         * math/auto-libm-test-out: Regenerated.
43225         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
43226         (hypot_test_data): Likewise.
43227         (pow_test_data): Likewise.
43228         (pow_tonearest_test_data): Likewise.
43229         * math/gen-auto-libm-tests.c (func_calc_method): Add value
43230         mpfr_ff_f.
43231         (func_calc_desc): Add mpfr_ff_f union field.
43232         (FUNC_mpfr_ff_f): New macro.
43233         (test_functions): Add atan2, hypot and pow.
43234         (special_fill_min): New function.
43235         (special_fill_minus_min): Likewise.
43236         (special_fill_min_subnorm): Likewise.
43237         (special_fill_minus_min_subnorm): Likewise.
43238         (special_real_inputs): Add min, -min, min_subnorm and
43239         -min_subnorm.
43240         (calc_generic_results): Handle mpfr_ff_f.
43241         * sysdeps/i386/fpu/libm-test-ulps: Update.
43242         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43243
43244 2013-12-16  Will Newton  <will.newton@linaro.org>
43245
43246         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
43247         (Aligned Memory Blocks): Add documentation for aligned_alloc
43248         and suggest it as an alternative to posix_memalign.
43249         (Hooks for Malloc): Document __memalign_hook is also called
43250         for aligned_alloc.  (Summary of Malloc): Add summary for
43251         aligned alloc.  Document __memalign_hook is also called
43252         for aligned_alloc.
43253
43254 2013-12-16  Will Newton  <will.newton@linaro.org>
43255
43256         * manual/memory.texi (Malloc Examples): Clarify default
43257         alignment documentation.  Suggest posix_memalign rather
43258         than memalign or valloc.
43259         (Aligned Memory Blocks): Remove suggestion to use memalign
43260         or valloc.  Remove obsolete comment about BSD.
43261         Document memalign errno values and mark the function obsolete.
43262         Document posix_memalign returned error codes.  Mark valloc
43263         as obsolete.  (Hooks for Malloc): __memalign_hook is also
43264         called for posix_memalign and valloc.
43265         (Summary of Malloc): Add posix_memalign to function summary.
43266         __memalign_hook is also called for posix_memalign and valloc.
43267
43268 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
43269
43270         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
43271         TAYLOR_SIN.
43272         (__sin): Adjust.
43273         (__cos): Likewise.
43274         (sloww): Use mynumber union.  Expand ternary operator into
43275         if-else statements.
43276         (cslow): use mynumber union.
43277
43278 2013-12-16  Allan McRae  <allan@archlinux.org>
43279
43280         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
43281         * configure: Regenerated.
43282
43283         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
43284
43285         [BZ #14120]
43286         * configure.ac: Added --enable-maintainer-mode. Check for
43287         autoconf when enabled.
43288         * configure: Regenerated.
43289
43290         * nscd/nscd.service: New file.
43291         * nscd/nscd.tmpfiles: New file.
43292
43293 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
43294
43295         [BZ #12100]
43296         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
43297         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
43298         * sysdeps/x86_64/multiarch/strstr.c: ... here.
43299         (strstr): Add __strstr_sse2_unaligned ifunc.
43300         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
43301         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
43302         (strcasestr): Remove __strcasestr_sse42 ifunc.
43303         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
43304         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
43305         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43306
43307 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43308
43309         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
43310         * sysdeps/sh/bits/fenv.h: ... here.
43311         * sysdeps/sh/sh4/fpu/bits: Remove directory.
43312
43313 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43314
43315         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
43316
43317         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
43318         hypotf multiarch implementations.
43319         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
43320         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
43321         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
43322         multiarch hypot for PPC64.
43323         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
43324         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
43325         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
43326         multiarch hypotf for PPC64.
43327
43328         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
43329         modff multiarch implementations.
43330         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
43331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
43332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
43333         multiarch modf for PPC64.
43334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
43335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
43336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
43337         multiarch modff for PPC64.
43338
43339         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
43340         and logl multiarch implementations.
43341         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
43342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
43343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
43344         multiarch logb for PPC64.
43345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
43346         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
43347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
43348         multiarch logb for PPC64.
43349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
43350         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
43351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
43352         multiarch logb for PPC64.
43353
43354         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
43355         isinff multiarch implementation.
43356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
43357         file.
43358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
43359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
43360         multiarch isinf for PPC64.
43361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
43362         file.
43363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
43364         multiarch isinff for PPC64.
43365
43366         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
43367         finitef multiarch implementation.
43368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
43369         file.
43370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
43371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
43372         multiarch finite for PPC64.
43373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
43374         file.
43375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
43376         multiarch finitef for PPC64.
43377
43378         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
43379         lrint multiarch implementation.
43380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
43381         file.
43382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
43383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
43384         multiarch llrint for PPC64.
43385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
43386         multiarch lrint for PPC64.
43387
43388         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
43389         copysignf multiarch implementation.
43390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
43391         file.
43392         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
43393         file.
43394         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
43395         multiarch copysign for PPC64.
43396         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
43397         multiarch copysignf for PPC64.
43398
43399         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
43400         multiarch implementation.
43401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
43402         file.
43403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
43404         file.
43405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
43406         file.
43407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
43408         file.
43409         multiarch llround for PPC64.
43410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
43411         multiarch trunc for PPC64.
43412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
43413         multiarch truncf for PPC64.
43414
43415         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
43416         multiarch implementation.
43417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
43418         file.
43419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
43420         file.
43421         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
43422         file.
43423         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
43424         file.
43425         multiarch llround for PPC64.
43426         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
43427         multiarch round for PPC64.
43428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
43429         multiarch roundf for PPC64.
43430
43431         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
43432         multiarch implementation.
43433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
43434         file.
43435         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
43436         file.
43437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
43438         file.
43439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
43440         file.
43441         multiarch llround for PPC64.
43442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
43443         multiarch floor for PPC64.
43444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
43445         multiarch floorf for PPC64.
43446
43447         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
43448         multiarch implementation.
43449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
43450         file.
43451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
43452         file.
43453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
43454         file.
43455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
43456         file.
43457         multiarch llround for PPC64.
43458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
43459         multiarch ceil for PPC64.
43460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
43461         multiarch ceilf for PPC64.
43462
43463         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
43464         multiarch implementation.
43465         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
43466         file.
43467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
43468         file.
43469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
43470         file.
43471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
43472         multiarch llround for PPC64.
43473         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
43474         multiarch lround for PPC64.
43475
43476         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
43477         multiarch implementation.
43478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
43479         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
43480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
43481         file.
43482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
43483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
43484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
43485         multiarch isnan for PPC64.
43486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
43487         multiarch isnanf for PPC64.
43488
43489         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
43490         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
43491         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
43492         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
43493         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
43494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
43495
43496         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
43497         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
43498         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
43499         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
43500
43501         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
43502         multiarch implementations.
43503         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43504         (__libc_ifunc_impl_list): Likewise.
43505         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
43506         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
43507         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
43508         multiarch stpcpy for PPC64.
43509
43510         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
43511         multiarch implementations.
43512         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43513         (__libc_ifunc_impl_list): Likewise.
43514         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
43515         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
43516         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
43517         multiarch strcpy for PPC64.
43518
43519         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
43520         redefine function name.
43521         (_wordcopy_fwd_dest_aligned): Likewise.
43522         (_wordcopy_bwd_aligned): Likewise.
43523         (_wordcopy_bwd_dest_aligned): Likewise.
43524         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
43525         multiarch implementations.
43526         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43527         (__libc_ifunc_impl_list): Likewise.
43528         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
43529         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
43530         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
43531         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
43532         multiarch wcscpy for PPC64.
43533
43534         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
43535         multiarch implementations.
43536         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43537         (__libc_ifunc_impl_list): Likewise.
43538         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
43539         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
43540         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
43541         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
43542         multiarch wcscpy for PPC64.
43543
43544         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
43545         multiarch implementations.
43546         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43547         (__libc_ifunc_impl_list): Likewise.
43548         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
43549         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
43550         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
43551         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
43552         multiarch wcsrchr for PPC64.
43553
43554         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
43555         multiarch implementations.
43556         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43557         (__libc_ifunc_impl_list): Likewise.
43558         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
43559         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
43560         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
43561         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
43562         multiarch wcschr for PPC64.
43563
43564         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
43565         multiarch implementations.
43566         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43567         (__libc_ifunc_impl_list): Likewise.
43568         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
43569         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
43570         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
43571         multiarch strchrnul for PPC64.
43572
43573         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
43574         implementations.
43575         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43576         (__libc_ifunc_impl_list): Likewise.
43577         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
43578         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
43579         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
43580         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
43581         strchr for PPC64.
43582
43583         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
43584         implementations.
43585         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43586         (__libc_ifunc_impl_list): Likewise.
43587         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
43588         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
43589         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
43590         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
43591         strncmp for PPC64.
43592
43593         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
43594         multiarch implementations.
43595         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43596         (__libc_ifunc_impl_list): Likewise.
43597         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
43598         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
43599         strncasecmp for PPC64.
43600         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
43601         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
43602         multiarch strncasecmp_l for PPC64.
43603
43604         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
43605         multiarch implementations.
43606         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
43607         (__libc_ifunc_impl_list): Likewise.
43608         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
43609         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
43610         multiarch strcasecmp for PPC64.
43611         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
43612         file.
43613         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
43614         multiarch strcasecmp_l for PPC64.
43615
43616         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
43617         implementations.
43618         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43619         (__libc_ifunc_impl_list): Likewise.
43620         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
43621         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
43622         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
43623         strnlen for PPC64.
43624
43625         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
43626         implementations.
43627         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43628         (__libc_ifunc_impl_list): Likewise.
43629         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
43630         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
43631         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
43632         strlen for PPC64.
43633
43634         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
43635         implementations.
43636         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43637         (__libc_ifunc_impl_list): Likewise.
43638         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
43639         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
43640         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
43641         rawmemrchr for PPC64.
43642
43643         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
43644         implementation.
43645         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43646         (__libc_ifunc_impl_list): Likewise.
43647         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
43648         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
43649         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
43650         memrchr for PPC64.
43651
43652         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
43653         implementation.
43654         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43655         (__libc_ifunc_impl_list): Likewise.
43656         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
43657         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
43658         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
43659         memchr for PPC64.
43660
43661         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
43662         implementation.
43663         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43664         (__libc_ifunc_impl_list): Likewise.
43665         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
43666         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
43667         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
43668         mempcpy for PPC64.
43669
43670         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
43671         avoid cretion of __bzero symbol.
43672         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
43673         Likewise.
43674         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
43675         Likewise.
43676         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
43677         Likewise.
43678         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
43679         multiarch implementations.
43680         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43681         (__libc_ifunc_impl_list): Likewise.
43682         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
43683         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
43684         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
43685         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
43686         bzero for PPC32.
43687         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
43688         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
43689         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
43690         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
43691         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
43692         memset for PPC64.
43693         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
43694
43695         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
43696         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
43697         implementations.
43698         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43699         (__libc_ifunc_impl_list): Likewise.
43700         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
43701         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
43702         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
43703         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
43704         memcmp for PPC64.
43705
43706         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
43707         multiarch for POWER/PPC64.
43708         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
43709         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
43710         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
43711         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
43712         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
43713         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
43714         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
43715         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
43716         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
43717         memcpy for PPC64.
43718
43719         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
43720         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
43721         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
43722         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
43723         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
43724         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
43725         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
43726         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
43727         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
43728         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
43729         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
43730         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
43731         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
43732         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
43733         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
43734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
43735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
43736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
43737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
43738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
43739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
43740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
43741
43742 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43743
43744         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
43745
43746 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
43747
43748         * benchtests/Makefile (bench): Add exp2 and log2.
43749         (LDLIBS-bench-exp2): Add -lm.
43750         (LDLIBS-bench-log2): Likewise.
43751         * benchtests/exp2-inputs: New inputs file.
43752         * benchtests/log2-inputs: New inputs file.
43753         * benchtests/log-inputs: Add new inputs.
43754         * benchtests/tan-inputs: Likewise.
43755
43756 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43757
43758         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
43759         definition...
43760         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
43761         (csloww2): ... from here.
43762
43763         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
43764         instead of structures.
43765         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
43766         (POLYNOMIAL): Likewise.
43767         (TAYLOR_SLOW): Likewise.
43768         (__sin): Likewise.
43769         (__cos): Likewise.
43770         (slow1): Likewise.
43771         (slow2): Likewise.
43772         (sloww): Likewise.
43773         (sloww1); Likewise.
43774         (sloww2): Likewise.
43775         (bsloww1): Likewise.
43776         (bsloww2): Likewise.
43777         (cslow2): Likewise.
43778         (csloww): Likewise.
43779         (csloww1): Likewise.
43780         (csloww2): Likewise.
43781
43782 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
43783
43784         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
43785         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
43786         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
43787         * malloc/hooks.c (realloc_check): Likewise.
43788
43789         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
43790         * malloc/arena.c: Remove PER_THREAD conditional.
43791         [!PER_THREAD]: Remove code.
43792         (ptmalloc_unlock_all2): Likewise.
43793         (ptmalloc_init): Likewise.
43794         (_int_new_arena): Likewise.
43795         (arena_get2): Likewise.
43796         * malloc/hooks.c (__malloc_get_state): Likewise.
43797         (__malloc_set_state): Likewise.
43798         * malloc/malloc.c: Likewise.
43799         (struct malloc_state): Likewise.
43800         (struct malloc_par): Likewise.
43801         (__libc_realloc): Likewise.
43802         (__libc_mallopt): Likewise.
43803
43804 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43805
43806         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
43807
43808 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
43809
43810         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
43811         macro to a function.  Check for zero perturb_byte.
43812         (_int_malloc, _int_free): Remove zero perturb_byte checks.
43813
43814         * malloc/malloc.c: (force_reg): Remove.
43815         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
43816         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
43817         force_reg by atomic_forced_read.
43818         * malloc/arena.c (ptmalloc_init): Likewise.
43819         * malloc/hooks.c (top_check): Likewise.
43820
43821 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43822
43823         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43824
43825 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
43826
43827         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43828
43829 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
43830
43831         * math/auto-libm-test-in: Add tests of lgamma.
43832         * math/auto-libm-test-out: Regenerated.
43833         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
43834         (M_LOG_2_SQRT_PIl): Likewise.
43835         (lgamma_test_data): Use AUTO_TESTS_f_f1.
43836         * math/gen-auto-libm-tests.c (func_calc_method): Add value
43837         mpfr_f_f1.
43838         (func_calc_desc): Add mpfr_f_f1 union field.
43839         (ARGS1): New macro.
43840         (ARGS2): Likewise.
43841         (ARGS3): Likewise.
43842         (ARGS4): Likewise.
43843         (RET1): Likewise.
43844         (RET2): Likewise.
43845         (CALC): Likewise.
43846         (FUNC): Likewise.
43847         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
43848         (test_functions): Add lgamma.
43849         (calc_generic_results): Handle mpfr_f_f1.
43850         * sysdeps/i386/fpu/libm-test-ulps: Update.
43851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43852
43853 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43854
43855         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
43856         __mpn_add_n for PowerPC64/POWER7.
43857         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
43858         __mpn_sub_n for PowerPC64/POWER7.
43859
43860         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
43861         __mpn_addmul_1 for PowerPC64.
43862         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
43863         __mpn_submul_1 for PowerPC64.
43864         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
43865         for PowerPC64.
43866         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
43867         for PowerPC64.
43868
43869 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
43870
43871         [BZ #15089]
43872         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
43873
43874 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43875
43876         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
43877
43878         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
43879         add multiarch folders.
43880         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
43881         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
43882         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
43883         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
43884         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
43885         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
43886         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
43887         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
43888         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
43889         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
43890         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
43891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
43892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
43893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
43894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
43895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
43896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
43897
43898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
43899         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
43900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
43901         New file.
43902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
43903         New file.
43904         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
43905         multiarch __ieee754_hypot for PowerPC32.
43906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
43907         New file.
43908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
43909         New file.
43910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
43911         multiarch __ieee754_hypotf for PowerPC32.
43912
43913         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
43914         long_double_symbol only if __logbl is defined.
43915         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
43916         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
43917         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
43918         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
43919         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
43920         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
43921         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
43922         path for implementation.
43923         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
43924         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
43925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
43926         logb, and logbl multiarch implementations for PowerPC32.
43927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
43928         file.
43929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
43930         file.
43931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
43932         multiarch logb for PowerPC32.
43933         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
43934         file.
43935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
43936         file.
43937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
43938         multiarch logbf for PowerPC32.
43939         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
43940         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
43941         file.
43942         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
43943         multiarch logbl implementation for PowerPC32.
43944
43945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
43946         and modff multiarch implementations.
43947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
43948         New file.
43949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
43950         New file.
43951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
43952         multiarch modf for PowerPC32.
43953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
43954         New file.
43955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
43956         New file.
43957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
43958         multiarch modff for PowerPC32.
43959
43960         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
43961         and lrintf multiarch implementations.
43962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
43963         New file.
43964         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
43965         New file.
43966         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
43967         multiarch lrint for PowerPC32.
43968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
43969         file: multiarch lrintf for PowerPC32.
43970
43971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
43972         and lroundf multiarch implementations.
43973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
43974         New file.
43975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
43976         New file.
43977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
43978         New file.
43979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
43980         multiarch lround for PowerPC32.
43981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
43982         file: multiarch lroundf for PowerPC32.
43983
43984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
43985         copysign and copysignf multiarch implementations.
43986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
43987         New file.
43988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
43989         New file.
43990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
43991         file: multiarch copysign for PowerPC32.
43992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
43993         file: multiarch copysignf for PowerPC32.
43994
43995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
43996         and truncf multiarch implementations.
43997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
43998         New file.
43999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
44000         file.
44001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
44002         multiarch trunc for PowerPC32.
44003         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
44004         New file.
44005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
44006         New file.
44007         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
44008         multiarch truncf for PowerPC32.
44009
44010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
44011         and roundf multiarch implementations.
44012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
44013         New file.
44014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
44015         file.
44016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
44017         multiarch round for PowerPC32.
44018         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
44019         New file.
44020         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
44021         New file.
44022         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
44023         multiarch roundf for PowerPC32.
44024
44025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
44026         and floorf multiarch implementations.
44027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
44028         New file.
44029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
44030         file.
44031         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
44032         multiarch floor for PowerPC32.
44033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
44034         New file.
44035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
44036         New file.
44037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
44038         multiarch floorf for PowerPC32.
44039
44040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
44041         and ceilf multiarch implementations.
44042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
44043         New file.
44044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
44045         file.
44046         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
44047         multiarch ceil for PowerPC32.
44048         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
44049         New file.
44050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
44051         file.
44052         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
44053         multiarch ceilf for PowerPC32.
44054
44055         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
44056         is defined.
44057         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
44058         FINITEF is defined.
44059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
44060         and finitef multiarch implementations.
44061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
44062         New file.
44063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
44064         file.
44065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
44066         multiarch finite for PowerPC32.
44067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
44068         New file.
44069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
44070         file: multiarch finitef for PowerPC32.
44071
44072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
44073         and isinff multiarch implementations.
44074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
44075         file.
44076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
44077         file.
44078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
44079         multiarch isinf for PowerPC32.
44080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
44081         New file.
44082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
44083         multiarch isinff for PowerPC32.
44084
44085         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
44086         alias when __isnan is defined.
44087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
44088         and isnanf multiarch implementations.
44089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
44090         file.
44091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
44092         file.
44093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
44094         file.
44095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
44096         file.
44097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
44098         multiarch isnan for PowerPC32.
44099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
44100         New file.
44101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
44102         New file.
44103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
44104         multiarch isnanf for PowerPC32.
44105
44106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
44107         and sqrtf multiarch implementations.
44108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
44109         file.
44110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
44111         file.
44112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
44113         multiarch sqrt for PowerPC32.
44114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
44115         file.
44116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
44117         file.
44118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
44119         multiarch sqrtf for PowerPC32.
44120
44121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
44122         and llroundf multiarch implementations.
44123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
44124         New file.
44125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
44126         New file.
44127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
44128         New file.
44129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
44130         file: multiarch llround for PowerPC32.
44131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
44132         file: multiarch llroundf for PowerPC32.
44133
44134         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
44135         multiarch PowerPC32 fpu implementations.
44136         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
44137         New file.
44138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
44139         New file.
44140         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
44141         multiarch llrint for PowerPC32.
44142         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
44143         New file.
44144         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
44145         New file.
44146         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
44147         file.
44148
44149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
44150
44151         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
44152         file.
44153         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
44154         file.
44155         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
44156         file.
44157         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
44158         multiarch wordcopy for PPC32.
44159         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
44160         wordcopy objects.
44161         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44162         (__libc_ifunc_impl_list): Likewise.
44163         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
44164         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
44165         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
44166         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
44167         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
44168         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
44169
44170         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
44171         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
44172         file.
44173         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
44174         file.
44175         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
44176         file.
44177         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
44178         multiarch wcscpy for PPC32.
44179         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
44180         multiarch objects.
44181         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44182         (__libc_ifunc_impl_list): Likewise.
44183         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
44184         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
44185         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
44186         sysdeps/powerpc/power6/wcscpy.c.
44187
44188         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
44189         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
44190         file.
44191         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
44192         file.
44193         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
44194         file.
44195         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
44196         multiarch wcsrchr for PPC32.
44197         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
44198         multiarch objects.
44199         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44200         (__libc_ifunc_impl_list): Likewise.
44201         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
44202         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
44203         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
44204         sysdeps/powerpc/power6/wcsrchr.c.
44205
44206         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
44207         file.
44208         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
44209         file.
44210         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
44211         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
44212         multiarch wcschr for PPc32.
44213         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
44214         multiarch objects.
44215         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44216         (__libc_ifunc_impl_list): Likewise.
44217         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
44218         * sysdeps/powerpc/power6/wcschr.c: ... to here.
44219         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
44220         sysdeps/powerpc/power6/wcschr.c.
44221
44222         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
44223         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
44224         file.
44225         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
44226         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
44227         file: multiarch strchr for PPC32.
44228         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
44229         multiarch objects.
44230         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44231         (__libc_ifunc_impl_list): Likewise.
44232
44233         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
44234         name.
44235         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
44236         file.
44237         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
44238         file.
44239         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
44240         multiarch strchrnul for PPC32.
44241         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
44242         multiarch objects.
44243         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44244         (__libc_ifunc_impl_list): Likewise.
44245
44246         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
44247         file.
44248         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
44249         multiarch strncasecmp for PPC32.
44250         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
44251         file.
44252         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
44253         multiarch strncasecmp_l for PPC32.
44254         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
44255         strncasecmp multiarch objects.
44256         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44257         (__libc_ifunc_impl_list): Likewise.
44258
44259         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
44260         file.
44261         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
44262         multiarch strncasecmp for PPC32.
44263         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
44264         New file.
44265         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
44266         multiarch strcasecmp_l for PPC32.
44267         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
44268         multiarch objects.
44269         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44270         (__libc_ifunc_impl_list): Likewise.
44271
44272         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
44273         file.
44274         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
44275         file.
44276         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
44277         multiarch strncmp for PPC32.
44278         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
44279         multiarch objects.
44280         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44281         (__libc_ifunc_impl_list): Likewise.
44282
44283         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
44284         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
44285         file.
44286         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
44287         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
44288         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
44289         multiarch objects.
44290         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44291         (__libc_ifunc_impl_list): Likewise.
44292
44293         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
44294         file.
44295         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
44296         file.
44297         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
44298         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
44299         multiarch objects.
44300         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44301         (__libc_ifunc_impl_list): Likewise.
44302
44303         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
44304         file.
44305         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
44306         file.
44307         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
44308         multiarch rawmemchr for PPC32.
44309         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
44310         multiarch objects.
44311         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44312         (__libc_ifunc_impl_list): Likewise.
44313
44314         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
44315         file.
44316         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
44317         file.
44318         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
44319         file: memrchr multiarch for PPC32.
44320         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
44321         multiarch objects.
44322         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44323         (__libc_ifunc_impl_list): Likewise.
44324
44325         * string/memchr.c (__memchr): Using macro to redefine symbol name.
44326         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
44327         file.
44328         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
44329         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
44330         multiarch memchr for PPC32.
44331         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
44332         multiarch objects.
44333         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44334         (__libc_ifunc_impl_list): Likewise.
44335
44336         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
44337         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
44338         file.
44339         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
44340         file.
44341         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
44342         file: multiarch mempcpy for PPC32.
44343         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
44344         multiarch objects.
44345         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44346         (__libc_ifunc_impl_list): Likewise.
44347
44348         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
44349         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
44350         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
44351         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
44352         multiarch bzero for PPC32.
44353         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
44354         file.
44355         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
44356         file.
44357         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
44358         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
44359         file: multiarch memset for PPC32.
44360         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
44361         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
44362         memset multiarch objects.
44363         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44364         (__libc_ifunc_impl_list): Likewise.
44365
44366         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
44367         file.
44368         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
44369         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
44370         memcmp for PPC32.
44371         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
44372         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
44373         multiarch objects.
44374         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44375         (__libc_ifunc_impl_list): Likewise.
44376
44377         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
44378         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
44379         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
44380         file.
44381         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
44382         file.
44383         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
44384         file.
44385         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
44386         multiarch memcpy for PPC32.
44387         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
44388         multiarch objects.
44389         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44390         (__libc_ifunc_impl_list): Likewise.
44391
44392         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
44393         support multiarch for POWER/PPC32.
44394         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
44395         Likewise.
44396         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
44397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
44398         Implies file to make multiarch folder appers before the fpu and
44399         default folder for power4 configuration.
44400
44401 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
44402
44403         * scripts/bench.pl: Append volatile keyword to type.
44404
44405 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44406
44407         * sysdeps/sh/sotruss-lib.c: New file.
44408         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
44409
44410 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44411
44412         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44413
44414 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
44415
44416         [BZ #6810]
44417         * math/w_tgamma.c: Include <errno.h>.
44418         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
44419         * math/w_tgammaf.c: Include <errno.h>.
44420         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
44421         * math/w_tgammal.c: Include <errno.h>.
44422         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
44423         * math/auto-libm-test-in: Do not allow missing errno on tgamma
44424         underflow.  Add more tgamma tests.
44425         * math/auto-libm-test-out: Regenerated.
44426         * sysdeps/i386/fpu/libm-test-ulps: Update.
44427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44428
44429         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
44430         sin, sinh, tan, tanh, tgamma, y0 and y1.
44431         * math/auto-libm-test-out: Regenerated.
44432         * math/libm-test.inc (TEST_COND_x86_64): New macro.
44433         (TEST_COND_x86): Likewise.
44434         (M_E2l): Remove macro.
44435         (M_E3l): Likewise.
44436         (M_2_SQRT_PIl): Likewise.
44437         (M_SQRT_PIl): Likewise.
44438         (M_1_DIV_El): Likewise.
44439         (log_test_data): Use AUTO_TESTS_f_f.
44440         (log10_test_data): Likewise.
44441         (log1p_test_data): Likewise.
44442         (log2_test_data): Likewise.
44443         (sin_test_data): Likewise.
44444         (sin_tonearest_test_data): Likewise.
44445         (sin_towardzero_test_data): Likewise.
44446         (sin_downward_test_data): Likewise.
44447         (sin_upward_test_data): Likewise.
44448         (sinh_test_data): Likewise.
44449         (sinh_tonearest_test_data): Likewise.
44450         (sinh_towardzero_test_data): Likewise.
44451         (sinh_downward_test_data): Likewise.
44452         (sinh_upward_test_data): Likewise.
44453         (tan_test_data): Likewise.
44454         (tan_tonearest_test_data): Likewise.
44455         (tan_towardzero_test_data): Likewise.
44456         (tan_downward_test_data): Likewise.
44457         (tan_upward_test_data): Likewise.
44458         (tanh_test_data): Likewise.
44459         (tgamma_test_data): Likewise.
44460         (y0_test_data): Likewise.
44461         (y1_test_data): Likewise.
44462         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
44463         (special_real_inputs): Add pi/4.
44464         * sysdeps/i386/fpu/libm-test-ulps: Update.
44465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44466
44467 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44468
44469         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
44470         "longjmp_target" static probes.
44471         (__longjmp): Rename to __longjmp_symbol.
44472         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
44473         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
44474         on which longjmp to generate.
44475         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
44476         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
44477         probe.
44478         (__sigsetjmp): Rename to __sigsetjmp_symbol.
44479         (__sigjmp_save): Rename to __sigjmp_save_symbol.
44480         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
44481         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
44482         and __sigjmp_save_symbol based on which sigsetjmp to generated.
44483         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
44485         __longjmp_symbol based on which __longjmp to generate.
44486         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
44487         probe.
44488         (setjmp): Rename to setjmp_symbol.
44489         (__sigsetjmp): Rename to __sigsetjmp_symbol.
44490         (_setjmp): Rename to _setjmp_symbol.
44491         (__sigsetjmp): Rename to __sigsetjmp_symbol.
44492         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
44493         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
44494         which setjmp to generate.
44495         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
44496         "longjmp_target" static probes.
44497
44498 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
44499
44500         * benchtests/README: Add note about output arguments.
44501         * benchtests/bench-sincos.c: Remove file.
44502         * benchtests/sincos-inputs: New file.
44503         * scripts/bench.pl: Identify output arguments and define
44504         static variables for them.
44505
44506         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
44507
44508         [BZ #15941]
44509         * Makefile (INSTALL): Add install-plain.texi as the primary
44510         dependency.
44511         * manual/install-plain.texi: New file.
44512         * manual/install.texi: Include node directive only for
44513         non-plaintext output.
44514
44515 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
44516
44517         * stdlib/longlong.h: Update from GCC.
44518
44519         [BZ #6807]
44520         [BZ #15901]
44521         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
44522         * math/w_j0f.c (y0f): Likewise.
44523         * math/w_j0l.c (__y0l): Likewise.
44524         * math/w_j1.c (y1): Likewise.
44525         * math/w_j1f.c (y1f): Likewise.
44526         * math/w_j1l.c (__y1l): Likewise.
44527         * math/w_jn.c (yn): Likewise.
44528         * math/w_jnf.c (ynf): Likewise.
44529         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
44530         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
44531         value for Bessel function domain errors outside _SVID_ mode.
44532         Adjust sign of return value for yn (negative integer, 0).
44533         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
44534         by zero in return for negative x and set sign appropriately for
44535         negative n.
44536         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
44537         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
44538         * math/libm-test.inc (y0_test_data): Add more tests and adjust
44539         expectations in error cases.
44540         (y1_test_data): Likewise.
44541         (yn_test_data): Likewise.
44542         * sysdeps/i386/fpu/libm-test-ulps: Update.
44543         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44544
44545 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44546
44547         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
44548         "64" to "64-v1".  Add "64-v2".
44549         (abi-64-options): Rename to ...
44550         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
44551         (abi-64-condition): Rename to ...
44552         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
44553         (abi-64-ld-soname): Rename to ...
44554         (abi-64-v1-ld-soname): ... this.
44555         (abi-64-v2-options): Define.
44556         (abi-64-v2-condition): Likewise.
44557         (abi-64-v2-ld-soname): Likewise.
44558         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
44559         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
44560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
44561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
44562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
44563
44564 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44565             Alan Modra  <amodra@gmail.com>
44566
44567         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
44568         New versions for use with the ELFv2 ABI.
44569         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
44570         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
44571         declaration.
44572         (struct La_ppc64v2_retval): Likewise.
44573         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
44574         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
44575         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
44576         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
44577         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
44578         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
44579         Do not save or restore CR.
44580         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
44581         (_dl_profile_resolve): Do no save or restore CR.  Support extended
44582         return values for ELFv2 ABI.  Fix location of FPR return registers.
44583         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
44584         updated values for _CALL_ELF == 2.
44585         (La_regs, La_retval, int_retval): Likewise.
44586
44587 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44588
44589         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
44590         (FRAME_MIN_SIZE_PARM): Likewise.
44591         (FRAME_BACKCHAIN): Likewise.
44592         (FRAME_CR_SAVE): Likewise.
44593         (FRAME_LR_SAVE): Likewise.
44594         (FRAME_TOC_SAVE): Likewise.
44595         (FRAME_PARM_SAVE): Likewise.
44596         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
44597         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
44598         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
44599         (call_mcount_parm_offset): New macro.
44600         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
44601         (PROF): Use symbolic stack frame offsets.
44602         (TAIL_CALL_SYSCALL_ERROR): Likewise.
44603         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
44604         Redefine in terms of FRAME_MIN_SIZE.
44605         (_dl_runtime_resolve): Use symbolic stack frame offsets.
44606         (_dl_profile_resolve): Likewise.  Update comment.
44607         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
44608         symbols stack frame offsets.
44609         (__sigsetjmp): Likewise.
44610         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
44611         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
44612         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
44613         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
44614
44615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
44616         (FRAME_BACKCHAIN): Remove.
44617         (FRAME_CR_SAVE): Likewise.
44618         (FRAME_LR_SAVE): Likewise.
44619         (FRAME_COMPILER_DW): Likewise.
44620         (FRAME_LINKER_DW): Likewise.
44621         (FRAME_TOC_SAVE): Likewise.
44622         (FRAME_PARM_SAVE): Likewise.
44623         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
44624         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
44625         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
44626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
44627         (CHECK_SP): Use symbolic stack frame offsets.
44628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
44629         zone" instead of caller's parameter save area for temp storage.
44630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
44631         Likewise.  Also, use symbolic stack frame offsets.
44632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
44633         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
44634         our own stack frame instead of the caller's.
44635         (__socket): Use symbolic stack frame offsets.
44636
44637 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44638             Alan Modra  <amodra@gmail.com>
44639
44640         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
44641         Define.
44642         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
44643         (PPC64_LOCAL_ENTRY_OFFSET): Define.
44644         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
44645         New function.
44646         (elf_machine_fixup_plt): Call it.
44647         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
44648         reloc arguments.
44649         (elf_machine_rela): Update call to elf_machine_plt_conflict.
44650         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
44651         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
44652         r2 before calling target.
44653
44654 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44655             Alan Modra  <amodra@gmail.com>
44656
44657         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
44658         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
44659         versions of macros to support ELFv2 ABI.
44660         (LOCALENTRY): New macro.
44661         (ENTRY, EALIGN): Use it.
44662         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
44663         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
44664         fall through into ENTRY entry point.
44665         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
44666         Only define if _CALL_ELF != 2.
44667
44668         (elf_machine_matches_host): Verify ABI version matches.
44669         (RTLD_START): Use LOCALENTRY.
44670         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
44671         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
44672         (PLT_ENTRY_WORDS): New macro.
44673         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
44674         (elf_machine_runtime_setup): Support ELFv2 ABI.
44675         (elf_machine_fixup_plt): Likewise.
44676         (elf_machine_plt_conflict): Likewise.
44677         (resolve_ifunc): Likewise.
44678         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
44679         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
44680         Likewise.
44681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
44682         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
44683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
44684         (makecontext): Support ELFv2 ABI.
44685         * elf/elf.h (EF_PPC64_ABI): Define.
44686
44687 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44688
44689         * sysdeps/powerpc/powerpc64/sysdep.h
44690         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
44691         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
44692         (ENTRY) [ASSEMBLER]: ... but instead here ...
44693         (EALIGN) [ASSEMBLER]: ... and here.
44694         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
44695         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
44696         (ENTRY_2) [!ASSEMBLER]: Use it.
44697         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
44698         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
44699         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
44700         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
44701         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
44702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
44703         Use PPC64_LOAD_FUNCPTR.
44704
44705         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
44706
44707 2013-12-04  Alan Modra  <amodra@gmail.com>
44708
44709         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
44710         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
44711         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
44712         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
44713
44714         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
44715         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
44716         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
44717         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
44718         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
44719         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
44720
44721 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44722
44723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
44724         (__makecontext): Fix incorrect CFI when backtracing out of
44725         context created via makecontext.
44726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
44727         (__setcontext): Fix incorrect CFI during switch to new context.
44728         (__novec_setcontext): Likewise.
44729
44730 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
44731
44732         [BZ #4772]
44733         * time/strptime_l.c (__strptime_internal): Allow modifiers
44734         in strptime.
44735         * time/tst-strptime.c (day_tests): Add testcase.
44736
44737 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44738
44739         * scripts/bench.pl: Skip over blank lines.
44740
44741 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
44742
44743         [BZ #926]
44744         * manual/time.texi (Calendar Time): Clarify what timezone functions
44745         use.
44746
44747 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44748
44749         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44750
44751 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
44752
44753         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
44754         implementation.
44755         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
44756         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
44757         * debug/memset_chk.c (__memset_chk): Likewise.
44758         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
44759         * debug/strncpy_chk.c: Likewise.
44760
44761 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
44762
44763         [BZ #15268]
44764         [BZ #15425]
44765         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
44766         (__ieee754_exp): For possibly underflowing results, check size of
44767         result and force underflow exception if required.
44768         * math/auto-libm-test-in: Add more tests of exp.
44769         * math/auto-libm-test-out: Regenerated.
44770         * sysdeps/i386/fpu/libm-test-ulps: Update.
44771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44772
44773         [BZ #16283]
44774         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
44775         * math/w_exp2f.c (__exp2f): Likewise.
44776         * math/w_exp2l.c (__exp2l): Likewise.
44777         * math/auto-libm-test-in: Do not allow missing errno on exp2
44778         underflow.
44779         * math/auto-libm-test-out: Regenerated.
44780
44781 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
44782
44783         [BZ #16274]
44784         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
44785         handle filename validation.
44786         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
44787         (do_open): Delete.
44788
44789 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
44790
44791         [BZ #6786]
44792         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
44793         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
44794         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
44795         <float.h>.
44796         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
44797         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
44798         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
44799         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
44800         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
44801         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
44802         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
44803         * math/auto-libm-test-in: Don't allow missing errno from erfc.
44804         Add more erfc tests.
44805         * math/auto-libm-test-out: Regenerated.
44806         * sysdeps/i386/fpu/libm-test-ulps: Update.
44807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44808
44809         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
44810         exp2, expm1, j0 and j1.
44811         * math/auto-libm-test-out: Regenerated.
44812         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
44813         (erfc_test_data): Likewise.
44814         (exp_test_data): Likewise.
44815         (exp_tonearest_test_data): Likewise.
44816         (exp_towardzero_test_data): Likewise.
44817         (exp_downward_test_data): Likewise.
44818         (exp_upward_test_data): Likewise.
44819         (exp10_test_data): Likewise.
44820         (exp2_test_data): Likewise.
44821         (expm1_test_data): Likewise.
44822         (j0_test_data): Likewise.
44823         (j1_test_data): Likewise.
44824         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
44825         (input_flag_type): Add flag_xfail_rounding.
44826         (input_flags): Add xfail-rounding.
44827         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
44828         (output_for_one_input_case): Handle flag_xfail_rounding.
44829         * sysdeps/i386/fpu/libm-test-ulps: Update.
44830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44831
44832 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
44833
44834         [BZ #16289]
44835         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
44836         division by 0.
44837
44838 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
44839
44840         [BZ #16195]
44841         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
44842         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
44843         (STAP_PROBE0): New macro.
44844         (STAP_PROBE1): Likewise.
44845         (STAP_PROBE2): Likewise.
44846         (STAP_PROBE3): Likewise.
44847         (STAP_PROBE4): Likewise.
44848
44849 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
44850
44851         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
44852
44853 2013-12-02  Steve Ellcey  <sellcey@mips.com>
44854
44855         * benchtests/Makefile (bench): Add sqrt.
44856         (LDLIBS-bench-sqrt): New.
44857         * benchtests/sqrt-input: New.
44858
44859 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
44860
44861         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
44862         (GAIH_EAI): Likewise.
44863         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
44864         (gaih_inet): Likewise.
44865         (getaddrinfo): Don't use GAIH_EAI.
44866
44867         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
44868         (struct gaih): Remove definition.
44869
44870 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
44871
44872         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
44873         Use HERRNOP directly.
44874
44875 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44876
44877         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44878
44879 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
44880
44881         * math/gen-auto-libm-tests.c (test_functions): Add more
44882         single-argument functions.
44883         (special_fill_pi_2): New function.
44884         (special_fill_minus_pi_2): Likewise.
44885         (special_fill_pi_6): Likewise.
44886         (special_fill_minus_pi_6): Likewise.
44887         (special_fill_pi_3): Likewise.
44888         (special_fill_2pi_3): Likewise.
44889         (special_fill_e): Likewise.
44890         (special_fill_1_e): Likewise.
44891         (special_fill_e_minus_1): Likewise.
44892         (special_real_inputs): Add more special inputs.
44893         (output_for_one_input_case): Do not require ERANGE on underflow to
44894         zero if round-to-nearest result does not underflow to zero, unless
44895         exact results required.
44896         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
44897         atan, atanh, cbrt, cos and cosh.
44898         * math/auto-libm-test-out: Regenerated.
44899         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
44900         (acos_tonearest_test_data): Likewise.
44901         (acos_towardzero_test_data): Likewise.
44902         (acos_downward_test_data): Likewise.
44903         (acos_upward_test_data): Likewise.
44904         (acosh_test_data): Likewise.
44905         (asin_test_data): Likewise.
44906         (asin_tonearest_test_data): Likewise.
44907         (asin_towardzero_test_data): Likewise.
44908         (asin_upward_test_data): Likewise.
44909         (asinh_test_data): Likewise.
44910         (atan_test_data): Likewise.
44911         (atanh_test_data): Likewise.
44912         (cbrt_test_data): Likewise.
44913         (cos_test_data): Likewise.
44914         (cos_tonearest_test_data): Likewise.
44915         (cos_towardzero_test_data): Likewise.
44916         (cos_downward_test_data): Likewise.
44917         (cos_upward_test_data): Likewise.
44918         (cosh_test_data): Likewise.
44919         (cosh_tonearest_test_data): Likewise.
44920         (cosh_towardzero_test_data): Likewise.
44921         (cosh_downward_test_data): Likewise.
44922         (cosh_upward_test_data): Likewise.
44923         * sysdeps/i386/fpu/libm-test-ulps: Update.
44924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44925
44926 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
44927
44928         [BZ #6787]
44929         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
44930         * math/w_exp10f.c (__exp10f): Likewise.
44931         * math/w_exp10l.c (__exp10l): Likewise.
44932         * math/libm-test.inc (exp10_test_data): Add more tests and expect
44933         errno settings in existing tests.
44934
44935         [BZ #14032]
44936         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
44937         precision control set to double precision.
44938         * sysdeps/i386/fpu/w_sqrt.c: New file.
44939         * math/auto-libm-test-in: Add more tests.
44940         * math/auto-libm-test-out: Update.
44941
44942         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
44943         (sqrt_test_tonearest): New function.
44944         (sqrt_towardzero_test_data): New variable.
44945         (sqrt_test_towardzero): New function.
44946         (sqrt_downward_test_data): New variable.
44947         (sqrt_test_downward): New function.
44948         (sqrt_upward_test_data): New variable.
44949         (sqrt_test_upward): New function.
44950         (main): Call the new functions.
44951
44952         * math/gen-auto-libm-tests.c: New file.
44953         * math/auto-libm-test-in: Likewise.
44954         * math/auto-libm-test-out: New generated file.
44955         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
44956         variables.
44957         (%beautify): Add generated representations of zero.
44958         (top level): Set $auto_input and call parse_auto_input.
44959         (beautify): Remove trailing "f" from hex float constants.
44960         (parse_args): Handle XFAIL_TEST.
44961         (convert_condition): New function.
44962         (or_value): Likewise.
44963         (or_cond_value): Likewise.
44964         (generate_testfile): Handle AUTO_TESTS_* lines.
44965         (parse_auto_input): New function.
44966         * math/libm-test.inc (XFAIL_TEST): New macro.
44967         (ERRNO_UNCHANGED): Update value.
44968         (ERRNO_EDOM): Likewise.
44969         (ERRNO_ERANGE): Likewise.
44970         (IGNORE_RESULT): Likewise.
44971         (TEST_COND_flt_32): New macro.
44972         (TEST_COND_dbl_64): Likewise.
44973         (TEST_COND_ldbl_96_intel): Likewise.
44974         (TEST_COND_ldbl_96_m68k): Likewise.
44975         (TEST_COND_ldbl_128): Likewise.
44976         (TEST_COND_ldbl_128ibm): Likewise.
44977         (TEST_COND_long32): Likewise.
44978         (TEST_COND_long64): Likewise.
44979         (TEST_COND_before_rounding): Likewise.
44980         (TEST_COND_after_rounding): Likewise.
44981         (enable_test): Handle XFAIL_TEST flag.
44982         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
44983         with finite results.
44984         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
44985         auto-libm-test-out.
44986
44987 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
44988             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44989
44990         [BZ #16214]
44991         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
44992         __tls_get_addr_internal instead of __tls_get_offset in order to
44993         avoid GOT pointer dependency.  Make rtld export
44994         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
44995         __tls_get_addr since we are a __tls_get_offset platform.
44996         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
44997         GOT pointer being set up before.
44998         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
44999
45000 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
45001
45002         * manual/math.texi (Errors in Math Functions): Document accuracy
45003         goals.
45004
45005         [BZ #15004]
45006         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
45007         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
45008         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
45009         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
45010         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
45011         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
45012         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
45013         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
45014         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
45015         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
45016         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
45017         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
45018         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
45019         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
45020         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
45021         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
45022
45023         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
45024         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
45025         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
45026         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
45027         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
45028         Likewise.
45029         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
45030         Likewise.
45031         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
45032         Likewise.
45033         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
45034         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
45035         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
45036         atomic-feupdateenv and flt-rounds.
45037         * sysdeps/powerpc/nofpu/Versions (libc): Add
45038         __atomic_feholdexcept, __atomic_feclearexcept,
45039         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
45040         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
45041         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
45042         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
45043         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
45044         here.
45045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
45046         Update.
45047
45048         * manual/arith.texi (FP Exceptions): Document that exceptions may
45049         not be raised when matherr is used.
45050         (Math Error Reporting): Document overflow in directed rounding
45051         modes.  Document that errno may not be set when finite values are
45052         returned on overflow.  Document intent to set errno on underflow
45053         only for underflow to zero.
45054
45055         [BZ #16271]
45056         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
45057         round-to-nearest then adjust result for other rounding modes.
45058         * include/fenv.h (fegetround): Use libm_hidden_proto.
45059         * math/fegetround.c (fegetround): Use libm_hidden_def.
45060         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
45061         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
45062         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
45063         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
45064         Likewise.
45065         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
45066         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
45067         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
45068         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
45069
45070 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
45071
45072         [BZ #16077]
45073         * nss/Versions (libnss_files): Add
45074         _nss_files_gethostbyname3_r.
45075         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
45076         New function.
45077         (HOST_DB_LOOKUP): Remove macro.
45078         (_nss_files_gethostbyname_r): Implement function without the
45079         HOST_DB_LOOKUP macro.
45080         (_nss_files_gethostbyname2_r): Likewise.
45081
45082 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
45083
45084         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
45085
45086 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
45087
45088         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
45089         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
45090         warning.
45091
45092 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45093
45094         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
45095         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
45096         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
45097         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
45098         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
45099         __fe_nomask_env_priv and attribute_hidden.
45100         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
45101         (libc_feupdateenv_test_ppc): Likewise.
45102         (libc_feresetround_ppc): Likewise.
45103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
45104         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
45105         compat_symbol macro.
45106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
45107         (__fe_nomask_env): Likewise.
45108         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
45109
45110 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
45111
45112         * string/Makefile: Remove ifunc tests.
45113         * string/test-string.h: Define TEST_IFUNC.
45114         * string/test-bcopy-ifunc.c: Remove.
45115         * string/test-bzero-ifunc.c: Likewise.
45116         * string/test-memccpy-ifunc.c: Likewise.
45117         * string/test-memchr-ifunc.c: Likewise.
45118         * string/test-memcmp-ifunc.c: Likewise.
45119         * string/test-memcpy-ifunc.c: Likewise.
45120         * string/test-memmem-ifunc.c: Likewise.
45121         * string/test-memmove-ifunc.c: Likewise.
45122         * string/test-mempcpy-ifunc.c: Likewise.
45123         * string/test-memrchr-ifunc.c: Likewise.
45124         * string/test-memset-ifunc.c: Likewise.
45125         * string/test-rawmemchr-ifunc.c: Likewise.
45126         * string/test-stpcpy-ifunc.c: Likewise.
45127         * string/test-stpncpy-ifunc.c: Likewise.
45128         * string/test-strcasecmp-ifunc.c: Likewise.
45129         * string/test-strcasestr-ifunc.c: Likewise.
45130         * string/test-strcat-ifunc.c: Likewise.
45131         * string/test-strchr-ifunc.c: Likewise.
45132         * string/test-strchrnul-ifunc.c: Likewise.
45133         * string/test-strcmp-ifunc.c: Likewise.
45134         * string/test-strcpy-ifunc.c: Likewise.
45135         * string/test-strcspn-ifunc.c: Likewise.
45136         * string/test-strlen-ifunc.c: Likewise.
45137         * string/test-strncasecmp-ifunc.c: Likewise.
45138         * string/test-strncat-ifunc.c: Likewise.
45139         * string/test-strncmp-ifunc.c: Likewise.
45140         * string/test-strncpy-ifunc.c: Likewise.
45141         * string/test-strnlen-ifunc.c: Likewise.
45142         * string/test-strpbrk-ifunc.c: Likewise.
45143         * string/test-strrchr-ifunc.c: Likewise.
45144         * string/test-strspn-ifunc.c: Likewise.
45145         * string/test-strstr-ifunc.c: Likewise.
45146
45147 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
45148
45149         * benchtests/Makefile: Remove ifunc tests.
45150         * benchtests/bench-string.h: Define TEST_IFUNC.
45151         * benchtests/bench-bcopy-ifunc.c: Remove.
45152         * benchtests/bench-bzero-ifunc.c: Likewise.
45153         * benchtests/bench-memccpy-ifunc.c: Likewise.
45154         * benchtests/bench-memchr-ifunc.c: Likewise.
45155         * benchtests/bench-memcmp-ifunc.c: Likewise.
45156         * benchtests/bench-memcpy-ifunc.c: Likewise.
45157         * benchtests/bench-memmem-ifunc.c: Likewise.
45158         * benchtests/bench-memmove-ifunc.c: Likewise.
45159         * benchtests/bench-mempcpy-ifunc.c: Likewise.
45160         * benchtests/bench-memrchr-ifunc.c: Likewise.
45161         * benchtests/bench-memset-ifunc.c: Likewise.
45162         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
45163         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
45164         * benchtests/bench-stpcpy-ifunc.c: Likewise.
45165         * benchtests/bench-stpncpy-ifunc.c: Likewise.
45166         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
45167         * benchtests/bench-strcasestr-ifunc.c: Likewise.
45168         * benchtests/bench-strcat-ifunc.c: Likewise.
45169         * benchtests/bench-strchr-ifunc.c: Likewise.
45170         * benchtests/bench-strchrnul-ifunc.c: Likewise.
45171         * benchtests/bench-strcmp-ifunc.c: Likewise.
45172         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
45173         * benchtests/bench-strcpy-ifunc.c: Likewise.
45174         * benchtests/bench-strcspn-ifunc.c: Likewise.
45175         * benchtests/bench-strlen-ifunc.c: Likewise.
45176         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
45177         * benchtests/bench-strncat-ifunc.c: Likewise.
45178         * benchtests/bench-strncmp-ifunc.c: Likewise.
45179         * benchtests/bench-strncpy-ifunc.c: Likewise.
45180         * benchtests/bench-strnlen-ifunc.c: Likewise.
45181         * benchtests/bench-strpbrk-ifunc.c: Likewise.
45182         * benchtests/bench-strrchr-ifunc.c: Likewise.
45183         * benchtests/bench-strsep-ifunc.c: Likewise.
45184         * benchtests/bench-strspn-ifunc.c: Likewise.
45185         * benchtests/bench-strstr-ifunc.c: Likewise.
45186
45187 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
45188
45189         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
45190
45191 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
45192
45193         * resolv/netdb.h: Use __glibc_reserved instead __unused.
45194         * rt/aio.h: Likewise.
45195         * sysdeps/gnu/bits/utmp.h: Likewise.
45196         * sysdeps/gnu/bits/utmpx.h: Likewise.
45197         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
45198         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
45199         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
45200         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
45201         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
45202         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
45203         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
45204         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
45205         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
45206         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
45207         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
45208         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
45209         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
45210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
45211         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
45212         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
45213         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
45214         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
45215         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
45216         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
45217         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
45218         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
45219         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
45220         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
45221         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
45222         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45223         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
45224         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
45225         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
45226         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
45227         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
45228         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
45229         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
45230         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
45231         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
45232         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
45233         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
45234         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
45235         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
45236         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
45237         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
45238         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45239
45240 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
45241
45242         [BZ #16245]
45243         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
45244         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
45245
45246 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
45247
45248         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
45249         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
45250         Likewise.
45251
45252 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45253
45254         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
45255         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
45256         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
45257         (__fesetround): Remove define.
45258         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
45259         rounding and exceptions handling.
45260         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
45261         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
45262         (__fe_nomask_env): Likewise.
45263         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
45264         __fegetround instead of fegetround.
45265         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
45266         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
45267
45268 2013-11-21  Roland McGrath  <roland@hack.frob.com>
45269
45270         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
45271         it's there.
45272
45273         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
45274
45275 2013-11-21  Meador Inge  <meadori@codesourcery.com>
45276
45277         [BZ #11157]
45278         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
45279         (encrypt_r): Likewise.
45280         * malloc/obstack.h (obstack_free): Likewise.
45281         * posix/unistd.h (encrypt): Likewise.
45282
45283 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
45284
45285         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
45286         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
45287         DL_CALL_DT_FINI() that call the functions directly.
45288         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
45289         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
45290         * elf/dl-fini.c: Likewise.
45291
45292 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
45293
45294         * malloc/hooks.c (memalign_check): Add alignment rounding.
45295         * malloc/malloc.c (_mid_memalign): New function.
45296         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
45297         Implement by calling _mid_memalign.
45298         * manual/probes.texi (Memory Allocation Probes): Remove
45299         memory_valloc_retry and memory_pvalloc_retry.
45300
45301 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45302
45303         * locale/programs/locarchive.c (open_archive): Add const
45304         qualifier to ARCHIVEFNAME and copy default fname to
45305         DEFAULT_FNAME.
45306
45307         [BZ #15601]
45308         * libio/tst-widetext.input: Rename Oriya to Odia.
45309         * locale/iso-639.def: Likewise.
45310
45311         * manual/probes.texi (Mathematical Function Probes): Add
45312         documentation for sin, cos, asin and acos probes.
45313         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
45314         (__sin32): Add slowasin probe.
45315         (__cos32): Add slowacos probe.
45316         (__mpsin): Add slowsin probe.
45317         (__mpcos): Add slowcos probe.
45318
45319 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
45320
45321         [BZ #15483]
45322         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
45323         thread-local __sim_exceptions_thread and global
45324         __sim_exceptions_global.
45325         (__sim_disabled_exceptions): Change to thread-local
45326         __sim_disabled_exceptions_thread and global
45327         __sim_disabled_exceptions_global.
45328         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
45329         and global __sim_round_mode_global.
45330         (__simulate_exceptions): Use thread-local floating-point state and
45331         set global state from it as needed.
45332         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
45333         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
45334         __sim_round_mode_thread.
45335         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
45336         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
45337         and global __sim_exceptions_global.
45338         (__sim_disabled_exceptions): Change to thread-local
45339         __sim_disabled_exceptions_thread and global
45340         __sim_disabled_exceptions_global.
45341         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
45342         and global __sim_round_mode_global.
45343         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
45344         (SIM_SET_GLOBAL): Likewise.
45345         * sysdeps/powerpc/soft-fp/sfp-machine.h
45346         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
45347         __sim_round_mode_thread.
45348         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
45349         __sim_disabled_exceptions_thread.
45350         (__sim_exceptions): Change to __sim_exceptions_thread.
45351         (__sim_disabled_exceptions): Change to
45352         __sim_disabled_exceptions_thread.
45353         (__sim_round_mode): Change to __sim_round_mode_thread.
45354         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
45355         thread-local floating-point state and set global state from it as
45356         needed.
45357         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
45358         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
45359         (__sim_disabled_exceptions): Remove extern declaration.
45360         (feenableexcept): Use thread-local floating-point state and set
45361         global state from it as needed.
45362         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
45363         extern declaration.
45364         (__sim_disabled_exceptions): Likewise.
45365         (__sim_round_mode): Likewise.
45366         (__fegetenv): Use thread-local floating-point state.
45367         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
45368         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
45369         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
45370         floating-point state and set global state from it as needed.
45371         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
45372         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
45373         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
45374         Likewise.
45375         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
45376         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
45377         Likewise.
45378         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
45379         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
45380         Use __sim_round_mode_thread.
45381         * math/test-fenv-tls.c: New file.
45382         * math/Makefile (tests): Add test-fenv-tls.
45383         ($(objpfx)test-fenv-tls): Depend on
45384         $(common-objpfx)nptl/libpthread.so.
45385
45386 2013-11-19  Andreas Schwab  <schwab@suse.de>
45387
45388         * locale/programs/locale.c (show_info): Decode wordarray elements.
45389         * locale/categories.def (LC_MONETARY): Add element for
45390         _NL_MONETARY_CRNCYSTR.
45391         * locale/C-monetary.c (conversion_rate): New variable.
45392         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
45393         element.
45394
45395 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
45396
45397         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
45398         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
45399
45400 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
45401
45402         * elf/Makefile (tst-auxv): New test.
45403         * elf/tst-auxv.c: New
45404         * elf/rtld.c (dl_main): Adjust AT_EXECFN
45405
45406 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
45407
45408         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
45409         (hidden_proto): Caller changed.
45410         (hidden_tls_proto): New macro.
45411         (libc_hidden_tls_proto): Likewise.
45412         (rtld_hidden_tls_proto): Likewise.
45413         (libm_hidden_tls_proto): Likewise.
45414         (libresolv_hidden_tls_proto): Likewise.
45415         (librt_hidden_tls_proto): Likewise.
45416         (libdl_hidden_tls_proto): Likewise.
45417         (libnss_files_hidden_tls_proto): Likewise.
45418         (libnsl_hidden_tls_proto): Likewise.
45419         (libnss_nisplus_hidden_tls_proto): Likewise.
45420         (libutil_hidden_tls_proto): Likewise.
45421
45422 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
45423
45424         [BZ #10253]
45425         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
45426         (decompose_rpath): Defer expansion to fillin_rpath.
45427         (_dl_init_paths): Pass linkmap to fillin_rpath.
45428
45429 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
45430
45431         * benchtests/Makefile: Add strsep.
45432         * benchtests/bench-strsep.c: New file: strsep benchtest.
45433         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
45434
45435 2013-11-18  Andreas Schwab  <schwab@suse.de>
45436
45437         * locale/programs/locale.c (show_info) [case byte]: Check for
45438         '\377' instead of '\177'.
45439         * locale/C-monetary.c (not_available): Always use "\377".
45440         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
45441         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
45442         detect unavailable sign_posn locale elements.
45443         * locale/localeconv.c (__localeconv): For grouping and
45444         mon_grouping handle "\177" and "\377" like no grouping.
45445         (INT_ELEM): New macro.  Use it to set all numeric members.
45446         * locale/programs/ld-monetary.c (monetary_read)
45447         <tok_mon_grouping>: Normalize single -1 to the empty string.
45448         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
45449         Likewise.
45450
45451 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
45452
45453         [BZ #16055]
45454         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
45455         when we match (nil).
45456         * stdio-common/tst-sscanf.c (struct test): Add testcase.
45457
45458 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
45459
45460         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
45461         (NO_TEST_INLINE): Update value.
45462         (ERRNO_UNCHANGED): Likewise.
45463         (ERRNO_EDOM): Likewise.
45464         (ERRNO_ERANGE): Likewise.
45465         (IGNORE_RESULT): Likewise.
45466         (check_float_internal): Check signs of NaN results if
45467         TEST_NAN_SIGN used.
45468         (check_complex): Pass TEST_NAN_SIGN flag through to second
45469         check_float_internal call.
45470         (copysign_test_data): Add tests with quiet NaNs as second
45471         argument.  Use TEST_NAN_SIGN.
45472         (fabs_test_data): Add test of negative quiet NaN argument.  Use
45473         TEST_NAN_SIGN.
45474         (signbit_test_data): Add tests of quiet NaN argument.
45475         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
45476
45477         * math/gen-libm-test.pl (show_exceptions): Take extra argument
45478         $ignore_result.
45479         (parse_args): Handle function results specified as IGNORE.
45480         * math/libm-test.inc (IGNORE_RESULT): New macro.
45481         (check_float_internal): Do not check numerical result if flag
45482         IGNORE_RESULT set.
45483         (check_complex): Pass through IGNORE_RESULT to second
45484         check_float_internal call.
45485         (check_int): Do not check numerical result if flag IGNORE_RESULT
45486         set.
45487         (check_long): Likewise.
45488         (check_bool): Likewise.
45489         (check_longlong): Likewise.
45490         (lrint_test_data): Add tests of infinite and NaN arguments.
45491         (lrint_tonearest_test_data): Likewise.
45492         (lrint_towardzero_test_data): Likewise.
45493         (lrint_downward_test_data): Likewise.
45494         (lrint_upward_test_data): Likewise.
45495         (llrint_test_data): Likewise.
45496         (llrint_tonearest_test_data): Likewise.
45497         (llrint_towardzero_test_data): Likewise.
45498         (llrint_downward_test_data): Likewise.
45499         (llrint_upward_test_data): Likewise.
45500         (lround_test_data): Likewise.
45501         (llround_test_data): Likewise.
45502
45503         * math/libm-test.inc (NO_TEST_INLINE): New macro.
45504         (ERRNO_UNCHANGED): Update value.
45505         (ERRNO_EDOM): Likewise.
45506         (ERRNO_ERANGE): Likewise.
45507         (NO_TEST_INLINE_FLOAT): New macro.
45508         (NO_TEST_INLINE_DOUBLE): Likewise.
45509         (enable_test): New function.
45510         (RUN_TEST_f_f): Check enable_test before running test.
45511         (RUN_TEST_2_f): Likewise.
45512         (RUN_TEST_fff_f): Likewise.
45513         (RUN_TEST_c_f): Likewise.
45514         (RUN_TEST_f_f1): Likewise.
45515         (RUN_TEST_fF_f1): Likewise.
45516         (RUN_TEST_fI_f1): Likewise.
45517         (RUN_TEST_ffI_f1): Likewise.
45518         (RUN_TEST_c_c): Likewise.
45519         (RUN_TEST_cc_c): Likewise.
45520         (RUN_TEST_f_i): Likewise.
45521         (RUN_TEST_f_i_tg): Likewise.
45522         (RUN_TEST_ff_i_tg): Likewise.
45523         (RUN_TEST_f_b): Likewise.
45524         (RUN_TEST_f_b_tg): Likewise.
45525         (RUN_TEST_f_l): Likewise.
45526         (RUN_TEST_f_L): Likewise.
45527         (RUN_TEST_fFF_11): Likewise.
45528         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
45529         conditionals.
45530         (cosh_test_data): Likewise.
45531         (exp_test_data): Likewise.
45532         (expm1_test_data): Likewise.
45533         (hypot_test_data): Likewise.
45534         (pow_test_data): Likewise.
45535         (sinh_test_data): Likewise.
45536         (tanh_test_data): Likewise.
45537         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
45538         flags argument.
45539
45540         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
45541         tests with quiet NaN input and output.
45542         (acosh_test_data): Likewise.
45543         (asin_test_data): Likewise.
45544         (asinh_test_data): Likewise.
45545         (atan_test_data): Likewise.
45546         (atanh_test_data): Likewise.
45547         (atan2_test_data): Likewise.
45548         (cbrt_test_data): Likewise.
45549         (cos_test_data): Likewise.
45550         (cosh_test_data): Likewise.
45551         (erf_test_data): Likewise.
45552         (erfc_test_data): Likewise.
45553         (exp_test_data): Likewise.
45554         (exp10_test_data): Likewise.
45555         (exp2_test_data): Likewise.
45556         (expm1_test_data): Likewise.
45557         (hypot_test_data): Likewise.
45558         (j0_test_data): Likewise.
45559         (j1_test_data): Likewise.
45560         (jn_test_data): Likewise.
45561         (lgamma_test_data): Likewise.
45562         (log_test_data): Likewise.
45563         (log10_test_data): Likewise.
45564         (log1p_test_data): Likewise.
45565         (log2_test_data): Likewise.
45566         (pow_test_data): Likewise.
45567         (scalb_test_data): Likewise.
45568         (sin_test_data): Likewise.
45569         (sincos_test_data): Likewise.
45570         (sinh_test_data): Likewise.
45571         (tan_test_data): Likewise.
45572         (tanh_test_data): Likewise.
45573         (tgamma_test_data): Likewise.
45574         (y0_test_data): Likewise.
45575         (y1_test_data): Likewise.
45576         (yn_test_data): Likewise.
45577
45578         [BZ #16167]
45579         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
45580         argument being NaN and avoid computations with second argument in
45581         that case.
45582         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
45583         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
45584         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
45585
45586 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
45587
45588         * locale/iso-639.def: Add Chitwani Tharu (the).
45589
45590 2013-11-14  Andreas Schwab  <schwab@suse.de>
45591
45592         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
45593         word instead of empty string.
45594
45595 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45596
45597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
45598         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
45599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
45600         (__fe_nomask_env): Likewise.
45601
45602 2013-11-13  Steve Ellcey  <sellcey@mips.com>
45603
45604         * benchtests/bench-timing.h: Include time.h.
45605
45606 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
45607
45608         [BZ #15997]
45609         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
45610         to 3.4.0 for x32.
45611         * sysdeps/unix/sysv/linux/configure: Regenerated.
45612
45613 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
45614
45615         [BZ #16151]
45616         * stdlib/strtod_l.c (round_and_return): Do not consider
45617         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
45618         exponent one less than half the least subnormal exponent.
45619         * stdlib/test-strtod-round-data: Add more tests.
45620         * stdlib/tst-strtod-round.c (tests): Regenerated.
45621
45622 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45623
45624         [BZ #14143]
45625         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
45626         (__fe_mask_env): Likewise.
45627         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
45628         libm_hidden_proto and add function prototype.
45629         (__fe_mask_env): Add function prototype.
45630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
45631         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
45632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
45633         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
45634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
45635         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
45636
45637 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45638
45639         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
45640         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
45641
45642 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45643
45644         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
45645         of htab_find_slot().
45646
45647 2013-11-11  David S. Miller  <davem@davemloft.net>
45648
45649         [BZ #16150]
45650         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
45651         symbol in the non-vis3 case in static builds.
45652         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
45653         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
45654         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
45655         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
45656
45657 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
45658
45659         [BZ #387]
45660         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
45661         it is empty.
45662
45663 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45664
45665         * benchtests/Makefile: Add bench-strtod.
45666         * benchtests/bench-strtod.c: New file: strtod benchtest
45667
45668 2013-11-11  Andreas Schwab  <schwab@suse.de>
45669
45670         [BZ #16153]
45671         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
45672         terminating NUL in key length.
45673
45674 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45675
45676         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
45677         Add artificial ODP entry for vDSO symbol for PPC64.
45678         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
45679         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
45680
45681 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
45682
45683         [BZ #15374]
45684         * nss/getent.c (services_keys): Recognize services starting with digit.
45685
45686 2013-11-06  David S. Miller  <davem@davemloft.net>
45687
45688         [BZ #15985]
45689         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
45690         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
45691
45692 2013-11-06  Will Newton  <will.newton@linaro.org>
45693
45694         * manual/memory.texi (Malloc Examples): Remove register
45695         keyword from examples.
45696
45697 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
45698
45699         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
45700
45701 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
45702
45703         [BZ #6981]
45704         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
45705         depending on [__GCC_IEC_559 > 0].
45706         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
45707         depending on [__GCC_IEC_559_COMPLEX > 0].
45708
45709 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
45710
45711         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
45712         to iso-639.def.
45713
45714 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
45715
45716         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
45717
45718 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
45719
45720         [BZ #16112]
45721         * malloc/malloc (malloc_info): Do not handle first bin as
45722         special case.
45723
45724 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
45725
45726         * locale/iso-639.def: Add Central Nahuatl (nhn).
45727
45728 2013-11-01  Bruno Haible  <bruno@clisp.org>
45729
45730         [BZ #7003]
45731         * manual/math.texi (BSD Random): Specify range upper bound as
45732         in POSIX.
45733
45734 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
45735
45736         * locale/iso-639.def: Add Meadow Mari (mhr).
45737
45738 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
45739
45740         [BZ #14752], [BZ #15763]
45741         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
45742         Validate name.
45743         * rt/tst_shm.c: Add test for escaping directory.
45744
45745 2013-10-31  Andreas Schwab  <schwab@suse.de>
45746
45747         [BZ #15917]
45748         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
45749         followed by 'x' as part of digit sequence.
45750         * stdio-common/tst-sscanf.c (double_tests2): New tests.
45751
45752 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
45753
45754         [BZ #16037]
45755         * configure.ac: allow GNU Make 4.0 and greater.
45756         * configure: Regenerated.
45757
45758 2013-10-30  Will Newton  <will.newton@linaro.org>
45759
45760         [BZ #16038]
45761         * malloc/hooks.c (memalign_check): Limit alignment to the
45762         maximum representable power of two.
45763         * malloc/malloc.c (__libc_memalign): Likewise.
45764         * malloc/tst-memalign.c (do_test): Add test for very
45765         large alignment values.
45766         * malloc/tst-posix_memalign.c (do_test): Likewise.
45767
45768 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
45769
45770         [BZ #11087]
45771         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
45772         (munmap_chunk): Likewise.
45773         (mremap_chunk): Likewise.
45774
45775 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
45776
45777         [BZ #15799]
45778         * stdlib/div.c (div): Remove obsolete code.
45779         * stdlib/ldiv.c (ldiv): Likewise.
45780         * stdlib/lldiv.c (lldiv): Likewise.
45781
45782 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45783
45784         [BZ #16071]
45785         * nss/nss_files/files-XXX.c (get_contents_ret): New
45786         enumerator.
45787         (get_contents): New function.
45788         (internal_getent): Use it.  Expand size of LINEBUFLEN.
45789
45790 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
45791
45792         * configure.in: Moved to ...
45793         * configure.ac: ... here. Change reference to configure.in
45794         to configure.ac.
45795         * sysdeps/arm/preconfigure.ac: ... here.
45796         configure.in to configure.ac.
45797         * sysdeps/gnu/configure.in: Moved to ...
45798         * sysdeps/gnu/configure.ac: ... here.
45799         * sysdeps/i386/configure.in: Moved to ...
45800         * sysdeps/i386/configure.ac: ... here.
45801         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
45802         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
45803         * sysdeps/mach/configure.in: Moved to ...
45804         * sysdeps/mach/configure.ac: ... here.
45805         * sysdeps/mach/hurd/configure.in: Moved to ...
45806         * sysdeps/mach/hurd/configure.ac: ... here.
45807         * sysdeps/powerpc/configure.in: Moved to ...
45808         * sysdeps/powerpc/configure.ac: ... here.
45809         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
45810         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
45811         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
45812         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
45813         * sysdeps/s390/s390-32/configure.in: Moved to ...
45814         * sysdeps/s390/s390-32/configure.ac: ... here.
45815         * sysdeps/s390/s390-64/configure.in: Moved to ...
45816         * sysdeps/s390/s390-64/configure.ac: ... here.
45817         * sysdeps/sh/configure.in: Moved to ...
45818         * sysdeps/sh/configure.ac: ... here.
45819         * sysdeps/sparc/configure.in: Moved to ...
45820         * sysdeps/sparc/configure.ac: ... here.
45821         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
45822         * sysdeps/unix/sysv/linux/configure.ac: ... here.
45823         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
45824         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
45825         * sysdeps/x86_64/configure.in: Moved to ...
45826         * sysdeps/x86_64/configure.ac: ... here.
45827         * sysdeps/x86_64/preconfigure.in: Moved to ...
45828         * sysdeps/x86_64/preconfigure.ac: ... here.
45829         * aclocal.m4: Change reference to configure.in to configure.ac.
45830         * config.h.in: Likewise.
45831         * manual/install.texi: Likewise.
45832         * manual/maint.texi: Likewise.
45833         * Makefile: Likewise.
45834         * malloc/Makefile: Likewise.
45835         * nscd/Makefile: Likewise.
45836         * Makeconfig: Change reference to configure.in and
45837         preconfigure.in to configure.ac and preconfigure.ac
45838         respectively.
45839         * INSTALL: Regenerated.
45840         * configure: Likewise.
45841         * sysdeps/gnu/configure: Likewise.
45842         * sysdeps/i386/configure: Likewise.
45843         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
45844         * sysdeps/mach/configure: Likewise.
45845         * sysdeps/mach/hurd/configure: Likewise.
45846         * sysdeps/powerpc/configure: Likewise.
45847         * sysdeps/powerpc/powerpc32/configure: Likewise.
45848         * sysdeps/powerpc/powerpc64/configure: Likewise.
45849         * sysdeps/s390/s390-32/configure: Likewise.
45850         * sysdeps/s390/s390-64/configure: Likewise.
45851         * sysdeps/sh/configure: Likewise.
45852         * sysdeps/sparc/configure: Likewise.
45853         * sysdeps/unix/sysv/linux/configure: Likewise.
45854         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
45855         * sysdeps/x86_64/configure: Likewise.
45856         * sysdeps/x86_64/preconfigure: Likewise.
45857
45858 2013-10-29  Andreas Schwab  <schwab@suse.de>
45859
45860         * stdio-common/Makefile (tst-swscanf-ENV): Define.
45861
45862 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
45863
45864         * benchtests/pow-inputs: Add new inputs.
45865
45866         * benchtests/exp-inputs: Add new inputs.
45867
45868         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
45869         conditional check for return value.
45870         (__cos32): Likewise.
45871
45872 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45873
45874         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
45875         to provide a boost for large inputs with word alignment.
45876         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
45877         implementation based on optimized PPC64 strcpy.
45878         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
45879         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
45880         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
45881         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
45882
45883 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
45884
45885         [BZ #2801]
45886         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
45887
45888 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
45889
45890         [BZ #14876]
45891         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
45892         * time/tst-strptime.c (day_tests): Add testcase.
45893
45894 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
45895
45896         [BZ #14029]
45897         * manual/pattern.texi: Acknowledge that fnmatch can fail.
45898
45899 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
45900
45901         [BZ #16074]
45902         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
45903         MAP_FAILED on error.
45904
45905 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
45906
45907         [BZ #16072]
45908         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
45909         heap for large requests.
45910
45911 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
45912
45913         [BZ #9954]
45914         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
45915         result if the result has no associated interface.
45916         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
45917         interface for all 127.X.Y.Z addresses.
45918
45919 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
45920
45921         * locale/iso-639.def: Add Ligurian (lij)
45922
45923 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
45924
45925         [BZ #15825]
45926         * sunrpc/rpc_main.c: Document rpcgen -5.
45927
45928 2013-10-19  Michael Stahl  <mstahl@redhat.com>
45929
45930         * elf/rtld.c (do_preload): Print the reason why preloading failed.
45931
45932 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
45933
45934         [BZ #10278]
45935         * posix/glob.c: Match only directories when trailing slash is present.
45936         * posix/tst-gnuglob.c (my_opendir): Do not open files.
45937         (main): Add testcase.
45938
45939 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
45940
45941         [BZ #15670]
45942         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
45943
45944 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
45945
45946         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
45947         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
45948         AUTH_DES and cindex for FIPS 140-2.
45949         (DES Encryption): Add cindex FIPS 46-3.
45950
45951         * locale/locarchive.h (struct locarhandle): Add fname.
45952         * locale/programs/localedef.c (main): Pass ARGV[remaining]
45953         if an optional argument was specified to --list-archive,
45954         otherwise NULL.
45955         * locale/programs/locarchive.c (show_archive_content): Take new
45956         argument fname and pass it via ah.fname to open_archive.
45957         * locale/programs/localedef.h: Update decl.
45958         (open_archive): If AH->fname is non-null, open that file
45959         rather than the default file name, and don't ignore ENOENT.
45960         (create_archive): Set AH.fname to NULL.
45961         (delete_locales_from_archive): Likewise.
45962         (add_locales_to_archive): Likewise.
45963         * locale/programs/locfile.c (write_all_categories): Likewise.
45964
45965 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
45966             Aldy Hernandez  <aldyh@redhat.com>
45967
45968         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
45969         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
45970         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
45971         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
45972         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
45973         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
45974         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
45975         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
45976         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
45977         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
45978         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
45979         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
45980         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
45981         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
45982         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
45983         Likewise.
45984         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
45985         Likewise.
45986         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
45987         Likewise.
45988         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
45989         Likewise.
45990         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
45991         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
45992         Likewise.
45993         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
45994         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
45995         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
45996         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
45997         Likewise.
45998         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
45999         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
46000         * sysdeps/powerpc/preconfigure: Likewise.
46001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
46002         Likewise.
46003         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
46004         Replace contents of file by #include of <fenv_libc.h>.
46005         * sysdeps/powerpc/soft-fp/sfp-machine.h
46006         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
46007         and <sys/prctl.h>.
46008         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
46009         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
46010         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
46011         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
46012         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
46013         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
46014         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
46015         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
46016         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
46017         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
46018         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
46019         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
46020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
46021         Allow copysignl PLT reference to be missing.
46022
46023 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
46024             Joseph Myers  <joseph@codesourcery.com
46025
46026         [BZ #15948]
46027         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
46028         single character.
46029         (add_to_tablewc): Assert sequence of wide characters is nonempty.
46030
46031 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
46032
46033         * elf/tst-tls-dlinfo.c: Don't include tls.h.
46034         * elf/tst-tls1.c: Likewise.
46035         * elf/tst-tls10.h: Likewise.
46036         * elf/tst-tls14.c: Likewise.
46037         * elf/tst-tls2.c: Likewise.
46038         * elf/tst-tls3.c: Likewise.
46039         * elf/tst-tls4.c: Likewise.
46040         * elf/tst-tls5.c: Likewise.
46041         * elf/tst-tls6.c: Likewise.
46042         * elf/tst-tls7.c: Likewise.
46043         * elf/tst-tls8.c: Likewise.
46044         * elf/tst-tls9.c: Likewise.
46045         * elf/tst-tlsmod1.c: Likewise.
46046         * elf/tst-tlsmod13.c: Likewise.
46047         * elf/tst-tlsmod13a.c: Likewise.
46048         * elf/tst-tlsmod14a.c: Likewise.
46049         * elf/tst-tlsmod16a.c: Likewise.
46050         * elf/tst-tlsmod16b.c: Likewise.
46051         * elf/tst-tlsmod2.c: Likewise.
46052         * elf/tst-tlsmod3.c: Likewise.
46053         * elf/tst-tlsmod4.c: Likewise.
46054         * elf/tst-tlsmod5.c: Likewise.
46055         * elf/tst-tlsmod6.c: Likewise.
46056
46057 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
46058
46059         [BZ #12486]
46060         * malloc/malloc.c: remove checks for statistics.
46061
46062 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
46063
46064         [BZ #15277]
46065         * inet/inet_net.c (inet_network): Detect additional invalid strings.
46066         * inet/tst-network.c: Add testcase.
46067
46068 2013-10-17  Andreas Schwab  <schwab@suse.de>
46069
46070         [BZ #15218]
46071         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
46072         to determine canonical name.
46073
46074 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
46075
46076         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
46077         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
46078         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
46079         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
46080         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
46081         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
46082         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
46083         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
46084         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
46085         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
46086         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
46087         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
46088         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
46089         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
46090         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
46091         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
46092         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
46093         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
46094         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
46095         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
46096         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
46097         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
46098         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46099         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
46100         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
46101         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
46102         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
46103         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
46104         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
46105         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
46106         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
46107         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
46108         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
46109         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
46110         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
46111         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
46112         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
46113         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
46114         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
46115         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
46116         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
46117         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
46118         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
46119         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
46120         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
46121         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
46122         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
46123         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
46124         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
46125         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
46126         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
46127         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
46128         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
46129         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
46130         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
46131         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
46132         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
46133         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
46134
46135 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
46136
46137         [BZ #16041]
46138         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
46139         make result into a quiet NaN.
46140
46141 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
46142
46143         * soft-fp/adddf3.c: Fix horizontal whitespace.
46144         * soft-fp/addsf3.c: Likewise.
46145         * soft-fp/addtf3.c: Likewise.
46146         * soft-fp/divdf3.c: Likewise.
46147         * soft-fp/divsf3.c: Likewise.
46148         * soft-fp/divtf3.c: Likewise.
46149         * soft-fp/double.h: Likewise.
46150         * soft-fp/eqdf2.c: Likewise.
46151         * soft-fp/eqsf2.c: Likewise.
46152         * soft-fp/eqtf2.c: Likewise.
46153         * soft-fp/extenddftf2.c: Likewise.
46154         * soft-fp/extended.h: Likewise.
46155         * soft-fp/extendsfdf2.c: Likewise.
46156         * soft-fp/extendsftf2.c: Likewise.
46157         * soft-fp/extendxftf2.c: Likewise.
46158         * soft-fp/fixdfdi.c: Likewise.
46159         * soft-fp/fixdfsi.c: Likewise.
46160         * soft-fp/fixdfti.c: Likewise.
46161         * soft-fp/fixsfdi.c: Likewise.
46162         * soft-fp/fixsfsi.c: Likewise.
46163         * soft-fp/fixsfti.c: Likewise.
46164         * soft-fp/fixtfdi.c: Likewise.
46165         * soft-fp/fixtfsi.c: Likewise.
46166         * soft-fp/fixtfti.c: Likewise.
46167         * soft-fp/fixunsdfdi.c: Likewise.
46168         * soft-fp/fixunsdfsi.c: Likewise.
46169         * soft-fp/fixunsdfti.c: Likewise.
46170         * soft-fp/fixunssfdi.c: Likewise.
46171         * soft-fp/fixunssfsi.c: Likewise.
46172         * soft-fp/fixunssfti.c: Likewise.
46173         * soft-fp/fixunstfdi.c: Likewise.
46174         * soft-fp/fixunstfsi.c: Likewise.
46175         * soft-fp/fixunstfti.c: Likewise.
46176         * soft-fp/floatdidf.c: Likewise.
46177         * soft-fp/floatdisf.c: Likewise.
46178         * soft-fp/floatditf.c: Likewise.
46179         * soft-fp/floatsidf.c: Likewise.
46180         * soft-fp/floatsisf.c: Likewise.
46181         * soft-fp/floatsitf.c: Likewise.
46182         * soft-fp/floattidf.c: Likewise.
46183         * soft-fp/floattisf.c: Likewise.
46184         * soft-fp/floattitf.c: Likewise.
46185         * soft-fp/floatundidf.c: Likewise.
46186         * soft-fp/floatundisf.c: Likewise.
46187         * soft-fp/floatunditf.c: Likewise.
46188         * soft-fp/floatunsidf.c: Likewise.
46189         * soft-fp/floatunsisf.c: Likewise.
46190         * soft-fp/floatunsitf.c: Likewise.
46191         * soft-fp/floatuntidf.c: Likewise.
46192         * soft-fp/floatuntisf.c: Likewise.
46193         * soft-fp/floatuntitf.c: Likewise.
46194         * soft-fp/fmadf4.c: Likewise.
46195         * soft-fp/fmasf4.c: Likewise.
46196         * soft-fp/fmatf4.c: Likewise.
46197         * soft-fp/gedf2.c: Likewise.
46198         * soft-fp/gesf2.c: Likewise.
46199         * soft-fp/getf2.c: Likewise.
46200         * soft-fp/ledf2.c: Likewise.
46201         * soft-fp/lesf2.c: Likewise.
46202         * soft-fp/letf2.c: Likewise.
46203         * soft-fp/muldf3.c: Likewise.
46204         * soft-fp/mulsf3.c: Likewise.
46205         * soft-fp/multf3.c: Likewise.
46206         * soft-fp/negdf2.c: Likewise.
46207         * soft-fp/negsf2.c: Likewise.
46208         * soft-fp/negtf2.c: Likewise.
46209         * soft-fp/op-1.h: Likewise.
46210         * soft-fp/op-2.h: Likewise.
46211         * soft-fp/op-4.h: Likewise.
46212         * soft-fp/op-8.h: Likewise.
46213         * soft-fp/op-common.h: Likewise.
46214         * soft-fp/quad.h: Likewise.
46215         * soft-fp/single.h: Likewise.
46216         * soft-fp/soft-fp.h: Likewise.
46217         * soft-fp/sqrtdf2.c: Likewise.
46218         * soft-fp/sqrtsf2.c: Likewise.
46219         * soft-fp/sqrttf2.c: Likewise.
46220         * soft-fp/subdf3.c: Likewise.
46221         * soft-fp/subsf3.c: Likewise.
46222         * soft-fp/subtf3.c: Likewise.
46223         * soft-fp/truncdfsf2.c: Likewise.
46224         * soft-fp/trunctfdf2.c: Likewise.
46225         * soft-fp/trunctfsf2.c: Likewise.
46226         * soft-fp/trunctfxf2.c: Likewise.
46227         * soft-fp/unorddf2.c: Likewise.
46228         * soft-fp/unordsf2.c: Likewise.
46229         * soft-fp/unordtf2.c: Likewise.
46230
46231 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
46232
46233         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
46234         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
46235
46236 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
46237
46238         * elf/dl-libc.c: Clear initfini list after freeing.
46239
46240 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
46241
46242         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
46243         * soft-fp/addsf3.c: Likewise.
46244         * soft-fp/addtf3.c: Likewise.
46245         * soft-fp/divdf3.c: Likewise.
46246         * soft-fp/divsf3.c: Likewise.
46247         * soft-fp/divtf3.c: Likewise.
46248         * soft-fp/double.h: Likewise.
46249         * soft-fp/eqdf2.c: Likewise.
46250         * soft-fp/eqsf2.c: Likewise.
46251         * soft-fp/eqtf2.c: Likewise.
46252         * soft-fp/extenddftf2.c: Likewise.
46253         * soft-fp/extended.h: Likewise.
46254         * soft-fp/extendsfdf2.c: Likewise.
46255         * soft-fp/extendsftf2.c: Likewise.
46256         * soft-fp/extendxftf2.c: Likewise.
46257         * soft-fp/fixdfdi.c: Likewise.
46258         * soft-fp/fixdfsi.c: Likewise.
46259         * soft-fp/fixdfti.c: Likewise.
46260         * soft-fp/fixsfdi.c: Likewise.
46261         * soft-fp/fixsfsi.c: Likewise.
46262         * soft-fp/fixsfti.c: Likewise.
46263         * soft-fp/fixtfdi.c: Likewise.
46264         * soft-fp/fixtfsi.c: Likewise.
46265         * soft-fp/fixtfti.c: Likewise.
46266         * soft-fp/fixunsdfdi.c: Likewise.
46267         * soft-fp/fixunsdfsi.c: Likewise.
46268         * soft-fp/fixunsdfti.c: Likewise.
46269         * soft-fp/fixunssfdi.c: Likewise.
46270         * soft-fp/fixunssfsi.c: Likewise.
46271         * soft-fp/fixunssfti.c: Likewise.
46272         * soft-fp/fixunstfdi.c: Likewise.
46273         * soft-fp/fixunstfsi.c: Likewise.
46274         * soft-fp/fixunstfti.c: Likewise.
46275         * soft-fp/floatdidf.c: Likewise.
46276         * soft-fp/floatdisf.c: Likewise.
46277         * soft-fp/floatditf.c: Likewise.
46278         * soft-fp/floatsidf.c: Likewise.
46279         * soft-fp/floatsisf.c: Likewise.
46280         * soft-fp/floatsitf.c: Likewise.
46281         * soft-fp/floattidf.c: Likewise.
46282         * soft-fp/floattisf.c: Likewise.
46283         * soft-fp/floattitf.c: Likewise.
46284         * soft-fp/floatundidf.c: Likewise.
46285         * soft-fp/floatundisf.c: Likewise.
46286         * soft-fp/floatunsidf.c: Likewise.
46287         * soft-fp/floatunsisf.c: Likewise.
46288         * soft-fp/floatuntidf.c: Likewise.
46289         * soft-fp/floatuntisf.c: Likewise.
46290         * soft-fp/floatuntitf.c: Likewise.
46291         * soft-fp/fmadf4.c: Likewise.
46292         * soft-fp/fmasf4.c: Likewise.
46293         * soft-fp/fmatf4.c: Likewise.
46294         * soft-fp/gedf2.c: Likewise.
46295         * soft-fp/gesf2.c: Likewise.
46296         * soft-fp/getf2.c: Likewise.
46297         * soft-fp/ledf2.c: Likewise.
46298         * soft-fp/lesf2.c: Likewise.
46299         * soft-fp/letf2.c: Likewise.
46300         * soft-fp/muldf3.c: Likewise.
46301         * soft-fp/mulsf3.c: Likewise.
46302         * soft-fp/multf3.c: Likewise.
46303         * soft-fp/negdf2.c: Likewise.
46304         * soft-fp/negsf2.c: Likewise.
46305         * soft-fp/negtf2.c: Likewise.
46306         * soft-fp/op-1.h: Likewise.
46307         * soft-fp/op-2.h: Likewise.
46308         * soft-fp/op-4.h: Likewise.
46309         * soft-fp/op-8.h: Likewise.
46310         * soft-fp/op-common.h: Likewise.
46311         * soft-fp/quad.h: Likewise.
46312         * soft-fp/single.h: Likewise.
46313         * soft-fp/soft-fp.h: Likewise.
46314         * soft-fp/sqrtdf2.c: Likewise.
46315         * soft-fp/sqrtsf2.c: Likewise.
46316         * soft-fp/sqrttf2.c: Likewise.
46317         * soft-fp/subdf3.c: Likewise.
46318         * soft-fp/subsf3.c: Likewise.
46319         * soft-fp/subtf3.c: Likewise.
46320         * soft-fp/truncdfsf2.c: Likewise.
46321         * soft-fp/trunctfdf2.c: Likewise.
46322         * soft-fp/trunctfsf2.c: Likewise.
46323         * soft-fp/trunctfxf2.c: Likewise.
46324         * soft-fp/unorddf2.c: Likewise.
46325         * soft-fp/unordsf2.c: Likewise.
46326         * soft-fp/unordtf2.c: Likewise.
46327
46328 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
46329
46330         [BZ #15672]
46331         * misc/error.c (error_tail): Fix possible buffer overflow.
46332
46333 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
46334
46335         [BZ #13028]
46336         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
46337         address.
46338
46339 2013-10-14  P. J. McDermott  <pj@pehjota.net>
46340
46341         [BZ #832]
46342         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
46343         testing pipefail option.
46344
46345 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
46346
46347         * soft-fp/double.h: Indent preprocessor directives inside #if.
46348         * soft-fp/extended.h: Likewise.
46349         * soft-fp/op-2.h: Likewise.
46350         * soft-fp/op-4.h: Likewise.
46351         * soft-fp/op-common.h: Likewise.
46352         * soft-fp/quad.h: Likewise.
46353         * soft-fp/single.h: Likewise.
46354         * soft-fp/soft-fp.h: Likewise.
46355
46356 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
46357
46358         * iconv/iconv_prog.c: Fix typos.
46359         * stdio-common/psiginfo-data.h: Likewise.
46360
46361 2013-10-12   Reuben Thomas <rrt@sc3d.org>
46362
46363         [BZ #15764]
46364         * locale/setlocale.c: Fix typo.
46365
46366 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
46367
46368         [BZ #16036]
46369         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
46370         signaling NaN arguments.
46371         * soft-fp/unordsf2.c (__unordsf2): Likewise.
46372         * soft-fp/unordtf2.c (__unordtf2): Likewise.
46373
46374         [BZ #14910]
46375         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
46376         unordered operands.
46377         * soft-fp/gesf2.c (__gesf2): Likewise.
46378         * soft-fp/getf2.c (__getf2): Likewise.
46379         * soft-fp/ledf2.c (__ledf2): Likewise.
46380         * soft-fp/lesf2.c (__lesf2): Likewise.
46381         * soft-fp/letf2.c (__letf2): Likewise.
46382
46383         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
46384         * soft-fp/eqsf2.c (__eqsf2): Likewise.
46385         * soft-fp/eqtf2.c (__eqtf2): Likewise.
46386         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
46387         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
46388         * soft-fp/fixdfti.c (__fixdfti): Likewise.
46389         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
46390         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
46391         * soft-fp/fixsfti.c (__fixsfti): Likewise.
46392         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
46393         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
46394         * soft-fp/fixtfti.c (__fixtfti): Likewise.
46395         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
46396         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
46397         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
46398         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
46399         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
46400         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
46401         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
46402         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
46403         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
46404         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
46405         * soft-fp/floatdisf.c (__floatdisf): Likewise.
46406         * soft-fp/floatsisf.c (__floatsisf): Likewise.
46407         * soft-fp/floattidf.c (__floattidf): Likewise.
46408         * soft-fp/floattisf.c (__floattisf): Likewise.
46409         * soft-fp/floattitf.c (__floattitf): Likewise.
46410         * soft-fp/floatundidf.c (__floatundidf): Likewise.
46411         * soft-fp/floatundisf.c (__floatundisf): Likewise.
46412         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
46413         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
46414         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
46415         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
46416         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
46417         * soft-fp/gesf2.c (__gesf2): Likewise.
46418         * soft-fp/getf2.c (__getf2): Likewise.
46419         * soft-fp/ledf2.c (__ledf2): Likewise.
46420         * soft-fp/lesf2.c (__lesf2): Likewise.
46421         * soft-fp/letf2.c (__letf2): Likewise.
46422
46423         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
46424         Undefine and redefine.
46425         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
46426         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
46427         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
46428         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
46429         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46430         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
46431         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46432         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
46433         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46434         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
46435         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46436         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
46437         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46438         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
46439         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46440
46441         [BZ #16032]
46442         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
46443         without decrementing exponent if mantissa >= that for the
46444         denominator, not >.
46445         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
46446         denominator, not >.  Decrement exponent in < case instead of
46447         incrementing in >= case.
46448         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
46449         without decrementing exponent if mantissa >= that for the
46450         denominator, not >.
46451
46452         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
46453         computing saturated result for unsigned overflow.
46454
46455 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46456             Jeff Law  <law@redhat.com>
46457
46458         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
46459         (atan2Mp): Add systemtap probe marker.
46460         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
46461         (__ieee754_log): Add systemtap probe marker.
46462         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
46463         (atanMp): Add systemtap probe marker.
46464         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
46465         (tanMp): Add systemtap probe marker.
46466         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
46467         (__slowexp): Add systemtap probe marker.
46468         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
46469         (__slowpow): Add systemtap probe marker.
46470         * manual/probes.texi: Document probes.
46471
46472 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
46473
46474         [BZ #15362]
46475         * libio/fileops.c (_IO_new_file_write): Return count of bytes
46476         written.
46477         (_IO_new_file_xsputn): Don't return EOF if nothing has been
46478         written.
46479         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
46480         written to buffer but not flushed.
46481         * libio/iofwrite_u.c:  Likewise.
46482         * libio/iopadn.c:  Return bytes returned even if EOF was
46483         encountered.
46484         * libio/iowpadn.c:  Likewise.
46485         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
46486         if _IO_padn does not write the whole buffer.
46487         [!COMPILE_WPRINTF] (PAD): Likewise.
46488
46489 2013-10-10  David S. Miller  <davem@davemloft.net>
46490
46491         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
46492         directory block.
46493
46494 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
46495
46496         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
46497         instead of FSF address.
46498         * soft-fp/fixdfti.c: Likewise.
46499         * soft-fp/fixsfti.c: Likewise.
46500         * soft-fp/fixtfti.c: Likewise.
46501         * soft-fp/fixunsdfti.c: Likewise.
46502         * soft-fp/fixunssfti.c: Likewise.
46503         * soft-fp/fixunstfti.c: Likewise.
46504         * soft-fp/floattidf.c: Likewise.
46505         * soft-fp/floattisf.c: Likewise.
46506         * soft-fp/floattitf.c: Likewise.
46507         * soft-fp/floatuntidf.c: Likewise.
46508         * soft-fp/floatuntisf.c: Likewise.
46509         * soft-fp/floatuntitf.c: Likewise.
46510         * soft-fp/trunctfxf2.c: Likewise.
46511
46512         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
46513         * soft-fp/fixdfti.c: Likewise.
46514         * soft-fp/fixsfti.c: Likewise.
46515         * soft-fp/fixtfti.c: Likewise.
46516         * soft-fp/fixunsdfti.c: Likewise.
46517         * soft-fp/fixunssfti.c: Likewise.
46518         * soft-fp/fixunstfti.c: Likewise.
46519         * soft-fp/floattidf.c: Likewise.
46520         * soft-fp/floattisf.c: Likewise.
46521         * soft-fp/floattitf.c: Likewise.
46522         * soft-fp/floatuntidf.c: Likewise.
46523         * soft-fp/floatuntisf.c: Likewise.
46524         * soft-fp/floatuntitf.c: Likewise.
46525         * soft-fp/trunctfxf2.c: Likewise.
46526
46527 2013-10-10  David S. Miller  <davem@davemloft.net>
46528
46529         * sysdeps/sparc/fpu/libm-test-ulps: Update.
46530
46531 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
46532
46533         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
46534         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
46535         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
46536         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
46537         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
46538         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
46539         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
46540
46541         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
46542         for NaNs before doing comparisons on argument.
46543         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
46544         Likewise.
46545
46546 2013-10-10  Will Newton  <will.newton@linaro.org>
46547
46548         * malloc/hooks.c (memalign_check): Ensure the value of bytes
46549         passed to _int_memalign does not overflow.
46550
46551 2013-10-10  Torvald Riegel  <triegel@redhat.com>
46552
46553         * scripts/bench.pl: Add include-sources directive.
46554         * benchtests/README: Update documentation.
46555
46556 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
46557
46558         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
46559         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
46560         instead of FP_INIT_ROUNDMODE.
46561         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
46562         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
46563
46564         [BZ #16034]
46565         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
46566         copy class of input value.
46567         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
46568         not handle exceptions.
46569         * soft-fp/negsf2.c (__negsf2): Likewise.
46570         * soft-fp/negtf2.c (__negtf2): Likewise.
46571         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
46572
46573 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
46574
46575         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
46576         semicolon.  From Linux kernel.
46577
46578 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
46579
46580         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
46581
46582 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
46583
46584         [BZ #156]
46585         * manual/socket.texi: Added statement about buffer
46586         for gethostbyname2_r.
46587
46588 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
46589
46590         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
46591         Use .p2align directive instead, throughout.
46592         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
46593         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
46594         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
46595         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
46596         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
46597         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
46598         * sysdeps/x86_64/strchr.S: Likewise.
46599         * sysdeps/x86_64/strrchr.S: Likewise.
46600
46601 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
46602
46603         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
46604
46605         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
46606
46607         * sysdeps/generic/math_private.h (__mpsin1): Remove
46608         declaration.
46609         (__mpcos1): Likewise.
46610         (__mpsin): New argument __range_reduce.
46611         (__mpcos): Likewise.
46612         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
46613         (slow): Use __mpsin and __mpcos.
46614         (slow1): Likewise.
46615         (slow2): Likewise.
46616         (sloww): Likewise.
46617         (sloww1): Likewise.
46618         (sloww2): Likewise.
46619         (bsloww): Likewise.
46620         (bsloww1): Likewise.
46621         (bsloww2): Likewise.
46622         (cslow2): Likewise.
46623         (csloww): Likewise.
46624         (csloww1): Likewise.
46625         (csloww2): Likewise.
46626         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
46627         range_reduce.  Merge in __mpsin1.
46628         (__mpcos): Likewise.
46629         (__mpsin1): Remove.
46630         (__mpcos1): Likewise.
46631
46632 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
46633
46634         * locale/loadlocale.c (_nl_intern_locale_data): Use
46635         LOCFILE_ALIGNED_P.
46636         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
46637         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
46638         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
46639         obstack data is appropriately aligned.
46640         (obstack_int32_grow_fast): Likewise.
46641         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
46642         * locale/programs/locfile.c (add_locale_uint32): Likewise.
46643         (add_locale_uint32_array): Likewise.
46644
46645 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
46646
46647         * benchtests/Makefile: Remove ARGLIST and RET variables.
46648         ($(objpfx)bench-%.c): Pass only function name to the script.
46649         * benchtests/README: Update documentation.
46650         * benchtests/acos-inputs: Add new directives.
46651         * benchtests/acosh-inputs: Likewise.
46652         * benchtests/asin-inputs: Likewise.
46653         * benchtests/asinh-inputs: Likewise.
46654         * benchtests/atan-inputs: Likewise.
46655         * benchtests/atanh-inputs: Likewise.
46656         * benchtests/cos-inputs: Likewise.
46657         * benchtests/cosh-inputs: Likewise.
46658         * benchtests/exp-inputs: Likewise.
46659         * benchtests/log-inputs: Likewise.
46660         * benchtests/pow-inputs: Likewise.
46661         * benchtests/rint-inputs: Likewise.
46662         * benchtests/sin-inputs: Likewise.
46663         * benchtests/sinh-inputs: Likewise.
46664         * benchtests/tan-inputs: Likewise.
46665         * benchtests/tanh-inputs: Likewise.
46666         * scripts/bench.pl: Add support for new directives.
46667
46668 2013-10-07  Alan Modra  <amodra@gmail.com>
46669
46670         * README: Fix careless merge.
46671
46672 2013-10-05  Alan Modra  <amodra@gmail.com>
46673
46674         * NEWS: Mention powerpc64le support and bugs fixed.
46675         * README: Both big-endian and little-endian powerpc64 supported.
46676
46677 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46678
46679         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
46680         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
46681         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
46682         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
46683
46684 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
46685
46686         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
46687         match prototype.
46688
46689 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
46690
46691         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
46692         Move -mhard-float appending from
46693         ports/sysdeps/powerpc/powerpc32/Makefile.
46694         [$(with-fp) = yes] (ASFLAGS): Likewise.
46695         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
46696         * sysdeps/powerpc/nofpu: Move directory from
46697         ports/sysdeps/powerpc/nofpu.
46698         * sysdeps/powerpc/soft-fp: Move directory from
46699         ports/sysdeps/powerpc/soft-fp.
46700         * sysdeps/powerpc/powerpc32/405: Move directory from
46701         ports/sysdeps/powerpc/powerpc32/405.
46702         * sysdeps/powerpc/powerpc32/440: Move directory from
46703         ports/sysdeps/powerpc/powerpc32/440.
46704         * sysdeps/powerpc/powerpc32/464: Move directory from
46705         ports/sysdeps/powerpc/powerpc32/464.
46706         * sysdeps/powerpc/powerpc32/476: Move directory from
46707         ports/sysdeps/powerpc/powerpc32/476.
46708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
46709         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
46710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
46711         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
46712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
46713         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
46714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
46715         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
46716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
46717         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
46718         * README: Update for powerpc-*-linux-gnu software floating point
46719         support in libc.
46720
46721         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
46722         case to powerpc/powerpc32*.
46723         * sysdeps/unix/sysv/linux/configure: Regenerated.
46724
46725         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
46726         (_FPU_MASK_OM): Define as 0x04.
46727         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
46728         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
46729         0x00c10080.
46730         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
46731         0x0000003c.
46732         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
46733
46734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
46735         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
46736         getcontext_e500.
46737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
46738         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
46739         setcontext_e500.
46740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
46741         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
46742         and setcontext_e500.
46743
46744 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
46745
46746         * locale/iso-3166.def: Update iso-1366.def and related occurrences
46747
46748 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
46749
46750         * manual/threads.texi (Default Thread Attributes): Fix typo.
46751
46752 2013-10-04  Will Newton  <will.newton@linaro.org>
46753
46754         * malloc/Makefile: Add tst-memalign.
46755         * malloc/tst-memalign.c: New file.
46756
46757         * malloc/tst-posix_memalign.c: Add comments.
46758         (do_test): Add comments and call free on all potentially
46759         allocated pointers. Add space after cast.
46760
46761         * malloc/tst-pvalloc.c: Add comments.
46762         (do_test): Add comments and call free on all potentially
46763         allocated pointers. Remove duplicate check for NULL pointer.
46764         Add space after cast.
46765
46766         * malloc/tst-valloc.c: Add comments.
46767         (do_test): Add comments and call free on all potentially
46768         allocated pointers. Remove duplicate check for NULL pointer.
46769         Add space after cast.
46770
46771 2013-10-04  Alan Modra  <amodra@gmail.com>
46772
46773         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
46774         Use stdint types in rather than __attribute__((mode())).
46775         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
46776
46777 2013-10-04  Alan Modra  <amodra@gmail.com>
46778
46779         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
46780         Correct handling of unaligned relocs for little-endian.
46781         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
46782
46783 2013-10-04  Alan Modra  <amodra@gmail.com>
46784
46785         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
46786         * configure: Regenerate.
46787         * nptl/shlib-versions: Powerpc*le starts at 2.18.
46788         * shlib-versions: Likewise.
46789
46790 2013-10-04  Alan Modra  <amodra@gmail.com>
46791
46792         * string/tester.c (test_memrchr): Increment reported test cycle.
46793
46794 2013-10-04  Alan Modra  <amodra@gmail.com>
46795
46796         * string/test-memcpy.c (do_one_test): When reporting errors, print
46797         string address and don't overrun end of string.
46798
46799 2013-10-04  Alan Modra  <amodra@gmail.com>
46800
46801         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
46802         insrdi.  Make better use of reg selection to speed exit slightly.
46803         Schedule entry path a little better.  Remove useless "are we done"
46804         checks on entry to main loop.  Handle wrapping around zero address.
46805         Correct main loop count.  Handle single left-over word from main
46806         loop inline rather than by using loop_small.  Remove extra word
46807         case in loop_small caused by wrong loop count.  Add little-endian
46808         support.
46809         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
46810         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
46811         cache hint.
46812         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
46813         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
46814         support.  Avoid rlwimi.
46815         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
46816
46817 2013-10-04  Alan Modra  <amodra@gmail.com>
46818
46819         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
46820         insrdi.  Formatting.
46821         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
46822         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
46823         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
46824         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46825         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
46826         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
46827
46828 2013-10-04  Alan Modra  <amodra@gmail.com>
46829
46830         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
46831         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46832         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
46833         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
46834         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
46835         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46836         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46837         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
46838         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
46839         use of regs.  Use power7 mtocrf.  Tidy function tails.
46840
46841 2013-10-04  Alan Modra  <amodra@gmail.com>
46842
46843         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
46844         Formatting.  Consistently use rXXX register defines or rN defines.
46845         Use early exit labels that avoid restoring unused non-volatile regs.
46846         Make cr field use more consistent with rWORDn compares.  Rename
46847         regs used as shift registers for unaligned loop, using rN defines
46848         for short lifetime/multiple use regs.
46849         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46850         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
46851         addi 1,1,64 to pop stack frame.  Simplify return value code.
46852         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46853
46854 2013-10-04  Alan Modra  <amodra@gmail.com>
46855
46856         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
46857         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
46858         rather than rlwimi.
46859         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
46860         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
46861         little-endian support.  Correct typos.
46862         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
46863         rather than rlwimi.
46864         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
46865         in loop and entry code to keep "and." results.
46866         (strchr): Add little-endian support.  Comment.  Move cntlzd
46867         earlier in tail.
46868         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
46869
46870 2013-10-04  Alan Modra  <amodra@gmail.com>
46871
46872         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
46873         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
46874         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
46875         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
46876
46877 2013-10-04  Alan Modra  <amodra@gmail.com>
46878
46879         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
46880         (rTMP): Define as r11.
46881         (strcmp): Add little-endian support.  Optimise tail.
46882         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
46883         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46884         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
46885         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
46886         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
46887         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
46888         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
46889
46890 2013-10-04  Alan Modra  <amodra@gmail.com>
46891
46892         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
46893         little-endian support.  Remove unnecessary "are we done" tests.
46894         Handle "s" wrapping around zero and extremely large "size".
46895         Correct main loop count.  Handle single left-over word from main
46896         loop inline rather than by using small_loop.  Correct comments.
46897         Delete "zero" tail, use "end_max" instead.
46898         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
46899
46900 2013-10-04  Alan Modra  <amodra@gmail.com>
46901
46902         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
46903         support.  Don't branch over align.
46904         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
46905         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
46906         support.  Rearrange tmp reg use to suit.  Comment.
46907         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
46908
46909 2013-10-04  Alan Modra  <amodra@gmail.com>
46910
46911         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
46912
46913 2013-10-04  Alan Modra  <amodra@gmail.com>
46914
46915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
46916         conditional form of branch and link when obtaining pc.
46917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
46918
46919 2013-10-04  Alan Modra  <amodra@gmail.com>
46920
46921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
46922         HIWORD/LOWORD.
46923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
46924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
46925
46926 2013-10-04  Alan Modra  <amodra@gmail.com>
46927
46928         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
46929         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
46930         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
46931         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
46932         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
46933         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
46934         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
46935         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
46936         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
46937         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
46938
46939 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
46940             Alistair Popple <alistair@ozlabs.au.ibm.com>
46941             Alan Modra <amodra@gmail.com>
46942
46943         [BZ #15723]
46944         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
46945         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
46946         _dl_hwcap access for little-endian.
46947         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
46948         destroy vmx regs when saving unaligned.
46949         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
46950         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
46951         destroy vmx regs when saving unaligned.
46952
46953 2013-10-04  Alan Modra  <amodra@gmail.com>
46954
46955         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
46956         Don't use a union to pack hi/low value.
46957
46958 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
46959
46960         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
46961         for little-endian.
46962         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46963         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
46964         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
46965         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46966         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46967
46968 2013-10-04  Alan Modra  <amodra@gmail.com>
46969
46970         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
46971         constants to usual value for .cst8 section, and remove redundant
46972         high address load.
46973         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
46974         constant for 0x1p52.  Load little-endian words of double from
46975         correct stack offsets.
46976
46977 2013-10-04  Alan Modra  <amodra@gmail.com>
46978
46979         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
46980         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
46981         words of double from correct stack offsets.
46982         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
46983         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
46984         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46985         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46986         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46987         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46988         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46989         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
46990         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
46991         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46992         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46993         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46994         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
46995         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
46996         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
46997         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
46998         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
46999
47000 2013-10-04  Alan Modra  <amodra@gmail.com>
47001
47002         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
47003         64-bit int/double union.
47004         (_FPU_SETCW): Likewise.
47005         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
47006         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
47007
47008 2013-10-04  Alan Modra  <amodra@gmail.com>
47009
47010         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
47011         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
47012
47013 2013-10-04  Alan Modra  <amodra@gmail.com>
47014
47015         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
47016         use vector int constants.
47017         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
47018
47019 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
47020
47021         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
47022         array with long long.
47023         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
47024         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
47025         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
47026         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
47027         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
47028         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
47029         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
47030         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
47031         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
47032         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
47033         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
47034         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
47035         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
47036
47037 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
47038
47039         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
47040         (__signbit): Likewise.  Correct for little-endian.
47041         (__signbitl): Call __signbit.
47042         (lrint): Correct for little-endian.
47043         (lrintf): Call lrint.
47044
47045 2013-10-04  Alan Modra  <amodra@gmail.com>
47046
47047         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
47048         union 32-bit int array member with 64-bit int array.
47049         (t515, tm256): Double rather than long double.
47050         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
47051
47052 2013-10-04  Alan Modra  <amodra@gmail.com>
47053
47054         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
47055         Delete.
47056         (IEEE854_LONG_DOUBLE_BIAS): Delete.
47057         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
47058         version of math_ldbl.h.
47059
47060 2013-10-04  Alan Modra  <amodra@gmail.com>
47061
47062         [BZ #15734], [BZ #15735]
47063         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
47064         all uses of ieee875 long double macros and unions.  Simplify test
47065         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
47066         ldbl_extract_mantissa value for ix,iy exponents.  Properly
47067         normalize after ldbl_extract_mantissa, and don't add hidden bit
47068         already handled.  Don't treat low word of ieee854 mantissa like
47069         low word of IBM long double and mask off bit when testing for
47070         zero.
47071         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
47072         all uses of ieee875 long double macros and unions.  Simplify tests
47073         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
47074         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
47075         two1022, instead use their values.  Recognise that tests for large
47076         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
47077         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
47078         Rewrite all uses of ieee875 long double macros and unions.  Simplify
47079         test for 0.0L and nan.  Correct negation.
47080         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
47081         ieee875 long double macros and unions.  Correct output for large
47082         magnitude x.  Correct absolute value calculation.
47083         (__erfcl): Likewise.
47084         * math/libm-test.inc: Add tests for errors discovered in IBM long
47085         double versions of fmodl, remainderl, erfl and erfcl.
47086
47087 2013-10-04  Alan Modra  <amodra@gmail.com>
47088
47089         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
47090         all uses of ieee854 long double macros and unions.  Simplify tests
47091         for long doubles that are fully specified by the high double.
47092         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
47093         Likewise.
47094         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
47095         Remove dead code too.
47096         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
47097         (__ieee754_ynl): Likewise.
47098         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
47099         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
47100         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
47101         Remove dead code too.
47102         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
47103         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
47104         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
47105         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
47106         Simplify.
47107         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
47108         Simplify.
47109         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
47110         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
47111         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
47112         Comment on variable precision.
47113         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
47114         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
47115         Likewise.
47116         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
47117         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
47118         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
47119         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
47120         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
47121
47122 2013-10-04  Alan Modra  <amodra@gmail.com>
47123
47124         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
47125         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
47126         all uses of ieee854 long double macros and unions.
47127         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
47128         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
47129         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
47130         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
47131         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
47132         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
47133         Likewise.
47134         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
47135         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
47136         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
47137         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
47138         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
47139         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
47140         Simplify sign and nan test too.
47141         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
47142         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
47143         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
47144         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
47145         Likewise.
47146         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
47147         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
47148         Likewise.
47149         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
47150         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
47151         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
47152         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
47153         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
47154         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
47155
47156 2013-10-04  Alan Modra  <amodra@gmail.com>
47157
47158         * stdio-common/printf_size.c (__printf_size): Don't use
47159         union ieee854_long_double in fpnum union.
47160         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
47161         signbit macro to retrieve sign from long double.
47162         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
47163         retrieve sign from long double.
47164         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
47165         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
47166         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
47167         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
47168         * math/test-misc.c (main): Don't use union ieee854_long_double.
47169
47170 2013-10-04  Alan Modra  <amodra@gmail.com>
47171
47172         [BZ #15680]
47173         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
47174         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
47175         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
47176         calculation.  Remove unnecessary test for denormal exponent.
47177         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
47178         Correct handling of denormals.  Avoid undefined shift behaviour.
47179         Correct normalisation of low mantissa when low double is denormal.
47180         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
47181         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
47182         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
47183         Correct normalisation of low mantissa.  Test for overflow of high
47184         mantissa and normalise.
47185         (ldbl_nearbyint): Use more readable constant for two52.
47186         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
47187         (__mpn_construct_long_double): Fix test for overflow of high
47188         mantissa and correct normalisation.  Avoid undefined shift.
47189
47190 2013-10-04  Alan Modra  <amodra@gmail.com>
47191
47192         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
47193         (union ibm_extended_long_double): Define as an array of ieee754_double.
47194         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
47195         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
47196         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
47197         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
47198         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
47199         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
47200         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47201         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
47202         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
47203         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
47204         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
47205
47206 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
47207
47208         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
47209         page size instead of calling getpagesize.
47210
47211         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
47212         (LOCFILE_ALIGN_MASK): Likewise.
47213         (LOCFILE_ALIGN_UP): Likewise.
47214         (LOCFILE_ALIGNED_P): Likewise.
47215         * locale/programs/ld-collate.c (collate_output): Use the new
47216         macros instead of __alignof__ (int32_t).
47217         * locale/weight.h (findidx): Likewise.
47218
47219 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
47220
47221         [BZ #431]
47222         * manual/string.texi: Fix strncat and wcsncat.
47223
47224 2013-10-03  Brooks Moses  <bmoses@google.com>
47225
47226         [BZ #15915]
47227         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
47228         * Makerules: ...here, and adjust associated comments.
47229
47230 2013-10-02  Will Newton  <will.newton@linaro.org>
47231
47232         * malloc/Makefile: Add tst-pvalloc.
47233         * malloc/tst-pvalloc.c: New file.
47234
47235 2013-10-02  Will Newton  <will.newton@linaro.org>
47236
47237         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
47238         improve test coverage.
47239
47240 2013-10-02  Will Newton  <will.newton@linaro.org>
47241
47242         * malloc/Makefile: Add tst-posix_memalign.
47243         * malloc/tst-posix_memalign.c: New file.
47244
47245 2013-10-01  Eric Blake  <eblake@redhat.com>
47246
47247         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
47248         Use __THROWNL rather than __THROW on static functions.
47249
47250 2013-09-30  Petr Machata  <pmachata@redhat.com>
47251
47252         * elf/elf.h (R_AARCH64_ABS16): New macro.
47253         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
47254         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
47255         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
47256         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
47257         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
47258         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
47259         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
47260         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
47261         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
47262         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
47263         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
47264         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
47265         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
47266         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
47267         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
47268         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
47269         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
47270         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
47271         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
47272         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
47273         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
47274         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
47275         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
47276         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
47277         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
47278         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
47279         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
47280         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
47281         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
47282         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
47283         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
47284         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
47285         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
47286         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
47287         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
47288         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
47289         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
47290         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
47291         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
47292         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
47293         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
47294         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
47295         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
47296         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
47297         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
47298         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
47299         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
47300         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
47301         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
47302         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
47303         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
47304         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
47305         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
47306         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
47307         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
47308         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
47309         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
47310         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
47311         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
47312         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
47313         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
47314         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
47315         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
47316         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
47317         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
47318         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
47319         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
47320         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
47321         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
47322         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
47323         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
47324         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
47325         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
47326         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
47327         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
47328         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
47329         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
47330         (R_AARCH64_TLSDESC_LDR): Likewise.
47331         (R_AARCH64_TLSDESC_ADD): Likewise.
47332         (R_AARCH64_TLSDESC_CALL): Likewise.
47333
47334 2013-09-30  Andreas Schwab  <schwab@suse.de>
47335
47336         [BZ #15048]
47337         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
47338         the nss database lookup.
47339         * nscd/initgrcache.c (addinitgroupsX): Likewise.
47340         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
47341
47342 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
47343
47344         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
47345
47346 2013-09-28  P. J. McDermott  <pj@pehjota.net>
47347
47348         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
47349         ${Bash-specific parameter/pattern/string} parameter expansion.
47350         * sysdeps/unix/make-syscalls.sh: Likewise.
47351
47352 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
47353
47354         * sysdeps/sh/stackguard-macros.h: New file.
47355
47356 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
47357
47358         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
47359         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
47360         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
47361         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
47362         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
47363         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
47364
47365 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47366
47367         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
47368         Fix thread ID register.
47369
47370 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
47371
47372         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
47373         [POSIX || UNIX98]: Require rather than permitting all symbols from
47374         <time.h>.
47375         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
47376         element of struct sched_param.
47377         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
47378         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
47379         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
47380         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
47381         constant.
47382
47383 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
47384
47385         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
47386         argument calculation.
47387
47388 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
47389
47390         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
47391         Expect macro.
47392         [POSIX] (pthread_attr_t): Do not require type.
47393         [POSIX] (pthread_cond_t): Likewise.
47394         [POSIX] (pthread_condattr_t): Likewise.
47395         [POSIX] (pthread_key_t): Likewise.
47396         [POSIX] (pthread_mutex_t): Likewise.
47397         [POSIX] (pthread_mutexattr_t): Likewise.
47398         [POSIX] (pthread_once_t): Likewise.
47399         [POSIX] (pthread_t): Likewise.
47400         [POSIX-based standards] (pthread_atfork): Expect function.
47401
47402 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
47403             Richard Sandiford  <richard@codesourcery.com>
47404
47405         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
47406         (swap_endianness_p): New extern variable.
47407         (set_big_endian): New inline function.
47408         (maybe_swap_uint32): Likewise.
47409         (maybe_swap_uint32_array): Likewise.
47410         (maybe_swap_uint32_obstack): Likewise.
47411         * locale/programs/locfile.c: Include <stdbool.h>.
47412         (swap_endianness_p): New variable.
47413         (add_locale_uint32): Call maybe_swap_uint32.
47414         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
47415         (write_locale_data): Call maybe_swap_uint32_array.
47416         * locale/programs/ld-collate.c (obstack_int32_grow): Call
47417         maybe_swap_uint32.
47418         (obstack_int32_grow_fast): Likewise.
47419         (output_weightwc): Call maybe_swap_uint32_obstack.
47420         (collate_output): Likewise.
47421         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
47422         (OPT_LITTLE_ENDIAN): Likewise.
47423         (options): Add --little-endian and --big-endian options.
47424         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
47425         * locale/programs/locarchive.c: Include "locfile.h".
47426         (GET): New macro.
47427         (SET): Likewise.
47428         (INC): Likewise.
47429         (create_archive): Use the new macros to access fields of
47430         structures directly mapped from or written to locale archives.
47431         (oldlocrecentcmp): Likewise.
47432         (enlarge_archive): Likewise.
47433         (insert_name): Likewise.
47434         (add_alias): Likewise.
47435         (add_locale): Likewise.
47436         (delete_locales_from_archive): Likewise.
47437         (show_archive_content): Likewise.
47438         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
47439         locale data.
47440
47441 2013-09-24  Roland McGrath  <roland@hack.frob.com>
47442
47443         * manual/freemanuals.texi: Updated from (newly) canonical copy at
47444         http://www.gnu.org/doc/freemanuals.texi.
47445         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
47446
47447 2013-09-24  Will Newton  <will.newton@linaro.org>
47448
47449         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
47450         macro.
47451
47452 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
47453
47454         * locale/hashval.h (compute_hashval): Interpret bytes of key as
47455         unsigned char.
47456
47457 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
47458
47459         * manual/threads.texi (POSIX Threads): Fix a typo.
47460
47461 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
47462
47463         [BZ #14547]
47464         * string/tst-strcoll-overflow.c: New test case.
47465         * string/Makefile (xtests): Add tst-strcoll-overflow.
47466         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
47467         cache if string sizes may cause integer overflow.
47468
47469         [BZ #14547]
47470         * string/strcoll_l.c (coll_seq): New members rule, idx,
47471         save_idx and back_us.
47472         (get_next_seq_nocache): New function.
47473         (do_compare_nocache): New function.
47474         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
47475         when malloc fails.
47476
47477 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
47478
47479         [BZ #15754]
47480         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
47481         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
47482         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
47483
47484         [BZ #15754]
47485         * elf/Makefile (tests): Add tst-ptrguard1.
47486         (tests-static): Add tst-ptrguard1-static.
47487         (tst-ptrguard1-ARGS): Define.
47488         (tst-ptrguard1-static-ARGS): Define.
47489         * elf/tst-ptrguard1.c: New file.
47490         * elf/tst-ptrguard1-static.c: New file.
47491         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
47492         * sysdeps/i386/stackguard-macros.h: Likewise.
47493         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
47494         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
47495         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
47496         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
47497         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
47498         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
47499
47500 2013-09-23  Hector Marco  <hecmargi@upv.es>
47501             Ismael Ripoll  <iripoll@disca.upv.es>
47502             Carlos O'Donell  <carlos@redhat.com>
47503
47504         [BZ #15754]
47505         * sysdeps/generic/stackguard-macros.h: Define
47506         __pointer_chk_guard_local and POINTER_CHK_GUARD.
47507         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
47508         Define __pointer_chk_guard_local.
47509         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
47510         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
47511
47512 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
47513
47514         [BZ #15859]
47515         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
47516
47517 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
47518
47519         * include/string.h (__ffs): Declare as hidden.
47520         * string/ffs.c (__ffs): Define as hidden.
47521         * sysdeps/i386/ffs.c (__ffs): Likewise.
47522         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
47523         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
47524         * sysdeps/s390/ffs.c (__ffs): Likewise.
47525         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
47526
47527 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
47528
47529         * NEWS: Mention malloc probes.
47530
47531         * malloc/arena.c (new_heap): New memory_heap_new probe.
47532         (grow_heap): New memory_heap_more probe.
47533         (shrink_heap): New memory_heap_less probe.
47534         (heap_trim): New memory_heap_free probe.
47535         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
47536         (systrim): New memory_sbrk_less probe.
47537         * manual/probes.texi: Document them.
47538
47539         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
47540         * manual/probes.texi: Document it.
47541
47542         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
47543         (__libc_realloc): Add memory_realloc_retry probe.
47544         (__libc_memalign): Add memory_memalign_retry probe.
47545         (__libc_valloc): Add memory_valloc_retry probe.
47546         (__libc_pvalloc): Add memory_pvalloc_retry probe.
47547         (__libc_calloc): Add memory_calloc_retry probe.
47548         * manual/probes.texi: Document them.
47549
47550         * malloc/arena.c (get_free_list): Add probe
47551         memory_arena_reuse_free_list.
47552         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
47553         and memory_arena_reuse.
47554         (arena_get2) [!PER_THREAD]: Likewise.
47555         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
47556         memory_arena_reuse_realloc.
47557         * manual/probes.texi: Document them.
47558
47559         * malloc/malloc.c (__libc_free): Add
47560         memory_mallopt_free_dyn_thresholds probe.
47561         (__libc_mallopt): Add multiple memory_mallopt probes.
47562         * manual/probes.texi: Document them.
47563
47564         * malloc/malloc.c: Include stap-probe.h.
47565         (__libc_mallopt): Add memory_mallopt probe.
47566         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
47567         * manual/probes.texi: New.
47568         * manual/Makefile (chapters): Add probes.
47569         * manual/threads.texi: Set next node.
47570
47571 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
47572
47573         [BZ #15963, #13985]
47574         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
47575         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
47576         Add `Chinese' to `nan' entry name.
47577
47578 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
47579
47580         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
47581         (POLYNOMIAL): Likewise.
47582         (TAYLOR_SINCOS): Likewise.
47583         (TAYLOR_SLOW): Likewise.
47584         (__sin): Use TAYLOR_SINCOS.
47585         (__cos): Likewise.
47586         (slow): Use TAYLOR_SLOW.
47587         (sloww): Likewise.
47588         (bsloww): Likewise.
47589         (csloww): Likewise.
47590
47591 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
47592
47593         * stdlib/strtod_l.c: Fix buffer overrun.
47594
47595 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
47596
47597         * benchtests/Makefile (bench): Add sincos.
47598         * benchtests/bench-sincos.c: New file.
47599
47600         * math/libm-test.inc (cos_test_data): New test inputs.
47601         (sin_test_data): Likewise.
47602
47603         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
47604         macro.
47605         (__sin): Use it.
47606         (__cos): Likewise.
47607         (slow1): Likewise.
47608         (slow2): Likewise.
47609         (sloww1): Likewise.
47610         (sloww2): Likewise.
47611         (bsloww1): Likewise.
47612         (bsloww2): Likewise.
47613         (cslow2): Likewise.
47614         (csloww1): Likewise.
47615         (csloww2): Likewise.
47616
47617         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
47618         function.
47619         (__sin): Use it.
47620         (__cos): Likewise.
47621
47622         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
47623         gotos.
47624         (__cos): Likewise.
47625
47626 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
47627
47628         * config.h.in (HAVE_MIPS_NAN2008): New macro.
47629         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
47630         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
47631         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
47632         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
47633         * elf/cache.c (print_entry): Handle the new cache flags.
47634
47635 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
47636             Aldy Hernandez  <aldyh@redhat.com>
47637
47638         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
47639         Change condition to [_SOFT_FLOAT].
47640         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
47641         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
47642         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
47643         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
47644         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
47645         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
47646         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
47647         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
47648         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
47649         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
47650         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
47651         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
47652         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
47653         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
47654         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
47655         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
47656         declaration.
47657
47658 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
47659
47660         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
47661         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
47662         (__longjmp): Use LOAD_GP to load saved GPRs.
47663         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
47664         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
47665         (__sigsetjmp): Use SAVE_GP to save GPRs.
47666
47667         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
47668         Do not append -msoft-float.
47669         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
47670
47671 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
47672
47673         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
47674
47675 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
47676
47677         [BZ #15966]
47678         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
47679         (_FPU_GETCW): Use initial "__" on variable and field names but not
47680         on macro parameter name.
47681         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
47682         parentheses around reference to macro parameter.
47683
47684 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
47685
47686         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
47687         prototype.
47688         (ctype_startup): Use uint32_t in cast and sizeof for
47689         ctype->charnames.
47690
47691 2013-09-11  Jia Liu  <proljc@gmail.com>
47692
47693         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
47694         __daddr_t_defined.
47695         [__FreeBSD__]: Likewise.
47696
47697 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
47698
47699         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
47700         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
47701         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
47702         (strchr): Remove __strchr_sse42 ifunc selection.
47703         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
47704         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
47705
47706 2013-09-11  Will Newton  <will.newton@linaro.org>
47707
47708         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
47709         parameter to RES. Remove hardcoded 1000 value.
47710         * benchtests/bench-skeleton.c (main): Pass RES parameter
47711         to TIMING_INIT and multiply result by 1000.
47712
47713 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47714
47715         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47716
47717 2013-09-11  Andreas Schwab  <schwab@suse.de>
47718
47719         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
47720         if not defined.
47721         (O_TMPFILE) [__USE_GNU]: Define.
47722         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
47723         Define.
47724
47725 2013-09-11  Will Newton  <will.newton@linaro.org>
47726
47727         [BZ #15857]
47728         * malloc/malloc.c (__libc_memalign): Check the value of bytes
47729         does not overflow.
47730
47731 2013-09-11  Will Newton  <will.newton@linaro.org>
47732
47733         [BZ #15856]
47734         * malloc/malloc.c (__libc_valloc): Check the value of bytes
47735         does not overflow.
47736
47737 2013-09-11  Will Newton  <will.newton@linaro.org>
47738
47739         [BZ #15855]
47740         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
47741         does not overflow.
47742
47743 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
47744
47745         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
47746         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
47747         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
47748         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
47749         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
47750
47751 2013-09-10  Allan McRae  <allan@archlinux.org>
47752
47753         [BZ #15748]
47754         * manual/arith.texi (Parsing of Floats): Clarify
47755         cross-reference.
47756
47757         [BZ #15849]
47758         * manual/install.texi (Running make install): Mention
47759         --enable-pt-chown.
47760         * INSTALL: Regenerated.
47761
47762 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
47763
47764         * csu/init-first.c (_init): Remove the !SHARED condition around
47765         FPU control word initialization.
47766         * elf/dl-support.c (_dl_fpu_control): New variable.
47767         (_dl_aux_init) <AT_FPUCW>: Initialize it.
47768         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
47769         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
47770         * math/test-fpucw-static.c: New file.
47771         * math/test-fpucw-ieee.c: New file.
47772         * math/test-fpucw-ieee-static.c: New file.
47773         * math/Makefile (tests): Add `test-fpucw-ieee' and
47774         `$(tests-static)'.
47775         (tests-static): New variable.
47776         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
47777         dependency to...
47778         [($(build-shared),yes)]
47779         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
47780         ... this.
47781         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
47782         New dependency.
47783
47784 2013-09-09  Allan McRae  <allan@archlinux.org>
47785
47786         [BZ #15939]
47787         * manual/string.texi (Collation Functions): Fix typo in
47788         strcoll example.
47789         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
47790
47791         [BZ #15893]
47792         * stdlib/isomac.c (get_null_defines): Fix memory leak.
47793
47794         [BZ #15892]
47795         * libio/memstream.c (open_memstream): Fix memory leak.
47796         * libio/wmemstream.c (open_wmemstream): Likewise.
47797
47798         [BZ #15895]
47799         * nscd/netgroupcache.c: Fix nesting of ifdefs.
47800
47801 2013-09-09  Will Newton  <will.newton@linaro.org>
47802
47803         * malloc/Makefile: Add tst-realloc to tests.
47804         * malloc/tst-realloc.c: New file.
47805
47806 2013-09-09  Allan McRae  <allan@archlinux.org>
47807
47808         [BZ #15844]
47809         * COPYING: Update from GNU website to fix FSF address.
47810         * COPYING.LIB: Likewise.
47811
47812 2013-09-06  David S. Miller  <davem@davemloft.net>
47813
47814         * po/zh_TW.po: Update Chinese (traditional) translation from
47815         translation project.
47816
47817 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
47818             Joseph Myers  <joseph@codesourcery.com>
47819
47820         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
47821         "localeinfo.h".
47822         (obstack_chunk_alloc): New macro.
47823         (obstack_chunk_free): Likewise.
47824         (record_offset): New function.
47825         (init_locale_data): Likewise.
47826         (align_locale_data): Likewise.
47827         (add_locale_empty): Likewise.
47828         (add_locale_raw_data): Likewise.
47829         (add_locale_raw_obstack): Likewise.
47830         (add_locale_string): Likewise.
47831         (add_locale_wstring): Likewise.
47832         (add_locale_uint32): Likewise.
47833         (add_locale_uint32_array): Likewise.
47834         (add_locale_char): Likewise.
47835         (start_locale_structure): Likewise.
47836         (end_locale_structure): Likewise.
47837         (start_locale_prelude): Likewise.
47838         (end_locale_prelude): Likewise.
47839         (write_locale_data): Take locale_file structure rather than an
47840         iovec.
47841         * locale/programs/locfile.h: Include "obstack.h".
47842         (struct locale_file): Change to store locale file contents instead
47843         of header.
47844         (init_locale_data): New prototype.
47845         (align_locale_data): Likewise.
47846         (add_locale_empty): Likewise.
47847         (add_locale_raw_data): Likewise.
47848         (add_locale_raw_obstack): Likewise.
47849         (add_locale_string): Likewise.
47850         (add_locale_wstring): Likewise.
47851         (add_locale_uint32): Likewise.
47852         (add_locale_uint32_array): Likewise.
47853         (add_locale_char): Likewise.
47854         (start_locale_structure): Likewise.
47855         (end_locale_structure): Likewise.
47856         (start_locale_prelude): Likewise.
47857         (end_locale_prelude): Likewise.
47858         (write_locale_data): Update prototype.
47859         * locale/programs/3level.h (struct TABLE): Remove result field.
47860         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
47861         Use new locale_file interface.
47862         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
47863         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
47864         * locale/programs/ld-address.c (address_output): Use new
47865         locale_file interface.
47866         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
47867         NO_ADD_LOCALE.
47868         (collate_finish): Don't call collseq_table_finalize.
47869         (collate_output): Use new locale_file interface.
47870         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
47871         in file.
47872         (NO_FINALIZE): Change to NO_ADD_LOCALE.
47873         (TABLE): Move defines earlier in file.
47874         (ELEMENT): Likewise.
47875         (DEFAULT): Likewise.
47876         (wctrans_table_add): Move macro and inline function earlier in
47877         file.
47878         (struct wctype_table): Move type earlier in file.
47879         (add_locale_wctype_table): New static prototype.
47880         (struct locale_ctype_t): Use logical types instead of struct iovec
47881         pointers for members.
47882         (ctype_output): Use new locale_file interface.
47883         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
47884         new locale_file interface.
47885         (allocate_arrays): Update for use of new locale_file interface.
47886         * locale/programs/ld-identification.c (identification_output): Use
47887         new locale_file interface.
47888         * locale/programs/ld-measurement.c (measurement_output): Likewise.
47889         * locale/programs/ld-messages.c (messages_output): Likewise.
47890         * locale/programs/ld-monetary.c (monetary_output): Likewise.
47891         * locale/programs/ld-name.c (name_output): Likewise.
47892         * locale/programs/ld-numeric.c (numeric_output): Likewise.
47893         * locale/programs/ld-paper.c (paper_output): Likewise.
47894         * locale/programs/ld-telephone.c (telephone_output): Likewise.
47895         * locale/programs/ld-time.c (time_output): Likewise.
47896
47897 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47898
47899         * benchtests/Makefile: Add memrchr benchmark.
47900         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
47901         benchmark as memrchr.
47902         * benchtests/bench-memrchr-ifunc.c: New file.
47903         * benchtests/bench-memrchr.c: New file.
47904
47905 2013-09-06   Will Newton  <will.newton@linaro.org>
47906
47907         * benchtests/Makefile (string-bench): Add memcpy.
47908
47909 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
47910             Cong Wang  <amwang@redhat.com>
47911
47912         [BZ #15850]
47913         * sysdeps/unix/sysv/linux/bits/in.h
47914         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
47915         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
47916         before __USE_KERNEL_IPV6_DEFS uses.
47917         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
47918         IPPROTO_BEETPH.
47919         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
47920         sockaddr_in6, or ipv6_mreq.
47921
47922 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47923
47924         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
47925         memory access for final bytes in some large inputs.
47926         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
47927
47928 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47929
47930         * string/test-memrchr.c: New file.
47931         * string/test-memrchr-ifunc.c: New file.
47932         * string/Makefile: Add new memrchr testcase.
47933
47934 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
47935
47936         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
47937         fanotify_init returns EPERM.
47938
47939 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
47940
47941         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
47942         errors.
47943         (top level): Treat second token from macro or constant entries for
47944         allowed headers as allowed.
47945         * include/complex.h: Condition internal declarations on
47946         [!_ISOMAC].
47947         * include/fenv.h: Condition include of <stdbool.h> and internal
47948         declarations on [!_ISOMAC].
47949
47950 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
47951
47952         [BZ #15923]
47953         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
47954
47955 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
47956
47957         * configure.in (--enable-versioning): Remove configure option.
47958         (libc_cv_asm_symver_directive): Remove configure test.
47959         (libc_cv_ld_version_script_option): Likewise.
47960         (VERSIONING): Remove variable and AC_SUBST.
47961         (DO_VERSIONING): Remove AC_DEFINE.
47962         * configure: Regenerated.
47963         * config.h.in (DO_VERSIONING): Remove macro.
47964         * Makerules [$(versioning) = yes]: Change conditionals to
47965         [$(build-shared) = yes].
47966         * config.make.in (versioning): Remove variable.
47967         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
47968         [$(build-shared) = yes].
47969         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
47970         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
47971         * elf/Makefile [$(versioning) = yes]: Change conditionals to
47972         [$(build-shared) = yes].
47973         * extra-lib.mk [$(versioning) = yes]: Likewise.
47974         * hurd/Makefile [$(versioning) = yes]: Likewise.
47975         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
47976         [SHARED].
47977         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
47978         [SHARED].
47979         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
47980         [SHARED && !NO_HIDDEN].
47981         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
47982         [SHARED].
47983         [SHARED && DO_VERSIONING]: Likewise..
47984         * libio/Makefile [$(versioning) = yes]: Change conditionals to
47985         [$(build-shared) = yes].
47986         * manual/install.texi (--disable-versioning): Remove
47987         documentation.
47988         * INSTALL: Regenerated.
47989         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
47990         to [SHARED].
47991         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
47992         [$(build-shared) = yes].
47993         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
47994         * sysdeps/i386/i686/multiarch/strstr-c.c
47995         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
47996         [SHARED && !NO_HIDDEN].
47997         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
47998         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
47999         * sysdeps/powerpc/powerpc32/dl-machine.c
48000         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
48001         * sysdeps/powerpc/powerpc32/sysdep.h
48002         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
48003         to [SHARED && PIC && !NO_HIDDEN].
48004         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
48005         conditional to [SHARED].
48006
48007 2013-09-04   Will Newton  <will.newton@linaro.org>
48008
48009         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
48010         * benchtests/bench-string.h: Include bench-timing.h instead
48011         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
48012         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
48013         call to HP_TIMING_DIFF_INIT.
48014         * benchtests/bench-memccpy.c: Use bench-timing.h macros
48015         instead of hp-timing.h macros.
48016         * benchtests/bench-memchr.c: Likewise.
48017         * benchtests/bench-memcmp.c: Likewise.
48018         * benchtests/bench-memcpy.c: Likewise.
48019         * benchtests/bench-memmem.c: Likewise.
48020         * benchtests/bench-memmove.c: Likewise.
48021         * benchtests/bench-memset.c: Likewise.
48022         * benchtests/bench-rawmemchr.c: Likewise.
48023         * benchtests/bench-strcasecmp.c: Likewise.
48024         * benchtests/bench-strcasestr.c: Likewise.
48025         * benchtests/bench-strcat.c: Likewise.
48026         * benchtests/bench-strchr.c: Likewise.
48027         * benchtests/bench-strcmp.c: Likewise.
48028         * benchtests/bench-strcpy.c: Likewise.
48029         * benchtests/bench-strcpy_chk.c: Likewise.
48030         * benchtests/bench-strlen.c: Likewise.
48031         * benchtests/bench-strncasecmp.c: Likewise.
48032         * benchtests/bench-strncat.c: Likewise.
48033         * benchtests/bench-strncmp.c: Likewise.
48034         * benchtests/bench-strncpy.c: Likewise.
48035         * benchtests/bench-strnlen.c: Likewise.
48036         * benchtests/bench-strpbrk.c: Likewise.
48037         * benchtests/bench-strrchr.c: Likewise.
48038         * benchtests/bench-strspn.c: Likewise.
48039         * benchtests/bench-strstr.c: Likewise.
48040
48041 2013-09-04  Will Newton  <will.newton@linaro.org>
48042
48043         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
48044
48045 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
48046
48047         [BZ #15427]
48048         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
48049         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
48050         * math/libm-test.inc (lgamma_test_data): Add more tests.
48051         * sysdeps/i386/fpu/libm-test-ulps: Update.
48052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48053
48054 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
48055
48056         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
48057         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
48058         Add ifunc.
48059         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
48060         Add strcmp-sse2-unaligned
48061         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
48062
48063 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
48064
48065         * Versions.def (libc): Add GLIBC_2.19.
48066
48067 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
48068
48069         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
48070         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
48071
48072 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
48073
48074         [BZ #14155]
48075         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
48076         intermediate calculations in recurrence.
48077         (__ieee754_ynf): Likewise.
48078         * math/libm-test.inc (jn_test_data): Do not allow spurious
48079         underflow exception.  Add more tests.
48080         (yn_test_data): Add more tests.
48081         * sysdeps/i386/fpu/libm-test-ulps: Update.
48082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48083
48084 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
48085
48086         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
48087
48088 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
48089
48090         * csu/init-first.c: Fix then/than typos.
48091         * locale/programs/ld-collate.c: Likewise.
48092         * locale/programs/linereader.h: Likewise.
48093         * manual/charset.texi: Likewise.
48094         * manual/filesys.texi: Likewise.
48095         * manual/stdio.texi: Likewise.
48096         * manual/string.texi: Likewise.
48097         * stdlib/fmtmsg.c: Likewise.
48098         * sysdeps/i386/stpncpy.S: Likewise.
48099         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
48100         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
48101         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
48102         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
48103
48104 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
48105
48106         * elf/dl-open.c: Fix typos.
48107         * iconvdata/gbbig5.c: Likewise.
48108         * iconvdata/iso-2022-jp.c: Likewise.
48109         * iconv/gconv_int.h: Likewise.
48110         * iconv/loop.c: Likewise.
48111         * nis/rpcsvc/nis.h: Likewise.
48112         * resolv/ns_name.c: Likewise.
48113         * stdio-common/vfscanf.c: Likewise.
48114         * streams/stropts.h: Likewise.
48115         * sunrpc/rpc_thread.c: Likewise.
48116         * sysdeps/i386/strpbrk.S: Likewise.
48117         * sysdeps/ieee754/k_standard.c: Likewise.
48118         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
48119         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
48120         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
48121         * sysdeps/mach/hurd/profil.c: Likewise.
48122         * sysdeps/s390/dl-procinfo.h: Likewise.
48123         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
48124         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
48125         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
48126         * sysdeps/x86_64/dl-trampoline.S: Likewise.
48127         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
48128
48129 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
48130
48131         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
48132         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
48133
48134 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
48135
48136         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
48137         aix specific files.
48138         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
48139         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
48140         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
48141         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
48142         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
48143         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
48144         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
48145         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
48146
48147 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
48148             Roland McGrath  <roland@hack.frob.com>
48149
48150         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
48151         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
48152
48153 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
48154
48155         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
48156         __executable_start symbol instead of _start.
48157
48158 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
48159
48160         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
48161         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
48162         Move macros to...
48163         * sysdeps/gnu/ldsodefs.h: ... this new file.
48164
48165         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
48166         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
48167         instead of ELFOSABI_LINUX.
48168
48169         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
48170         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
48171         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
48172         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
48173         Likewise.
48174         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
48175         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
48176         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
48177         Likewise.
48178         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
48179         (ibm_extended_long_double): Add ieee_nan member.
48180         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
48181         (do_test): New function.
48182
48183         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
48184         TEST_TRUNC.
48185         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
48186         functions, renamed from truncdfsf_test, trunctfsf_test,
48187         trunctfdf_test.
48188         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
48189         functions.
48190         (do_test): Run all these.
48191
48192 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
48193
48194         * argp/argp-help.c: Fix typos.
48195         * argp/argp-parse.c: Likewise.
48196         * debug/backtracesyms.c: Likewise.
48197         * elf/elf.h: Likewise.
48198         * malloc/malloc.c: Likewise.
48199         * nis/nis_print.c: Likewise.
48200         * resolv/res_comp.c: Likewise.
48201         * stdlib/stdlib.h: Likewise.
48202         * sunrpc/clnt_tcp.c: Likewise.
48203         * sunrpc/clnt_udp.c: Likewise.
48204         * sunrpc/clnt_unix.c: Likewise.
48205         * sysdeps/unix/bsd/ptsname.c: Likewise.
48206         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
48207         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
48208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
48209         Likewise.
48210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
48211         Likewise.
48212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
48213         Likewise.
48214         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
48215
48216 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
48217
48218         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
48219         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
48220
48221 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
48222
48223         [BZ #15897]
48224         * dlfcn/Makefile (tests): Add bug-dl-leaf.
48225         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
48226         ($(objpfx)bug-dl-leaf): New rule.
48227         ($(objpfx)bug-dl-leaf.so): Likewise.
48228         ($(objpfx)bug-dl-leaf.out): Likewise.
48229         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
48230         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
48231         * dlfcn/bug-dl-leaf.c: New test.
48232         * dlfcn/bug-dl-leaf-lib.c: Likewise.
48233         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
48234         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
48235         (dlclose): Likewise.
48236         (dlmopen): Likewise.
48237
48238 2013-08-27  Roland McGrath  <roland@hack.frob.com>
48239
48240         * include/netdb.h [!_ISOMAC]:
48241         Don't include <tls.h>.
48242         (h_errno, __libc_h_errno): Move declaration and macros out of
48243         [_LIBC_REENTRANT].
48244
48245         * include/resolv.h [_RESOLV_H_]:
48246         Don't include <tls.h>.
48247         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
48248         * resolv/res_libc.c: Don't include <tls.h>.
48249         (_res): Use __attribute__ ((nocommon)) in place of
48250         __attribute__ ((section (".bss"))).
48251
48252         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
48253         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
48254
48255         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
48256
48257         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
48258         only under [SIOCGIFCONF && SIOCGIFNETMASK].
48259
48260         * resolv/res_mkquery.c: Include <sys/time.h>.
48261
48262         * inet/ifreq.c: Moved to ...
48263         * sysdeps/unix/ifreq.c: ... here.
48264         * inet/ifreq.c: New file, true stub version.
48265
48266         * socket/sa_len.c: New file.
48267         * socket/Makefile (aux): Add it.
48268         * sysdeps/unix/sysv/linux/Makefile
48269         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
48270         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
48271         and #include <socket/sa_len.c>.
48272         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
48273         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
48274
48275         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
48276         * bits/socket.h: ... here.
48277
48278         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
48279         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
48280         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
48281
48282 2013-08-27  Andreas Schwab  <schwab@suse.de>
48283
48284         [BZ #15736]
48285         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
48286         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
48287         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
48288         * string/test-strcasecmp.c (test_main): Run tests in several
48289         locales.
48290         * string/test-strncasecmp.c (test_main): Likewise.
48291
48292         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
48293         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
48294         to __strcasecmp_nonascii and __strncasecmp_nonascii.
48295         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
48296         (__strncasecmp_ssse3) [PIC]: Likewise.
48297
48298 2013-08-26  Roland McGrath  <roland@hack.frob.com>
48299
48300         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
48301
48302         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
48303         instead of explicitly declaring xdecrypt.
48304         * nis/nss_nis/nis-publickey.c: Likewise.
48305
48306 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
48307
48308         [BZ #15890]
48309         * nscd/aicache.c: Include res_hconf.h.
48310         (addhstaiX): Initialize res_hconf.
48311
48312 2013-08-26  Andreas Schwab  <schwab@suse.de>
48313
48314         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
48315         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
48316
48317 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
48318
48319         * nscd/aicache.c (addhstaiX): Fix indentation.
48320
48321 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
48322
48323         * configure.ac: Quote $build_pt_chown test.
48324         * configure: Regenerated.
48325
48326 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
48327
48328         [BZ #15532]
48329         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
48330         * math/s_cexpf.c (__cexpf): Likewise.
48331         * math/s_cexpl.c (__cexpl): Likewise.
48332         * math/libm-test.inc (cexp_test_data): Correct expected return
48333         value for NaN + i0.  Add another test.
48334
48335 2013-08-22  David S. Miller  <davem@davemloft.net>
48336
48337         * po/ca.po: Update Catalan translation from translation project.
48338         * po/uk.po: Add Ukrainian translations from translation project.
48339
48340 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
48341
48342         [BZ #15797]
48343         * math/s_fdim.c (__fdim): Check for infinite arguments if result
48344         is infinite, not alongside NaN test.
48345         * math/s_fdimf.c (__fdimf): Likewise.
48346         * math/s_fdiml.c (__fdiml): Likewise.
48347         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
48348         errno is unchanged.
48349
48350 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
48351
48352         * argp/argp-help.c: Fix typos.
48353         * crypt/speeds.c: Likewise.
48354         * csu/check_fds.c: Likewise.
48355         * elf/dl-load.c: Likewise.
48356         * elf/dl-open.c: Likewise.
48357         * elf/reldep3.c: Likewise.
48358         * elf/reldep.c: Likewise.
48359         * elf/sprof.c: Likewise.
48360         * iconv/iconv_charmap.c: Likewise.
48361         * iconv/skeleton.c: Likewise.
48362         * iconv/strtab.c: Likewise.
48363         * io/lockf64.c: Likewise.
48364         * libio/libioP.h: Likewise.
48365         * resolv/gai_notify.c: Likewise.
48366         * resolv/ns_name.c: Likewise.
48367         * resolv/ns_samedomain.c: Likewise.
48368         * resolv/res_send.c: Likewise.
48369         * stdlib/random.c: Likewise.
48370         * sunrpc/rpc/xdr.h: Likewise.
48371         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
48372         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
48373         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
48374         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
48375         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
48376         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
48377         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
48378         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
48379         * sysdeps/mach/hurd/check_fds.c: Likewise.
48380         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
48381         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
48382         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
48383         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
48384         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
48385         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
48386         * sysdeps/pthread/aio_notify.c: Likewise.
48387         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
48388         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
48389         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
48390         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
48391         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
48392
48393 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
48394
48395         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
48396         version if bit_Slow_SSE4_2 is set.
48397         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
48398         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
48399
48400 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48401
48402         [BZ #15867]
48403         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
48404         trampoline stack frame information.
48405         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
48406         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
48407         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
48408         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
48409         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
48410         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48411         (_libc_vdso_platform_setup): Initialize the signal trampolines.
48412         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
48413         sa_flags value.
48414         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
48415         interrupting a syscall and set with option SA_SIGINFO.
48416
48417 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
48418
48419         [BZ #15531]
48420         * math/s_cproj.c (__cproj): Only return an infinity if one part of
48421         argument is infinite.
48422         * math/s_cprojf.c (__cprojf): Likewise.
48423         * math/s_cprojl.c (__cprojl): Likewise.
48424         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
48425         * math/libm-test.inc (cproj_test_data): Add more tests.
48426
48427         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
48428
48429         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
48430         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
48431         size.  Use __ffs to determine corresponding shift.
48432
48433 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
48434             Roland McGrath  <roland@hack.frob.com>
48435
48436         * Makefile (INSTALL): Remove trailing blank lines from output of
48437         makeinfo.
48438
48439 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48440
48441         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
48442         Align 32 bit compat elf_greg to 8 bytes.
48443
48444 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
48445
48446         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
48447
48448 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
48449
48450         * string/strcoll_l.c (coll_seq): New structure.
48451         (get_next_seq_cached): New function.
48452         (get_next_seq): New function.
48453         (do_compare): New function.
48454         (STRCOLL): Use GNU style definition.  Simplify implementation
48455         by using get_next_seq, get_next_seq_cached and do_compare.
48456
48457 2013-08-16  Florian Weimer  <fweimer@redhat.com>
48458
48459         [BZ #14699]
48460         CVE-2013-4237
48461         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
48462         member.
48463         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
48464         member.
48465         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
48466         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
48467         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
48468         conditional.
48469         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
48470         GETDENTS_64BIT_ALIGNED.
48471         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
48472         * manual/filesys.texi (Reading/Closing Directory): Document
48473         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
48474         strongly.
48475         * manual/conf.texi (Limits for Files): Add portability note to
48476         NAME_MAX, PATH_MAX.
48477         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
48478
48479 2013-08-13  Andreas Schwab  <schwab@suse.de>
48480
48481         [BZ #15749]
48482         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
48483         of fabs.
48484         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
48485         LDBL_MAX_EXP >= 16384]: Add tests for it.
48486
48487 2013-08-12  David S. Miller  <davem@davemloft.net>
48488
48489         * version.h (RELEASE): Set to "development".
48490         (VERSION): Set to "2.18.90".
48491         * NEWS: Add 2.19 section.
48492
48493 2013-08-03  David S. Miller  <davem@davemloft.net>
48494
48495         * po/ko.po: Update Korean translation from translation project.
48496
48497 2013-08-01  David S. Miller  <davem@davemloft.net>
48498
48499         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
48500         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
48501         Bilka.
48502
48503 2013-07-30  David S. Miller  <davem@davemloft.net>
48504
48505         * po/fr.po: Update French translation from translation project.
48506
48507 2013-07-28  David S. Miller  <davem@davemloft.net>
48508
48509         * po/cs.po: Update Czech translation from translation project.
48510
48511         * po/sv.po: Update Swedish translation from translation project.
48512
48513 2013-07-27  David S. Miller  <davem@davemloft.net>
48514
48515         * po/eo.po: Update Esperanto translation from translation project.
48516
48517         * po/vi.po: Update Vietnamese translation from translation project.
48518
48519         * po/de.po: Update German translation from translation project.
48520
48521 2013-07-26  David S. Miller  <davem@davemloft.net>
48522
48523         * po/bg.po: Update Bulgarian translation from translation project.
48524
48525         * po/nl.po: Update Dutch translation from translation project.
48526         * po/pl.po: Update Polish translation from translation project.
48527         * po/ru.po: Update Russian translation from translation project.
48528
48529 2013-07-24  David S. Miller  <davem@davemloft.net>
48530
48531         * po/libc.pot: Update.
48532
48533 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48534
48535         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
48536         variable page size.
48537         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
48538         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
48539         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
48540
48541 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48542
48543         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
48544
48545 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
48546             Andreas Schwab  <schwab@suse.de>
48547             Roland McGrath  <roland@hack.frob.com>
48548             Joseph Myers  <joseph@codesourcery.com>
48549             Carlos O'Donell  <carlos@redhat.com>
48550
48551         [BZ #15755]
48552         * config.h.in: Define HAVE_PT_CHOWN.
48553         * config.make.in (build-pt-chown): New variable.
48554         * configure.in (--enable-pt_chown): New configure option.
48555         * configure: Regenerate.
48556         * login/Makefile: Include Makeconfig.  Build pt_chown only if
48557         build-pt-chown is enabled.
48558         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
48559         pt_chown to fix pty ownership.
48560         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
48561         CLOSE_ALL_FDS.
48562         * manual/install.texi (Configuring and compiling): Mention
48563         --enable-pt_chown. Add @findex for grantpt.
48564         * INSTALL: Regenerate.
48565
48566 2013-07-20  David S. Miller  <davem@davemloft.net>
48567
48568         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
48569         difference between 32-bit and 64-bit.
48570
48571 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
48572
48573         [BZ #15711]
48574         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
48575         Avoid system header dependency with -ffreestanding.
48576         ($(objpfx)bits/syscall%d): Likewise.
48577
48578 2013-07-13  David S. Miller  <davem@davemloft.net>
48579
48580         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
48581         underflows from atanl/atan2l due to bug 15319.
48582         (casinh_test_data): Likewise.
48583
48584 2013-07-07  David S. Miller  <davem@davemloft.net>
48585
48586         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
48587
48588 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
48589
48590         * sysdeps/i386/fpu/libm-test-ulps: Update.
48591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48592
48593 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
48594
48595         * configure.in (--enable-lock-elision): Fix message text.
48596         * INSTALL: Regenerate.
48597         * configure: Regenerate.
48598
48599 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48600
48601         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48602
48603 2013-07-03  Andreas Jaeger  <aj@suse.de>
48604
48605         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
48606         define.
48607         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
48608         (ptrace_peeksiginfo_args): Add.
48609         (__ptrace_peeksiginfo_flags): Add.
48610         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
48611         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
48612         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
48613
48614 2013-07-03  Allan McRae  <allan@archlinux.org>
48615
48616         * sysdeps/i386/fpu/libm-test-ulps: Update.
48617
48618 2013-07-02  David S. Miller  <davem@davemloft.net>
48619
48620         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48621
48622 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
48623
48624         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48625
48626 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
48627
48628         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
48629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48630
48631 2013-07-02  Andi Kleen <ak@linux.intel.com>
48632
48633         * config.h.in (ENABLE_LOCK_ELISION): Add.
48634         * configure.in (--enable-lock-elision): Add option.
48635         * manual/install.texi: Document --enable lock elision.
48636         * configure: Regenerate
48637         * INSTALL: Regenerate.
48638
48639 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
48640
48641         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
48642         SSE4.2 strcasecmp for libc.a.
48643         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
48644
48645 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
48646
48647         [BZ #13304]
48648         * soft-fp/op-common.h (_FP_FMA): New macro.
48649         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
48650         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
48651         (_FP_MUL_MEAT_1_imm): ... here.
48652         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
48653         (_FP_MUL_MEAT_1_wide): ... here.
48654         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
48655         (_FP_MUL_MEAT_1_hard): ... here.
48656         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
48657         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
48658         (_FP_MUL_MEAT_2_wide): ... here.
48659         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
48660         (_FP_MUL_MEAT_2_wide_3mul): ... here.
48661         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
48662         (_FP_MUL_MEAT_2_gmp): ... here.
48663         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
48664         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
48665         (_FP_MUL_MEAT_4_wide): ... here.
48666         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
48667         (_FP_MUL_MEAT_4_gmp): ... here.
48668         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
48669         (_FP_WFRACBITS_DW_S): Likewise.
48670         (_FP_WFRACXBITS_DW_S): Likewise.
48671         (_FP_HIGHBIT_DW_S): Likewise.
48672         (FP_FMA_S): Likewise.
48673         (_FP_FRAC_HIGH_DW_S): Likewise.
48674         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
48675         (_FP_WFRACBITS_DW_D): Likewise.
48676         (_FP_WFRACXBITS_DW_D): Likewise.
48677         (_FP_HIGHBIT_DW_D): Likewise.
48678         (FP_FMA_D): Likewise.
48679         (_FP_FRAC_HIGH_DW_D): Likewise.
48680         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
48681         (_FP_WFRACBITS_DW_E): Likewise.
48682         (_FP_WFRACXBITS_DW_E): Likewise.
48683         (_FP_HIGHBIT_DW_E): Likewise.
48684         (FP_FMA_E): Likewise.
48685         (_FP_FRAC_HIGH_DW_E): Likewise.
48686         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
48687         (_FP_WFRACBITS_DW_Q): Likewise.
48688         (_FP_WFRACXBITS_DW_Q): Likewise.
48689         (_FP_HIGHBIT_DW_Q): Likewise.
48690         (FP_FMA_Q): Likewise.
48691         (_FP_FRAC_HIGH_DW_Q): Likewise.
48692         * soft-fp/fmasf4.c: New file.
48693         * soft-fp/fmadf4.c: Likewise.
48694         * soft-fp/fmatf4.c: Likewise.
48695
48696 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
48697
48698         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
48699         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
48700         Silvermont.
48701         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
48702         macro.
48703         (index_Slow_SSE4_2): Likewise.
48704         (index_Prefer_PMINUB_for_stringop): Likewise.
48705         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
48706         bit_Slow_SSE4_2 is set.
48707         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
48708         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
48709
48710 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48711
48712         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
48713         rtld_global._dl_hwcap2.
48714         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
48715         POWER8.
48716         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
48717         POWER8 feature descriptions defined in _dl_hwcap2.
48718         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
48719         string handling for POWER8 feature bits.
48720         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
48721         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
48722         _dl_powerpc_cap_flags.
48723         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
48724         * sysdeps/powerpc/rtld-global-offsets.sym
48725         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
48726         _dl_hwcap2 in the rtld_global_ro structure.
48727
48728 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48729
48730         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
48731         hardware capabilities in support of AT_HWCAP2.
48732         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
48733         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
48734         GLRO(dl_hwcap2).
48735         (_dl_show_auxv): Add support for calling _dl_procinfo to display
48736         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
48737         explicitly the unknown a_type display mechanism is used.
48738         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
48739         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
48740         struct member.
48741         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
48742         to macro prototype for AT_HWCAP2 support.
48743         * sysdeps/i386/dl-procinfo.h: Likewise.
48744         * sysdeps/s390/dl-procinfo.h: Likewise.
48745         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
48746         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
48747         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
48748         return -1 for unknown a_type display fallback.
48749         * sysdeps/sparc/dl-procinfo.h: Likewise.
48750         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
48751         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
48752
48753 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
48754
48755         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
48756         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
48757
48758 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
48759
48760         [BZ #12492]
48761         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
48762         mprotect making __stack_prot writable.
48763
48764 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
48765             Joseph Myers  <joseph@codesourcery.com>
48766
48767         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
48768         as being properly aligned.
48769
48770 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
48771
48772         * dlfcn/modstatic5.c: New file.
48773         * dlfcn/tststatic5.c: New file.
48774         * dlfcn/Makefile (tests): Add tststatic5.
48775         (tests-static): Likewise.
48776         (modules-names): Add modstatic5.
48777         (tststatic5-ENV): New variable.
48778         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
48779
48780         [BZ #15022]
48781         * elf/dl-support.c (_dl_main_map): New variable.
48782         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
48783         (_dl_nns, _dl_load_adds): Set to 1.
48784         (_dl_initial_searchlist): Refer to _dl_main_map.
48785         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
48786         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
48787         call to _dl_get_origin.
48788         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
48789         around call_map.
48790         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
48791         * dlfcn/modstatic3.c: New file.
48792         * dlfcn/tststatic3.c: New file.
48793         * dlfcn/tststatic4.c: New file.
48794         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
48795         (tests-static): Likewise.
48796         (modules-names): Add modstatic3.
48797         (tststatic3-ENV, tststatic4-ENV): New variables.
48798         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
48799         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
48800
48801 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
48802
48803         * configure.in (CC): Require GCC version 4.4 or later.
48804         * configure: Regenerated.
48805         * manual/install.texi (Tools for Compilation): Update GCC version
48806         requirement.
48807         * INSTALL: Regenerated.
48808
48809 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
48810
48811         [BZ #15674]
48812         * string/test-memcmp.c (check2): New.
48813         (main): Call check2.
48814
48815         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
48816
48817 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
48818
48819         [BZ #15022]
48820         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
48821         over to...
48822         (dl_open_worker) [!SHARED]: ... here.
48823
48824 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48825
48826         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
48827
48828 2013-06-25  Richard Henderson  <rth@redhat.com>
48829
48830         * locale/programs/locarchive.c: Include <libc-internal.h>
48831
48832 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
48833
48834         * manual/texinfo.tex: Update to version 2013-06-21.17, with
48835         trailing whitespace removed.
48836
48837 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
48838
48839         [BZ #10283]
48840         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
48841         * locale/programs/locarchive.c: Include libc-mmap.h.
48842         (prepare_address_space): Take two new outputs (the mmap base and len).
48843         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
48844         values.
48845         (create_archive): Declare new mmap base and len values for
48846         prepare_address_space, and store the result in ah.
48847         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
48848         (enlarge_archive): If ah->mmap_base is not NULL, use that and
48849         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
48850         Declare new mmap base and len values for
48851         prepare_address_space, and store the result in new_ah.
48852         (open_archive): Declare new mmap base and len values for
48853         prepare_address_space, and store the result in ah.
48854         (close_archive): If ah->mmap_base is not NULL, use that and
48855         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
48856         * sysdeps/generic/libc-mmap.h: New file.
48857
48858 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
48859
48860         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
48861         (ALIGN_UP): Likewise.
48862         (PTR_ALIGN_DOWN): Likewise.
48863         (PTR_ALIGN_UP): Likewise.
48864
48865 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48866
48867         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
48868         entry mapped to PPC_PLATFORM_POWER8.
48869         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
48870         POWER8.
48871         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
48872         (_dl_string_platform): Add case for exporting platform position for
48873         POWER8.
48874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
48875         search path to sysdeps/powerpc/powerpc32/power8 directory.
48876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
48877         search path to sysdeps/powerpc/powerpc64/power8 directory.
48878         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
48879         power7 directories.
48880         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
48881         power7 directories.
48882
48883 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48884
48885         * INSTALL: Regenerate.
48886
48887         * nscd/connections.c (nscd_init): Fix comment.
48888
48889 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
48890
48891         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
48892
48893         [BZ #15667]
48894         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
48895         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
48896
48897 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
48898
48899         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
48900         DL_DST_REQ_STATIC.
48901         (DL_DST_REQ_STATIC): Remove macro.
48902
48903 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
48904
48905         [BZ #7006]
48906         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
48907         with a shift of 0 bits.
48908
48909 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
48910
48911         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
48912         $(tststatic-ENV).
48913
48914 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
48915
48916         [BZ #15655]
48917         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
48918
48919 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48920
48921         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
48922         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
48923         accepts -fno-tree-loop-distribute-patterns.
48924         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
48925         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
48926         recursive call.
48927         * string/memset.c (memset): Likewise.
48928         * string/test-memmove.c (simple_memmove): Disable loop transformation
48929         to library calls.
48930         * string/test-memset.c (simple_memset): Likewise.
48931         * benchtests/bench-memmove.c (simple_memmove): Likewise.
48932         * benchtests/bench-memset.c (simple_memset): Likewise.
48933         * configure: Regenerated.
48934
48935 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
48936
48937         * math/test-misc.c (main): Ignore fesetround failure when failures
48938         of subsequent rounding tests would be ignored.
48939
48940         [BZ #15654]
48941         * math/fedisblxcpt.c (fedisableexcept): Return 0.
48942         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
48943         * math/fegetenv.c (__fegetenv): Return 0.
48944         * math/fegetexcept.c (fegetexcept): Return 0.
48945         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
48946         FE_TONEAREST.
48947         * math/feholdexcpt.c (feholdexcept): Return 0.
48948         * math/fesetenv.c (__fesetenv): Return 0.
48949         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
48950         argument FE_TONEAREST.
48951         * math/feupdateenv.c (__feupdateenv): Return 0.
48952         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
48953
48954 2013-06-18  Roland McGrath  <roland@hack.frob.com>
48955
48956         * elf/rtld-Rules (rtld-compile-command.S): New variable.
48957         (rtld-compile-command.s, rtld-compile-command.c): New variables.
48958         ($(objpfx)rtld-%.os rules): Use them.
48959
48960 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48961
48962         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
48963         fields.
48964
48965 2013-06-17  Roland McGrath  <roland@hack.frob.com>
48966
48967         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
48968         length of target pattern, then descending length of dependency pattern.
48969         * configure.in (AWK): Require gawk 3.1.2 or newer.
48970         * manual/install.texi (Tools for Compilation): Say that we do.
48971         * configure: Regenerated.
48972
48973         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
48974         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
48975         * scripts/sysd-rules.awk: ... this new script.
48976         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
48977         than a glob-style pattern.
48978
48979 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
48980
48981         * math/test-misc.c (main): Do not treat incorrectly rounded
48982         conversions as failure unless ROUNDING_TESTS passes.
48983
48984 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
48985
48986         [BZ #15631]
48987         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
48988         restore exception state around main square root computation, then
48989         check for inexactness explicitly.
48990
48991         * math/libm-test.inc (fma_test_data): Add another test.
48992
48993 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48994
48995         * manual/threads.texi (Non-POSIX Extensions): New document
48996         node.  Document pthread_getattr_default_np and
48997         pthread_setattr_default_np.
48998
48999         * Versions.def (libpthread): Add GLIBC_2.18.
49000         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
49001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
49002         Likewise.
49003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
49004         Likewise.
49005         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
49006         Likewise.
49007         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
49008         Likewise.
49009         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
49010         Likewise.
49011         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
49012         Likewise.
49013         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
49014         Likewise.
49015         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
49016         Likewise.
49017         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
49018         Likewise.
49019
49020 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
49021
49022         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
49023         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
49024
49025 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
49026             H.J. Lu  <hjl.tools@gmail.com>
49027
49028         [BZ #15627]
49029         * sysdeps/x86_64/rtld-memset.c: Remove file.
49030         * sysdeps/x86_64/rtld-memset.S: New file.
49031
49032 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
49033
49034         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
49035         (test_in_one_mode): Take arguments for whether the rounding mode
49036         is supported for each floating-point type.
49037         (do_test): Pass new arguments to test_in_one_mode using
49038         ROUNDING_TESTS.
49039
49040 2013-06-13  Roland McGrath  <roland@hack.frob.com>
49041
49042         * posix/tst-waitid.c (do_test): Distinguish different instances of
49043         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
49044         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
49045         before entering the kernel for waitpid.
49046
49047 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
49048
49049         * NEWS: Fix note on clock function precision.  Text by Roland
49050         McGrath.
49051
49052 2013-06-13  Roland McGrath  <roland@hack.frob.com>
49053
49054         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
49055         it into place only when and if the sanity check passes.
49056
49057 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
49058
49059         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
49060         output for whether conversion result is exact.  Take argument
49061         indicating whether type is IBM long double.
49062         (round_for_all): Change need_exact field to ibm_ld.
49063         * stdlib/tst-strtod-round.c (struct exactness): New type.
49064         (struct test): Change bool ld_ok field to struct exactness exact.
49065         (TEST): Update all definitions for change to field.
49066         (tests): Regenerate array contents.
49067         (test_in_one_mode): Take pointer to new field instead of old ld_ok
49068         field value.  Check for IBM long double here.
49069         (do_test): Update calls to test_in_one_mode.
49070
49071 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
49072
49073         [BZ #12515]
49074         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
49075         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
49076
49077 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49078
49079         [BZ #15605]
49080         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
49081         generated by the compiler on loop optimizations.
49082         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
49083         general definitions.
49084
49085 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
49086
49087         * math/bug-nextafter.c: Include <math-tests.h>.
49088         (main): Only test for exceptions if EXCEPTION_TESTS is true for
49089         the relevant type.
49090         * math/bug-nexttoward.c: Include <math-tests.h>.
49091         (main): Only test for exceptions if EXCEPTION_TESTS is true for
49092         the relevant type.
49093         * math/test-misc.c: Include <math-tests.h>.
49094         (main): Only test for exceptions if EXCEPTION_TESTS is true for
49095         the relevant type.
49096
49097 2013-06-12  Andreas Jaeger  <aj@suse.de>
49098
49099         * po/ia.po: Update Interlingua translation from translation
49100         project.
49101
49102 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49103
49104         * include/fenv.h: Include stdbool.h.
49105         (struct rm_ctx): New structure.
49106         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
49107         Define macro.
49108         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
49109         (SET_RESTORE_ROUNDF): Likewise.
49110         (SET_RESTORE_ROUNDL): Likewise.
49111         (SET_RESTORE_ROUND_NOEX): Likewise.
49112         (SET_RESTORE_ROUND_NOEXF): Likewise.
49113         (SET_RESTORE_ROUND_NOEXL): Likewise.
49114         (SET_RESTORE_ROUND_53BIT): Likewise.
49115         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
49116         (libc_feresetround_noexf_ctx): Likewise.
49117         (libc_feresetround_noexl_ctx): Likewise.
49118         (libc_feholdsetround_53bit_ctx): Likewise.
49119         (libc_feresetround_53bit_ctx): Likewise.
49120         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
49121         (libc_feholdexcept_setround_sse_ctx): New function.
49122         (libc_fesetenv_sse_ctx): Likewise.
49123         (libc_feupdateenv_sse_ctx): Likewise.
49124         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
49125         (libc_feholdexcept_setround_387_ctx): Likewise.
49126         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
49127         (libc_feholdsetround_387_prec_ctx): Likewise.
49128         (libc_feholdsetround_387_ctx): Likewise.
49129         (libc_feholdsetround_387_53bit_ctx): Likewise.
49130         (libc_feholdsetround_sse_ctx): Likewise.
49131         (libc_feresetround_sse_ctx): Likewise.
49132         (libc_feresetround_387_ctx): Likewise.
49133         (libc_feupdateenv_387_ctx): Likewise.
49134         (libc_feholdexcept_setroundf_ctx): Define macro.
49135         (libc_fesetenvf_ctx): Likewise.
49136         (libc_feupdateenvf_ctx): Likewise.
49137         (libc_feholdsetroundf_ctx): Likewise.
49138         (libc_feresetroundf_ctx): Likewise.
49139         (libc_feholdexcept_setround_ctx): Likewise.
49140         (libc_fesetenv_ctx): Likewise.
49141         (libc_feupdateenv_ctx): Likewise.
49142         (libc_feholdsetround_ctx): Likewise.
49143         (libc_feresetround_ctx): Likewise.
49144         (libc_feholdexcept_setroundl_ctx): Likewise.
49145         (libc_feupdateenvl_ctx): Likewise.
49146         (libc_feholdsetroundl_ctx): Likewise.
49147         (libc_feresetroundl_ctx): Likewise.
49148         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
49149         (libc_feresetround_53bit_ctx): Likewise.
49150
49151 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49152
49153         * locale/iso-639.def: Convert to UTF-8.
49154
49155 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
49156
49157         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
49158         (EXCEPTION_TESTS_double): Likewise.
49159         (EXCEPTION_TESTS_long_double): Likewise.
49160         (EXCEPTION_TESTS): Likewise.
49161         * math/libm-test.inc (test_exceptions): Only test exceptions if
49162         EXCEPTION_TESTS (FLOAT).
49163
49164 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49165
49166         * benchtests/Makefile (string-bench): Add strcpy_chk and
49167         stpcpy_chk.
49168         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
49169         * benchtests/bench-stpcpy_chk.c: New file.
49170         * benchtests/bench-strcpy_chk-ifunc.c: New file.
49171         * benchtests/bench-strcpy_chk.c: New file.
49172         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
49173         code.
49174         (do_test): Likewise.
49175
49176 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
49177
49178         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
49179         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
49180         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
49181         with tabs where appropriate.
49182         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
49183         dl-procinfo.h.
49184         [PPC_PLATFORM_PPC440]: Likewise.
49185         [PPC_PLATFORM_PPC464]: Likewise.
49186         [PPC_PLATFORM_PPC476]: Likewise.
49187         (_dl_string_platform): Add support for detecting ppc405, ppc440,
49188         ppc464, and ppc476 platform strings merging from ports/
49189         dl-procinfo.h.
49190
49191 2013-06-11  Andreas Schwab  <schwab@suse.de>
49192
49193         [BZ #14991]
49194         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
49195         (from_ucs4_idx): Regenerate.
49196         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
49197         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
49198         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
49199         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
49200         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
49201         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
49202         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
49203         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
49204         from FROM_LOOP and TO_LOOP specific macros.
49205         (BODY): Handle combining characters.
49206         * iconvdata/BIG5HKSCS.irreversible: Update.
49207         * iconvdata/BIG5HKSCS.precomposed: New file.
49208         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
49209         characters.
49210         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
49211
49212 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49213
49214         * include/sys/time.h: Fix indentation and add copyright header.
49215
49216         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
49217         (do_test): Likewise.
49218         * string/test-memchr.c (do_one_test): Likewise.
49219         (do_test): Likewise.
49220         * string/test-memcmp.c (do_one_test): Likewise.
49221         (do_test): Likewise.
49222         * string/test-memcpy.c (do_one_test): Likewise.
49223         (do_test): Likewise.
49224         * string/test-memmem.c (do_one_test): Likewise.
49225         (do_test): Likewise.
49226         (do_random_tests): Likewise.
49227         * string/test-memmove.c (do_one_test): Likewise.
49228         (do_test): Likewise.
49229         * string/test-memset.c (do_one_test): Likewise.
49230         (do_test): Likewise.
49231         * string/test-rawmemchr.c (do_one_test): Likewise.
49232         (do_test): Likewise.
49233         * string/test-strcasecmp.c (do_one_test): Likewise.
49234         (do_test): Likewise.
49235         * string/test-strcasestr.c (do_one_test): Likewise.
49236         (do_test): Likewise.
49237         * string/test-strcat.c (do_one_test): Likewise.
49238         (do_test): Likewise.
49239         * string/test-strchr.c (do_one_test): Likewise.
49240         (do_test): Likewise.
49241         * string/test-strcmp.c (do_one_test): Likewise.
49242         (do_test): Likewise.
49243         * string/test-strcpy.c (do_one_test): Likewise.
49244         (do_test): Likewise.
49245         * string/test-string.h: Likewise.
49246         (test_init): Likewise.
49247         * string/test-strlen.c (do_one_test): Likewise.
49248         (do_test): Likewise.
49249         * string/test-strncasecmp.c (do_one_test): Likewise.
49250         (do_test): Likewise.
49251         * string/test-strncat.c (do_one_test): Likewise.
49252         (do_test): Likewise.
49253         * string/test-strncmp.c (do_one_test): Likewise.
49254         (do_test_limit): Likewise.
49255         (do_test): Likewise.
49256         * string/test-strncpy.c (do_one_test): Likewise.
49257         (do_test): Likewise.
49258         * string/test-strnlen.c (do_one_test): Likewise.
49259         (do_test): Likewise.
49260         * string/test-strpbrk.c (do_one_test): Likewise.
49261         (do_test): Likewise.
49262         * string/test-strrchr.c (do_one_test): Likewise.
49263         (do_test): Likewise.
49264         * string/test-strspn.c (do_one_test): Likewise.
49265         (do_test): Likewise.
49266         * string/test-strstr.c (do_one_test): Likewise.
49267         (do_test): Likewise.
49268
49269         * benchtests/Makefile (string-bench): Add string benchmarks.
49270         * benchtests/bench-bcopy-ifunc.c: New file.
49271         * benchtests/bench-bcopy.c: New file.
49272         * benchtests/bench-bzero-ifunc.c: New file.
49273         * benchtests/bench-bzero.c: New file.
49274         * benchtests/bench-memccpy-ifunc.c: New file.
49275         * benchtests/bench-memccpy.c: New file.
49276         * benchtests/bench-memchr-ifunc.c: New file.
49277         * benchtests/bench-memchr.c: New file.
49278         * benchtests/bench-memcmp-ifunc.c: New file.
49279         * benchtests/bench-memcmp.c: New file.
49280         * benchtests/bench-memmem-ifunc.c: New file.
49281         * benchtests/bench-memmem.c: New file.
49282         * benchtests/bench-memmove-ifunc.c: New file.
49283         * benchtests/bench-memmove.c: New file.
49284         * benchtests/bench-mempcpy-ifunc.c: New file.
49285         * benchtests/bench-mempcpy.c: New file.
49286         * benchtests/bench-memset-ifunc.c: New file.
49287         * benchtests/bench-memset.c: New file.
49288         * benchtests/bench-rawmemchr-ifunc.c: New file.
49289         * benchtests/bench-rawmemchr.c: New file.
49290         * benchtests/bench-stpcpy-ifunc.c: New file.
49291         * benchtests/bench-stpcpy.c: New file.
49292         * benchtests/bench-stpncpy-ifunc.c: New file.
49293         * benchtests/bench-stpncpy.c: New file.
49294         * benchtests/bench-strcasecmp-ifunc.c: New file.
49295         * benchtests/bench-strcasecmp.c: New file.
49296         * benchtests/bench-strcasestr-ifunc.c: New file.
49297         * benchtests/bench-strcasestr.c: New file.
49298         * benchtests/bench-strcat-ifunc.c: New file.
49299         * benchtests/bench-strcat.c: New file.
49300         * benchtests/bench-strchr-ifunc.c: New file.
49301         * benchtests/bench-strchr.c: New file.
49302         * benchtests/bench-strchrnul-ifunc.c: New file.
49303         * benchtests/bench-strchrnul.c: New file.
49304         * benchtests/bench-strcmp-ifunc.c: New file.
49305         * benchtests/bench-strcmp.c: New file.
49306         * benchtests/bench-strcpy-ifunc.c: New file.
49307         * benchtests/bench-strcpy.c: New file.
49308         * benchtests/bench-strcspn-ifunc.c: New file.
49309         * benchtests/bench-strcspn.c: New file.
49310         * benchtests/bench-strlen-ifunc.c: New file.
49311         * benchtests/bench-strlen.c: New file.
49312         * benchtests/bench-strncasecmp-ifunc.c: New file.
49313         * benchtests/bench-strncasecmp.c: New file.
49314         * benchtests/bench-strncat-ifunc.c: New file.
49315         * benchtests/bench-strncat.c: New file.
49316         * benchtests/bench-strncmp-ifunc.c: New file.
49317         * benchtests/bench-strncmp.c: New file.
49318         * benchtests/bench-strncpy-ifunc.c: New file.
49319         * benchtests/bench-strncpy.c: New file.
49320         * benchtests/bench-strnlen-ifunc.c: New file.
49321         * benchtests/bench-strnlen.c: New file.
49322         * benchtests/bench-strpbrk-ifunc.c: New file.
49323         * benchtests/bench-strpbrk.c: New file.
49324         * benchtests/bench-strrchr-ifunc.c: New file.
49325         * benchtests/bench-strrchr.c: New file.
49326         * benchtests/bench-strspn-ifunc.c: New file.
49327         * benchtests/bench-strspn.c: New file.
49328         * benchtests/bench-strstr-ifunc.c: New file.
49329         * benchtests/bench-strstr.c: New file.
49330
49331         * benchtests/Makefile: Disable parallel execution of targets.
49332         (string-bench): Add memcpy.
49333         (benchset): New variable to store a list of benchmark sets.
49334         (bench-func): Renamed from bench.
49335         (bench-set): New target.
49336         (bench): Depend on bench-func and bench-set.
49337         * benchtests/README: Add section on benchmark sets.
49338         * benchtests/bench-memcpy-ifunc.c: New file.
49339         * benchtests/bench-memcpy.c: New file.
49340         * benchtests/bench-string.h: New file.
49341
49342 2013-06-11  Andreas Schwab  <schwab@suse.de>
49343
49344         [BZ #15577]
49345         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
49346         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
49347         values in the triple.
49348         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
49349         terminator in the group key.
49350
49351 2013-06-11  Andreas Jaeger  <aj@suse.de>
49352
49353         * po/zh_TW.po: Update Chinese (traditional) translation from
49354         translation project.
49355
49356 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49357
49358         * include/time.h (__clock_gettime): Add libc_hidden_proto.
49359         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
49360         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
49361         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
49362         (clock_getcpuclockid): Likewise.
49363         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
49364         Add weak_alias and libc_hidden_def.
49365         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
49366         * rt/clock_gettime.c (clock_gettime): Rename to
49367         __clock_gettime.  Add weak_alias and libc_hidden_def.
49368         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
49369         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
49370         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
49371         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
49372         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
49373         Likewise.
49374         * rt/clock_settime.c (clock_settime): Rename to
49375         __clock_settime.  Add weak_alias and libc_hidden_def.
49376         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
49377
49378 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
49379
49380         * mach/err_boot.sub: Remove trailing whitespace.
49381         * mach/err_ipc.sub: Likewise.
49382         * mach/err_mach.sub: Likewise.
49383
49384         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
49385         (ROUNDING_TESTS_double): Likewise.
49386         (ROUNDING_TESTS_long_double): Likewise.
49387         (ROUNDING_TESTS): Likewise.
49388         * math/libm-test.inc: Include <math-tests.h>.
49389         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
49390         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
49391         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
49392         (IF_ROUND_INIT_FE_UPWARD): Likewise.
49393
49394 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49395
49396         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
49397         of assigning.
49398
49399 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
49400
49401         * sysdeps/gnu/errlist.awk: Do not generate space at end of
49402         otherwise empty TRANS lines.
49403         * sysdeps/gnu/errlist.c: Regenerated.
49404
49405         * catgets/gencat.c (error_print): Use (void) in function
49406         definition.
49407         * crypt/crypt_util.c (__init_des): Likewise.
49408         * crypt/speeds.c (Stop): Likewise.
49409         (main): Likewise.
49410         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
49411         * inet/ruserpass.c (token): Likewise.
49412         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
49413         * intl/localealias.c (extend_alias_table): Likewise.
49414         * intl/plural-exp.c (init_germanic_plural): Likewise.
49415         * libio/fcloseall.c (__fcloseall): Likewise.
49416         * libio/genops.c (_IO_flush_all): Likewise.
49417         (_IO_flush_all_linebuffered): Likewise.
49418         (_IO_cleanup): Likewise.
49419         (_IO_iter_begin): Likewise.
49420         (_IO_iter_end): Likewise.
49421         (_IO_list_lock): Likewise.
49422         (_IO_list_unlock): Likewise.
49423         (_IO_list_resetlock): Likewise.
49424         * libio/getchar.c (getchar): Likewise.
49425         * libio/getchar_u.c (getchar_unlocked): Likewise.
49426         * libio/getwchar.c (getwchar): Likewise.
49427         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
49428         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
49429         * login/getpt.c (__getpt): Likewise.
49430         * login/tst-utmp.c (main): Likewise.
49431         * malloc/hooks.c (__malloc_check_init): Likewise.
49432         * malloc/malloc.c (__malloc_stats): Likewise.
49433         * malloc/mtrace.c (tr_break): Likewise.
49434         (mtrace): Likewise.
49435         (muntrace): Likewise.
49436         * misc/fstab.c (endfsent): Likewise.
49437         * misc/getclktck.c (__getclktck): Likewise.
49438         * misc/getdtsz.c (__getdtablesize): Likewise.
49439         * misc/gethostid.c (gethostid): Likewise.
49440         * misc/getpagesize.c (__getpagesize): Likewise.
49441         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
49442         (__get_nprocs): Likewise.
49443         (__get_phys_pages): Likewise.
49444         (__get_avphys_pages): Likewise.
49445         * misc/getttyent.c (getttyent): Likewise.
49446         (setttyent): Likewise.
49447         (endttyent): Likewise.
49448         * misc/getusershell.c (getusershell): Likewise.
49449         (endusershell): Likewise.
49450         (setusershell): Likewise.
49451         (initshells): Likewise.
49452         * misc/hsearch.c (__hdestroy): Likewise.
49453         * misc/sync.c (sync): Likewise.
49454         * misc/syslog.c (closelog_internal): Likewise.
49455         (closelog): Likewise.
49456         * misc/ttyslot.c (ttyslot): Likewise.
49457         * misc/vhangup.c (vhangup): Likewise.
49458         * posix/fork.c (__fork): Likewise.
49459         * posix/getegid.c (__getegid): Likewise.
49460         * posix/geteuid.c (__geteuid): Likewise.
49461         * posix/getgid.c (__getgid): Likewise.
49462         * posix/getpid.c (__getpid): Likewise.
49463         * posix/getppid.c (__getppid): Likewise.
49464         * posix/getuid.c (__getuid): Likewise.
49465         * posix/pause.c (pause): Likewise.
49466         * posix/setpgrp.c (setpgrp): Likewise.
49467         * posix/setsid.c (__setsid): Likewise.
49468         * posix/test-vfork.c (noop): Likewise.
49469         * resolv/gethnamaddr.c (_endhtent): Likewise.
49470         (_gethtent): Likewise.
49471         (ht_endhostent): Likewise.
49472         (gethostent): Likewise.
49473         (dns_service): Likewise.
49474         * stdlib/drand48.c (drand48): Likewise.
49475         * stdlib/lrand48.c (lrand48): Likewise.
49476         * stdlib/mrand48.c (mrand48): Likewise.
49477         * stdlib/rand.c (rand): Likewise.
49478         * stdlib/random.c (__random): Likewise.
49479         * stdlib/setenv.c (clearenv): Likewise.
49480         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
49481         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
49482         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
49483         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
49484         (__get_nprocs): Likewise.
49485         (__get_phys_pages): Likewise.
49486         (__get_avphys_pages): Likewise.
49487         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
49488         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
49489         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
49490         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
49491         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
49492         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
49493         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
49494         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
49495         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
49496         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
49497         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
49498         * sysdeps/mach/hurd/sync.c (sync): Likewise.
49499         * sysdeps/posix/clock.c (clock): Likewise.
49500         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
49501         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
49502         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
49503         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
49504         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
49505         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
49506         (__get_nprocs_conf): Likewise.
49507         (__get_phys_pages): Likewise.
49508         (__get_avphys_pages): Likewise.
49509         * time/clock.c (clock): Likewise.
49510         * time/tzset.c (__tzname_max): Likewise.
49511
49512 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
49513
49514         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
49515         (__bswap_32): Do not use "register".
49516         * crypt/crypt.c (_ufc_doit_r): Likewise.
49517         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
49518         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
49519         * gmon/gmon.c (__monstartup): Likewise.
49520         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
49521         * hurd/hurdmalloc.c (more_memory): Likewise.
49522         (malloc): Likewise.
49523         (free): Likewise.
49524         (realloc): Likewise.
49525         (malloc_fork_prepare): Likewise.
49526         (malloc_fork_parent): Likewise.
49527         (malloc_fork_child): Likewise.
49528         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
49529         (_svcauth_des): Likewise.
49530         * inet/inet_lnaof.c (inet_lnaof): Likewise.
49531         * inet/inet_net.c (inet_network): Likewise.
49532         * inet/inet_netof.c (inet_netof): Likewise.
49533         * inet/rcmd.c (__validuser2_sa): Likewise.
49534         * io/fts.c (fts_open): Likewise.
49535         (fts_load): Likewise.
49536         (fts_close): Likewise.
49537         (fts_read): Likewise.
49538         (fts_children): Likewise.
49539         (fts_build): Likewise.
49540         (fts_stat): Likewise.
49541         (fts_sort): Likewise.
49542         (fts_alloc): Likewise.
49543         (fts_lfree): Likewise.
49544         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
49545         (_IO_file_xsgetn): Likewise.
49546         (_IO_file_xsgetn_mmap): Likewise.
49547         * libio/iofopncook.c (_IO_cookie_read): Likewise.
49548         (_IO_cookie_write): Likewise.
49549         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
49550         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
49551         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
49552         * malloc/obstack.c (_obstack_begin): Likewise.
49553         (_obstack_begin_1): Likewise.
49554         (_obstack_newchunk): Likewise.
49555         (_obstack_allocated_p): Likewise.
49556         (obstack_free): Likewise.
49557         (_obstack_memory_used): Likewise.
49558         * misc/getttyent.c (getttynam): Likewise.
49559         (getttyent): Likewise.
49560         (skip): Likewise.
49561         (value): Likewise.
49562         * misc/getusershell.c (initshells): Likewise.
49563         * misc/syslog.c (__vsyslog_chk): Likewise.
49564         * misc/ttyslot.c (ttyslot): Likewise.
49565         * nis/nis_hash.c (__nis_hash): Likewise.
49566         * posix/fnmatch_loop.c (FCT): Likewise.
49567         * posix/getconf.c (print_all): Likewise.
49568         (main): Likewise.
49569         * posix/getopt.c (exchange): Likewise.
49570         * posix/glob.c (globfree): Likewise.
49571         (prefix_array): Likewise.
49572         (__glob_pattern_type): Likewise.
49573         * resolv/arpa/nameser.h (NS_GET16): Likewise.
49574         (NS_GET32): Likewise.
49575         (NS_PUT16): Likewise.
49576         (NS_PUT32): Likewise.
49577         * resolv/gethnamaddr.c (getanswer): Likewise.
49578         (gethostbyname2): Likewise.
49579         (gethostbyaddr): Likewise.
49580         (_gethtent): Likewise.
49581         (_gethtbyname2): Likewise.
49582         (_gethtbyaddr): Likewise.
49583         * resolv/ns_print.c (dst_s_get_int16): Likewise.
49584         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
49585         * resolv/res_init.c (__res_vinit): Likewise.
49586         (net_mask): Likewise.
49587         * resolv/res_mkquery.c (outchar): Likewise.
49588         (PRINT): Likewise.
49589         * stdio-common/printf_fp.c (outchar): Likewise.
49590         (PRINT): Likewise.
49591         * stdio-common/printf_fphex.c (outchar): Likewise.
49592         (PRINT): Likewise.
49593         * stdio-common/printf_size.c (outchar): Likewise.
49594         (PRINT): Likewise.
49595         * stdio-common/test_rdwr.c (main): Likewise.
49596         * stdio-common/tfformat.c (matches): Likewise.
49597         * stdio-common/vfprintf.c (outchar): Likewise.
49598         (printf_unknown): Likewise.
49599         (buffered_vfprintf): Likewise.
49600         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
49601         * stdio-common/xbug.c (AppendToBuffer): Likewise.
49602         (ReadFile): Likewise.
49603         * stdlib/qsort.c (SWAP): Likewise.
49604         (_quicksort): Likewise.
49605         * stdlib/setenv.c (__add_to_environ): Likewise.
49606         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
49607         * stdlib/strtol_l.c (__strtol_l): Likewise.
49608         * stdlib/tst-strtod.c (main): Likewise.
49609         * stdlib/tst-strtol.c (main): Likewise.
49610         * stdlib/tst-strtoll.c (main): Likewise.
49611         * string/bits/string2.h (__strcmp_cc): Likewise.
49612         (__strcmp_cg): Likewise.
49613         (__strcspn_c1): Likewise.
49614         (__strcspn_c2): Likewise.
49615         (__strcspn_c3): Likewise.
49616         (__strspn_c1): Likewise.
49617         (__strspn_c2): Likewise.
49618         (__strspn_c3): Likewise.
49619         (__strsep_1c): Likewise.
49620         (__strsep_2c): Likewise.
49621         (__strsep_3c): Likewise.
49622         * string/memccpy.c (__memccpy): Likewise.
49623         * string/stpcpy.c (__stpcpy): Likewise.
49624         * string/strcmp.c (strcmp): Likewise.
49625         * string/strrchr.c (strrchr): Likewise.
49626         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
49627         Likewise.
49628         * sysdeps/mach/hurd/getcwd.c
49629         (_hurd_canonicalize_directory_name_internal): Likewise.
49630         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
49631         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
49632         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
49633         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
49634         Likewise, in both definitions.
49635         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
49636         definitions.
49637         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
49638         64] (__bswap_64): Likewise.
49639         * time/test_time.c (main): Likewise.
49640         * time/tzfile.c (__tzfile_read): Likewise.
49641         (__tzfile_compute): Likewise.
49642         * time/tzset.c (__tzset_parse_tz): Likewise.
49643         (tzset_internal): Likewise.
49644         (compute_change): Likewise.
49645         * wcsmbs/wcscat.c (__wcscat): Likewise.
49646         * wcsmbs/wcschr.c (wcschr): Likewise.
49647         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
49648         * wcsmbs/wcscspn.c (wcscspn): Likewise.
49649         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
49650         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
49651         * wcsmbs/wcsspn.c (wcsspn): Likewise.
49652         * wcsmbs/wcsstr.c (wcsstr): Likewise.
49653         * wcsmbs/wmemchr.c (wmemchr): Likewise.
49654         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
49655         * wcsmbs/wmemset.c (wmemset): Likewise.
49656
49657 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
49658
49659         * scripts/config.guess: Update to version 2013-05-16.
49660         * scripts/config.sub: Update to version 2013-04-24.
49661         * scripts/install-sh: Update to version 2011-11-20.07.
49662         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
49663         * scripts/move-if-change: Update to version 2012-01-06 07:23.
49664
49665 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
49666
49667         * debug/fgetws_u_chk.c: Fix leading whitespaces.
49668         * elf/sln.c: Likewise.
49669         * hurd/hurd/ioctl.h: Likewise.
49670         * hurd/hurdmalloc.c: Likewise.
49671         * hurd/xattr.c: Likewise.
49672         * include/shlib-compat.h: Likewise.
49673         * inet/ruserpass.c: Likewise.
49674         * libio/iofgets_u.c: Likewise.
49675         * libio/iofgetws_u.c: Likewise.
49676         * locale/programs/ld-identification.c: Likewise.
49677         * locale/programs/ld-time.c: Likewise.
49678         * mach/msg-destroy.c: Likewise.
49679         * nss/nss_files/files-netgrp.c: Likewise.
49680         * resolv/res_data.c: Likewise.
49681         * soft-fp/op-1.h: Likewise.
49682         * soft-fp/op-2.h: Likewise.
49683         * soft-fp/op-4.h: Likewise.
49684         * soft-fp/op-common.h: Likewise.
49685         * stdio-common/printf_fphex.c: Likewise.
49686         * stdlib/strtod_l.c: Likewise.
49687         * sunrpc/rpc/clnt.h: Likewise.
49688         * sysdeps/generic/framestate.c: Likewise.
49689         * sysdeps/i386/bsd-_setjmp.S: Likewise.
49690         * sysdeps/i386/bsd-setjmp.S: Likewise.
49691         * sysdeps/i386/__longjmp.S: Likewise.
49692         * sysdeps/i386/setjmp.S: Likewise.
49693         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
49694         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
49695         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
49696         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
49697         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
49698         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
49699         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
49700         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
49701         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
49702         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
49703         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
49704         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
49705         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
49706         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
49707         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
49708         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
49709         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
49710         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
49711         * sysdeps/ieee754/support.c: Likewise.
49712         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
49713         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
49714         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
49715         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
49716         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
49717         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
49718         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
49719         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
49720         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
49721         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
49722         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
49723         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
49724         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
49725         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
49726         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
49727         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
49728         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
49729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
49730
49731 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
49732
49733         * posix/transbug.c: Remove executable mode.
49734
49735 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
49736
49737         * crypt/speeds.c: Remove trailing whitespace.
49738         * dlfcn/default.c: Likewise.
49739         * elf/ifuncdep2.c: Likewise.
49740         * elf/ifuncmain1.c: Likewise.
49741         * elf/ifuncmain1vis.c: Likewise.
49742         * elf/testobj.h: Likewise.
49743         * elf/tst-stackguard1.c: Likewise.
49744         * gmon/sys/gmon.h: Likewise.
49745         * hurd/hurdmsg.c: Likewise.
49746         * hurd/new-fd.c: Likewise.
49747         * hurd/ports-get.c: Likewise.
49748         * iconvdata/ibm1008_420.c: Likewise.
49749         * inet/tst-getni1.c: Likewise.
49750         * inet/tst-getni2.c: Likewise.
49751         * libio/ioungetc.c: Likewise.
49752         * libio/wfiledoalloc.c: Likewise.
49753         * manual/libm-err-tab.pl: Likewise.
49754         * math/w_dremf.c: Likewise.
49755         * misc/ftruncate.c: Likewise.
49756         * posix/bug-glob2.c: Likewise.
49757         * posix/tst-pcre.c: Likewise.
49758         * posix/wait4.c: Likewise.
49759         * resolv/README: Likewise.
49760         * resolv/res_debug.h: Likewise.
49761         * resolv/tst-inet_ntop.c: Likewise.
49762         * setjmp/bug269-setjmp.c: Likewise.
49763         * soft-fp/extended.h: Likewise.
49764         * soft-fp/op-1.h: Likewise.
49765         * soft-fp/op-2.h: Likewise.
49766         * soft-fp/op-4.h: Likewise.
49767         * soft-fp/op-8.h: Likewise.
49768         * soft-fp/testit.c: Likewise.
49769         * stdio-common/bug16.c: Likewise.
49770         * stdlib/random.c: Likewise.
49771         * sunrpc/rpcsvc/rquota.x: Likewise.
49772         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
49773         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
49774         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
49775         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
49776         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
49777         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
49778         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
49779         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
49780         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
49781         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
49782         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
49783         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
49784         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
49785         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
49786         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
49787         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
49788         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
49789         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
49790         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
49791         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
49792         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
49793         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
49794         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
49795         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
49796         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
49797         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
49798         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
49799         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
49800         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
49801         * sysdeps/ieee754/s_lib_version.c: Likewise.
49802         * sysdeps/mach/hurd/check_fds.c: Likewise.
49803         * sysdeps/mach/hurd/getsockname.c: Likewise.
49804         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
49805         * sysdeps/mach/hurd/recvfrom.c: Likewise.
49806         * sysdeps/powerpc/bits/link.h: Likewise.
49807         * sysdeps/powerpc/dl-procinfo.c: Likewise.
49808         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
49809         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
49810         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
49811         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
49812         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
49813         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
49814         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
49815         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
49816         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
49817         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
49818         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
49819         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
49820         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
49821         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
49822         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
49823         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
49824         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
49825         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
49826         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
49827         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
49828         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
49829         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
49830         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
49831         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
49832         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
49833         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
49834         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
49835         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
49836         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
49837         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
49838         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
49839         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
49840         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
49841         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
49842         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
49843         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
49844         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
49845         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
49846         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
49847         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
49848         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
49849         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
49850         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
49851         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
49852         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
49853         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
49854         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
49855         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
49856         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
49857         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
49858         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
49859         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
49860         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
49861         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
49862         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
49863         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
49864         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
49865         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
49866         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
49867         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
49868         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
49869         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
49870         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
49871         * sysdeps/powerpc/sysdep.h: Likewise.
49872         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
49873         * sysdeps/s390/s390-64/sub_n.S: Likewise.
49874         * sysdeps/sh/dl-trampoline.S: Likewise.
49875         * sysdeps/sh/memset.S: Likewise.
49876         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
49877         * sysdeps/sh/strlen.S: Likewise.
49878         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
49879         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
49880         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
49881         * sysdeps/sparc/sparc32/rem.S: Likewise.
49882         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
49883         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
49884         * sysdeps/sparc/sparc32/strchr.S: Likewise.
49885         * sysdeps/sparc/sparc32/udiv.S: Likewise.
49886         * sysdeps/sparc/sparc32/urem.S: Likewise.
49887         * sysdeps/sparc/sparc64/add_n.S: Likewise.
49888         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
49889         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
49890         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
49891         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
49892         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
49893         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
49894         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
49895         * sysdeps/unix/bsd/times.c: Likewise.
49896         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
49897         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
49898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
49899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
49900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
49901         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
49902         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
49903         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
49904         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
49905         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
49906         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
49907         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
49908         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
49909         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
49910         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
49911         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
49912         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
49913         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
49914         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
49915         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
49916         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
49917         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
49918         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
49919         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
49920         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
49921         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
49922         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
49923         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
49924         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
49925         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
49926         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
49927         * sysdeps/x86_64/strcspn.S: Likewise.
49928
49929 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
49930
49931         * locale/C-translit.h: Revert #include <stdint.h> because this is a
49932         generated file.  Regenerate properly from gen-translit.pl.
49933         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
49934         locale/C-translit.h.
49935
49936 2013-06-05  Andreas Schwab  <schwab@suse.de>
49937
49938         [BZ #15100]
49939         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
49940         week as 6 instead of -1.
49941         * time/tst-strptime.c (day_tests): Add test case.
49942
49943 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
49944
49945         * sysdeps/generic/math_private.h
49946         (libc_feholdexcept_setround_53bit): Replace with
49947         libc_feholdsetround_53bit.
49948         (libc_feupdateenv_53bit): Replace with
49949         libc_feresetround_53bit.
49950         (SET_RESTORE_ROUND_53BIT): Adjust.
49951
49952 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49953
49954         * string/test-strchrnul.c: Add copyright header.
49955
49956         * posix/tst-getaddrinfo4.c: Increase test timeout.
49957
49958 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
49959
49960         [BZ #15536]
49961         * math/libm-test.inc (MAX_EXP): Remove
49962         (MIN_EXP): Define.
49963         (ulp): Use MIN_EXP - MANT_DIG.
49964         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
49965
49966 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
49967
49968         * po/be.po: Revert last change.
49969         * po/zh_CN.po: Likewise.
49970         * po/header.pot: Likewise.
49971
49972 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
49973
49974         * Makefile ($(common-objpfx)linkobj/libc.so): Define
49975         link-libc-deps to empty as target-specific variable.
49976         * Makerules (link-libc-args): New variable.
49977         (libc-for-link): Likewise.
49978         (link-libc-deps): Likewise.
49979         (lib%.so): Depend on $(link-libc-deps).  Link with
49980         $(link-libc-args).
49981         (build-module): Link with $(link-libc-args).
49982         (build-module-asneeded): Likewise.
49983         (build-module-helper-objlist): Filter out $(link-libc-deps) from
49984         list of objects.
49985         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
49986         target-specific variable.
49987         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
49988         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
49989         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
49990         libc.
49991         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
49992         libc and ld.so.
49993         ($(objpfx)libpcprofile.so): Likewise.
49994         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
49995         libc_nonshared.a.
49996         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
49997         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
49998         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
49999         $(link-libc-deps).
50000         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
50001         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
50002         * login/Makefile ($(objpfx)libutil.so): Likewise.
50003         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
50004         * math/Makefile ($(objpfx)libm.so): Likewise.
50005         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
50006         $(objpfx)libnsl.so): Define libc-for-link as target-specific
50007         variable instead of depending directly on libc.
50008         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
50009         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
50010         $(link-libc-deps).
50011         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
50012         libc.
50013         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
50014         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
50015         ($(objpfx)libanl.so): Likewise.
50016         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
50017         ld.so.
50018         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
50019         $(link-libc-deps).
50020         * sysdeps/i386/fpu/Makefile: Remove file.
50021         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
50022         ($(objpfx)libm.so): Remove dependency on ld.so.
50023
50024 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
50025
50026         [BZ # 15553]
50027         * nis/yp_xdr.c (XDRMAXNAME): Define.
50028         (XDRMAXRECORD): Define.
50029         (xdr_domainname): Use XDRMAXNAME.
50030         (xdr_mapname): Likewise.
50031         (xdr_peername): Likewise.
50032         (xdr_keydat): Use XDRMAXRECORD.
50033         (xdr_valdat): Likewise.
50034
50035 2013-05-30  Jeff Law  <law@redhat.com>
50036
50037         [BZ #14256]
50038         * manual/errno.texi (ESTALE): Update to account for more than
50039         just NFS file systems.
50040         * sysdeps/gnu/errlist.c: Regenerated.
50041
50042 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
50043
50044         [BZ #15465]
50045         * elf/Makefile (tests): Add tst-null-argv.
50046         (modules-names):  Add tst-null-argv-lib.
50047         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
50048         (tst-null-argv-ENV): Set environment for tst-null-argv.
50049         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
50050         (RTLD_PROGNAME): New macro.
50051         * elf/tst-null-argv.c: New test case.
50052         * elf/tst-null-argv-lib.c: Library for test case.
50053         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
50054         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
50055         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
50056         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
50057         * elf/dl-init.c (call_init): Likewise.
50058         (_dl_init): Likewise.
50059         * elf/dl-load.c (print_search_path): Likewise.
50060         (_dl_map_object): Likewise.
50061         * elf/dl-lookup.c (do_lookup_x): Likewise.
50062         (add_dependency): Likewise.
50063         (_dl_lookup_symbol_x): Likewise.
50064         (_dl_debug_bindings): Likewise.
50065         * elf/dl-open.c (_dl_show_scope): Likewise.
50066         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
50067         * elf/dl-version.c (match_symbol): Likewise.
50068         (_dl_check_map_versions): Likewise.
50069         * elf/rtld.c (dl_main): Likewise.
50070         (print_unresolved): Use RTLD_PROGNAME.
50071         (print_missing_version): Likewise.
50072         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
50073         (elf_machine_rela): Likewise.
50074         * sysdeps/powerpc/powerpc32/dl-machine.c
50075         (__process_machine_rela): Likewise.
50076         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
50077         Likewise.
50078         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
50079         Likewise.
50080         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
50081         Likewise.
50082         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
50083         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
50084         Likewise.
50085         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
50086         Likewise.
50087         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
50088
50089 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
50090
50091         * po/be.po: Add descriptive title.
50092         * po/zh_CN.po: Likewise.
50093         * po/header.pot: Likewise.
50094
50095 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
50096
50097         * locale/programs/locarchive.c (create_archive): Inlucde fname in
50098         error message.
50099         (enlarge_archive): Likewise.
50100
50101 2013-05-28  Ben North  <ben@redfrontdoor.org>
50102
50103         * manual/arith.texi (frexp): It is the magnitude of the return
50104         value which lies in [0.5, 1), not the return value itself.
50105
50106 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50107
50108         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50109
50110 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
50111
50112         * stdio-common/bug26.c (main): Correct fscanf template.
50113
50114         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
50115         declare _dl_skip_args.
50116
50117         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
50118         Don't declare.
50119
50120         * manual/platform.texi: Add missing @end deftypefun.
50121
50122 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
50123
50124         [BZ #15529]
50125         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
50126         bit of mantissa of 2^16382.
50127         * math/libm-test.inc (hypot_test_data): Add more tests.
50128
50129         * math/libm-test.inc: Add drem and pow10 to list of tested
50130         functions.
50131         (pow10_test): New function.
50132         (drem_test): Likewise.
50133         (drem_test_tonearest): Likewise.
50134         (drem_test_towardzero): Likewise.
50135         (drem_test_downward): Likewise.
50136         (drem_test_upward): Likewise.
50137         (main): Call the new functions.
50138
50139         * math/libm-test.inc (finite_test_data): Remove.
50140         (finite_test): Run tests from isfinite_test_data.
50141         (gamma_test_data): Remove.
50142         (gamma_test): Run tests from lgamma_test_data.
50143         * sysdeps/i386/fpu/libm-test-ulps: Update.
50144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50145
50146 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50147
50148         * manual/platform.texi: Add PowerPC PPR function set documentation.
50149         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
50150         implementation.
50151
50152 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
50153
50154         * math/libm-test.inc (MAX_EXP): Define.
50155         (ULPDIFF): Define.
50156         (ulp): New function.
50157         (check_float_internal): Use ULPDIFF.
50158         (cpow_test): Disable failing test.
50159         (check_ulp): Test ulp() implemetnation.
50160         (main): Call check_ulp before starting tests.
50161
50162 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
50163
50164         * math/gen-libm-test.pl (generate_testfile): Do not handle
50165         START_DATA and END_DATA.
50166         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
50167         END_DATA.
50168         (acos_tonearest_test_data): Likewise.
50169         (acos_towardzero_test_data): Likewise.
50170         (acos_downward_test_data): Likewise.
50171         (acos_upward_test_data): Likewise.
50172         (acosh_test_data): Likewise.
50173         (asin_test_data): Likewise.
50174         (asin_tonearest_test_data): Likewise.
50175         (asin_towardzero_test_data): Likewise.
50176         (asin_downward_test_data): Likewise.
50177         (asin_upward_test_data): Likewise.
50178         (asinh_test_data): Likewise.
50179         (atan_test_data): Likewise.
50180         (atanh_test_data): Likewise.
50181         (atan2_test_data): Likewise.
50182         (cabs_test_data): Likewise.
50183         (cacos_test_data): Likewise.
50184         (cacosh_test_data): Likewise.
50185         (carg_test_data): Likewise.
50186         (casin_test_data): Likewise.
50187         (casinh_test_data): Likewise.
50188         (catan_test_data): Likewise.
50189         (catanh_test_data): Likewise.
50190         (cbrt_test_data): Likewise.
50191         (ccos_test_data): Likewise.
50192         (ccosh_test_data): Likewise.
50193         (ceil_test_data): Likewise.
50194         (cexp_test_data): Likewise.
50195         (cimag_test_data): Likewise.
50196         (clog_test_data): Likewise.
50197         (clog10_test_data): Likewise.
50198         (conj_test_data): Likewise.
50199         (copysign_test_data): Likewise.
50200         (cos_test_data): Likewise.
50201         (cos_tonearest_test_data): Likewise.
50202         (cos_towardzero_test_data): Likewise.
50203         (cos_downward_test_data): Likewise.
50204         (cos_upward_test_data): Likewise.
50205         (cosh_test_data): Likewise.
50206         (cosh_tonearest_test_data): Likewise.
50207         (cosh_towardzero_test_data): Likewise.
50208         (cosh_downward_test_data): Likewise.
50209         (cosh_upward_test_data): Likewise.
50210         (cpow_test_data): Likewise.
50211         (cproj_test_data): Likewise.
50212         (creal_test_data): Likewise.
50213         (csin_test_data): Likewise.
50214         (csinh_test_data): Likewise.
50215         (csqrt_test_data): Likewise.
50216         (ctan_test_data): Likewise.
50217         (ctan_tonearest_test_data): Likewise.
50218         (ctan_towardzero_test_data): Likewise.
50219         (ctan_downward_test_data): Likewise.
50220         (ctan_upward_test_data): Likewise.
50221         (ctanh_test_data): Likewise.
50222         (ctanh_tonearest_test_data): Likewise.
50223         (ctanh_towardzero_test_data): Likewise.
50224         (ctanh_downward_test_data): Likewise.
50225         (ctanh_upward_test_data): Likewise.
50226         (erf_test_data): Likewise.
50227         (erfc_test_data): Likewise.
50228         (exp_test_data): Likewise.
50229         (exp_tonearest_test_data): Likewise.
50230         (exp_towardzero_test_data): Likewise.
50231         (exp_downward_test_data): Likewise.
50232         (exp_upward_test_data): Likewise.
50233         (exp10_test_data): Likewise.
50234         (exp2_test_data): Likewise.
50235         (expm1_test_data): Likewise.
50236         (fabs_test_data): Likewise.
50237         (fdim_test_data): Likewise.
50238         (finite_test_data): Likewise.
50239         (floor_test_data): Likewise.
50240         (fma_test_data): Likewise.
50241         (fma_towardzero_test_data): Likewise.
50242         (fma_downward_test_data): Likewise.
50243         (fma_upward_test_data): Likewise.
50244         (fmax_test_data): Likewise.
50245         (fmin_test_data): Likewise.
50246         (fmod_test_data): Likewise.
50247         (fpclassify_test_data): Likewise.
50248         (frexp_test_data): Likewise.
50249         (gamma_test_data): Likewise.
50250         (hypot_test_data): Likewise.
50251         (ilogb_test_data): Likewise.
50252         (isfinite_test_data): Likewise.
50253         (isgreater_test_data): Likewise.
50254         (isgreaterequal_test_data): Likewise.
50255         (isinf_test_data): Likewise.
50256         (isless_test_data): Likewise.
50257         (islessequal_test_data): Likewise.
50258         (islessgreater_test_data): Likewise.
50259         (isnan_test_data): Likewise.
50260         (isnormal_test_data): Likewise.
50261         (issignaling_test_data): Likewise.
50262         (isunordered_test_data): Likewise.
50263         (j0_test_data): Likewise.
50264         (j1_test_data): Likewise.
50265         (jn_test_data): Likewise.
50266         (ldexp_test_data): Likewise.
50267         (lgamma_test_data): Likewise.
50268         (lrint_test_data): Likewise.
50269         (lrint_tonearest_test_data): Likewise.
50270         (lrint_towardzero_test_data): Likewise.
50271         (lrint_downward_test_data): Likewise.
50272         (lrint_upward_test_data): Likewise.
50273         (llrint_test_data): Likewise.
50274         (llrint_tonearest_test_data): Likewise.
50275         (llrint_towardzero_test_data): Likewise.
50276         (llrint_downward_test_data): Likewise.
50277         (llrint_upward_test_data): Likewise.
50278         (log_test_data): Likewise.
50279         (log10_test_data): Likewise.
50280         (log1p_test_data): Likewise.
50281         (log2_test_data): Likewise.
50282         (logb_test_data): Likewise.
50283         (logb_downward_test_data): Likewise.
50284         (lround_test_data): Likewise.
50285         (llround_test_data): Likewise.
50286         (modf_test_data): Likewise.
50287         (nearbyint_test_data): Likewise.
50288         (nextafter_test_data): Likewise.
50289         (nexttoward_test_data): Likewise.
50290         (pow_test_data): Likewise.
50291         (pow_tonearest_test_data): Likewise.
50292         (pow_towardzero_test_data): Likewise.
50293         (pow_downward_test_data): Likewise.
50294         (pow_upward_test_data): Likewise.
50295         (remainder_test_data): Likewise.
50296         (remainder_tonearest_test_data): Likewise.
50297         (remainder_towardzero_test_data): Likewise.
50298         (remainder_downward_test_data): Likewise.
50299         (remainder_upward_test_data): Likewise.
50300         (remquo_test_data): Likewise.
50301         (rint_test_data): Likewise.
50302         (rint_tonearest_test_data): Likewise.
50303         (rint_towardzero_test_data): Likewise.
50304         (rint_downward_test_data): Likewise.
50305         (rint_upward_test_data): Likewise.
50306         (round_test_data): Likewise.
50307         (scalb_test_data): Likewise.
50308         (scalbn_test_data): Likewise.
50309         (scalbln_test_data): Likewise.
50310         (signbit_test_data): Likewise.
50311         (sin_test_data): Likewise.
50312         (sin_tonearest_test_data): Likewise.
50313         (sin_towardzero_test_data): Likewise.
50314         (sin_downward_test_data): Likewise.
50315         (sin_upward_test_data): Likewise.
50316         (sincos_test_data): Likewise.
50317         (sinh_test_data): Likewise.
50318         (sinh_tonearest_test_data): Likewise.
50319         (sinh_towardzero_test_data): Likewise.
50320         (sinh_downward_test_data): Likewise.
50321         (sinh_upward_test_data): Likewise.
50322         (sqrt_test_data): Likewise.
50323         (tan_test_data): Likewise.
50324         (tan_tonearest_test_data): Likewise.
50325         (tan_towardzero_test_data): Likewise.
50326         (tan_downward_test_data): Likewise.
50327         (tan_upward_test_data): Likewise.
50328         (tanh_test_data): Likewise.
50329         (tgamma_test_data): Likewise.
50330         (trunc_test_data): Likewise.
50331         (y0_test_data): Likewise.
50332         (y1_test_data): Likewise.
50333         (yn_test_data): Likewise.
50334         (significand_test_data): Likewise.
50335
50336         * math/gen-libm-test.pl (@functions): Remove variable.
50337         (generate_testfile): Don't handle START and END lines.
50338         * math/libm-test.inc (START): New macro.
50339         (END): Likewise.
50340         (END_COMPLEX): Likewise.
50341         (acos_test): Use END macro without arguments.
50342         (acos_test_tonearest): Likewise.
50343         (acos_test_towardzero): Likewise.
50344         (acos_test_downward): Likewise.
50345         (acos_test_upward): Likewise.
50346         (acosh_test): Likewise.
50347         (asin_test): Likewise.
50348         (asin_test_tonearest): Likewise.
50349         (asin_test_towardzero): Likewise.
50350         (asin_test_downward): Likewise.
50351         (asin_test_upward): Likewise.
50352         (asinh_test): Likewise.
50353         (atan_test): Likewise.
50354         (atanh_test): Likewise.
50355         (atan2_test): Likewise.
50356         (cabs_test): Likewise.
50357         (cacos_test): Use END_COMPLEX macro without arguments.
50358         (cacosh_test): Likewise.
50359         (carg_test): Use END macro without arguments.
50360         (casin_test): Use END_COMPLEX macro without arguments.
50361         (casinh_test): Likewise.
50362         (catan_test): Likewise.
50363         (catanh_test): Likewise.
50364         (cbrt_test): Use END macro without arguments.
50365         (ccos_test): Use END_COMPLEX macro without arguments.
50366         (ccosh_test): Likewise.
50367         (ceil_test): Use END macro without arguments.
50368         (cexp_test): Use END_COMPLEX macro without arguments.
50369         (cimag_test): Use END macro without arguments.
50370         (clog_test): Use END_COMPLEX macro without arguments.
50371         (clog10_test): Likewise.
50372         (conj_test): Likewise.
50373         (copysign_test): Use END macro without arguments.
50374         (cos_test): Likewise.
50375         (cos_test_tonearest): Likewise.
50376         (cos_test_towardzero): Likewise.
50377         (cos_test_downward): Likewise.
50378         (cos_test_upward): Likewise.
50379         (cosh_test): Likewise.
50380         (cosh_test_tonearest): Likewise.
50381         (cosh_test_towardzero): Likewise.
50382         (cosh_test_downward): Likewise.
50383         (cosh_test_upward): Likewise.
50384         (cpow_test): Use END_COMPLEX macro without arguments.
50385         (cproj_test): Likewise.
50386         (creal_test): Use END macro without arguments.
50387         (csin_test): Use END_COMPLEX macro without arguments.
50388         (csinh_test): Likewise.
50389         (csqrt_test): Likewise.
50390         (ctan_test): Likewise.
50391         (ctan_test_tonearest): Likewise.
50392         (ctan_test_towardzero): Likewise.
50393         (ctan_test_downward): Likewise.
50394         (ctan_test_upward): Likewise.
50395         (ctanh_test): Likewise.
50396         (ctanh_test_tonearest): Likewise.
50397         (ctanh_test_towardzero): Likewise.
50398         (ctanh_test_downward): Likewise.
50399         (ctanh_test_upward): Likewise.
50400         (erf_test): Use END macro without arguments.
50401         (erfc_test): Likewise.
50402         (exp_test): Likewise.
50403         (exp_test_tonearest): Likewise.
50404         (exp_test_towardzero): Likewise.
50405         (exp_test_downward): Likewise.
50406         (exp_test_upward): Likewise.
50407         (exp10_test): Likewise.
50408         (exp2_test): Likewise.
50409         (expm1_test): Likewise.
50410         (fabs_test): Likewise.
50411         (fdim_test): Likewise.
50412         (finite_test): Likewise.
50413         (floor_test): Likewise.
50414         (fma_test): Likewise.
50415         (fma_test_towardzero): Likewise.
50416         (fma_test_downward): Likewise.
50417         (fma_test_upward): Likewise.
50418         (fmax_test): Likewise.
50419         (fmin_test): Likewise.
50420         (fmod_test): Likewise.
50421         (fpclassify_test): Likewise.
50422         (frexp_test): Likewise.
50423         (gamma_test): Likewise.
50424         (hypot_test): Likewise.
50425         (ilogb_test): Likewise.
50426         (isfinite_test): Likewise.
50427         (isgreater_test): Likewise.
50428         (isgreaterequal_test): Likewise.
50429         (isinf_test): Likewise.
50430         (isless_test): Likewise.
50431         (islessequal_test): Likewise.
50432         (islessgreater_test): Likewise.
50433         (isnan_test): Likewise.
50434         (isnormal_test): Likewise.
50435         (issignaling_test): Likewise.
50436         (isunordered_test): Likewise.
50437         (j0_test): Likewise.
50438         (j1_test): Likewise.
50439         (jn_test): Likewise.
50440         (ldexp_test): Likewise.
50441         (lgamma_test): Likewise.
50442         (lrint_test): Likewise.
50443         (lrint_test_tonearest): Likewise.
50444         (lrint_test_towardzero): Likewise.
50445         (lrint_test_downward): Likewise.
50446         (lrint_test_upward): Likewise.
50447         (llrint_test): Likewise.
50448         (llrint_test_tonearest): Likewise.
50449         (llrint_test_towardzero): Likewise.
50450         (llrint_test_downward): Likewise.
50451         (llrint_test_upward): Likewise.
50452         (log_test): Likewise.
50453         (log10_test): Likewise.
50454         (log1p_test): Likewise.
50455         (log2_test): Likewise.
50456         (logb_test): Likewise.
50457         (logb_test_downward): Likewise.
50458         (lround_test): Likewise.
50459         (llround_test): Likewise.
50460         (modf_test): Likewise.
50461         (nearbyint_test): Likewise.
50462         (nextafter_test): Likewise.
50463         (nexttoward_test): Likewise.
50464         (pow_test): Likewise.
50465         (pow_test_tonearest): Likewise.
50466         (pow_test_towardzero): Likewise.
50467         (pow_test_downward): Likewise.
50468         (pow_test_upward): Likewise.
50469         (remainder_test): Likewise.
50470         (remainder_test_tonearest): Likewise.
50471         (remainder_test_towardzero): Likewise.
50472         (remainder_test_downward): Likewise.
50473         (remainder_test_upward): Likewise.
50474         (remquo_test): Likewise.
50475         (rint_test): Likewise.
50476         (rint_test_tonearest): Likewise.
50477         (rint_test_towardzero): Likewise.
50478         (rint_test_downward): Likewise.
50479         (rint_test_upward): Likewise.
50480         (round_test): Likewise.
50481         (scalb_test): Likewise.
50482         (scalbn_test): Likewise.
50483         (scalbln_test): Likewise.
50484         (signbit_test): Likewise.
50485         (sin_test): Likewise.
50486         (sin_test_tonearest): Likewise.
50487         (sin_test_towardzero): Likewise.
50488         (sin_test_downward): Likewise.
50489         (sin_test_upward): Likewise.
50490         (sincos_test): Likewise.
50491         (sinh_test): Likewise.
50492         (sinh_test_tonearest): Likewise.
50493         (sinh_test_towardzero): Likewise.
50494         (sinh_test_downward): Likewise.
50495         (sinh_test_upward): Likewise.
50496         (sqrt_test): Likewise.
50497         (tan_test): Likewise.
50498         (tan_test_tonearest): Likewise.
50499         (tan_test_towardzero): Likewise.
50500         (tan_test_downward): Likewise.
50501         (tan_test_upward): Likewise.
50502         (tanh_test): Likewise.
50503         (tgamma_test): Likewise.
50504         (trunc_test): Likewise.
50505         (y0_test): Likewise.
50506         (y1_test): Likewise.
50507         (yn_test): Likewise.
50508         (significand_test): Likewise.
50509
50510 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
50511
50512         [BZ #15381]
50513         * libio/genops.c (_IO_no_init): Initialize wide struct info.
50514
50515 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
50516
50517         [BZ #14894]
50518         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
50519         __ppc_mdoio and __ppc_mdoom.
50520         * manual/platform.texi: Document new functions __ppc_yield,
50521         __ppc_mdoio and __ppc_mdoom.
50522
50523 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
50524
50525         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
50526         (main): Mention "tls" pseudo-hwcap is legacy.
50527         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
50528
50529 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
50530
50531         * math/gen-libm-test.pl (parse_args): Output only string of
50532         arguments as text for test name, not full call or descriptions of
50533         tests for extra outputs.
50534         (generate_testfile): Do not pass function name to parse_args.
50535         Generate this_func variable from START.
50536         * math/libm-test.inc (struct test_f_f_data): Rename test_name
50537         field to arg_str.
50538         (struct test_ff_f_data): Likewise.
50539         (test_ff_f_data_nexttoward): Likewise.
50540         (struct test_fi_f_data): Likewise.
50541         (struct test_fl_f_data): Likewise.
50542         (struct test_if_f_data): Likewise.
50543         (struct test_fff_f_data): Likewise.
50544         (struct test_c_f_data): Likewise.
50545         (struct test_f_f1_data): Likewise.  Remove field extra_name.
50546         (struct test_fF_f1_data): Likewise.
50547         (struct test_ffI_f1_data): Likewise.
50548         (struct test_c_c_data): Rename test_name field to arg_str.
50549         (struct test_cc_c_data): Likewise.
50550         (struct test_f_i_data): Likewise.
50551         (struct test_ff_i_data): Likewise.
50552         (struct test_f_l_data): Likewise.
50553         (struct test_f_L_data): Likewise.
50554         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
50555         and extra2_name.
50556         (COMMON_TEST_SETUP): New macro.
50557         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
50558         (COMMON_TEST_CLEANUP): Likewise.
50559         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
50560         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
50561         macros.
50562         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
50563         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
50564         macros.
50565         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
50566         (RUN_TEST_fff_f): Take argument string.  Call new setup and
50567         cleanup macros.
50568         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
50569         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
50570         macros.
50571         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
50572         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
50573         macros.
50574         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
50575         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
50576         cleanup macros.
50577         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
50578         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
50579         cleanup macros.
50580         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
50581         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
50582         cleanup macros.
50583         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
50584         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
50585         macros.
50586         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
50587         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
50588         macros.
50589         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
50590         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
50591         macros.
50592         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
50593         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
50594         cleanup macros.
50595         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
50596         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
50597         cleanup macros.
50598         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
50599         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
50600         macros.
50601         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
50602         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
50603         cleanup macros.
50604         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
50605         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
50606         macros.
50607         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
50608         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
50609         macros.
50610         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
50611         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
50612         cleanup macros.
50613         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
50614
50615 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
50616
50617         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
50618         to _sifields.sigfault.
50619         (si_addr_lsb): Define new macro.
50620         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
50621         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
50622         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
50623
50624 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
50625
50626         [BZ #15441]
50627         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
50628         returns -1.
50629         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
50630         null return -1.
50631         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
50632         loading the domain.
50633
50634 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
50635
50636         * math/gen-libm-test.pl (parse_args): Do not include expected
50637         result in test name.
50638         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
50639         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50640         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50641         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
50642         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50644
50645 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
50646
50647         * benchtests/Makefile: Sort function entries.
50648
50649         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
50650         tanh, asinh, acosh, atanh.
50651         * benchtests/acos-inputs: New file.
50652         * benchtests/acosh-inputs: New file.
50653         * benchtests/asin-inputs: New file.
50654         * benchtests/asinh-inputs: New file.
50655         * benchtests/atanh-inputs: New file.
50656         * benchtests/cosh-inputs: New file.
50657         * benchtests/log-inputs: New file.
50658         * benchtests/sinh-inputs: New file.
50659         * benchtests/tanh-inputs: New file.
50660
50661 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
50662
50663         [BZ #15339]
50664         * posix/tst-getaddrinfo4.c: New test.
50665         * posix/Makefile (tests): Add it.
50666
50667 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50668
50669         [BZ #15339]
50670         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
50671         when no services were used.
50672         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
50673         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
50674
50675 2013-05-21  Andreas Schwab  <schwab@suse.de>
50676
50677         [BZ #15014]
50678         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
50679         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
50680         successful.
50681         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
50682         redundant variable declarations and reallocation of buffer when
50683         parsing as IPv6 address.  Always set NSS status when called from
50684         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
50685         buffer too small.  Correct computation of needed size.
50686         * nss/Makefile (tests): Add test-digits-dots.
50687         * nss/test-digits-dots.c: New test.
50688
50689 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50690
50691         * benchtests/Makefile: Remove instructions for adding
50692         benchmark tests.
50693         * benchtests/README: New file to explain how to execute and
50694         enhance the benchmark tests.
50695
50696 2013-05-21  Andreas Schwab  <schwab@suse.de>
50697
50698         [BZ #15493]
50699         * setjmp/Makefile (tests): Add tst-sigsetjmp.
50700         * setjmp/tst-sigsetjmp.c: New test.
50701
50702 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
50703
50704         * sysdeps/x86_64/memset.S (memset): New implementation.
50705         (__bzero): Likewise.
50706         (__memset_tail): New function.
50707
50708 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
50709
50710         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
50711         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
50712         __memcpy_sse2_unaligned ifunc selection.
50713         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50714         Add memcpy-sse2-unaligned.S.
50715         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50716         Add: __memcpy_sse2_unaligned.
50717
50718 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
50719
50720         [BZ #15490]
50721         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
50722         math_force_eval before restoring floating-point envrionment.
50723         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
50724         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
50725         Likewise.
50726         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
50727         <math_private.h>.
50728         (__nearbyintl): Use math_force_eval before restoring
50729         floating-point environment.
50730         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
50731
50732         * math/gen-libm-test.pl (special_functions): Remove.
50733         (parse_args): Don't handle TEST_extra.  Handle functions with no
50734         return value.
50735         * math/libm-test.inc (struct test_sincos_data): Replace with
50736         struct test_fFF_11_data.
50737         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
50738         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
50739         (sincos_test_data): Change element type to struct
50740         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
50741         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
50742         RUN_TEST_LOOP_sincos.
50743         * math/README.libm-test: Don't mention special handling of
50744         individual functions.
50745         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
50746         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50747         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50748         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
50749         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50751
50752         * math/gen-libm-test.pl (get_variable): Remove function.
50753         (parse_args): Don't show pointer parameters to call in test
50754         names.  Use "extra output N" in test names for extra outputs
50755         rather than naming variables.
50756
50757 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
50758
50759         [BZ #15488]
50760         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
50761         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
50762         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
50763         double tests.
50764         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
50765         disable.
50766         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
50767         check_long_double.
50768
50769         * math/gen-libm-test.pl (@tests): Remove variable.
50770         ($count): Likewise.
50771         (new_test): Remove function.
50772         (show_exceptions): New function.
50773         (special_functions): Use show_exceptions instead of new_test.
50774         (parse_args): Likewise.
50775         (generate_testfile): Pass only function name in generated call to
50776         print_max_error or print_complex_max_error.
50777         (get_ulps): Do not handle complex tests specially.
50778         (output_test): Rename to ...
50779         (get_all_ulps_for_test): ... this.  Return a string rather than
50780         printing to a file.  Require ulps to be present.
50781         (output_ulps): Generate arrays rather than #defines.
50782         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
50783         (struct ulp_data): New type.
50784         (BUILD_COMPLEX_ULP): Remove macro.
50785         (compare_ulp_data): New function.
50786         (find_ulps): Likewise.
50787         (find_test_ulps): Likewise.
50788         (find_function_ulps): Likewise.
50789         (find_complex_function_ulps): Likewise.
50790         (print_max_error): Determine allowed ulps using
50791         find_function_ulps.
50792         (print_complex_max_error): Determine allowed ulps using
50793         find_complex_function_ulps.
50794         (check_float_internal): Determine max ulps using find_test_ulps.
50795         (check_float): Do not take max_ulp parameter.  Update call to
50796         check_float_internal.
50797         (check_complex): Likewise.
50798         (check_int): Do not take max_ulp parameter.
50799         (check_long): Likewise.
50800         (check_bool): Likewise.
50801         (check_longlong): Likewise.
50802         (struct test_f_f_data): Remove max_ulp field.
50803         (struct test_ff_f_data): Likewise.
50804         (struct test_ff_f_data_nexttoward): Likewise.
50805         (struct test_fi_f_data): Likewise.
50806         (struct test_fl_f_data): Likewise.
50807         (struct test_if_f_data): Likewise.
50808         (struct test_fff_f_data): Likewise.
50809         (struct test_c_f_data): Likewise.
50810         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
50811         (struct test_fF_f1_data): Likewise.
50812         (struct test_ffI_f1_data): Likewise.
50813         (struct test_c_c_data): Remove max_ulp field.
50814         (struct test_cc_c_data): Likewise.
50815         (struct test_f_i_data): Likewise.
50816         (struct test_ff_i_data): Likewise.
50817         (struct test_f_l_data): Likewise.
50818         (struct test_f_L_data): Likewise.
50819         (struct test_sincos_data): Likewise.
50820         (RUN_TEST_f_f): Do not handle ulps.
50821         (RUN_TEST_LOOP_f_f): Likewise.
50822         (RUN_TEST_2_f): Likewise.
50823         (RUN_TEST_LOOP_2_f): Likewise.
50824         (RUN_TEST_fff_f): Likewise.
50825         (RUN_TEST_LOOP_fff_f): Likewise.
50826         (RUN_TEST_c_f): Likewise.
50827         (RUN_TEST_LOOP_c_f): Likewise.
50828         (RUN_TEST_f_f1): Likewise.
50829         (RUN_TEST_LOOP_f_f1): Likewise.
50830         (RUN_TEST_fF_f1): Likewise.
50831         (RUN_TEST_LOOP_fF_f1): Likewise.
50832         (RUN_TEST_fI_f1): Likewise.
50833         (RUN_TEST_LOOP_fI_f1): Likewise.
50834         (RUN_TEST_ffI_f1): Likewise.
50835         (RUN_TEST_LOOP_ffI_f1): Likewise.
50836         (RUN_TEST_c_c): Likewise.
50837         (RUN_TEST_LOOP_c_c): Likewise.
50838         (RUN_TEST_cc_c): Likewise.
50839         (RUN_TEST_LOOP_cc_c): Likewise.
50840         (RUN_TEST_f_i): Likewise.
50841         (RUN_TEST_LOOP_f_i): Likewise.
50842         (RUN_TEST_f_i_tg): Likewise.
50843         (RUN_TEST_LOOP_f_i_tg): Likewise.
50844         (RUN_TEST_ff_i_tg): Likewise.
50845         (RUN_TEST_LOOP_ff_i_tg): Likewise.
50846         (RUN_TEST_f_b): Likewise.
50847         (RUN_TEST_LOOP_f_b): Likewise.
50848         (RUN_TEST_f_b_tg): Likewise.
50849         (RUN_TEST_LOOP_f_b_tg): Likewise.
50850         (RUN_TEST_f_l): Likewise.
50851         (RUN_TEST_LOOP_f_l): Likewise.
50852         (RUN_TEST_f_L): Likewise.
50853         (RUN_TEST_LOOP_f_L): Likewise.
50854         (RUN_TEST_sincos): Likewise.
50855         (RUN_TEST_LOOP_sincos): Likewise.
50856
50857 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
50858
50859         [BZ #15480]
50860         [BZ #15485]
50861         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
50862         main case of finite arguments, set rounding mode to FE_TONEAREST
50863         and discard exceptions.
50864         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
50865         exceptions.
50866         (remainder_tonearest_test_data): New variable.
50867         (remainder_test_tonearest): New function.
50868         (remainder_towardzero_test_data): New variable.
50869         (remainder_test_towardzero): New function.
50870         (remainder_downward_test_data): New variable.
50871         (remainder_test_downward): New function.
50872         (remainder_upward_test_data): New variable.
50873         (remainder_test_upward): New function.
50874         (main): Call the new test functions.
50875
50876         * math/libm-test.inc (struct test_f_f1_data): Remove field
50877         extra_init.
50878         (struct test_fF_f1_data): Likewise.
50879         (struct test_ffI_f1_data): Likewise.
50880         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
50881         based on value of EXTRA_EXPECTED.
50882         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
50883         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
50884         EXTRA_VAR based on value of EXTRA_EXPECTED.
50885         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
50886         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
50887         EXTRA_VAR based on value of EXTRA_EXPECTED.
50888         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
50889         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
50890         EXTRA_VAR based on value of EXTRA_EXPECTED.
50891         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
50892         * math/gen-libm-test.pl (parse_args): Don't output initializers
50893         for extra output values.
50894
50895         * math/libm-test.inc (check_int): Expect result to be exactly
50896         equal to expected value and do not handle ulps.
50897         (check_long): Likewise.
50898         (check_longlong): Likewise.
50899
50900         * math/libm-test.inc (ceil_test_data): Test for "inexact"
50901         exceptions.
50902         (cimag_test_data): Likewise.
50903         (conj_test_data): Likewise.
50904         (copysign_test_data): Likewise.
50905         (cproj_test_data): Likewise.
50906         (creal_test_data): Likewise.
50907         (fabs_test_data): Likewise.
50908         (fdim_test_data): Likewise.
50909         (finite_test_data): Likewise.
50910         (floor_test_data): Likewise.
50911         (fmax_test_data): Likewise.
50912         (fmin_test_data): Likewise.
50913         (fmod_test_data): Likewise.
50914         (fpclassify_test_data): Likewise.
50915         (frexp_test_data): Likewise.
50916         (ilogb_test_data): Likewise.
50917         (isfinite_test_data): Likewise.
50918         (isgreater_test_data): Likewise.
50919         (isgreaterequal_test_data): Likewise.
50920         (isinf_test_data): Likewise.
50921         (isless_test_data): Likewise.
50922         (islessequal_test_data): Likewise.
50923         (islessgreater_test_data): Likewise.
50924         (isnan_test_data): Likewise.
50925         (isnormal_test_data): Likewise.
50926         (issignaling_test_data): Likewise.
50927         (isunordered_test_data): Likewise.
50928         (ldexp_test_data): Likewise.
50929         (lrint_test_data): Likewise.
50930         (lrint_test_data) [TEST_FLOAT]: Disable one test.
50931         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
50932         (lrint_tonearest_test_data): Test for "inexact" exceptions.
50933         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
50934         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
50935         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
50936         test input.
50937         (lrint_towardzero_test_data): Test for "inexact" exceptions.
50938         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
50939         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
50940         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
50941         that test input.
50942         (lrint_downward_test_data): Test for "inexact" exceptions.
50943         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
50944         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
50945         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
50946         test input.
50947         (lrint_upward_test_data): Test for "inexact" exceptions.
50948         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
50949         test input.
50950         (llrint_test_data): Test for "inexact" exceptions.
50951         (llrint_test_data) [TEST_FLOAT]: Disable one test.
50952         (llrint_tonearest_test_data): Test for "inexact" exceptions.
50953         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
50954         (llrint_towardzero_test_data): Test for "inexact" exceptions.
50955         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
50956         (llrint_downward_test_data): Test for "inexact" exceptions.
50957         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
50958         (llrint_upward_test_data): Test for "inexact" exceptions.
50959         (logb_test_data): Likewise.
50960         (logb_downward_test_data): Likewise.
50961         (nextafter_test_data): Likewise.
50962         (nexttoward_test_data): Likewise.
50963         (remainder_test_data): Likewise.
50964         (remquo_test_data): Likewise.
50965         (scalbn_test_data): Likewise.
50966         (scalbln_test_data): Likewise.
50967         (signbit_test_data): Likewise.
50968         (sqrt_test_data): Likewise.
50969         (significand_test_data): Likewise.
50970
50971 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
50972
50973         [BZ #15424]
50974         * benchtests/bench-modf.c (struct args): Mark arg0 as
50975         volatile.
50976         * scripts/bench.pl: Mark members of struct args as volatile.
50977
50978 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50979
50980         [BZ # 15497]
50981         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
50982         negative infinity on POWER6 or lower.
50983         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
50984
50985 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
50986
50987         [BZ #15442]
50988         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
50989         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
50990         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
50991         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
50992         (_FP_SETQNAN): New macro.
50993         (_FP_SETQNAN_SEMIRAW): Likewise.
50994         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
50995         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
50996         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
50997         (FP_EXTEND): Use _FP_FRAC_SNANP.
50998         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
50999         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
51000         into account.
51001         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
51002         New macro.
51003         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
51004         Likewise.
51005
51006 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
51007
51008         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
51009         with DIVIDE_BY_ZERO_EXCEPTION.
51010         (gamma_test_data): Likewise.
51011         (lgamma_test_data): Likewise.
51012         (log_test_data): Likewise.
51013         (log10_test_data): Likewise.
51014         (log2_test_data): Likewise.
51015         (tgamma_test_data): Likewise.
51016
51017         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
51018         (acos_test_tonearest): Likewise.
51019         (acos_test_towardzero): Likewise.
51020         (acos_test_downward): Likewise.
51021         (acos_test_upward): Likewise.
51022         (acosh_test): Likewise.
51023         (asin_test): Likewise.
51024         (asin_test_tonearest): Likewise.
51025         (asin_test_towardzero): Likewise.
51026         (asin_test_downward): Likewise.
51027         (asin_test_upward): Likewise.
51028         (asinh_test): Likewise.
51029         (atan_test): Likewise.
51030         (atanh_test): Likewise.
51031         (atan2_test): Likewise.
51032         (cabs_test): Likewise.
51033         (cacos_test): Likewise.
51034         (cacosh_test): Likewise.
51035         (casin_test): Likewise.
51036         (casinh_test): Likewise.
51037         (catan_test): Likewise.
51038         (catanh_test): Likewise.
51039         (cbrt_test): Likewise.
51040         (ccos_test): Likewise.
51041         (ccosh_test): Likewise.
51042         (cexp_test): Likewise.
51043         (clog_test): Likewise.
51044         (clog10_test): Likewise.
51045         (cos_test): Likewise.
51046         (cos_test_tonearest): Likewise.
51047         (cos_test_towardzero): Likewise.
51048         (cos_test_downward): Likewise.
51049         (cos_test_upward): Likewise.
51050         (cosh_test): Likewise.
51051         (cosh_test_tonearest): Likewise.
51052         (cosh_test_towardzero): Likewise.
51053         (cosh_test_downward): Likewise.
51054         (cosh_test_upward): Likewise.
51055         (cpow_test): Likewise.
51056         (csin_test): Likewise.
51057         (csinh_test): Likewise.
51058         (csqrt_test): Likewise.
51059         (ctan_test): Likewise.
51060         (ctan_test_tonearest): Likewise.
51061         (ctan_test_towardzero): Likewise.
51062         (ctan_test_downward): Likewise.
51063         (ctan_test_upward): Likewise.
51064         (ctanh_test): Likewise.
51065         (ctanh_test_tonearest): Likewise.
51066         (ctanh_test_towardzero): Likewise.
51067         (ctanh_test_downward): Likewise.
51068         (ctanh_test_upward): Likewise.
51069         (erf_test): Likewise.
51070         (erfc_test): Likewise.
51071         (exp_test): Likewise.
51072         (exp_test_tonearest): Likewise.
51073         (exp_test_towardzero): Likewise.
51074         (exp_test_downward): Likewise.
51075         (exp_test_upward): Likewise.
51076         (exp10_test): Likewise.
51077         (exp2_test): Likewise.
51078         (expm1_test): Likewise.
51079         (fmod_test): Likewise.
51080         (gamma_test): Likewise.
51081         (hypot_test): Likewise.
51082         (j0_test): Likewise.
51083         (j1_test): Likewise.
51084         (jn_test): Likewise.
51085         (lgamma_test): Likewise.
51086         (log_test): Likewise.
51087         (log10_test): Likewise.
51088         (log1p_test): Likewise.
51089         (log2_test): Likewise.
51090         (logb_test_downward): Likewise.
51091         (pow_test): Likewise.
51092         (pow_test_tonearest): Likewise.
51093         (pow_test_towardzero): Likewise.
51094         (pow_test_downward): Likewise.
51095         (pow_test_upward): Likewise.
51096         (remainder_test): Likewise.
51097         (remquo_test): Likewise.
51098         (sin_test): Likewise.
51099         (sin_test_tonearest): Likewise.
51100         (sin_test_towardzero): Likewise.
51101         (sin_test_downward): Likewise.
51102         (sin_test_upward): Likewise.
51103         (sincos_test): Likewise.
51104         (sinh_test): Likewise.
51105         (sinh_test_tonearest): Likewise.
51106         (sinh_test_towardzero): Likewise.
51107         (sinh_test_downward): Likewise.
51108         (sinh_test_upward): Likewise.
51109         (sqrt_test): Likewise.
51110         (tan_test): Likewise.
51111         (tan_test_tonearest): Likewise.
51112         (tan_test_towardzero): Likewise.
51113         (tan_test_downward): Likewise.
51114         (tan_test_upward): Likewise.
51115         (tanh_test): Likewise.
51116         (tgamma_test): Likewise.
51117         (y0_test): Likewise.
51118         (y1_test): Likewise.
51119         (yn_test): Likewise.
51120
51121         * math/gen-libm-test.pl (adjust_arg): Remove function.
51122         (special_function): Remove argument $in_func.  Only handle
51123         generating output for tables of tests, not inside functions.
51124         (parse_args): Likewise.
51125         (generate_testfile): Remove variable $in_func.  Update call to
51126         parse_args.
51127         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
51128         (MINUS_ZERO_INIT): Rename macro to minus_zero.
51129         (PLUS_INFTY_INIT): Rename macro to plus_infty.
51130         (MINUS_INFTY_INIT): Rename macro to minus_infty.
51131         (QNAN_VALUE_INIT): Rename macro to qnan_value.
51132         (MAX_VALUE_INIT): Rename macro to max_value.
51133         (MIN_VALUE_INIT): Rename macro to min_value.
51134         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
51135         (plus_zero): Remove variable.
51136         (minus_zero): Likewise.
51137         (plus_infty): Likewise.
51138         (minus_infty): Likewise.
51139         (qnan_value): Likewise.
51140         (max_value): Likewise.
51141         (min_value): Likewise.
51142         (min_subnorm_value): Likewise.
51143
51144 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51145
51146         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
51147         uint64_t or uint32_t usage.
51148         * crypt/sha256-block.c: Likewise.
51149         * crypt/sha256-crypt.c: Likewise.
51150         * crypt/sha256.c: Likewise.
51151         * crypt/sha512-block.c: Likewise.
51152         * crypt/sha512-crypt.c: Likewise.
51153         * crypt/sha512.c: Likewise.
51154         * debug/backtrace-tst.c: Likewise.
51155         * debug/pcprofiledump.c: Likewise.
51156         * elf/cache.c: Likewise.
51157         * elf/dl-cache.c: Likewise.
51158         * elf/dl-misc.c: Likewise.
51159         * elf/dl-profile.c: Likewise.
51160         * elf/dl-support.c: Likewise.
51161         * elf/ldconfig.c: Likewise.
51162         * elf/sprof.c: Likewise.
51163         * iconv/dummy-repertoire.c: Likewise.
51164         * iconv/iconv_charmap.c: Likewise.
51165         * iconv/skeleton.c: Likewise.
51166         * iconvdata/8bit-generic.c: Likewise.
51167         * iconvdata/cp737.h: Likewise.
51168         * iconvdata/cp775.h: Likewise.
51169         * iconvdata/ibm1008.h: Likewise.
51170         * iconvdata/ibm1025.h: Likewise.
51171         * iconvdata/ibm1046.h: Likewise.
51172         * iconvdata/ibm1097.h: Likewise.
51173         * iconvdata/ibm1112.h: Likewise.
51174         * iconvdata/ibm1122.h: Likewise.
51175         * iconvdata/ibm1123.h: Likewise.
51176         * iconvdata/ibm1124.h: Likewise.
51177         * iconvdata/ibm1129.h: Likewise.
51178         * iconvdata/ibm1130.h: Likewise.
51179         * iconvdata/ibm1132.h: Likewise.
51180         * iconvdata/ibm1133.h: Likewise.
51181         * iconvdata/ibm1137.h: Likewise.
51182         * iconvdata/ibm1140.h: Likewise.
51183         * iconvdata/ibm1141.h: Likewise.
51184         * iconvdata/ibm1142.h: Likewise.
51185         * iconvdata/ibm1143.h: Likewise.
51186         * iconvdata/ibm1144.h: Likewise.
51187         * iconvdata/ibm1145.h: Likewise.
51188         * iconvdata/ibm1146.h: Likewise.
51189         * iconvdata/ibm1147.h: Likewise.
51190         * iconvdata/ibm1148.h: Likewise.
51191         * iconvdata/ibm1149.h: Likewise.
51192         * iconvdata/ibm1153.h: Likewise.
51193         * iconvdata/ibm1154.h: Likewise.
51194         * iconvdata/ibm1155.h: Likewise.
51195         * iconvdata/ibm1156.h: Likewise.
51196         * iconvdata/ibm1157.h: Likewise.
51197         * iconvdata/ibm1158.h: Likewise.
51198         * iconvdata/ibm1160.h: Likewise.
51199         * iconvdata/ibm1161.h: Likewise.
51200         * iconvdata/ibm1162.h: Likewise.
51201         * iconvdata/ibm1163.h: Likewise.
51202         * iconvdata/ibm1164.h: Likewise.
51203         * iconvdata/ibm1166.h: Likewise.
51204         * iconvdata/ibm1167.h: Likewise.
51205         * iconvdata/ibm12712.h: Likewise.
51206         * iconvdata/ibm1390.h: Likewise.
51207         * iconvdata/ibm1399.h: Likewise.
51208         * iconvdata/ibm16804.h: Likewise.
51209         * iconvdata/ibm4517.h: Likewise.
51210         * iconvdata/ibm4899.h: Likewise.
51211         * iconvdata/ibm4909.h: Likewise.
51212         * iconvdata/ibm4971.h: Likewise.
51213         * iconvdata/ibm5347.h: Likewise.
51214         * iconvdata/ibm803.h: Likewise.
51215         * iconvdata/ibm856.h: Likewise.
51216         * iconvdata/ibm901.h: Likewise.
51217         * iconvdata/ibm902.h: Likewise.
51218         * iconvdata/ibm9030.h: Likewise.
51219         * iconvdata/ibm9066.h: Likewise.
51220         * iconvdata/ibm921.h: Likewise.
51221         * iconvdata/ibm922.h: Likewise.
51222         * iconvdata/ibm9448.h: Likewise.
51223         * iconvdata/isiri-3342.h: Likewise.
51224         * iconvdata/jis0201.h: Likewise.
51225         * include/link.h: Likewise.
51226         * include/netdb.h: Likewise.
51227         * inet/check_native.c: Likewise.
51228         * inet/check_pf.c: Likewise.
51229         * inet/getipv4sourcefilter.c: Likewise.
51230         * inet/getnameinfo.c: Likewise.
51231         * inet/getsourcefilter.c: Likewise.
51232         * inet/htonl.c: Likewise.
51233         * inet/setipv4sourcefilter.c: Likewise.
51234         * inet/setsourcefilter.c: Likewise.
51235         * inet/test-inet6_opt.c: Likewise.
51236         * inet/tst-network.c: Likewise.
51237         * locale/C-collate.c: Likewise.
51238         * locale/C-ctype.c: Likewise.
51239         * locale/C-time.c: Likewise.
51240         * locale/C-translit.h: Likewise.
51241         * locale/loadarchive.c: Likewise.
51242         * locale/programs/3level.h: Likewise.
51243         * locale/programs/charmap.c: Likewise.
51244         * locale/programs/charmap.h: Likewise.
51245         * locale/programs/ld-address.c: Likewise.
51246         * locale/programs/ld-collate.c: Likewise.
51247         * locale/programs/ld-ctype.c: Likewise.
51248         * locale/programs/ld-identification.c: Likewise.
51249         * locale/programs/ld-measurement.c: Likewise.
51250         * locale/programs/ld-messages.c: Likewise.
51251         * locale/programs/ld-monetary.c: Likewise.
51252         * locale/programs/ld-name.c: Likewise.
51253         * locale/programs/ld-numeric.c: Likewise.
51254         * locale/programs/ld-paper.c: Likewise.
51255         * locale/programs/ld-telephone.c: Likewise.
51256         * locale/programs/ld-time.c: Likewise.
51257         * locale/programs/linereader.c: Likewise.
51258         * locale/programs/locale.c: Likewise.
51259         * locale/programs/locarchive.c: Likewise.
51260         * locale/programs/locfile.h: Likewise.
51261         * locale/programs/repertoire.c: Likewise.
51262         * locale/programs/simple-hash.c: Likewise.
51263         * locale/programs/simple-hash.h: Likewise.
51264         * malloc/memusage.c: Likewise.
51265         * malloc/memusagestat.c: Likewise.
51266         * nis/nis_defaults.c: Likewise.
51267         * nis/nis_hash.c: Likewise.
51268         * nis/nis_print.c: Likewise.
51269         * nis/nis_xdr.c: Likewise.
51270         * nscd/connections.c: Likewise.
51271         * nscd/hstcache.c: Likewise.
51272         * nscd/nscd_gethst_r.c: Likewise.
51273         * nscd/nscd_getserv_r.c: Likewise.
51274         * nscd/nscd_helper.c: Likewise.
51275         * nscd/servicescache.c: Likewise.
51276         * nss/makedb.c: Likewise.
51277         * nss/nss_db/db-XXX.c: Likewise.
51278         * nss/nss_db/db-initgroups.c: Likewise.
51279         * nss/nss_db/db-netgrp.c: Likewise.
51280         * nss/nss_files/files-network.c: Likewise.
51281         * nss/nss_files/files-parse.c: Likewise.
51282         * posix/bug-regex5.c: Likewise.
51283         * posix/fnmatch_loop.c: Likewise.
51284         * posix/regcomp.c: Likewise.
51285         * posix/regexec.c: Likewise.
51286         * posix/tst-rfc3484-2.c: Likewise.
51287         * posix/tst-rfc3484-3.c: Likewise.
51288         * posix/tst-rfc3484.c: Likewise.
51289         * resolv/nss_dns/dns-canon.c: Likewise.
51290         * resolv/nss_dns/dns-network.c: Likewise.
51291         * resolv/res_init.c: Likewise.
51292         * resolv/res_mkquery.c: Likewise.
51293         * resolv/tst-aton.c: Likewise.
51294         * stdlib/cxa_atexit.c: Likewise.
51295         * stdlib/cxa_finalize.c: Likewise.
51296         * stdlib/gen-fpioconst.c: Likewise.
51297         * stdlib/strtol_l.c: Likewise.
51298         * string/tst-endian.c: Likewise.
51299         * sunrpc/auth_des.c: Likewise.
51300         * sunrpc/clnt_udp.c: Likewise.
51301         * sunrpc/rtime.c: Likewise.
51302         * sunrpc/svcauth_des.c: Likewise.
51303         * sunrpc/xdr.c: Likewise.
51304         * sunrpc/xdr_intXX_t.c: Likewise.
51305         * sunrpc/xdr_rec.c: Likewise.
51306         * sysdeps/generic/ldconfig.h: Likewise.
51307         * sysdeps/generic/ldsodefs.h: Likewise.
51308         * sysdeps/generic/memusage.h: Likewise.
51309         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
51310         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
51311         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
51312         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
51313         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
51314         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
51315         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
51316         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
51317         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
51318         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
51319         * sysdeps/posix/getaddrinfo.c: Likewise.
51320         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
51321         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
51322         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
51323         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
51324         * sysdeps/powerpc/test-gettimebase.c: Likewise.
51325         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
51326         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
51327         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
51328         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
51329         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
51330         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
51331         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
51332         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
51333         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
51334         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
51335         * sysdeps/x86_64/dl-tls.h: Likewise.
51336         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
51337         * time/alt_digit.c: Likewise.
51338         * time/era.c: Likewise.
51339         * wcsmbs/tst-c16c32-1.c: Likewise.
51340
51341 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
51342
51343         * math/libm-test.inc (struct test_sincos_data): New type.
51344         (RUN_TEST_LOOP_sincos): New macro.
51345         (sincos_test_data): New variable.
51346         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
51347
51348 2013-05-16  Richard Henderson  <rth@redhat.com>
51349
51350         * math/atest-exp2.c (LIMB64): New macro.
51351         (CONSTSZ): New macro.
51352         (mp_exp1, mp_exp_m1, mp_log2): New variables.
51353         (hexdig): Move ...
51354         (print_mpn_fp): ... to function scope.
51355         (read_mpn_hex): Remove.
51356         (get_log2): Remove.
51357         (exp2_mpn): Use mp_log2.
51358         (main): Use mp_exp1.
51359
51360 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
51361
51362         * math/libm-test.inc: Remove comment about not testing "inexact"
51363         exceptions.
51364         (INEXACT_EXCEPTION): New macro.
51365         (NO_INEXACT_EXCEPTION): Likewise.
51366         (INVALID_EXCEPTION_OK): Update value.
51367         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
51368         (OVERFLOW_EXCEPTION_OK): Likewise.
51369         (UNDERFLOW_EXCEPTION_OK): Likewise.
51370         (IGNORE_ZERO_INF_SIGN): Likewise.
51371         (ERRNO_UNCHANGED): Likewise.
51372         (ERRNO_EDOM): Likewise.
51373         (ERRNO_ERANGE): Likewise.
51374         (test_exceptions): Handle testing "inexact" exceptions.
51375         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
51376         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
51377         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
51378         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
51379         INEXACT_EXCEPTION.
51380         (rint_towardzero_test_data): Likewise.
51381         (rint_downward_test_data): Likewise.
51382         (rint_upward_test_data): Likewise.
51383
51384         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
51385         with OVERFLOW_EXCEPTION.
51386         (exp10_test_data): Likewise.
51387         (exp2_test_data): Likewise.
51388         (expm1_test_data): Likewise.
51389         (lgamma_test_data): Likewise.
51390         (pow_test_data): Likewise.
51391         (tgamma_test_data): Likewise.
51392         (yn_test_data): Remove duplicate test of overflow.
51393
51394         * math/libm-test.inc (struct test_cc_c_data): New type.
51395         (RUN_TEST_LOOP_cc_c): New macro.
51396         (cpow_test_data): New variable.
51397         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
51398
51399         * math/libm-test.inc (struct test_f_L_data): New type.
51400         (RUN_TEST_LOOP_f_L): New macro.
51401         (llrint_test_data): New variable.
51402         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
51403         (llrint_tonearest_test_data): New variable.
51404         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
51405         (llrint_towardzero_test_data): New variable.
51406         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
51407         (llrint_downward_test_data): New variable.
51408         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
51409         (llrint_upward_test_data): New variable.
51410         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
51411         (llround_test_data): New variable.
51412         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
51413
51414 2013-05-13  Peter Collingbourne  <pcc@google.com>
51415
51416         * math/atest-exp2.c (get_log2): Remove const attribute.
51417
51418 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
51419
51420         * math/libm-test.inc (struct test_f_l_data): New type.
51421         (RUN_TEST_LOOP_f_l): New macro.
51422         (lrint_test_data): New variable.
51423         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
51424         (lrint_tonearest_test_data): New variable.
51425         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
51426         (lrint_towardzero_test_data): New variable.
51427         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
51428         (lrint_downward_test_data): New variable.
51429         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
51430         (lrint_upward_test_data): New variable.
51431         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
51432         (lround_test_data): New variable.
51433         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
51434
51435 2013-05-15  Peter Collingbourne  <pcc@google.com>
51436
51437         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
51438         (EXTRACT_WORDS64) Use where appropriate.
51439         (INSERT_WORDS64) Likewise.
51440
51441         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
51442         constraints with x constraints.
51443         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
51444
51445         * malloc/obstack.c (_obstack_compat): Add initializer.
51446
51447 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
51448
51449         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
51450         si_trapno and add si_addr_lsb to _sifields.sigfault.
51451         (si_trapno): Remove macro.
51452         (si_addr_lsb): Define new macro.
51453         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
51454
51455 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
51456
51457         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
51458         instead of TEST_f_l.
51459         (llrint_test_tonearest): Likewise.
51460         (llrint_test_towardzero): Likewise.
51461         (llrint_test_downward): Likewise.
51462         (llrint_test_upward): Likewise.
51463         (llround_test): Likewise.
51464
51465         * math/libm-test.inc (struct test_f_i_data): Add comment.
51466         (RUN_TEST_LOOP_f_b): New macro.
51467         (RUN_TEST_LOOP_f_b_tg): Likewise.
51468         (finite_test_data): New variable.
51469         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
51470         (isfinite_test_data): New variable.
51471         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51472         (isinf_test_data): New variable.
51473         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51474         (isnan_test_data): New variable.
51475         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51476         (isnormal_test_data): New variable.
51477         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51478         (issignaling_test_data): New variable.
51479         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51480         (signbit_test_data): New variable.
51481         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51482
51483         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
51484         with INVALID_EXCEPTION.
51485         (acosh_test_data): Likewise.
51486         (asin_test_data): Likewise.
51487         (atanh_test_data): Likewise.
51488         (fmod_test_data): Likewise.
51489         (log_test_data): Likewise.
51490         (log10_test_data): Likewise.
51491         (log2_test_data): Likewise.
51492         (pow_test_data): Likewise.
51493         (sqrt_test_data): Likewise.
51494         (y0_test_data): Likewise.
51495         (y1_test_data): Likewise.
51496         (yn_test_data): Likewise.
51497
51498         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
51499         function contents.
51500
51501         * math/libm-test.inc (struct test_ff_i_data): New type.
51502         (RUN_TEST_LOOP_ff_i_tg): New macro.
51503         (isgreater_test_data): New variable.
51504         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51505         (isgreaterequal_test_data): New variable.
51506         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51507         (isless_test_data): New variable.
51508         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51509         (islessequal_test_data): New variable.
51510         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51511         (islessgreater_test_data): New variable.
51512         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51513         (isunordered_test_data): New variable.
51514         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51515
51516 2013-05-14  David S. Miller  <davem@davemloft.net>
51517
51518         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51519
51520 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
51521
51522         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
51523
51524         * math/libm-test.inc (struct test_fF_f1_data): Change type of
51525         extra_test to int.
51526         (struct test_f_i_data): Change type of max_ulp to int.
51527
51528         * math/libm-test.inc (test_ffI_f1_data): New type.
51529         (RUN_TEST_LOOP_ffI_f1): New macro.
51530         (remquo_test_data): New variable.
51531         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
51532
51533         * setjmp/tst-setjmp-fp.c: New file.
51534         * setjmp/Makefile (tests): Add tst-setjmp-fp.
51535         (link-libm): New variable.
51536         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
51537
51538         * math/libm-test.inc (struct test_f_i_data): New type.
51539         (RUN_TEST_LOOP_f_i): New macro.
51540         (RUN_TEST_LOOP_f_i_tg): Likewise.
51541         (fpclassify_test_data): New variable.
51542         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
51543         (ilogb_test_data): New variable.
51544         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
51545
51546         * math/libm-test.inc (scalbln_test): Correct function name in END
51547         call.
51548
51549         * math/libm-test.inc (struct test_f_f1_data): Add comment.
51550         (RUN_TEST_LOOP_fI_f1): New macro.
51551         (frexp_test_data): New variable.
51552         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
51553
51554         * math/libm-test.inc (struct test_fF_f1_data): New type.
51555         (RUN_TEST_LOOP_fF_f1): New macro.
51556         (modf_test_data): New variable.
51557         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
51558
51559         * math/libm-test.inc (struct test_f_f1_data): New type.
51560         (RUN_TEST_LOOP_f_f1): New macro.
51561         (gamma_test_data): New variable.
51562         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
51563         (lgamma_test_data): New variable.
51564         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
51565
51566 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
51567
51568         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
51569         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
51570         (main): Comment "tls" pseudo-hwcap.
51571
51572 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
51573
51574         * math/libm-test.inc (struct test_fl_f_data): New type.
51575         (RUN_TEST_LOOP_fl_f): New variable.
51576         (scalbln_test_data): New variable.
51577         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
51578
51579         * math/libm-test.inc (struct test_fi_f_data): New type.
51580         (RUN_TEST_LOOP_fi_f): New macro.
51581         (ldexp_test_data): New variable.
51582         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
51583         (scalbn_test_data): New variable.
51584         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
51585
51586         * math/libm-test.inc (struct test_c_f_data): New type.
51587         (RUN_TEST_LOOP_c_f): New macro.
51588         (cabs_test_data): New variable.
51589         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
51590         (carg_test_data): New variable.
51591         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
51592         (cimag_test_data): New variable.
51593         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
51594         (creal_test_data): New variable.
51595         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
51596
51597         * math/libm-test.inc (struct test_if_f_data): New type.
51598         (RUN_TEST_LOOP_if_f): New macro.
51599         (jn_test_data): New variable.
51600         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
51601         (yn_test_data): New variable.
51602         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
51603
51604         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
51605
51606 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51607
51608         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
51609         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
51610
51611 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51612
51613         * benchtests/Makefile (CPPFLAGS-nonlib): Add
51614         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
51615         (bench-deps): Add bench-timing.h.
51616         * benchtests-bench-skeleton.c: Include bench-timing.h.
51617         (main): Use TIMING_* macros instead of clock_gettime.
51618         * benchtests/bench-timing.h: New file.
51619
51620         [BZ #14582]
51621         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
51622         Renamed from _LIB_VERSION.
51623         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
51624
51625 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
51626
51627         * math/libm-test.inc (struct test_fff_f_data): New type.
51628         (RUN_TEST_LOOP_fff_f): New macro.
51629         (fma_test_data): New variable.
51630         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
51631         (fma_towardzero_test_data): New variable.
51632         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
51633         (fma_downward_test_data): New variable.
51634         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
51635         (fma_upward_test_data): New variable.
51636         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
51637
51638         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
51639         (struct test_c_c_data): New type.
51640         (RUN_TEST_LOOP_c_c): New macro.
51641         (cacos_test_data): New variable.
51642         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
51643         (cacosh_test_data): New variable.
51644         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
51645         (casin_test_data): New variable.
51646         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
51647         (casinh_test_data): New variable.
51648         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
51649         (catan_test_data): New variable.
51650         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
51651         (catanh_test_data): New variable.
51652         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
51653         (ccos_test_data): New variable.
51654         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
51655         (ccosh_test_data): New variable.
51656         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
51657         (cexp_test_data): New variable.
51658         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
51659         (clog_test_data): New variable.
51660         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
51661         (clog10_test_data): New variable.
51662         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
51663         (conj_test_data): New variable.
51664         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
51665         (cproj_test_data): New variable.
51666         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
51667         (csin_test_data): New variable.
51668         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
51669         (csinh_test_data): New variable.
51670         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
51671         (csqrt_test_data): New variable.
51672         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
51673         (ctan_test_data): New variable.
51674         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
51675         (ctan_tonearest_test_data): New variable.
51676         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
51677         (ctan_towardzero_test_data): New variable.
51678         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
51679         (ctan_downward_test_data): New variable.
51680         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
51681         (ctan_upward_test_data): New variable.
51682         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
51683         (ctanh_test_data): New variable.
51684         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
51685         (ctanh_tonearest_test_data): New variable.
51686         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
51687         (ctanh_towardzero_test_data): New variable.
51688         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
51689         (ctanh_downward_test_data): New variable.
51690         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
51691         (ctanh_upward_test_data): New variable.
51692         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
51693         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
51694         of BUILD_COMPLEX.
51695
51696         * math/libm-test.inc (struct test_ff_f_data): New type.
51697         (struct test_ff_f_data_nexttoward): Likewise.
51698         (RUN_TEST_LOOP_2_f): New macro.
51699         (RUN_TEST_LOOP_ff_f): Likewise.
51700         (atan2_test_data): New variable.
51701         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
51702         (copysign_test_data): New variable.
51703         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
51704         (fdim_test_data): New variable.
51705         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
51706         (fmax_test_data): New variable.
51707         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
51708         (fmin_test_data): New variable.
51709         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
51710         (fmod_test_data): New variable.
51711         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
51712         (hypot_test_data): New variable.
51713         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
51714         (nextafter_test_data): New variable.
51715         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
51716         (nexttoward_test_data): New variable.
51717         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
51718         (pow_test_data): New variable.
51719         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
51720         (pow_tonearest_test_data): New variable.
51721         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
51722         (pow_towardzero_test_data): New variable.
51723         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
51724         (pow_downward_test_data): New variable.
51725         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
51726         (pow_upward_test_data): New variable.
51727         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
51728         (remainder_test_data): New variable.
51729         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
51730         (scalb_test_data): New variable.
51731         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
51732         * sysdeps/i386/fpu/libm-test-ulps: Update.
51733
51734 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
51735
51736         * math/libm-test.inc (fma_test): Use max_value instead of local
51737         variable fltmax.
51738         (nextafter_test): Likewise.
51739
51740         * math/libm-test.inc (acos_towardzero_test_data): New variable.
51741         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51742         (acos_downward_test_data): New variable.
51743         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51744         (acos_upward_test_data): New variable.
51745         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51746         (acosh_test_data): New variable.
51747         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
51748         (asin_test_data): New variable.
51749         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
51750         (asin_tonearest_test_data): New variable.
51751         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51752         (asin_towardzero_test_data): New variable.
51753         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51754         (asin_downward_test_data): New variable.
51755         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51756         (asin_upward_test_data): New variable.
51757         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51758         (asinh_test_data): New variable.
51759         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
51760         (atan_test_data): New variable.
51761         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
51762         (atanh_test_data): New variable.
51763         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
51764         (cbrt_test_data): New variable.
51765         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
51766         (ceil_test_data): New variable.
51767         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
51768         (cos_test_data): New variable.
51769         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
51770         (cos_tonearest_test_data): New variable.
51771         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51772         (cos_towardzero_test_data): New variable.
51773         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51774         (cos_downward_test_data): New variable.
51775         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51776         (cos_upward_test_data): New variable.
51777         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51778         (cosh_test_data): New variable.
51779         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
51780         (cosh_tonearest_test_data): New variable.
51781         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51782         (cosh_towardzero_test_data): New variable.
51783         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51784         (cosh_downward_test_data): New variable.
51785         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51786         (cosh_upward_test_data): New variable.
51787         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51788         (erf_test_data): New variable.
51789         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
51790         (erfc_test_data): New variable.
51791         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
51792         (exp_test_data): New variable.
51793         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
51794         (exp_tonearest_test_data): New variable.
51795         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51796         (exp_towardzero_test_data): New variable.
51797         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51798         (exp_downward_test_data): New variable.
51799         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51800         (exp_upward_test_data): New variable.
51801         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51802         (exp10_test_data): New variable.
51803         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
51804         (exp2_test_data): New variable.
51805         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
51806         (expm1_test_data): New variable.
51807         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
51808         (fabs_test_data): New variable.
51809         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
51810         (floor_test_data): New variable.
51811         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
51812         (j0_test_data): New variable.
51813         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
51814         (j1_test_data): New variable.
51815         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
51816         (log_test_data): New variable.
51817         (log_test): Run tests with RUN_TEST_LOOP_f_f.
51818         (log10_test_data): New variable.
51819         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
51820         (log1p_test_data): New variable.
51821         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
51822         (log2_test_data): New variable.
51823         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
51824         (logb_test_data): New variable.
51825         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
51826         (logb_downward_test_data): New variable.
51827         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51828         (nearbyint_test_data): New variable.
51829         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
51830         (rint_test_data): New variable.
51831         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
51832         (rint_tonearest_test_data): New variable.
51833         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51834         (rint_towardzero_test_data): New variable.
51835         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51836         (rint_downward_test_data): New variable.
51837         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51838         (rint_upward_test_data): New variable.
51839         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51840         (round_test_data): New variable.
51841         (round_test): Run tests with RUN_TEST_LOOP_f_f.
51842         (sin_test_data): New variable.
51843         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
51844         (sin_tonearest_test_data): New variable.
51845         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51846         (sin_towardzero_test_data): New variable.
51847         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51848         (sin_downward_test_data): New variable.
51849         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51850         (sin_upward_test_data): New variable.
51851         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51852         (sinh_test_data): New variable.
51853         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
51854         (sinh_tonearest_test_data): New variable.
51855         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51856         (sinh_towardzero_test_data): New variable.
51857         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51858         (sinh_downward_test_data): New variable.
51859         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51860         (sinh_upward_test_data): New variable.
51861         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51862         (sqrt_test_data): New variable.
51863         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
51864         (tan_test_data): New variable.
51865         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
51866         (tan_tonearest_test_data): New variable.
51867         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51868         (tan_towardzero_test_data): New variable.
51869         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51870         (tan_downward_test_data): New variable.
51871         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51872         (tan_upward_test_data): New variable.
51873         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51874         (tanh_test_data): New variable.
51875         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
51876         (tgamma_test_data): New variable.
51877         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
51878         (trunc_test_data): New variable.
51879         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
51880         (y0_test_data): New variable.
51881         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
51882         (y1_test_data): New variable.
51883         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
51884         (significand_test_data): New variable.
51885         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
51886
51887 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
51888
51889         [BZ #12387]
51890         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
51891
51892 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
51893
51894         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
51895
51896 2013-05-10  Andreas Jaeger  <aj@suse.de>
51897
51898         [BZ #15448]
51899         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
51900         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
51901
51902 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
51903
51904         * math/gen-libm-test.pl (adjust_arg): New function.
51905         (special_functions): Handle generating output in both functions
51906         and arrays.
51907         (parse_args): Likewise.
51908         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
51909         $in_func argument to parse_args.
51910         * math/libm-test.inc (struct test_f_f_data): New type.
51911         (IF_ROUND_INIT_): New macro.
51912         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
51913         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
51914         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
51915         (IF_ROUND_INIT_FE_UPWARD): Likewise.
51916         (ROUND_RESTORE_): Likewise.
51917         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
51918         (ROUND_RESTORE_FE_TONEAREST): Likewise.
51919         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
51920         (ROUND_RESTORE_FE_UPWARD): Likewise.
51921         (RUN_TEST_LOOP_f_f): New macro.
51922         (acos_test_data): New variable.
51923         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
51924         (acos_tonearest_test_data): New variable.
51925         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51926
51927 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
51928
51929         * benchtests/bench-skeleton.c (startup): Fix coding style.
51930
51931 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
51932
51933         [BZ #6809]
51934         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
51935         negative infinity argument.
51936         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
51937         negative infinity argument.
51938         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
51939         negative infinity argument.
51940         * math/libm-test.inc (tgamma_test): Expect errno to be set for
51941         domain errors.
51942
51943 2013-05-10  Florian Weimer  <fweimer@redhat.com>
51944
51945         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
51946         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
51947         * iconv/iconv_prog.c (main): Likewise.
51948         * locale/programs/charmap-dir.c (charmap_readdir)
51949         (fopen_uncompressed): Likewise.
51950         * locale/programs/locfile.c (siblings_uncached)
51951         (write_locale_data): Use lstat64 instead of lstat.
51952         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
51953         stat.
51954
51955 2013-05-10  Andreas Jaeger  <aj@suse.de>
51956
51957         [BZ #15395]
51958         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
51959         localization.
51960         Include <locale.h>.
51961
51962 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
51963
51964         * elf/dl-close.c (_dl_close_worker): Add comments.
51965
51966 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
51967
51968         [BZ #15359]
51969         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
51970         high part of pi/2.
51971         (__ieee754_rem_pio2l): Update comments.
51972
51973         [BZ #15429]
51974         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
51975         high part of pi/2.
51976         (__ieee754_rem_pio2l): Update comments.
51977
51978         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
51979         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
51980
51981         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
51982         M_PI_4l.
51983
51984         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
51985         (M_PI_34_LOG10El): Likewise.
51986         (M_PI2_LOG10El): Likewise.
51987         (M_PI4_LOG10El): Likewise.
51988         (M_PI_LOG10El): Likewise.
51989
51990 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51991
51992         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51993
51994 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
51995
51996         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
51997         (MINUS_ZERO_INIT): Likewise.
51998         (PLUS_INFTY_INIT): Likewise.
51999         (MINUS_INFTY_INIT): Likewise.
52000         (QNAN_VALUE_INIT): Likewise.
52001         (MAX_VALUE_INIT): Likewise.
52002         (MIN_VALUE_INIT): Likewise.
52003         (MIN_SUBNORM_VALUE_INIT): Likewise.
52004         (plus_zero): Initialize with PLUS_ZERO_INIT.
52005         (minus_zero): Initialize with MINUS_ZERO_INIT.
52006         (plus_infty): Initialize with PLUS_INFTY_INIT.
52007         (minus_infty): Initialize with MINUS_INFTY_INIT.
52008         (qnan_value): Initialize with QNAN_VALUE_INIT.
52009         (max_value): Initialize with MAX_VALUE_INIT.
52010         (min_value): Initialize with MIN_VALUE_INIT.
52011         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
52012
52013         * math/libm-test.inc (RUN_TEST_if_f): New macro.
52014         (jn_test): Use TEST_if_f instead of TEST_ff_f.
52015         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
52016         (yn_test): Use TEST_if_f instead of TEST_ff_f.
52017
52018         * math/libm-test.inc (RUN_TEST_f_f): New macro.
52019         (RUN_TEST_2_f): Likewise.
52020         (RUN_TEST_ff_f): Likewise.
52021         (RUN_TEST_fi_f): Likewise.
52022         (RUN_TEST_fl_f): Likewise.
52023         (RUN_TEST_fff_f): Likewise.
52024         (RUN_TEST_c_f): Likewise.
52025         (RUN_TEST_f_f1): Likewise.
52026         (RUN_TEST_fF_f1): Likewise.
52027         (RUN_TEST_fI_f1): Likewise.
52028         (RUN_TEST_ffI_f1): Likewise.
52029         (RUN_TEST_c_c): Likewise.
52030         (RUN_TEST_cc_c): Likewise.
52031         (RUN_TEST_f_i): Likewise.
52032         (RUN_TEST_f_i_tg): Likewise.
52033         (RUN_TEST_ff_i_tg): Likewise.
52034         (RUN_TEST_f_b): Likewise.
52035         (RUN_TEST_f_b_tg): Likewise.
52036         (RUN_TEST_f_l): Likewise.
52037         (RUN_TEST_f_L): Likewise.
52038         (RUN_TEST_sincos): Likewise.
52039         * math/gen-libm-test.pl (new_test): Take new argument to indicate
52040         whether to show exceptions.  Do not include ");\n" in return
52041         value.
52042         (special_functions): Output call to RUN_TEST_sincos instead of
52043         check_float calls.  Update calls to new_test.
52044         (parse_args): Output call to single RUN_TEST_* macro instead of
52045         check_* calls and other assignments.  Update calls to new_test.
52046
52047         [BZ #2546]
52048         [BZ #2560]
52049         [BZ #5159]
52050         [BZ #15426]
52051         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
52052         input to result for tgamma overflow.
52053         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
52054         (gamma_coeff): New variable.
52055         (NCOEFF): New macro.
52056         (gamma_positive): New function.
52057         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
52058         underflow here.  Use gamma_positive instead of exp (lgamma) for
52059         other arguments.
52060         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
52061         (gamma_coeff): New variable.
52062         (NCOEFF): New macro.
52063         (gammaf_positive): New function.
52064         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
52065         underflow here.  Use gamma_positive instead of exp (lgamma) for
52066         other arguments.
52067         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
52068         (gamma_coeff): New variable.
52069         (NCOEFF): New macro.
52070         (gammal_positive): New function.
52071         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
52072         underflow here.  Use gamma_positive instead of exp (lgamma) for
52073         other arguments.
52074         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
52075         (gamma_coeff): New variable.
52076         (NCOEFF): New macro.
52077         (gammal_positive): New function.
52078         (__ieee754_gammal_r): Handle positive infinity, overflow and
52079         underflow here.  Handle NaN the same as positive infinity.  Remove
52080         check x < 0xffffffff for negative integers.  Use gamma_positive
52081         instead of exp (lgamma) for other arguments.
52082         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
52083         (gamma_coeff): New variable.
52084         (NCOEFF): New macro.
52085         (gammal_positive): New function.
52086         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
52087         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
52088         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
52089         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
52090         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
52091         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
52092         * sysdeps/generic/math_private.h (__gamma_productf): New
52093         prototype.
52094         (__gamma_product): Likewise.
52095         (__gamma_productl): Likewise.
52096         * math/Makefile (libm-calls): Add gamma_product.
52097         * math/libm-test.inc (tgamma_test): Add more tests.
52098         * sysdeps/i386/fpu/libm-test-ulps: Update.
52099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52100
52101 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
52102
52103         * benchtests/bench-skeleton.c (main): Preheat CPU.
52104
52105 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
52106
52107         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
52108
52109 2013-05-07  Roland McGrath  <roland@hack.frob.com>
52110
52111         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
52112         and _dl_skip_args_internal.
52113
52114 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
52115
52116         * manual/message.texi (Message Translation): Talk about users.
52117         Message to key mapping impacts design.
52118
52119 2013-05-06  Roland McGrath  <roland@hack.frob.com>
52120
52121         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
52122
52123         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
52124
52125         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
52126         * sysdeps/wordsize-64/glob64.c: ... here.
52127
52128         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
52129         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
52130         New macros.
52131
52132         * debug/getlogin_r_chk.c: Moved to ...
52133         * login/getlogin_r_chk.c: ... here.
52134         * debug/Makefile (routines): Move getlogin_r_chk to ...
52135         * login/Makefile (routines): ... here.
52136         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
52137         * login/Versions (libc: GLIBC_2.4): ... here.
52138
52139         * io/poll.c (__poll): Renamed from poll.
52140         Add libc_hidden_def.
52141         (poll): Define as weak alias.
52142
52143         * debug/ptsname_r_chk.c: Moved to ...
52144         * login/ptsname_r_chk.c: ... here.
52145         * debug/Makefile (routines): Move ptsname_r_chk to ...
52146         * login/Makefile (routines): ... here.
52147         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
52148         * login/Versions (libc: GLIBC_2.4): ... here.
52149
52150         * posix/getlogin.c: Moved to ...
52151         * login/getlogin.c: ... here.
52152         * posix/getlogin_r.c: Moved to ...
52153         * login/getlogin_r.c: ... here.
52154         * posix/getlogin_r.c: Moved to ...
52155         * login/getlogin_r.c: ... here.
52156         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
52157         * login/Makefile (routines): ... here.
52158         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
52159         * login/Versions (libc: GLIBC_2.0): ... here.
52160
52161         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
52162         (setrlimit): Define as weak alias.
52163
52164         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
52165         Call __ names for open, ftruncate, and close.
52166         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
52167         (truncate): Define as weak alias.
52168
52169 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
52170
52171         * math/gen-libm-test.pl (parse_args): Initialize x before each
52172         test of frexp, modf and remquo.
52173
52174         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
52175         test signgam value.
52176
52177 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52178
52179         [BZ #15418]
52180         [BZ #15419]
52181         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
52182         internal tests.
52183         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
52184
52185 2013-05-06  Roland McGrath  <roland@hack.frob.com>
52186
52187         * elf/dl-writev.h: New file.
52188         * elf/dl-misc.c: Include it.
52189         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
52190         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
52191
52192 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
52193
52194         * math/libm-test.inc (noXFails): Remove variable.
52195         (noXPasses): Likewise.
52196         (BUILD_COMPLEX_INT): Remove macro.
52197         (print_screen): Remove xfail argument.
52198         (print_screen_max_error): Likewise.
52199         (update_stats): Likewise.
52200         (print_max_error): Likewise.  Update calls to other affected
52201         functions.
52202         (print_complex_max_error): Likewise.
52203         (test_single_exception): Update calls to print_screen.
52204         (test_single_errno): Likewise.
52205         (check_float_internal): Remove xfail argument.  Update calls to
52206         other affected functions.
52207         (check_float): Likewise.
52208         (check_complex): Likewise.
52209         (check_int): Likewise.
52210         (check_long): Likewise.
52211         (check_bool): Likewise.
52212         (check_longlong): Likewise.
52213         (main): Don't print noXFails and noXPasses.
52214         * math/gen-libm-test.pl (top level): Don't mention expected
52215         failure handling in comment.
52216         (new_test): Don't handle expected failures.
52217         (parse_args): Don't mention expected failure handling in comment.
52218         (generate_testfile): Don't handle expected failures.
52219         (parse_ulps): Likewise.
52220         (print_ulps_file): Likewise.
52221         (get_failure): Remove function.
52222         (output_test): Don't handle expected failures.
52223         * make/README.libm-test: Don't mention expected failure handling.
52224
52225         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
52226         (minus_zero): Likewise.
52227         (plus_infty): Likewise.
52228         (minus_infty): Likewise.
52229         (qnan_value): Likewise.
52230         (max_value): Likewise.
52231         (min_value): Likewise.
52232         (min_subnorm_value): Likewise.
52233         (initialize): Do not initialize those variables dynamically.
52234
52235 2013-05-03  Roland McGrath  <roland@hack.frob.com>
52236
52237         * io/open.c (__open_2): Moved to ...
52238         * io/open_2.c: ... this new file.
52239         * io/open64.c (__open64_2): Moved to ...
52240         * io/open64_2.c: ... this new file.
52241         * io/openat.c (__openat_2): Moved to ...
52242         * io/openat_2.c: ... this new file.
52243         * io/openat64.c (__openat64_2): Moved to ...
52244         * io/openat64_2.c: ... this new file.
52245         * io/Makefile (routines): Add them.
52246         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
52247         * sysdeps/unix/sysv/linux/open_2.c: File removed.
52248         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
52249         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
52250         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
52251         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
52252         (__openat64): Add hidden_ver.
52253         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
52254         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
52255
52256         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
52257         Separately conditionalize setting of GLRO(dl_sysinfo) so
52258         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
52259         as well, but the actual setting is only under [NEED_DL_SYSINFO].
52260
52261 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52262
52263         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
52264         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
52265         definition.
52266         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
52267         * sysdeps/unix/sysv/linux/powerpc/init-first.c
52268         (_libc_vdso_platform_setup): Add __vdso_time initialization.
52269         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
52270         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
52271
52272 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
52273
52274         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
52275         test signgam value.
52276
52277         * math/libm-test.inc (hypot_test): Do not use
52278         IGNORE_ZERO_INF_SIGN.
52279
52280 2013-05-03  Andreas Jaeger  <aj@suse.de>
52281
52282         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
52283         Linux 3.9.
52284         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
52285         (PF_MAX): Adjust for VSOCK change.
52286
52287 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52288
52289         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52290
52291 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
52292
52293         [BZ #15264]
52294         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
52295         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
52296         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
52297
52298 2013-05-02  David S. Miller  <davem@davemloft.net>
52299
52300         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52301
52302 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
52303
52304         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
52305
52306 2013-05-01  Roland McGrath  <roland@hack.frob.com>
52307
52308         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
52309
52310 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
52311
52312         [BZ #14952]
52313         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
52314         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
52315         Use __attribute__ ((__gnu_inline__)).
52316         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
52317         Don't use __attribute__ ((__gnu_inline__)).
52318
52319 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
52320
52321         [BZ #15423]
52322         * math/s_catan.c (__catan): Handle small real or imaginary part of
52323         input specially to avoid spurious underflow.
52324         * math/s_catanf.c (__catanf): Likewise.
52325         * math/s_catanh.c (__catanh): Likewise.
52326         * math/s_catanhf.c (__catanhf): Likewise.
52327         * math/s_catanhl.c (__catanhl): Likewise.
52328         * math/s_catanl.c (__catanl): Likewise.
52329         * math/libm-test.inc (catan_test): Add more tests.
52330         (catanh_test): Likewise.
52331         * sysdeps/i386/fpu/libm-test-ulps: Update.
52332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52333
52334 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52335
52336         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52337
52338 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
52339
52340         [BZ #15416]
52341         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
52342         accurately for denominator in atan2.
52343         * math/s_catanf.c (__catanf): Likewise.
52344         * math/s_catanh.c (__catanh): Likewise.
52345         * math/s_catanhf.c (__catanhf): Likewise.
52346         * math/s_catanhl.c (__catanhl): Likewise.
52347         * math/s_catanl.c (__catanl): Likewise.
52348         * math/libm-test.inc (catan_test): Add more tests.
52349         (catanh_test): Likewise.
52350         * sysdeps/i386/fpu/libm-test-ulps: Update.
52351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52352
52353 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
52354
52355         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
52356
52357         * benchtests/Makefile (bench): Remove slow benchmarks.
52358         * benchtests/atan-inputs: Add slow benchmark inputs.
52359         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
52360         (BENCH_FUNC): Accept variant offset.
52361         (VARIANT): Define.
52362         * benchtests/bench-skeleton.c (main): Run benchmark for each
52363         variant.
52364         * benchtests/cos-inputs: Add slow benchmark inputs.
52365         * benchtests/exp-inputs: Likewise.
52366         * benchtests/pow-inputs: Likewise.
52367         * benchtests/sin-inputs: Likewise.
52368         * benchtests/slowatan-inputs: Remove.
52369         * benchtests/slowatan.c: Remove.
52370         * benchtests/slowcos-inputs: Remove.
52371         * benchtests/slowcos.c: Remove.
52372         * benchtests/slowexp-inputs: Remove.
52373         * benchtests/slowexp.c: Remove.
52374         * benchtests/slowpow-inputs: Remove.
52375         * benchtests/slowpow.c: Remove.
52376         * benchtests/slowsin-inputs: Remove.
52377         * benchtests/slowsin.c: Remove.
52378         * benchtests/slowtan-inputs: Remove.
52379         * benchtests/slowtan.c: Remove.
52380         * benchtests/tan-inputs: Add slow benchmark inputs.
52381         * scripts/bench.pl: Parse comments and directives.
52382
52383         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
52384         in CPPFLAGS.
52385         ($(objpfx)bench-%.c): Remove *-ITER.
52386         * benchtests/bench-modf.c: Remove definition of ITER.
52387         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
52388         (main): Loop for DURATION seconds instead of fixed number of
52389         iterations.
52390         * scripts/bench.pl: Don't expect iterations in parameters.
52391
52392 2013-04-29  Roland McGrath  <roland@hack.frob.com>
52393
52394         * io/fchdir.c (__fchdir): Renamed from fchdir.
52395         (fchdir): Define as weak alias.
52396
52397 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
52398
52399         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
52400         (ERRNO_EDOM): Likewise.
52401         (ERRNO_ERANGE): Likewise.
52402         (noErrnoTests): New variable.
52403         (init_max_error): Set errno to 0.
52404         (test_single_errno): New function.
52405         (test_errno): Likewise.
52406         (check_float_internal): Call test_errno.  Set errno to 0.
52407         (check_complex): Refer to errno tests in comment.
52408         (check_int): Call test_errno.  Set errno to 0.
52409         (check_long): Likewise.
52410         (check_bool): Likewise.
52411         (check_longlong): Likewise.
52412         (cos_test): Use ERRNO_* flags for errno tests instead of
52413         check_int.
52414         (expm1_test): Likewise.
52415         (fmod_test): Likewise.
52416         (ilogb_test): Likewise.
52417         (lgamma_test): Likewise.
52418         (pow_test): Likewise.
52419         (remainder_test): Likewise.
52420         (sin_test): Likewise.
52421         (tan_test): Likewise.
52422         (yn_test): Likewise.
52423         (initialize): Set errno to 0.
52424         (main): Print number of errno tests.
52425         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
52426
52427 2013-04-29  Andreas Jaeger  <aj@suse.de>
52428
52429         [BZ #15084]
52430         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
52431         and RES_USEVC.
52432
52433         [BZ #15085]
52434         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
52435         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
52436         unimplemented.
52437
52438         [BZ #15380]
52439         * stdlib/random.c (__initstate): Return NULL if
52440         __initstate fails.
52441
52442         [BZ #15086]
52443         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
52444         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
52445         RES_SNGLKUPREOP.
52446
52447 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52448
52449         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52450
52451 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
52452
52453         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
52454         of individual tests.
52455         (casin_test): Likewise.
52456         (casinh_test): Likewise.
52457
52458 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
52459
52460         [BZ #15409]
52461         * math/s_catan.c (__catan): Handle arguments with large real or
52462         imaginary part separately without squaring.
52463         * math/s_catanf.c (__catanf): Likewise.
52464         * math/s_catanh.c (__catanh): Likewise.
52465         * math/s_catanhf.c (__catanhf): Likewise.
52466         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
52467         and redefine.
52468         (__catanhl): Handle arguments with large real or imaginary part
52469         separately without squaring.
52470         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
52471         and redefine.
52472         (__catanl): Handle arguments with large real or imaginary part
52473         separately without squaring.
52474         * math/libm-test.inc (catan_test): Add more tests.
52475         (catanh_test): Likewise.
52476         * sysdeps/i386/fpu/libm-test-ulps: Update.
52477         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52478
52479 2013-04-27  Andreas Jaeger  <aj@suse.de>
52480
52481         [BZ #15007]
52482         * stdlib/stdlib.h: Update guards for qecvt.
52483         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
52484         <stdlib.h>.
52485
52486 2013-04-27  Allan McRae  <allan@archlinux.org>
52487
52488         * sysdeps/i386/fpu/libm-test-ulps: Update.
52489
52490 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
52491
52492         [BZ #15406]
52493         * math/s_catan.c: Include <float.h>.
52494         (__catan): Ensure underflow exception occurs for underflowed
52495         result.
52496         * math/s_catanf.c: Include <float.h>.
52497         (__catanf): Ensure underflow exception occurs for underflowed
52498         result.
52499         * math/s_catanh.c: Include <float.h>.
52500         (__catanh): Ensure underflow exception occurs for underflowed
52501         result.
52502         * math/s_catanhf.c: Include <float.h>.
52503         (__catanhf): Ensure underflow exception occurs for underflowed
52504         result.
52505         * math/s_catanhl.c: Include <float.h>.
52506         (__catanhl): Ensure underflow exception occurs for underflowed
52507         result.
52508         * math/s_catanl.c: Include <float.h>.
52509         (__catanl): Ensure underflow exception occurs for underflowed
52510         result.
52511         * math/libm-test.inc (catan_test): Add more tests.
52512         (catanh_test): Likewise.
52513
52514         [BZ #15405]
52515         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
52516         underflowed result.
52517         * math/s_ccoshf.c (__ccoshf): Likewise.
52518         * math/s_ccoshl.c (__ccoshl): Likewise.
52519         * math/s_csin.c (__csin): Likewise.
52520         * math/s_csinf.c (__csinf): Likewise.
52521         * math/s_csinh.c (__csinh): Likewise.
52522         * math/s_csinhf.c (__csinhf): Likewise.
52523         * math/s_csinhl.c (__csinhl): Likewise.
52524         * math/s_csinl.c (__csinl): Likewise.
52525         * math/libm-test.inc (ccos_test): Add more tests.
52526         (ccosh_test): Likewise.
52527         (csin_test): Likewise.
52528         (csinh_test): Likewise.
52529
52530 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52531
52532         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
52533         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
52534         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
52535         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
52536         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
52537         powerpc/power5+/fpu folders.
52538         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
52539
52540
52541 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
52542
52543         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
52544
52545 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
52546
52547         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
52548         additions to variable.
52549         [$(config-machine) = x86_64] (modules-names): Likewise.
52550         ($(objpfx)tst-audit3): Remove dependency.
52551         ($(objpfx)tst-audit3.out): Likewise.
52552         ($(objpfx)tst-audit4): Likewise.
52553         ($(objpfx)tst-audit4.out): Likewise.
52554         ($(objpfx)tst-audit5): Likewise.
52555         ($(objpfx)tst-audit5.out): Likewise.
52556         ($(objpfx)tst-audit6): Likewise.
52557         ($(objpfx)tst-audit6.out): Likewise.
52558         ($(objpfx)tst-audit7): Likewise.
52559         ($(objpfx)tst-audit7.out): Likewise.
52560         (tst-audit3-ENV): Remove variable.
52561         (tst-audit4-ENV): Likewise.
52562         (tst-audit5-ENV): Likewise.
52563         (tst-audit6-ENV): Likewise.
52564         (tst-audit7-ENV): Likewise.
52565         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
52566         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
52567         addition to variable.
52568         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
52569         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
52570         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
52571         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
52572         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
52573         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
52574         tst-audit3, tst-audit4 and tst-audit5.
52575         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
52576         tst-audit6 and tst-audit7.
52577         [$(subdir) = elf] (modules-names): Add audit modules for those
52578         tests.
52579         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
52580         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
52581         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
52582         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
52583         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
52584         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
52585         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
52586         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
52587         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
52588         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
52589         [$(subdir) = elf] (tst-audit3-ENV): New variable.
52590         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
52591         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
52592         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
52593         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
52594         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
52595         Likewise.
52596         [$(subdir) = elf && $(config-cflags-avx) = yes]
52597         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
52598         [$(subdir) = elf && $(config-cflags-avx) = yes]
52599         (CFLAGS-tst-auditmod4a.c): Likewise.
52600         [$(subdir) = elf && $(config-cflags-avx) = yes]
52601         (CFLAGS-tst-auditmod4b.c): Likewise.
52602         [$(subdir) = elf && $(config-cflags-avx) = yes]
52603         (CFLAGS-tst-auditmod6b.c): Likewise.
52604         [$(subdir) = elf && $(config-cflags-avx) = yes]
52605         (CFLAGS-tst-auditmod6c.c): Likewise.
52606         [$(subdir) = elf && $(config-cflags-avx) = yes]
52607         (CFLAGS-tst-auditmod7b.c): Likewise.
52608         * elf/tst-audit3.c: Move to ...
52609         * sysdeps/x86_64/tst-audit3.c: ... here.
52610         * elf/tst-audit4.c: Move to ...
52611         * sysdeps/x86_64/tst-audit4.c: ... here.
52612         * elf/tst-audit5.c: Move to ...
52613         * sysdeps/x86_64/tst-audit5.c: ... here.
52614         * elf/tst-audit6.c: Move to ...
52615         * sysdeps/x86_64/tst-audit6.c: ... here.
52616         * elf/tst-audit7.c: Move to ...
52617         * sysdeps/x86_64/tst-audit7.c: ... here.
52618         * elf/tst-auditmod3a.c: Move to ...
52619         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
52620         * elf/tst-auditmod3b.c: Move to ...
52621         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
52622         * elf/tst-auditmod4a.c: Move to ...
52623         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
52624         * elf/tst-auditmod4b.c: Move to ...
52625         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
52626         * elf/tst-auditmod5a.c: Move to ...
52627         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
52628         * elf/tst-auditmod5b.c: Move to ...
52629         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
52630         * elf/tst-auditmod6a.c: Move to ...
52631         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
52632         * elf/tst-auditmod6b.c: Move to ...
52633         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
52634         * elf/tst-auditmod6c.c: Move to ...
52635         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
52636         * elf/tst-auditmod7a.c: Move to ...
52637         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
52638         * elf/tst-auditmod7b.c: Move to ...
52639         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
52640
52641 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
52642
52643         [BZ #15366]
52644         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
52645         define unconditionally.
52646         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
52647         define unconditionally.
52648         (INT8_C, INT16_C, etc.): Likewise.
52649
52650 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
52651
52652         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
52653         __ehdr_start with hidden visibility.
52654
52655         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
52656
52657 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
52658
52659         * math/libm-test.inc (cos_test): Use accurate hex constants.
52660         (sincost_test): Likewise.
52661
52662 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
52663
52664         * math/libm-test.inc (catan_test): Add more tests.
52665         (catanh_test): Likewise.
52666
52667         * math/s_catanf.c (__catanf): Use suffixed floating-point
52668         constants.
52669         * math/s_catanhf.c (__catanhf): Likewise.
52670         * math/s_catanhl.c (__catanhl): Likewise.
52671         * math/s_catanl.c (__catanl): Likewise.
52672
52673         [BZ #15394]
52674         * math/s_catan.c (__catan): Calculate imaginary part of result
52675         with log1p not log unless computing log of number close to 0.
52676         * math/s_catanf.c (__catanf): Likewise.
52677         * math/s_catanl.c (__catanl): Likewise.
52678         * math/s_catanh.c (__catanh): Calculate real part of result with
52679         log1p not log unless computing log of number close to 0.
52680         * math/s_catanhf.c (__catanhf): Likewise.
52681         * math/s_catanhl.c (__catanhl): Likewise.
52682         * math/libm-test.inc (catan_test): Add more tests.
52683         (catanh_test): Likewise.
52684         * sysdeps/i386/fpu/libm-test-ulps: Update.
52685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52686
52687 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
52688
52689         * benchtests/Makefile: Mention files in which fast and slow
52690         paths of math functions are implemented.
52691
52692 2013-04-23  Roland McGrath  <roland@hack.frob.com>
52693
52694         * sysdeps/posix/timespec_get.c: New file.
52695
52696 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52697
52698         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
52699         POWER.
52700         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
52701         for POWER.
52702         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
52703         powerpc/power5/fpu folders.
52704         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
52705         * benchtests/Makefile: Add modf testcase.
52706         * benchtests/bench-modf.c: New file: Benchmark test for mo
52707
52708 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
52709
52710         [BZ #14888]
52711         * time/Makefile (tests): Add tst-strptime-whitespace.
52712         * time/strptime_l.c (get_number): Use ISSPACE.
52713         (__strptime_internal): Likewise.
52714         * time/tst-strptime-whitespace.c: New test case.
52715
52716 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
52717
52718         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
52719         member.
52720         (_nss_files_init): Set it here.
52721
52722 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
52723
52724         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
52725         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
52726         unsigned.
52727
52728 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
52729
52730         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
52731
52732 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
52733
52734         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
52735         size just once.
52736
52737 2013-04-21  David S. Miller  <davem@davemloft.net>
52738
52739         * po/ru.po: Update Russion translation from translation project.
52740
52741 2013-04-17  Adam Conrad  <adconrad@0c3.net>
52742
52743         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
52744         and setfsgid.
52745
52746 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
52747
52748         * configure.in: Remove i386 configure warning. Remove i386 case.
52749         * configure: Regenerate.
52750         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
52751         Add example to error message.
52752         * sysdeps/i386/configure: Regenerate.
52753
52754 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52755
52756         * benchtests/Makefile (bench): Add cos, tan, slowcos and
52757         slowtan.
52758         * benchtests/cos-inputs: New file.
52759         * benchtests/slowcos-inputs: New file.
52760         * benchtests/slowcos.c: New file.
52761         * benchtests/slowtan-inputs: New file.
52762         * benchtests/slowtan.c: New file.
52763         * benchtests/tan-inputs: New file.
52764
52765 2013-04-16  Roland McGrath  <roland@hack.frob.com>
52766
52767         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
52768         considered kosher.
52769
52770 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52771
52772         * benchtests/Makefile: Include cppflags-iterator.mk to add
52773         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
52774
52775         * Makefile.in (bench-clean): New target.
52776         * benchtests/Makefile (bench-clean): Likewise.
52777
52778 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
52779
52780         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
52781
52782 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
52783
52784         * stdio-common/tstdiomisc.c: Fix coding-style violation.
52785
52786 2013-04-15  Andreas Schwab  <schwab@suse.de>
52787
52788         * nscd/grpcache.c (cache_addgr): Properly check for short write.
52789         * nscd/initgrcache.c (addinitgroupsX): Likewise.
52790         * nscd/pwdcache.c (cache_addpw): Likewise.
52791         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
52792         more than recsize.
52793
52794 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
52795
52796         * benchtests/Makefile (bench): Write all output to
52797         bench-out.tmp together.
52798
52799 2013-04-15  Andreas Schwab  <schwab@suse.de>
52800
52801         * nscd/nscd.c (main): Don't fork again after closing files.
52802
52803 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
52804
52805         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
52806
52807         * benchtests/Rules (bench-deps): Collect dependencies into a
52808         single variable.  Add Makefile to dependencies.
52809         ($(objpfx)bench-%.c): Depend on bench-deps.
52810
52811 2013-04-12  Roland McGrath  <roland@hack.frob.com>
52812             Xavier Roche  <roche+kml2@exalead.com>
52813
52814         [BZ #15361]
52815         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
52816         just that it's a file descriptor.
52817         * manual/llio.texi (Synchronizing AIO Operations): Update description
52818         for EBADF error from aio_fsync.
52819
52820 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
52821
52822         * Rules (bench): Move target definition...
52823         * benchtests/Makefile: ... here.
52824
52825 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
52826
52827         * math/libm-test.inc (cos_test): Fix PI/2 test.
52828         (sincos_test): Likewise.
52829         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
52830         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
52831
52832 2013-04-11  Andreas Schwab  <schwab@suse.de>
52833
52834         [BZ #13988]
52835         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
52836         accept exponent character only when digits were seen.
52837         * stdio-common/Makefile (tests): Add bug26.
52838         * stdio-common/bug26.c: New file.
52839
52840         [BZ #14293]
52841         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
52842         non-freeable.
52843
52844 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52845
52846         * Makeconfig (rtld-prefix): Define built linker prefix.
52847         * Rules (run-bench): Use it.
52848         * math/Makefile (run-regen-ulps): Likewise.
52849
52850         * Rules (bench): Remove eval.
52851
52852 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52853             Roland McGrath  <roland@hack.frob.com>
52854             Ondrej Bilka  <neleai@seznam.cz>
52855
52856         [BZ #15346]
52857         * time/getdate.c: Include ctype.h and alloca.h.
52858         (__getdate_r): Trim leading and trailing spaces of input.
52859         * time/tst-getdate.c (tests): Add tests with leading and
52860         trailing spaces.
52861
52862 2013-04-08  Roland McGrath  <roland@hack.frob.com>
52863
52864         [BZ #14280]
52865         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
52866         when computing value.
52867
52868 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
52869
52870         * math/README.libm-test (How can I generate "libm-test-ulps"?):
52871         Use testrun.sh to run libm tests.
52872
52873         [BZ #15309]
52874         * elf/dl-open.c (dl_open_worker): memset all of seen array.
52875
52876 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
52877
52878         [BZ #15264]
52879         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
52880
52881 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
52882
52883         * Makefile.in (regen-ulps): New target.
52884         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
52885         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
52886         [ifneq (no,$(PERL)] (regen-ulps): New target.
52887         [ifeq (no,$(PERL)] (regen-ulps): New target.
52888         * math/libm-test.inc (ulps_file_name): Define.
52889         (output_dir): New variable.
52890         (options): Add "output-dir" option.
52891         (parse_opt): Handle 'o' case.
52892         (main): If output_dir is non-NULL use it as a prefix
52893         otherwise use "".
52894         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
52895
52896 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
52897
52898         [BZ #10060, #10062]
52899         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
52900         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
52901         fail configure if __sync_val_compare_and_swap is not inlined.
52902         * sysdeps/i386/configure: Regenerate.
52903         * configure.in: Build for i686 when configured for i386.
52904         * configure: Regenerate.
52905         * README: Remove i386 reference.
52906
52907 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
52908
52909         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
52910         * sysdeps/s390/s390-64/sysdep.h: Likewise.
52911
52912 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
52913
52914         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
52915         (lmsnanval): New variables.
52916         (F): Add conversion tests.
52917         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
52918         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
52919
52920         * stdio-common/tstdiomisc.c (F): Properly collect individual
52921         tests' results.
52922
52923         [BZ #14686, #15336]
52924         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
52925         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
52926         Instead, use input NaN values or generate a qNaN by arithmetic
52927         operation.  Also fix bugs to comply with the standard.
52928         * math/libm-test.inc (remainder_test): Add more tests.
52929
52930         [BZ #15335, #15342]
52931         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
52932         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
52933         input NaN values or generate a qNaN by arithmetic operation.
52934
52935         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
52936         unreachable code.
52937
52938         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
52939         definitions.
52940
52941 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
52942
52943         [BZ #14478]
52944         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
52945         underflowed result.
52946         * math/s_cexpf.c (__cexpf): Likewise.
52947         * math/s_cexpl.c (__cexpl): Likewise.
52948         * math/libm-test.inc (cexp_test): Add more tests.
52949
52950 2013-04-03  Andreas Schwab  <schwab@suse.de>
52951
52952         [BZ #15330]
52953         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
52954         order arrays from heap if bigger than alloca cutoff.
52955
52956 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
52957
52958         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
52959         (SNAN_TESTS_double): Refer to GCC PR56831.
52960         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
52961         GCC PR56828.
52962
52963 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
52964
52965         * Rules (bench): Move bench.out after the run is complete.
52966
52967         * Rules (bench): Echo currently running benchmark.
52968
52969         * benchtests/Makefile (bench): Add atan and slowatan.
52970         * benchtests/atan-inputs: New file.
52971         * benchtests/slowatan-inputs: New file.
52972         * benchtests/slowatan.c: New file.
52973
52974         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
52975         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
52976         its value.
52977
52978         [BZ #15305]
52979         * sysdeps/unix/sysv/linux/kernel-features.h
52980         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
52981         __ASSUME_XFS_RESTRICTED_CHOWN.
52982         * sysdeps/unix/sysv/linux/pathconf.c
52983         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
52984         Save and restore errno.
52985
52986 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
52987
52988         [BZ #15327]
52989         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
52990         arguments using __kernel_casinh.
52991         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
52992         arguments using __kernel_casinhf.
52993         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
52994         arguments using __kernel_casinhl.
52995         * math/libm-test.inc (cacosh_test): Add more tests.
52996         * sysdeps/i386/fpu/libm-test-ulps: Update.
52997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52998
52999 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53000
53001         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
53002         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
53003
53004         * bench/Makefile (bench): Add sin and slowsin.
53005         * benchtests/sin-inputs: New file.
53006         * benchtests/slowsin-inputs: New file.
53007         * benchtests/slowsin.c: New file.
53008
53009         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
53010         (bench): Add slowexp and slowpow.
53011         (exp-ITER): Increase iterations.
53012         (pow-ITER): Likewise.
53013         * benchtests/exp-inputs: Change input.
53014         * benchtests/pow-inputs: Likewise.
53015         * benchtests/slowexp-inputs: New file.
53016         * benchtests/slowexp.c: New file.
53017         * benchtests/slowpow-inputs: New file.
53018         * benchtests/slowpow.c: New file.
53019
53020 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53021
53022         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
53023         instructions.
53024         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
53025         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
53026         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
53027         * benchtests/Makefile: Add rint benchtest.
53028         * benchtests/rint-inputs: Input for rint benchtest.
53029
53030 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
53031
53032         * Versions.def (libm): Add GLIBC_2.18.
53033         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
53034         hidden libm prototypes.
53035         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
53036         * math/Makefile (libm-calls): Add s_issignaling.
53037         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
53038         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
53039         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
53040         declaration.
53041         * math/math.h [__USE_GNU] (issignaling): New macro.
53042         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
53043         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
53044         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
53045         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
53046         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
53047         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
53048         * manual/arith.texi (issignaling): New section.
53049         * manual/libm-err-tab.pl (@all_functions): Update comment.
53050         * math/gen-libm-test.pl (parse_args): Apply special handling for
53051         issignaling.
53052         * math/libm-test.inc (print_float, issignaling_test): New
53053         functions.
53054         (check_float_internal): Add issignaling checks.
53055         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
53056         default definition.
53057         * sysdeps/powerpc/math-tests.h: New file.
53058         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
53059         tests.
53060         * math/test-snan.c (TEST_FUNC): Likewise.
53061
53062 2013-03-30  David S. Miller  <davem@davemloft.net>
53063
53064         * po/de.po: Update from translation team.
53065
53066 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
53067
53068         [BZ #10357]
53069         * math/k_casinh.c (__kernel_casinh): Handle arguments with
53070         imaginary part less than 1.0 and real part less than 0.5
53071         specially.
53072         * math/k_casinhf.c (__kernel_casinhf): Likewise.
53073         * math/k_casinhl.c (__kernel_casinhl): Likewise.
53074         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
53075         (cacos_test): Add more tests.
53076         (casin_test): Likewise.
53077         (casinh_test): Likewise.
53078         * sysdeps/i386/fpu/libm-test-ulps: Update.
53079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53080
53081 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53082
53083         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
53084         ONE with its value.
53085
53086         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
53087         (__pow_mp): Replace ONE and MONE with their values.
53088         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
53089         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
53090         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53091         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
53092         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
53093         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53094
53095         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
53096
53097         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
53098         (__pow_mp): Replace ZERO and MZERO with their values.
53099         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
53100         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
53101         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53102         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53103         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
53104         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
53105         (__sqr): Likewise.
53106
53107         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
53108
53109         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
53110
53111 2013-03-28  Roland McGrath  <roland@hack.frob.com>
53112
53113         * include/stdlib.h [!SHARED] (__call_tls_dtors):
53114         Declare with __attribute__ ((weak)).
53115         * stdlib/exit.c (__libc_atexit) [!SHARED]:
53116         Call __call_tls_dtors only if it's not NULL.
53117
53118 2013-03-28  Roland McGrath  <roland@hack.frob.com>
53119
53120         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
53121         didn't do it already, then set _dl_phdr and _dl_phnum based on the
53122         magic __ehdr_start linker symbol if it's defined.
53123         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
53124         them up here if it was already done.
53125
53126         * elf/dl-support.c (_dl_phdr): Make pointer to const.
53127         (_dl_aux_init): Use const in cast when setting it.
53128         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
53129         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
53130         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
53131
53132         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
53133         Declare them here.
53134         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
53135         * csu/libc-tls.c: Nor here.
53136         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
53137
53138         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
53139         (__libc_message): Never call vsyslog.
53140
53141 2013-03-28  Alan Modra  <amodra@gmail.com>
53142
53143         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
53144         Define as empty.
53145         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
53146         Likewise.
53147
53148 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53149
53150         [BZ #15214]
53151         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
53152         underflow.
53153         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53154
53155 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53156
53157         [BZ #15304]
53158         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
53159         Don't add gid passed as argument.
53160
53161         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
53162
53163 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
53164
53165         [BZ #15307]
53166         * math/k_casinh.c (__kernel_casinh): Handle arguments with
53167         imaginary part between 1.0 and 1.5 and real part less than 0.5
53168         specially.
53169         * math/k_casinhf.c (__kernel_casinhf): Likewise.
53170         * math/k_casinhl.c (__kernel_casinhl): Likewise.
53171         * math/libm-test.inc (cacos_test): Add more tests.
53172         (casin_test): Likewise.
53173         (casinh_test): Likewise.
53174         * sysdeps/i386/fpu/libm-test-ulps: Update.
53175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53176
53177 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
53178
53179         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
53180         constants.
53181         (norm): Likewise.
53182         (denorm): Likewise.
53183         (__dbl_mp): Likewise.
53184         (add_magnitudes): Likewise.
53185         (sub_magnitudes): Likewise.
53186         (__add): Likewise.
53187         (__sub): Likewise.
53188         (__mul): Likewise.
53189         (__sqr): Likewise.
53190         (__inv): Likewise.
53191         (__dvd): Likewise.
53192
53193         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
53194         commented code.
53195         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
53196         (__dubcos): Likewise.
53197         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
53198         (__ieee754_acos): Likewise.
53199         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
53200         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
53201         (__exp1): Likewise.
53202         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
53203         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
53204         (log1): Likewise.
53205         (my_log2): Likewise.
53206         (checkint): Likewise.
53207         * sysdeps/ieee754/dbl-64/e_remainder.c
53208         (__ieee754_remainder): Likewise.
53209         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
53210         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
53211         (bsloww): Likewise.
53212         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53213
53214         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
53215         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
53216         MANTISSA_STORE_T to store computations on mantissa.  Use
53217         macros for rounding and division.
53218         (denorm): Likewise.
53219         (__dbl_mp): Likewise.
53220         (add_magnitudes): Likewise.
53221         (sub_magnitudes): Likewise.
53222         (__mul): Likewise.
53223         (__sqr): Likewise.
53224         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
53225         powers of two in terms of TWOPOW macro.
53226         (mp_no): Make type of mantissa as MANTISSA_T.
53227         [!RADIXI]: Define RADIXI.
53228         [!TWO52]: Define TWO52.
53229         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
53230
53231 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53232
53233         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
53234         llroundl symbol when building for PPC32.
53235
53236 2013-03-24  Mark H Weaver  <mhw@netris.org>
53237
53238         * manual/arith.texi (Normalization Functions): Fix prototypes for
53239         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
53240
53241 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53242
53243         [BZ #13889]
53244         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
53245         high value to check if expl overflow.
53246         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
53247         to check for underflow and overflow.
53248         * math/libm-test.inc: Add exp test.
53249
53250 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
53251
53252         [BZ #11120]
53253         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
53254         with NOT_IN_libc.
53255
53256 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53257
53258         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
53259         symbol.
53260
53261 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
53262
53263         * math/gen-libm-test.pl (parse_args, special_functions): Properly
53264         wrap blocks consisting of several statements.
53265
53266         * sysdeps/generic/math-tests.h: New file.
53267         * sysdeps/i386/fpu/math-tests.h: Likewise.
53268         * math/test-snan.c: Include it.
53269         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
53270
53271 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
53272
53273         [BZ #15285]
53274         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
53275         (__ieee754_j0l): Do not improve calculations using cos of twice
53276         input for inputs above LDBL_MAX / 2.0L.
53277         (__ieee754_y0l): Likewise.
53278         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
53279         (__ieee754_j1l): Do not improve calculations using cos of twice
53280         input for inputs above LDBL_MAX / 2.0L.
53281         (__ieee754_y1l): Likewise.
53282         * math/libm-test.inc (j0_test): Add another test.
53283         (j1_test): Likewise.
53284         (y0_test): Likewise.
53285         (y1_test): Likewise.
53286         * sysdeps/i386/fpu/libm-test-ulps: Update.
53287
53288 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53289
53290         * Rules ($(objpfx)bench-%.c): Include code from a C source
53291         file.
53292
53293 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
53294
53295         [BZ #15287]
53296         * math/k_casinh.c (__kernel_casinh): Handle arguments with
53297         imaginary part 1.0 and real part less than 0.5 specially.
53298         * math/k_casinhf.c (__kernel_casinhf): Likewise.
53299         * math/k_casinhl.c (__kernel_casinhl): Likewise.
53300         * math/libm-test.inc (cacos_test): Add more tests.
53301         (casin_test): Likewise.
53302         (casinh_test): Likewise.
53303         * sysdeps/i386/fpu/libm-test-ulps: Update.
53304         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53305
53306 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53307
53308         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
53309         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
53310
53311 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
53312
53313         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
53314         * config.make.in (config-cflags-sse4): Remove variable.
53315         (config-cflags-avx): Likewise.
53316         (config-cflags-sse2avx): Likewise.
53317         (config-cflags-novzeroupper): Likewise.
53318         (config-asflags-i686): Likewise.
53319         (have-mfma4): Likewise.
53320         (have-as-vis3): Likewise.
53321         (MIG): Likewise.
53322         * configure.in (MIG): Do not AC_SUBST.
53323         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
53324         (libc_cv_cc_sse4): Do not AC_SUBST.
53325         (libc_cv_cc_avx): Likewise.
53326         (libc_cv_cc_sse2avx): Likewise.
53327         (libc_cv_cc_novzeroupper): Likewise.
53328         (libc_cv_cc_fma4): Likewise.
53329         (libc_cv_as_i686): Likewise.
53330         (libc_cv_sparc_as_vis3): Likewise.
53331         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
53332         LIBC_CONFIG_VAR.
53333         (config-asflags-i686): Likewise.
53334         (config-cflags-avx): Likewise.
53335         (config-cflags-sse2avx): Likewise.
53336         (have-mfma4): Likewise.
53337         (config-cflags-novzeroupper): Likewise.
53338         * sysdeps/mach/configure.in (MIG): Likewise.
53339         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
53340         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
53341         LIBC_CONFIG_VAR.
53342         (config-cflags-avx): Likewise.
53343         (config-cflags-sse2avx): Likewise.
53344         (have-mfma4): Likewise.
53345         (config-cflags-novzeroupper): Likewise.
53346         * configure: Regenerated.
53347         * sysdeps/i386/configure: Likewise.
53348         * sysdeps/mach/configure: Likewise.
53349         * sysdeps/sparc/configure: Likewise.
53350         * sysdeps/x86_64/configure: Likewise.
53351
53352 2013-03-20  Roland McGrath  <roland@hack.frob.com>
53353
53354         [BZ #14812]
53355         * locale/programs/localedef.c (options): Put N_ translation marker
53356         on argument names, not just descriptions.
53357
53358 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53359
53360         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
53361
53362 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
53363
53364         [BZ #14176]
53365         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
53366
53367 2013-03-19  Roland McGrath  <roland@hack.frob.com>
53368
53369         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
53370         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
53371         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
53372         [!BEFORE_ABORT] (before_abort): New function.
53373         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
53374         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
53375         (writev_for_fatal): New function.
53376         (WRITEV_FOR_FATAL): New macro; call that.
53377         (backtrace_and_maps): New function.
53378         (BEFORE_ABORT): New macro; call that.
53379         (struct str_list): Type removed.
53380         (__libc_message, __libc_fatal): Functions removed.
53381         Include <sysdeps/posix/libc_fatal.c> instead.
53382
53383 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
53384
53385         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
53386         constants.
53387         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
53388         double constants.
53389
53390 2013-03-19  Andreas Schwab  <schwab@suse.de>
53391
53392         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
53393         * sysdeps/gnu/configure: Regenerate.
53394
53395         * configure.in: Substitute libc_cv_rtlddir.
53396         * configure: Regenerate.
53397         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
53398         * Makeconfig (rtlddir, inst_rtlddir): New variables.
53399         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
53400         * elf/Makefile (install-others, CFLAGS-interp.c)
53401         (ldso_install, common-ldd-rewrite): Likewise.
53402         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
53403         $(inst_slibdir)/$(rtld-installed-name).
53404         * scripts/rellns-sh: Add -p option.
53405         * Makerules (make-shlib-link): Use rellns-sh to get relative name
53406         for source.
53407
53408 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
53409
53410         * manual/nptl.texi: Renamed to ...
53411         * manual/threads.texi: ... this.
53412         * manual/Makefile (chapters): Update.
53413
53414 2013-03-18  Roland McGrath  <roland@hack.frob.com>
53415
53416         [BZ #14812]
53417         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
53418         on argument names, not just descriptions.
53419         * malloc/memusagestat.c (options): Likewise.
53420         * nss/getent.c (options): Likewise.
53421
53422 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
53423
53424         [BZ #14812]
53425         * iconv/iconv_prog.c (options): Put N_ translation marker
53426         on argument names, not just descriptions.
53427         * iconv/iconvconfig.c (options): Likewise.
53428
53429 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
53430
53431         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
53432         implementation which is faster on all x86_64 architectures.
53433         Tested on AMD, Intel Nehalem, SNB, IVB.
53434         * sysdeps/x86_64/strnlen.S: Likewise.
53435
53436         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
53437         Remove all multiarch strlen and strnlen versions.
53438         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
53439         Remove strlen and strnlen related parts.
53440
53441         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
53442         Inline strlen part.
53443         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
53444
53445         * sysdeps/x86_64/multiarch/strlen.S: Remove.
53446         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
53447         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
53448         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
53449         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
53450         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
53451
53452 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
53453
53454         * manual/memory.texi (Malloc Tunable Parameters):
53455         Sort parameters alphabetically. Add comments for missing entries.
53456
53457 2013-03-17  David S. Miller  <davem@davemloft.net>
53458
53459         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53460
53461 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
53462
53463         [BZ #15283]
53464         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
53465         for arguments at most half maximum finite value.
53466         * math/libm-test.inc (j0_test): Add more tests.
53467         (j1_test): Likewise.
53468         (y0_test): Likewise.
53469         (y1_test): Likewise.
53470         * sysdeps/i386/fpu/libm-test-ulps: Update.
53471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53472
53473         [BZ #14155]
53474         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
53475         1 / x and functions P and Q for arguments above 0x1p256L.
53476         (__ieee754_y0l): Likewise.
53477         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
53478         (__ieee754_y1l): Likewise.
53479         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
53480         (j1_test): Likewise.
53481         (y0_test): Likewise.
53482         (y1_test): Likewise.
53483
53484 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
53485
53486         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
53487         variable.
53488
53489 2013-03-15  Roland McGrath  <roland@hack.frob.com>
53490
53491         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
53492         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
53493         zero since it's initialized to EXEC_PAGESIZE.
53494
53495         * sysdeps/unix/sysv/linux/ldsodefs.h
53496         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
53497         * sysdeps/generic/ldsodefs.h: ... here.
53498
53499 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
53500
53501         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
53502
53503         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
53504         math/test-snan.c.
53505         * math/test-snan.c: Renamed from
53506         sysdeps/powerpc/fpu/test-powerpc-snan.c.
53507         * math/Makefile (tests): Add test-snan.
53508         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
53509         test-powerpc-snan.
53510
53511         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
53512         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
53513         functions.
53514         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
53515         __builtin_nan family of functions.
53516         * math/libm-test.inc (initialize): Initialize qnan_value with
53517         __builtin_nan family of functions.
53518         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
53519         Remove variables.
53520         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
53521         Remove functions.
53522         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
53523         storage class.  Initialize qNaN_var and sNaN_var with
53524         __builtin_nan and __builtin_nans families of functions,
53525         respectively.
53526
53527         * math/libm-test.inc (acosh_test): Also test with qNaN input.
53528         (sqrt_test): Remove duplicate test with qNaN input.
53529         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
53530         (round_test, signbit_test, significand_test): Note missing +/-Inf
53531         as well as qNaN tests.
53532
53533         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
53534         qNaN_var.  Fix a few strings, too.
53535         * math/libm-test.inc (nan_value): Rename to qnan_value.
53536         * math/gen-libm-test.pl (%beautify): Adjust to that.
53537         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
53538         * math/test-misc.c (main): Likewise.
53539         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
53540         to __qnan_bytes, and __qnan_union, respectively.
53541         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
53542         Likewise.
53543         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
53544         and lqnanval, respectively.
53545         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
53546         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
53547         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
53548         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
53549
53550         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
53551         * math/test-misc.c (main) [__x86_64__]: Enable test for long
53552         doubles.
53553
53554         * math/test-misc.c (main): Fix copy'n'pastos.
53555         * misc/tst-efgcvt.c (special): Likewise.
53556
53557         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
53558         Remove declarations.
53559
53560 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
53561
53562         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
53563         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
53564         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
53565         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
53566
53567 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53568
53569         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
53570         macro to return vdso values correctly in IFUNC implementations.
53571         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
53572         Optimization by using IFUNC.
53573
53574 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
53575             Richard Henderson  <rth@redhat.com>
53576             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
53577
53578         * Makefile.in (bench): New target.
53579         * NEWS: Mention the benchmark framework.
53580         * Rules (bench): Likewise.
53581         (binaries-bench): Generate binaries for functions to
53582         benchmark.
53583         * benchtests/Makefile: New makefile for benchmark tests.
53584         * benchtests/bench-skeleton.c: New skeleton file for benchmark
53585         programs.
53586         * benchtests/exp-inputs: New input file for EXP function.
53587         * benchtests/pow-inputs: New input file for POW function.
53588         * scripts/bench.pl: New script to generate source files for
53589         benchmark programs.
53590
53591 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
53592
53593         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
53594         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
53595         computations on mantissa.  Use macros for rounding and
53596         division.
53597         (denorm): Likewise.
53598         (__dbl_mp): Likewise.
53599         (add_magnitudes): Likewise.
53600         (sub_magnitudes): Likewise.
53601         (__mul): Likewise.
53602         (__sqr): Likewise.
53603         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
53604         powers of two in terms of TWOPOW macro.
53605         (mp_no): Make type of mantissa as MANTISSA_T.
53606         [!RADIXI]: Define RADIXI.
53607         [!TWO52]: Define TWO52.
53608         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
53609
53610         * manual/nptl.texi (cindex): Modify threads to pthreads.
53611
53612 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
53613
53614         * sysdeps/x86_64/preconfigure: Regenerated.
53615
53616 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
53617
53618         [BZ #14155]
53619         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
53620         0x1p28 and above.
53621         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
53622         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
53623         0x1p28 and above.
53624         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
53625         * math/libm-test.inc (j0_test): Do not allow one spurious
53626         underflow exception.
53627         (y1_test): Likewise.
53628
53629 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53630
53631         * manual/Makefile (chapters): Add nptl.
53632         * manual/debug.texi (Debugging Support): Add link to Threads
53633         chapter.
53634         * manual/nptl.texi: New file.
53635
53636         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
53637
53638 2013-03-14  Petr Baudis  <pasky@ucw.cz>
53639
53640         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
53641         for non-NULL pointer before the memory validity test. Pointed
53642         out by Holger Brunck <holger.brunck@keymile.com>.
53643
53644 2013-03-13  Andreas Schwab  <schwab@suse.de>
53645
53646         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
53647         instead of .os.
53648
53649 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
53650
53651         * timezone/zic.c: Update from tzcode 2013b.
53652
53653 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
53654
53655         * manual/install.texi (Configuring and compiling):
53656         Mention i686 and i586.
53657         * INSTALL: Regenerate.
53658
53659 2013-03-12  Roland McGrath  <roland@hack.frob.com>
53660
53661         * sysdeps/init_array/elf-init.c: New file.
53662         * csu/elf-init.c
53663         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
53664         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
53665
53666         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
53667         __gmon_start__ as global, but as static with a .preinit_array pointer.
53668         * sysdeps/init_array/gmon-start.c: New file.  Use that.
53669         * sysdeps/init_array/crti.S: New file, empty except for comments.
53670         * sysdeps/init_array/crtn.S: Likewise.
53671
53672 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
53673
53674         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
53675         definining bcopy.
53676         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53677         Remove Prefer_SSE_for_memop.
53678         * sysdeps/x86_64/multiarch/init-arch.h: Remove
53679         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
53680         HAS_PREFER_SSE_FOR_MEMOP.
53681         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
53682         memset-x86-64.
53683         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
53684         Remove bzero, memset ifunc support.
53685         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
53686         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
53687         * sysdeps/x86_64/multiarch/memset.S: Likewise.
53688         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
53689
53690 2013-03-11  Andreas Schwab  <schwab@suse.de>
53691
53692         [BZ #15234]
53693         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
53694         by SHLIB_COMPAT.
53695         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
53696         (GLIBC_2.16): Remove pthread_atfork.
53697
53698 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
53699
53700         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
53701         (ptestcases.h): Likewise.
53702
53703 2013-03-08  Roland McGrath  <roland@hack.frob.com>
53704
53705         * Makeconfig ($(common-objpfx)config.status): Depend on
53706         sysdeps/*/preconfigure{,.in} too.
53707
53708 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
53709
53710         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
53711         (__free_hook): Use void * instead of __malloc_ptr_t.
53712         (__malloc_hook): Likewise.
53713         (__realloc_hook): Likewise.
53714         (__memalign_hook): Likewise.
53715         (__after_morecore_hook): Likewise.
53716         * malloc/arena.c (save_malloc_hook): Likewise.
53717         (save_free_hook): Likewise.
53718         * malloc/hooks.c (malloc_hook_ini): Likewise.
53719         (realloc_hook_ini): Likewise.
53720         (memalign_hook_ini): Likewise.
53721         * malloc/malloc.c (malloc_hook_ini): Likewise.
53722         (realloc_hook_ini): Likewise.
53723         (memalign_hook_ini): Likewise.
53724         (__free_hook): Likewise.
53725         (__malloc_hook): Likewise.
53726         (__realloc_hook): Likewise.
53727         (__memalign_hook): Likewise.
53728         (__libc_malloc): Likewise.
53729         (__libc_free): Likewise.
53730         (__libc_realloc): Likewise.
53731         (__libc_memalign): Likewise.
53732         (__libc_valloc): Likewise.
53733         (__libc_pvalloc): Likewise.
53734         (__libc_calloc): Likewise.
53735         (__posix_memalign): Likewise.
53736         * malloc/morecore.c (__sbrk): Likewise.
53737         (__default_morecore): Likewise.
53738
53739         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
53740
53741         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
53742         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
53743         __malloc_ptrdiff_t.
53744
53745         * malloc/malloc.h (__malloc_size_t): Remove macro.
53746         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
53747         __malloc_size_t.
53748         (old_memalign_hook): Likewise.
53749         (old_realloc_hook): Likewise.
53750         (struct hdr): Likewise.
53751         (flood): Likewise.
53752         (mallochook): Likewise.
53753         (memalignhook): Likewise.
53754         (reallochook): Likewise.
53755         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
53756         (tr_old_realloc_hook): Likewise.
53757         (tr_old_memalign_hook): Likewise.
53758         (tr_mallochook): Likewise.
53759         (tr_reallochook): Likewise.
53760         (tr_memalignhook): Likewise.
53761
53762 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53763
53764         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
53765         default_ldbl_pack and using as default implementation.
53766         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
53767         implementation.
53768         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
53769         redundant definition.
53770         (ldbl_insert_mantissa): Likewise.
53771         (ldbl_canonicalize): Likewise.
53772         (ldbl_nearbyint): Likewise.
53773         (ldbl_pack): Rename to ldbl_pack_ppc.
53774         (ldbl_unpack): Rename to ldbl_unpack_ppc.
53775         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
53776         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
53777
53778 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53779
53780         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
53781         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
53782         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
53783         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
53784         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
53785         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
53786         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
53787         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
53788
53789 2013-03-07  Andreas Jaeger  <aj@suse.de>
53790
53791         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
53792         bits/mman-linux.h.
53793
53794 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
53795
53796         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
53797         Include mpa.h and declare __MPEXP.
53798         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
53799         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
53800         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
53801         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
53802         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
53803         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
53804         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
53805
53806         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
53807         (__slowpow): Use long double EXPL and LOGL functions to
53808         compute POW.
53809         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
53810         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
53811         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
53812         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
53813         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
53814         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
53815
53816         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
53817         intermediate variable to calculate exponent.
53818         (__sqr): Likewise.
53819         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
53820         Likewise.
53821         (__sqr): Likewise.
53822
53823         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
53824         [!NO__SQR]: Define __sqr.
53825         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
53826         and NO__SQR.  Remove all code except __mul and __sqr.  Include
53827         sysdeps/ieee754/dbl-64/mpa.c.
53828         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53829
53830         [BZ #12723]
53831         * posix/Makefile (tests): Add tst-pathconf.
53832         * posix/tst-pathconf.c: New test case.
53833         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
53834         _PC_PIPE_BUF.
53835         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
53836
53837 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
53838
53839         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
53840
53841 2013-03-06  Andreas Jaeger  <aj@suse.de>
53842
53843         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
53844         definition via __MAP_ANONYMOUS.
53845
53846         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
53847         it's not part of Linux headers.
53848
53849         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
53850         (MAP_HUGE_MASK): Define.
53851
53852         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
53853         Define.
53854         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
53855         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
53856         Define.
53857         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
53858         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
53859         Define.
53860         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
53861         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
53862         Define.
53863         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
53864
53865         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
53866         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
53867         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
53868         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
53869         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
53870         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
53871
53872         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
53873         Handle f2fs.
53874
53875         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
53876         Handle f2fs and efivarfs.
53877
53878         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
53879         f2fs.
53880
53881         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
53882         (EFIVARFS_MAGIC): Add.
53883         (F2FS_LINK_MAX): Add.
53884
53885 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
53886
53887         * stdio-common/vfprintf.c: Replace __builtin_expect with
53888         __glibc_unlikely.
53889
53890 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
53891
53892         [BZ #13550]
53893         * sysdeps/generic/bp-sym.h: Remove file.
53894         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
53895         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
53896         <bp-sym.h> and <bp-asm.h>.
53897         (__longjmp): Don't use BP_SYM.
53898         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
53899         and <bp-asm.h>.
53900         (memcpy): Don't use BP_SYM.
53901         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
53902         <bp-sym.h> and <bp-asm.h>.
53903         (memcpy): Don't use BP_SYM.
53904         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
53905         <bp-asm.h>.
53906         (memcpy): Don't use BP_SYM.
53907         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
53908         <bp-asm.h>.
53909         (memset): Don't use BP_SYM.
53910         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
53911         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
53912         (__bzero): Don't use BP_SYM.
53913         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
53914         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
53915         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
53916         <bp-sym.h> and <bp-asm.h>.
53917         (memcmp): Don't use BP_SYM.  Remove comment about bounded
53918         pointers.
53919         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
53920         <bp-sym.h> and <bp-asm.h>.
53921         (memcpy): Don't use BP_SYM.
53922         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
53923         <bp-sym.h> and <bp-asm.h>.
53924         (memset): Don't use BP_SYM.
53925         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
53926         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
53927         (__bzero): Don't use BP_SYM.
53928         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
53929         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
53930         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
53931         <bp-sym.h> and <bp-asm.h>.
53932         (strncmp): Don't use BP_SYM.  Remove comment about bounded
53933         pointers.
53934         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
53935         <bp-sym.h> and <bp-asm.h>.
53936         (memcpy): Don't use BP_SYM.
53937         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
53938         <bp-sym.h> and <bp-asm.h>.
53939         (memset): Don't use BP_SYM.
53940         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
53941         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
53942         (__bzero): Don't use BP_SYM.
53943         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
53944         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
53945         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
53946         <bp-sym.h> and <bp-asm.h>.
53947         (__memchr): Don't use BP_SYM.
53948         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
53949         <bp-sym.h> and <bp-asm.h>.
53950         (memcmp): Don't use BP_SYM.  Remove comment about bounded
53951         pointers.
53952         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
53953         <bp-sym.h> and <bp-asm.h>.
53954         (memcpy): Don't use BP_SYM.
53955         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
53956         <bp-sym.h> and <bp-asm.h>.
53957         (__mempcpy): Don't use BP_SYM.
53958         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
53959         <bp-sym.h> and <bp-asm.h>.
53960         (__memrchr): Don't use BP_SYM.
53961         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
53962         <bp-sym.h> and <bp-asm.h>.
53963         (memset): Don't use BP_SYM.
53964         (__bzero): Likewise.
53965         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
53966         <bp-sym.h> and <bp-asm.h>.
53967         (__rawmemchr): Don't use BP_SYM.
53968         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
53969         <bp-sym.h> and <bp-asm.h>.
53970         (__STRCMP): Don't use BP_SYM.
53971         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
53972         <bp-sym.h> and <bp-asm.h>.
53973         (strchr): Don't use BP_SYM.
53974         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
53975         <bp-sym.h> and <bp-asm.h>.
53976         (__strchrnul): Don't use BP_SYM.
53977         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
53978         <bp-sym.h> and <bp-asm.h>.
53979         (strlen): Don't use BP_SYM.
53980         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
53981         <bp-sym.h> and <bp-asm.h>.
53982         (strncmp): Don't use BP_SYM.  Remove comment about bounded
53983         pointers.
53984         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
53985         <bp-sym.h> and <bp-asm.h>.
53986         (__strnlen): Don't use BP_SYM.
53987         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
53988         <bp-sym.h> and <bp-asm.h>.
53989         (__GI__setjmp): Don't use BP_SYM.
53990         (_setjmp): Likewise.
53991         (__sigsetjmp): Likewise.
53992         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
53993         (L(start_addresses)): Don't use BP_SYM.
53994         (_start): Likewise.
53995         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
53996         <bp-asm.h>.
53997         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
53998         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
53999         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
54000         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
54001         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
54002         <bp-asm.h>.
54003         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
54004         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
54005         about bounded pointers.
54006         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
54007         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
54008         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
54009         <bp-asm.h>.
54010         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
54011         about bounded pointers.  Remove GKM FIXME comments.
54012         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
54013         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
54014         <bp-asm.h>.
54015         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
54016         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
54017         Remove GKM FIXME comments.
54018         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
54019         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
54020         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
54021         <bp-asm.h>.
54022         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
54023         about bounded pointers.  Remove GKM FIXME comment.
54024         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
54025         and <bp-asm.h>.
54026         (strncmp): Don't use BP_SYM.  Remove comment about bounded
54027         pointers.
54028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
54029         <bp-sym.h> and <bp-asm.h>.
54030         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
54031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
54032         <bp-sym.h> and <bp-asm.h>.
54033         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
54034         comment.
54035
54036 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
54037
54038         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
54039         call free(NULL).
54040
54041 2013-03-05  David S. Miller  <davem@davemloft.net>
54042
54043         * po/es.po: Update from translation team.
54044
54045 2013-03-05  Andreas Jaeger  <aj@suse.de>
54046
54047         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
54048         <bits/mman-linux.h>.
54049         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
54050         is fine.
54051         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
54052         <bits/mman-linux.h> to end of file.
54053         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
54054         is fine.
54055         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
54056         <bits/mman-linux.h> to end of file.
54057         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
54058         is fine.
54059         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
54060         <bits/mman-linux.h> to end of file.
54061
54062         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
54063         (MCL_CURRENT, MCL_FUTURE): Define here.
54064
54065 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54066
54067         [BZ #15232]
54068         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
54069         attribute_hidden.
54070         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
54071
54072 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54073
54074         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
54075         fourth parameter needed for rt_sigprocmask syscall.
54076         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
54077         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
54078         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
54079         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
54080         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
54081         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
54082
54083 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
54084
54085         [BZ #13550]
54086         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
54087         comment about bounded pointers.
54088         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
54089         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
54090
54091 2013-03-04  Andreas Jaeger  <aj@suse.de>
54092
54093         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
54094         common definitions.
54095
54096         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
54097         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
54098         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
54099         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
54100         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
54101         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
54102
54103 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54104
54105         [BZ #15055]
54106         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
54107         __ieee754_sqrl instead of __sqrl.
54108
54109 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
54110
54111         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
54112         * sysdeps/powerpc/fpu_control.h: ... here.
54113         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
54114         * sysdeps/powerpc/bits/fenvinline.h: ... here.
54115         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
54116         * sysdeps/powerpc/bits/mathinline.h: ... here.
54117
54118 2013-03-01  Roland McGrath  <roland@hack.frob.com>
54119
54120         * elf/dl-hwcaps.c (_dl_important_hwcaps):
54121         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
54122         to just [NEED_DL_SYSINFO_DSO].
54123         * elf/dl-support.c: Likewise.
54124         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
54125         * elf/rtld.c (dl_main): Likewise.
54126         * elf/setup-vdso.h (setup_vdso): Likewise.
54127         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
54128         * sysdeps/unix/sysv/linux/dl-sysdep.c
54129         (_dl_discover_osversion): Likewise.
54130
54131 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
54132
54133         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
54134         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
54135
54136 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
54137
54138         * NEWS: Mention libm performance improvements and non-x86 PI
54139         futex support.
54140
54141         * csu/libc-start.c (__pthread_initialize_minimal): Change
54142         function arguments.
54143         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
54144
54145 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
54146
54147         [BZ #13550]
54148         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
54149         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
54150         <bp-sym.h> and <bp-asm.h>.
54151         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
54152         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
54153         and <bp-asm.h>.
54154         (memcpy): Don't use BP_SYM.
54155         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
54156         <bp-asm.h>.
54157         (__mpn_add_n): Don't use BP_SYM.
54158         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
54159         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
54160         and <bp-asm.h>.
54161         (__mpn_addmul_1): Don't use BP_SYM.
54162         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54163         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
54164         <bp-sym.h>.
54165         (_setjmp): Don't use BP_SYM.
54166         (__novmx_setjmp): Likewise.
54167         (__GI__setjmp): Likewise.
54168         (__vmx_setjmp): Likewise.
54169         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
54170         <bp-sym.h>.
54171         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
54172         (__bzero): Don't use BP_SYM.
54173         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
54174         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
54175         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
54176         <bp-sym.h> and <bp-asm.h>.
54177         (memcpy): Don't use BP_SYM.
54178         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
54179         <bp-sym.h> and <bp-asm.h>.
54180         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
54181         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
54182         <bp-sym.h> and <bp-asm.h>.
54183         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
54184         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
54185         <bp-asm.h>.
54186         (__mpn_lshift): Don't use BP_SYM.
54187         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54188         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
54189         <bp-asm.h>.
54190         (memset): Don't use BP_SYM.
54191         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
54192         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
54193         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
54194         <bp-asm.h>.
54195         (__mpn_mul_1): Don't use BP_SYM.
54196         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54197         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
54198         <bp-sym.h> and <bp-asm.h>.
54199         (memcmp): Don't use BP_SYM.
54200         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
54201         <bp-sym.h> and <bp-asm.h>.
54202         (memcpy): Don't use BP_SYM.
54203         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
54204         <bp-sym.h> and <bp-asm.h>.
54205         (memset): Don't use BP_SYM.
54206         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
54207         <bp-sym.h> and <bp-asm.h>.
54208         (strncmp): Don't use BP_SYM.
54209         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
54210         <bp-sym.h> and <bp-asm.h>.
54211         (memcpy): Don't use BP_SYM.
54212         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
54213         <bp-sym.h> and <bp-asm.h>.
54214         (memset): Don't use BP_SYM.
54215         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
54216         <bp-sym.h> and <bp-asm.h>.
54217         (__memchr): Don't use BP_SYM.
54218         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
54219         <bp-sym.h> and <bp-asm.h>.
54220         (memcmp): Don't use BP_SYM.
54221         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
54222         <bp-sym.h> and <bp-asm.h>.
54223         (memcpy): Don't use BP_SYM.
54224         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
54225         <bp-sym.h> and <bp-asm.h>.
54226         (__mempcpy): Don't use BP_SYM.
54227         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
54228         <bp-sym.h> and <bp-asm.h>.
54229         (__memrchr): Don't use BP_SYM.
54230         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
54231         <bp-sym.h> and <bp-asm.h>.
54232         (memset): Don't use BP_SYM.
54233         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
54234         <bp-sym.h> and <bp-asm.h>.
54235         (__rawmemchr): Don't use BP_SYM.
54236         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
54237         <bp-sym.h> and <bp-asm.h>.
54238         (__STRCMP): Don't use BP_SYM.
54239         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
54240         <bp-sym.h> and <bp-asm.h>.
54241         (strchr): Don't use BP_SYM.
54242         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
54243         <bp-sym.h> and <bp-asm.h>.
54244         (__strchrnul): Don't use BP_SYM.
54245         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
54246         <bp-sym.h> and <bp-asm.h>.
54247         (strlen): Don't use BP_SYM.
54248         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
54249         <bp-sym.h> and <bp-asm.h>.
54250         (strncmp): Don't use BP_SYM.
54251         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
54252         <bp-sym.h> and <bp-asm.h>.
54253         (__strnlen): Don't use BP_SYM.
54254         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
54255         <bp-asm.h>.
54256         (__mpn_rshift): Don't use BP_SYM.
54257         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54258         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
54259         <bp-sym.h> and <bp-asm.h>.
54260         (__sigsetjmp): Don't use BP_SYM.
54261         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
54262         (L(start_addresses)): Don't use BP_SYM.
54263         (_start): Likewise.
54264         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
54265         <bp-asm.h>.
54266         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
54267         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
54268         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
54269         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
54270         <bp-asm.h>.
54271         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
54272         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
54273         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
54274         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
54275         <bp-asm.h>.
54276         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
54277         comments.
54278         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
54279         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
54280         <bp-asm.h>.
54281         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
54282         FIXME comments.
54283         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
54284         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
54285         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
54286         <bp-asm.h>.
54287         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
54288         comment.
54289         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
54290         and <bp-asm.h>.
54291         (strncmp): Don't use BP_SYM,
54292         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
54293         <bp-asm.h>.
54294         (__mpn_sub_n): Don't use BP_SYM.
54295         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54296         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
54297         and <bp-asm.h>.
54298         (__mpn_submul_1): Don't use BP_SYM.
54299         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
54301         <bp-sym.h> and <bp-asm.h>.
54302         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
54303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
54304         <bp-sym.h> and <bp-asm.h>.
54305         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
54306         comment.
54307
54308 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54309
54310         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
54311         Use ZK to minimize writes to Z.
54312         (sub_magnitudes): Simplify code a bit.
54313         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
54314         Use ZK to minimize writes to Z.
54315         (sub_magnitudes): Simplify code a bit.
54316
54317 2013-02-27  Roland McGrath  <roland@hack.frob.com>
54318
54319         * csu/gmon-start.c: Add special exception to license text.
54320
54321 2013-02-27  Richard Henderson  <rth@redhat.com>
54322
54323         * scripts/config.guess: Update from config.git.
54324         * scripts/config.sub: Likewise.
54325
54326 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54327
54328         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
54329
54330         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
54331
54332         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
54333
54334         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
54335
54336         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
54337
54338 2013-02-26  Roland McGrath  <roland@hack.frob.com>
54339
54340         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
54341         [$(build-shared = yes].
54342
54343 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
54344
54345         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
54346         (__mul): Reduce iterations for calculating mantissa.
54347
54348         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
54349         MPTWO.
54350         (__mpranred): Likewise.
54351
54352         [BZ #15160]
54353         * malloc/memusagestat.c (main): Draw graphs for heap and stack
54354         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
54355
54356 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54357
54358         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
54359         Define __attribute__.
54360
54361 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
54362
54363         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
54364         unused.
54365         * posix/regex_internal.h (__attribute): Remove.
54366         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
54367         (re_string_context_at): Likewise.
54368         (bitset_not): Use __attribute__ and mark function as possibly
54369         unused.
54370         (bitset_merge): Likewise.
54371         (bitset_mask): Likewise.
54372         (re_string_char_size_at): Likewise.
54373         (re_string_wchar_at): Likewise.
54374         (re_string_elem_size_at): Likewise.
54375
54376 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
54377
54378         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
54379         code.
54380         (cc32): Likewise.
54381
54382         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
54383         (__acr): Likewise.
54384         (__cpy): Likewise.
54385         (norm): Likewise.
54386         (denorm): Likewise.
54387         (__dbl_mp): Likewise.
54388         (add_magnitudes): Likewise.
54389         (sub_magnitudes): Likewise.
54390         (__mul): Likewise.
54391         (__inv): Likewise.
54392
54393         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
54394         style.
54395
54396         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
54397         style.
54398
54399         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
54400         code.
54401
54402         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
54403         up changes with default code.
54404         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
54405         Likewise.
54406
54407 2013-02-24  Allan McRae  <allan@archlinux.org>
54408
54409         * manual/socket.texi (The Internet Namespace): Order menu items
54410         to match that in the file.
54411
54412         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
54413         node listing of the info page menu.
54414
54415 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
54416
54417         [BZ #13550]
54418         * sysdeps/i386/bp-asm.h: Remove file.
54419         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
54420         (PARMS): Do not use macros from bp-asm.h.
54421         (S1): Likewise.
54422         (S2): Likewise.
54423         (SIZE): Likewise.
54424         (__mpn_add_n): Do not use BP_SYM
54425         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
54426         "bp-asm.h".
54427         (PARMS): Do not use macros from bp-asm.h.
54428         (S1): Likewise.
54429         (SIZE): Likewise.
54430         (__mpn_addmul_1): Do not use BP_SYM
54431         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
54432         "bp-asm.h".
54433         (PARMS): Do not use macros from bp-asm.h.
54434         (SIGMSK): Likewise.
54435         (_setjmp): Likewise.  Do not use BP_SYM.
54436         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
54437         "bp-asm.h".
54438         (PARMS): Do not use macros from bp-asm.h.
54439         (SIGMSK): Likewise.
54440         (setjmp): Likewise.  Do not use BP_SYM.
54441         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
54442         "bp-asm.h".
54443         (PARMS): Do not use macros from bp-asm.h.
54444         (__frexp): Do not use BP_SYM.
54445         (frexp): Likewise.
54446         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
54447         "bp-asm.h".
54448         (PARMS): Do not use macros from bp-asm.h.
54449         (__frexpf): Do not use BP_SYM.
54450         (frexpf): Likewise.
54451         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
54452         "bp-asm.h".
54453         (PARMS): Do not use macros from bp-asm.h.
54454         (__frexpl): Do not use BP_SYM.
54455         (frexpl): Likewise.
54456         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
54457         "bp-asm.h".
54458         (PARMS): Do not use macros from bp-asm.h.
54459         (__remquo): Do not use BP_SYM.
54460         (remquo): Likewise.
54461         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
54462         "bp-asm.h".
54463         (PARMS): Do not use macros from bp-asm.h.
54464         (__remquof): Do not use BP_SYM.
54465         (remquof): Likewise.
54466         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
54467         "bp-asm.h".
54468         (PARMS): Do not use macros from bp-asm.h.
54469         (__remquol): Do not use BP_SYM.
54470         (remquol): Likewise.
54471         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
54472         "bp-asm.h".
54473         (PARMS): Do not use macros from bp-asm.h.
54474         (DEST): Likewise.
54475         (SRC): Likewise.
54476         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
54477         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
54478         "bp-asm.h".
54479         (PARMS): Do not use macros from bp-asm.h.
54480         (strlen): Do not use BP_SYM.
54481         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
54482         "bp-asm.h".
54483         (PARMS): Do not use macros from bp-asm.h.
54484         (S1): Likewise.
54485         (S2): Likewise.
54486         (SIZE): Likewise.
54487         (__mpn_add_n): Do not use BP_SYM.
54488         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
54489         "bp-asm.h".
54490         (PARMS): Do not use macros from bp-asm.h.
54491         (S1): Likewise.
54492         (SIZE): Likewise.
54493         (__mpn_addmul_1): Do not use BP_SYM.
54494         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
54495         weak_alias.
54496         (bzero): Likewise.
54497         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
54498         "bp-asm.h".
54499         (PARMS): Do not use macros from bp-asm.h.
54500         (S): Likewise.
54501         (SIZE): Likewise.
54502         (__mpn_lshift): Do not use BP_SYM.
54503         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
54504         "bp-asm.h".
54505         (PARMS): Do not use macros from bp-asm.h.
54506         (DEST): Likewise.
54507         (SRC): Likewise.
54508         (LEN): Likewise.
54509         (memcpy): Likewise.  Do not use BP_SYM.
54510         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
54511         libc_hidden_def and weak_alias.
54512         (mempcpy): Do not use BP_SYM in weak_alias.
54513         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
54514         "bp-asm.h".
54515         (PARMS): Do not use macros from bp-asm.h.
54516         (DEST): Likewise.
54517         (LEN): Likewise.
54518         [!BZERO_P] (CHR): Likewise.
54519         (memset): Likewise.  Do not use BP_SYM.
54520         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
54521         "bp-asm.h".
54522         (PARMS): Do not use macros from bp-asm.h.
54523         (S1): Likewise.
54524         (SIZE): Likewise.
54525         (__mpn_mul_1): Do not use BP_SYM.
54526         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
54527         "bp-asm.h".
54528         (PARMS): Do not use macros from bp-asm.h.
54529         (S): Likewise.
54530         (SIZE): Likewise.
54531         (__mpn_rshift): Do not use BP_SYM.
54532         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
54533         "bp-asm.h".
54534         (PARMS): Do not use macros from bp-asm.h.
54535         (STR): Likewise.
54536         (CHR): Likewise.
54537         (strchr): Likewise.  Do not use BP_SYM.
54538         (index): Do not use BP_SYM in weak_alias.
54539         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
54540         "bp-asm.h".
54541         (PARMS): Do not use macros from bp-asm.h.
54542         (DEST): Likewise.
54543         (SRC): Likewise.
54544         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
54545         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
54546         "bp-asm.h".
54547         (PARMS): Do not use macros from bp-asm.h.
54548         (strlen): Do not use BP_SYM.
54549         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
54550         "bp-asm.h".
54551         (PARMS): Do not use macros from bp-asm.h.
54552         (S1): Likewise.
54553         (S2): Likewise.
54554         (SIZE): Likewise.
54555         (__mpn_sub_n): Do not use BP_SYM.
54556         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
54557         "bp-asm.h".
54558         (PARMS): Do not use macros from bp-asm.h.
54559         (S1): Likewise.
54560         (SIZE): Likewise.
54561         (__mpn_submul_1): Do not use BP_SYM.
54562         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
54563         "bp-asm.h".
54564         (PARMS): Do not use macros from bp-asm.h.
54565         (S1): Likewise.
54566         (S2): Likewise.
54567         (SIZE): Likewise.
54568         (__mpn_add_n): Do not use BP_SYM.
54569         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
54570         weak_alias.
54571         (bzero): Likewise.
54572         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
54573         "bp-asm.h".
54574         (PARMS): Do not use macros from bp-asm.h.
54575         (BLK2): Likewise.
54576         (LEN): Likewise.
54577         (memcmp): Do not use BP_SYM.
54578         (bcmp): Do not use BP_SYM in weak_alias.
54579         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
54580         "bp-asm.h".
54581         (PARMS): Do not use macros from bp-asm.h.
54582         (DEST): Likewise.
54583         (SRC): Likewise.
54584         (LEN): Likewise.
54585         (memcpy): Likewise.  Do not use BP_SYM.
54586         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
54587         "bp-asm.h".
54588         (PARMS): Do not use macros from bp-asm.h.
54589         (DEST): Likewise.
54590         (SRC): Likewise.
54591         (LEN): Likewise.
54592         (memmove): Likewise.  Do not use BP_SYM.
54593         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
54594         "bp-asm.h".
54595         (PARMS): Do not use macros from bp-asm.h.
54596         (DEST): Likewise.
54597         (SRC): Likewise.
54598         (LEN): Likewise.
54599         (__mempcpy): Likewise.  Do not use BP_SYM.
54600         (mempcpy): Do not use BP_SYM in weak_alias.
54601         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
54602         "bp-asm.h".
54603         (PARMS): Do not use macros from bp-asm.h.
54604         (DEST): Likewise.
54605         (LEN): Likewise.
54606         [!BZERO_P] (CHR): Likewise.
54607         (memset): Likewise.  Do not use BP_SYM.
54608         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
54609         "bp-asm.h".
54610         (PARMS): Do not use macros from bp-asm.h.
54611         (STR2): Likewise.
54612         (strcmp): Do not use BP_SYM.
54613         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
54614         "bp-asm.h".
54615         (PARMS): Do not use macros from bp-asm.h.
54616         (STR): Likewise.
54617         (DELIM): Likewise.
54618         [USE_AS_STRTOK_R] (SAVE): Likewise.
54619         (FUNCTION): Likewise.  Do not use BP_SYM.
54620         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
54621         aliases.
54622         (strtok_r): Likewise.
54623         (__GI___strtok_r): Likewise.
54624         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
54625         (PARMS): Do not use macros from bp-asm.h.
54626         (S): Likewise.
54627         (SIZE): Likewise.
54628         (__mpn_lshift): Do not use BP_SYM.
54629         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
54630         (PARMS): Do not use macros from bp-asm.h.
54631         (STR): Likewise.
54632         (CHR): Likewise.
54633         (__memchr): Do not use BP_SYM.
54634         (memchr): Do not use BP_SYM in weak_alias.
54635         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
54636         (PARMS): Do not use macros from bp-asm.h.
54637         (BLK2): Likewise.
54638         (LEN): Likewise.
54639         (memcmp): Do not use BP_SYM.
54640         (bcmp): Do not use BP_SYM in weak_alias.
54641         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
54642         (PARMS): Do not use macros from bp-asm.h.
54643         (S1): Likewise.
54644         (SIZE): Likewise.
54645         (__mpn_mul_1): Do not use BP_SYM.
54646         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
54647         "bp-asm.h".
54648         (PARMS): Do not use macros from bp-asm.h.
54649         (STR): Likewise.
54650         (CHR): Likewise.
54651         (__rawmemchr): Do not use BP_SYM.
54652         (rawmemchr): Do not use BP_SYM in weak_alias.
54653         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
54654         (PARMS): Do not use macros from bp-asm.h.
54655         (S): Likewise.
54656         (SIZE): Likewise.
54657         (__mpn_rshift): Do not use BP_SYM.
54658         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
54659         (PARMS): Do not use macros from bp-asm.h.
54660         (SIGMSK): Likewise.
54661         (__sigsetjmp): Likewise.  Do not use BP_SYM.
54662         * sysdeps/i386/start.S: Do not include "bp-sym.h".
54663         (_start): Do not use BP_SYM.
54664         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
54665         (PARMS): Do not use macros from bp-asm.h.
54666         (DEST): Likewise.
54667         (SRC): Likewise.
54668         (__stpcpy): Likewise.  Do not use BP_SYM.
54669         (stpcpy): Do not use BP_SYM in weak_alias.
54670         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
54671         "bp-asm.h".
54672         (PARMS): Do not use macros from bp-asm.h.
54673         (DEST): Likewise.
54674         (SRC): Likewise.
54675         (LEN): Likewise.
54676         (__stpncpy): Likewise.  Do not use BP_SYM.
54677         (stpncpy): Do not use BP_SYM in weak_alias.
54678         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
54679         (PARMS): Do not use macros from bp-asm.h.
54680         (STR): Likewise.
54681         (CHR): Likewise.
54682         (strchr): Likewise.  Do not use BP_SYM.
54683         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
54684         "bp-asm.h".
54685         (PARMS): Do not use macros from bp-asm.h.
54686         (STR): Likewise.
54687         (CHR): Likewise.
54688         (__strchrnul): Likewise.  Do not use BP_SYM.
54689         (strchrnul): Do not use BP_SYM in weak_alias.
54690         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
54691         "bp-asm.h".
54692         (PARMS): Do not use macros from bp-asm.h.
54693         (STOP): Likewise.
54694         (strcspn): Do not use BP_SYM.
54695         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
54696         "bp-asm.h".
54697         (PARMS): Do not use macros from bp-asm.h.
54698         (STR): Likewise.
54699         (STOP): Likewise.
54700         (strpbrk): Likewise.  Do not use BP_SYM.
54701         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
54702         "bp-asm.h".
54703         (PARMS): Do not use macros from bp-asm.h.
54704         (STR): Likewise.
54705         (CHR): Likewise.
54706         (strrchr): Likewise.  Do not use BP_SYM.
54707         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
54708         (PARMS): Do not use macros from bp-asm.h.
54709         (SKIP): Likewise.
54710         (strspn): Do not use BP_SYM.
54711         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
54712         (PARMS): Do not use macros from bp-asm.h.
54713         (STR): Likewise.
54714         (DELIM): Likewise.
54715         (SAVE): Likewise.
54716         (FUNCTION): Likewise.  Do not use BP_SYM.
54717         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
54718         aliases.
54719         (strtok_r): Likewise.
54720         (__GI___strtok_r): Likewise.
54721         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
54722         (PARMS): Do not use macros from bp-asm.h.
54723         (S1): Likewise.
54724         (S2): Likewise.
54725         (SIZE): Likewise.
54726         (__mpn_sub_n): Do not use BP_SYM.
54727         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
54728         "bp-asm.h".
54729         (PARMS): Do not use macros from bp-asm.h.
54730         (S1): Likewise.
54731         (SIZE): Likewise.
54732         (__mpn_submul_1): Do not use BP_SYM.
54733         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
54734         <bp-sym.h>.
54735         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
54736         and <bp-asm.h>.
54737         (PARMS): Do not use macros from bp-asm.h.
54738         (FLAGS): Likewise.
54739         (PTID): Likewise.
54740         (TLS): Likewise.
54741         (CTID): Likewise.
54742         (__clone): Do not use BP_SYM.
54743         (clone): Do not use BP_SYM in weak_alias.
54744         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
54745         and <bp-asm.h>.
54746         (PARMS): Do not use macros from bp-asm.h.
54747         (LEN): Likewise.
54748         (__mmap64): Do not use BP_SYM.
54749         (mmap64): Do not use BP_SYM in weak_alias.
54750         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
54751         <bp-sym.h> and <bp-asm.h>.
54752         (PARMS): Do not use macros from bp-asm.h.
54753         (__posix_fadvise64_l64): Do not use BP_SYM.
54754         * sysdeps/unix/sysv/linux/i386/semtimedop.S
54755         (PARMS): Do not use macros from bp-asm.h.
54756         (NSOPS): Likewise.
54757         (semtimedop): Do not use BP_SYM.
54758         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
54759         and <bp-asm.h>.
54760
54761 2013-02-21  Allan McRae  <allan@archlinux.org>
54762
54763         * manual/message.texi (Charset conversion in gettext):
54764         Move @end statement to beginning of line.
54765
54766 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
54767
54768         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
54769         static.
54770         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
54771         Likewise.
54772
54773         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
54774         (denorm): Likewise.
54775         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
54776         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
54777
54778 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54779
54780         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
54781         tail-call to the resolved function if pltexit isn't needed.
54782
54783 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
54784
54785         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
54786         or Y being zero as being unlikely.
54787         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
54788         Likewise.
54789
54790 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
54791
54792         * manual/nss.texi (System Databases and Name Service Switch):
54793         Remove frobnicate @pxref.
54794
54795 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
54796
54797         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
54798         __attribute__ ((unused)) to __attribute__ ((__unused__)).
54799
54800 2013-02-20  Petr Machata  <pmachata@redhat.com>
54801
54802         * elf/elf.h (R_ARM_TARGET1): New macro.
54803         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
54804         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
54805         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
54806         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
54807         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
54808         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
54809         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
54810         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
54811         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
54812         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
54813         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
54814         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
54815         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
54816         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
54817         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
54818         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
54819         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
54820         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
54821         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
54822         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
54823         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
54824         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
54825         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
54826         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
54827         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
54828         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
54829         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
54830         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
54831         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
54832         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
54833         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
54834         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
54835         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
54836         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
54837         (R_ARM_THM_GOT_BREL12): Likewise.
54838         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
54839         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
54840         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
54841         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
54842         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
54843         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
54844         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
54845         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
54846         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
54847
54848 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
54849
54850         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
54851         __attribute_used__ to __attribute__ ((unused)).
54852
54853 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
54854
54855         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
54856         powerpc mpa.c.
54857         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
54858         comment formatting.
54859         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
54860
54861 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
54862
54863         [BZ #13550]
54864         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
54865         Remove macro.
54866         (ENTER): Remove both macro definitions.
54867         (LEAVE): Likewise.
54868         (CHECK_BOUNDS_LOW): Likewise.
54869         (CHECK_BOUNDS_HIGH): Likewise.
54870         (CHECK_BOUNDS_BOTH): Likewise.
54871         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
54872         (RETURN_BOUNDED_POINTER): Likewise.
54873         (RETURN_NULL_BOUNDED_POINTER): Likewise.
54874         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
54875         (POP_ERRNO_LOCATION_RETURN): Likewise.
54876         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
54877         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54878         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
54879         macros.
54880         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54881         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
54882         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
54883         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
54884         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
54885         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
54886         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
54887         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
54888         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
54889         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
54890         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
54891         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
54892         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54893         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
54894         removed macros.
54895         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54896         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
54897         macros.
54898         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54899         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
54900         * sysdeps/i386/i586/memset.S (memset): Likewise.
54901         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
54902         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54903         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
54904         macros.
54905         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54906         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
54907         Change uses of L(2) to L(out).
54908         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
54909         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
54910         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
54911         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54912         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
54913         removed macros.
54914         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54915         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
54916         macros.
54917         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54918         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
54919         (RETURN): Do not use macro LEAVE.
54920         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
54921         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
54922         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
54923         * sysdeps/i386/i686/memset.S (memset): Likewise.
54924         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
54925         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
54926         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
54927         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
54928         Likewise.
54929         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
54930         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
54931         L(1_2) and L(1_3) into L(1).
54932         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
54933         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
54934         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54935         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
54936         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
54937         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
54938         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
54939         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54940         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
54941         macros.
54942         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
54943         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54944         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
54945         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
54946         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
54947         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
54948         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
54949         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
54950         * sysdeps/i386/strcspn.S (strcspn): Likewise.
54951         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
54952         * sysdeps/i386/strrchr.S (strrchr): Likewise.
54953         * sysdeps/i386/strspn.S (strspn): Likewise.
54954         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
54955         conditional code.
54956         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
54957         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
54958         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
54959         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
54960         L(1_3) into L(1_1).
54961         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
54962         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54963         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
54964         macros.
54965         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54966
54967 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
54968
54969         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
54970         macro.
54971
54972 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54973
54974         * math/atest-exp.c (exp_mpn): Remove ROUND.
54975         * math/atest-exp2.c (exp_mpn): Likewise.
54976         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
54977
54978         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
54979         * stdlib/tst-tls-atexit-lib.c: Likewise.
54980         * stdlib/tst-tls-atexit.c: Likewise.
54981
54982 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
54983
54984         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
54985         and __attribute_alloc_size__.
54986
54987 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
54988
54989         * include/programs/xmalloc.h: Change __attribute_alloc_size to
54990         __attribute_alloc_size__.
54991         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
54992         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
54993
54994 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
54995
54996         * include/programs/xmalloc.h: New file.
54997         * catgets/gencat.c: Include it.
54998         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
54999         * elf/pldd.c: Likewise.
55000         * iconv/iconv_charmap.c: Likewise.
55001         * iconv/iconvconfig.c: Likewise.
55002         * iconv/strtab.c: Likewise.
55003         * locale/programs/locale.c: Likewise.
55004         * locale/programs/localedef.h: Likewise.
55005         * locale/programs/simple-hash.c: Likewise.
55006         * nscd/nscd.h: Likewise.
55007         * nss/makedb.c: Likewise.
55008         * sysdeps/generic/ldconfig.h: Likewise.
55009
55010 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
55011
55012         * Versions.def: Add GLIBC_2.18.
55013         * include/link.h (struct link_map): New member l_tls_dtor_count.
55014         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
55015         (__call_tls_dtors): Likewise.
55016         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
55017         __cxa_thread_atexit_impl.
55018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55019         Likewise.
55020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55021         Likewise.
55022         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
55023         Likewise.
55024         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
55025         Likewise.
55026         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
55027         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
55028         Likewise.
55029         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
55030         Likewise.
55031         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
55032         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
55033         Likewise.
55034         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
55035         (tests): Add test case tst-tls-atexit.
55036         (modules-names): Add shared library for tst-tls-atexit.
55037         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
55038         (GLIBC_PRIVATE): Add __call_tls_dtors.
55039         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
55040         for libstdc++.
55041         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
55042         * stdlib/tst-tls-atexit.c: New test case.
55043         * stdlib/tst-tls-atexit-lib.c: New test case.
55044
55045         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
55046
55047         * elf/Versions (ld): Add _dl_find_dso_for_object.
55048         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
55049         * elf/dl-open.c (_dl_find_dso_for_object): New function.
55050         (dl_open_worker): Use _dl_find_dso_for_object.
55051         * elf/dl-sym.c (do_sym): Likewise.
55052         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
55053
55054 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55055
55056         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
55057         Syntactic changes only.
55058         (_dl_runtime_profile): Do a tail-call to the resolved function.
55059
55060 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
55061
55062         [BZ #13550]
55063         * sysdeps/x86_64/bp-asm.h: Remove file.
55064         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
55065         <bp-sym.h> and <bp-asm.h>.
55066         (__clone): Do not use BP_SYM.
55067         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
55068         <bp-sym.h> and <bp-asm.h>.
55069         * sysdeps/unix/x86_64/sysdep.S: Likewise.
55070         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
55071         "bp-asm.h".
55072         (_setjmp): Do not use BP_SYM.
55073         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
55074         "bp-asm.h".
55075         (setjmp): Do not use BP_SYM.
55076         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
55077         libc_hidden_def.
55078         (mempcpy): Do not use BP_SYM in weak_alias.
55079         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
55080         "bp-asm.h".
55081         (strchr): Do not use BP_SYM.
55082         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
55083         "bp-asm.h".
55084         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
55085         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
55086         (_start): Do not use BP_SYM.
55087         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
55088         "bp-asm.h".
55089         (strcat): Do not use BP_SYM.
55090         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
55091         "bp-asm.h".
55092         (STRCMP): Do not use BP_SYM.
55093         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
55094         "bp-asm.h".
55095         (STRCPY): Do not use BP_SYM.
55096         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
55097         "bp-asm.h".
55098         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
55099         "bp-asm.h".
55100         (FUNCTION): Do not use BP_SYM.
55101         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
55102         weak_alias.
55103         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
55104
55105 2013-02-17  Andreas Jaeger  <aj@suse.de>
55106
55107         * time/Versions: Sort entries.
55108         * string/Versions: Likewise.
55109         * resolv/Versions: Likewise.
55110         * posix/Versions: Likewise.
55111         * iconv/Versions: Likewise.
55112         * elf/Versions: Likewise.
55113         * wcsmbs/Versions: Likewise.
55114
55115 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55116
55117         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
55118         loop termination condition.
55119
55120         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
55121         variable to calculate EZ.
55122         (__sqr): Likewise.
55123
55124         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
55125         the lower precision input.
55126
55127 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
55128
55129         [BZ #13550]
55130         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
55131         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
55132         (run-via-rtld-prefix): Do not handle %-bp tests.
55133         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
55134         (all-object-suffixes): Remove .ob.
55135         (bppfx): Remove variable.
55136         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
55137         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
55138         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
55139         [$(build-bounded) = yes] (libtype.ob): Likewise.
55140         * Makerules (elide-routines.ob): Remove variable.
55141         (do-tests-clean): Do not handle *-bp.out.
55142         (common-mostlyclean): Do not handle *-bp and *-bp.out.
55143         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
55144         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
55145         (tests): Do not include $(tests-bp.out).
55146         (xtests): Do not include $(xtests-bp.out).
55147         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
55148         [$(build-bounded) = yes] ($(addprefix
55149         $(objpfx),$(binaries-bounded))): Remove rule.
55150         ($(objpfx)%-bp.out): Remove rule.
55151         * config.make.in (build-bounded): Remove variable.
55152         * crypt/Makefile [$(build-bounded) = yes]
55153         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
55154         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
55155         append to variable.
55156         [$(build-bounded) = yes] (install-lib): Likewise.
55157         [$(build-bounded) = yes] (generated): Likewise.
55158         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
55159         Remove rule.
55160         * intl/Makefile [$(build-bounded) = yes]
55161         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
55162         * math/Makefile [$(build-bounded) = yes]
55163         ($(tests:%=$(objpfx)%-bp): Likewise.
55164         * misc/Makefile [$(build-bounded) = yes]
55165         ($(objpfx)tst-tsearch-bp): Likewise.
55166         * nptl/Makeconfig (bounded-thread-library): Remove variable.
55167         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
55168         Remove dependency.
55169         * string/Makefile (o-objects.ob): Remove variable.
55170         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
55171         (CFLAGS-.ob): Remove variable.
55172         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
55173         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
55174         both definitions of variable.
55175         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
55176         (ASFLAGS-.ob): Remove variable.
55177
55178 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
55179
55180         [BZ #13550]
55181         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
55182         Remove __BOUNDED_POINTERS__ from condition.
55183         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
55184         * string/bits/string2.h [!__NO_STRING_INLINES &&
55185         !__BOUNDED_POINTERS__]: Likewise.
55186         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
55187         Likewise.
55188         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
55189         Remove conditional code.
55190         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
55191         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
55192         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
55193         condition.
55194
55195         [BZ #13550]
55196         * csu/libc-start.c: Do not include <bp-sym.h>.
55197         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
55198         * elf/dl-open.c: Do not include <bp-sym.h>.
55199         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
55200         * math/fegetenv.c: Do not include <bp-sym.h>.
55201         (fegetenv): Do not use BP_SYM in versioned symbols.
55202         * nptl/sysdeps/pthread/bits/libc-lockP.h
55203         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
55204         <bp-sym.h>.
55205         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55206         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
55207         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55208         (__pthread_mutex_destroy): Likewise.
55209         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55210         (__pthread_mutex_lock): Likewise.
55211         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55212         (__pthread_mutex_trylock): Likewise.
55213         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55214         (__pthread_mutex_unlock): Likewise.
55215         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55216         (__pthread_mutexattr_init): Likewise.
55217         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55218         (__pthread_mutexattr_destroy): Likewise.
55219         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55220         (__pthread_mutexattr_settype): Likewise.
55221         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55222         (__pthread_rwlock_init): Likewise.
55223         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55224         (__pthread_rwlock_destroy): Likewise.
55225         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55226         (__pthread_rwlock_rdlock): Likewise.
55227         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55228         (__pthread_rwlock_tryrdlock): Likewise.
55229         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55230         (__pthread_rwlock_wrlock): Likewise.
55231         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55232         (__pthread_rwlock_trywrlock): Likewise.
55233         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55234         (__pthread_rwlock_unlock): Likewise.
55235         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55236         (__pthread_key_create): Likewise.
55237         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55238         (__pthread_setspecific): Likewise.
55239         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55240         (__pthread_getspecific): Likewise.
55241         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
55242         Likewise.
55243         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55244         (_pthread_cleanup_push_defer): Likewise.
55245         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55246         (_pthread_cleanup_pop_restore): Likewise.
55247         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
55248         (pthread_setcancelstate): Likewise.
55249         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
55250         <bp-sym.h>.
55251         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
55252         (memchr): Do not use BP_SYM in weak_alias.
55253         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
55254         (fegetenv): Do not use BP_SYM in versioned symbols.
55255         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
55256         (fesetenv): Do not use BP_SYM in versioned symbols.
55257         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
55258         (feupdateenv): Do not use BP_SYM in versioned symbols.
55259         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
55260         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
55261         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
55262         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
55263         (open64): Do not use BP_SYM in weak_alias.
55264         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
55265         (fegetenv): Do not use BP_SYM in versioned symbols.
55266         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
55267         (fesetenv): Do not use BP_SYM in versioned symbols.
55268         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
55269         (feupdateenv): Do not use BP_SYM in versioned symbols.
55270         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
55271         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
55272         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
55273         (feraiseexcept): Do not use BP_SYM in versioned symbols.
55274         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
55275         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
55276         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
55277         <bp-sym.h>.
55278         (__libc_start_main): Do not use BP_SYM.
55279
55280 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
55281
55282         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
55283         redundant return line.
55284         (norm): Likewise.
55285         (denorm): Likewise.
55286         (dbl_mp): Likewise.
55287         (sub_magnitudes): Likewise.
55288         (__add): Likewise.
55289         (__sub): Likewise.
55290         (__mul): Likewise.
55291         (__inv): Likewise.
55292         (__dvd): Likewise.
55293         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
55294         (norm): Likewise.
55295         (denorm): Likewise.
55296         (dbl_mp): Likewise.
55297         (sub_magnitudes): Likewise.
55298         (__add): Likewise.
55299         (__sub): Likewise.
55300         (__mul): Likewise.
55301         (__inv): Likewise.
55302         (__dvd): Likewise.
55303
55304         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
55305         instead of __mul.
55306         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
55307         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
55308         (cc32): Likewise.
55309
55310         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
55311         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
55312         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
55313         of __mul for squares.
55314         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
55315         function
55316         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
55317         Likewise.
55318         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
55319         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
55320
55321 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
55322
55323         [BZ #13550]
55324         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
55325         code.
55326         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
55327         prototype or function definition.  Rename ubp_* variables and
55328         parameters.  Remove argv definitions conditional on
55329         [__BOUNDED_POINTERS__].
55330         * debug/backtrace.c (__backtrace): Do not use __unbounded.
55331         * elf/dl-runtime.c (_dl_fixup): Likewise.
55332         * include/set-hooks.h (RUN_HOOK): Likewise.
55333         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
55334         definition.
55335         * string/strcpy.c (strcpy): Do not use __unbounded.
55336         * sysdeps/generic/frame.h (struct layout): Likewise.
55337         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
55338         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
55339         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
55340         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
55341         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
55342         (__backtrace): Likewise.
55343         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
55344         use __ptrvalue.
55345         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
55346         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
55347         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
55348         Likewise.
55349         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
55350         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
55351         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
55352         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
55353         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
55354         Do not use __unbounded.
55355         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
55356         Rename __unboundedrlimits parameter to rlimits in prototype.
55357         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
55358         Do not use __unbounded.
55359         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
55360         not use __ptrvalue.
55361         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
55362         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
55363         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
55364         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
55365         __ptrvalue or __unbounded.
55366         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
55367         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
55368         use __unbounded.
55369         (__new_msgctl): Do not use __ptrvalue.
55370         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
55371         __unbounded.
55372         (__libc_msgrcv): Do not use __ptrvalue.
55373         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
55374         startup_info): Do not use __unbounded.
55375         (__libc_start_main): Likewise.  Rename ubp_* variables and
55376         parameters.  Remove argv definitions conditional on
55377         [__BOUNDED_POINTERS__].
55378         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
55379         __ptrvalue.
55380         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
55381         use __unbounded.
55382         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
55383         or __ptrvalue.
55384         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
55385         use __unbounded.
55386         (__new_shmctl): Do not use __ptrvalue.
55387         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
55388         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
55389         Likewise.
55390         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
55391         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
55392         (__libc_sigaction): Likewise.
55393         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
55394         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
55395         Likewise.
55396         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
55397
55398 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
55399
55400         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
55401
55402         * string/mempcpy.c: Implement by calling memcpy.
55403
55404 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
55405
55406         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
55407
55408         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
55409         evaluation.
55410
55411         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
55412         values in the mantissa.
55413
55414         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
55415         minimize writes to Z.
55416         (sub_magnitudes): Simplify code a bit.
55417
55418 2013-02-12  Roland McGrath  <roland@hack.frob.com>
55419
55420         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
55421         from the message.  The linker prefixes all warnings with that already.
55422
55423 2013-02-12  Andreas Schwab  <schwab@suse.de>
55424
55425         [BZ #15078]
55426         * posix/regexec.c (extend_buffers): Add parameter min_len.
55427         (check_matching): Pass minimum needed length.
55428         (clean_state_log_if_needed): Likewise.
55429         (get_subexp): Likewise.
55430         * posix/Makefile (tests): Add bug-regex34.
55431         (bug-regex34-ENV): Define.
55432         * posix/bug-regex34.c: New file.
55433
55434         [BZ #11561]
55435         * posix/regcomp.c (parse_bracket_exp): When looking up collating
55436         elements compare against the byte sequence of it, not its name.
55437         * posix/Makefile (tests): Add bug-regex35.
55438         (bug-regex35-ENV): Define.
55439         * posix/bug-regex35.c: New file.
55440
55441 2013-02-11  Tom de Vries  <tom@codesourcery.com>
55442
55443         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
55444         comment.
55445         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
55446         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
55447         (CHECK_EOL): Add undef.
55448
55449 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
55450
55451         * bits/stdlib-bsearch.h: New file.
55452         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
55453         * stdlib/stdlib.h: Likewise.
55454
55455 2013-02-11  Roland McGrath  <roland@hack.frob.com>
55456
55457         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
55458         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
55459         declaration.
55460         * manual/search.texi (Array Search Function): Add missing const in
55461         lfind prototype.
55462         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
55463         declaration to use rlim_t.
55464         (Basic Scheduling Functions): Remove erroneous const from
55465         sched_getparam prototype.  Remove erroneous * from
55466         sched_get_priority_max and sched_get_priority_min prototypes.
55467         (Resource Usage): Fix summary @comment on vtimes to refer to
55468         sys/vtimes.h rather than vtimes.h.
55469         Add missing *s in vtimes prototype.
55470         (Limits on Resources): Fix ulimit prototype to return long int.
55471         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
55472         prototypes to use long int rather than double.
55473         (BSD Random): Fix initstate and setstate to use char *, not void *.
55474         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
55475         prototype to make second argument 'struct aiocb64 *const[]'.
55476         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
55477         (Status of AIO Operations): Remove erroneous const in aio_return and
55478         aio_return64 prototypes.
55479         (Synchronizing I/O): Fix sync prototype to return void.
55480         * manual/startup.texi (Suboptions): Remove an erroneous const in
55481         getsubopt prototype.
55482         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
55483         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
55484         use size_t rather than int.
55485         (Scanning All Users): Likewise for getpwent_r.
55486         (Setting Groups): Add missing const to setgroups prototype.
55487         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
55488         * manual/socket.texi (Host Names): Fix gethostbyaddr and
55489         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
55490         'const void *' rather than 'const char *'.
55491         (Host Address Functions): Likewise for inet_ntop.
55492         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
55493         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
55494         ssize_t for return value.
55495         (Sending Data): Likewise for send, sendto, sendmsg.
55496         (Socket Option Functions): Add a missing const in setsockopt prototype.
55497         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
55498         use wchar_t for the argument.
55499         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
55500         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
55501         take no arguments.
55502         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
55503         double/float/long double for second argument.
55504         Fix return types of significand, significandf, significandl.
55505         * manual/filesys.texi (Setting Permissions): Use mode_t for second
55506         argument in fchmod prototype.
55507         (File Owner): Use uid_t and gid_t in fchown prototype.
55508         (File Times): Add const to utimes, futimes, and lutimes prototypes.
55509         (Making Special Files): Use mode_t and dev_t in mknod prototype.
55510         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
55511         use 'const struct dirent **' as argument types to CMP function pointer
55512         argument.
55513         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
55514         (File Times): Fix summary magic @comment for struct utimbuf and utime
55515         to refer to utime.h, not time.h.
55516         * manual/string.texi (Argz Functions): Add missing const in
55517         argz_extract and argz_next prototypes.
55518         (Finding Tokens in a String): Likewise for basename.
55519         (String/Array Comparison): Fix typo in wcscasecmp prototype.
55520         (Copying and Concatenation): Fix typo in wmemmove prototype.
55521         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
55522         (Signal Stack): Remove erroneous const in sigstack prototype.
55523         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
55524         prototype.
55525         (Simple Calendar Time): Likewise for stime.
55526         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
55527         prototype.
55528         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
55529         say sys/sysctl.h instead.
55530         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
55531         and vsyslog prototypes.
55532
55533 2013-02-11  Tom de Vries  <tom@codesourcery.com>
55534
55535         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
55536         Remove.
55537
55538 2013-02-11  Roland McGrath  <roland@hack.frob.com>
55539
55540         * misc/sys/mman.h: Fix typo in mremap comment.
55541
55542 2013-02-08  Roland McGrath  <roland@hack.frob.com>
55543
55544         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
55545         the '\0' terminator.
55546
55547 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
55548
55549         [BZ #13550]
55550         * debug/segfault.c: Don't include <bp-checks.h>.
55551         * sysdeps/generic/bp-checks.h: Remove file.
55552         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
55553         (__GETDENTS): Don't use CHECK_N.
55554         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
55555         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
55556         (__getgroups): Don't use CHECK_N.
55557         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
55558         (setgroups): Don't use CHECK_N.
55559         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
55560         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
55561         (__libc_msgrcv): Don't use CHECK_N.
55562         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
55563         (__libc_msgsnd): Don't use CHECK_N.
55564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
55565         <bp-checks.h>.
55566         (__libc_pread): Don't use CHECK_N.
55567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
55568         include <bp-checks.h>.
55569         (__libc_pread64): Don't use CHECK_N.
55570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
55571         include <bp-checks.h>.
55572         (__libc_pwrite): Don't use CHECK_N.
55573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
55574         include <bp-checks.h>.
55575         (__libc_pwrite64): Don't use CHECK_N.
55576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
55577         <bp-checks.h>.
55578         (__libc_pread): Don't use CHECK_N.
55579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
55580         include <bp-checks.h>.
55581         (__libc_pread64): Don't use CHECK_N.
55582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
55583         include <bp-checks.h>.
55584         (__libc_pwrite): Don't use CHECK_N.
55585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
55586         include <bp-checks.h>.
55587         (__libc_pwrite64): Don't use CHECK_N.
55588         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
55589         (do_pread): Don't use CHECK_N.
55590         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
55591         (do_pread64): Don't use CHECK_N.
55592         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
55593         (do_pwrite): Don't use CHECK_N.
55594         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
55595         (do_pwrite64): Don't use CHECK_N.
55596         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
55597         (__libc_readv): Don't use CHECK_N.
55598         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
55599         (semop): Don't use CHECK_N.
55600         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
55601         <bp-checks.h>.
55602         (semtimedop): Don't use CHECK_N.
55603         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
55604         (__libc_pread): Don't use CHECK_N.
55605         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
55606         <bp-checks.h>.
55607         (__libc_pread64): Don't use CHECK_N.
55608         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
55609         <bp-checks.h>.
55610         (__libc_pwrite): Don't use CHECK_N.
55611         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
55612         <bp-checks.h>.
55613         (__libc_pwrite64): Don't use CHECK_N.
55614         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
55615         <bp-checks.h>.
55616         (__libc_msgrcv): Don't use CHECK_N.
55617         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
55618         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
55619         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
55620         (__libc_writev): Don't use CHECK_N.
55621
55622 2013-02-08  Roland McGrath  <roland@hack.frob.com>
55623
55624         * string/strcpy.c: Removed unused variable.
55625
55626         * Makeconfig (+sysdep-includes): Define with := rather than =.
55627         Use an existing include/ subdir of each sysdeps dir before it.
55628
55629 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
55630
55631         * nscd/connection.c (register_traced_file): Comment function.
55632         [HAVE_INOTIFY] (union __inev): Define.
55633         [HAVE_INOTIFY] (inotify_check_files): New function.
55634         [HAVE_INOTIFY] (clear_db_cache): Likewise.
55635         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
55636         clear_db_cache.
55637         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
55638
55639 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
55640
55641         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
55642         loaded if not already and that a failure is permanent.
55643
55644 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
55645
55646         [BZ #15006]
55647         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
55648         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
55649
55650 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
55651
55652         [BZ #13550]
55653         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
55654         (CHECK_1_NULL_OK): Likewise.
55655         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
55656         (__fxstat): Do not use CHECK_1.
55657         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
55658         <bp-checks.h>.
55659         (___fxstat64): Do not use CHECK_1.
55660         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
55661         <bp-checks.h>.
55662         (__fxstatat): Do not use CHECK_1.
55663         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
55664         <bp-checks.h>.
55665         (__fxstatat64): Do not use CHECK_1.
55666         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
55667         <bp-checks.h>.
55668         (__fxstat): Do not use CHECK_1.
55669         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
55670         <bp-checks.h>.
55671         (__fxstatat): Do not use CHECK_1.
55672         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
55673         <bp-checks.h>.
55674         (__getresgid): Do not use CHECK_1.
55675         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
55676         <bp-checks.h>.
55677         (__getresuid): Do not use CHECK_1.
55678         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
55679         <bp-checks.h>.
55680         (__lxstat): Do not use CHECK_1.
55681         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
55682         <bp-checks.h>.
55683         (__old_msgctl): Do not use CHECK_1.
55684         (__new_msgctl): Likewise.
55685         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
55686         <bp-checks.h>.
55687         (__new_setrlimit): Do not use CHECK_1.
55688         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
55689         <bp-checks.h>.
55690         (__old_shmctl): Do not use CHECK_1.
55691         (__new_shmctl): Likewise.
55692         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
55693         <bp-checks.h>.
55694         (__xstat): Do not use CHECK_1.
55695         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
55696         (__lxstat): Do not use CHECK_1.
55697         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
55698         <bp-checks.h>.
55699         (___lxstat64): Do not use CHECK_1.
55700         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
55701         (__old_msgctl): Do not use CHECK_1.
55702         (__new_msgctl): Likewise.
55703         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
55704         <bp-checks.h>.
55705         (__gettimeofday): Do not use CHECK_1.
55706         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
55707         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
55708         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
55709         <bp-checks.h>.
55710         (__gettimeofday): Do not use CHECK_1.
55711         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
55712         (__old_shmctl): Do not use CHECK_1_NULL_OK.
55713         (__new_shmctl): Do not use CHECK_1.
55714         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
55715         <bp-checks.h>.
55716         (do_sigtimedwait): Do not use CHECK_1.
55717         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
55718         <bp-checks.h>.
55719         (do_sigwaitinfo): Do not use CHECK_1.
55720         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
55721         <bp-checks.h>.
55722         (msgctl): Do not use CHECK_1.
55723         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
55724         <bp-checks.h>.
55725         (shmctl): Do not use CHECK_1.
55726         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
55727         (ustat): Do not use CHECK_1.
55728         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
55729         <bp-checks.h>.
55730         (__fxstat): Do not use CHECK_1.
55731         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
55732         <bp-checks.h>.
55733         (__fxstatat): Do not use CHECK_1.
55734         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
55735         <bp-checks.h>.
55736         (__lxstat): Do not use CHECK_1.
55737         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
55738         <bp-checks.h>.
55739         (__xstat): Do not use CHECK_1.
55740         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
55741         (__xstat): Do not use CHECK_1.
55742         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
55743         (___xstat64): Do not use CHECK_1.
55744
55745         [BZ #13550]
55746         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
55747         definitions.
55748         (CHECK_BOUNDS_HIGH): Likewise.
55749         * string/strcpy.c: Do not include <bp-checks.h>.
55750         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
55751
55752 2013-02-07  Roland McGrath  <roland@hack.frob.com>
55753
55754         * nscd/nscd-client.h (__nscd_drop_map_ref):
55755         Add __attribute__ ((unused)).
55756         * nis/nss-nisplus.h (niserr2nss): Likewise.
55757
55758         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
55759         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
55760
55761         * csu/libc-tls.c (init_static_tls, init_slotinfo):
55762         Remove inline keyword.
55763         * include/rounding-mode.h (round_away): Likewise.
55764         * libio/wfileops.c (adjust_wide_data): Likewise.
55765         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
55766         (__m128i_strloadu_tolower): Likewise.
55767         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
55768         (__m128i_strloadu_tolower): Likewise.
55769         * time/mktime.c (ydhms_diff): Likewise.
55770         * locale/elem-hash.h (elem_hash): Likewise.
55771         * locale/setlocale.c (setdata): Likewise.
55772         * posix/regex_internal.h (re_string_char_size_at): Likewise.
55773         (re_string_wchar_at): Likewise.
55774         (bitset_not, bitset_merge, bitset_mask): Likewise.
55775         [!(__GNUC__ > 3)] (inline): Remove macro.
55776         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
55777         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
55778         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
55779         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
55780         * string/memcmp.c (memcmp_bytes): Likewise.
55781         * locale/programs/locarchive.c (compute_hashval): Likewise.
55782         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
55783         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
55784         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
55785         * nss/getent.c (print_rpc, print_protocols): Likewise.
55786         (print_passwd, print_group, print_aliases): Likewise.
55787         * nis/nss-nisplus.h (niserr2nss): Likewise.
55788         * nscd/connections.c (restart_p): Likewise.
55789         Change return type to bool.
55790
55791 2013-02-05  Roland McGrath  <roland@hack.frob.com>
55792
55793         * Makeconfig (all-Depend-files): Add existing
55794         $(sorted-subdirs:=/Depend) files.
55795         (all-subdirs): Remove nss.
55796         * sysdeps/unix/inet/Subdirs: Add it here instead.
55797         * hesiod/Depend: New file.
55798
55799         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
55800         instead of calling alloca.
55801
55802         * io/lseek.c (__lseek): Rename to __libc_lseek.
55803         Define __lseek as an alias.
55804
55805         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
55806
55807 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
55808
55809         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
55810         else clause and remove check for non-standard endianness.
55811
55812 2013-02-04  David S. Miller  <davem@davemloft.net>
55813
55814         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55815
55816 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
55817
55818         [BZ #13550]
55819         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
55820         (__ubp_memchr): Remove prototype.
55821         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
55822         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
55823         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
55824         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
55825         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
55826         Remove alias.
55827         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
55828         (__ubp_memchr): Likewise.
55829         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
55830         (__ubp_memchr): Likewise.
55831         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
55832         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
55833         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
55834         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
55835         CHECK_STRING.
55836         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
55837         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
55838         (__getcwd): Do not use CHECK_STRING.
55839         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
55840         <bp-checks.h>.
55841         (__real_chown): Do not use CHECK_STRING.
55842         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
55843         <bp-checks.h>.
55844         (fchownat): Do not use CHECK_STRING.
55845         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
55846         CHECK_STRING.
55847         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
55848         <bp-checks.h>.
55849         (__lchown): Do not use CHECK_STRING.
55850         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
55851         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
55852         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
55853         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
55854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
55855         include <bp-checks.h>.
55856         (truncate64): Do not use CHECK_STRING.
55857         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
55858         <bp-checks.h>.
55859         (__real_chown): Do not use CHECK_STRING.
55860         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
55861         <bp-checks.h>.
55862         (__lchown): Do not use CHECK_STRING.
55863         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
55864         <bp-checks.h>.
55865         (__chown): Do not use CHECK_STRING.
55866         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
55867         <bp-checks.h>.
55868         (truncate64): Do not use CHECK_STRING.
55869         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
55870         Likewise.
55871         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
55872         (__xmknod): Do not use CHECK_STRING.
55873         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
55874         <bp-checks.h>.
55875         (__xmknodat): Do not use CHECK_STRING.
55876         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
55877         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
55878
55879 2013-02-04  Andreas Schwab  <schwab@suse.de>
55880
55881         [BZ #14142]
55882         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
55883         * include/netdb.h: Likewise for h_errno.
55884         * elf/tst-stackguard1.c: Include <tls.h>.
55885
55886 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
55887
55888         * elf/link.h (struct link_map): Extend the l_addr comment.
55889         * include/link.h (struct link_map): Likewise.
55890
55891 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
55892
55893         [BZ #13550]
55894         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
55895         (BOUNDED_1): Remove macro.
55896         * debug/backtrace.c: Don't include <bp-checks.h>.
55897         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
55898         (__backtrace): Likewise.
55899         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
55900         <bp-checks.h>.
55901         (__backtrace): Don't use BOUNDED_1.
55902         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
55903         <bp-checks.h>.
55904         (__backtrace): Don't use BOUNDED_1.
55905         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
55906         (__backtrace): Don't use BOUNDED_1.
55907         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
55908         (shmat): Don't use BOUNDED_N.
55909
55910 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
55911
55912         [BZ #13550]
55913         * sysdeps/generic/bp-start.h: Remove file.
55914         * csu/libc-start.c: Don't include <bp-start.h>.
55915         (LIBC_START_MAIN): Set up __environ directly instead of using
55916         INIT_ARGV_and_ENVIRON.
55917         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
55918         <bp-start.h>.
55919
55920         [BZ #13550]
55921         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
55922         definitions.
55923         (CHECK_FCNTL): Likewise.
55924         (CHECK_N_PAGES): Likewise.
55925
55926         [BZ #13550]
55927         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
55928         definitions.
55929         (CHECK_SIGSET_NULL_OK): Likewise.
55930         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
55931         <bp-checks.h>.
55932         (sigpending): Don't use CHECK_SIGSET.
55933         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
55934         <bp-checks.h>.
55935         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
55936         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
55937         <bp-checks.h>.
55938         (do_sigsuspend): Don't use CHECK_SIGSET.
55939         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
55940         use CHECK_SIGSET.
55941         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
55942         (do_sigwait): Don't use CHECK_SIGSET.
55943         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
55944         use CHECK_SIGSET.
55945         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
55946         include <bp-checks.h>.
55947         (sigpending): Don't use CHECK_SIGSET.
55948         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
55949         include <bp-checks.h>.
55950         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
55951         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
55952         <bp-checks.h>.
55953         (sigpending): Don't use CHECK_SIGSET.
55954         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
55955         <bp-checks.h>.
55956         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
55957
55958         [BZ #13550]
55959         * sysdeps/generic/bp-semctl.h: Remove file.
55960         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
55961         <bp-checks.h> and <bp-semctl.h>.
55962         (__old_semctl): Don't use CHECK_SEMCTL.
55963         (__new_semctl): Likewise.
55964         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
55965         and <bp-semctl.h>.
55966         (__old_semctl): Don't use CHECK_SEMCTL.
55967         (__new_semctl): Likewise.
55968         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
55969         <bp-checks.h> and <bp-semctl.h>.
55970         (__old_semctl): Don't use CHECK_SEMCTL.
55971         (__new_semctl): Likewise.
55972         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
55973         <bp-checks.h> and <bp-semctl.h>.
55974         (semctl): Don't use CHECK_SEMCTL.
55975
55976         [BZ #13550]
55977         * Makerules (elide-bp-thunks): Remove variable.
55978         (elide-routines.oS): Don't use $(elide-bp-thunks).
55979         (elide-routines.os): Likewise.
55980         (elide-routines.o): Likewise.
55981         (elide-routines.op): Likewise.
55982         (elide-routines.og): Likewise.
55983         (objects): Don't use $(bp-thunks).
55984         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
55985         include.
55986         (common-generated): Do not add s-proto-bp.d.
55987         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
55988         (int): Likewise.
55989         (typ): Likewise.
55990         Do not generate makefile rules for bounded-pointer thunks.
55991         * sysdeps/generic/bp-thunks.h: Remove file.
55992         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
55993         * sysdeps/unix/s-proto-bp.S: Likewise.
55994
55995         [BZ #15062]
55996         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
55997         parts of result separately when argument is not close to line from
55998         -i to i and one part of argument is small.
55999         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56000         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56001         * math/libm-test.inc (cacos_test): Add more tests.
56002         (casin_test): Likewise.
56003         (casinh_test): Likewise.
56004         * sysdeps/i386/fpu/libm-test-ulps: Update.
56005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56006
56007 2013-01-31  David S. Miller  <davem@davemloft.net>
56008
56009         * po/de.po: Update from translation team.
56010
56011 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
56012
56013         * time/tzfile.c: Include stdint.h for SIZE_MAX.
56014
56015 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
56016
56017         * configure.in (_AC_PROG_CC_C89): New definition.
56018         * configure: Regenerate.
56019
56020         * configure.in (AC_PROG_CPP): New definition.
56021         * configure: Regenerate.
56022
56023 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
56024
56025         * debug/tst-backtrace.h: New file.
56026         * debug/tst-backtrace2.c: Include tst-backtrace.h.
56027         (ret): Remove variable.
56028         (x): Likewise.
56029         (FAIL): Remove macro.
56030         (NO_INLINE): Likewise.
56031         (fn1): Use match function instead of strstr.
56032         * debug/tst-backtrace3.c: Include tst-backtrace.h.
56033         (ret): Remove variable.
56034         (x): Likewise.
56035         (FAIL): Remove macro.
56036         (NO_INLINE): Likewise.
56037         (fn): Use match function instead of strstr.
56038         * debug/tst-backtrace4.c: Include tst-backtrace.h.
56039         (ret): Remove variable.
56040         (x): Likewise.
56041         (FAIL): Remove macro.
56042         (NO_INLINE): Likewise.
56043         (handle_signal): Use match function instead of strstr.
56044         * debug/tst-backtrace5.c: Include tst-backtrace.h.
56045         (ret): Remove variable.
56046         (x): Likewise.
56047         (FAIL): Remove macro.
56048         (NO_INLINE): Likewise.
56049         (handle_signal): Use match function instead of strstr.
56050
56051 2013-01-23  Roland McGrath  <roland@hack.frob.com>
56052
56053         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
56054
56055 2013-01-23  David S. Miller  <davem@davemloft.net>
56056
56057         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
56058         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
56059         argument of CAS if possible.
56060         * sysdeps/sparc/sparc64/bits/atomic.h
56061         (__arch_compare_and_exchange_val_32_acq): Likewise.
56062         (__arch_compare_and_exchange_val_64_acq): Likewise.
56063
56064 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
56065
56066         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
56067         * sysdeps/posix/ulimit.c: ... this.
56068         Include <limits.h>.
56069         * sysdeps/unix/bsd/ulimit.c: Remove file.
56070
56071 2013-01-23  Adam Conrad  <adconrad@0c3.net>
56072
56073         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
56074         (LDFLAGS-tst-array5): Likewise.
56075
56076 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
56077
56078         [BZ #15036]
56079         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
56080         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
56081         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
56082         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
56083
56084 2013-01-21  David S. Miller  <davem@davemloft.net>
56085
56086         * sysdeps/sparc/backtrace.c: New file.
56087         * sysdeps/sparc/sparc32/backtrace.h: New file.
56088         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
56089         * sysdeps/sparc/sparc64/backtrace.h: New file.
56090         * sysdeps/sparc/sparc64/backtrace.c: Delete.
56091         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
56092         -funwind-tables.
56093
56094 2013-01-21  Andreas Schwab  <schwab@suse.de>
56095
56096         [BZ #15020]
56097         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
56098         closed its stdout.
56099
56100 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
56101
56102         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
56103         "mpa2.h".
56104         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56105
56106 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
56107             Mark Mitchell  <mark@codesourcery.com>
56108             Tom de Vries  <tom@codesourcery.com>
56109             Paul Pluzhnikov  <ppluzhnikov@google.com>
56110
56111         * debug/tst-backtrace2.c: New file.
56112         * debug/tst-backtrace3.c: Likewise.
56113         * debug/tst-backtrace4.c: Likewise.
56114         * debug/tst-backtrace5.c: Likewise.
56115         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
56116         (CFLAGS-tst-backtrace3.c): Likewise.
56117         (CFLAGS-tst-backtrace4.c): Likewise.
56118         (CFLAGS-tst-backtrace5.c): Likewise.
56119         (LDFLAGS-tst-backtrace2): Likewise.
56120         (LDFLAGS-tst-backtrace3): Likewise.
56121         (LDFLAGS-tst-backtrace4): Likewise.
56122         (LDFLAGS-tst-backtrace5): Likewise.
56123         (tests): Add new tests tst-backtrace2, tst-backtrace3,
56124         tst-backtrace4 and tst-backtrace5.
56125
56126 2013-01-18  Anton Blanchard  <anton@samba.org>
56127             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
56128
56129         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
56130         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
56131         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
56132         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
56133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
56134         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
56135         "+r" and remove output regs list as redundant.  Add explicit inline
56136         asm to specify register of return val to work around compiler codegen
56137         bug.  Remove (int) cast on return value.  Add return type parameter to
56138         use in macro so that this macro does not truncate return value for
56139         64-bit values.
56140         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
56141         pass to INTERNAL_VSYSCALL_NCS.
56142         (INLINE_VSYSCALL): Add 'long int' as return type to
56143         INTERNAL_VSYSCALL_NCS macro invocation.
56144         (INTERNAL_VSYSCALL): Add 'long int' as return type to
56145         INTERNAL_VSYSCALL_NCS macro invocation.
56146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
56147
56148 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56149
56150         [BZ #14496]
56151         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
56152         Fix application of SIMD FP exception mask.
56153
56154         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
56155         mp_no from a power of two.
56156         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
56157         __mpexp_twomm1.  Use __pow_mp.
56158
56159         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
56160         multiplication.
56161
56162 2013-01-17  David S. Miller  <davem@davemloft.net>
56163
56164         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56165
56166 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
56167
56168         [BZ #15023]
56169         * include/complex.h: Condition contents on [!_COMPLEX_H].
56170         (__kernel_casinhf): New prototype.
56171         (__kernel_casinh): Likewise.
56172         (__kernel_casinhl): Likewise.
56173         * math/Makefile (libm_calls): Add k_casinh.
56174         * math/k_casinh.c: New file.
56175         * math/k_casinhf.c: Likewise.
56176         * math/k_casinhl.c: Likewise.
56177         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
56178         finite nonzero arguments.
56179         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
56180         finite nonzero arguments.
56181         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
56182         finite nonzero arguments.
56183         * math/s_casinh.c: Do not include <float.h>.
56184         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
56185         * math/s_casinhf.c: Do not include <float.h>.
56186         (__casinhf): Move code for finite nonzero arguments to
56187         k_casinhf.c.
56188         * math/s_casinhl.c: Do not include <float.h>.
56189         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
56190         redefine.
56191         (__casinhl): Move code for finite nonzero arguments to
56192         k_casinhl.c.
56193         * math/libm-test.inc (cacos_test): Add more tests.
56194         * sysdeps/i386/fpu/libm-test-ulps: Update.
56195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56196
56197 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
56198
56199         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
56200         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
56201         [!HAVE_MREMAP]: Remove [defined linux] case.
56202         * malloc/arena.c: Do not include <malloc-sysdep.h>.
56203
56204 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
56205
56206         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
56207
56208 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
56209
56210         * elf/elf.h (R_386_SIZE32): New relocation.
56211         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
56212         R_386_SIZE32.
56213         (elf_machine_rela): Likewise.
56214         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
56215         R_X86_64_SIZE64 and R_X86_64_SIZE32.
56216
56217 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
56218
56219         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
56220         (FP_FAST_FMA): Do not define.
56221         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
56222         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
56223         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
56224         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
56225         !_SOFT_FLOAT]: Likewise.
56226         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
56227         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
56228         value.
56229         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
56230         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
56231         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
56232         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
56233         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
56234         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
56235         file.
56236
56237 2013-01-16  Andreas Schwab  <schwab@suse.de>
56238
56239         [BZ #14327]
56240         * include/stdlib.h (__mktemp): Add declaration.
56241         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
56242         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
56243
56244 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
56245
56246         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
56247         definitions.
56248         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
56249         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
56250         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
56251         definitions here.
56252         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
56253         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
56254         definitions.
56255         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
56256         and ONE.
56257         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
56258         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
56259         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
56260         definitions.
56261         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
56262         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
56263         definitions.
56264         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
56265
56266         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
56267
56268 2013-01-15  David S. Miller  <davem@davemloft.net>
56269
56270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
56271         trunc{,f} to libm-sysdep_routes.
56272         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
56273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
56274         file.
56275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
56276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
56277         file.
56278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
56279         file.
56280         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
56281         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
56282         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
56283         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
56284         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
56285         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
56286         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
56287         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
56288
56289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
56290         nearbyint{,f} to libm-sysdep_routes.
56291         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
56292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
56293         New file.
56294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
56295         file.
56296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
56297         New file.
56298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
56299         file.
56300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
56301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
56302         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
56303         file.
56304         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
56305         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
56306         file.
56307         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
56308         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
56309         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
56310
56311         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
56312         libc_feholdexcept and libc_fesetenv.
56313
56314 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
56315
56316         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
56317
56318 2013-01-14  David S. Miller  <davem@davemloft.net>
56319
56320         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
56321         (SPARC_ASM_VIS2_IFUNC): Likewise.
56322         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
56323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
56324         use of 'siam' instruction.
56325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
56326         Likewise.
56327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
56328         Likewise.
56329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
56330         Likewise.
56331         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
56332         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
56333         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
56334         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
56335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
56336         file.
56337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
56338         file.
56339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
56340         file.
56341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
56342         file.
56343         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
56344         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
56345         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
56346         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
56347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
56348         new VIS2 routines.
56349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
56350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
56351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
56352         Likewise.
56353         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
56354         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
56355         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
56356         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
56357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
56358         routines to libm-sysdep_routines.
56359         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
56360
56361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
56362         fdim/fdimf to libm-sysdep_routines.
56363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
56364         file.
56365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
56366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
56367         file.
56368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
56369         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
56370         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
56371         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
56372         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
56373         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
56374         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
56375
56376 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
56377
56378         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
56379         to optimize copies.
56380
56381         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
56382         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
56383         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56384
56385         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
56386         local variable MPTWO.
56387         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
56388         Likewise.
56389
56390 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
56391
56392         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
56393         GLOB_NOESCAPE.
56394
56395 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
56396
56397         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
56398
56399 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
56400
56401         * manual/pattern.texi (glob_t): Document gl_flags.
56402         (glob64_t): Likewise.
56403
56404 2013-01-11  David S. Miller  <davem@davemloft.net>
56405
56406         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
56407         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
56408         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
56409         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
56410         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
56411         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
56412         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
56413         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
56414         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
56415         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
56416         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
56417         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
56418         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
56419
56420         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
56421         sparc V9 rather than using V8 code.
56422         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
56423         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
56424
56425         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
56426         Move to...
56427         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
56428         Here.
56429
56430 2013-01-11  Roland McGrath  <roland@hack.frob.com>
56431
56432         [BZ #14941]
56433         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
56434         not in the main loop.
56435         * configure: Regenerated.
56436
56437 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
56438
56439         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
56440         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
56441         to just #else.
56442         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
56443         [!__GLIBC_HAVE_LONG_LONG] case.
56444         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
56445         condition to just #else.
56446         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
56447         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
56448         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
56449         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
56450         unconditional.
56451         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
56452         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
56453         #elif condition to just #else.
56454         * sysdeps/unix/sysv/linux/sys/sysmacros.h
56455         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
56456         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
56457         #elif condition to just #else.
56458
56459 2013-01-11  Steve Ellcey  <sellcey@mips.com>
56460
56461         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
56462         (EF_MIPS_ARCH_64): Fix value.
56463         (EF_MIPS_ARCH_32R2): New.
56464         (EF_MIPS_ARCH_64R2): New.
56465
56466 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
56467
56468         * Makeconfig (+link-pie-before-libc): New.
56469         (+link-pie-after-libc): Likewise.
56470         (+link-pie-tests): Likewise.
56471         (+link-pie): Rewritten.
56472         (link-before-libc): Remove $(config-LDFLAGS).
56473         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
56474         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
56475         (config-LDFLAGS): Renamed to ...
56476         (rtld-LDFLAGS): This.
56477         (rtld-tests-LDFLAGS): New macro.
56478         (link-libc-rpath-link): Likewise.
56479         (link-libc-tests-rpath-link): Likewise.
56480         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
56481         (link-libc): Prepand $(link-libc-rpath-link).
56482         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
56483         (test-program-prefix): New macro.
56484         (test-via-rtld-prefix): Likewise.
56485         (test-program-cmd): Likewise.
56486         (host-test-program-cmd): Likewise.
56487         * Makefile ($(common-objpfx)testrun.sh): Replace
56488         $(run-program-prefix) with $(test-program-prefix).
56489         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
56490         $(rtld-LDFLAGS).
56491         ($(common-objpfx)shlib.lds): Likewise.
56492         (build-module-helper): Likewise.
56493         ($(common-objpfx)format.lds): Likewise.
56494         * Rules (binaries-pie-tests): New.
56495         (binaries-pie-notests): Likewise.
56496         (binaries-pie): Rewritten.
56497         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
56498         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
56499         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
56500         (make-test-out): Replace $(host-built-program-cmd) with
56501         $(host-test-program-cmd).
56502         * config.make.in (build-hardcoded-path-in-tests): New variable.
56503         * configure.in (--enable-hardcoded-path-in-tests): New configure
56504         option.
56505         (hardcoded_path_in_tests): New AC_SUBST.
56506         * configure: Regenerated.
56507         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
56508         $(built-program-cmd) with $(test-program-cmd).
56509         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
56510         (test_program_cmd): This.
56511         * elf/Makefile ($(objpfx)order.out): Run test with
56512         $(test-program-prefix).
56513         ($(objpfx)order2.out): Likewise.
56514         ($(objpfx)tst-initorder.out): Likewise.
56515         ($(objpfx)tst-initorder2.out): Likewise.
56516         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
56517         $(test-program-cmd).
56518         ($(objpfx)tst-array1-static.out): Likewise.
56519         ($(objpfx)tst-array2.out): Likewise.
56520         ($(objpfx)tst-array3.out): Likewise.
56521         ($(objpfx)tst-array4.out): Likewise.
56522         ($(objpfx)tst-array5.out): Likewise.
56523         ($(objpfx)tst-array5-static.out): Likewise.
56524         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
56525         $(test-program-cmd).
56526         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
56527         $(run-program-prefix) with $(test-program-prefix).
56528         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
56529         (test_program_prefix): This.
56530         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
56531         $(run-program-prefix) with $(test-program-prefix).
56532         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
56533         (test_program_prefix): This.
56534         * iconvdata/tst-tables.sh: Likewise.
56535         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
56536         $(run-program-prefix) with $(test-program-prefix).
56537         ($(objpfx)tst-translit.out): Likewise.
56538         ($(objpfx)tst-gettext2.out): Likewise.
56539         ($(objpfx)tst-gettext4.out): Likewise.
56540         ($(objpfx)tst-gettext6.out): Likewise.
56541         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
56542         (test_program_prefix): This.
56543         * intl/tst-gettext2.sh: Likewise.
56544         * intl/tst-gettext4.sh  Likewise.
56545         * intl/tst-gettext6.sh: Likewise.
56546         * intl/tst-translit.sh: Likewise.
56547         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
56548         with $(test-program-cmd).
56549         * libio/Makefile ($(objpfx)test-freopen.out): Replace
56550         $(run-program-prefix) with $(test-program-prefix).
56551         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
56552         (test_program_prefix): This.
56553         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
56554         $(run-program-prefix) with $(test-program-prefix).
56555         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
56556         (test_program_prefix): This.
56557         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
56558         * posix/Makefile ($(objpfx)globtest.out): Replace
56559         $(run-via-rtld-prefix) and $(test-wrapper) with
56560         $(test-program-prefix) and $(test-via-rtld-prefix).
56561         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
56562         $(test-program-prefix).
56563         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
56564         $(host-test-program-cmd).
56565         (tst-spawn-ARGS): Likewise.
56566         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
56567         $(test-program-prefix).
56568         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
56569         (test_via_rtld_prefix): This.
56570         (test_wrapper): Renamed to ...
56571         (test_program_prefix): This.
56572         (run_program_prefix): Replaced by test_program_prefix.
56573         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
56574         (test_program_prefix): This.
56575         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
56576         with $(host-test-program-cmd).
56577         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
56578         $(run-program-prefix) with $(test-program-prefix).
56579         ($(objpfx)tst-printf.out): Likewise.
56580         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
56581         $(test-program-cmd).
56582         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
56583         (test_program_prefix): This.
56584         * stdio-common/tst-unbputc.sh: Likewise.
56585         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
56586         $(run-program-prefix) with $(test-program-prefix).
56587         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
56588         (test_program_prefix): This.
56589         * string/Makefile ($(objpfx)tst-svc.out):  Replace
56590         $(built-program-cmd) with $(test-program-cmd).
56591
56592 2013-01-11  Andreas Jaeger  <aj@suse.de>
56593
56594         [BZ #15003]
56595         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
56596         value. Sync with Linux 3.7.
56597
56598 2013-01-10  David S. Miller  <davem@davemloft.net>
56599
56600         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
56601         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
56602         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
56603
56604 2013-01-10  Roland McGrath  <roland@hack.frob.com>
56605
56606         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
56607         never set.
56608         * configure: Regenerated.
56609
56610 2013-01-10  David S. Miller  <davem@davemloft.net>
56611
56612         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
56613         sparc V9 rather than using V8 code.
56614         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
56615         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
56616
56617 2013-01-10  Roland McGrath  <roland@hack.frob.com>
56618
56619         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
56620         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
56621         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
56622         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
56623         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
56624         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
56625         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
56626         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
56627         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
56628         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
56629         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
56630         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
56631         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
56632         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
56633         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
56634         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
56635         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
56636         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
56637         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
56638         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
56639         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
56640         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
56641         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
56642         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
56643         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
56644         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
56645         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
56646
56647 2013-01-10  David S. Miller  <davem@davemloft.net>
56648
56649         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56650
56651 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
56652
56653         * posix/Makefile (tests-static): New variable.
56654         (tests): Add $(tests-static).
56655         (tst-exec-static-ARGS): New variable.
56656         (tst-spawn-static-ARGS): Likewise.
56657         * posix/tst-exec-static.c: New file.
56658         * posix/tst-spawn-static.c: Likewise.
56659         * posix/tst-exec.c: Support run directly.
56660         * posix/tst-spawn.c: Likewise.
56661
56662 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
56663
56664         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
56665         long.
56666         * math/bits/mathcalls.h (llrint): Likewise.
56667         (llround): Likewise.
56668         * stdlib/stdlib.h (struct drand48_data): Likewise.
56669         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
56670         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
56671         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
56672         Likewise.
56673         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
56674         Likewise.
56675         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
56676         (elf_greg_t): Likewise.
56677         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
56678         (__jmp_buf): Likewise.
56679         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
56680         definitions.
56681         (llrint): Likewise, for all definitions.
56682         (llrintl): Likewise.
56683
56684         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
56685         Remove [__GNUC__] condition.
56686         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
56687         condition to just [__USE_ISOC99].
56688         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
56689
56690 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
56691
56692         [BZ #14200]
56693         * sysdeps/unix/sysv/linux/x86/bits/environments.h
56694         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
56695         defined.
56696         (_POSIX_V6_ILP32_OFF32): Likewise.
56697         (_XBS5_ILP32_OFF32): Likewise.
56698         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
56699         (__ILP32_OFFBIG_LDFLAGS): Likewise.
56700
56701 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
56702
56703         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
56704
56705         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
56706         doubles __mpexp_twomm1.  Adjust usage.
56707         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
56708         Remove.
56709
56710 2013-01-10  Andreas Schwab  <schwab@suse.de>
56711
56712         [BZ #14964]
56713         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
56714         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
56715
56716 2013-01-09  David S. Miller  <davem@davemloft.net>
56717
56718         [BZ #15003]
56719         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
56720         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
56721         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
56722         (TCP_FASTOPEN): Define.
56723         (tcp_repair_opt): New structure.
56724         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
56725         enum values.
56726         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
56727         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
56728         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
56729         (tcp_cookie_transactions): New structure.
56730
56731 2013-01-09  Anton Blanchard  <anton@samba.org>
56732
56733         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
56734         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
56735         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
56736         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
56737
56738 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
56739
56740         * include/features.h (__USE_ANSI): Remove.
56741
56742 2013-01-09  Roland McGrath  <roland@hack.frob.com>
56743
56744         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
56745
56746         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
56747
56748 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
56749
56750         * sysdeps/s390/fpu/libm-test-ulps: Update.
56751
56752         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56753
56754         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
56755         (__acr): Likewise.
56756         (__cpy): Likewise.
56757         (norm): Likewise.
56758         (denorm): Likewise.
56759         (__mp_dbl): Likewise.
56760         (__dbl_mp): Likewise.
56761         (add_magnitudes): Likewise.
56762         (sub_magnitudes): Likewise.
56763         (__add): Likewise.
56764         (__sub): Likewise.
56765         (__mul): Likewise.
56766         (__inv): Likewise.
56767         (__dvd): Likewise.
56768         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
56769         (__acr): Likewise.
56770         (__cpy): Likewise.
56771         (norm): Likewise.
56772         (denorm): Likewise.
56773         (__mp_dbl): Likewise.
56774         (__dbl_mp): Likewise.
56775         (add_magnitudes): Likewise.
56776         (sub_magnitudes): Likewise.
56777         (__add): Likewise.
56778         (__sub): Likewise.
56779         (__mul): Likewise.
56780         (__inv): Likewise.
56781         (__dvd): Likewise.
56782         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
56783         (__acr): Likewise.
56784         (__cpy): Likewise.
56785         (norm): Likewise.
56786         (denorm): Likewise.
56787         (__mp_dbl): Likewise.
56788         (__dbl_mp): Likewise.
56789         (add_magnitudes): Likewise.
56790         (sub_magnitudes): Likewise.
56791         (__add): Likewise.
56792         (__sub): Likewise.
56793         (__mul): Likewise.
56794         (__inv): Likewise.
56795         (__dvd): Likewise.
56796
56797 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
56798
56799         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
56800         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
56801         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
56802         2 && __USE_EXTERN_INLINES]: Likewise.
56803
56804 2013-01-08  Andreas Jaeger  <aj@suse.de>
56805
56806         [BZ# 14985]
56807         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
56808         Remove.
56809         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
56810         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
56811
56812 2013-01-07  Anton Blanchard  <anton@samba.org>
56813
56814         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
56815         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
56816         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
56817         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
56818         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
56819         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
56820         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
56821         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
56822         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
56823         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
56824         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
56825         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
56826         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
56827         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
56828         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
56829         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
56830         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
56831         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
56832         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
56833         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
56834         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
56835         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
56836         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
56837         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
56838         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
56839         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
56840         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
56841         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
56842         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
56843         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
56844         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
56845         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56846         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
56847         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
56848         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
56849         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
56850         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
56851         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
56852         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
56853         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
56854         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
56855         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
56856         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
56857
56858 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
56859
56860         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
56861         (__MALLOC_PMT): Likewise.
56862         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
56863         [__GNUC__], only on [_LIBC].
56864         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
56865         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
56866         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
56867         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
56868         forward declaration.
56869         (realloc_hook_ini): Likewise.
56870         (memalign_hook_ini): Likewise.
56871         (__libc_memalign): Do not use __MALLOC_PMT in variable
56872         declaration.
56873         (__libc_valloc): Likewise.
56874         (__libc_pvalloc): Likewise.
56875         (__libc_calloc): Likewise.
56876         (__posix_memalign): Likewise.
56877
56878         [BZ #14996]
56879         * math/s_casinh.c: Include <float.h>.
56880         (__casinh): Do not do computation with squaring and square root
56881         for large arguments.
56882         * math/s_casinhf.c: Include <float.h>.
56883         (__casinhf): Do not do computation with squaring and square root
56884         for large arguments.
56885         * math/s_casinhl.c: Include <float.h>.
56886         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
56887         (__casinhl): Do not do computation with squaring and square root
56888         for large arguments.
56889         * math/libm-test.inc (casin_test): Add more tests.
56890         (casinh_test): Likewise.
56891         * sysdeps/i386/fpu/libm-test-ulps: Update.
56892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56893
56894 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
56895
56896         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
56897         (__x86_64_raw_data_cache_size): Likewise.
56898         (__x86_64_data_cache_size_half): Likewise.
56899         (__x86_64_raw_data_cache_size_half): Likewise.
56900         (__x86_64_shared_cache_size): Likewise.
56901         (__x86_64_raw_shared_cache_size): Likewise.
56902         (__x86_64_shared_cache_size_half): Likewise.
56903         (__x86_64_raw_shared_cache_size_half): Likewise.
56904         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
56905         to ...
56906         (__x86_data_cache_size): This.
56907         (__x86_64_raw_data_cache_size): Renamed to ...
56908         (__x86_raw_data_cache_size): This.
56909         (__x86_64_data_cache_size_half): Renamed to ...
56910         (__x86_data_cache_size_half): This.
56911         (__x86_64_raw_data_cache_size_half): Renamed to ...
56912         (__x86_raw_data_cache_size_half): This.
56913         (__x86_64_shared_cache_size): Renamed to ...
56914         (__x86_shared_cache_size): This.
56915         (__x86_64_raw_shared_cache_size): Renamed to ...
56916         (__x86_raw_shared_cache_size): This.
56917         (__x86_64_shared_cache_size_half): Renamed to ...
56918         (__x86_shared_cache_size_half): This.
56919         (__x86_64_raw_shared_cache_size_half): Renamed to ...
56920         (__x86_raw_shared_cache_size_half): This.
56921         * sysdeps/x86_64/memcpy.S: Updated.
56922         * sysdeps/x86_64/memset.S: Likewise.
56923         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
56924         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
56925         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
56926
56927 2013-01-04  David S. Miller  <davem@davemloft.net>
56928
56929         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56930
56931 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
56932
56933         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
56934         1 to avoid redefinition warning.
56935         (__USE_GNU): Don't define.
56936         (init_signaling_nan): Protoize.
56937
56938         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56939
56940 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
56941
56942         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
56943         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
56944         (__cpymn): Likewise.
56945         (norm): Remove commented code.
56946         (denorm): Likewise.
56947         (__mp_dbl): Likewise.
56948         (__inv): Likewise.
56949         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
56950         (__cpymn): Likewise.
56951         (norm): Remove commented code.
56952         (denorm): Likewise.
56953         (__mp_dbl): Likewise.
56954         (__inv): Likewise.
56955
56956         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
56957         mp_no value for 1.0 and 2.0.
56958         (norm): Use RADIXI instead of radixi.d.
56959         (denorm): Likewise.
56960         (__mul): Use 0.0 instead of zero.d.
56961         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
56962         mp_no value for 1.0 and 2.0.
56963         (norm): Use RADIXI instead of radixi.d.
56964         (denorm): Likewise.
56965         (__mul): Use 0.0 instead of zero.d.
56966
56967 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
56968
56969         [BZ #14994]
56970         * math/s_casinh.c (__casinh): Reduce finite argument to first
56971         quadrant then set signs of results at the end.
56972         * math/s_casinhf.c (__casinhf): Likewise.
56973         * math/s_casinhl.c (__casinhl): Likewise.
56974         * math/libm-test.inc (casin_test): Add more tests.
56975         (casinh_test): Likewise.
56976         * sysdeps/i386/fpu/libm-test-ulps: Update.
56977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56978
56979 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
56980
56981         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
56982
56983         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
56984
56985         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
56986         declarations.
56987         (denorm): Likewise.
56988         (__mp_dbl): Likewise.
56989         (__inv): Likewise.
56990
56991         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
56992         and adjust the header comment.
56993
56994         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
56995         variable name from declaration.
56996
56997 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
56998
56999         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57000         Initialize COMMON_CPUID_INDEX_7 element.
57001         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
57002         (CPUID_RTM): Likewise.
57003         (HAS_RTM): Likewise.
57004         (COMMON_CPUID_INDEX_7): New enum.
57005
57006 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
57007
57008         [BZ #14981]
57009         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
57010         size is zero, record memory as freed.
57011
57012 2013-01-03  Andreas Jaeger  <aj@suse.de>
57013
57014         * po/ia.po: Add new Interlingua translation.
57015
57016 2012-01-03  Allan McRae  <allan@archlinux.org>
57017
57018         * locale/programs/localedef.c: Fix description of '--posix' flag.
57019
57020 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
57021
57022         * NEWS: Update dates in second copyright notice.
57023         * README: Update copyright dates in example.
57024         * manual/libc.texinfo: Update copyright dates.
57025         * scripts/test-installation.pl: Update copyright date in --version
57026         output.
57027
57028         * hurd/ctty-input.c: Fix copyright notice formatting.
57029         * hurd/ctty-output.c: Likewise.
57030         * hurd/dtable.c: Likewise.
57031         * hurd/hurd-raise.c: Likewise.
57032         * hurd/hurdprio.c: Likewise.
57033         * hurd/msgportdemux.c: Likewise.
57034         * misc/sys/file.h: Likewise.
57035         * misc/sys/ioctl.h: Likewise.
57036         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
57037         * sysdeps/mach/hurd/chdir.c: Likewise.
57038         * sysdeps/mach/hurd/fchdir.c: Likewise.
57039         * sysdeps/mach/hurd/rename.c: Likewise.
57040         * sysdeps/mach/hurd/rmdir.c: Likewise.
57041         * sysdeps/mach/hurd/seekdir.c: Likewise.
57042         * sysdeps/mach/hurd/setsid.c: Likewise.
57043         * sysdeps/posix/wait3.c: Likewise.
57044
57045         * All files with FSF copyright notices: Update copyright dates
57046         using scripts/update-copyrights.
57047         * intl/plural.c: Regenerated.
57048         * locale/programs/charmap-kw.h: Likewise.
57049         * locale/programs/locfile-kw.h: Likewise.
57050
57051 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
57052
57053         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
57054         four values.
57055
57056         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
57057         calculation loop and add branch prediction.
57058
57059         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
57060         check access beyond bounds of m1np.
57061
57062         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
57063         MPTWO.
57064         (__inv): Remove local variable MPTWO to use the global
57065         constant.
57066         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
57067         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
57068         variable MPTWO.
57069         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
57070         MP3HALFS static const.
57071
57072 2013-01-01  David S. Miller  <davem@davemloft.net>
57073
57074         * po/ca.po: Update from translation team.
57075
57076 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
57077
57078         * scripts/update-copyrights: New file.
57079         * Makeconfig: Reformat copyright notice.
57080         * ctype/ctype.h: Likewise.
57081         * debug/swprintf_chk.c: Likewise.
57082         * elf/dl-cache.c: Likewise.
57083         * elf/dl-debug.c: Likewise.
57084         * elf/dl-object.c: Likewise.
57085         * grp/initgroups.c: Likewise.
57086         * hurd/Makefile: Likewise.
57087         * hurd/hurd/signal.h: Likewise.
57088         * hurd/hurdfault.c: Likewise.
57089         * hurd/hurdioctl.c: Likewise.
57090         * hurd/hurdlookup.c: Likewise.
57091         * hurd/intr-msg.c: Likewise.
57092         * iconv/gconv_open.c: Likewise.
57093         * libio/swprintf.c: Likewise.
57094         * locale/lc-ctype.c: Likewise.
57095         * locale/nl_langinfo.c: Likewise.
57096         * mach/Machrules: Likewise.
57097         * mach/Makefile: Likewise.
57098         * malloc/obstack.h: Likewise.
57099         * manual/Makefile: Likewise.
57100         * manual/tsort.awk: Likewise.
57101         * misc/bits/stab.def: Likewise.
57102         * nis/nis_print_group_entry.c: Likewise.
57103         * nis/nis_table.c: Likewise.
57104         * nis/nss_compat/compat-pwd.c: Likewise.
57105         * nis/nss_compat/compat-spwd.c: Likewise.
57106         * po/Makefile: Likewise.
57107         * posix/fnmatch.c: Likewise.
57108         * posix/regex.h: Likewise.
57109         * resolv/Makefile: Likewise.
57110         * resolv/nss_dns/dns-network.c: Likewise.
57111         * resolv/res_hconf.c: Likewise.
57112         * scripts/gen-sorted.awk: Likewise.
57113         * soft-fp/soft-fp.h: Likewise.
57114         * stdio-common/printf.h: Likewise.
57115         * stdlib/monetary.h: Likewise.
57116         * stdlib/random.c: Likewise.
57117         * stdlib/random_r.c: Likewise.
57118         * sysdeps/generic/Makefile: Likewise.
57119         * sysdeps/gnu/Makefile: Likewise.
57120         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
57121         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
57122         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
57123         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
57124         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
57125         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
57126         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
57127         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
57128         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
57129         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
57130         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
57131         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
57132         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
57133         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
57134         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
57135         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
57136         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
57137         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
57138         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
57139         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
57140         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
57141         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
57142         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
57143         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
57144         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
57145         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
57146         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
57147         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
57148         * sysdeps/mach/hurd/errnos.awk: Likewise.
57149         * sysdeps/mach/hurd/fork.c: Likewise.
57150         * sysdeps/mach/hurd/getcwd.c: Likewise.
57151         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
57152         * sysdeps/mach/hurd/mmap.c: Likewise.
57153         * sysdeps/mach/hurd/utimes.c: Likewise.
57154         * sysdeps/mach/hurd/xmknod.c: Likewise.
57155         * sysdeps/posix/profil.c: Likewise.
57156         * sysdeps/posix/readdir_r.c: Likewise.
57157         * sysdeps/powerpc/bits/mathdef.h: Likewise.
57158         * sysdeps/powerpc/bits/setjmp.h: Likewise.
57159         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
57160         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
57161         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
57162         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
57163         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
57164         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
57165         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
57166         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
57167         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
57168         * sysdeps/pthread/lio_listio.c: Likewise.
57169         * sysdeps/sparc/dl-procinfo.h: Likewise.
57170         * sysdeps/unix/i386/sysdep.S: Likewise.
57171         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
57172         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
57173         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
57174         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
57175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
57176         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
57177         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
57178         * sysdeps/unix/sysv/linux/speed.c: Likewise.
57179         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
57180         * sysdeps/wordsize-32/divdi3.c: Likewise.
57181         * time/sys/time.h: Likewise.
57182         * wcsmbs/Makefile: Likewise.
57183
57184 2013-01-01  David S. Miller  <davem@davemloft.net>
57185
57186         * po/fr.po: Update from translation team.
57187
57188         * catgets/gencat.c: Update copyright year.
57189         * csu/version.c: Likewise.
57190         * debug/catchsegv.sh: Likewise.
57191         * debug/pcprofiledump.c: Likewise.
57192         * debug/xtrace.sh: Likewise.
57193         * elf/ldconfig.c: Likewise.
57194         * elf/ldd.bash.in: Likewise.
57195         * elf/pldd.c: Likewise.
57196         * elf/sotruss.ksh: Likewise.
57197         * elf/sprof.c: Likewise.
57198         * iconv/iconv_prog.c: Likewise.
57199         * iconv/iconvconfig.c: Likewise.
57200         * locale/programs/locale.c: Likewise.
57201         * locale/programs/localedef.c: Likewise.
57202         * login/programs/pt_chown.c: Likewise.
57203         * malloc/memusage.sh: Likewise.
57204         * malloc/memusagestat.c: Likewise.
57205         * malloc/mtrace.pl: Likewise.
57206         * nscd/nscd.c: Likewise.
57207         * nss/getent.c: Likewise.
57208         * nss/makedb.c: Likewise.
57209         * posix/getconf.c: Likewise.
57210
57211 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
57212
57213         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
57214         numbers.
57215
57216 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
57217
57218         * math/bits/mathcalls.h (modf): Use __nonnull.
57219
57220 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
57221
57222         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
57223         (split): Use macro CN instead of the bare value.
57224         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
57225         could be used.
57226         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
57227         instead of the bare value.
57228         (power1): Likewise.
57229
57230 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57231
57232         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
57233         __ATAN_TWOM.
57234         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
57235
57236         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
57237         their values.
57238         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
57239         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
57240         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
57241         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
57242
57243 2012-12-28  Andreas Jaeger  <aj@suse.de>
57244
57245         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
57246         values are from Linux 3.7.
57247
57248         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
57249         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
57250
57251 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57252
57253         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
57254         TRUE case.
57255
57256         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
57257         (norm): Likewise.
57258         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
57259         variables with preprocessor constants.
57260         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
57261         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
57262         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
57263
57264 2012-12-27  Bruno Haible  <bruno@clisp.org>
57265
57266         [BZ #14317]
57267         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
57268         only if needed.
57269
57270 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
57271
57272         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
57273         and use variable directly.
57274         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
57275
57276         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
57277         MPONE.
57278         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
57279         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
57280         variable MPONE.
57281         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
57282         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
57283         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
57284         include directive.  Remove local variable MPONE.
57285         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
57286         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
57287         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
57288
57289 2012-12-25  David S. Miller  <davem@davemloft.net>
57290
57291         * version.h (RELEASE): Set to "development".
57292         (VERSION): Set to "2.17.90".
57293         * NEWS: Add 2.18 section.
57294
57295 2012-12-21  David S. Miller  <davem@davemloft.net>
57296
57297         * po/hr.po: Update from translation team.
57298
57299 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57300
57301         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
57302
57303 2012-12-19  Steve Ellcey  <sellcey@mips.com>
57304
57305         * NEWS:  Mention new memcpy for MIPS.
57306
57307 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
57308
57309         * manual/contrib.texi (Contributors): Spelling correction.
57310
57311 2012-12-15  David S. Miller  <davem@davemloft.net>
57312
57313         * po/ru.po: Update from translation team.
57314
57315 2012-12-13  David S. Miller  <davem@davemloft.net>
57316
57317         * NEWS: Mention IFUNC testsuite enhancements.
57318
57319         * po/pl.po: Update from translation team.
57320         * po/bg.po: Likewise.
57321
57322         * manual/contrib.texi (Contributors): Update entries for Hongjiu
57323         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
57324
57325 2012-12-11  David S. Miller  <davem@davemloft.net>
57326
57327         * po/sv.po: Update from translation team.
57328
57329         * po/vi.po: Update from translation team.
57330
57331         * po/cs.po: Update from translation team.
57332
57333         * po/de.po: Update from translation team.
57334         * po/eo.po: Likewise.
57335         * po/nl.po: Likewise.
57336
57337 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
57338
57339         [BZ #14246]
57340         * manual/argp.texi (Argp Helper Functions): Move node to follow
57341         Argp Parsing State.
57342
57343         [BZ #14872]
57344         * manual/conf.texi (Limits on File System Capacity): Mention if
57345         terminating null is included in the max size.
57346
57347 2012-12-10  Andreas Jaeger  <aj@suse.de>
57348
57349         * po/cs.po: Update from translation team.
57350
57351 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
57352
57353         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
57354         void pointer and cast to uintptr_t.
57355         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
57356         path.
57357         * sysdeps/s390/s390-64/memcpy.S: Likewise.
57358         * sysdeps/s390/s390-64/memset.S: Likewise.
57359
57360 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
57361
57362         [BZ #14833]
57363         * menual/message.texi (Message Translation): Fix typos.
57364         (Helper programs for gettext): Likewise.
57365
57366 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
57367
57368         [BZ #14898]
57369         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
57370         Change to -1.
57371
57372 2012-12-07  David S. Miller  <davem@davemloft.net>
57373
57374         * po/libc.pot: Update.
57375
57376 2012-12-07  Richard Henderson  <rth@redhat.com>
57377
57378         [BZ #10114]
57379         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
57380         normal/normal case to before the switch.
57381         (_FP_DIV): Likewise.
57382
57383 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
57384             Mike Frysinger  <vapier@gentoo.org>
57385
57386         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
57387         check for __NR_fadvise64_64.
57388
57389 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
57390
57391         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
57392         0, not just to plain "0" as a statement.
57393         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
57394         with cw.
57395
57396 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
57397
57398         * NEWS: Use sourceware.org in Bugzilla URL.
57399
57400 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
57401
57402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
57403         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
57404
57405         * stdio-common/tst-put-error.c (do_test): Add newline to the
57406         padded test to ensure flush.
57407
57408 2012-12-05  Jeff Law  <law@redhat.com>
57409
57410         * sunrpc/etc.rpc (fedfs_admin): Add entry.
57411
57412 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
57413
57414         * README: Don't refer to ports add-on as distributed separately.
57415         Mention AArch64 in list of systems supported in the ports add-on.
57416
57417         * LICENSES: Add more non-FSF copyright and license notices.
57418
57419         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
57420         ((unused)).
57421
57422         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
57423
57424         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
57425         10000 as width of padded output.
57426
57427 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
57428
57429         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
57430
57431         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
57432         variable LX with __attribute__ ((unused)).
57433         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
57434         Likewise.
57435         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
57436         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
57437         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
57438         with __attribute__ ((unused)).
57439
57440 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
57441
57442         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
57443
57444 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
57445
57446         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
57447         (CFLAGS-nldbl-acos.c): New variable.
57448         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
57449         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
57450         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
57451         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
57452         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
57453         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
57454         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
57455         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
57456         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
57457         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
57458         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
57459         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
57460         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
57461         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
57462         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
57463         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
57464         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
57465         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
57466         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
57467         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
57468         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
57469         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
57470         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
57471         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
57472         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
57473         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
57474         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
57475         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
57476         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
57477         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
57478         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
57479         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
57480         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
57481         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
57482         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
57483         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
57484         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
57485         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
57486         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
57487         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
57488         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
57489         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
57490         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
57491         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
57492         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
57493         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
57494         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
57495         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
57496         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
57497         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
57498         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
57499         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
57500         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
57501         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
57502         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
57503         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
57504         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
57505         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
57506         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
57507         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
57508         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
57509         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
57510         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
57511         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
57512         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
57513         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
57514         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
57515         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
57516         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
57517         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
57518         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
57519         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
57520         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
57521         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
57522         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
57523         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
57524         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
57525         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
57526         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
57527         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
57528         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
57529         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
57530         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
57531         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
57532         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
57533         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
57534         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
57535         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
57536         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
57537         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
57538         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
57539         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
57540         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
57541         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
57542         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
57543         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
57544         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
57545
57546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
57547         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
57548
57549         [BZ #14914]
57550         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
57551         whole low double instead of just low 47 bits when splitting values
57552         into two parts.
57553
57554 2012-12-03  Allan McRae  <allan@archlinux.org>
57555
57556         * manual/stdio.texi (Predefined Printf Handlers): Remove
57557         @hsep and @vsep usage.
57558
57559 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
57560
57561         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
57562         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
57563
57564 2012-12-03  Jeff Law  <law@redhat.com>
57565
57566         * time/sys/time.h (settimeofday): Do not mark TV argument
57567         as __nonnull.
57568
57569 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
57570
57571         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
57572         when currently writing and seek to current position when not.
57573         * libio/Makefile (tests): Remove bug-fclose1.
57574         * libio/bug-fclose1.c: Delete.
57575
57576 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
57577
57578         * manual/arith.texi (feenableexcept): Fix typo.
57579         (fedisableexcept): Likewise.
57580
57581 2012-11-30  Roland McGrath  <roland@hack.frob.com>
57582
57583         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
57584         second, differently-typed declaration, rather than a cast.
57585
57586 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
57587
57588         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
57589         * include/rpc/svc.h: ... here.
57590
57591 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
57592
57593         [BZ #13013]
57594         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
57595         depending n and resplen2 to catch cases where answer
57596         equals answerp2.
57597
57598 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
57599
57600         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
57601         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
57602
57603 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
57604
57605         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
57606
57607 2012-11-29  Roland McGrath  <roland@hack.frob.com>
57608
57609         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
57610
57611 2012-11-28  Jeff Law  <law@redhat.com>
57612
57613         [BZ #13761]
57614         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
57615         dataset_temporary.  Track alloca usage into alloca_used.
57616         If dataset is large allocate and release it via malloc/free.
57617
57618 2012-06-04  Florian Weimer  <fweimer@redhat.com>
57619
57620         [BZ #14197]
57621         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
57622
57623 2012-11-28  David S. Miller  <davem@davemloft.net>
57624
57625         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57626
57627 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
57628
57629         [BZ #14803]
57630         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
57631         of pi/2 rounded to nearest to 64 bits.
57632         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
57633         nearest to 64 bits.
57634         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
57635         bits.
57636
57637 2012-11-28  Jeff Law <law@redhat.com>
57638             Martin Osvald <mosvald@redhat.com>
57639
57640         [BZ #14889]
57641         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
57642         * sunrpc/svc.c: Include time.h.
57643         (__svc_accept_failed): New function.
57644         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
57645         any reason other than EINTR, call __svc_accept_failed.
57646         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
57647         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
57648
57649 2012-11-28  Andreas Schwab  <schwab@suse.de>
57650
57651         * scripts/abilist.awk: Also handle indirect functions in .opd
57652         section.
57653
57654 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
57655
57656         [BZ #13881]
57657         * sysdeps/x86/fpu/powl_helper.c: New file.
57658         * sysdeps/x86/fpu/Makefile: Likewise.
57659         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
57660         (p3): New object.
57661         (__ieee754_powl): Use __powl_helper for finite arguments except
57662         integer exponents below 8.
57663         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
57664         (p3): New object.
57665         (__ieee754_powl): Use __powl_helper for finite arguments except
57666         integer exponents below 8.
57667         * math/libm-test.inc (pow_test): Add more tests and enable some
57668         previously disabled tests.
57669         * sysdeps/i386/fpu/libm-test-ulps: Update.
57670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57671
57672 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57673             Carlos O'Donell  <carlos_odonell@mentor.com>
57674
57675         * nss/makedb.c (is_prime): Assert that input is odd and greater
57676         than 4.  Note that fact in a comment too.
57677         (next_prime): Add 4 to input.
57678
57679 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
57680
57681         [BZ #11741]
57682         * libio/Makefile (tests): Add test case tst-fwrite-error.
57683         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
57684         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
57685         * libio/tst-fwrite-error.c: New test case.
57686
57687 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
57688
57689         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
57690         before casting to void *.
57691         * include/libc-internal.h (__pointer_type): New macro.
57692         (__integer_if_pointer_type_sub): Likewise.
57693         (__integer_if_pointer_type): Likewise.
57694         (cast_to_integer): Likewise.
57695         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
57696         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
57697         before casting to atomic64_t.
57698         (atomic_exchange_acq): Likewise.
57699         (__arch_exchange_and_add_body): Likewise.
57700         (__arch_add_body): Likewise.
57701         (atomic_add_negative): Likewise.
57702         (atomic_add_zero): Likewise.
57703
57704 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
57705
57706         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
57707         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
57708         (add_fdes): Likewise.
57709         (linear_search_fdes): Likewise.
57710         (binary_search_unencoded_fdes): Likewise.
57711
57712 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
57713
57714         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
57715
57716 2012-11-24  Adam Conrad  <adconrad@0c3.net>
57717
57718         * configure.in: Autodetect C++ header directories.
57719         * configure: Regenerated.
57720
57721 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
57722
57723         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
57724
57725 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
57726
57727         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57728
57729 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
57730
57731         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
57732         LDBL_MANT_DIG == 106]: Disable some tests.
57733         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
57734         Likewise.
57735         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
57736         Likewise.
57737
57738         [BZ #14871]
57739         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
57740         input for small inputs.  Return +/- pi/2 for large inputs.
57741         * math/libm-test.inc (atan_test): Add more tests.
57742
57743         * sysdeps/generic/unwind-dw2-fde-glibc.c
57744         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
57745         __attribute__ ((unused)).
57746
57747         [BZ #14645]
57748         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
57749         x * y if x and y are nonzero and z is zero.
57750
57751         [BZ #14811]
57752         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
57753         nonzero exponents with absolute value below 0x1p-117 to +/-
57754         0x1p-117.
57755
57756         [BZ #14869]
57757         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
57758         up arguments below 2**-450, not just those below 2**-500.
57759         * math/libm-test.inc (hypot_test): Add another test.
57760
57761         [BZ #14868]
57762         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
57763         Return a+b for ratio over 2**120, not 2**60.
57764         * math/libm-test.inc (hypot_test): Add another test.
57765
57766         * math/libm-test.inc (clog_test): Use
57767         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
57768         (clog10_test): Likewise.
57769
57770         [BZ #6778]
57771         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
57772
57773 2012-11-22  Andreas Schwab  <schwab@suse.de>
57774
57775         * sysdeps/i386/fpu/libm-test-ulps: Update.
57776
57777 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
57778
57779         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
57780         printf output with newline.
57781
57782 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
57783
57784         [BZ #14865]
57785         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
57786         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
57787         -z nodlopen, -z initfirst and -z execstack support.
57788         * configure: Regenerated.
57789
57790         * elf/elf.h (DF_1_NODIRECT): New macro.
57791         (DF_1_IGNMULDEF): Likewise.
57792         (DF_1_NOKSYMS): Likewise.
57793         (DF_1_NOHDR): Likewise.
57794         (DF_1_EDITED): Likewise.
57795         (DF_1_NORELOC): Likewise.
57796         (DF_1_SYMINTPOSE): Likewise.
57797         (DF_1_GLOBAUDIT): Likewise.
57798         (DF_1_SINGLETON): Likewise.
57799         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
57800         DT_1_SUPPORTED_MASK bits.
57801         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
57802
57803 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
57804
57805         * sysdeps/unix/make-syscalls.sh: Document prefixes.
57806
57807 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
57808
57809         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
57810         macro.
57811
57812         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
57813         (sendmmsg): Move declarations...
57814         * socket/sys/socket.h: ... here.
57815         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
57816         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
57817         include it from...
57818         * socket/recvmmsg.c: ... this new file.
57819         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
57820         (sendmmsg): Rename to __sendmmsg, create weak alias and make
57821         definition of __sendmmsg hidden.
57822         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
57823         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
57824         Move ENOSYS stub into and include it from...
57825         * socket/sendmmsg.c: ... this new file.
57826         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
57827         (sysdep_routines): Move recvmmsg and sendmmsg...
57828         * socket/Makefile (routines): ... here.
57829         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
57830         (GLIBC_PRIVATE): Add __sendmmsg.
57831         * include/sys/socket.h (__sendmmsg): Add declarations.
57832         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
57833         sendmmsg.
57834
57835 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
57836
57837         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
57838         variable I1 with __attribute__ ((unused)).
57839         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
57840
57841 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
57842
57843         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
57844         DUMMY variables with __attribute__ ((unused)).
57845
57846         * bits/byteswap.h: Include <bits/types.h>.
57847         (__bswap_64): Use __uint64_t instead of unsigned long long int.
57848
57849 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
57850
57851         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
57852         string_t.  Do not manually set errno.
57853         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
57854         length with __strnlen.  Make sure to both set errno and return it on
57855         failure.
57856
57857 2012-11-19  David S. Miller  <davem@davemloft.net>
57858
57859         With help from Joseph Myers.
57860         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
57861         very large arguments properly.
57862         * math/libm-test.inc (atan_test): New tests.
57863         (atan2_test): New tests.
57864         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57865         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57866
57867 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
57868
57869         [BZ #14856]
57870         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
57871         Define to 3.
57872
57873         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
57874         [POSIX] (EADDRNOTAVAIL): Likewise.
57875         [POSIX] (EAFNOSUPPORT): Likewise.
57876         [POSIX] (EALREADY): Likewise.
57877         [POSIX] (ECONNABORTED): Likewise.
57878         [POSIX] (ECONNREFUSED): Likewise.
57879         [POSIX] (ECONNRESET): Likewise.
57880         [POSIX] (EDESTADDRREQ): Likewise.
57881         [POSIX] (EDQUOT): Likewise.
57882         [POSIX] (EHOSTUNREACH): Likewise.
57883         [POSIX] (EIDRM): Likewise.
57884         [POSIX] (EISCONN): Likewise.
57885         [POSIX] (ELOOP): Likewise.
57886         [POSIX] (EMULTIHOP): Likewise.
57887         [POSIX] (ENETDOWN): Likewise.
57888         [POSIX] (ENETUNREACH): Likewise.
57889         [POSIX] (ENOBUFS): Likewise.
57890         [POSIX] (ENODATA): Likewise.
57891         [POSIX] (ENOLINK): Likewise.
57892         [POSIX] (ENOMSG): Likewise.
57893         [POSIX] (ENOPROTOOPT): Likewise.
57894         [POSIX] (ENOSR): Likewise.
57895         [POSIX] (ENOSTR): Likewise.
57896         [POSIX] (ENOTCONN): Likewise.
57897         [POSIX] (ENOTSOCK): Likewise.
57898         [POSIX] (EOPNOTSUPP): Likewise.
57899         [POSIX] (EOVERFLOW): Likewise.
57900         [POSIX] (EPROTO): Likewise.
57901         [POSIX] (EPROTONOSUPPORT): Likewise.
57902         [POSIX] (EPROTOTYPE): Likewise.
57903         [POSIX] (ESTALE): Likewise.
57904         [POSIX] (ETIME): Likewise.
57905         [POSIX] (ETXTBSY): Likewise.
57906         [POSIX] (EWOULDBLOCK): Likewise.
57907         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
57908         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
57909         [POSIX] (SEEK_CUR): Likewise.
57910         [POSIX] (SEEK_END): Likewise.
57911         [POSIX || UNIX98] (mode_t): Do not require.
57912         [POSIX] (off_t): Likewise.
57913         [POSIX] (pid_t): Likewise.
57914         [POSIX] (sys/stat.h): Do not allow header.
57915         [POSIX] (unistd.h): Likewise.
57916         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
57917         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
57918         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
57919         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
57920         require.
57921         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
57922         sigevent): Specify elements.
57923         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
57924         entry.
57925         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
57926         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
57927
57928         * conform/data/cpio.h-data [POSIX]: Disable whole file.
57929         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
57930         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
57931         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
57932         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
57933         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
57934         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
57935         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
57936         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
57937         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
57938         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
57939         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
57940         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
57941         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
57942         Likewise.
57943         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
57944         Likewise.
57945         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
57946         Likewise.
57947         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
57948         Likewise.
57949         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
57950         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
57951         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
57952         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
57953         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
57954         Specify lower bound on value.
57955         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
57956         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
57957         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
57958         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
57959         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
57960         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
57961         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
57962         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
57963         value.
57964         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
57965         as optional.
57966         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
57967         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
57968         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
57969         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
57970         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
57971         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
57972         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
57973         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
57974         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
57975         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
57976         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
57977         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
57978         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
57979         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
57980         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
57981         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
57982         entry.
57983         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
57984         optional.
57985         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
57986         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
57987         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
57988         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
57989         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
57990         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
57991         Likewise.
57992         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
57993         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
57994         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
57995         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
57996         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
57997         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
57998         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
57999         as optional.
58000         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
58001         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
58002         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
58003         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
58004         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
58005         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
58006         specify as optional.
58007         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
58008         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
58009         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
58010         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
58011         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
58012         [XPG3] (NL_LANGMAX): Likewise.
58013         [POSIX || XPG3] (NL_MSGMAX): Likewise.
58014         [POSIX || XPG3] (NL_NMAX): Likewise.
58015         [POSIX || XPG3] (NL_SETMAX): Likewise.
58016         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
58017         [XPG3] (NZERO): Likewise.
58018         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
58019         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
58020         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
58021         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
58022         (REG_ERANGE): Expect.
58023         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
58024         optional-constant.
58025         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
58026         Use (void) in prototype.
58027         [POSIX] (*_t): Allow.
58028         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
58029         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
58030         (WRDE_BADVAL): Expect.
58031
58032         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
58033         expect.
58034         [XPG3 || XPG4] (O_RSYNC): Likewise.
58035         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
58036         Likewise.
58037         [XPG3 || XPG4] (pthread_sigmask): Likewise.
58038         [XPG3 || XPG4] (sigqueue): Likewise.
58039         [XPG3 || XPG4] (sigtimedwait): Likewise.
58040         [XPG3 || XPG4] (sigwaitinfo): Likewise.
58041         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
58042         [XPG3 || XPG4] (vsnprintf): Likewise.
58043         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
58044         Likewise.
58045         [XPG3 || XPG4] (blksize_t): Likewise.
58046         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
58047         Likewise.
58048         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
58049         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
58050         [XPG3 || XPG4] (struct itimerspec): Likewise.
58051         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
58052         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
58053         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
58054         [XPG3 || XPG4] (clockid_t): Likewise.
58055         [XPG3 || XPG4] (timer_t): Likewise.
58056         [XPG3 || XPG4] (clock_getres): Likewise.
58057         [XPG3 || XPG4] (clock_gettime): Likewise.
58058         [XPG3 || XPG4] (clock_settime): Likewise.
58059         [XPG3 || XPG4] (nanosleep): Likewise.
58060         [XPG3 || XPG4] (timer_create): Likewise.
58061         [XPG3 || XPG4] (timer_delete): Likewise.
58062         [XPG3 || XPG4] (timer_gettime): Likewise.
58063         [XPG3 || XPG4] (timer_getoverrun): Likewise.
58064         [XPG3 || XPG4] (timer_settime): Likewise.
58065         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
58066         [XPG3 || XPG4] (getlogin_r): Likewise.
58067         [XPG3 || XPG4] (pread): Likewise.
58068         [XPG3 || XPG4] (pthread_atfork): Likewise.
58069         [XPG3 || XPG4] (pwrite): Likewise.
58070
58071         [BZ #14835]
58072         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
58073         <bits/siginfo.h>.
58074
58075 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
58076
58077         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
58078         finalizing MALLSTREAM.
58079
58080         * sysdeps/mach/hurd/syncfs.c: New file.
58081
58082 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
58083
58084         [BZ #14719]
58085         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
58086         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
58087         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
58088         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
58089         (_nss_dns_gethostbyname4_r): Likewise.
58090         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
58091         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
58092
58093 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
58094
58095         [BZ #13763]
58096         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
58097
58098 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
58099
58100         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
58101         * elf/cache.c (print_entry): Print ",AArch64" for
58102         FLAG_AARCH64_LIB64
58103
58104         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
58105         * elf/cache.c (print_entry): Print ",hard-float" for
58106         FLAG_ARM_LIBHF.
58107
58108 2012-11-18  David S. Miller  <davem@davemloft.net>
58109
58110         With help from Joseph Myers.
58111         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
58112         cutoff to 2**-13.
58113         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
58114         cutoff to 2**-25.
58115         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
58116         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
58117         small.
58118         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
58119         * math/libm-test.inc (y0_test): New tests.
58120         (y1_test): New tests.
58121         * sysdeps/i386/fpu/libm-test-ulps: Update.
58122         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58123         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58124
58125 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
58126
58127         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
58128         64-bit targets.
58129         * configure: Regenerated.
58130
58131 2012-11-17  David S. Miller  <davem@davemloft.net>
58132
58133         [BZ #14811]
58134         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
58135         nonzero exponents with absolute value below 0x1p-128 to +/-
58136         0x1p-128.
58137
58138 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
58139
58140         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
58141
58142         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
58143
58144         * posix/getconf-speclist.c: New file.
58145         * posix/posix-envs.def: Likewise.
58146         * posix/confstr.c (START_ENV_GROUP): New macro.
58147         (END_ENV_GROUP): Likewise.
58148         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
58149         (KNOWN_PRESENT_ENV_STRING): Likewise.
58150         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
58151         (UNKNOWN_ENVIRONMENT): Likewise.
58152         (confstr): Include posix-envs.def instead of handling
58153         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
58154         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
58155         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
58156         (END_ENV_GROUP): Likewise.
58157         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
58158         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
58159         (UNKNOWN_ENVIRONMENT): Likewise.
58160         (__sysconf): Include posix-envs.def instead of handling associated
58161         cases directly here.
58162         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
58163         preprocessing getconf-speclist.c rather than running getconf or
58164         generating empty file.
58165
58166 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
58167
58168         * scripts/check-local-headers.sh: Ignore 'mach' headers.
58169
58170 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
58171
58172         [BZ #14672]
58173         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
58174
58175 2012-11-16  David S. Miller  <davem@davemloft.net>
58176
58177         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
58178         smaller than LDBL_EPSILON/2.0L, just return xm1.
58179
58180 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
58181
58182         * elf/tst-array1.c (init): Set constructor priority to 1000.
58183         (fini): Set destructor priority to 1000.
58184         * elf/tst-array2dep.c: Likewise.
58185
58186 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
58187
58188         [BZ #11741]
58189         * libio/fileops.c (_IO_new_file_write): Correctly return error.
58190         (_IO_new_file_xsputn): Also return EOF if none of the input
58191         data was written when overflow failed.
58192         * libio/iopadn.c (_IO_padn): Likewise.
58193         * libio/iowpadn.c (_IO_wpadn): Likewise.
58194         * stdio-common/tst-put-error.c: Add copyright notice.
58195         (do_test): Add case for printing padded string.
58196         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
58197         _IO_padn returned error.
58198         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
58199         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
58200         return EOF.
58201
58202 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
58203
58204         * libio/libioP.h: Add comment note that the references to C++
58205         bits are now obsolete.
58206
58207 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
58208
58209         * math/libm-test.inc (check_complex): Use asprintf.
58210
58211 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
58212
58213         * debug/pcprofiledump.c (print_version): Update copyright year.
58214         * malloc/memusagestat.c (print_version): Likewise.
58215
58216 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
58217
58218         [BZ #14831]
58219         * elf/Makefile (tests): Add tst-audit8.
58220         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
58221         ($(objpfx)tst-audit8.out): New target.
58222         (tst-audit8-ENV): New variable.
58223         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
58224         audit if l_reloc_result is NULL.
58225         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
58226         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
58227         * elf/tst-audit8.c: New file.
58228
58229 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
58230
58231         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
58232         * misc/Makefile (CFLAGS-select.c): Define.
58233         * posix/Makefile (CFLAGS-pause.c): Define.
58234
58235 2012-11-13  David S. Miller  <davem@davemloft.net>
58236
58237         * crypt/Makefile: Move test targets after toplevel Rules
58238         inclusion.  Grab any necessary sysdep routines when linking.
58239         * crypt/md5.c (md5_process_block): Remove define, we will always
58240         name it __md5_process_block.
58241         (md5_finish_ctx): Update md5_process_block call.
58242         (md5_stream): Likewise.
58243         (md5_process_bytes): Likewise.
58244         (md5_process_block): Rename to __md5_process_block and move to ...
58245         * crypt/md5-block.c: ... here.
58246         * crypt/sha256.c (sha256_process_block): Move to ...
58247         * crypt/sha256-block.c: ... here.
58248         * crypt/sha512.c (sha512_process_block): Move to ...
58249         * crypt/sha512-block.c: ... here.
58250         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
58251         path.
58252         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
58253         * sysdeps/sparc/sparc64/multiarch/Makefile
58254         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
58255         crypt subdir.
58256         (localedef-aux): Add md5 crypto assembler when in locale subdir.
58257         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
58258         multiarch changes.
58259         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
58260         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
58261         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
58262         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
58263         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
58264         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
58265         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
58266         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
58267         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
58268         file.
58269         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
58270         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
58271         file.
58272         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
58273
58274 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
58275
58276         * timezone/tzselect.ksh: Update from tzcode git revision
58277         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
58278         * timezone/zdump.c: Likewise.
58279         * timezone/zic.c: Likewise.
58280         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
58281         in TZVERSION setting, not $(PKGVERSION).
58282         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
58283         REPORT_BUGS_TO settings.
58284
58285         [BZ #14838]
58286         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
58287         macro.
58288
58289 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
58290
58291         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
58292         detection to immediately after _FP_ROUND().
58293         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
58294         bits are 0.
58295
58296 2012-11-11  David S. Miller  <davem@davemloft.net>
58297
58298         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
58299         inttypes.h
58300         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
58301         __close rather than their public counterparts.
58302
58303 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
58304
58305         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
58306         file.
58307         [UNIX98] (sem_timedwait): Do not expect.
58308         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
58309         [XPG4 || UNIX98] (sockatmark): Do not expect.
58310         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
58311         (clock_getcpuclockid): Do not expect.
58312         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
58313         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
58314         Do not expect.
58315         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
58316         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
58317         [UNIX98] (vwscanf): Likewise.
58318         [UNIX98] (vswscanf): Likewise.
58319
58320 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
58321
58322         * timezone/version.h: Remove file.
58323         * timezone/README: Do not refer to version.h.
58324         * timezone/Makefile ($(objpfx)zic.o): New dependency on
58325         $(objpfx)version.h.
58326         ($(objpfx)zdump.o): Likewise.
58327         ($(objpfx)version.h): New target.
58328
58329         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
58330         2012i.
58331         * timezone/README: Don't mention modification to tzselect.ksh.
58332         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
58333         work on unmodified tzselect.ksh.  Substitute version numbers in
58334         tzselect.ksh.
58335
58336         * Makefile (format-me): Remove.
58337         (INSTALL): Adjust indentation.  Use commands directly instead of
58338         using $(format-me).
58339
58340         * aclocal.m4 (ACX_PKGVERSION): New macro.
58341         (ACX_BUGURL): Likewise.
58342         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
58343         (PKGVERSION): New AC_DEFINE_UNQUOTED.
58344         (REPORT_BUGS_TO): Likewise.
58345         * configure: Regenerated.
58346         * config.h.in (PKGVERSION): New macro.
58347         (REPORT_BUGS_TO): Likewise.
58348         * config.make.in (PKGVERSION): New variable.
58349         (PKGVERSION_TEXI): Likewise.
58350         (REPORT_BUGS_TO): Likewise.
58351         (REPORT_BUGS_TEXI): Likewise.
58352         * Makefile (format-me): Use -I$(common-objpfx)manual.
58353         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
58354         ($(common-objpfx)manual/%): New target.
58355         (manual/%): Remove target.
58356         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
58357         (print_version): Use PKGVERSION.
58358         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
58359         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
58360         and REPORT_BUGS_TO.
58361         ($(objpfx)xtrace): Likewise.
58362         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
58363         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
58364         (print_version): Use PKGVERSION.
58365         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
58366         (do_version): Use PKGVERSION.
58367         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
58368         REPORT_BUGS_TO.
58369         (common-ldd-rewrite): Likewise.
58370         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
58371         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
58372         (print_version): Use PKGVERSION.
58373         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
58374         * elf/pldd.c (argp_program_bug_address): Remove variable.
58375         (more_help): New function.
58376         (argp): Use more_help.
58377         (print_version): Use PKGVERSION.
58378         * elf/sln.c (main): Use PKGVERSION.
58379         (usage): Use REPORT_BUGS_TO.
58380         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
58381         (top level): Use PKGVERSION.
58382         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
58383         (print_version): Use PKGVERSION.
58384         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
58385         (print_version): Use PKGVERSION.
58386         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
58387         (print_version): Use PKGVERSION.
58388         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
58389         (print_version): Use PKGVERSION.
58390         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
58391         (print_version): Use PKGVERSION.
58392         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
58393         (print_version): Use PKGVERSION.
58394         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
58395         and BUGURL.
58396         ($(objpfx)memusage): Likewise.
58397         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
58398         (do_version): Use PKGVERSION.
58399         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
58400         (print_version): Use PKGVERSION.
58401         * malloc/mtrace.pl ($PACKAGE): Remove variable.
58402         ($PKGVERSION): New variable.
58403         ($REPORT_BUGS_TO): Likewise.
58404         (usage): Use $REPORT_BUGS_TO.
58405         (top level): Use $PKGVERSION.
58406         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
58407         ($(objpfx)pkgvers.texi): New rule.
58408         ($(objpfx)stamp-pkgvers): Likewise.
58409         * manual/install.texi: Include pkgvers.texi.
58410         (--with-pkgversion): Document new configure option.
58411         (--with-bugurl): Likewise.
58412         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
58413         than necessarily for this particular distribution.  Use
58414         REPORT_BUGS_TO for where to report bugs.
58415         * INSTALL: Regenerated.
58416         * manual/libc.texinfo: Include pkgvers.texi.
58417         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
58418         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
58419         (print_version): Use PKGVERSION.
58420         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
58421         (print_version): Use PKGVERSION.
58422         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
58423         (print_version): Use PKGVERSION.
58424         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
58425         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
58426         macro.
58427         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
58428         (print_version): Use PKGVERSION.
58429         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
58430         (print_version): Use PKGVERSION.
58431         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
58432         and PKGVERSION.
58433
58434         * timezone/checktab.awk: Update from tzcode 2012i.
58435         * timezone/ialloc.c: Likewise.
58436         * timezone/private.h: Likewise.
58437         * timezone/scheck.c: Likewise.
58438         * timezone/tzfile.h: Likewise.
58439         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
58440         (TZVERSION): Hardcode tzcode version number.
58441         * timezone/zdump.c: Update from tzcode 2012i.
58442         * timezone/zic.c: Likewise.
58443         * timezone/version.h: New file.
58444         * timezone/README: Describe version.h.  Update upstream location.
58445
58446         [BZ #14824]
58447         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
58448         (mktemp): Enable declaration.
58449         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
58450         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
58451         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
58452         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
58453         Likewise.
58454         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
58455         Likewise.
58456         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
58457         Likewise.
58458         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
58459         Likewise.
58460         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
58461         Likewise.
58462         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
58463         Likewise.
58464
58465         [BZ #14821]
58466         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
58467         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
58468         for copies of such integer values.
58469         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
58470         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
58471
58472 2012-11-09  Andreas Jaeger  <aj@suse.de>
58473
58474         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
58475         definitions and declarations that are provided by
58476         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
58477
58478 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58479
58480         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
58481         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
58482         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
58483         definition.
58484
58485 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
58486
58487         * elf/elf.h: Update comment before AArch64 relocations.
58488
58489 2012-11-07  David S. Miller  <davem@davemloft.net>
58490
58491         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
58492         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
58493         (__start_context): Declare.
58494         (__makecontext_ret): Delete.
58495         (__makecontext): Hook up __start_context instead of
58496         __makecontext_ret.
58497         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
58498         (sysdep_routines): Add __start_context when in stdlib.
58499
58500 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
58501
58502         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
58503         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
58504         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
58505         hardcoded "nm".
58506         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
58507         (READELF): New variable.  Use it instead of hardcoded "readelf".
58508
58509 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
58510
58511         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
58512         * sysdeps/x86/Makefile: Here.
58513         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
58514         * sysdeps/x86/tst-xmmymm.sh: This.
58515
58516 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
58517
58518         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
58519         expectations.
58520         [UNIX98] (pthread_barrier_t): Do not expect.
58521         [UNIX98] (pthread_barrierattr_t): Likewise.
58522         [UNIX98] (pthread_spinlock_t): Likewise.
58523         [UNIX98] (pthread_barrier_destroy): Likewise.
58524         [UNIX98] (pthread_barrier_init): Likewise.
58525         [UNIX98] (pthread_barrier_wait): Likewise.
58526         [UNIX98] (pthread_barrierattr_destroy): Likewise.
58527         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
58528         [UNIX98] (pthread_barrierattr_init): Likewise.
58529         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
58530         [UNIX98] (pthread_getcpuclockid): Likewise.
58531         [UNIX98] (pthread_mutex_timedlock): Likewise.
58532         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
58533         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
58534         [UNIX98] (pthread_sigmask): Likewise.
58535         [UNIX98] (pthread_spin_destroy): Likewise.
58536         [UNIX98] (pthread_spin_init): Likewise.
58537         [UNIX98] (pthread_spin_lock): Likewise.
58538         [UNIX98] (pthread_spin_trylock): Likewise.
58539         [UNIX98] (pthread_spin_unlock): Likewise.
58540         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
58541         Do not expect.
58542         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
58543         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
58544         [XPG3 || XPG4] (pthread_cond_t): Likewise.
58545         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
58546         [XPG3 || XPG4] (pthread_key_t): Likewise.
58547         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
58548         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
58549         [XPG3 || XPG4] (pthread_once_t): Likewise.
58550         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
58551         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
58552         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
58553         [XPG3 || XPG4] (pthread_t): Likewise.
58554
58555         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
58556         not expect.
58557         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
58558
58559         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
58560         Change function return type to int.
58561
58562         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
58563         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
58564         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
58565         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
58566         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
58567         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
58568         [!POSIX] (posix_madvise): Likewise.
58569         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
58570         && !UNIX98].
58571         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
58572         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
58573         (mode_t): Likewise.
58574         (posix_mem_offset): Likewise.
58575         (posix_typed_mem_get_info): Likewise.
58576         (posix_typed_mem_open): Likewise.
58577
58578         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
58579         Change condition to [XOPEN2K8].
58580
58581         * conform/conformtest.pl: Preprocess allow-header data with -x c
58582         instead of from stdin.
58583         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
58584         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
58585         [C99-based standards] (cerfc): Likewise.
58586         [C99-based standards] (cexp2): Likewise.
58587         [C99-based standards] (cexpm1): Likewise.
58588         [C99-based standards] (clog10): Likewise.
58589         [C99-based standards] (clog1p): Likewise.
58590         [C99-based standards] (clog2): Likewise.
58591         [C99-based standards] (clgamma): Likewise.
58592         [C99-based standards] (ctgamma): Likewise.
58593         [C99-based standards] (cerff): Likewise.
58594         [C99-based standards] (cerfcf): Likewise.
58595         [C99-based standards] (cexp2f): Likewise.
58596         [C99-based standards] (cexpm1f): Likewise.
58597         [C99-based standards] (clog10f): Likewise.
58598         [C99-based standards] (clog1pf): Likewise.
58599         [C99-based standards] (clog2f): Likewise.
58600         [C99-based standards] (clgammaf): Likewise.
58601         [C99-based standards] (ctgammaf): Likewise.
58602         [C99-based standards] (cerfl): Likewise.
58603         [C99-based standards] (cerfcl): Likewise.
58604         [C99-based standards] (cexp2l): Likewise.
58605         [C99-based standards] (cexpm1l): Likewise.
58606         [C99-based standards] (clog10l): Likewise.
58607         [C99-based standards] (clog1pl): Likewise.
58608         [C99-based standards] (clog2l): Likewise.
58609         [C99-based standards] (clgammal): Likewise.
58610         [C99-based standards] (ctgammal): Likewise.
58611         * conform/data/inttypes.h-data [C99-based standards]: Include
58612         stdint.h-data.  Remove all expectations for stdint.h contents.
58613         [C99-based standards] (PRI*): Do not allow.
58614         [C99-based standards] (SCN*): Likewise.
58615         [C99-based standards] (*_t): Likewise.
58616         [C99-based-standards] (PRId8): Expect macro.
58617         [C99-based-standards] (PRIi8): Likewise.
58618         [C99-based-standards] (PRIo8): Likewise.
58619         [C99-based-standards] (PRIu8): Likewise.
58620         [C99-based-standards] (PRIx8): Likewise.
58621         [C99-based-standards] (PRIX8): Likewise.
58622         [C99-based-standards] (SCNd8): Likewise.
58623         [C99-based-standards] (SCNi8): Likewise.
58624         [C99-based-standards] (SCNo8): Likewise.
58625         [C99-based-standards] (SCNu8): Likewise.
58626         [C99-based-standards] (SCNx8): Likewise.
58627         [C99-based-standards] (PRIdLEAST8): Likewise.
58628         [C99-based-standards] (PRIiLEAST8): Likewise.
58629         [C99-based-standards] (PRIoLEAST8): Likewise.
58630         [C99-based-standards] (PRIuLEAST8): Likewise.
58631         [C99-based-standards] (PRIxLEAST8): Likewise.
58632         [C99-based-standards] (PRIXLEAST8): Likewise.
58633         [C99-based-standards] (SCNdLEAST8): Likewise.
58634         [C99-based-standards] (SCNiLEAST8): Likewise.
58635         [C99-based-standards] (SCNoLEAST8): Likewise.
58636         [C99-based-standards] (SCNuLEAST8): Likewise.
58637         [C99-based-standards] (SCNxLEAST8): Likewise.
58638         [C99-based-standards] (PRIdFAST8): Likewise.
58639         [C99-based-standards] (PRIiFAST8): Likewise.
58640         [C99-based-standards] (PRIoFAST8): Likewise.
58641         [C99-based-standards] (PRIuFAST8): Likewise.
58642         [C99-based-standards] (PRIxFAST8): Likewise.
58643         [C99-based-standards] (PRIXFAST8): Likewise.
58644         [C99-based-standards] (SCNdFAST8): Likewise.
58645         [C99-based-standards] (SCNiFAST8): Likewise.
58646         [C99-based-standards] (SCNoFAST8): Likewise.
58647         [C99-based-standards] (SCNuFAST8): Likewise.
58648         [C99-based-standards] (SCNxFAST8): Likewise.
58649         [C99-based-standards] (PRId16): Likewise.
58650         [C99-based-standards] (PRIi16): Likewise.
58651         [C99-based-standards] (PRIo16): Likewise.
58652         [C99-based-standards] (PRIu16): Likewise.
58653         [C99-based-standards] (PRIx16): Likewise.
58654         [C99-based-standards] (PRIX16): Likewise.
58655         [C99-based-standards] (SCNd16): Likewise.
58656         [C99-based-standards] (SCNi16): Likewise.
58657         [C99-based-standards] (SCNo16): Likewise.
58658         [C99-based-standards] (SCNu16): Likewise.
58659         [C99-based-standards] (SCNx16): Likewise.
58660         [C99-based-standards] (PRIdLEAST16): Likewise.
58661         [C99-based-standards] (PRIiLEAST16): Likewise.
58662         [C99-based-standards] (PRIoLEAST16): Likewise.
58663         [C99-based-standards] (PRIuLEAST16): Likewise.
58664         [C99-based-standards] (PRIxLEAST16): Likewise.
58665         [C99-based-standards] (PRIXLEAST16): Likewise.
58666         [C99-based-standards] (SCNdLEAST16): Likewise.
58667         [C99-based-standards] (SCNiLEAST16): Likewise.
58668         [C99-based-standards] (SCNoLEAST16): Likewise.
58669         [C99-based-standards] (SCNuLEAST16): Likewise.
58670         [C99-based-standards] (SCNxLEAST16): Likewise.
58671         [C99-based-standards] (PRIdFAST16): Likewise.
58672         [C99-based-standards] (PRIiFAST16): Likewise.
58673         [C99-based-standards] (PRIoFAST16): Likewise.
58674         [C99-based-standards] (PRIuFAST16): Likewise.
58675         [C99-based-standards] (PRIxFAST16): Likewise.
58676         [C99-based-standards] (PRIXFAST16): Likewise.
58677         [C99-based-standards] (SCNdFAST16): Likewise.
58678         [C99-based-standards] (SCNiFAST16): Likewise.
58679         [C99-based-standards] (SCNoFAST16): Likewise.
58680         [C99-based-standards] (SCNuFAST16): Likewise.
58681         [C99-based-standards] (SCNxFAST16): Likewise.
58682         [C99-based-standards] (PRId32): Likewise.
58683         [C99-based-standards] (PRIi32): Likewise.
58684         [C99-based-standards] (PRIo32): Likewise.
58685         [C99-based-standards] (PRIu32): Likewise.
58686         [C99-based-standards] (PRIx32): Likewise.
58687         [C99-based-standards] (PRIX32): Likewise.
58688         [C99-based-standards] (SCNd32): Likewise.
58689         [C99-based-standards] (SCNi32): Likewise.
58690         [C99-based-standards] (SCNo32): Likewise.
58691         [C99-based-standards] (SCNu32): Likewise.
58692         [C99-based-standards] (SCNx32): Likewise.
58693         [C99-based-standards] (PRIdLEAST32): Likewise.
58694         [C99-based-standards] (PRIiLEAST32): Likewise.
58695         [C99-based-standards] (PRIoLEAST32): Likewise.
58696         [C99-based-standards] (PRIuLEAST32): Likewise.
58697         [C99-based-standards] (PRIxLEAST32): Likewise.
58698         [C99-based-standards] (PRIXLEAST32): Likewise.
58699         [C99-based-standards] (SCNdLEAST32): Likewise.
58700         [C99-based-standards] (SCNiLEAST32): Likewise.
58701         [C99-based-standards] (SCNoLEAST32): Likewise.
58702         [C99-based-standards] (SCNuLEAST32): Likewise.
58703         [C99-based-standards] (SCNxLEAST32): Likewise.
58704         [C99-based-standards] (PRIdFAST32): Likewise.
58705         [C99-based-standards] (PRIiFAST32): Likewise.
58706         [C99-based-standards] (PRIoFAST32): Likewise.
58707         [C99-based-standards] (PRIuFAST32): Likewise.
58708         [C99-based-standards] (PRIxFAST32): Likewise.
58709         [C99-based-standards] (PRIXFAST32): Likewise.
58710         [C99-based-standards] (SCNdFAST32): Likewise.
58711         [C99-based-standards] (SCNiFAST32): Likewise.
58712         [C99-based-standards] (SCNoFAST32): Likewise.
58713         [C99-based-standards] (SCNuFAST32): Likewise.
58714         [C99-based-standards] (SCNxFAST32): Likewise.
58715         [C99-based-standards] (PRId64): Likewise.
58716         [C99-based-standards] (PRIi64): Likewise.
58717         [C99-based-standards] (PRIo64): Likewise.
58718         [C99-based-standards] (PRIu64): Likewise.
58719         [C99-based-standards] (PRIx64): Likewise.
58720         [C99-based-standards] (PRIX64): Likewise.
58721         [C99-based-standards] (SCNd64): Likewise.
58722         [C99-based-standards] (SCNi64): Likewise.
58723         [C99-based-standards] (SCNo64): Likewise.
58724         [C99-based-standards] (SCNu64): Likewise.
58725         [C99-based-standards] (SCNx64): Likewise.
58726         [C99-based-standards] (PRIdLEAST64): Likewise.
58727         [C99-based-standards] (PRIiLEAST64): Likewise.
58728         [C99-based-standards] (PRIoLEAST64): Likewise.
58729         [C99-based-standards] (PRIuLEAST64): Likewise.
58730         [C99-based-standards] (PRIxLEAST64): Likewise.
58731         [C99-based-standards] (PRIXLEAST64): Likewise.
58732         [C99-based-standards] (SCNdLEAST64): Likewise.
58733         [C99-based-standards] (SCNiLEAST64): Likewise.
58734         [C99-based-standards] (SCNoLEAST64): Likewise.
58735         [C99-based-standards] (SCNuLEAST64): Likewise.
58736         [C99-based-standards] (SCNxLEAST64): Likewise.
58737         [C99-based-standards] (PRIdFAST64): Likewise.
58738         [C99-based-standards] (PRIiFAST64): Likewise.
58739         [C99-based-standards] (PRIoFAST64): Likewise.
58740         [C99-based-standards] (PRIuFAST64): Likewise.
58741         [C99-based-standards] (PRIxFAST64): Likewise.
58742         [C99-based-standards] (PRIXFAST64): Likewise.
58743         [C99-based-standards] (SCNdFAST64): Likewise.
58744         [C99-based-standards] (SCNiFAST64): Likewise.
58745         [C99-based-standards] (SCNoFAST64): Likewise.
58746         [C99-based-standards] (SCNuFAST64): Likewise.
58747         [C99-based-standards] (SCNxFAST64): Likewise.
58748         [C99-based-standards] (PRIdMAX): Likewise.
58749         [C99-based-standards] (PRIiMAX): Likewise.
58750         [C99-based-standards] (PRIoMAX): Likewise.
58751         [C99-based-standards] (PRIuMAX): Likewise.
58752         [C99-based-standards] (PRIxMAX): Likewise.
58753         [C99-based-standards] (PRIXMAX): Likewise.
58754         [C99-based-standards] (SCNdMAX): Likewise.
58755         [C99-based-standards] (SCNiMAX): Likewise.
58756         [C99-based-standards] (SCNoMAX): Likewise.
58757         [C99-based-standards] (SCNuMAX): Likewise.
58758         [C99-based-standards] (SCNxMAX): Likewise.
58759         [C99-based-standards] (PRIdPTR): Likewise.
58760         [C99-based-standards] (PRIiPTR): Likewise.
58761         [C99-based-standards] (PRIoPTR): Likewise.
58762         [C99-based-standards] (PRIuPTR): Likewise.
58763         [C99-based-standards] (PRIxPTR): Likewise.
58764         [C99-based-standards] (PRIXPTR): Likewise.
58765         [C99-based-standards] (SCNdPTR): Likewise.
58766         [C99-based-standards] (SCNiPTR): Likewise.
58767         [C99-based-standards] (SCNoPTR): Likewise.
58768         [C99-based-standards] (SCNuPTR): Likewise.
58769         [C99-based-standards] (SCNxPTR): Likewise.
58770         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
58771         allow.
58772         * conform/data/stdint.h-data: Update comments to clarify
58773         requirements.
58774         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
58775         type.
58776         [C99-based standards] (INT8_MAX): Likewise.
58777         [C99-based standards] (INT16_MIN): Likewise.
58778         [C99-based standards] (INT16_MAX): Likewise.
58779         [C99-based standards] (INT32_MIN): Likewise.
58780         [C99-based standards] (INT32_MAX): Likewise.
58781         [C99-based standards] (INT64_MIN): Likewise.
58782         [C99-based standards] (INT64_MAX): Likewise.
58783         [C99-based standards] (UINT8_MAX): Likewise.
58784         [C99-based standards] (UINT16_MAX): Likewise.
58785         [C99-based standards] (UINT32_MAX): Likewise.
58786         [C99-based standards] (UINT64_MAX): Likewise.
58787         [C99-based standards] (INT_LEAST8_MIN): Likewise.
58788         [C99-based standards] (INT_LEAST8_MAX): Likewise.
58789         [C99-based standards] (INT_LEAST16_MIN): Likewise.
58790         [C99-based standards] (INT_LEAST16_MAX): Likewise.
58791         [C99-based standards] (INT_LEAST32_MIN): Likewise.
58792         [C99-based standards] (INT_LEAST32_MAX): Likewise.
58793         [C99-based standards] (INT_LEAST64_MIN): Likewise.
58794         [C99-based standards] (INT_LEAST64_MAX): Likewise.
58795         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
58796         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
58797         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
58798         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
58799         [C99-based standards] (INT_FAST8_MIN): Likewise.
58800         [C99-based standards] (INT_FAST8_MAX): Likewise.
58801         [C99-based standards] (INT_FAST16_MIN): Likewise.
58802         [C99-based standards] (INT_FAST16_MAX): Likewise.
58803         [C99-based standards] (INT_FAST32_MIN): Likewise.
58804         [C99-based standards] (INT_FAST32_MAX): Likewise.
58805         [C99-based standards] (INT_FAST64_MIN): Likewise.
58806         [C99-based standards] (INT_FAST64_MAX): Likewise.
58807         [C99-based standards] (UINT_FAST8_MAX): Likewise.
58808         [C99-based standards] (UINT_FAST16_MAX): Likewise.
58809         [C99-based standards] (UINT_FAST32_MAX): Likewise.
58810         [C99-based standards] (UINT_FAST64_MAX): Likewise.
58811         [C99-based standards] (INTPTR_MIN): Likewise.
58812         [C99-based standards] (INTPTR_MAX): Likewise.
58813         [C99-based standards] (UINTPTR_MAX): Likewise.
58814         [C99-based standards] (INTMAX_MIN): Likewise.
58815         [C99-based standards] (INTMAX_MAX): Likewise.
58816         [C99-based standards] (UINTMAX_MAX): Likewise.
58817         [C99-based standards] (PTRDIFF_MIN): Likewise.
58818         [C99-based standards] (PTRDIFF_MAX): Likewise.
58819         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
58820         [C99-based standards] (SIZE_MAX): Likewise.
58821         [C99-based standards] (WCHAR_MAX): Likewise.
58822         [C99-based standards] (WINT_MAX): Likewise.
58823         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
58824         constraint on value.
58825         [C99-based standards] (WCHAR_MIN): Likewise.
58826         [C99-based standards] (WINT_MIN): Likewise.
58827         [C99-based standards] (*_t): Allow.
58828         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
58829         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
58830         Include math.h-data and complex.h-data.  Remove all expectations
58831         of math.h and complex.h contents.
58832         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
58833         at end of line.
58834         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
58835         (struct tm): Expect tag.
58836         [C99-based-standards] (wcstof): Expect function.
58837         [C99-based-standards] (wcstold): Likewise.
58838         [C99-based-standards] (wcstoll): Likewise.
58839         [C99-based-standards] (wcstoull): Likewise.
58840         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
58841         macro-int-constant.  Specify type.
58842         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
58843         constraint on value.
58844         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
58845         Specify type.
58846         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
58847         Specify value.
58848         [ISO C standards]: Do not allow headers.
58849         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
58850         wcs[abcdefghijklmnopqrstuvwxyz]*.
58851         [ISO C standards] (*_t): Do not allow.
58852         * conform/data/wctype.h-data [C99-based standards] (iswblank):
58853         Expect function.
58854         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
58855         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
58856         Specify type.
58857         [ISO C standards]: Do not allow headers.
58858         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
58859         is[abcdefghijklmnopqrstuvwxyz]*.
58860         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
58861         to[abcdefghijklmnopqrstuvwxyz]*.
58862         [ISO C standards] (*_t): Do not allow.
58863         * conform/data/stdalign.h-data: New file.
58864         * conform/data/stdbool.h-data: Likewise.
58865         * conform/data/stdnoreturn.h-data: Likewise.
58866
58867 2012-11-07  Roland McGrath  <roland@hack.frob.com>
58868
58869         [BZ #14815]
58870         * manual/filesys.texi (Directory Entries): Typo fix.
58871         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
58872
58873 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
58874
58875         * elf/elf.h (EM_AARCH64): New macro.
58876         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
58877         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
58878         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
58879         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
58880         (R_AARCH64_TLSDESC): Likewise.
58881         (NT_ARM_TLS): Likewise.
58882         (NT_ARM_HW_BREAK): Likewise.
58883         (NT_ARM_HW_WATCH): Likewise.
58884
58885 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
58886
58887         [BZ #14811]
58888         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
58889         (__ieee754_powl): Saturate nonzero exponents with absolute value
58890         below 0x1p-79 to +/- 0x1p-79.
58891         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
58892         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
58893         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
58894         nonzero exponents with absolute value below 0x1p-32 to +/-
58895         0x1p-32.
58896         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
58897         (__ieee754_powl): Saturate nonzero exponents with absolute value
58898         below 0x1p-79 to +/- 0x1p-79.
58899         * math/libm-test.inc (pow_test): Add more tests.
58900
58901 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58902
58903         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
58904         _dl_s390_cap_flags with kernel. Increase string length.
58905         (_dl_s390_platforms): Add z196 and zEC12.
58906
58907 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
58908
58909         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
58910         Change XOPEN21K to XOPEN2K.
58911
58912 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
58913
58914         * string/memmove.c: Use memcpy when possible.
58915
58916 2012-11-06  Andreas Jaeger  <aj@suse.de>
58917
58918         * po/eo.po: Update from translation team.
58919
58920 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
58921
58922         [BZ #14793]
58923         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
58924         exponent and small x and y exponents, scale x or y up.  Increase
58925         by 2 the exponent used in scaling up.
58926         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
58927         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
58928         * math/libm-test.inc (fma_test): Add more tests.
58929         (fma_test_towardzero): Likewise.
58930         (fma_test_downward): Likewise.
58931         (fma_test_upward): Likewise.
58932
58933 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
58934
58935         [BZ #14805]
58936         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
58937         fenv_t *.
58938
58939         [BZ #14801]
58940         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
58941         namespace for names of struct fields.
58942         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
58943         fenv_t fields.
58944         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
58945         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
58946
58947 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
58948
58949         [BZ #3665]
58950         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
58951
58952 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
58953
58954         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
58955         PTR_DEMANGLE.
58956
58957         [BZ #5246]
58958         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
58959         PTR_DEMANGLE.
58960
58961 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
58962
58963         [BZ #14797]
58964         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
58965         definitely overflow as x * y not x * y + z.
58966         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
58967         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
58968         * math/libm-test.inc (fma_test): Add more tests.
58969         (fma_test_towardzero): Likewise.
58970         (fma_test_downward): Likewise.
58971         (fma_test_upward): Likewise.
58972
58973 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
58974
58975         [BZ #157]
58976
58977         * include/stub-tag.h: Remove file.
58978         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
58979         '#include' of it.
58980         * manual/maint.texi (Porting): Don't reference it.
58981         * Makerules ($(objpfx)stubs): Likewise.
58982         * dirent/closedir.c: Don't include <stub-tag.h>.
58983         * dirent/dirfd.c: Likewise.
58984         * dirent/fdopendir.c: Likewise.
58985         * dirent/getdents.c: Likewise.
58986         * dirent/getdents64.c: Likewise.
58987         * dirent/opendir.c: Likewise.
58988         * dirent/readdir.c: Likewise.
58989         * dirent/readdir64.c: Likewise.
58990         * dirent/readdir64_r.c: Likewise.
58991         * dirent/readdir_r.c: Likewise.
58992         * dirent/rewinddir.c: Likewise.
58993         * dirent/seekdir.c: Likewise.
58994         * dirent/telldir.c: Likewise.
58995         * gmon/profil.c: Likewise.
58996         * grp/setgroups.c: Likewise.
58997         * inet/if_index.c: Likewise.
58998         * io/access.c: Likewise.
58999         * io/chdir.c: Likewise.
59000         * io/chmod.c: Likewise.
59001         * io/chown.c: Likewise.
59002         * io/close.c: Likewise.
59003         * io/dup.c: Likewise.
59004         * io/dup2.c: Likewise.
59005         * io/dup3.c: Likewise.
59006         * io/euidaccess.c: Likewise.
59007         * io/faccessat.c: Likewise.
59008         * io/fchdir.c: Likewise.
59009         * io/fchmod.c: Likewise.
59010         * io/fchmodat.c: Likewise.
59011         * io/fchown.c: Likewise.
59012         * io/fchownat.c: Likewise.
59013         * io/fcntl.c: Likewise.
59014         * io/flock.c: Likewise.
59015         * io/fstatfs.c: Likewise.
59016         * io/fstatfs64.c: Likewise.
59017         * io/fstatvfs.c: Likewise.
59018         * io/fstatvfs64.c: Likewise.
59019         * io/futimens.c: Likewise.
59020         * io/fxstat.c: Likewise.
59021         * io/fxstat64.c: Likewise.
59022         * io/fxstatat.c: Likewise.
59023         * io/fxstatat64.c: Likewise.
59024         * io/getcwd.c: Likewise.
59025         * io/isatty.c: Likewise.
59026         * io/lchmod.c: Likewise.
59027         * io/lchown.c: Likewise.
59028         * io/link.c: Likewise.
59029         * io/linkat.c: Likewise.
59030         * io/lseek.c: Likewise.
59031         * io/lseek64.c: Likewise.
59032         * io/lxstat64.c: Likewise.
59033         * io/mkdir.c: Likewise.
59034         * io/mkdirat.c: Likewise.
59035         * io/mkfifo.c: Likewise.
59036         * io/mkfifoat.c: Likewise.
59037         * io/open.c: Likewise.
59038         * io/open64.c: Likewise.
59039         * io/openat.c: Likewise.
59040         * io/openat64.c: Likewise.
59041         * io/pipe.c: Likewise.
59042         * io/pipe2.c: Likewise.
59043         * io/poll.c: Likewise.
59044         * io/posix_fadvise.c: Likewise.
59045         * io/posix_fadvise64.c: Likewise.
59046         * io/posix_fallocate.c: Likewise.
59047         * io/posix_fallocate64.c: Likewise.
59048         * io/read.c: Likewise.
59049         * io/readlink.c: Likewise.
59050         * io/readlinkat.c: Likewise.
59051         * io/rmdir.c: Likewise.
59052         * io/sendfile.c: Likewise.
59053         * io/sendfile64.c: Likewise.
59054         * io/statfs.c: Likewise.
59055         * io/statfs64.c: Likewise.
59056         * io/statvfs.c: Likewise.
59057         * io/statvfs64.c: Likewise.
59058         * io/symlink.c: Likewise.
59059         * io/symlinkat.c: Likewise.
59060         * io/ttyname.c: Likewise.
59061         * io/ttyname_r.c: Likewise.
59062         * io/umask.c: Likewise.
59063         * io/unlink.c: Likewise.
59064         * io/unlinkat.c: Likewise.
59065         * io/utime.c: Likewise.
59066         * io/utimensat.c: Likewise.
59067         * io/write.c: Likewise.
59068         * io/xmknod.c: Likewise.
59069         * io/xmknodat.c: Likewise.
59070         * io/xstat.c: Likewise.
59071         * io/xstat64.c: Likewise.
59072         * login/getpt.c: Likewise.
59073         * login/grantpt.c: Likewise.
59074         * login/unlockpt.c: Likewise.
59075         * math/e_acoshl.c: Likewise.
59076         * math/e_acosl.c: Likewise.
59077         * math/e_asinl.c: Likewise.
59078         * math/e_atan2l.c: Likewise.
59079         * math/e_atanhl.c: Likewise.
59080         * math/e_coshl.c: Likewise.
59081         * math/e_expl.c: Likewise.
59082         * math/e_fmodl.c: Likewise.
59083         * math/e_gammal_r.c: Likewise.
59084         * math/e_hypotl.c: Likewise.
59085         * math/e_j0l.c: Likewise.
59086         * math/e_j1l.c: Likewise.
59087         * math/e_jnl.c: Likewise.
59088         * math/e_lgammal_r.c: Likewise.
59089         * math/e_log10l.c: Likewise.
59090         * math/e_log2l.c: Likewise.
59091         * math/e_logl.c: Likewise.
59092         * math/e_powl.c: Likewise.
59093         * math/e_rem_pio2l.c: Likewise.
59094         * math/e_sinhl.c: Likewise.
59095         * math/e_sqrtl.c: Likewise.
59096         * math/fclrexcpt.c: Likewise.
59097         * math/fedisblxcpt.c: Likewise.
59098         * math/feenablxcpt.c: Likewise.
59099         * math/fegetenv.c: Likewise.
59100         * math/fegetexcept.c: Likewise.
59101         * math/fegetround.c: Likewise.
59102         * math/feholdexcpt.c: Likewise.
59103         * math/fesetenv.c: Likewise.
59104         * math/fesetround.c: Likewise.
59105         * math/feupdateenv.c: Likewise.
59106         * math/fgetexcptflg.c: Likewise.
59107         * math/fraiseexcpt.c: Likewise.
59108         * math/fsetexcptflg.c: Likewise.
59109         * math/ftestexcept.c: Likewise.
59110         * math/k_cosl.c: Likewise.
59111         * math/k_rem_pio2l.c: Likewise.
59112         * math/k_sinl.c: Likewise.
59113         * math/k_tanl.c: Likewise.
59114         * math/s_asinhl.c: Likewise.
59115         * math/s_atanl.c: Likewise.
59116         * math/s_cbrtl.c: Likewise.
59117         * math/s_erfl.c: Likewise.
59118         * math/s_expm1l.c: Likewise.
59119         * math/s_log1pl.c: Likewise.
59120         * math/s_tanhl.c: Likewise.
59121         * misc/acct.c: Likewise.
59122         * misc/brk.c: Likewise.
59123         * misc/chflags.c: Likewise.
59124         * misc/chroot.c: Likewise.
59125         * misc/fchflags.c: Likewise.
59126         * misc/fgetxattr.c: Likewise.
59127         * misc/flistxattr.c: Likewise.
59128         * misc/fremovexattr.c: Likewise.
59129         * misc/fsetxattr.c: Likewise.
59130         * misc/fsync.c: Likewise.
59131         * misc/ftruncate.c: Likewise.
59132         * misc/futimes.c: Likewise.
59133         * misc/futimesat.c: Likewise.
59134         * misc/getdomain.c: Likewise.
59135         * misc/getdtsz.c: Likewise.
59136         * misc/gethostid.c: Likewise.
59137         * misc/gethostname.c: Likewise.
59138         * misc/getloadavg.c: Likewise.
59139         * misc/getpagesize.c: Likewise.
59140         * misc/getsysstats.c: Likewise.
59141         * misc/getxattr.c: Likewise.
59142         * misc/gtty.c: Likewise.
59143         * misc/ioctl.c: Likewise.
59144         * misc/lgetxattr.c: Likewise.
59145         * misc/listxattr.c: Likewise.
59146         * misc/llistxattr.c: Likewise.
59147         * misc/lremovexattr.c: Likewise.
59148         * misc/lsetxattr.c: Likewise.
59149         * misc/lutimes.c: Likewise.
59150         * misc/madvise.c: Likewise.
59151         * misc/mincore.c: Likewise.
59152         * misc/mlock.c: Likewise.
59153         * misc/mlockall.c: Likewise.
59154         * misc/mmap.c: Likewise.
59155         * misc/mprotect.c: Likewise.
59156         * misc/msync.c: Likewise.
59157         * misc/munlock.c: Likewise.
59158         * misc/munlockall.c: Likewise.
59159         * misc/munmap.c: Likewise.
59160         * misc/preadv.c: Likewise.
59161         * misc/preadv64.c: Likewise.
59162         * misc/ptrace.c: Likewise.
59163         * misc/pwritev.c: Likewise.
59164         * misc/pwritev64.c: Likewise.
59165         * misc/readv.c: Likewise.
59166         * misc/reboot.c: Likewise.
59167         * misc/remap_file_pages.c: Likewise.
59168         * misc/removexattr.c: Likewise.
59169         * misc/revoke.c: Likewise.
59170         * misc/select.c: Likewise.
59171         * misc/setdomain.c: Likewise.
59172         * misc/setegid.c: Likewise.
59173         * misc/seteuid.c: Likewise.
59174         * misc/sethostid.c: Likewise.
59175         * misc/sethostname.c: Likewise.
59176         * misc/setregid.c: Likewise.
59177         * misc/setreuid.c: Likewise.
59178         * misc/setxattr.c: Likewise.
59179         * misc/sstk.c: Likewise.
59180         * misc/stty.c: Likewise.
59181         * misc/swapoff.c: Likewise.
59182         * misc/swapon.c: Likewise.
59183         * misc/sync.c: Likewise.
59184         * misc/syncfs.c: Likewise.
59185         * misc/syscall.c: Likewise.
59186         * misc/truncate.c: Likewise.
59187         * misc/ualarm.c: Likewise.
59188         * misc/usleep.c: Likewise.
59189         * misc/ustat.c: Likewise.
59190         * misc/utimes.c: Likewise.
59191         * misc/vhangup.c: Likewise.
59192         * misc/writev.c: Likewise.
59193         * posix/_exit.c: Likewise.
59194         * posix/alarm.c: Likewise.
59195         * posix/execve.c: Likewise.
59196         * posix/fexecve.c: Likewise.
59197         * posix/fork.c: Likewise.
59198         * posix/fpathconf.c: Likewise.
59199         * posix/getaddrinfo.c: Likewise.
59200         * posix/getegid.c: Likewise.
59201         * posix/geteuid.c: Likewise.
59202         * posix/getgid.c: Likewise.
59203         * posix/getgroups.c: Likewise.
59204         * posix/getlogin.c: Likewise.
59205         * posix/getlogin_r.c: Likewise.
59206         * posix/getpgid.c: Likewise.
59207         * posix/getpid.c: Likewise.
59208         * posix/getppid.c: Likewise.
59209         * posix/getresgid.c: Likewise.
59210         * posix/getresuid.c: Likewise.
59211         * posix/getsid.c: Likewise.
59212         * posix/getuid.c: Likewise.
59213         * posix/glob64.c: Likewise.
59214         * posix/nanosleep.c: Likewise.
59215         * posix/pathconf.c: Likewise.
59216         * posix/pause.c: Likewise.
59217         * posix/posix_madvise.c: Likewise.
59218         * posix/pread.c: Likewise.
59219         * posix/pread64.c: Likewise.
59220         * posix/pwrite.c: Likewise.
59221         * posix/pwrite64.c: Likewise.
59222         * posix/sched_getaffinity.c: Likewise.
59223         * posix/sched_getp.c: Likewise.
59224         * posix/sched_gets.c: Likewise.
59225         * posix/sched_primax.c: Likewise.
59226         * posix/sched_primin.c: Likewise.
59227         * posix/sched_rr_gi.c: Likewise.
59228         * posix/sched_setaffinity.c: Likewise.
59229         * posix/sched_setp.c: Likewise.
59230         * posix/sched_sets.c: Likewise.
59231         * posix/sched_yield.c: Likewise.
59232         * posix/setgid.c: Likewise.
59233         * posix/setlogin.c: Likewise.
59234         * posix/setpgid.c: Likewise.
59235         * posix/setresgid.c: Likewise.
59236         * posix/setresuid.c: Likewise.
59237         * posix/setsid.c: Likewise.
59238         * posix/setuid.c: Likewise.
59239         * posix/sleep.c: Likewise.
59240         * posix/spawni.c: Likewise.
59241         * posix/sysconf.c: Likewise.
59242         * posix/times.c: Likewise.
59243         * posix/wait.c: Likewise.
59244         * posix/wait3.c: Likewise.
59245         * posix/wait4.c: Likewise.
59246         * posix/waitpid.c: Likewise.
59247         * resolv/gai_sigqueue.c: Likewise.
59248         * resource/getpriority.c: Likewise.
59249         * resource/getrlimit.c: Likewise.
59250         * resource/getrusage.c: Likewise.
59251         * resource/nice.c: Likewise.
59252         * resource/setpriority.c: Likewise.
59253         * resource/setrlimit.c: Likewise.
59254         * resource/ulimit.c: Likewise.
59255         * rt/aio_cancel.c: Likewise.
59256         * rt/aio_fsync.c: Likewise.
59257         * rt/aio_read.c: Likewise.
59258         * rt/aio_sigqueue.c: Likewise.
59259         * rt/aio_suspend.c: Likewise.
59260         * rt/aio_write.c: Likewise.
59261         * rt/clock_getres.c: Likewise.
59262         * rt/clock_gettime.c: Likewise.
59263         * rt/clock_nanosleep.c: Likewise.
59264         * rt/clock_settime.c: Likewise.
59265         * rt/lio_listio.c: Likewise.
59266         * rt/mq_close.c: Likewise.
59267         * rt/mq_getattr.c: Likewise.
59268         * rt/mq_notify.c: Likewise.
59269         * rt/mq_open.c: Likewise.
59270         * rt/mq_receive.c: Likewise.
59271         * rt/mq_send.c: Likewise.
59272         * rt/mq_setattr.c: Likewise.
59273         * rt/mq_timedreceive.c: Likewise.
59274         * rt/mq_timedsend.c: Likewise.
59275         * rt/mq_unlink.c: Likewise.
59276         * rt/shm_open.c: Likewise.
59277         * rt/shm_unlink.c: Likewise.
59278         * rt/timer_create.c: Likewise.
59279         * rt/timer_delete.c: Likewise.
59280         * rt/timer_getoverr.c: Likewise.
59281         * rt/timer_gettime.c: Likewise.
59282         * rt/timer_settime.c: Likewise.
59283         * setjmp/__longjmp.c: Likewise.
59284         * setjmp/setjmp.c: Likewise.
59285         * signal/kill.c: Likewise.
59286         * signal/killpg.c: Likewise.
59287         * signal/raise.c: Likewise.
59288         * signal/sigaction.c: Likewise.
59289         * signal/sigaltstack.c: Likewise.
59290         * signal/sigblock.c: Likewise.
59291         * signal/sigignore.c: Likewise.
59292         * signal/sigintr.c: Likewise.
59293         * signal/signal.c: Likewise.
59294         * signal/sigpause.c: Likewise.
59295         * signal/sigpending.c: Likewise.
59296         * signal/sigqueue.c: Likewise.
59297         * signal/sigreturn.c: Likewise.
59298         * signal/sigset.c: Likewise.
59299         * signal/sigsetmask.c: Likewise.
59300         * signal/sigstack.c: Likewise.
59301         * signal/sigsuspend.c: Likewise.
59302         * signal/sigtimedwait.c: Likewise.
59303         * signal/sigvec.c: Likewise.
59304         * signal/sigwait.c: Likewise.
59305         * signal/sigwaitinfo.c: Likewise.
59306         * signal/sysv_signal.c: Likewise.
59307         * socket/accept.c: Likewise.
59308         * socket/accept4.c: Likewise.
59309         * socket/bind.c: Likewise.
59310         * socket/connect.c: Likewise.
59311         * socket/getpeername.c: Likewise.
59312         * socket/getsockname.c: Likewise.
59313         * socket/getsockopt.c: Likewise.
59314         * socket/isfdtype.c: Likewise.
59315         * socket/listen.c: Likewise.
59316         * socket/recv.c: Likewise.
59317         * socket/recvfrom.c: Likewise.
59318         * socket/recvmsg.c: Likewise.
59319         * socket/send.c: Likewise.
59320         * socket/sendmsg.c: Likewise.
59321         * socket/sendto.c: Likewise.
59322         * socket/setsockopt.c: Likewise.
59323         * socket/shutdown.c: Likewise.
59324         * socket/sockatmark.c: Likewise.
59325         * socket/socket.c: Likewise.
59326         * socket/socketpair.c: Likewise.
59327         * stdio-common/ctermid.c: Likewise.
59328         * stdio-common/cuserid.c: Likewise.
59329         * stdio-common/remove.c: Likewise.
59330         * stdio-common/rename.c: Likewise.
59331         * stdio-common/renameat.c: Likewise.
59332         * stdio-common/tempname.c: Likewise.
59333         * stdlib/getcontext.c: Likewise.
59334         * stdlib/makecontext.c: Likewise.
59335         * stdlib/setcontext.c: Likewise.
59336         * stdlib/swapcontext.c: Likewise.
59337         * stdlib/system.c: Likewise.
59338         * streams/fattach.c: Likewise.
59339         * streams/fdetach.c: Likewise.
59340         * streams/getmsg.c: Likewise.
59341         * streams/getpmsg.c: Likewise.
59342         * streams/putmsg.c: Likewise.
59343         * streams/putpmsg.c: Likewise.
59344         * sysdeps/unix/bsd/getpt.c: Likewise.
59345         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
59346         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
59347         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
59348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
59349         Likewise.
59350         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
59351         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
59352         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
59353         * sysvipc/msgctl.c: Likewise.
59354         * sysvipc/msgget.c: Likewise.
59355         * sysvipc/msgrcv.c: Likewise.
59356         * sysvipc/msgsnd.c: Likewise.
59357         * sysvipc/semctl.c: Likewise.
59358         * sysvipc/semget.c: Likewise.
59359         * sysvipc/semop.c: Likewise.
59360         * sysvipc/semtimedop.c: Likewise.
59361         * sysvipc/shmat.c: Likewise.
59362         * sysvipc/shmctl.c: Likewise.
59363         * sysvipc/shmdt.c: Likewise.
59364         * sysvipc/shmget.c: Likewise.
59365         * termios/tcdrain.c: Likewise.
59366         * termios/tcflow.c: Likewise.
59367         * termios/tcflush.c: Likewise.
59368         * termios/tcgetattr.c: Likewise.
59369         * termios/tcgetpgrp.c: Likewise.
59370         * termios/tcsendbrk.c: Likewise.
59371         * termios/tcsetattr.c: Likewise.
59372         * termios/tcsetpgrp.c: Likewise.
59373         * time/adjtime.c: Likewise.
59374         * time/clock.c: Likewise.
59375         * time/getitimer.c: Likewise.
59376         * time/gettimeofday.c: Likewise.
59377         * time/setitimer.c: Likewise.
59378         * time/settimeofday.c: Likewise.
59379         * time/stime.c: Likewise.
59380         * time/time.c: Likewise.
59381
59382 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
59383
59384         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
59385         /usr/old/bin.
59386
59387         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
59388         instead of spaces.
59389         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
59390
59391 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
59392
59393         [BZ #14796]
59394         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
59395         FE_TONEAREST before applying Dekker multiplication and Knuth
59396         addition.  Clear inexact exceptions and check for exact zero
59397         results afterwards.
59398         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
59399         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
59400         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
59401         * math/libm-test.inc (fma_test): Add more tests.
59402         (fma_test_towardzero): Likewise.
59403         (fma_test_downward): Likewise.
59404         (fma_test_upward): Likewise.
59405         * sysdeps/generic/math_private.h (default_libc_fesetround): New
59406         function.
59407         (libc_fesetround): New macro.
59408         (libc_fesetroundf): Likewise.
59409         (libc_fesetroundl): Likewise.
59410         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
59411         function.
59412         (libc_fesetround_387): Likewise.
59413         (libc_fesetroundf): New macro.
59414         (libc_fesetround): Likewise.
59415         (libc_fesetroundl): Likewise.
59416         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
59417         function.
59418         (libc_fesetroundf): New macro.
59419         (libc_fesetround): Likewise.
59420         (libc_fesetroundl): Likewise.
59421         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
59422         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
59423         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
59424         libm_hidden_ver.
59425         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
59426         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
59427         libm_hidden_def.
59428         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
59429         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
59430         libm_hidden_ver.
59431         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
59432         libm_hidden_def.
59433
59434         [BZ #3439]
59435         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
59436         integer constant usable in #if and use that to give value to enum
59437         constant.
59438         (FE_DIVBYZERO): Likewise.
59439         (FE_UNDERFLOW): Likewise.
59440         (FE_OVERFLOW): Likewise.
59441         (FE_INVALID): Likewise.
59442         (FE_INVALID_SNAN): Likewise.
59443         (FE_INVALID_ISI): Likewise.
59444         (FE_INVALID_IDI): Likewise.
59445         (FE_INVALID_ZDZ): Likewise.
59446         (FE_INVALID_IMZ): Likewise.
59447         (FE_INVALID_COMPARE): Likewise.
59448         (FE_INVALID_SOFTWARE): Likewise.
59449         (FE_INVALID_SQRT): Likewise.
59450         (FE_INVALID_INTEGER_CONVERSION): Likewise.
59451         (FE_TONEAREST): Likewise.
59452         (FE_TOWARDZERO): Likewise.
59453         (FE_UPWARD): Likewise.
59454         (FE_DOWNWARD): Likewise.
59455         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
59456         (FE_DIVBYZERO): Likewise.
59457         (FE_OVERFLOW): Likewise.
59458         (FE_UNDERFLOW): Likewise.
59459         (FE_INEXACT): Likewise.
59460         (FE_TONEAREST): Likewise.
59461         (FE_DOWNWARD): Likewise.
59462         (FE_UPWARD): Likewise.
59463         (FE_TOWARDZERO): Likewise.
59464         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
59465         (FE_UNDERFLOW): Likewise.
59466         (FE_OVERFLOW): Likewise.
59467         (FE_DIVBYZERO): Likewise.
59468         (FE_INVALID): Likewise.
59469         (FE_TONEAREST): Likewise.
59470         (FE_TOWARDZERO): Likewise.
59471         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
59472         (FE_OVERFLOW): Likewise.
59473         (FE_UNDERFLOW): Likewise.
59474         (FE_DIVBYZERO): Likewise.
59475         (FE_INEXACT): Likewise.
59476         (FE_TONEAREST): Likewise.
59477         (FE_TOWARDZERO): Likewise.
59478         (FE_UPWARD): Likewise.
59479         (FE_DOWNWARD): Likewise.
59480         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
59481         (FE_DIVBYZERO): Likewise.
59482         (FE_OVERFLOW): Likewise.
59483         (FE_UNDERFLOW): Likewise.
59484         (FE_INEXACT): Likewise.
59485         (FE_TONEAREST): Likewise.
59486         (FE_DOWNWARD): Likewise.
59487         (FE_UPWARD): Likewise.
59488         (FE_TOWARDZERO): Likewise.
59489
59490 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
59491
59492         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
59493
59494 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
59495
59496         * scripts/cross-test-ssh.sh (command): Use newlines to separate
59497         commands.  Quote $PWD.
59498         (blacklist_exports): Don't use remove_newlines.  Replace "declare
59499         -x" by "export".
59500         (remove_newlines): Remove.
59501
59502 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
59503
59504         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
59505         * stdlib/stdlib.h (atof): Moved to ...
59506         * include/bits/stdlib-float.h: Here.  New file.
59507         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
59508         * stdlib/bits/stdlib-float.h: New file.
59509         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
59510         -mno-sse -mno-mmx.
59511         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
59512         <xmmintrin.h>.
59513
59514 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
59515
59516         * conform/conformtest.pl (@headers): Add fenv.h.
59517         * conform/data/fenv.h-data: New file.
59518         * include/fenv.h [_ISOMAC]: Disable all contents of file except
59519         include of <math/fenv.h>.
59520
59521         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
59522         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
59523         && !UNIX98].  Enables tests for XOPEN2K8.
59524         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
59525         POSIX2008]: Likewise.
59526
59527         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
59528         (struct rusage): Do not expect type or its members.
59529
59530         [BZ #3439]
59531         * math/math.h (FP_NAN): Define macro to integer constant usable in
59532         #if and use that to give value to enum constant.
59533         (FP_INFINITE): Likewise.
59534         (FP_ZERO): Likewise.
59535         (FP_SUBNORMAL): Likewise.
59536         (FP_NORMAL): Likewise.
59537
59538 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
59539
59540         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
59541         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
59542         arguments.
59543
59544 2012-11-02  Roland McGrath  <roland@hack.frob.com>
59545
59546         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
59547         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
59548         autoconf-time if not.
59549         * configure.in: Remove AC_PREREQ.
59550
59551 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
59552
59553         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
59554         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
59555         of the internal implementation.
59556
59557 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
59558
59559         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
59560         except include of <misc/sys/syslog.h>.
59561
59562 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
59563
59564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
59565         function returns with a NULL context exit with zero.
59566
59567 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
59568
59569         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
59570
59571 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
59572
59573         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
59574         (run_program_cmd): This.
59575         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
59576         (tst_langinfo): New variable.  Use it.
59577
59578 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
59579
59580         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
59581         floating point opcodes.
59582
59583 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
59584
59585         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
59586         variable.
59587
59588         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
59589
59590         * sysdeps/mach/hurd/powerpc: Remove directory.
59591         * sysdeps/mach/powerpc: Likewise.
59592
59593 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
59594
59595         * scripts/check-local-headers.sh: Ignore c++ headers.
59596
59597 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
59598
59599         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
59600         __libc_cleanup_region_start argument.
59601
59602 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
59603
59604         [BZ #14784]
59605         [BZ #14785]
59606         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
59607         x * y using scaling, not as x * y + z.
59608         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
59609         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
59610         * math/libm-test.inc (fma_test): Add more tests.
59611         (fma_test_towardzero): Likewise.
59612         (fma_test_downward): Likewise.
59613         (fma_test_upward): Likewise.
59614
59615 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
59616
59617         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
59618
59619 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
59620
59621         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
59622         New variable.
59623
59624 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
59625
59626         * rt/tst-shm.c (worker): Correct checking for mmap failure.
59627
59628 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
59629
59630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59631         Fix sort order.
59632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59633         Likewise.
59634
59635 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
59636
59637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59638         Fix the order of the list for glibc 2.17.
59639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59640         Likewise.
59641
59642 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
59643
59644         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59645
59646 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
59647
59648         [BZ #14610]
59649         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
59650         for low part of x being zero before using __atanl (y).
59651         * math/libm-test.inc (atan2_test): Add another test.
59652
59653         * manual/install.texi (Configuring and compiling): Document
59654         general use of test-wrapper and test-wrapper-env.
59655         * INSTALL: Regenerated.
59656
59657         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
59658         (__fma): Do not extract and scale down low bits on after-rounding
59659         systems when result rounded to normal precision would have normal
59660         exponent.
59661         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
59662         (__fmal): Do not extract and scale down low bits on after-rounding
59663         systems when result rounded to normal precision would have normal
59664         exponent.
59665         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
59666         (__fmal): Do not extract and scale down low bits on after-rounding
59667         systems when result rounded to normal precision would have normal
59668         exponent.
59669         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
59670         macro.
59671         (fma_test): Add more tests.
59672         (fma_test_towardzero): Likewise.
59673         (fma_test_downward): Likewise.
59674         (fma_test_upward): Likewise.
59675
59676 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
59677
59678         * sysdeps/i386/tininess.h: Renamed to ...
59679         * sysdeps/x86/tininess.h: This.
59680         * sysdeps/x86_64/tininess.h: Removed.
59681
59682 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
59683
59684         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
59685         input.  Use $(build-program-cmd).
59686         ($(objpfx)tst-array1-static.out): Likewise.
59687         ($(objpfx)tst-array2.out): Likewise.
59688         ($(objpfx)tst-array3.out): Likewise.
59689         ($(objpfx)tst-array4.out): Likewise.
59690         ($(objpfx)tst-array5.out): Likewise.
59691         ($(objpfx)tst-array5-static.out): Likewise.
59692
59693 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
59694
59695         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
59696         if defined.
59697
59698         * nss/nsswitch.h (nss_interface_function): Provide new
59699         macro for use with NSS functions.
59700         * grp/initgroups.c: Use new macro.
59701         * nss/getXXbyYY.c: Likewise.
59702         * nss/getXXbyYY_r.c: Likewise.
59703         * nss/getXXent.c: Likewise.
59704         * nss/getXXent_r.c: Likewise.
59705         * sysdeps/posix/getaddrinfo.c: Likewise.
59706
59707 2012-10-30  Andreas Jaeger  <aj@suse.de>
59708
59709         * po/ru.po: Update Russion translation from translation project.
59710
59711 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
59712
59713         [BZ #14152]
59714         [BZ #14783]
59715         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
59716         result and shift together with sticky bit instead of replicating
59717         round-to-nearest rounding.
59718         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
59719         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
59720         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
59721         missing underflow exceptions.
59722         (fma_test_towardzero): Add more tests.
59723         (fma_test_downward): Likewise.
59724         (fma_test_upward): Likewise.
59725
59726         [BZ #14047]
59727         * sysdeps/generic/tininess.h: New file.
59728         * sysdeps/i386/tininess.h: Likewise.
59729         * sysdeps/sh/tininess.h: Likewise.
59730         * sysdeps/x86_64/tininess.h: Likewise.
59731         * stdlib/tst-strtod-underflow.c: Likewise.
59732         * stdlib/tst-tininess.c: Likewise.
59733         * stdlib/strtod_l.c: Include <tininess.h>.
59734         (round_and_return): Do not set errno for exact underflow cases.
59735         Force an underflow exception when setting errno for underflow.
59736         Determine underflow based on rounding to normal precision if
59737         TININESS_AFTER_ROUNDING.
59738         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
59739         ERANGE for exact underflow cases.
59740         * stdlib/Makefile (tests): Add tst-tininess and
59741         tst-strtod-underflow.
59742         ($(objpfx)tst-tininess): Use $(link-libm).
59743         ($(objpfx)tst-strtod-underflow): Likewise.
59744
59745 2012-10-30  Andreas Jaeger  <aj@suse.de>
59746
59747         [BZ#14767]
59748         * elf/Makefile (tests): Remove conditional for have-initfini-array
59749         since this is now always required and the variable does not exist
59750         anymore.
59751         (tests-static): Likewise.
59752         (modules-names): Likewise.
59753
59754         * po/eo.po: Add Esperanto translation from translation project.
59755
59756         * elf/tst-array1.c (fini_array): Make writeable so that it can be
59757         merged with constructor/destructor.
59758         (init_array): Likewise.
59759         * elf/tst-array2dep.c (fini_array): Likewise.
59760         (init_array): Likewise.
59761
59762 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
59763
59764         * manual/message.texi: Delete @cartouche tags.
59765
59766 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
59767
59768         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
59769         EOPNOTSUPP.
59770         * sysdeps/mach/hurd/fsync.c: Likewise.
59771
59772         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
59773         [_POSIX_REALTIME_SIGNALS]: Change condition to
59774         [_POSIX_REALTIME_SIGNALS > 0].
59775
59776 2012-10-27  Andreas Jaeger  <aj@suse.de>
59777
59778         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
59779         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
59780         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
59781         [__WORDSIZE != 64]: Likewise.
59782
59783 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
59784
59785         *  iconvdata/tst-table.sh: Remove ${SHELL}.
59786         *  iconvdata/tst-tables.sh: Likewise.
59787
59788 2012-10-25  David S. Miller  <davem@davemloft.net>
59789
59790         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
59791         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
59792         of strtoull.
59793
59794         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
59795         ifunc-impl-list.c
59796         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
59797         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
59798         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
59799         file.
59800
59801 2012-10-25  Roland McGrath  <roland@hack.frob.com>
59802
59803         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
59804         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
59805         __getdirentries.
59806
59807 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
59808             Jim Blandy  <jimb@codesourcery.com>
59809
59810         * scripts/cross-test-ssh.sh: New file.
59811         * manual/install.texi (Configuring and compiling): Document use of
59812         cross-test-ssh.sh.
59813         * INSTALL: Regenerated.
59814
59815 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
59816
59817         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
59818         EOPNOTSUPP.
59819
59820 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
59821
59822         * Makeconfig (run-program-prefix): Fix comment.
59823
59824 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
59825             Jim Blandy  <jimb@codesourcery.com>
59826
59827         * Makeconfig (test-wrapper): New variable,
59828         (test-wrapper-env): Likewise.
59829         [$(cross-compiling) = yes && $(test-wrapper) != ""]
59830         (run-built-tests): Define to yes.
59831         (run-program-prefix): Use $(test-wrapper).
59832         (built-program-cmd): Likewise.
59833         * Rules (make-test-out): Use $(test-wrapper-env) and
59834         $(host-built-program-cmd).
59835         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
59836         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
59837         tst-pathopt.sh.
59838         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
59839         $(test-wrapper-env) to tst-rtld-load-self.sh.
59840         ($(objpfx)order2.out): Use $(test-wrapper).
59841         ($(objpfx)tst-initorder.out): Likewise.
59842         ($(objpfx)tst-initorder2.out): Likewise.
59843         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
59844         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
59845         (test_wrapper_env): New variable.  Use it to run ld.so.
59846         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
59847         Use it to run ld.so.
59848         (test_wrapper_env): Likewise.
59849         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
59850         $(test-wrapper) to run-iconv-test.sh.
59851         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
59852         (ICONV): Use $test_wrapper.
59853         * posix/Makefile ($(objpfx)globtest.out): Pass
59854         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
59855         globtest.sh, not $(run-program-prefix).
59856         * posix/globtest.sh (run_via_rtld_prefix): New variable.
59857         (test_wrapper): Likewise.
59858         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
59859         set together with run_via_rtld_prefix.
59860         (run_program_prefix): Define in terms of test_wrapper and
59861         run_via_rtld_prefix.
59862
59863 2012-10-24  Roland McGrath  <roland@hack.frob.com>
59864
59865         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
59866         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
59867         Targets removed.
59868
59869         [BZ #14743]
59870         * include/time.h: Remove librt_hidden_proto (clock_gettime).
59871         Declare __clock_getres, __clock_gettime, __clock_settime,
59872         __clock_nanosleep, and __clock_getcpuclockid.
59873         * rt/clock_gettime.c: Define __clock_gettime as an alias.
59874         Remove librt_hidden_def (clock_gettime).
59875         * sysdeps/unix/clock_gettime.c: Likewise.
59876         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
59877         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
59878         * rt/clock_getres.c: Define __clock_getres as an alias.
59879         * sysdeps/posix/clock_getres.c: Likewise.
59880         * rt/clock_settime.c: Define __clock_settime as an alias.
59881         * sysdeps/unix/clock_settime.c: Likewise.
59882         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
59883         * sysdeps/unix/clock_nanosleep.c: Likewise.
59884         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
59885         * rt/clock-compat.c: New file.
59886         * rt/Makefile (librt-routines): Add clock-compat and move
59887         $(clock-routines) to ...
59888         (routines): ... here, new variable.
59889         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
59890         Don't add get_clockfreq here.
59891         * rt/Versions (libc: GLIBC_2.17): New version set.
59892         Add clock_* symbols here.
59893         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
59894         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
59895         (GLIBC_2.17): Add clock_* symbols.
59896         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59897         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59898         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59900         Likewise.
59901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59902         Likewise.
59903         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59904         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59905         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59906         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59907         * NEWS: Mention the move.
59908
59909         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
59910         Use __open, __read, __close rather than their public counterparts.
59911         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
59912         (__get_clockfreq_via_cpuinfo): Likewise.
59913         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
59914         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
59915
59916         * config.h.in (HAVE_IFUNC): New #undef.
59917         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
59918         was successful.
59919         * configure: Regenerated.
59920
59921 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
59922
59923         * configure.in: Move READELF check to start of file.
59924         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
59925         libc_cv_asm_gnu_indirect_function in the process.
59926         * configure: Regenerated.
59927
59928 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
59929
59930         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
59931         send the output to /dev/null.
59932         (libc_cv_cc_with_libunwind): Likewise.
59933         (libc_cv_as_noexecstack): Likewise.
59934         * configure: Regenerate.
59935
59936 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
59937
59938         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
59939
59940         * posix/globtest.sh (TMPDIR): Do not set.
59941         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
59942         (testout): Likewise.
59943
59944 2012-10-24  Andreas Jaeger  <aj@suse.de>
59945
59946         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
59947         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
59948         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
59949         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
59950         posix_fadvise64, posix_fallocate64.
59951
59952         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
59953         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
59954         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
59955         Likewise.
59956         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
59957         Likewise.
59958         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
59959
59960         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
59961         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
59962         <bits/fcntl-linux.h>.
59963         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
59964
59965         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
59966         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
59967         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
59968         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
59969         [__WORDSIZE != 64]: Likewise.
59970
59971 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
59972
59973         * Makeconfig (run-built-tests): New variable.
59974         * Rules [$(cross-compiling) = yes]: Change condition to
59975         [$(run-built-tests) = no].
59976         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
59977         to [$(run-built-tests) = yes].
59978         * elf/Makefile [$(cross-compiling) = no]: Likewise.
59979         * grp/Makefile [$(cross-compiling) = no]: Likewise.
59980         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
59981         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
59982         * intl/Makefile [$(cross-compiling) = no]: Likewise.
59983         * io/Makefile [$(cross-compiling) = no]: Likewise.
59984         * libio/Makefile [$(cross-compiling) = no]: Likewise.
59985         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
59986         * misc/Makefile [$(cross-compiling) = no]: Likewise.
59987         * posix/Makefile [$(cross-compiling) = no]: Likewise.
59988         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
59989         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
59990         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
59991         * string/Makefile [$(cross-compiling) = no]: Likewise.
59992
59993         * posix/Makefile ($(objpfx)globtest.out): Pass
59994         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
59995         $(rtld-installed-name).
59996         * posix/globtest.sh (elf_objpfx): Remove variable.
59997         (rtld_installed_name): Likewise.
59998         (library_path): Likewise.
59999         (run_program_prefix): New variable.  Use for running globtest
60000         binary.
60001
60002 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
60003             Joseph Myers  <joseph@codesourcery.com>
60004
60005         * Makeconfig (host-built-program-cmd): New variable.
60006         * elf/Makefile (tst-stackguard1-ARGS): Use
60007         $(host-built-program-cmd).
60008         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
60009         (tst-spawn-ARGS): Likewise.
60010         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
60011
60012 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
60013             Jim Blandy  <jimb@codesourcery.com>
60014
60015         * Makeconfig (run-via-rtld-prefix): New variable.
60016         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
60017         (built-program-cmd): Likewise.
60018
60019 2012-10-22  Andreas Jaeger  <aj@suse.de>
60020
60021         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
60022         __O_RSYNC if it exists, otherwise to O_SYNC.
60023
60024 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
60025             Joseph Myers  <joseph@codesourcery.com>
60026
60027         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
60028         /dev/null.
60029         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
60030         from /dev/null
60031         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
60032         /dev/null.
60033
60034 2012-10-22  Andreas Jaeger  <aj@suse.de>
60035
60036         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
60037         Define always.
60038         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
60039
60040         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60041         bits/fcntl-linux.h.
60042
60043         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
60044         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
60045
60046         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
60047         to __O_LARGEFILE.
60048         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
60049         to __O_LARGEFILE.
60050
60051 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
60052             Joseph Myers  <joseph@codesourcery.com>
60053
60054         * config.make.in (NM): New variable.
60055
60056 2012-10-21  Andreas Jaeger  <aj@suse.de>
60057
60058         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
60059         definitions and declarations that are provided by
60060         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
60061
60062 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
60063
60064         [BZ #14683]
60065         * elf/Makefile (tests-static): Add tst-leaks1-static.
60066         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
60067         ($(objpfx)tst-leaks1-static): New rule.
60068         ($(objpfx)tst-leaks1-static-mem): Likewise.
60069         (tst-leaks1-static-ENV): New macro.
60070         * elf/dl-open.c (dl_open_worker): Check the main application
60071         only if SHARED is defined.
60072         * elf/tst-leaks1-static.c: New file.
60073
60074 2012-10-20  Andreas Jaeger  <aj@suse.de>
60075
60076         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
60077         generic values for Linux.
60078         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
60079         and declarations that are provided by <bits/fcntl-linux.h> and
60080         include <bits/fcntl-linux.h>.
60081         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
60082         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
60083
60084 2012-10-20  Roland McGrath  <roland@hack.frob.com>
60085
60086         * io/fcntl.h: Move include of <bits/types.h> to the top and
60087         include it unconditionally.
60088
60089 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
60090
60091         * wcsmbs/Makefile (tests-ifunc): New variable.
60092         (tests): Add $(tests-ifunc).
60093         * wcsmbs/test-wcschr-ifunc.c: New file.
60094         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
60095         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
60096         * wcsmbs/test-wcslen-ifunc.c: Likewise.
60097         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
60098         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
60099
60100         * string/Makefile (tests-ifunc): New variable.
60101         (tests): Add $(tests-ifunc).
60102         * string/test-memccpy.c (TEST_NAME): New macro.
60103         * string/test-memchr.c (TEST_NAME): Likewise.
60104         * string/test-memcmp.c (TEST_NAME): Likewise.
60105         * string/test-memcpy.c (TEST_NAME): Likewise.
60106         * string/test-memmem.c (TEST_NAME): Likewise.
60107         * string/test-memmove.c (TEST_NAME): Likewise.
60108         * string/test-memset.c (TEST_NAME): Likewise.
60109         * string/test-rawmemchr.c (TEST_NAME): Likewise.
60110         * string/test-stpcpy.c (TEST_NAME): Likewise.
60111         * string/test-stpncpy.c (TEST_NAME): Likewise.
60112         * string/test-strcasecmp.c (TEST_NAME): Likewise.
60113         * string/test-strcasestr.c (TEST_NAME): Likewise.
60114         * string/test-strcat.c (TEST_NAME): Likewise.
60115         * string/test-strchr.c (TEST_NAME): Likewise.
60116         * string/test-strcmp.c(TEST_NAME): Likewise.
60117         * string/test-strcpy.c (TEST_NAME): Likewise.
60118         * string/test-strcspn.c (TEST_NAME): Likewise.
60119         * string/test-strlen.c (TEST_NAME): Likewise.
60120         * string/test-strncasecmp.c (TEST_NAME): Likewise.
60121         * string/test-strncmp.c (TEST_NAME): Likewise.
60122         * string/test-strncpy.c (TEST_NAME): Likewise.
60123         * string/test-strnlen.c (TEST_NAME): Likewise.
60124         * string/test-strpbrk.c (TEST_NAME): Likewise.
60125         * string/test-strrchr.c (TEST_NAME): Likewise.
60126         * string/test-strspn.c (TEST_NAME): Likewise.
60127         * string/test-strstr.c (TEST_NAME): Likewise.
60128         * string/test-bcopy-ifunc.c: New file.
60129         * string/test-bzero-ifunc.c: Likewise.
60130         * string/test-memccpy-ifunc.c: Likewise.
60131         * string/test-memchr-ifunc.c: Likewise.
60132         * string/test-memcmp-ifunc.c: Likewise.
60133         * string/test-memcpy-ifunc.c: Likewise.
60134         * string/test-memmem-ifunc.c: Likewise.
60135         * string/test-memmove-ifunc.c: Likewise.
60136         * string/test-mempcpy-ifunc.c: Likewise.
60137         * string/test-memset-ifunc.c: Likewise.
60138         * string/test-rawmemchr-ifunc.c: Likewise.
60139         * string/test-stpcpy-ifunc.c: Likewise.
60140         * string/test-stpncpy-ifunc.c: Likewise.
60141         * string/test-strcasecmp-ifunc.c: Likewise.
60142         * string/test-strcasestr-ifunc.c: Likewise.
60143         * string/test-strcat-ifunc.c: Likewise.
60144         * string/test-strchr-ifunc.c: Likewise.
60145         * string/test-strchrnul-ifunc.c: Likewise.
60146         * string/test-strcmp-ifunc.c: Likewise.
60147         * string/test-strcpy-ifunc.c: Likewise.
60148         * string/test-strcspn-ifunc.c: Likewise.
60149         * string/test-strlen-ifunc.c: Likewise.
60150         * string/test-strncasecmp-ifunc.c: Likewise.
60151         * string/test-strncat-ifunc.c: Likewise.
60152         * string/test-strncmp-ifunc.c: Likewise.
60153         * string/test-strncpy-ifunc.c: Likewise.
60154         * string/test-strnlen-ifunc.c: Likewise.
60155         * string/test-strpbrk-ifunc.c: Likewise.
60156         * string/test-strrchr-ifunc.c: Likewise.
60157         * string/test-strspn-ifunc.c: Likewise.
60158         * string/test-strstr-ifunc.c: Likewise.
60159
60160         * debug/Makefile (tests-ifunc): New variable.
60161         (tests): Add $(tests-ifunc).
60162         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
60163         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
60164         * debug/test-stpcpy_chk-ifunc.c: New file.
60165         * debug/test-strcpy_chk-ifunc.c: Likewise.
60166
60167 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
60168
60169         [BZ #13601]
60170         * elf/dl-load.c (open_verify): Retry read if the entire ELF
60171         header is not read in.
60172
60173 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
60174
60175         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
60176         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
60177         directly.  Pass built executable to script as
60178         $(built-program-cmd).
60179         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
60180         $testprogram without using LD_LIBRARY_PATH and $ldso.
60181
60182         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
60183         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
60184         $(rtld-installed-name).
60185         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
60186         (rtld_installed_name): Likewise.
60187         (library_path): Likewise.
60188         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
60189         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
60190         $(run-program-prefix) to tst-tables.sh.
60191         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
60192         it to run tst-table-from and tst-table-to.
60193         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
60194         Pass it to tst-table.sh.
60195         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
60196         $(run-program-prefix) to tst-gettext.sh.
60197         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
60198         tst-translit.sh.
60199         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
60200         tst-gettext2.sh.
60201         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
60202         to run tst-gettext.
60203         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
60204         to run tst-gettext2.
60205         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
60206         to run tst-translit.
60207         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
60208         $(run-program-prefix) to tst-mtrace.sh.
60209         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
60210         to run tst-mtrace.
60211         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
60212         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
60213         $(rtld-installed-name).
60214         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
60215         (rtld_installed_name): Likewise.
60216         (run_program_prefix): New variable.  Use it to run wordexp-test.
60217
60218         * Makeconfig (ARCH): Remove all definitions.
60219         (machine): Likewise.
60220         [ARCH]: Remove conditional code.
60221         [!objdir]: Give error.
60222         [!objdir] (objpfx): Remove.
60223         [!objdir] (common-objpfx): Likewise.
60224         [!objdir] (common-objdir): Likewise.
60225         * configure.in (config_makefile): Remove.  Hardcode Makefile in
60226         AC_CONFIG_FILES call.
60227         * configure: Regenerated.
60228
60229         [BZ #13888]
60230         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
60231         or TMPDIR.
60232         (testout): Likewise.
60233
60234         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
60235         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
60236         $(rtld-installed-name).
60237         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
60238         (rtld_installed_name): Likwise.
60239         (runit): Remove function.
60240         (run_getconf): New variable,  Use it for running getconf binary.
60241
60242 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
60243
60244         [BZ #14716]
60245         * string/test-memmem.c (check_result): New function.
60246         (do_one_test): Use it.
60247         (check1): New function.
60248         (test_main): Use it.
60249
60250 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
60251
60252         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
60253
60254 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
60255
60256         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
60257         (_G_LSEEK64): Likewise.
60258         (_G_MMAP64): Likewise.
60259         (_G_FSTAT64): Likewise.
60260         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
60261         (_G_LSEEK64): Likewise.
60262         (_G_MMAP64): Likewise.
60263         (_G_FSTAT64): Likewise.
60264         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
60265         unconditional.  Call __mmap64 directly.
60266         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
60267         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
60268         __lseek64 directly.
60269         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
60270         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
60271         __mmap64 directly.
60272         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
60273         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
60274         __lseek64 directly.
60275         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
60276         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
60277         __lseek64 directly.
60278         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
60279         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
60280         __lseek64 directly.
60281         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
60282         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
60283         __fxstat64 directly.
60284         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
60285         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
60286         unconditional.
60287         (freopen64) [!_G_OPEN64]: Remove conditional code.
60288         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
60289         unconditional.
60290         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
60291         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
60292         unconditional.
60293         (ftello64) [!_G_LSEEK64]: Remove conditional code.
60294         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
60295         unconditional.
60296         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
60297         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
60298         unconditional.
60299         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
60300         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
60301         unconditional.
60302         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
60303         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
60304         unconditional.
60305         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
60306         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
60307         unconditional.
60308         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
60309
60310 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
60311
60312         [BZ #12140]
60313         * manual/memory.texi (Malloc Tunable Parameters): Add note
60314         about free list pointers overwriting some perturb bytes.
60315         Wording suggested by Roland McGrath.
60316
60317 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
60318
60319         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
60320         (lgamma_test): Likewise.
60321         (tgamma_test): Likewise.
60322
60323 2012-10-16  Florian Weimer  <fweimer@redhat.com>
60324
60325         [BZ #14700]
60326         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
60327         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
60328
60329 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
60330
60331         * NEWS: Mention BZ #14716.
60332         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
60333         when removing AVAILABLE1_USES_J macro.
60334
60335 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
60336
60337         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
60338         (__bswap_64): __uint64_t for unsigned 64-bit int.
60339
60340 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
60341
60342         * include/string.h (memmem): Declare libc hidden alias.
60343         * string/memmem.c (memmem): Define libc hidden alias.
60344         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
60345         __read, __close instead of open, read, close.
60346
60347 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
60348
60349         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
60350         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
60351         global and hidden.
60352         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
60353         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
60354         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
60355         Likewise.
60356         (__rawmemchr_sse2): Likewise.
60357         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
60358         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
60359         (__strchr_sse2): Likewise.
60360         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
60361         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
60362         (__strcasecmp_sse2): Likewise.
60363         (__strncasecmp_sse2): Likewise.
60364         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
60365         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
60366         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
60367         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
60368         (__strrchr_sse2): Likewise.
60369         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
60370         ifunc-impl-list.c.
60371         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
60372         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
60373         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
60374         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
60375         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
60376         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
60377         * sysdeps/x86_64/multiarch/memset.S: Likewise.
60378         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
60379         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
60380         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
60381         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
60382         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
60383         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
60384         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
60385         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
60386         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
60387         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
60388         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
60389         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
60390         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
60391         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
60392         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
60393         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
60394         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
60395         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
60396         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
60397         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
60398         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
60399         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
60400         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
60401
60402         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
60403         global and hidden.
60404         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
60405         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
60406         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
60407         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
60408         Likewise.
60409         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
60410         Likewise.
60411         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
60412         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
60413         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
60414         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
60415         ifunc-impl-list.c.
60416         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
60417         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
60418         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
60419         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
60420         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
60421         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
60422         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
60423         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
60424         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
60425         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
60426         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
60427         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
60428         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
60429         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
60430         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
60431         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
60432         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
60433         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
60434         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
60435         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
60436         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
60437         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
60438         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
60439         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
60440         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
60441         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
60442         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
60443         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
60444         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
60445         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
60446         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
60447         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
60448         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
60449         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
60450         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
60451         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
60452         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
60453         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
60454         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
60455         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
60456         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
60457
60458         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
60459         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
60460         * include/ifunc-impl-list.h: New file.
60461         * misc/ifunc-impl-list.c: Likewise.
60462         * misc/Makefile (routines): Add ifunc-impl-list.
60463         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
60464         * string/test-string.h: Include <ifunc-impl-list.h>.
60465         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
60466         TEST_NAME]: New variables.
60467         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
60468         are defined.
60469         (test_init): Call __libc_ifunc_impl_list to initialize
60470         func_list if TEST_IFUNC and TEST_NAME are defined.
60471
60472         * string/Makefile (strop-tests): Add bcopy and bzero.
60473         * string/test-bcopy.c: New file.
60474         * string/test-bzero.c: Likewise.
60475         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
60476         defined.
60477         * string/test-memset.c: Support bzero test if TEST_BZERO is
60478         defined.
60479         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
60480         __libc_memmove.
60481         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
60482         __libc_memset.
60483         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
60484         of memset.
60485
60486 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
60487
60488         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
60489         * configure: Regenerated.
60490
60491         * Makeconfig (+link-static-before-libc): Don't include
60492         $(link-static-libc).
60493
60494         * libio/libio.h (_IO_pos_t): Remove.
60495
60496 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
60497
60498         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
60499         McGrath.
60500
60501 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
60502
60503         * crypt/crypt-entry.c: Include fips-private.h.
60504         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
60505         * crypt/md5c-test.c (main): Tolerate disabled MD5.
60506         * sysdeps/unix/sysv/linux/fips-private.h: New file.
60507         * sysdeps/generic/fips-private.h: New file, dummy fallback.
60508
60509 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
60510
60511         * crypt/crypt-private.h: Include stdbool.h.
60512         (_ufc_setup_salt_r): Return bool.
60513         * crypt/crypt-entry.c: Include errno.h.
60514         (__crypt_r): Return NULL with EINVAL for bad salt.
60515         * crypt/crypt_util.c (bad_for_salt): New.
60516         (_ufc_setup_salt_r): Check that salt is long enough and within
60517         the specified alphabet.
60518         * crypt/badsalttest.c: New file.
60519         * crypt/Makefile (tests): Add it.
60520         ($(objpfx)badsalttest): New.
60521
60522 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
60523
60524         * NEWS: Add entry for BZ #14602.
60525
60526 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
60527
60528         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
60529         type-generic.
60530         * math/libm-test.inc: Update comment listing what functions and
60531         macros are tested.
60532         (isgreater_test): New function.
60533         (isgreaterequal_test): Likewise.
60534         (isless_test): Likewise.
60535         (islessequal_test): Likewise.
60536         (islessgreater_test): Likewise.
60537         (isunordered_test): Likewise.
60538         (main): Call the new functions.
60539
60540 2012-10-09  Roland McGrath  <roland@hack.frob.com>
60541
60542         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
60543         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
60544         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
60545         * sysdeps/i386/configure: Regenerated.
60546         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
60547         * sysdeps/mach/configure: Regenerated.
60548         * sysdeps/mach/hurd/configure: Regenerated.
60549         * sysdeps/powerpc/configure: Regenerated.
60550         * sysdeps/powerpc/powerpc32/configure: Regenerated.
60551         * sysdeps/powerpc/powerpc64/configure: Regenerated.
60552         * sysdeps/s390/s390-32/configure: Regenerated.
60553         * sysdeps/s390/s390-64/configure: Regenerated.
60554         * sysdeps/sh/configure: Regenerated.
60555         * sysdeps/sparc/configure: Regenerated.
60556         * sysdeps/unix/sysv/linux/configure: Regenerated.
60557         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
60558         * sysdeps/x86_64/configure: Regenerated.
60559
60560         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
60561         defined.  Don't check if MAP is NULL.
60562
60563 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
60564
60565         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
60566         (_G_stat64): Likewise.
60567         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
60568         (_G_stat64): Likewise.
60569         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
60570         instead of struct _G_stat64.
60571         * libio/fileops.c (mmap_remap_check): Likewise.
60572         (decide_maybe_mmap): Likewise.
60573         (_IO_new_file_seekoff): Likewise.
60574         (_IO_file_stat): Likewise.
60575         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
60576         _G_off64_t.
60577         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
60578         instead of struct _G_stat64.
60579         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
60580
60581 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
60582
60583         [BZ #14602]
60584         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
60585         Replace with ...
60586         (CHECK_EOL): New macro.
60587         (two_way_short_needle): Check beginning of haystack for EOL.  Use
60588         CHECK_EOL.
60589         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
60590         Replace with CHECK_EOL.
60591         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
60592         Replace with CHECK_EOL.
60593
60594 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
60595
60596         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
60597         type-generic.
60598         * math/libm-test.inc: Update comment listing what functions and
60599         macros are tested.
60600         (finite_test): New function.
60601         (isinf_test): Likewise.
60602         (isnan_test): Likewise.
60603         (fpclassify_test): Test subnormal input.
60604         (isfinite_test): Likewise.
60605         (isnormal_test): Likewise.
60606         (main): Call the new functions.
60607
60608 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
60609
60610         [BZ #14660]
60611         * Makerules (%.dynsym): Force C locale when running
60612         $(OBJDUMP) --dynamic-syms.
60613
60614 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
60615
60616         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
60617         <stdint.h>.
60618
60619 2012-10-06  David S. Miller  <davem@davemloft.net>
60620
60621         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
60622         upper 32-bits of the length value in %o2 since we use branch-on-register
60623         tests which consider the entire 64-bit register.
60624
60625 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
60626
60627         * string/test-strstr.c (check2): Add a test for page boundary.
60628
60629 2012-10-05  David S. Miller  <davem@davemloft.net>
60630
60631         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
60632         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
60633         file.
60634         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
60635         sysdep_routines.
60636         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
60637         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
60638         and bzero when HWCAP_SPARC_CRYPTO is present.
60639
60640 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
60641
60642         [BZ #14602]
60643         * string/test-strstr.c (check2): New function.
60644         (test_main): Call check2.
60645
60646         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
60647         and bug-strchr1.
60648         * string/bug-strcasestr1.c (do_test): Moved to ...
60649         * string/test-strcasestr.c (check1): Here.  New function.
60650         (do_one_test): Break out result checking code into ...
60651         (check_result): This.  New function.
60652         (do_one_test): Call check_result.
60653         (test_main): Call check1.
60654         * string/bug-strchr1.c (do_test): Moved to ...
60655         * string/test-strchr.c (check1): Here.  New function.
60656         (do_one_test): Break out result checking code into ...
60657         (check_result): This.  New function.
60658         (do_one_test): Call check_result.
60659         (test_main): Call check1.
60660         * string/bug-strstr1.c (main): Moved to ...
60661         * string/test-strstr.c (check1): Here.  New function.
60662         (do_one_test): Break out result checking code into ...
60663         (check_result): This.  New function.
60664         (do_one_test): Call check_result.
60665         (test_main): Call check1.
60666         * string/bug-strcasestr1.c: Removed.
60667         * string/bug-strchr1.c: Likewise.
60668         * string/bug-strstr1.c: Likewise.
60669
60670         * elf/Makefile (dl-routines): Add hwcaps.
60671         * elf/dl-support.c (_dl_important_hwcaps): Removed.
60672         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
60673         (_dl_important_hwcaps): Moved to ...
60674         * elf/dl-hwcaps.c: Here.  New file.
60675         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
60676
60677         [BZ #14557]
60678         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
60679         if IS_IN_rtld isn't defined.
60680
60681         * elf/dl-support.c (_dl_sysinfo_map): New.
60682         Include "get-dynamic-info.h" and "setup-vdso.h".
60683         (_dl_non_dynamic_init): Call setup_vdso.
60684         * elf/dynamic-link.h: Don't include <assert.h>.
60685         (elf_get_dynamic_info): Moved to ...
60686         * elf/get-dynamic-info.h: Here.  New file.
60687         * elf/dynamic-link.h: Include "get-dynamic-info.h".
60688         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
60689         * elf/setup-vdso.h: Here.  New file.
60690         * elf/rtld.c: Include "setup-vdso.h".
60691         (dl_main): Call setup_vdso.
60692
60693 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
60694
60695         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
60696         creal in comment listing functions tested.  List finite, isinf,
60697         isnan, isless, islessequal, isgreater, isgreaterequal,
60698         islessgreater, isunordered, lgamma_r and pow10 as functions and
60699         macros not tested.  Mention which functions not tested are aliases
60700         for other functions.  Fix typo.  Note that signs of NaNs are not
60701         tested.
60702
60703         * scripts/config.guess: Update from config.git.
60704         * scripts/config.sub: Likewise.
60705
60706 2012-10-04  Roland McGrath  <roland@hack.frob.com>
60707
60708         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
60709         * misc/madvise.c (madvise): Renamed to __madvise.
60710         Make madvise a weak alias.
60711         * include/sys/mman.h: Declare __madvise.
60712         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
60713         * sysdeps/unix/syscalls.list
60714         (madvise): Make __madvise the strong name, and madvise a weak alias.
60715         * sysdeps/unix/sysv/linux/syscalls.list
60716         (madvise, mmap): Remove redundant entries.
60717         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
60718         * malloc/malloc.c (mtrim): Likewise.
60719         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
60720
60721 2012-10-03  Roland McGrath  <roland@hack.frob.com>
60722
60723         * sysdeps/mach/hurd/dl-cache.c: File removed.
60724         * config.h.in (USE_LDCONFIG): New #undef.
60725         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
60726         * configure: Regenerated.
60727         * elf/Makefile (dl-routines): Add dl-cache only under
60728         [$(use-ldconfig) = yes].
60729         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
60730         cache on [USE_LDCONFIG].
60731         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
60732         [USE_LDCONFIG].
60733         * elf/rtld.c (dl_main): Likewise.
60734
60735 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
60736
60737         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
60738         _SC_LEVEL4_CACHE_LINESIZE.
60739
60740 2012-10-03  Roland McGrath  <roland@hack.frob.com>
60741
60742         * sysdeps/unix/bsd/confstr.h: File removed.
60743
60744 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
60745
60746         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
60747         sys/sdt-config.h.
60748
60749 2012-10-02  Roland McGrath  <roland@hack.frob.com>
60750
60751         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
60752         Make 'mapoff' field ElfW(Off) rather than off_t.
60753
60754 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60755
60756         * nscd/Makefile: Remove nscd-cflags and all its users.
60757         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
60758         (CFLAGS-nonlib): Add compiler flags for nscd modules.
60759
60760         [BZ #10631]
60761         * malloc.c (malloc_printerr): Clarify error message.
60762
60763 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
60764
60765         [BZ #14648]
60766         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
60767         Set bit_FMA_Usable if FMA is supported.
60768         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
60769         macro.
60770         (bit_FMA4_Usable): Updated.
60771         (index_FMA_Usable): New macro.
60772         (CPUID_FMA): Likewise.
60773         (HAS_FMA): Defined with bit_FMA_Usable.
60774
60775 2012-10-01  Roland McGrath  <roland@hack.frob.com>
60776
60777         * bits/types.h (__swblk_t): Type removed.
60778         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
60779         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
60780         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
60781         (__SWBLK_T_TYPE): Likewise.
60782         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
60783         (__SWBLK_T_TYPE): Likewise.
60784         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
60785         (__SWBLK_T_TYPE): Likewise.
60786         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
60787         (__SWBLK_T_TYPE): Likewise.
60788
60789 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
60790             Honza Horak <hhorak@redhat.com>
60791
60792         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
60793         (xdr_mapname): Use YPMAXMAP as maxsize.
60794         (xdr_peername): Use YPMAXPEER as maxsize.
60795         (xdr_keydat): Use YPAXRECORD as maxsize.
60796         (xdr_valdat): Use YPMAXRECORD as maxsize.
60797
60798 2012-10-01  Roland McGrath  <roland@hack.frob.com>
60799
60800         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
60801
60802         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
60803         * csu/init-first.c: ... here.
60804         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
60805         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
60806         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
60807         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
60808         * sysdeps/i386/init-first.c: File removed.
60809         * sysdeps/sh/init-first.c: File removed.
60810
60811 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
60812
60813         [BZ #14645]
60814         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
60815         if x * y might underflow to zero and z is zero.
60816         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
60817         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
60818         * math/libm-test.inc (min_subnorm_value): New variable.
60819         (fma_test): Add more tests.
60820         (fma_test_towardzero): Likewise.
60821         (fma_test_downward): Likewise.
60822         (fma_test_upward): Likewise.
60823         (initialize): Set min_subnorm_value.
60824
60825 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
60826
60827         [BZ #14638]
60828         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
60829         0 + 0.
60830         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
60831         mode for addition resulting in exact zero.
60832         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
60833         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
60834         exact 0 + 0.
60835         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
60836         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
60837         * math/libm-test.inc (fma_test): Add more tests.
60838         (fma_test_towardzero): New function.
60839         (fma_test_downward): Likewise.
60840         (fma_test_upward): Likewise.
60841         (main): Call the new functions.
60842
60843 2012-09-28  David S. Miller  <davem@davemloft.net>
60844
60845         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
60846
60847 2012-09-28  Roland McGrath  <roland@hack.frob.com>
60848
60849         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
60850         instead of SIGALRM.
60851
60852         * sysdeps/gnu/_G_config.h: Moved to ...
60853         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
60854         * sysdeps/mach/hurd/_G_config.h: Moved to ...
60855         * sysdeps/generic/_G_config.h: ... here.
60856
60857         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
60858
60859         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
60860
60861         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
60862         Conditionalize target on [libnss_test1.so-version].
60863
60864         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
60865
60866         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
60867         (elfobjdir): Move out of conditionals.
60868
60869         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
60870         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
60871         (__nss_lookup_function): Conditionalize label remove_from_tree on
60872         [!DO_STATIC_NSS || SHARED], matching its only use.
60873
60874 2012-09-28  David S. Miller  <davem@davemloft.net>
60875
60876         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
60877         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
60878         file.
60879         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
60880         sysdep_routines.
60881         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
60882         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
60883         when HWCAP_SPARC_CRYPTO is present.
60884
60885 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
60886
60887         * io/tst-mknodat.c: Create a FIFO instead of a socket.
60888
60889 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
60890
60891         [BZ #6530]
60892         * stdio-common/vfprintf.c (process_string_arg): Revert
60893         2000-07-22 change.
60894
60895 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
60896
60897         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
60898         for testcase.
60899         * stdio-common/tst-sprintf.c: Include <locale.h>
60900         (main): Test sprintf's handling of incomplete multibyte
60901         characters.
60902
60903 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
60904
60905         * elf/dl-runtime.c (VERSYMIDX): Removed.
60906         * elf/dl-version.c (VERSYMIDX): Likewise.
60907         * elf/do-rel.h (VERSYMIDX): Likewise.
60908         (VALIDX): Likewise.
60909         * elf/dynamic-link.h (VERSYMIDX): Likewise.
60910         * elf/rtld.c (VALIDX): Likewise.
60911         (ADDRIDX): Likewise.
60912         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
60913         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
60914         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
60915         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
60916         (VALIDX): Likewise.
60917         (ADDRIDX): Likewise.
60918
60919 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
60920
60921         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
60922
60923 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
60924
60925         [BZ #11438]
60926         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
60927         to global scope.
60928         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
60929         addresses are in the same scope as 192.0.2/24.
60930         * posix/gai.conf: Document new scope table defaults.
60931
60932 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60933
60934         [BZ #5298]
60935         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
60936         for ftell.  Compute offsets from write pointers instead.
60937         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
60938
60939 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60940
60941         [BZ #14543]
60942         * libio/Makefile (tests): New test case tst-fseek.
60943         * libio/tst-fseek.c: New test case to verify that fseek/ftell
60944         combination works in wide mode.
60945         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
60946         state when the external buffer state changes.
60947
60948 2012-09-27  David S. Miller  <davem@davemloft.net>
60949
60950         [BZ #14376]
60951         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
60952         pass reloc->r_addend in as the 'high' argument to
60953         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
60954
60955         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60956
60957 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
60958
60959         * rt/tst-aio2.c: Include <pthread.h>.
60960         * rt/tst-aio3.c: Likewise.
60961
60962 2012-09-27  Steve Ellcey  <sellcey@mips.com>
60963
60964         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
60965
60966 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
60967
60968         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
60969         contents on [SHARED].
60970
60971 2012-09-26  Marek Polacek  <polacek@redhat.com>
60972
60973         [BZ #14530]
60974         [BZ #13741]
60975         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
60976         for C++ and GCC <4.3 as well as for non GCC compilers.
60977
60978 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
60979
60980         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60981
60982 2012-09-25  Roland McGrath  <roland@hack.frob.com>
60983
60984         * Makefile.in (all, install): Declare with .PHONY.
60985         Reported by Michael Hope <michael.hope@linaro.org>.
60986
60987 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60988
60989         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
60990         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
60991         system header.
60992         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
60993         Likewise.
60994         (sydep_routines): Add the new and the internal functions.
60995         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
60996         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
60997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
60998         (GLIBC_2.17): Add the new function.
60999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
61000         (GLIBC_2.17): Likewise.
61001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
61002         (GLIBC_2.17): Likewise.
61003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
61004         (GLIBC_2.17): Likewise.
61005         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
61006
61007 2012-09-25  Alan Modra  <amodra@gmail.com>
61008
61009         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
61010         Add release barrier before setting once_control to say
61011         initialisation is done.  Add hints on lwarx.  Use macro in
61012         place of isync.
61013         (clear_once_control): Add release barrier.
61014
61015 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
61016
61017         [BZ #13629]
61018         * math/s_clog.c (__clog): Handle more values close to |z| = 1
61019         specially.
61020         * math/s_clog10.c (__clog10): Likewise.
61021         * math/s_clog10f.c (__clog10f): Likewise.
61022         * math/s_clog10l.c (__clog10l): Likewise.
61023         * math/s_clogf.c (__clogf): Likewise.
61024         * math/s_clogl.c (__clogl): Likewise.
61025         * math/Makefile (libm-calls): Add x2y2m1.
61026         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
61027         (__x2y2m1): Likewise.
61028         (__x2y2m1l): Likewise.
61029         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
61030         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
61031         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
61032         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
61033         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
61034         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
61035         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
61036         * sysdeps/i386/fpu/libm-test-ulps: Update.
61037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61038
61039         [BZ #14621]
61040         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
61041         int as type of variable DEPTH.
61042         (glob): Use size_t instead of int as type of variables NEWCOUNT
61043         and OLD_PATHC.
61044
61045 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
61046
61047         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
61048         Add s_sincosf-sse2.
61049         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
61050         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
61051         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
61052         macros for using routine as __sincosf_ia32.
61053         Use macro for function declaration and weak_alias.
61054         * sysdeps/i386/fpu/libm-test-ulps: Update.
61055
61056         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
61057         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
61058
61059         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
61060         subnormal argument.
61061         * math/s_cexpf.c (__cexpf): Likewise.
61062         * math/s_csinf.c (__csinf): Likewise.
61063         * math/s_csinhf.c (__csinhf): Likewise.
61064         * math/s_ctanf.c (__ctanf): Likewise.
61065         * math/s_ctanhf.c (__ctanhf): Likewise.
61066         * math/s_ccosh.c (__ccoshf): Likewise.
61067         * math/s_cexp.c (__cexpl): Likewise.
61068         * math/s_csin.c (__csin): Likewise.
61069         * math/s_csinh.c (__csinh): Likewise.
61070         * math/s_ctan.c (__ctan): Likewise.
61071         * math/s_ctanh.c (ctanh): Likewise.
61072         * math/s_ccoshl.c (__ccoshl): Likewise.
61073         * math/s_cexpl.c (__cexpl): Likewise.
61074         * math/s_csinl.c (__csinl): Likewise.
61075         * math/s_csinhl.c (__csinhl): Likewise.
61076         * math/s_ctanl.c (__ctanl): Likewise.
61077         * math/s_ctanhl.c (__ctanhl): Likewise.
61078
61079 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
61080
61081         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
61082         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
61083         (_IO_off_t): Define to __off_t, not _G_off_t.
61084         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
61085         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
61086         (_IO_wint_t): Define to wint_t, not _G_wint_t.
61087         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
61088         type of __dummy and __dummy2 fields.
61089         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
61090         (_G_ssize_t): Likewise.
61091         (_G_off_t): Likewise.
61092         (_G_pid_t): Likewise.
61093         (_G_uid_t): Likewise.
61094         (_G_wchar_t): Likewise.
61095         (_G_wint_t): Likewise.
61096         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
61097         (_G_ssize_t): Likewise.
61098         (_G_off_t): Likewise.
61099         (_G_pid_t): Likewise.
61100         (_G_uid_t): Likewise.
61101         (_G_wchar_t): Likewise.
61102         (_G_wint_t): Likewise.
61103         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
61104         (_G_ssize_t): Likewise.
61105         (_G_off_t): Likewise.
61106         (_G_pid_t): Likewise.
61107         (_G_uid_t): Likewise.
61108         (_G_wchar_t): Likewise.
61109         (_G_wint_t): Likewise.
61110
61111 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
61112
61113         * malloc/arena.c: Include malloc-sysdep.h.
61114         (shrink_heap): Use check_may_shrink_heap to decide if madvise
61115         is sufficient to shrink the heap or an unmap is needed.
61116         * sysdeps/generic/malloc-sysdep.h: New file.  Define
61117         new function check_may_shrink_heap.
61118         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
61119         new function check_may_shrink_heap.
61120
61121 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
61122
61123         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
61124         comments.
61125
61126 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
61127
61128         * catgets/test-gencat.sh: Add "set -e".
61129         * elf/tst-pathopt.sh: Likewise.
61130         * grp/tst_fgetgrent.sh: Likewise.
61131         * iconvdata/run-iconv-test.sh: Likewise.
61132         * intl/tst-gettext.sh: Likewise.
61133         * intl/tst-gettext2.sh: Likewise.
61134         * intl/tst-gettext4.sh: Likewise.
61135         * intl/tst-gettext6.sh: Likewise.
61136         * intl/tst-translit.sh: Likewise.
61137         * io/ftwtest-sh: Likewise.
61138         * libio/test-freopen.sh: Likewise.
61139         * malloc/tst-mtrace.sh: Likewise.
61140         * posix/globtest.sh: Likewise.
61141         * posix/tst-getconf.sh: Likewise.
61142         * posix/wordexp-tst.sh: Likewise.
61143         * stdio-common/tst-printf.sh: Likewise.
61144         * stdio-common/tst-unbputc.sh: Likewise.
61145         * stdlib/tst-fmtmsg.sh: Likewise.
61146         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
61147         * catgets/Makefile: Do not specify -e option when running
61148         testsuite shell scripts.
61149         * elf/Makefile: Likewise.
61150         * grp/Makefile: Likewise.
61151         * iconvdata/Makefile: Likewise.
61152         * intl/Makefile: Likewise.
61153         * io/Makefile: Likewise.
61154         * libio/Makefile: Likewise.
61155         * malloc/Makefile: Likewise.
61156         * posix/Makefile: Likewise.
61157         * stdio-common/Makefile: Likewise.
61158         * stdlib/Makefile: Likewise.
61159         * sysdeps/x86_64/Makefile: Likewise.
61160
61161         * io/ftwtest-sh: Add copyright header.
61162         * posix/globtest.sh: Likewise.
61163         * posix/tst-getconf.sh: Likewise.
61164         * posix/wordexp-tst.sh: Likewise.
61165         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
61166
61167 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
61168
61169         [BZ #13679]
61170         * Makeconfig (+link): Defined as $(+link-static) if
61171         $(build-shared) isn't yes.
61172         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
61173         isn't yes.
61174         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
61175
61176         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
61177
61178         [BZ #14562]
61179         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
61180         new chunk size with MALLOC_ALIGN_MASK.
61181
61182 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
61183
61184         [BZ #5044]
61185         * stdio-common/printf_fphex.c: Include <stdbool.h> and
61186         <rounding-mode.h>.
61187         (__printf_fphex): Determine rounding using get_rounding_mode and
61188         round_away.
61189         * stdio-common/tst-printf-round.c (struct hex_test): New
61190         structure.
61191         (hex_tests): New variable.
61192         (test_hex_in_one_mode): New function.
61193         (do_test): Also run tests for hex float output.
61194
61195 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
61196
61197         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
61198         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
61199         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
61200         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
61201         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
61202         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
61203         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
61204         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
61205
61206 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
61207
61208         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
61209         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
61210         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
61211         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
61212
61213 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
61214
61215         [BZ #14579]
61216         * elf/rtld.c (dl_main): Limit the check for self loading to normal
61217         mode only.
61218         * elf/tst-rtld-load-self.sh: New test.
61219         * elf/Makefile: Run it.
61220
61221 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
61222
61223         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
61224         (tst-writev-ENV): Remove.
61225         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
61226
61227 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
61228
61229         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
61230
61231 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
61232
61233         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
61234         unconditional.
61235         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
61236         Likewise.
61237         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
61238         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
61239         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
61240         Likewise.
61241
61242 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
61243
61244         [BZ #14587]
61245         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
61246         * config.make.in (have-cpp-asm-debuginfo): Removed.
61247         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
61248         * configure: Regenerated.
61249
61250 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
61251
61252         [BZ #5044]
61253         * stdio-common/printf_fp.c: Include <stdbool.h> and
61254         <rounding-mode.h>.
61255         (___printf_fp): Determine rounding using get_rounding_mode and
61256         round_away.
61257         * stdio-common/tst-printf-round.c: New file.
61258         * stdio-common/Makefile (tests): Add tst-printf-round.
61259         (link-libm): New variable.
61260         ($(objpfx)tst-printf-round): Depend in $(link-libm).
61261
61262 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
61263
61264         [BZ #14576]
61265         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
61266         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
61267         Likewise.
61268         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
61269         Likewise.
61270
61271 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
61272
61273         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
61274         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
61275         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
61276         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
61277
61278 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
61279
61280         [BZ #14518]
61281         * include/rounding-mode.h: New file.
61282         * sysdeps/generic/get-rounding-mode.h: Likewise.
61283         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
61284         * stdlib/strtod_l.c: Include <rounding-mode.h>.
61285         (MAX_VALUE): New macro.
61286         (MIN_VALUE): Likewise.
61287         (overflow_value): New function.
61288         (underflow_value): Likewise.
61289         (round_and_return): Use overflow_value and underflow_value to
61290         determine return values in overflow and underflow cases.  Use
61291         round_away to determine rounding depending on rounding mode.
61292         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
61293         determine return values in overflow and underflow cases.
61294         * stdlib/tst-strtod-round.c: Include <fenv.h>.
61295         (struct test_results): New structure.
61296         (struct test): Use struct test_results to store expected results
61297         for all rounding modes.
61298         (TEST): Include expected results for all rounding modes.
61299         (test_in_one_mode): New function.
61300         (do_test): Use test_in_one_mode to compute and check results.
61301         Check results for all rounding modes.
61302         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
61303         $(link-libm).
61304
61305 2012-12-09  Allan McRae  <allan@archlinux.org>
61306
61307         * sysdeps/i386/fpu/libm-test-ulps: Update
61308
61309 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
61310
61311         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
61312         (_G_int32_t): Likewise.
61313         (_G_uint16_t): Likewise.
61314         (_G_uint32_t): Likewise.
61315         (_G_HAVE_BOOL): Likewise.
61316         (_G_HAVE_ATEXIT): Likewise.
61317         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
61318         (_G_HAVE_IO_FILE_OPEN): Likewise.
61319         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
61320         (_G_int32_t): Likewise.
61321         (_G_uint16_t): Likewise.
61322         (_G_uint32_t): Likewise.
61323         (_G_HAVE_BOOL): Likewise.
61324         (_G_HAVE_ATEXIT): Likewise.
61325         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
61326         (_G_HAVE_IO_FILE_OPEN): Likewise.
61327         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
61328         (_G_int32_t): Likewise.
61329         (_G_uint16_t): Likewise.
61330         (_G_uint32_t): Likewise.
61331         (_G_HAVE_BOOL): Likewise.
61332         (_G_HAVE_ATEXIT): Likewise.
61333         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
61334         (_G_HAVE_IO_FILE_OPEN): Likewise.
61335
61336 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
61337
61338         * csu/libc-tls.c: Update copyright years.
61339
61340 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
61341
61342         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
61343         [!_G_USING_THUNKS]: Remove conditional code.
61344         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
61345         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
61346
61347         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
61348         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
61349         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
61350         (_G_VTABLE_LABEL_PREFIX): Likewise.
61351         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
61352         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
61353         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
61354         (_G_VTABLE_LABEL_PREFIX): Likewise.
61355         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
61356         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
61357         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
61358         (_G_VTABLE_LABEL_PREFIX): Likewise.
61359         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
61360
61361 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
61362
61363         * libio/Makefile: Include ../Makeconfig before tests.
61364         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
61365         only if $(build-shared) is yes.
61366
61367         * iconv/gconv_db.c: Update copyright years.
61368
61369 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
61370
61371         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
61372         unwind info if defined PIC. Fix special cases description.
61373         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
61374
61375         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
61376         DP_HI_MASK entry.
61377         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
61378
61379 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
61380
61381         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
61382
61383         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
61384         is NULL.
61385
61386         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
61387         (LDLIBS-tst-chk4): This.
61388         (LDFLAGS-tst-chk5): Renamed to ...
61389         (LDLIBS-tst-chk5): This.
61390         (LDFLAGS-tst-chk6): Renamed to ...
61391         (LDLIBS-tst-chk6): This.
61392         (LDFLAGS-tst-lfschk4): Renamed to ...
61393         (LDLIBS-tst-lfschk4): This.
61394         (LDFLAGS-tst-lfschk5): Renamed to ...
61395         (LDLIBS-tst-lfschk5): This.
61396         (LDFLAGS-tst-lfschk6): Renamed to ...
61397         (LDLIBS-tst-lfschk6): This.
61398
61399         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
61400         on $(common-objpfx)soversions.mk.
61401
61402 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
61403
61404         [BZ #10014]
61405         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
61406         example host name.
61407
61408 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
61409
61410         * malloc/arena.c (arena_get_retry): New function that gets
61411         another arena for the caller to try its request on.
61412         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
61413         current arena cannot fulfill the request.
61414         (__libc_memalign): Likewise.
61415         (__libc_memalign): Likewise.
61416         (__libc_pvalloc): Likewise.
61417         (__libc_calloc): Likewise.
61418
61419 2012-09-05  John Tobey  <john.tobey@gmail.com>
61420
61421         [BZ #13542]
61422         * manual/arith.texi (Operations on Complex): Fix description
61423         of carg branch cut.
61424
61425 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
61426
61427         [BZ #10014]
61428         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
61429         host name.
61430
61431         [BZ #10038]
61432         * manual/memory.texi (Memory): Make order of menu items match
61433         order of sections.
61434
61435 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
61436
61437         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
61438         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
61439         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
61440
61441 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
61442
61443         * csu/libc-tls.c (static_dtv): Renamed to ...
61444         (_dl_static_dtv): This.  Make it global.
61445         (_dl_initial_dtv): Removed.
61446         (__libc_setup_tls): Updated.
61447         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
61448         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
61449         DL_INITIAL_DTV.
61450
61451 2012-09-06  Petr Machata  <pmachata@redhat.com>
61452
61453         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
61454         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
61455         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
61456         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
61457
61458 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
61459
61460         [BZ #14545]
61461         * csu/libc-tls.c (_dl_initial_dtv): New variable.
61462         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
61463         freeing dtv[-1].
61464
61465 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
61466
61467         [BZ #14544]
61468         * Makeconfig (link-static-before-libc): Replace $(+prector)
61469         with $(+prectorT).
61470         (link-static-after-libc): Replace $(+postctor) with
61471         $(+postctorT).
61472         (link-bounded): Replace $(+prector)/$(+postctor) with
61473         $(+prectorT)/$(+postctorT).
61474         (+prectorT): New macro.
61475         (+postctorT): Likewise.
61476
61477 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
61478
61479         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
61480         (round_str): Handle values above the maximum for IBM long double
61481         as inexact.
61482         * stdlib/tst-strtod-round.c (tests): Regenerated.
61483
61484 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61485
61486         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
61487         assembler flag.
61488         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
61489         zarch_nohighgprs around the zarch optimized routines.
61490         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
61491         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
61492         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
61493         for zarch.
61494
61495 2012-09-05  David S. Miller  <davem@davemloft.net>
61496
61497         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61498
61499         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
61500         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
61501         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
61502         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
61503         entries.
61504
61505 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61506
61507         * malloc/arena.c: Fold copyright years.
61508         * malloc/mcheck.c, malloc/memusage.c: Likewise.
61509
61510 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61511
61512         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
61513
61514 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61515
61516         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
61517
61518 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61519
61520         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
61521         change internal state upon failure.
61522
61523 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61524
61525         * malloc/mcheck.c (mcheck_check_all): Fix typo.
61526         * malloc/memusage.c (mmap): Likewise.
61527         (mmap64, mremap): Likewise.  Adjust name in comment.
61528
61529 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
61530
61531         * libio/fileops.c: Fix typos in comments.
61532         * libio/oldfileops.c: Likewise.
61533         * libio/wfileops.c: Likewise.
61534
61535 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
61536
61537         [BZ #1349]
61538         * malloc/Makefile (tests): Add tst-malloc-usable test case.
61539         (tst-malloc-usable-ENV): Set environment for test case.
61540         * malloc/hooks.c (malloc_check_get_size): New function to get
61541         requested size.
61542         * malloc/malloc.c (musable): Use malloc_check_get_size.
61543         * malloc/tst-malloc-usable.c: New test case.
61544
61545 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
61546
61547         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
61548
61549 2012-09-05  Allan McRae  <allan@archlinux.org>
61550
61551         [BZ #13966]
61552         * configure.in (CXX_SYSINCLUDES): Use compiler output to
61553         determine header location.
61554         * configure: Regenerated.
61555
61556 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
61557
61558         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
61559         float format.
61560         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
61561         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
61562         format.
61563         (test): Regenerate.
61564
61565 2012-09-04  David S. Miller  <davem@davemloft.net>
61566
61567         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
61568         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
61569         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
61570
61571 2012-09-04  Florian Weimer  <fweimer@redhat.com>
61572
61573         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
61574         failures.
61575
61576         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
61577
61578 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
61579
61580         [BZ #9914]
61581         * libio/iogetdelim.c: Include <limits.h>.
61582         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
61583         + len + 1 would overflow.
61584
61585 2012-09-03  Andreas Jaeger  <aj@suse.de>
61586
61587         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
61588         * sysdeps/i386/fpu/libm-test-ulps: Update.
61589
61590 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
61591
61592         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
61593         Add s_sinf-sse2, s_conf-sse2.
61594
61595         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
61596         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
61597         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
61598         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
61599
61600         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
61601         for using routine as __sinf_ia32.
61602         Use macro for function declaration and weak_alias.
61603         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
61604         for using routine as __cosf_ia32.
61605         Use macro for function declaration and weak_alias.
61606
61607         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
61608         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
61609
61610         * sysdeps/x86_64/fpu/s_sinf.S: New file.
61611         * sysdeps/x86_64/fpu/s_cosf.S: New file.
61612         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
61613
61614         * math/libm-test.inc (cos_test): Add more test cases.
61615         (sin_test): Likewise.
61616         (sincos_test): Likewise.
61617
61618 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61619
61620         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
61621         (IFUNC_RESOLVE): Make pointers to the specialized implementations
61622         hidden.
61623         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
61624
61625 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
61626
61627         [BZ #14538]
61628         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
61629         first element of the GOT.
61630         (elf_machine_load_address): Return the difference between
61631         the runtime address of _DYNAMIC and elf_machine_dynamic ().
61632
61633 2012-09-01  Allan McRae  <allan@archlinux.org>
61634
61635         [BZ #13412]
61636         * configure.in (AWK): Require gawk version 3.0 or later.
61637         * configure: Regenerated.
61638
61639 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
61640
61641         * sysdeps/unix/sysv/linux/kernel-features.h
61642         (__ASSUME_POSIX_CPU_TIMERS): Remove.
61643         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
61644         [__NR_clock_getres]: Make code unconditional.
61645         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
61646         (clock_getcpuclockid): Remove code left unreachable by removal of
61647         conditionals.
61648         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
61649         code unconditional.
61650         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
61651         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
61652         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
61653         Make code unconditional.
61654         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
61655         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
61656         * sysdeps/unix/sysv/linux/clock_settime.c
61657         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
61658         conditional code.
61659         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
61660         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
61661
61662 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
61663
61664         [BZ #14476]
61665         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
61666         scripts/test-installation.pl.
61667
61668         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
61669         and $ld_so_version if it is set.
61670
61671 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
61672
61673         [BZ #14516]
61674         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
61675         failure if reading from procfs failed.
61676         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
61677
61678 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
61679
61680         * sysdeps/unix/sysv/linux/kernel-features.h
61681         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
61682         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
61683         Remove conditional code.
61684         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61685         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
61686         Remove conditional code.
61687         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61688         * sysdeps/unix/sysv/linux/i386/fxstat.c
61689         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
61690         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61691         * sysdeps/unix/sysv/linux/i386/fxstatat.c
61692         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
61693         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61694         * sysdeps/unix/sysv/linux/i386/lxstat.c
61695         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
61696         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61697         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
61698         Remove conditional code.
61699         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61700         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
61701         Remove conditional code.
61702         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61703         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
61704         <kernel-features.h>.
61705         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
61706         Remove.
61707         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
61708         Remove conditional code.
61709         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61710         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
61711         Remove conditional.
61712
61713 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
61714
61715         [BZ #5400]
61716         * NEWS: Add fixed bug number.
61717
61718 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
61719
61720         [BZ #14519]
61721         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
61722         underflowing exponent in case of negative sign.
61723         * stdlib/tst-strtod-round-data: Add more tests.
61724         * stdlib/tst-strtod-round.c (tests): Regenerated.
61725
61726         [BZ #3479]
61727         * stdlib/strtod_l.c (NDIG): Remove.
61728         (HEXNDIG): Likewise.
61729         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
61730         smallest representable value.
61731         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
61732         lie within an exact representation of 1/2 ulp of the result.
61733         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
61734         unconditionally.
61735         (TENS_P9_IDX): Define unconditionally.
61736         (TENS_P9_SIZE): Likewise.
61737         (TENS_P10_IDX): Likewise.
61738         (TENS_P10_SIZE): Likewise.
61739         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
61740         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
61741         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
61742         entries for 10^2^13 and 10^2^14.
61743         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
61744         (TENS_P13_IDX): Define.
61745         (TENS_P13_SIZE): Likewise.
61746         (TENS_P14_IDX): Likewise.
61747         (TENS_P14_SIZE): Likewise.
61748         (_fpioconst_pow10): Change array size to
61749         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
61750         unconditional.
61751         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
61752         1024]: Add entries for 10^2^13 and 10^2^14.
61753         [LAST_POW10 > _LAST_POW10]: Remove #error.
61754         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
61755         (_fpioconst_pow10): Change array size to
61756         FPIOCONST_POW10_ARRAY_SIZE.
61757         * stdlib/gen-fpioconst.c: New file.
61758         * stdlib/gen-tst-strtod-round.c: Likewise.
61759         * stdlib/tst-strtod-round-data: Likewise.
61760         * stdlib/tst-strtod-round.c: Likewise.
61761         * stdlib/Makefile (tests): Add tst-strtod-round.
61762
61763         [BZ #14459]
61764         * stdlib/strtod_l.c: Include <stdint.h>.
61765         (NDEBUG): Do not define.
61766         (round_and_return): Change EXPONENT parameter to type intmax_t.
61767         Rearrange calculations to avoid internal overflow possibilities.
61768         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
61769         Rearrange calculations to avoid internal overflow possibilities.
61770         Assert that number fits inside MPNSIZE limbs.
61771         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
61772         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
61773         calculations and add assertions to avoid internal overflow
61774         possibilities.  Add casts to avoid signed/unsigned operations.
61775         * stdlib/tst-strtod-overflow.c: New file.
61776         * stdlib/Makefile (tests): Add tst-strtod-overflow.
61777
61778 2012-08-25  Marek Polacek  <polacek@redhat.com>
61779
61780         * time/time.h: Fix some typos in comments.
61781
61782 2012-08-23  Roland McGrath  <roland@hack.frob.com>
61783
61784         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
61785         * posix/tst-rfc3484-2.c: Likewise.
61786         * posix/tst-rfc3484-3.c: Likewise.
61787
61788 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
61789
61790         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
61791         (EF_ARM_ABI_FLOAT_HARD): Likewise.
61792
61793 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
61794
61795         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
61796         #include of fxstatat64.c.
61797
61798 2012-08-22  Roland McGrath  <roland@hack.frob.com>
61799
61800         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
61801         * shadow/getspent_r.c: Likewise.
61802         * shadow/getspnam.c: Likewise.
61803         * shadow/getspnam_r.c: Likewise.
61804         * gshadow/getsgent.c: Likewise.
61805         * gshadow/getsgent_r.c: Likewise.
61806         * gshadow/getsgnam.c: Likewise.
61807         * gshadow/getsgnam_r.c: Likewise.
61808         * inet/getnetbyad.c: Likewise.
61809         * inet/getnetbyad_r.c: Likewise.
61810         * inet/getnetbynm.c: Likewise.
61811         * inet/getnetbynm_r.c: Likewise.
61812         * inet/getnetent.c: Likewise.
61813         * inet/getnetent_r.c: Likewise.
61814         * inet/getproto.c: Likewise.
61815         * inet/getproto_r.c: Likewise.
61816         * inet/getprtent.c: Likewise.
61817         * inet/getprtent_r.c: Likewise.
61818         * inet/getprtname.c: Likewise.
61819         * inet/getprtname_r.c: Likewise.
61820         * inet/getrpcbyname.c: Likewise.
61821         * inet/getrpcbyname_r.c: Likewise.
61822         * inet/getrpcbynumber.c: Likewise.
61823         * inet/getrpcbynumber_r.c: Likewise.
61824         * inet/getrpcent.c: Likewise.
61825         * inet/getrpcent_r.c: Likewise.
61826         * inet/getaliasent.c: Likewise.
61827         * inet/getaliasent_r.c: Likewise.
61828         * inet/getaliasname.c: Likewise.
61829         * inet/getaliasname_r.c: Likewise.
61830         * nscd/getgrgid_r.c: Likewise.
61831         * nscd/getgrnam_r.c: Likewise.
61832         * nscd/gethstbyad_r.c: Likewise.
61833         * nscd/gethstbynm3_r.c: Likewise.
61834         * nscd/getpwnam_r.c: Likewise.
61835         * nscd/getpwuid_r.c: Likewise.
61836         * nscd/getsrvbynm_r.c: Likewise.
61837         * nscd/getsrvbypt_r.c: Likewise.
61838         * nscd/gai.c: Likewise.
61839
61840         * configure.in (build_nscd): New substituted variable, set
61841         by --disable-build-nscd and defaults to $use_nscd.
61842         * configure: Regenerated.
61843         * config.make.in (build-nscd): New substituted variable.
61844         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
61845         Change conditional to require [$(build-nscd) = yes] as well.
61846         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
61847
61848         [BZ# 13696]
61849         * configure.in (use_nscd): New substituted variable, set by
61850         --disable-nscd.  If enabled, define USE_NSCD.
61851         * configure: Regenerated.
61852         * config.h.in: Add USE_NSCD.
61853         * config.make.in (use-nscd): New substituted variable.
61854         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
61855         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
61856         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
61857         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
61858         (CFLAGS-getgrnam_r.c): Likewise.
61859         (CFLAGS-initgroups.c): Likewise.
61860         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
61861         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
61862         Variables removed.
61863         * inet/getnetgrent_r.c
61864         (nscd_setnetgrent): New function, broken out of ...
61865         (setnetgrent): ... here.  Call it.
61866         (innetgr): Conditionalize nscd bits on [USE_NSCD].
61867         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
61868         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
61869         * nscd/Makefile (routines, aux): Move definitions after include of
61870         Makeconfig.  Conditionalize on [$(use-nscd) != no].
61871         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
61872         Conditionalize on [USE_NSCD].
61873         (is_nscd, nscd_init_cb): Likewise.
61874         (nss_load_library): Conditionalize init callback on [USE_NSCD].
61875         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
61876         * nss/nss_db/db-init.c: Likewise.
61877         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
61878         [USE_NSCD].
61879         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
61880         (make_request): Use it.
61881         (cache_valid_p): New function.
61882         (__check_pf): Use it.
61883         * NEWS: Add item for --disable-nscd.
61884
61885 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
61886
61887         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
61888         to support sed >= 4.2.1-20-ga9bf076.
61889         * configure: Regenerated.
61890
61891 2012-08-22  Roland McGrath  <roland@hack.frob.com>
61892
61893         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
61894         Conditionalize whole body on [IREL].
61895
61896 2012-08-22  Jeff Law <law@redhat.com>
61897
61898         [BZ #14505]
61899         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
61900         if the family is PF_UNSPEC.
61901
61902 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
61903
61904         * Makerules (lib-version): Rename from V.
61905         (install-lib-nosubdir): Change V to lib-version.
61906
61907 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
61908
61909         [BZ #14252]
61910         * powerpc32/power6/wcschr.c: New file.
61911         * powerpc32/power6/wcscpy.c: New file.
61912         * powerpc32/power6/wcsrchr.c: New file.
61913         * powerpc64/power6/wcschr.c: New file.
61914         * powerpc64/power6/wcscpy.c: New file.
61915         * powerpc64/power6/wcsrchr.c: New file.
61916
61917 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
61918
61919         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
61920         (two_way_short_needle): Use it.
61921         * string/strstr.c (AVAILABLE1_USES_J): Define.
61922         * string/strcasestr.c: Likewise.
61923
61924         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
61925         array references.
61926         * string/strcasestr.c (TOLOWER): Make side-effect safe.
61927
61928         [BZ #11607]
61929         * NEWS: Add an entry.
61930         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
61931         define their defaults.
61932         (two_way_short_needle): Detect end-of-string on-the-fly.
61933         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
61934         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
61935         * string/bug-strcasestr1.c: New test.
61936         * string/Makefile: Run it.
61937
61938 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
61939
61940         [BZ #11607]
61941         * string/str-two-way.h (two_way_short_needle): Optimize matching of
61942         the first character.
61943
61944 2012-08-21  Roland McGrath  <roland@hack.frob.com>
61945
61946         * csu/elf-init.c (__libc_csu_irel): Function removed.
61947         * csu/libc-start.c (apply_irel): New function.
61948         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
61949
61950 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
61951
61952         * sysdeps/unix/sysv/linux/kernel-features.h
61953         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
61954         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
61955         <kernel-features.h>.
61956         [__NR_fadvise64_64]: Make code unconditional.
61957         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
61958         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
61959         !__NR_fadvise64_64)]: Likewise.
61960         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
61961         !__NR_fadvise64_64))]: Likewise.
61962         [__NR_fadvise64]: Make code unconditional.
61963         [!__NR_fadvise64]: Remove conditional code.
61964         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
61965         <kernel-features.h>.
61966         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
61967         unconditional.
61968         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
61969         conditional code.
61970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
61971         not include <kernel-features.h>.
61972         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
61973         unconditional.
61974         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
61975         conditional code.
61976         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
61977         include <kernel-features.h>.
61978         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
61979         unconditional.
61980         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
61981         conditional code.
61982
61983 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
61984
61985         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
61986         slight instruction rearrangements per scrollpipe analysis.
61987         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
61988
61989 2012-08-20  Roland McGrath  <roland@hack.frob.com>
61990
61991         * manual/syslog.texi (syslog; vsyslog, closelog):
61992         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
61993         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
61994
61995         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
61996         DSOCAPS to match condition on defining it.
61997
61998 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
61999
62000         * sysdeps/unix/sysv/linux/kernel-features.h
62001         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
62002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
62003         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
62004         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
62005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
62006         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
62007         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
62008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
62009         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
62010         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
62011
62012         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
62013         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
62014
62015         * sysdeps/unix/sysv/linux/kernel-features.h
62016         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
62017         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
62018         unconditional.
62019         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
62020         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
62021         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
62022         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
62023         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
62024         Make code unconditional.
62025         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
62026         (__mmap64) [!__NR_mmap2]: Likewise.
62027         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
62028         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
62029         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
62030         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
62031         [__NR_mmap2]: Make code unconditional.
62032         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
62033         (__mmap64) [!__NR_mmap2]: Likewise.
62034
62035 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
62036
62037         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
62038
62039 2012-08-18  Andreas Jaeger  <aj@suse.de>
62040
62041         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
62042
62043 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
62044
62045         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
62046         * include/unistd.h (__have_sock_cloexec): Likewise.
62047         (__have_pipe2): Likewise.
62048         (__have_dup3): Likewise.
62049
62050 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
62051
62052         [BZ #9685]
62053         * include/unistd.h (__have_pipe2): Change define into an extern int.
62054         (__have_dup3): Likewise.
62055         * socket/have_sock_cloexec.c: Include fcntl.h.
62056         (__have_pipe2): New variable.
62057         (__have_dup3): Likewise.
62058
62059 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
62060
62061         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
62062
62063 2012-08-17  Marek Polacek  <polacek@redhat.com>
62064
62065         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
62066         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
62067
62068 2012-08-17  Roland McGrath  <roland@hack.frob.com>
62069
62070         * configure.in: Add AC_SUBST for sysheaders.
62071         * configure: Regenerated.
62072         * config.make.in (sysheaders): New substituted variable.
62073
62074         * sysdeps/unix/mkfifo.c: Moved ...
62075         * sysdeps/posix/mkfifo.c: ... here.
62076         * sysdeps/unix/mkfifoat.c: Moved ...
62077         * sysdeps/posix/mkfifoat.c: ... here.
62078
62079         * sysdeps/unix/utime.c: Moved ...
62080         * sysdeps/posix/utime.c: ... here.
62081
62082         * sysdeps/unix/time.c: Moved ...
62083         * sysdeps/posix/time.c: ... here.
62084         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
62085         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
62086
62087         * sysdeps/unix/nice.c: Moved ...
62088         * sysdeps/posix/nice.c: ... here.
62089
62090         * sysdeps/unix/alarm.c: Moved ...
62091         * sysdeps/posix/alarm.c: ... here.
62092
62093         * intl/Makefile ($(codeset_mo)): Depend on the input file.
62094
62095 2012-08-17  Jeff Law <law@redhat.com>
62096
62097         * intl/Makefile (codeset_mo): New variable.
62098         ($(codeset_mo)): New target.
62099         (tst-codeset.out): Depend on that.  Remove explicit rule.
62100         (tst-gettext3.out, tst-gettext5.out): Likewise.
62101         (LOCPATH-ENV, tst-codeset-ENV): New variables.
62102         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
62103         * intl/tst-codeset.sh: Remove.
62104         * intl/tst-gettext3.sh: Likewise.
62105         * intl/tst-gettext5.sh: Likewise.
62106
62107 2012-08-17  Roland McGrath  <roland@hack.frob.com>
62108
62109         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
62110         * sysdeps/unix/syscalls.list: ... here.
62111
62112         * sysdeps/posix/getaddrinfo.c
62113         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
62114         (gaiconf_init, gaiconf_reload): Use them.
62115         [!_STATBUF_ST_NSEC]
62116         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
62117         Define using time_t rather than struct timespec.
62118
62119         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
62120         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
62121         Macros removed.
62122         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
62123         [!NO_THREADS].
62124         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
62125         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
62126         Likewise.
62127
62128         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
62129         __libc_cleanup_push argument.
62130
62131         * bits/param.h: New file.
62132         * misc/sys/param.h: New file.
62133         * include/sys/param.h: New file.
62134         * misc/Makefile (headers): Add bits/param.h.
62135         * sysdeps/generic/sys/param.h: File removed.
62136         * sysdeps/unix/sysv/linux/bits/param.h: New file.
62137         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
62138         * sysdeps/mach/hurd/bits/param.h: New file.
62139         * sysdeps/mach/hurd/sys/param.h: File removed.
62140
62141         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
62142         last change.
62143
62144         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
62145         [_IO_MTSAFE_IO].
62146         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
62147         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
62148         New macros.
62149
62150         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
62151         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
62152         rather than -D_IO_MTSAFE_IO conditionally.
62153         * stdio-common/Makefile (CPPFLAGS): Likewise.
62154         * wcsmbs/Makefile (CPPFLAGS): Likewise.
62155         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
62156         Use $(libio-mtsafe).
62157         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
62158         of -D_IO_MTSAFE_IO.
62159         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
62160         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
62161         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
62162         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
62163         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
62164         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
62165         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
62166         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
62167         (CFLAGS-fread_u_chk.c): Likewise.
62168         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
62169         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
62170         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
62171         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
62172         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
62173         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
62174         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
62175         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
62176         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
62177
62178         * libio/Makefile: Test [$(libc-reentrant) = yes]
62179         instead of [$(filter %REENTRANT, $(defines)) nonempty].
62180
62181         * Makeconfig
62182         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
62183         * sysdeps/pthread/configure: File removed.
62184         * sysdeps/pthread/Makeconfig: New file.
62185         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
62186         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
62187
62188 2012-08-16  Gary Benson  <gbenson@redhat.com>
62189
62190         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
62191         unmapping the first object in a namespace.
62192
62193 2012-08-16  Roland McGrath  <roland@hack.frob.com>
62194
62195         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
62196         (__internal_setnetgrent): ... this.  Add internal_function to
62197         definition.  Add libc_hidden_def.
62198         (setnetgrent): Update caller.
62199         (internal_endnetgrent): Renamed to ...
62200         (__internal_endnetgrent): ... this.  Add internal_function to
62201         definition.  Add libc_hidden_def.
62202         (endnetgrent): Update caller.
62203         (internal_getnetgrent_r): Renamed to ...
62204         (__internal_getnetgrent_r): ... this.  Add internal_function to
62205         definition.  Add libc_hidden_def.
62206         (__getnetgrent_r): Update caller.
62207         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
62208
62209 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
62210
62211         * stdlib/longlong.h: Update from GCC.
62212
62213 2012-08-16  Roland McGrath  <roland@hack.frob.com>
62214
62215         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
62216         on _QL, which is set by umul_ppmm but never used.
62217         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
62218         variables, which are set by GMP macros but never used.
62219         * stdio-common/_itowa.c (_itowa): Likewise.
62220         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
62221         * stdlib/mod_1.c (mpn_mod_1): Likewise.
62222
62223 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
62224
62225         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
62226         struct La_sh_regs is not constant.
62227         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
62228         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
62229         and struct La_sparc64_regs are not constant.
62230
62231 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
62232
62233         * sysdeps/unix/sysv/linux/kernel-features.h
62234         (__ASSUME_POSIX_TIMERS): Remove.
62235         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
62236         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
62237         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
62238         Make code unconditional.
62239         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
62240         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
62241         Make code unconditional.
62242         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
62243         * sysdeps/unix/sysv/linux/clock_nanosleep.c
62244         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
62245         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
62246         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
62247         Make code unconditional.
62248         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
62249         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
62250         (__libc_missing_posix_timers): Remove.
62251
62252 2012-08-15  Roland McGrath  <roland@hack.frob.com>
62253
62254         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
62255         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
62256
62257         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
62258
62259         * elf/dl-sym.c: Include <stdlib.h>.
62260
62261         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
62262         constants, which avoids warnings in 32-bit builds.
62263
62264         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
62265         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
62266
62267         * misc/lseek.c: File moved to ...
62268         * io/lseek.c: ... here.
62269
62270         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
62271
62272         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
62273         shifting LEN more than 31 bits at once.
62274
62275 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
62276
62277         [BZ #14195]
62278         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
62279         segmentation fault for a case of two empty input strings.
62280         * string/test-strncasecmp.c (check1): Renamed to...
62281         (bz12205): ...this.
62282         (bz14195): Add new testcase for two empty input strings and N > 0.
62283         (test_main): Call new testcase, adapt for renamed function.
62284
62285 2012-08-15  Andreas Jaeger  <aj@suse.de>
62286
62287         [BZ #14090]
62288         * crypt/md5test2.c: New test, based on test supplied by Serge
62289         Belyshev <belyshev@depni.sinp.msu.ru>.
62290         * crypt/Makefile (xtests): Add md5test-giant..
62291         * crypt/Makefile ($(objpfx)md5test-giant): Add.
62292
62293 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62294
62295         [BZ #14090]
62296         * crypt/md5.c (md5_process_block): Don't assume the buffer
62297         length is less than 2**32.
62298         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
62299         length is less than 2**64.
62300
62301 2012-08-15  Roland McGrath  <roland@hack.frob.com>
62302
62303         * string/str-two-way.h: Include <sys/param.h>.
62304         (MAX): Macro removed.
62305
62306         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
62307         Move #define and #undef of memmove to just before and after
62308         including <string.h>.
62309
62310         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
62311         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
62312         and after including <string.h>.  Move declarations of
62313         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
62314         to before #include "string/memmove.c".
62315
62316         * include/dirent.h: Declare __getdirentries.
62317
62318         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
62319         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
62320
62321 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
62322
62323         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
62324         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
62325         * sysdeps/i386/configure: Regenerated.
62326         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
62327         STABS_CURRENT_FILE, and STABS_FUN.
62328         (END): Remove call to STABS_FUN_END.
62329         (STABS_CURRENT_FILE1): Delete.
62330         (STABS_CURRENT_FILE): Likewise.
62331         (STABS_FUN): Likewise.
62332         (STABS_FUN_END): Likewise.
62333         (STABS_FUN2): Likewise.
62334         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
62335         * sysdeps/x86_64/configure: Regenerated.
62336
62337 2012-08-14  Roland McGrath  <roland@hack.frob.com>
62338
62339         * elf/dl-open.c: Include <atomic.h>.
62340         * elf/dl-lookup.c: Likewise.
62341
62342 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
62343
62344         * sysdeps/unix/sysv/linux/kernel-features.h
62345         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
62346         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
62347         unconditionally.
62348         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
62349         unconditionally.
62350         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
62351         condition on __ASSUME_CLONE_THREAD_FLAGS.
62352
62353 2012-08-14  Andreas Jaeger  <aj@suse.de>
62354
62355         * sysdeps/i386/fpu/libm-test-ulps: Update.
62356
62357 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
62358
62359         * include/atomic.h (atomic_exchange_and_add): Split into ...
62360         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
62361         New atomic macros.
62362
62363 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
62364
62365         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
62366
62367 2012-08-13  Jeff Law <law@redhat.com>
62368
62369         * manual/stdio.texi (snprintf): Clarify handling of the trailing
62370         null byte in the output string.
62371
62372 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
62373
62374         * sysdeps/unix/sysv/linux/kernel-features.h
62375         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
62376         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
62377         (__ASSUME_ARG_MAX_STACK_BASED): Define.
62378         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
62379         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
62380         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
62381         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
62382
62383 2012-08-09  Jeff Law <law@redhat.com>
62384
62385         [BZ #13939]
62386         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
62387         When avoid_arena is set, don't retry in the that arena.  Pick the
62388         next one, whatever it might be.
62389         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
62390         (arena_lock): Pass in new parameter to arena_get2.
62391         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
62392         arena_get2.
62393         (__libc_malloc): Unify retrying after main arena failure with
62394         __libc_memalign version.
62395         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
62396
62397 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
62398
62399         [BZ #14166]
62400         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
62401         to __redirect_strstr.
62402         (__strstr_sse42): Use typeof __redirect_strstr.
62403         (__strstr_ia32): Likewise.
62404         (__libc_strstr): New prototype.
62405         (strstr): Renamed to ...
62406         (__libc_strstr): This.
62407         (strstr): New strong alias of __libc_strstr.
62408         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
62409         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
62410         __redirect_time.
62411         Include <time.h>.
62412         (__libc_time): New prototype.
62413         (time_ifunc): Replace time with __libc_time.
62414         (time): New strong alias and hidden definition of __libc_time.
62415         (__GI_time): Remove strong alias.
62416         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
62417         Include <stddef.h>.
62418         (memmove): Redefined to __redirect_memmove.
62419         (__memmove_sse2): Use typeof __redirect_memmove.
62420         (__memmove_ssse3): Likewise.
62421         (__memmove_ssse3_back): Likewise.
62422         (__libc_memmove): New prototype.
62423         (memmove): Renamed to ...
62424         (__libc_memmove): This.
62425         (memmove): New strong alias of __libc_memmove.
62426
62427 2012-08-08  Mark Salter  <msalter@redhat.com>
62428
62429         * elf/elf.h
62430         (R_MN10300_TLS_GD): Define.
62431         (R_MN10300_TLS_LD): Likewise.
62432         (R_MN10300_TLS_LDO): Likewise.
62433         (R_MN10300_TLS_GOTIE): Likewise.
62434         (R_MN10300_TLS_IE): Likewise.
62435         (R_MN10300_TLS_LE): Likewise.
62436         (R_MN10300_TLS_DTPMOD): Likewise.
62437         (R_MN10300_TLS_DTPOFF): Likewise.
62438         (R_MN10300_TLS_TPOFF): Likewise.
62439         (R_MN10300_SYM_DIFF): Likewise.
62440         (R_MN10300_ALIGN): Likewise.
62441         (R_MN10300_NUM): Update.
62442
62443 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
62444
62445         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
62446         Remove.
62447
62448 2012-08-08  Roland McGrath  <roland@hack.frob.com>
62449
62450         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
62451
62452         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
62453         sysdeps/unix -> sysdeps/posix move.
62454         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
62455
62456 2012-08-07      Allan McRae     <allan@archlinux.org>
62457
62458         [BZ #14303]
62459         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
62460         (SUNOS_CPP): Likewise.
62461         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
62462         not found.
62463         (open_input): Call CPP using execvp.
62464
62465 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
62466
62467         * sysdeps/unix/sysv/linux/kernel-features.h
62468         (__ASSUME_PROT_GROWSUPDOWN): Remove.
62469         (__ASSUME_NO_CLONE_DETACHED): Likewise.
62470         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
62471         (__ASSUME_WAITID_SYSCALL): Likewise.
62472         * sysdeps/unix/sysv/linux/dl-execstack.c
62473         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
62474         code unconditional.
62475         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
62476         conditional code.
62477         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
62478         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
62479         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
62480         code.
62481         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
62482         unconditional.
62483         [__ASSUME_WAITID_SYSCALL]: Likewise.
62484         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
62485
62486 2012-08-07  Roland McGrath  <roland@hack.frob.com>
62487
62488         * sysdeps/unix/closedir.c: Renamed to ...
62489         * sysdeps/posix/closedir.c: ... here.
62490         * sysdeps/unix/dirfd.c: Renamed to ...
62491         * sysdeps/posix/dirfd.c: ... here.
62492         * sysdeps/unix/dirstream.h: Renamed to ...
62493         * sysdeps/posix/dirstream.h: ... here.
62494         * sysdeps/unix/fdopendir.c: Renamed to ...
62495         * sysdeps/posix/fdopendir.c: ... here.
62496         * sysdeps/unix/opendir.c: Renamed to ...
62497         * sysdeps/posix/opendir.c: ... here.
62498         * sysdeps/unix/readdir.c: Renamed to ...
62499         * sysdeps/posix/readdir.c: ... here.
62500         * sysdeps/unix/readdir_r.c: Renamed to ...
62501         * sysdeps/posix/readdir_r.c: ... here.
62502         * sysdeps/unix/rewinddir.c: Renamed to ...
62503         * sysdeps/posix/rewinddir.c: ... here.
62504         * sysdeps/unix/seekdir.c: Renamed to ...
62505         * sysdeps/posix/seekdir.c: ... here.
62506         * sysdeps/unix/telldir.c: Renamed to ...
62507         * sysdeps/posix/telldir.c: ... here.
62508         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
62509         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
62510         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
62511         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
62512
62513         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
62514         * bits/fcntl.h: ... here.
62515
62516         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
62517         not 0.
62518         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
62519         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
62520         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
62521         (struct flock): Move l_start, l_len to the beginning.
62522         Use __pid_t for l_pid.
62523         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
62524         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
62525         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
62526         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
62527         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
62528         [__USE_LARGEFILE64] (struct flock64): New type.
62529         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
62530
62531         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
62532         * bits/dirent.h: ... here.
62533
62534         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
62535         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
62536
62537 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
62538
62539         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
62540         Change from 2.6.0 to 2.6.16.
62541         * sysdeps/unix/sysv/linux/configure: Regenerated.
62542         * sysdeps/unix/sysv/linux/kernel-features.h
62543         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
62544         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
62545         version.
62546         (__ASSUME_UTIMES): Likewise.
62547         (__ASSUME_CLONE_STOPPED): Remove.
62548         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
62549         architectures, not kernel version.
62550         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
62551         (__ASSUME_NO_CLONE_DETACHED): Likewise.
62552         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
62553         (__ASSUME_WAITID_SYSCALL): Likewise.
62554         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
62555         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
62556         * README: State 2.6.16 as minimum Linux kernel version.  Do not
62557         refer to older versions.
62558
62559 2012-08-06  Roland McGrath  <roland@hack.frob.com>
62560
62561         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
62562         Define alphasort64 as an alias.
62563         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
62564         Define versionsort64 as an alias.
62565         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
62566         Define scandir64 as an alias.
62567         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
62568         Define scandirat64 as an alias.
62569         * dirent/alphasort64.c (alphasort64):
62570         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
62571         * dirent/versionsort64.c: Likewise.
62572         * dirent/scandir64.c: Likewise.
62573         * dirent/scandirat64.c: Likewise.
62574         * sysdeps/wordsize-64/alphasort.c: File removed.
62575         * sysdeps/wordsize-64/alphasort64.c: File removed.
62576         * sysdeps/wordsize-64/scandir.c: File removed.
62577         * sysdeps/wordsize-64/scandir64.c: File removed.
62578         * sysdeps/wordsize-64/scandirat.c: File removed.
62579         * sysdeps/wordsize-64/scandirat64.c: File removed.
62580         * sysdeps/wordsize-64/versionsort.c: File removed.
62581         * sysdeps/wordsize-64/versionsort64.c: File removed.
62582         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
62583         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
62584         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
62585         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
62586         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
62587         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
62588         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
62589         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
62590
62591         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
62592         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
62593         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
62594         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62595         [defined __arch64__ || defined __sparcv9]
62596         (__INO_T_MATCHES_INO64_T): New macro.
62597         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
62598         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
62599         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
62600         * sysdeps/unix/sysv/linux/bits/dirent.h
62601         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
62602         (_DIRENT_MATCHES_DIRENT64): New macro.
62603
62604         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
62605         Define lockf64 as an alias.
62606         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
62607         Define fseeko64 as an alias.
62608         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
62609         Define ftello64 as an alias.
62610         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
62611         Define _IO_fgetpos64 and fgetpos64 as aliases.
62612         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
62613         Define _IO_fsetpos64 and fsetpos64 as aliases.
62614         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
62615         Conditionalize body on this.
62616         * libio/fseeko64.c: Likewise.
62617         * libio/ftello64.c: Likewise.
62618         * libio/iofgetpos64.c: Likewise.
62619         * libio/iofsetpos64.c: Likewise.
62620         * sysdeps/wordsize-64/lockf.c: File removed.
62621         * sysdeps/wordsize-64/lockf64.c: File removed.
62622         * sysdeps/wordsize-64/fseeko.c: File removed.
62623         * sysdeps/wordsize-64/fseeko64.c: File removed.
62624         * sysdeps/wordsize-64/ftello.c: File removed.
62625         * sysdeps/wordsize-64/ftello64.c: File removed.
62626         * sysdeps/wordsize-64/iofgetpos.c: File removed.
62627         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
62628         * sysdeps/wordsize-64/iofsetpos.c: File removed.
62629         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
62630         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
62631         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
62632         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
62633         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
62634         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
62635         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
62636         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
62637         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
62638         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
62639         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
62640
62641         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
62642         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
62643         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
62644         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62645         [defined __arch64__ || defined __sparcv9]
62646         (__OFF_T_MATCHES_OFF64_T): New macro.
62647         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
62648         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
62649         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62650         (__OFF_T_MATCHES_OFF64_T): New macro.
62651
62652 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
62653
62654         * stdlib/secure-getenv.c (__secure_getenv): Replace
62655         GLIBC_2_16 with GLIBC_2_17.
62656
62657 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
62658
62659         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
62660         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62661
62662 2012-08-03  David S. Miller  <davem@davemloft.net>
62663
62664         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62665
62666 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
62667
62668         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
62669         Remove.
62670         (__ASSUME_CORRECT_SI_PID): Likewise.
62671         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
62672         (__ASSUME_TMPFS_NAME): Likewise.
62673         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
62674         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
62675         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
62676         (HAVE_AUX_SECURE): Make definition unconditional.
62677         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
62678         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
62679
62680 2012-08-03  Roland McGrath  <roland@hack.frob.com>
62681
62682         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
62683         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
62684         * sysdeps/mach/hurd/eloop-threshold.h: New file.
62685         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
62686         __eloop_threshold instead of SYMLOOP_MAX.
62687
62688         * sysdeps/generic/eloop-threshold.h: New file.
62689         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
62690         of MAXSYMLINKS.
62691         * elf/chroot_canon.c (chroot_canon): Likewise.
62692
62693 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
62694
62695         [BZ #13717]
62696         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
62697         Change to 2.6.0 everywhere.
62698         * sysdeps/unix/sysv/linux/configure: Regenerated.
62699         * sysdeps/unix/sysv/linux/kernel-features.h
62700         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
62701         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
62702         kernel versions.
62703         (__ASSUME_POSIX_TIMERS): Define unconditionally.
62704         (__ASSUME_FUTEX_REQUEUE): Remove.
62705         (__ASSUME_STATFS64): Define unconditionally.
62706         (__ASSUME_AT_SECURE): Likewise.
62707         (__ASSUME_CORRECT_SI_PID): Likewise.
62708         (__ASSUME_TGKILL): Define without depending on kernel version for
62709         i386.
62710         (__ASSUME_UTIMES): Likewise.
62711         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
62712         kernel version.
62713         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
62714         (__ASSUME_TMPFS_NAME): Likewise.
62715         * README: Update reference to Linux kernel versions.
62716
62717 2012-08-02  Marek Polacek  <polacek@redhat.com>
62718
62719         [BZ# 14150]
62720         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
62721         libc_cv_asm_type_prefix with %.
62722         * configure: Regenerated.
62723         * include/libc-symbols.h: Remove comment about
62724         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
62725         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
62726         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
62727         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
62728         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
62729         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
62730         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
62731         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
62732         * elf/tst-unique2mod1.c: Likewise.
62733         * elf/tst-unique1mod2.c: Likewise.
62734         * elf/tst-unique1mod1.c: Likewise.
62735         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
62736         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
62737         Replace ASM_TYPE_DIRECTIVE with .type.
62738         * sysdeps/s390/s390-64/sysdep.h: Likewise.
62739         * sysdeps/i386/sysdep.h: Likewise.
62740         * sysdeps/x86_64/sysdep.h: Likewise.
62741         * sysdeps/sh/sysdep.h: Likewise.
62742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
62743         Do not define ASM_TYPE_DIRECTIVE.
62744         * sysdeps/powerpc/sysdep.h: Likewise.
62745         * sysdeps/powerpc/powerpc32/sysdep.h:
62746         Replace ASM_TYPE_DIRECTIVE with .type.
62747         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
62748         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
62749         * sysdeps/i386/fpu/e_powf.S: Likewise.
62750         * sysdeps/i386/fpu/e_expl.S: Likewise.
62751         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
62752         * sysdeps/i386/fpu/e_acosh.S: Likewise.
62753         * sysdeps/i386/fpu/e_pow.S: Likewise.
62754         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
62755         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
62756         * sysdeps/i386/fpu/s_expm1.S: Likewise.
62757         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
62758         * sysdeps/i386/fpu/e_log2.S: Likewise.
62759         * sysdeps/i386/fpu/e_log2l.S: Likewise.
62760         * sysdeps/i386/fpu/e_scalb.S: Likewise.
62761         * sysdeps/i386/fpu/e_powl.S: Likewise.
62762         * sysdeps/i386/fpu/e_log10f.S: Likewise.
62763         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
62764         * sysdeps/i386/fpu/e_logl.S: Likewise.
62765         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
62766         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
62767         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
62768         * sysdeps/i386/fpu/e_log2f.S: Likewise.
62769         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
62770         * sysdeps/i386/fpu/e_log.S: Likewise.
62771         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
62772         * sysdeps/i386/fpu/e_logf.S: Likewise.
62773         * sysdeps/i386/fpu/e_log10l.S: Likewise.
62774         * sysdeps/i386/fpu/e_atanh.S: Likewise.
62775         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
62776         * sysdeps/i386/fpu/e_log10.S: Likewise.
62777         * sysdeps/i386/fpu/s_frexp.S: Likewise.
62778         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
62779         * sysdeps/i386/fpu/s_asinh.S: Likewise.
62780         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
62781         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
62782         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
62783         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
62784         * sysdeps/i386/i686/strtok.S: Likewise.
62785         * sysdeps/i386/i386-mcount.S: Likewise.
62786         * sysdeps/i386/strtok.S: Likewise.
62787         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
62788         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
62789         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
62790         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
62791         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
62792         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
62793         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
62794         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
62795         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
62796         * sysdeps/x86_64/_mcount.S: Likewise.
62797         * sysdeps/x86_64/strtok.S: Likewise.
62798         * sysdeps/sh/_mcount.S: Likewise.
62799
62800 2012-08-01  Roland McGrath  <roland@hack.frob.com>
62801
62802         * libio/iofopen.c: Include <fcntl.h>.
62803         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
62804         (_IO_fopen64, fopen64): Define as aliases.
62805         * libio/iofopen64.c: Include <fcntl.h>.
62806         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
62807         Conditionalize body on this.
62808         * sysdeps/wordsize-64/iofopen.c: File removed.
62809         * sysdeps/wordsize-64/iofopen64.c: File removed.
62810
62811 2012-08-01  Marek Polacek  <polacek@redhat.com>
62812
62813         * libc/Makeconfig: Use elf in place of binfmt-subdir.
62814         Use dlfcn directly instead of a variable.
62815         (binfmt-subdir): Do not define.
62816         (dlfcn): Likewise.
62817
62818 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
62819
62820         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
62821         Remove all definitions.
62822         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
62823         <kernel-features.h>.
62824         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
62825         (miss_F_GETOWN_EX): Remove all definitions.
62826         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
62827         macro definition.
62828         [!__ASSUME_FCNTL64]: Remove conditional code.
62829         [__ASSUME_FCNTL64]: Make code unconditional.
62830         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
62831         <kernel-features.h>.
62832         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
62833         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
62834         (lockf64) [__NR_fcntl64]: Make code unconditional.
62835         (lockf64) [__ASSUME_FCNTL64]: Likewise.
62836
62837         * sysdeps/unix/sysv/linux/kernel-features.h
62838         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
62839         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
62840         Make code unconditional.
62841         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
62842         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
62843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
62844         [__NR_vfork]: Make code unconditional.
62845         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
62846         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
62847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
62848         [__NR_vfork]: Make code unconditional.
62849         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
62850         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
62851
62852 2012-08-01  Roland McGrath  <roland@hack.frob.com>
62853
62854         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
62855         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
62856
62857         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
62858         Define mkstemp64 as an alias.
62859         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
62860         Define mkstemps64 as an alias.
62861         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
62862         Define mkostemp64 as an alias.
62863         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
62864         Define mkostemps64 as an alias.
62865         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
62866         Conditionalize body on this.
62867         * misc/mkostemp64.c: Likewise.
62868         * misc/mkostemps64.c: Likewise.
62869         * misc/mkstemps64.c: Likewise.
62870         * sysdeps/wordsize-64/mkstemp64.c: File removed.
62871         * sysdeps/wordsize-64/mkostemp64.c: File removed.
62872         * sysdeps/wordsize-64/mkostemp.c: File removed.
62873         * sysdeps/wordsize-64/mkstemp.c: File removed.
62874         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
62875         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
62876         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
62877         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
62878
62879         [BZ #14138]
62880         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
62881         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
62882         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
62883         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
62884
62885         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
62886         compat_symbol macros from <shlib-compat.h> rather than the underlying
62887         default_symbol_version and symbol_version macros, so that DEFAULT
62888         lines in shlib-versions are respected.
62889         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
62890
62891 2012-08-01  Florian Weimer  <fweimer@redhat.com>
62892
62893         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
62894         Declare with warn_unused_result.
62895         (setgid, setregid, setegid, setresgid): Likewise.
62896         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
62897         Likewise.
62898         * WUR-REPORT: Remove set*id functions.
62899
62900 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
62901
62902         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
62903
62904 2012-07-31  Roland McGrath  <roland@hack.frob.com>
62905
62906         [BZ #10191]
62907         * include/sys/socket.h (__libc_accept, __libc_accept4):
62908         Add attribute_hidden.
62909         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
62910
62911         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
62912         use of PTR_MANGLE.
62913         * inet/getnetgrent_r.c (setup): Likewise.
62914
62915         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
62916
62917 2012-07-31  David S. Miller  <davem@davemloft.net>
62918
62919         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62920
62921 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
62922
62923         [BZ #13629]
62924         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
62925         value between 1.0 and 2.0 and smaller part has absolute value less
62926         than 1.0.
62927         * math/s_clog10.c (__clog10): Likewise.
62928         * math/s_clog10f.c (__clog10f): Likewise.
62929         * math/s_clog10l.c (__clog10l): Likewise.
62930         * math/s_clogf.c (__clogf): Likewise.
62931         * math/s_clogl.c (__clogl): Likewise.
62932         * math/libm-test.inc (clog_test): Add more tests.
62933         (clog10_test): Likewise.
62934         * sysdeps/i386/fpu/libm-test-ulps: Update.
62935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62936
62937 2012-07-31  Florian Weimer  <fweimer@redhat.com>
62938
62939         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
62940         Exit with zero in case no suitable GID is found, and write a
62941         message to standard error.
62942
62943 2012-07-30  Roland McGrath  <roland@hack.frob.com>
62944
62945         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
62946         rather than to 1.
62947         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
62948         (MAXPATHLEN): Removed.
62949         (NOGROUP, NODEV): New macros.
62950         (setbit, clrbit, isset, isclr): New macros.
62951         (howmany, roundup, powerof2): New macros.
62952         (DEV_BSIZE): New macro.
62953
62954         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
62955         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
62956
62957         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
62958         definition on [!__NO_LONG_DOUBLE_MATH].
62959
62960         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
62961         PTR_MANGLE and PTR_DEMANGLE.
62962
62963         * socket/accept4.c (accept4): Rename to __libc_accept4.
62964         Define accept4 as a weak alias.
62965
62966         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
62967         on [_DIRENT_HAVE_D_TYPE].
62968         * io/ftw.c (ftw_dir): Likewise.
62969
62970         * io/xmknod.c (__xmknod): Don't check PATH for being null.
62971
62972         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
62973
62974         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
62975         Use the BSD numbers rather than the arbitrary ones we had.
62976         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
62977         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
62978         (SIGXCPU, SIGXFSZ): New macros.
62979         (_NSIG): Now 32.
62980
62981         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
62982         initializer on [_LIBC_REENTRANT].
62983
62984         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
62985         definitions inside [_POSIX_MAPPED_FILES].
62986
62987         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
62988
62989         * dirent/opendir.c: Include <fcntl.h>.
62990
62991         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
62992         (__libc_getspecific): Likewise.
62993         (__libc_key_create): Likewise.
62994
62995         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
62996         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
62997         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
62998         (tmpfile64): Define as alias.
62999         * sysdeps/wordsize-64/tmpfile.c: File removed.
63000         * sysdeps/wordsize-64/tmpfile64.c: File removed.
63001         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
63002         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
63003
63004         * stdio-common/vfscanf.c: Include <stdbool.h>.
63005         * nss/makedb.c: Likewise.
63006         * stdio-common/_i18n_number.h: Likewise.
63007         * argp/argp-help.c: Likewise.
63008         * posix/wordexp.c: Likewise.
63009         * sysdeps/posix/spawni.c: Likewise.
63010         * nss/nss_files/files-initgroups.c: Likewise.
63011         * stdio-common/reg-modifier.c: Include <stdlib.h>.
63012         * nss/nss_files/files-initgroups.c: Likewise.
63013         * nss/nss_db/db-netgrp.c: Likewise.
63014         * nss/nss_db/db-initgroups.c: Likewise.
63015         * io/fchmodat.c: Include <sys/stat.h>.
63016
63017         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
63018         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
63019
63020         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
63021         [HAVE_MMAP].
63022
63023         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
63024         Add multiple inclusion protection.
63025
63026 2012-07-27  David S. Miller  <davem@davemloft.net>
63027
63028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63029
63030 2012-07-27  Gary Benson  <gbenson@redhat.com>
63031
63032         [BZ #14298]
63033         * elf/rtld.c: Include <stap-probe.h>.
63034         (dl_main): Added static probes "init_start" and "init_complete".
63035         * elf/dl-load.c: Include <stap-probe.h>.
63036         (lose): Take new parameter "nsid".
63037         Added static probe "map_failed".
63038         (_dl_map_object_from_fd): Pass namespace id to lose.
63039         Added static probe "map_start".
63040         (open_verify): Pass namespace id to lose.
63041         * elf/dl-open.c: Include <stap-probe.h>.
63042         (dl_open_worker) Added static probes "map_complete", "reloc_start"
63043         and "reloc_complete".
63044         * elf/dl-close.c: Include <stap-probe.h>.
63045         (_dl_close_worker): Added static probes "unmap_start" and
63046         "unmap_complete".
63047         * elf/rtld-debugger-interface.txt: New file documenting the above.
63048
63049 2012-07-26  Roland McGrath  <roland@hack.frob.com>
63050
63051         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
63052         rather than a string variable.
63053         * sunrpc/rpc_main.c (h_output): Likewise.
63054         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
63055
63056 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
63057
63058         * inet/check_native.c: New file.
63059
63060 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
63061
63062         [BZ #13629]
63063         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
63064         if larger part has absolute value 1.0.
63065         * math/s_clog10.c (__clog10): Likewise.
63066         * math/s_clog10f.c (__clog10f): Likewise.
63067         * math/s_clog10l.c (__clog10l): Likewise.
63068         * math/s_clogf.c (__clogf): Likewise.
63069         * math/s_clogl.c (__clogl): Likewise.
63070         * math/libm-test.inc (clog_test): Add more tests.
63071         (clog10_test): Likewise.
63072         * sysdeps/i386/fpu/libm-test-ulps: Update.
63073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63074
63075         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
63076         (pltexit): Likewise.
63077         (La_regs): Likewise.
63078         (La_retval): Likewise.
63079         (int_retval): Likewise.
63080         Update #error for removed macros to refer only to definitions in
63081         tst-audit.h.
63082         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
63083         macro.
63084         (pltexit): Likewise.
63085         (La_regs): Likewise.
63086         (La_retval): Likewise.
63087         (int_retval): Likewise.
63088         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
63089         macro.
63090         (pltexit): Likewise.
63091         (La_regs): Likewise.
63092         (La_retval): Likewise.
63093         (int_retval): Likewise.
63094         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
63095         macro.
63096         (pltexit): Likewise.
63097         (La_regs): Likewise.
63098         (La_retval): Likewise.
63099         (int_retval): Likewise.
63100         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
63101         macro.
63102         (pltexit): Likewise.
63103         (La_regs): Likewise.
63104         (La_retval): Likewise.
63105         (int_retval): Likewise.
63106         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
63107         macro.
63108         (pltexit): Likewise.
63109         (La_regs): Likewise.
63110         (La_retval): Likewise.
63111         (int_retval): Likewise.
63112         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
63113         macro.
63114         (pltexit): Likewise.
63115         (La_regs): Likewise.
63116         (La_retval): Likewise.
63117         (int_retval): Likewise.
63118         * sysdeps/generic/tst-audit.h: Update comment to refer only to
63119         macro definitions in tst-audit.h.
63120         * sysdeps/i386/tst-audit.h: New file.
63121         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
63122         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
63123         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
63124         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
63125         * sysdeps/sh/tst-audit.h: Likewise.
63126         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
63127         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
63128         * sysdeps/x86_64/tst-audit.h: Likewise.
63129
63130 2012-07-26  Andreas Jaeger  <aj@suse.de>
63131
63132         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
63133         ptrace.
63134
63135         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
63136         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
63137         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
63138         PTRACE_O_MASK.
63139         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
63140         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
63141         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
63142
63143         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
63144         value.
63145
63146         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
63147         _sigsys.
63148         (si_call_addr, si_syscall, si_arch): Define new macro.
63149         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
63150         _sigsys.
63151         (si_call_addr, si_syscall, si_arch): Define new marcro.
63152         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
63153         _sigsys.
63154         (si_call_addr, si_syscall, si_arch): Define new macro.
63155         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
63156         _sigsys.
63157         (si_call_addr, si_syscall, si_arch): Define new macro.
63158
63159 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
63160
63161         [BZ #13717]
63162         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
63163         Change to 2.4.21 where previously 2.4.1.
63164         * sysdeps/unix/sysv/linux/configure: Regenerated.
63165         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
63166         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
63167         Linux kernel version.
63168         (__ASSUME_STD_AUXV): Remove.
63169         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
63170         kernel version.
63171         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
63172         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
63173         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
63174         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
63175         (__ASSUME_NETLINK_SUPPORT): Likewise.
63176         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
63177         (__no_netlink_support): Remove conditional definition.
63178         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
63179         Remove.
63180         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
63181         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
63182         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
63183         (if_nameindex_ioctl): Remove.
63184         (if_nameindex_netlink): Do not handle __no_netlink_support.
63185         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
63186         code.
63187         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
63188         Remove conditional code.
63189         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
63190         code.
63191         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
63192         unconditional.
63193         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
63194         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
63195         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
63196         Remove.
63197         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
63198         [!__ASSUME_STD_AUXV]: Remove conditional code.
63199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
63200         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
63201         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
63202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
63203         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
63204         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
63205         code.
63206         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
63207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
63208         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
63209         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
63210         conditional code.
63211         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
63212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
63213         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
63214         code.
63215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
63216         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
63217         conditional code.
63218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
63219         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
63220         code unconditional.
63221         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
63222         conditional code.
63223         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
63224         unconditional.
63225         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
63226         conditional code.
63227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
63228         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
63229         unconditional.
63230         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
63231         conditional code.
63232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
63233         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
63234         code unconditional.
63235         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
63236         conditional code.
63237         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
63238         unconditional.
63239         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
63240         conditional code.
63241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
63242         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
63243         code unconditional.
63244         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
63245         conditional code.
63246         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
63247         unconditional.
63248         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
63249         conditional code.
63250
63251 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
63252
63253         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
63254         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
63255         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
63256         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
63257         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
63258         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
63259         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
63260         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
63261         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
63262         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
63263         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
63264         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
63265         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
63266         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
63267         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
63268         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
63269         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
63270         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
63271         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
63272         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
63273         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
63274         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
63275         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63276
63277 2012-07-25  Florian Weimer  <fweimer@redhat.com>
63278
63279         * Versions.def: Add GLIBC_2.17.
63280         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
63281         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
63282         Introduce __libc_secure_getenv.
63283         * stdlib/Versions (2.17): Add secure_getenv
63284         (GLIBC_PRIVATE): Add __libc_secure_getenv.
63285         * stdlib/secure-getenv.c: Rename __secure_getenv to
63286         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
63287         symbol __secure_getenv for GLIBC_2.0.
63288         * stdlib/tst-secure-getenv.c: New.
63289         * stdlib/Makefile (tests): Add testcase.
63290         * manual/startup.texi (Environment Access): Document
63291         secure_getenv.
63292         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
63293         __libc_secure_getenv.
63294         * inet/ruserpass.c (ruserpass): Likewise.
63295         * malloc/mtrace.c (mtrace): Likewise.
63296         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
63297         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
63298         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
63299         * sysdeps/posix/tempname.c: Likewise.  Evaluate
63300         HAVE_SECURE_GETENV.
63301         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
63302         __secure_getenv to __libc_secure_getenv.
63303         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
63304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
63305         Likewise.
63306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
63307         Likewise.
63308         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
63309         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
63310         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
63311         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
63312         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
63313         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
63314         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
63315
63316 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
63317
63318         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
63319         (struct La_i86_retval): Likewise.
63320         (struct La_x86_64_regs): Likewise.
63321         (struct La_x86_64_retval): Likewise.
63322         (struct La_x32_regs): Likewise.
63323         (struct La_x32_retval): Likewise.
63324         (struct La_ppc32_regs): Likewise.
63325         (struct La_ppc32_retval): Likewise.
63326         (struct La_ppc64_regs): Likewise.
63327         (struct La_ppc64_retval): Likewise.
63328         (struct La_sh_regs): Likewise.
63329         (struct La_sh_retval): Likewise.
63330         (struct La_s390_32_regs): Likewise.
63331         (struct La_s390_32_retval): Likewise.
63332         (struct La_s390_64_regs): Likewise.
63333         (struct La_s390_64_retval): Likewise.
63334         (struct La_sparc32_regs): Likewise.
63335         (struct La_sparc32_retval): Likewise.
63336         (struct La_sparc64_regs): Likewise.
63337         (struct La_sparc64_retval): Likewise.
63338         (struct audit_ifaces): Remove architecture-specific pltenter and
63339         pltexit members.
63340         * sysdeps/i386/ldsodefs.h: New file.
63341         * sysdeps/powerpc/ldsodefs.h: Likewise.
63342         * sysdeps/s390/ldsodefs.h: Likewise.
63343         * sysdeps/sh/ldsodefs.h: Likewise.
63344         * sysdeps/sparc/ldsodefs.h: Likewise.
63345         * sysdeps/x86_64/ldsodefs.h: Likewise.
63346
63347 2012-07-25  Marek Polacek  <polacek@redhat.com>
63348
63349         [BZ #6808]
63350         * math/libm-test.inc (yn_test): Add another test.
63351         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
63352         to ERANGE when the result is +-Inf.
63353         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
63354         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
63355         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
63356         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
63357
63358 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
63359
63360         * conform/data/time.h-data (NULL): Use macro-constant.  Require
63361         equal to 0.
63362         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
63363         clock_t.
63364         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
63365
63366 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
63367
63368         * configure.in <sysdeps resolving>: Correct printing
63369         Implies_before.
63370         * configure: Regenerate.
63371
63372 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
63373
63374         * math/w_ilogb.c: Include <limits.h>.
63375         * math/w_ilogbl.c: Likewise.
63376
63377 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
63378
63379         * manual/lang.texi (__va_copy): Document primarily as ISO C99
63380         va_copy.  Document allowing for unavailable va_copy only as
63381         pre-C99 compatibility.
63382         * manual/string.texi (Copying and Concatenation): Use va_copy
63383         instead of __va_copy in concat example.
63384
63385 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
63386
63387         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
63388         (__sendto): Use create_address_port.  Initialize APORT and deallocate
63389         it if not null.
63390
63391         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
63392         with O_NOLINK passed to __file_name_lookup.
63393
63394         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
63395         with O_NOLINK passed to __file_name_lookup.
63396
63397         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
63398         negative N or less than NGIDS.
63399
63400         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
63401         type to string_t.  Set ERANGE as errno and return it if NAME is not big
63402         enough.  Use memcpy instead of strncpy.
63403
63404 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
63405
63406         * elf/Makefile (check-data): Remove.
63407         (localplt.data): New vpath directive.
63408         ($(objpfx)check-localplt.out): Use localplt.data from vpath
63409         instead of $(check-data).
63410         * scripts/data/localplt-generic.data: Move to ...
63411         * sysdeps/generic/localplt.data: ... here.
63412         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
63413         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
63414         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
63415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
63416         ... here.
63417         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
63418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
63419         ... here.
63420         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
63421         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
63422         ... here.
63423         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
63424         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
63425         ... here.
63426         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
63427         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
63428         ... here.
63429         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
63430         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
63431         ... here.
63432
63433 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63434
63435         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
63436         PPC32 and PPC64 files.
63437         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
63438         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
63439
63440 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63441
63442         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
63443         __makecontext_ret to ...
63444         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
63445         ... here and call exit if uc_link is NULL.  New file.
63446         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
63447         __makecontext_ret.S.
63448         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
63449         __makecontext_ret to ...
63450         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
63451         ... here and call exit if uc_link is NULL.  New file.
63452         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
63453         __makecontext_ret.S.
63454
63455 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63456
63457         * elf/elf.h (R_390_IRELATIVE): New definition.
63458         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
63459         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
63460         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
63461         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
63462         (elf_machine_lazy_rel): Likewise.
63463         * sysdeps/s390/dl-irel.h: New file.
63464         * sysdeps/s390/s390-64/memcpy.S: New asm code.
63465         * sysdeps/s390/s390-64/memset.S: New asm code.
63466         * sysdeps/s390/s390-64/memcmp.S: New asm code.
63467         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
63468         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
63469         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
63470         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
63471         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
63472         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
63473         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
63474         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
63475         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
63476         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
63477         * sysdeps/s390/s390-32/memcpy.S: New asm code.
63478         * sysdeps/s390/s390-32/memset.S: New asm code.
63479         * sysdeps/s390/s390-32/memcmp.S: New asm code.
63480
63481 2012-07-17  Marek Polacek  <polacek@redhat.com>
63482
63483         [BZ #14349]
63484         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
63485         * sysdeps/s390/s390-64/configure.in: Likewise.
63486         * sysdeps/sparc/configure.in: Likewise.
63487         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
63488         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
63489         * sysdeps/i386/configure.in: Likewise.
63490         * sysdeps/x86_64/configure.in: Likewise.
63491         * sysdeps/sh/configure.in: Likewise.
63492         * sysdeps/s390/s390-32/configure: Regenerated.
63493         * sysdeps/s390/s390-64/configure: Likewise.
63494         * sysdeps/x86_64/configure: Likewise.
63495         * sysdeps/sh/configure: Likewise.
63496         * sysdeps/powerpc/powerpc64/configure: Likewise.
63497         * sysdeps/powerpc/powerpc32/configure: Likewise.
63498         * sysdeps/sparc/configure: Likwise.
63499         * sysdeps/i386/configure: Likewise.
63500
63501         * elf/dl-open.c: Comment fixes.
63502
63503 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
63504
63505         * Makefile [CXX] (check-data): Remove.
63506         [CXX] (c++-types.data): New vpath directive.
63507         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
63508         vpath.  Do not allow for C++ type data being missing.
63509         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
63510         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
63511         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
63512         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
63513         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
63514         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
63515         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
63516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
63517         ... here.
63518         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
63519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
63520         ... here.
63521         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
63522         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
63523         ... here.
63524         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
63525         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
63526         ... here.
63527         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
63528         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
63529         ... here.
63530         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
63531         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
63532         ... here.
63533         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
63534         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
63535         ... here.
63536         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
63537         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
63538
63539         * elf/tls-macros.h (TLS_LE): Move architecture-specific
63540         definitions to architecture-specific files.
63541         (TLS_IE): Likewise.
63542         (TLS_LD): Likewise.
63543         (TLS_GD): Likewise.
63544         * sysdeps/i386/tls-macros.h: New file.
63545         * sysdeps/powerpc/tls-macros.h: Likewise.
63546         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
63547         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
63548         * sysdeps/sh/tls-macros.h: Likewise.
63549         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
63550         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
63551         * sysdeps/x86_64/tls-macros.h: Likewise.
63552
63553 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
63554
63555         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
63556         zero value for regular exit case.
63557
63558         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
63559         (__start_context): Preserve zero value for regular exit case.
63560
63561 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
63562             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63563
63564         * manual/setjmp.texi (setcontext): Clarify normal process
63565         termination when uc_link is the null pointer.
63566         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
63567         exit call.
63568
63569 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
63570
63571         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
63572         preprocessor.  Test for each exception mask separately.
63573
63574 2012-07-16  Andreas Jaeger  <aj@suse.de>
63575
63576         * po/ru.po: Update from translation team.
63577
63578 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
63579
63580         * conform/data/string.h-data (NULL): Use macro-constant.  Require
63581         equal to 0.
63582         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
63583         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
63584         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
63585         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
63586         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63587
63588 2012-07-13  Andreas Jaeger  <aj@suse.de>
63589
63590         * po/fr.po: Update from translation team.
63591
63592 2012-07-12  Marek Polacek  <polacek@redhat.com>
63593
63594         [BZ #14173]
63595         * math/libm-test.inc (yn_test): Add test for BZ #14173.
63596         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
63597         loop condition.
63598
63599 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
63600
63601         [BZ #13717]
63602         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
63603         Change to 2.4.1 where previously 2.4.0.
63604         * sysdeps/unix/sysv/linux/configure: Regenerated.
63605         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
63606         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
63607         version.
63608         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
63609         (__ASSUME_AT_CLKTCK): Remove.
63610         (__ASSUME_AT_PAGESIZE): Likewise.
63611         (__ASSUME_AT_XID): Likewise.
63612         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
63613         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
63614         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
63615         unconditionally.
63616         (HAVE_AUX_PAGESIZE): Likewise.
63617         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
63618         [__ASSUME_AT_CLKTCK]: Make code unconditional.
63619         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
63620
63621 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
63622
63623         [BZ #14307]
63624         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
63625         the temporary buffer used to invoke __gethostbyname2_r,
63626         __gethostbyaddr_r and gethostbyname4_r to make room for struct
63627         host_data / struct gaih_addrtuple.
63628         * resolv/nss_dns/dns-host.c (global scope): Move definition of
63629         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
63630         header file nss/nsswitch.h.
63631         * nss/nsswitch.h (global scope): Add definition of implementation
63632         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
63633         resolv/nss_dns/dns-host.c).
63634
63635 2012-07-11  Andreas Jaeger  <aj@suse.de>
63636
63637         * po/fr.po: Update from translation team.
63638
63639         * po/sv.po: Update from translation team
63640         * po/fr.po: Another update from translation team.
63641
63642 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63643
63644         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
63645         for subnormals or multiply small sinh result by itself.
63646         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
63647         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63648
63649 2012-07-11  David S. Miller  <davem@davemloft.net>
63650
63651         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63652
63653 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
63654
63655         [BZ #14347]
63656         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
63657         (INTERNAL_MARK): Shift it here.
63658
63659 2012-07-10  Marek Polacek  <polacek@redhat.com>
63660
63661         [BZ #14151]
63662         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
63663         libc_cv_asm_global_directive with .globl.
63664         * configure: Regenerated.
63665         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
63666         with .globl.
63667         * sysdeps/i386/configure: Regenerated.
63668         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
63669         with .globl.
63670         * sysdeps/x86_64/configure: Regenerated.
63671         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
63672         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
63673         * elf/tst-unique2mod2.c: Likewise.
63674         * elf/tst-unique2mod1.c: Likewise.
63675         * elf/tst-unique1mod2.c: Likewise.
63676         * elf/tst-unique1mod1.c: Likewise.
63677         * sysdeps/s390/s390-32/sysdep.h: Likewise.
63678         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
63679         * sysdeps/s390/s390-64/sysdep.h: Likewise.
63680         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
63681         * sysdeps/mach/sysdep.h: Likewise.
63682         * sysdeps/i386/sysdep.h: Likewise.
63683         * sysdeps/i386/i386-mcount.S: Likewise.
63684         * sysdeps/x86_64/_mcount.S: Likewise.
63685         * sysdeps/x86_64/sysdep.h: Likewise.
63686         * sysdeps/sh/_mcount.S: Likewise.
63687         * sysdeps/sh/sysdep.h: Likewise.
63688         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
63689         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
63690         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
63691         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
63692         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
63693         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
63694         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
63695         * locale/localeinfo.h: Likewise.
63696         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
63697         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
63698
63699 2012-07-09  Roland McGrath  <roland@hack.frob.com>
63700
63701         [BZ #14336]
63702         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
63703         system".
63704         * manual/message.texi (The Uniforum approach): Likewise.
63705         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
63706         (glibc iconv Implementation): Likewise.
63707
63708 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
63709
63710         [BZ #14337]
63711         * math/s_clog.c (__clog): Avoid scaling a value down where that
63712         could result in underflow.
63713         * math/s_clog10.c (__clog10): Likewise.
63714         * math/s_clog10f.c (__clog10f): Likewise.
63715         * math/s_clog10l.c (__clog10l): Likewise.
63716         * math/s_clogf.c (__clogf): Likewise.
63717         * math/s_clogl.c (__clogl): Likewise.
63718         * math/libm-test.inc (clog_test): Add more tests.
63719         (clog10_test): Likewise.
63720         * sysdeps/i386/fpu/libm-test-ulps: Update.
63721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63722
63723 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
63724
63725         [BZ #14283]
63726         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
63727         by 7 not 8 to examine high bit of fractional part.
63728
63729         [BZ #14042]
63730         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
63731         for call to __mcount_internal.
63732         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
63733         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
63734         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
63735
63736 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
63737
63738         [BZ #14154]
63739         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
63740         approximation for values within 0x1p-13f of an odd multiple of
63741         pi/4.
63742         * math/libm-test.inc (tan_test): Do not allow spurious underflow
63743         exception.  Add more tests.
63744         * sysdeps/i386/fpu/libm-test-ulps: Update.
63745
63746         [BZ #6778]
63747         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
63748         inputs and return -1 for them.  Do not check for +Inf in case not
63749         reachable for +Inf.
63750         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
63751         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
63752         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
63753         and return -1 for them.  Do not check for +Inf in case not
63754         reachable for +Inf.
63755         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
63756         define.
63757         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
63758         and return -1 for them.  Do not check for +Inf in case not
63759         reachable for +Inf.
63760         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
63761         spurious underflow.
63762         * sysdeps/i386/fpu/libm-test-ulps: Update.
63763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63764
63765 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
63766
63767         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
63768
63769 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
63770
63771         [BZ #14157]
63772         [BZ #14331]
63773         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
63774         could result in spurious underflow.  Scale down values above
63775         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
63776         * math/s_csqrtf.c (__csqrtf): Likewise.
63777         * math/s_csqrtl.c (__csqrtl): Likewise.
63778         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
63779         spurious underflow.
63780         * sysdeps/i386/fpu/libm-test-ulps: Update.
63781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63782
63783 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
63784
63785         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
63786         xopen-msg.sed.
63787         * catgets/xopen-msg.awk: New file.
63788         * catgets/xopen-msg.sed: Removed.
63789
63790         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
63791         po2text.sed.
63792         * intl/po2test.awk: New file.
63793         * intl/po2test.sed: Removed.
63794
63795 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
63796
63797         [BZ #14328]
63798         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
63799         or multiply small sinh result by itself.
63800         * math/s_ctanf.c (__ctanf): Likewise.
63801         * math/s_ctanh.c (__ctanh): Likewise.
63802         * math/s_ctanhf.c (__ctanhf): Likewise.
63803         * math/s_ctanhl.c (__ctanhl): Likewise.
63804         * math/s_ctanl.c (__ctanl): Likewise.
63805         * math/libm-test.inc (ctan_test_tonearest): New function.
63806         (ctan_test_towardzero): Likewise.
63807         (ctan_test_downward): Likewise.
63808         (ctan_test_upward): Likewise.
63809         (ctanh_test_tonearest): Likewise.
63810         (ctanh_test_towardzero): Likewise.
63811         (ctanh_test_downward): Likewise.
63812         (ctanh_test_upward): Likewise.
63813         (main): Call these new functions.
63814         * sysdeps/i386/fpu/libm-test-ulps: Update.
63815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63816
63817 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
63818
63819         * .gitignore: Delete /ports entry.
63820
63821 2012-07-03  Andreas Jaeger  <aj@suse.de>
63822
63823         * po/bg.po: Update from translation team.
63824         * po/cs.po: Likewise.
63825         * po/de.po: Likewise.
63826         * po/hr.po: Likewise.
63827         * po/nl.pl: Likewise.
63828         * po/pl.po: Likewise.
63829         * po/vi.po: Likewise.
63830
63831 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
63832
63833         * Makeconfig [!+link] (+link-before-libc): New variable.
63834         [!+link] (+link-after-libc): Likewise.
63835         [!+link] (+link-tests): Likewise.
63836         [!+link] (+link): Define in terms of $(+link-before-libc) and
63837         $(+link-after-libc).
63838         [!+link-static] (+link-static-before-libc): New variable.
63839         [!+link-static] (+link-static-after-libc): Likewise.
63840         [!+link-static] (+link-static-tests): Likewise.
63841         [!+link-static] (+link-static): Define in terms of
63842         $(+link-static-before-libc) and $(+link-static-after-libc).
63843         [build-shared] (link-libc-before-gnulib): New variable.
63844         [build-shared] (link-libc-tests): Likewise.
63845         [build-shared] (link-libc): Define in terms of
63846         $(link-libc-before-gnulib).
63847         [!build-shared] (link-libc-tests): New variable.
63848         (link-libc-static-tests): New variable.
63849         [!gnulib] (gnulib-arch): New variable.
63850         [!gnulib] (gnulib-tests): Likewise.
63851         [!gnulib] (static-gnulib-arch): Likewise.
63852         [!gnulib] (static-gnulib-tests): Likewise.
63853         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
63854         Define with "=" instead of ":=".
63855         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
63856         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
63857         * Rules (binaries-all-notests): New variable.
63858         (binaries-all-tests): Likewise.
63859         (binaries-static-notests): Likewise.
63860         (binaries-static-tests): Likewise.
63861         (binaries-all): Define using $(binaries-all-notests) and
63862         $(binaries-all-tests).
63863         (binaries-static): Define using $(binaries-static-notests) and
63864         $(binaries-static-tests).
63865         (binaries-shared-tests): New variable.
63866         (binaries-shared-notests): Likewise.
63867         (binaries-shared): Remove variable.
63868         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
63869         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
63870         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
63871         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
63872         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
63873         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
63874         * elf/Makefile (sln-modules): New variable.
63875         (extra-objs): Add $(sln-modules:=.o).
63876         (ldconfig-modules): Add static-stubs.
63877         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
63878         * elf/static-stubs.c: New file.
63879
63880         [BZ #14283]
63881         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
63882         by 7 not 8 to examine high bit of fractional part.  Use volatile
63883         variables when splitting into final array of floats if
63884         __FLT_EVAL_METHOD__ != 0.
63885         * math/libm-test.inc (cos_test): Add another test.
63886         (sin_test): Likewise.
63887         * sysdeps/i386/fpu/libm-test-ulps: Update.
63888
63889         [BZ #14273]
63890         * math/libm-test.inc (cosh_test): Add more tests.
63891
63892         * version.h (RELEASE): Set to "development".
63893         (VERSION): Set to "2.16.90".
63894
63895 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
63896
63897         * NEWS: Update copyright. Remove last-updated date.
63898         Mention math library bug fixes and timezone data changes.
63899         * README: Mention GNU/Hurd, x32, and HPPA support status.
63900
63901 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
63902
63903         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
63904
63905 2012-06-27  Andreas Jaeger  <aj@suse.de>
63906
63907         * manual/contrib.texi (Contributors): Add Samuel Thibault.
63908
63909 2012-06-25  Andreas Jaeger  <aj@suse.de>
63910
63911         * sysdeps/s390/fpu/libm-test-ulps: Update.
63912
63913 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
63914             Thomas Schwinge  <thomas@codesourcery.com>
63915
63916         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
63917         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
63918         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
63919         fanotify_mark.
63920
63921 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
63922
63923         * sysdeps/mach/start.c: Remove file.
63924         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
63925         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
63926         * sysdeps/sh/init-first.c: Likewise.
63927
63928         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
63929         registers for frame unwinding purposes, add CFI directives.
63930         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
63931         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
63932         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
63933         Likewise.
63934
63935         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
63936         __fortify_fail returning.
63937         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
63938
63939         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
63940         sysdeps/sh/____longjmp_chk.S.
63941         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
63942         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
63943         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
63944         (gen-as-const-headers): Append sigaltstack-offsets.sym.
63945
63946         * sysdeps/sh/abort-instr.h: New file.
63947         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
63948         process in case exit returns.
63949
63950         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
63951         initialize the GOT register before use.
63952
63953         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
63954         calculation of ARGC > 4.
63955
63956         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
63957         meaningful names to some local labels.
63958
63959 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
63960             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
63961
63962         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
63963         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
63964         (__arch_compare_and_exchange_val_16_acq): Likewise.
63965         (__arch_compare_and_exchange_val_32_acq): Likewise.
63966         (atomic_exchange_and_add): Fix gUSA sequence.
63967         (atomic_add): Likewise.
63968         (atomic_add_negative): Likewise.
63969         (atomic_add_zero): Likewise.
63970         (atomic_bit_test_set): Likewise.
63971
63972 2012-06-22  Andreas Schwab  <schwab@redhat.com>
63973
63974         [BZ #13579]
63975         * include/link.h (struct link_map): Add l_free_initfini.
63976         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
63977         l_initfini.
63978         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
63979         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
63980         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
63981         set.
63982
63983 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
63984
63985         * configure.in: Use AC_LANG_SOURCE.
63986         * configure: Regenerate.
63987
63988 2012-06-22  Roland McGrath  <roland@hack.frob.com>
63989
63990         * configure.in (libc_cv_localstatedir): New substituted variable.
63991         * configure: Regenerated.
63992         * config.make.in (localstatedir): New variable, substituted from
63993         libc_cv_localstatedir.
63994         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
63995         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
63996         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
63997         * sysdeps/gnu/configure: Regenerated.
63998
63999 2012-06-21  Jeff Law  <law@redhat.com>
64000
64001         [BZ #14277]
64002         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
64003         free.  Simplify list management for _LIBC case.
64004
64005 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
64006
64007         [BZ #14273]
64008         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
64009         Clear sign bit of 64-bit integer value before comparing against
64010         overflow value.
64011
64012         * sysdeps/mach/configure: Regenerated.
64013
64014 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
64015
64016         [BZ #14278]
64017         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
64018
64019 2012-06-21  Jeff Law  <law@redhat.com>
64020
64021         [BZ #13882]
64022         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
64023         uint16_t for elements in the "seen" array to avoid char overflows.
64024         * elf/dl-fini.c (_dl_sort_fini): Likewise.
64025         * elf/dl-open.c (dl_open_worker): Likewise.
64026
64027 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
64028
64029         * scripts/list-sources.sh: Scan PORTS for translations.
64030         * po/libc.pot: Regenerated.
64031
64032 2012-06-21  Andreas Jaeger  <aj@suse.de>
64033
64034         [BZ #12194]
64035         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
64036         warning.
64037         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
64038         * bits/byteswap-16.h (__bswap_16): Likewise.
64039         * bits/byteswap.h (__bswap_constant_16): Likewise.
64040
64041 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
64042
64043         [BZ #14117]
64044         * sysdeps/i386/fpu_control.h: Removed.
64045         * sysdeps/x86_64/fpu_control.h: Moved to ...
64046         * sysdeps/x86/fpu_control.h: Here.
64047
64048         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
64049         (_FPU_SETCW): Likewise.
64050
64051 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
64052
64053         [BZ #14117]
64054         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
64055         * sysdeps/x86/fpu/bits/mathinline.h: This.
64056         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
64057
64058         [BZ #14050]
64059         [BZ #14117]
64060         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
64061         functions if __x86_64__ is defined.
64062
64063 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
64064
64065         * string/endian.h: Add !__ASSEMBLER__ condition for including
64066         conversion interfaces.
64067
64068 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
64069
64070         [BZ #14241]
64071         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
64072         of ABS(x) in calculating zero to negative powers other than odd
64073         integers.
64074         * math/libm-test.inc (pow_test): Add more tests.
64075
64076 2012-06-15  Andreas Jaeger  <aj@suse.de>
64077
64078         * manual/contrib.texi (Contributors): Update entry of Liubov
64079         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
64080         Machado Filho.
64081
64082 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
64083
64084         * string/string.h: Add __wur to GNU version of strerror_r.
64085
64086 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
64087
64088         [BZ #14229]
64089         * string/Makefile (tests): Add tst-strtok_r.
64090         * string/tst-strtok_r.c: New file.
64091         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
64092         RAX_LP/RDX_LP on SAVE_PTR.
64093
64094 2012-06-14  Roland McGrath  <roland@hack.frob.com>
64095
64096         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
64097
64098 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
64099
64100         * libm_test.inc (csqrt_test): Allow more spurious underflow
64101         exceptions.
64102         (j0_test): Likewise.
64103         (j1_test): Likewise.
64104         (y0_test): Likewise.
64105         (y1_test): Likewise.
64106
64107 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
64108
64109         * po/Makefile (libc.pot): Use UTF-8 charset.
64110
64111 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
64112
64113         [BZ #14210]
64114         Suppress sign-conversion warning from FD_SET.
64115         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
64116         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
64117         not unsigned long int.
64118         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
64119
64120 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
64121
64122         [BZ #14050]
64123         [BZ #14117]
64124         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
64125         __extern_always_inline instead of __extern_inline.
64126         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
64127         (__signbit): Likewise.
64128         (__signbitl): Support C++ namespace.
64129         (lrintf): New inline function.
64130         (lrint): Likewise.
64131         (llrintf): Likewise.
64132         (llrint): Likewise.
64133         (fmaxf): Likewise.
64134         (fmax): Likewise.
64135         (fminf): Likewise.
64136         (fmin): Likewise.
64137         (rint): Likewise.
64138         (rintf): Likewise.
64139         (ceil): Likewise.
64140         (ceilf): Likewise.
64141         (floor): Likewise.
64142         (floorf): Likewise.
64143         (nearbyint): Likewise.
64144         (nearbyintf): Likewise.
64145
64146 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
64147
64148         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
64149         non-default versions.
64150
64151 2012-06-11  Roland McGrath  <roland@hack.frob.com>
64152
64153         [BZ #14218]
64154         * manual/argp.texi (Argp): Reword argp_parse description slightly.
64155
64156 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
64157
64158         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
64159         (FE_UPWARD, FE_DOWNWARD): Don't define.
64160         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
64161         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
64162
64163         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
64164         reading it.
64165         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
64166         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
64167
64168 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
64169
64170         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64171         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
64172         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
64173         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
64174
64175 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
64176
64177         [BZ #14117]
64178         * sysdeps/i386/fpu/bits/fenv.h: Removed.
64179         * sysdeps/i386/fpu/Implies: New file.
64180         * sysdeps/x86_64/fpu/Implies: Likewise.
64181         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
64182         * sysdeps/x86/fpu/bits/fenv.h: This.
64183
64184         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
64185         __SSE_MATH__.
64186
64187 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
64188
64189         [BZ #14134]
64190         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
64191         character 0xffff that matches the last element of the
64192         conversion table.
64193
64194 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64195
64196         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
64197         fmodl commit.
64198
64199 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64200
64201         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
64202         values higher than 25.6283.
64203
64204 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64205
64206         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
64207         subnormal exponent extraction and add some __builtin_expect.
64208         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
64209         Fix for subnormal mantissa calculation.
64210
64211 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
64212
64213         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
64214         cpu2 is -1 and errno is not ENOSYS.
64215
64216 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
64217
64218         [BZ #14117]
64219         * sysdeps/i386/i486/bits/string.h: Renamed to ...
64220         * sysdeps/x86/bits/string.h: This.
64221         * sysdeps/x86_64/bits/string.h: Removed.
64222
64223         * sysdeps/i386/i486/bits/string.h: Define inline functions only
64224         if not compiling for x86-64, but compiling for >= i486.
64225
64226         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
64227         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
64228
64229         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
64230         New macro from Linux kernel 3.4.0.
64231         (FP_XSTATE_MAGIC2): Likewise.
64232         (FP_XSTATE_MAGIC2_SIZE): Likewise.
64233         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
64234         (struct _fpx_sw_bytes): New struct.
64235         (struct _xsave_hdr): Likewise.
64236         (struct _ymmh_state): Likewise.
64237         (struct _xstate): Likewise.
64238
64239         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
64240         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
64241         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
64242         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
64243         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
64244         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
64245
64246         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
64247         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
64248         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
64249         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
64250         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
64251         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
64252
64253 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
64254
64255         [BZ #13743]
64256         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
64257         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
64258         (sysdep_headers): Include sys/platform/ppc.h.
64259         * sysdeps/powerpc/test-gettimebase.c: Test for
64260         __ppc_get_timebase() to catch future ISA opcode/insn changes.
64261         * manual/Makefile (appendices): Include platform.texi.
64262         * manual/contrib.texi (Contributors): Update @node pointers.
64263         * manual/maint.texi (Maintenance): Likewise.
64264         (Platform): New node.
64265         * manual/platform.texi: New file.  Document the new features.
64266
64267 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
64268             Jakub Jelinek  <jakub@redhat.com>
64269
64270         [BZ #14188]
64271         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
64272         where __builtin_expect is unavailable.
64273
64274 2012-06-03  David S. Miller  <davem@davemloft.net>
64275
64276         * stdlib/longlong.h: Updated from GCC.
64277
64278 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
64279
64280         [BZ #14042]
64281         * sysdeps/powerpc/powerpc32/mcount.c: New file.
64282         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
64283         __mcount_internal.
64284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
64285         (GLIBC_2.16): Likewise.
64286
64287 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
64288
64289         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
64290
64291 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
64292
64293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
64294         (default-abi): New variable.
64295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
64296         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
64297         variable.
64298         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
64299         Likewise.
64300         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
64301         Likewise.
64302         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
64303         Likewise.
64304
64305         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
64306         definition.  Document in comment.
64307
64308 2012-06-01  David S. Miller  <davem@davemloft.net>
64309
64310         * stdlib/longlong.h: Updated from GCC.
64311
64312 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
64313
64314         [BZ #14117]
64315         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
64316         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
64317         sys/debugreg.h sys/io.h here.
64318         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
64319         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
64320         sys/io.h.
64321         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
64322         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
64323         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
64324         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
64325         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
64326         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
64327
64328         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
64329         Define only if __x86_64__ is defined.
64330
64331 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
64332
64333         [BZ #14048]
64334         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
64335         Use int64_t for variable i.
64336         * math/libm-test.inc (fmod_test): Add more tests.
64337
64338         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
64339         z computation is not scheduled after fetestexcept.
64340         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
64341         Use math_force_eval instead of asm to ensure calculation scheduled
64342         before exception test.
64343         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
64344         Ensure a1 + u.d computation is not scheduled after fetestexcept.
64345
64346 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
64347
64348         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
64349         computation is not scheduled after fetestexcept.
64350
64351 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
64352
64353         [BZ #14117]
64354         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
64355         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
64356
64357 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64358
64359         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
64360         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
64361
64362 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
64363
64364         [BZ #14117]
64365         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
64366         <bits/wordsize.h>.
64367         (__WCHAR_MIN): Support __WORDSIZE == 64.
64368         (__WCHAR_MAX): Likewise.
64369
64370         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
64371         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
64372
64373         [BZ #14183]
64374         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
64375         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
64376
64377         [BZ #14117]
64378         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
64379         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
64380
64381         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
64382         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
64383
64384         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
64385         Defined to 1 if __x86_64__ isn't defined.
64386         (_STAT_VER_LINUX_OLD): New.
64387         (st_atime): Remove duplicate.
64388         (st_mtime): Likewise.
64389         (st_ctime): Likewise.
64390
64391 2012-05-31  David S. Miller  <davem@davemloft.net>
64392
64393         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
64394         entries.
64395
64396 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
64397
64398         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
64399         gen-libm-test.pl.
64400
64401         [BZ #14132]
64402         * elf/dl-reloc.c: Include <_itoa.h>.
64403         (_dl_reloc_bad_type): Remove use of INTUSE.
64404         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
64405         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
64406         * stdio-common/psiginfo.c (psiginfo): Likewise.
64407         * stdio-common/psignal.c (psignal): Likewise.
64408         * string/strsignal.c (strsignal): Likewise.
64409         * include/signal.h (_sys_siglist): Declare hidden proto.
64410         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
64411         INTVARDEF with libc_hidden_data_def.
64412         * stdio-common/itoa-udigits.c: Likewise.
64413         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
64414         (_itoa_lower_digits_internal): Remove declaration.
64415         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
64416         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
64417         (_sys_sigabbrev_internal): Remove aliases.
64418         (_sys_siglist): Define hidden alias.
64419
64420 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
64421
64422         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
64423         bits/sysctl.h.
64424
64425 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
64426
64427         [BZ #14117]
64428         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
64429         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
64430
64431         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
64432         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
64433         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
64434         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
64435         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
64436         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
64437
64438         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
64439         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
64440         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
64441
64442         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
64443         with __addr.
64444         (insw): Likewise.
64445         (insl): Likewise.
64446         (outsb): Likewise.
64447         (outsw): Likewise.
64448         (outsl): Likewise.
64449
64450         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
64451         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
64452         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
64453
64454         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
64455         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
64456         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
64457         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
64458         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
64459         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
64460
64461         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
64462         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
64463
64464         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
64465         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
64466
64467         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
64468         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
64469         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
64470
64471         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
64472         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
64473         to ...
64474         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
64475
64476         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
64477         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
64478         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
64479
64480         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
64481         for x86-64.
64482         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
64483
64484 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
64485
64486         * math/math.h (M_El): Use two more decimal places.
64487         (M_LOG2El): Likewise.
64488         (M_LOG10El): Likewise.
64489         (M_LN2l): Likewise.
64490         (M_LN10l): Likewise.
64491         (M_PIl): Likewise.
64492         (M_PI_2l): Likewise.
64493         (M_PI_4l): Likewise.
64494         (M_1_PIl): Likewise.
64495         (M_2_PIl): Likewise.
64496         (M_2_SQRTPIl): Likewise.
64497         (M_SQRT2l): Likewise.
64498         (M_SQRT1_2l): Likewise.
64499
64500 2012-05-31  David S. Miller  <davem@davemloft.net>
64501
64502         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
64503         values between float registers.
64504         * sysdeps/sparc/sparc64/memset.S: Likewise.
64505         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
64506
64507 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
64508
64509         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
64510         -D_FORTIFY_SOURCE=1.
64511         (CPPFLAGS-tst-longjmp_chk.c): Define.
64512         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
64513         (CPPFLAGS-tst-longjmp_chk2.c): Define.
64514         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
64515         CFLAGS-tst-wchar-h.c.
64516
64517 2012-05-31  Marek Polacek  <polacek@redhat.com>
64518
64519         [BZ #14132]
64520         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
64521         __endmntent_internal): Remove declaration.
64522         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
64523         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
64524         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
64525
64526 2012-05-30  David S. Miller  <davem@davemloft.net>
64527
64528         * sysdeps/sparc/sparc32/soft-fp/q_util.c
64529         (___Q_simulate_exceptions): Use real FP ops rather than writing
64530         into the %fsr.
64531         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
64532         Likewise.
64533
64534 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
64535
64536         [BZ #14117]
64537         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
64538         * sysdeps/x86/bits/xtitypes.h: This.
64539
64540         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
64541         * sysdeps/x86/bits/wordsize.h: This.
64542
64543         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
64544         * sysdeps/x86/bits/huge_vall.h: This.
64545
64546         * sysdeps/i386/bits/select.h: Removed.
64547         * sysdeps/x86_64/bits/select.h: Renamed to ...
64548         * sysdeps/x86/bits/select.h: This.
64549
64550         * sysdeps/i386/bits/setjmp.h: Removed.
64551         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
64552         * sysdeps/x86/bits/setjmp.h: This.
64553
64554         * sysdeps/i386/bits/mathdef.h: Removed.
64555         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
64556         * sysdeps/x86/bits/mathdef.h: This.
64557
64558 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
64559
64560         [BZ #14132]
64561         * include/sys/socket.h (__connect_internal)
64562         (__libc_sa_len_internal): Remove declaration.
64563         (__connect, __libc_sa_len): Declare hidden_proto.
64564         (SA_LEN): Remove use of INTUSE.
64565         * socket/connect.c: Add libc_hidden_def.
64566         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
64567         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
64568         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
64569         alias.
64570         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
64571         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
64572         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
64573         of adding _internal alias.
64574
64575 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
64576
64577         [BZ #14117]
64578         * sysdeps/i386/bits/link.h: Removed.
64579         * sysdeps/i386/bits/linkmap.h: Likewise.
64580         * sysdeps/x86_64/bits/link.h: Renamed to ...
64581         * sysdeps/x86/bits/link.h: This.
64582         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
64583         * sysdeps/x86/bits/linkmap.h: This.
64584
64585         * sysdeps/i386/bits/endian.h: Removed.
64586         * sysdeps/x86_64/bits/endian.h: Renamed to ...
64587         * sysdeps/x86/bits/endian.h: This.
64588
64589         * sysdeps/i386/bits/byteswap.h: Removed.
64590         * sysdeps/i386/bits/byteswap-16.h: Likewise.
64591         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
64592         * sysdeps/x86/bits/byteswap.h: This.
64593         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
64594         * sysdeps/x86/bits/byteswap-16.h: This.
64595         * sysdeps/i386/Implies: Add x86.
64596         * sysdeps/x86_64/Implies: Likewise.
64597
64598 2012-05-30  David S. Miller  <davem@davemloft.net>
64599
64600         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
64601         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
64602         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
64603         (FP_TRAPPING_EXCEPTIONS): Define.
64604         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
64605         (FP_TRAPPING_EXCEPTIONS): Define.
64606         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
64607         subnormals only when inexact has been signalled or underflow
64608         exceptions are enabled.
64609         (_FP_PACK_CANONICAL): Likewise.
64610
64611 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
64612
64613         [BZ #14183]
64614         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
64615         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
64616
64617 2012-05-30  Richard Henderson  <rth@twiddle.net>
64618
64619         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
64620         with #ifndef NOT_IN_libc.
64621
64622         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
64623         marked to avoid plt entry.
64624
64625 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
64626
64627         [BZ #14112]
64628         * Makeconfig (default-abi): New macro.
64629         (abi-includes): Likewise.
64630         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
64631         $(abi-$(default-abi)-lib-soname) for soname if defined.
64632         ($(common-objpfx)gnu/lib-names.stmp): Generate from
64633         abi-variants.
64634         * Makefile (installed-stubs): Likewise.
64635         * include/stubs-biarch.h: Removed.
64636         * scripts/lib-names.awk: Only handle one library at a time.
64637         * scripts/soversions.awk: Remove WORDSIZE support.
64638         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
64639         entries.
64640         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
64641         Removed.
64642         (syscall-list-default-condition): Likewise.
64643         (syscall-list-default-condition): Likewise.
64644         (syscall-list-includes): Likewise.
64645         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
64646         syscall-list-* with abi-*.  Handle undefined abi-variants.
64647         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
64648         * sysdeps/unix/sysv/linux/i386/Implies: New file.
64649         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
64650         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
64651         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
64652         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
64653         Removed.
64654         (syscall-list-32-options): Likewise.
64655         (syscall-list-32-condition): Likewise.
64656         (syscall-list-64-options): Likewise.
64657         (syscall-list-64-condition): Likewise.
64658         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
64659         macro.
64660         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
64661         Renamed to ...
64662         (abi-*): This.
64663         (abi-64-ld-soname): New macro.
64664         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
64665         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
64666         Renamed to ...
64667         (abi-*): This.
64668         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
64669         * sysdeps/x86_64/x32/shlib-versions: Likewise.
64670
64671 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
64672
64673         * sysdeps/unix/sysv/linux/kernel-features.h
64674         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
64675         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
64676         include <kernel-features.h>.
64677         [!__NR_ftruncate64]: Remove conditional code.
64678         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64679         [__NR_ftruncate64]: Make code unconditional.
64680         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64681         * sysdeps/unix/sysv/linux/truncate64.c: Do not
64682         include <kernel-features.h>.
64683         [!__NR_ftruncate64]: Remove conditional code.
64684         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64685         [__NR_ftruncate64]: Make code unconditional.
64686         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
64688         include <kernel-features.h>.
64689         [!__NR_ftruncate64]: Remove conditional code.
64690         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64691         [__NR_ftruncate64]: Make code unconditional.
64692         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
64694         include <kernel-features.h>.
64695         [!__NR_ftruncate64]: Remove conditional code.
64696         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64697         [__NR_ftruncate64]: Make code unconditional.
64698         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64699
64700         * configure.in (libc_cv_fpie): Weaken to a compile test using
64701         LIBC_TRY_CC_OPTION.
64702         * configure: Regenerated.
64703
64704 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64705
64706         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
64707         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
64708         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
64709         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64710         Refreshed.
64711         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
64712         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
64713         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
64714         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
64715         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
64716         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64717         Refreshed.
64718
64719 2012-05-27  David S. Miller  <davem@davemloft.net>
64720
64721         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
64722         (___Q_zero): New.
64723         (__Q_simulate_exceptions): Return void.  Change to simulate
64724         exceptions by writing into the %fsr.
64725         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
64726         (__Qp_handle_exceptions): Likewise.
64727         (numbers): Delete.
64728         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
64729         __Qp_handle_exceptions.
64730         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
64731         __Qp_handle_exceptions.
64732         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
64733         as unused and give dummy FP_RND_NEAREST initializer.
64734         (FP_INHIBIT_RESULTS): Define.
64735         (___Q_simulate_exceptions): Update declaration.
64736         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
64737         formatting.
64738         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
64739         as unused and give dummy FP_RND_NEAREST initializer.
64740         (__Qp_handle_exceptions): Update declaration.
64741         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
64742         formatting.
64743
64744 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
64745
64746         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
64747         the temporary FPU control word.
64748         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
64749         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
64750         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
64751         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
64752         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
64753         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
64754         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
64755         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
64756         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
64757         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
64758         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
64759
64760 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
64761
64762         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
64763         fields.
64764
64765 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
64766
64767         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
64768         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
64769         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
64770         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
64771         Likewise.
64772         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
64773         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
64774         Likewise.
64775
64776 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
64777
64778         * po/h.po: Update from translation team.
64779
64780 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
64781
64782         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
64783
64784         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
64785         handling of denormals.
64786         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
64787         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
64788         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
64789         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
64790         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
64791         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
64792         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
64793         Likewise.
64794
64795 2012-05-26  Marek Polacek  <polacek@redhat.com>
64796
64797         [BZ #14152]
64798         * math/libm-test.inc (fma_test): Don't always expect underflow
64799         exception.
64800
64801 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64802
64803         [BZ #12416]
64804         * elf/tst-execstack.c: Include stackinfo.h.
64805         (do_test): Adjust test case to ensure that pthread_getattr_np
64806         behaviour remains the same after marking stack executable.
64807
64808 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
64809
64810         * sysdeps/unix/sysv/linux/kernel-features.h
64811         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
64812         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
64813         kernel-features.h.
64814         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
64815         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
64816         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
64817         kernel-features.h.
64818         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
64819         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
64820
64821 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
64822
64823         * configure.in: Define the default includes to being none.
64824         * configure: Regenerated.
64825
64826 2012-05-25  Roland McGrath  <roland@hack.frob.com>
64827
64828         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
64829         * sysdeps/x86_64/setjmp.S: Likewise.
64830         * sysdeps/i386/bsd-setjmp.S: Likewise.
64831         * sysdeps/i386/bsd-_setjmp.S: Likewise.
64832         * sysdeps/i386/setjmp.S: Likewise.
64833         * sysdeps/i386/__longjmp.S: Likewise.
64834         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
64835         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
64836
64837         * include/stap-probe.h: New file.
64838         * configure.in: Handle --enable-systemtap.
64839         * configure: Regenerated.
64840         * config.h.in (USE_STAP_PROBE): New #undef.
64841         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
64842         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
64843         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
64844
64845 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
64846
64847         [BZ #13717]
64848         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
64849         to 2.4.0 where earlier.
64850         * sysdeps/unix/sysv/linux/configure: Regenerated.
64851         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
64852         <kernel-features.h>.
64853         [__ASSUME_32BITUIDS]: Make code unconditional.
64854         [!__ASSUME_32BITUIDS]: Remove conditional code.
64855         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
64856         <kernel-features.h>.
64857         [__ASSUME_32BITUIDS]: Make code unconditional.
64858         [!__ASSUME_32BITUIDS]: Remove conditional code.
64859         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
64860         [__ASSUME_32BITUIDS]: Make code unconditional.
64861         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
64862         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
64863         <kernel-features.h>.
64864         [__ASSUME_32BITUIDS]: Make code unconditional.
64865         [!__ASSUME_32BITUIDS]: Remove conditional code.
64866         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
64867         <kernel-features.h>.
64868         [__ASSUME_32BITUIDS]: Make code unconditional.
64869         [!__ASSUME_32BITUIDS]: Remove conditional code.
64870         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
64871         <kernel-features.h>.
64872         [__ASSUME_32BITUIDS]: Make code unconditional.
64873         [!__ASSUME_32BITUIDS]: Remove conditional code.
64874         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
64875         <kernel-features.h>.
64876         [__ASSUME_32BITUIDS]: Make code unconditional.
64877         [!__ASSUME_32BITUIDS]: Remove conditional code.
64878         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
64879         <kernel-features.h>.
64880         [__ASSUME_32BITUIDS]: Make code unconditional.
64881         [!__ASSUME_32BITUIDS]: Remove conditional code.
64882         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
64883         <kernel-features.h>.
64884         [__ASSUME_32BITUIDS]: Make code unconditional.
64885         [!__ASSUME_32BITUIDS]: Remove conditional code.
64886         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
64887         <kernel-features.h>.
64888         [__ASSUME_32BITUIDS]: Make code unconditional.
64889         [!__ASSUME_32BITUIDS]: Remove conditional code.
64890         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
64891         <kernel-features.h>.
64892         [__ASSUME_32BITUIDS]: Make code unconditional.
64893         [!__ASSUME_32BITUIDS]: Remove conditional code.
64894         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
64895         <kernel-features.h>.
64896         [__ASSUME_32BITUIDS]: Make code unconditional.
64897         [!__ASSUME_32BITUIDS]: Remove conditional code.
64898         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
64899         <kernel-features.h>.
64900         [__ASSUME_32BITUIDS]: Make code unconditional.
64901         [!__ASSUME_32BITUIDS]: Remove conditional code.
64902         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
64903         <kernel-features.h>.
64904         [__NR_setresgid] (__setresgid): Do not declare.
64905         [__ASSUME_32BITUIDS]: Make code unconditional.
64906         [!__ASSUME_32BITUIDS]: Remove conditional code.
64907         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
64908         <kernel-features.h>.
64909         [__NR_setresuid] (__setresuid): Do not declare.
64910         [__ASSUME_32BITUIDS]: Make code unconditional.
64911         [!__ASSUME_32BITUIDS]: Remove conditional code.
64912         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
64913         <kernel-features.h>.
64914         [__ASSUME_32BITUIDS]: Make code unconditional.
64915         [!__ASSUME_32BITUIDS]: Remove conditional code.
64916         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
64917         <kernel-features.h>.
64918         [__ASSUME_32BITUIDS]: Make code unconditional.
64919         [!__ASSUME_32BITUIDS]: Remove conditional code.
64920         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
64921         <kernel-features.h>.
64922         [__ASSUME_32BITUIDS]: Make code unconditional.
64923         [!__ASSUME_32BITUIDS]: Remove conditional code.
64924         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
64925         <kernel-features.h>.
64926         [__ASSUME_32BITUIDS]: Make code unconditional.
64927         [!__ASSUME_32BITUIDS]: Remove conditional code.
64928         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
64929         <kernel-features.h>.
64930         [__ASSUME_32BITUIDS]: Make code unconditional.
64931         [!__ASSUME_32BITUIDS]: Remove conditional code.
64932         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
64933         <kernel-features.h>.
64934         [__ASSUME_32BITUIDS]: Make code unconditional.
64935         [!__ASSUME_32BITUIDS]: Remove conditional code.
64936         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
64937         <kernel-features.h>.
64938         [__ASSUME_32BITUIDS]: Make code unconditional.
64939         [!__ASSUME_32BITUIDS]: Remove conditional code.
64940         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
64941         <kernel-features.h>.
64942         [__ASSUME_32BITUIDS]: Make code unconditional.
64943         [!__ASSUME_32BITUIDS]: Remove conditional code.
64944         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
64945         <kernel-features.h>.
64946         [__ASSUME_32BITUIDS]: Make code unconditional.
64947         [!__ASSUME_32BITUIDS]: Remove conditional code.
64948         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
64949         <kernel-features.h>.
64950         [__ASSUME_32BITUIDS]: Make code unconditional.
64951         [!__ASSUME_32BITUIDS]: Remove conditional code.
64952         * sysdeps/unix/sysv/linux/kernel-features.h
64953         (__ASSUME_SETRESUID_SYSCALL): Remove.
64954         (__ASSUME_SETRESGID_SYSCALL): Likewise.
64955         (__ASSUME_32BITUIDS): Likewise.
64956         (__ASSUME_LDT_WORKS): Likewise.
64957         (__ASSUME_O_DIRECTORY): Likewise.
64958         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
64959         architecture but not kernel version.
64960         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
64961         (__ASSUME_MMAP2_SYSCALL): Likewise.
64962         (__ASSUME_STAT64_SYSCALL): Likewise.
64963         (__ASSUME_IPC64): Likewise.
64964         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
64965         <kernel-features.h>.
64966         [__ASSUME_32BITUIDS]: Make code unconditional.
64967         [!__ASSUME_32BITUIDS]: Remove conditional code.
64968         * sysdeps/unix/sysv/linux/opendir.c: Do not include
64969         <kernel-features.h>.
64970         [__ASSUME_O_DIRECTORY]: Make code unconditional.
64971         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
64972         132096]: Remove conditional code.
64973         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
64974         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
64975         <kernel-features.h>.
64976         [__ASSUME_32BITUIDS]: Make code unconditional.
64977         [!__ASSUME_32BITUIDS]: Remove conditional code.
64978         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
64979         <kernel-features.h>.
64980         [__ASSUME_32BITUIDS]: Make code unconditional.
64981         [!__ASSUME_32BITUIDS]: Remove conditional code.
64982         * sysdeps/unix/sysv/linux/setegid.c: Do not include
64983         <kernel-features.h>.
64984         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
64985         unconditional.
64986         (__setresgid): Do not declare.
64987         [__ASSUME_32BITUIDS]: Make code unconditional.
64988         [!__ASSUME_32BITUIDS]: Remove conditional code.
64989         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
64990         <kernel-features.h>.
64991         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
64992         unconditional.
64993         (__setresuid): Do not declare.
64994         [__ASSUME_32BITUIDS]: Make code unconditional.
64995         [!__ASSUME_32BITUIDS]: Remove conditional code.
64996         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
64997         <kernel-features.h>.
64998         [__ASSUME_32BITUIDS]: Make code unconditional.
64999         [!__ASSUME_32BITUIDS]: Remove conditional code.
65000         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
65001         <kernel-features.h>.
65002         [__ASSUME_32BITUIDS]: Make code unconditional.
65003         [!__ASSUME_32BITUIDS]: Remove conditional code.
65004
65005 2012-05-25  Richard Henderson  <rth@twiddle.net>
65006
65007         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
65008         dl_hwcap to ifunc resolver.
65009         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
65010         elf_ifunc_invoke.
65011         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
65012         dl_hwcap to ifunc resolver.
65013         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
65014
65015 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
65016
65017         [BZ #14153]
65018         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
65019         for |x| <= 2**-26, not 2**-57.
65020         * math/libm-test.inc (acos_test): Do not allow spurious underflow
65021         exception.
65022
65023 2012-05-24  Jeff Law  <law@redhat.com>
65024
65025         * stdio-common/Makefile (tests): Add bug25.
65026         * stdio-common/bug25.c: New test.
65027
65028 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
65029
65030         [BZ #13576]
65031         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
65032         multiple of MALLOC_ALIGNMENT in size.
65033         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
65034
65035 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
65036
65037         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
65038         Require >= 256.
65039         (FILENAME_MAX): Use macro-int-constant.
65040         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
65041         (_IOFBF): Use macro-int-constant.
65042         (_IOLBF): Likewise.
65043         (_IONBF): Likewise.
65044         (SEEK_CUR): Likewise.
65045         (SEEK_END): Likewise.
65046         (SEEK_SET): Likewise.
65047         (TMP_MAX): Likewise.
65048         (EOF): Use macro-int-constant.  Require < 0.
65049         (NULL): Use macro-constant.  Require == 0.
65050         (stdin): Require type to be FILE *.
65051         (stdout): Likewise.
65052         (stderr): Likewise.
65053         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
65054         macro-int-constant.
65055         (EXIT_SUCCESS): Likewise.
65056         (NULL): Use macro-constant.  Require == 0.
65057         (RAND_MAX): Use macro-int-constant.
65058         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
65059         [C99-based standards] (strtof): Require function.
65060         [C99-based standards] (strtold): Likewise.
65061         [C99-based standards] (strtoll): Likewise.
65062         [C99-based standards] (strtoull): Likewise.
65063         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
65064         [ISO || ISO99 || ISO11] (limits.h): Likewise.
65065         [ISO || ISO99 || ISO11] (math.h): Likewise.
65066         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
65067         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
65068         [ISO || ISO99 || ISO11] (*_t): Do not allow.
65069
65070 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
65071
65072         [BZ #14132]
65073         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
65074         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
65075         * intl/dgettext.c (DCGETTEXT): Likewise.
65076         * intl/gettext.c (DCGETTEXT): Likewise.
65077         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
65078         * posix/regex_internal.h (gettext): Likewise.
65079         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
65080         Remove declaration.
65081         * include/argz.h (__argz_count_internal)
65082         (__argz_stringify_internal): Remove declaration.
65083         (__argz_count, __argz_stringify): Declare hidden proto.
65084         * intl/dcgettext.c: Remove use of INTDEF.
65085         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
65086         * string/argz-stringify.c: Likewise.
65087         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
65088         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
65089         Declare hidden proto.
65090         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
65091         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
65092         Declare hidden proto.
65093         * include/stdio.h (__asprintf_internal): Don't declare.
65094         (__asprintf): Don't define as macro.  Declare hidden proto.
65095         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
65096         (__fsetlocking): Declare hidden proto.
65097         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
65098         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
65099         hidden proto.
65100         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
65101         (_IO_setlinebuf): Remove use of INTUSE.
65102         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
65103         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
65104         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
65105         Remove declaration.
65106         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
65107         (_IO_do_flush): Remove use of INTUSE.
65108         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
65109         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
65110         (_IO_adjust_column, _IO_least_wmarker)
65111         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
65112         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
65113         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
65114         (_IO_default_doallocate, _IO_wdefault_doallocate)
65115         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
65116         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
65117         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
65118         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
65119         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
65120         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
65121         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
65122         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
65123         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
65124         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
65125         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
65126         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
65127         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
65128         proto.
65129         (_IO_flush_all_internal, _IO_adjust_column_internal)
65130         (_IO_default_uflow_internal, _IO_default_finish_internal)
65131         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
65132         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
65133         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
65134         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
65135         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
65136         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
65137         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
65138         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
65139         (_IO_file_close_internal, _IO_file_close_it_internal)
65140         (_IO_file_underflow_internal, _IO_file_overflow_internal)
65141         (_IO_file_init_internal, _IO_file_attach_internal)
65142         (_IO_file_fopen_internal, _IO_file_read_internal)
65143         (_IO_file_sync_internal, _IO_file_seek_internal)
65144         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
65145         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
65146         (_IO_str_underflow_internal, _IO_str_overflow_internal)
65147         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
65148         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
65149         (_IO_list_all_internal, _IO_link_in_internal)
65150         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
65151         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
65152         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
65153         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
65154         (_IO_do_write_internal, _IO_padn_internal)
65155         (_IO_getline_info_internal, _IO_getline_internal)
65156         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
65157         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
65158         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
65159         (_IO_vfscanf_internal, _IO_vfprintf_internal)
65160         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
65161         (_IO_init_internal, _IO_un_link_internal): Don't declare.
65162         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
65163         with libc_hidden_ver, remove use of INTUSE.
65164         * libio/genops.c: Likewise.
65165         * libio/freopen.c: Likewise.
65166         * libio/freopen64.c: Likewise.
65167         * libio/iofclose.c: Likewise.
65168         * libio/iofdopen.c: Likewise.
65169         * libio/iofflush.c: Likewise.
65170         * libio/iofflush_u.c: Likewise.
65171         * libio/iofgets.c: Likewise.
65172         * libio/iofgets_u.c: Likewise.
65173         * libio/iofopen.c: Likewise.
65174         * libio/iofopncook.c: Likewise.
65175         * libio/iofread.c: Likewise.
65176         * libio/iofread_u.c: Likewise.
65177         * libio/ioftell.c: Likewise.
65178         * libio/iofwrite.c: Likewise.
65179         * libio/iogetline.c: Likewise.
65180         * libio/iogets.c: Likewise.
65181         * libio/iogetwline.c: Likewise.
65182         * libio/iopadn.c: Likewise.
65183         * libio/iopopen.c: Likewise.
65184         * libio/ioseekoff.c: Likewise.
65185         * libio/ioseekpos.c: Likewise.
65186         * libio/iosetbuffer.c: Likewise.
65187         * libio/iosetvbuf.c: Likewise.
65188         * libio/ioungetc.c: Likewise.
65189         * libio/ioungetwc.c: Likewise.
65190         * libio/iovdprintf.c: Likewise.
65191         * libio/iovsprintf.c: Likewise.
65192         * libio/iovsscanf.c: Likewise.
65193         * libio/memstream.c: Likewise.
65194         * libio/obprintf.c: Likewise.
65195         * libio/oldfileops.c: Likewise.
65196         * libio/oldiofclose.c: Likewise.
65197         * libio/oldiofdopen.c: Likewise.
65198         * libio/oldiofopen.c: Likewise.
65199         * libio/oldiopopen.c: Likewise.
65200         * libio/oldstdfiles.c: Likewise.
65201         * libio/putc.c: Likewise.
65202         * libio/setbuf.c: Likewise.
65203         * libio/setlinebuf.c: Likewise.
65204         * libio/stdfiles.c: Likewise.
65205         * libio/strops.c: Likewise.
65206         * libio/vasprintf.c: Likewise.
65207         * libio/vscanf.c: Likewise.
65208         * libio/vsnprintf.c: Likewise.
65209         * libio/vswprintf.c: Likewise.
65210         * libio/wfiledoalloc.c: Likewise.
65211         * libio/wfileops.c: Likewise.
65212         * libio/wgenops.c: Likewise.
65213         * libio/wmemstream.c: Likewise.
65214         * libio/wstrops.c: Likewise.
65215         * libio/__fpurge.c: Likewise.
65216         * libio/__fsetlocking.c: Likewise.
65217         * assert/assert.c: Likewise.
65218         * debug/fgets_chk.c: Likewise.
65219         * debug/fgets_u_chk.c: Likewise.
65220         * debug/fread_chk.c: Likewise.
65221         * debug/fread_u_chk.c: Likewise.
65222         * debug/gets_chk.c: Likewise.
65223         * debug/obprintf_chk.c: Likewise.
65224         * debug/vasprintf_chk.c: Likewise.
65225         * debug/vdprintf_chk.c: Likewise.
65226         * debug/vsnprintf_chk.c: Likewise.
65227         * debug/vsprintf_chk.c: Likewise.
65228         * malloc/mtrace.c: Likewise.
65229         * misc/error.c: Likewise.
65230         * misc/syslog.c: Likewise.
65231         * stdio-common/asprintf.c: Likewise.
65232         * stdio-common/fxprintf.c: Likewise.
65233         * stdio-common/getw.c: Likewise.
65234         * stdio-common/isoc99_fscanf.c: Likewise.
65235         * stdio-common/isoc99_scanf.c: Likewise.
65236         * stdio-common/isoc99_vfscanf.c: Likewise.
65237         * stdio-common/isoc99_vscanf.c: Likewise.
65238         * stdio-common/isoc99_vsscanf.c: Likewise.
65239         * stdio-common/printf-prs.c: Likewise.
65240         * stdio-common/printf_fp.c: Likewise.
65241         * stdio-common/printf_fphex.c: Likewise.
65242         * stdio-common/printf_size.c: Likewise.
65243         * stdio-common/putw.c: Likewise.
65244         * stdio-common/scanf.c: Likewise.
65245         * stdio-common/sprintf.c: Likewise.
65246         * stdio-common/tmpfile.c: Likewise.
65247         * stdio-common/vfprintf.c: Likewise.
65248         * stdio-common/vfscanf.c: Likewise.
65249         * stdlib/strfmon_l.c: Likewise.
65250         * sunrpc/openchild.c: Likewise.
65251         * sunrpc/xdr_stdio.c: Likewise.
65252         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
65253         * sysdeps/mach/hurd/tmpfile.c: Likewise.
65254
65255 2012-05-24  Roland McGrath  <roland@hack.frob.com>
65256
65257         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
65258
65259         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
65260         in the third column, to generate for the shared library an IFUNC
65261         that uses _dl_vdso_vsym.
65262         * Makerules (COMPILE.c, compile-stdin.c): New variables.
65263         * Makeconfig (object-suffixes-noshared): New variable.
65264
65265         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
65266         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
65267         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
65268         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
65269
65270         [BZ #14132]
65271         * include/sys/time.h (__gettimeofday): Remove macro.
65272         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
65273         * time/gettimeofday.c (__gettimeofday): Remove #undef.
65274         Remove INTDEF.
65275         (__gettimeofday): Add libc_hidden_def.
65276         (gettimeofday): Add libc_hidden_weak.
65277         * sysdeps/mach/gettimeofday.c: Likewise.
65278         * sysdeps/posix/gettimeofday.c: Likewise.
65279         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
65280         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
65281         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
65282         (__gettimeofday_internal): Remove strong_alias.
65283         (__gettimeofday): Add libc_hidden_def.
65284         (gettimeofday): Add libc_hidden_weak.
65285         * sysdeps/unix/syscalls.list (gettimeofday):
65286         Remove __gettimeofday_internal alias.
65287
65288 2012-05-24  Daniel Jacobowitz  <drow@false.org>
65289             H.J. Lu  <hongjiu.lu@intel.com>
65290
65291         [BZ #12495]
65292         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
65293         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
65294         (largebin_index_32_big): New.
65295         (largebin_index): Use it for 16-byte alignment.
65296         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
65297         correction with front_misalign.
65298
65299 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
65300
65301         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
65302         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
65303         Likewise.
65304         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
65305         Likewise.
65306         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
65307         Likewise.
65308         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
65309         Likewise.
65310         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
65311         Likewise.
65312         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
65313         Likewise.
65314         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
65315         Likewise.
65316         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
65317         Likewise.
65318         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
65319         Likewise.
65320         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
65321         Likewise.
65322         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
65323         Likewise.
65324         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
65325         Likewise.
65326
65327         * scripts/data/c++-types-x32-linux-gnu.data: New file.
65328         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
65329
65330 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
65331
65332         [BZ #10846]
65333         [BZ #14036]
65334         * math/libm-test.inc (exp_test): Add test from bug 14036.
65335         (pow_test): Add test from bug 10846.
65336
65337         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
65338         and other flags.
65339         (special_function): Do not include flags in test name.
65340         (parse_args): Likewise.
65341         * sysdeps/i386/fpu/libm-test-ulps: Update.
65342         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
65343         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
65344         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
65345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65346
65347         * math/gen-libm-test.pl (%beautify): Add entries for underflow
65348         exceptions.
65349         * math/libm-test.inc ("Philosophy"): Update comment about
65350         exception testing.
65351         (UNDERFLOW_EXCEPTION): New macro.
65352         (UNDERFLOW_EXCEPTION_OK): Likewise.
65353         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
65354         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
65355         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
65356         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
65357         (INVALID_EXCEPTION_OK): Update value.
65358         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
65359         (OVERFLOW_EXCEPTION_OK): Likewise.
65360         (IGNORE_ZERO_INF_SIGN): Likewise.
65361         (test_exceptions): Handle underflow exceptions.
65362         (acos_test): Update for underflow exception expectations.
65363         (cexp_test): Likewise.
65364         (clog_test): Likewise.
65365         (clog10_test): Likewise.
65366         (csqrt_test): Likewise.
65367         (ctan_test): Likewise.
65368         (ctanh_test): Likewise.
65369         (exp_test): Likewise.
65370         (exp10_test): Likewise.
65371         (exp2_test): Likewise.
65372         (expm1_test): Likewise.
65373         (fma_test): Likewise.
65374         (j0_test): Likewise.
65375         (jn_test): Likewise.
65376         (nexttoward_test): Likewise.
65377         (pow_test): Likewise.
65378         (scalbn_test): Likewise.
65379         (scalbln_test): Likewise.
65380         (tan_test): Likewise.
65381         (y1_test): Likewise.
65382         * sysdeps/i386/fpu/libm-test-ulps: Update.
65383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65384
65385 2012-05-23  David S. Miller  <davem@davemloft.net>
65386
65387         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
65388         (__libc_sigaction): Remove unused local variables.
65389
65390 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
65391
65392         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
65393
65394 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
65395
65396         mktime: avoid signed integer overflow
65397         * time/mktime.c (__mktime_internal): Do not mishandle the case
65398         where diff == INT_MIN.
65399
65400         mktime: simplify computation of average
65401         * time/mktime.c (ranged_convert): Use new time_t_avg function
65402         instead of rolling our own (probably-slower) code.
65403
65404         mktime: do not assume signed right shift propagates sign bit
65405         * time/mktime.c (isdst_differ): New static function.
65406         (__mktime_internal): No need to normalize tm_isdst now.
65407         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
65408         tm_isdst values.
65409
65410         mktime: merge another wrapv change from gnulib
65411         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
65412         from some compilers.
65413
65414         mktime: remove incorrect attempt at unusual arithmetics
65415         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
65416         The code didn't really work on such machines anyway.
65417         (TYPE_MINIMUM): Assume two's complement.
65418         (twos_complement_arithmetic): Verify that long_int and time_t
65419         are two's complement (or unsigned, in the latter case).
65420
65421         mktime: check signed shifts on long_int and time_t, too
65422         * time/mktime.c (SHR): Check that shifts work as desired
65423         on the types long_int and time_t too, as SHR is used on
65424         such types.
65425
65426         mktime: do not assume 'long' is wide enough
65427         * time/mktime.c (verify): Move decl up.
65428         (long_int): New type.
65429         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
65430         to remove assumption in the code that 'long' is wide enough to
65431         store year values.  This assumption is not true on x32 and on
65432         some non-glibc platforms.
65433
65434         mktime: merge wrapv change from gnulib
65435         * time/mktime.c (WRAPV): New macro.
65436         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
65437         (guess_time_tm, __mktime_internal): Do not assume that signed
65438         integer overflow wraps around; modern compilers generate code
65439         where this assumption is no longer valid.
65440
65441 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
65442
65443         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
65444         Replace "jmp L(pseudo_end)" with "ret".
65445         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
65446         Likewise.
65447
65448 2012-05-23  Andreas Jaeger  <aj@suse.de>
65449
65450         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
65451         * sysdeps/unix/sysv/linux/poll.c: Remove file.
65452
65453 2012-05-23  Andreas Jaeger  <aj@suse.de>
65454             Maximilian Attems  <max@stro.at>
65455
65456         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
65457         New macros.
65458
65459 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
65460
65461         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
65462         code so that pseudo_end is just ret and the stack pointer is
65463         correct also for static library in error case.
65464
65465 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
65466
65467         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
65468         move to syscalls.list.
65469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
65470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
65471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
65472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
65473
65474         * manual/install.texi (Running make install): Do not mention Linux
65475         kernel version for which pt_chown is not needed.
65476         (Linux): Do not mention problems with nscd with 2.0 kernels.
65477         * INSTALL: Regenerated.
65478
65479 2012-05-23  Andreas Jaeger  <aj@suse.de>
65480
65481         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
65482         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
65483         macro.
65484         * sysdeps/unix/sysv/linux/s390/bits/mman.h
65485         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65486         * sysdeps/unix/sysv/linux/sh/bits/mman.h
65487         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65488         * sysdeps/unix/sysv/linux/i386/bits/mman.h
65489         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65490         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
65491         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65492         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
65493         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65494         * sysdeps/unix/sysv/linux/bits/in.h
65495         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
65496
65497 2012-05-22  Roland McGrath  <roland@hack.frob.com>
65498
65499         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
65500         (PREPARE_VERSION): Just use assert instead, it will be elided
65501         under [NDEBUG] anyway.
65502
65503 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
65504
65505         * sysdeps/unix/sysv/linux/Makefile: Include
65506         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
65507         (sysdep_routines): Remove sysctl.
65508         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
65509         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
65510         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
65511         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
65512         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
65513
65514 2012-05-22  Andreas Jaeger  <aj@suse.de>
65515
65516         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
65517         that pseudo_end is just ret and the stack pointer is correct also
65518         for static library in error case.
65519
65520 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
65521
65522         [BZ #14122]
65523         * nss/nsswitch.c (defconfig_entries): New variable.
65524         (__nss_database_lookup): Don't leak defconfig entries.
65525         (nss_parse_service_list): Don't leak on error paths.
65526         (free_database_entries): New function.
65527         (free_defconfig): New function.
65528         (free_mem): Move common code to free_database_entries.
65529
65530 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
65531
65532         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
65533         Add arch_prctl.
65534         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
65535
65536         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
65537         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
65538         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
65539         New macro.
65540         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
65541         (INTERNAL_SYSCALL_TYPES): Likewise.
65542         (LOAD_ARGS_TYPES_[1-6]): Likewise.
65543         (LOAD_REGS_TYPES_[1-6]): Likewise.
65544         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
65545         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
65546
65547 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65548
65549         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
65550         copysignl for GLIBC_2_0.
65551         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
65552         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
65553         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
65554         logbl for GLIBC_2_0.
65555         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
65556         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
65557
65558 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
65559
65560         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
65561         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
65562
65563         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
65564         Use "neg %eax".
65565
65566         * time/mktime.c: Update copyright years.
65567
65568 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         mktime: merge comment-quoting-style change from gnulib
65571         * time/mktime.c: Quote 'like this' in comments.
65572         The GNU coding standards suggest that we no longer quote `like this',
65573         as "`" and "'" are typically rendered asymmetrically nowadays.
65574         The typical gnulib style is to quote 'like this' when quoting
65575         code, and "like this" when quoting English.
65576
65577         * time/mktime.c (compile-command): Add "-I.".
65578
65579         mktime: merge mktime-internal.h change from gnulib
65580         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
65581
65582         mktime: merge time_r change from gnulib
65583         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
65584
65585         mktime: merge DEBUG change from gnulib
65586         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
65587         case system <time.h> has a #define.
65588
65589         mktime: merge <sys/types.h> change from gnulib
65590         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
65591         since <time.t> is now guaranteed to define time_t.
65592
65593         mktime: merge HAVE_CONFIG_H change from gnulib
65594         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
65595
65596 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
65597
65598         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
65599         Use "neg %eax".
65600
65601         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
65602         __rlim_t cast.
65603         (struct rusage): Use anonymous union to pad each field to
65604         __syscall_slong_t.
65605
65606 2012-05-21  David S. Miller  <davem@davemloft.net>
65607
65608         * Makefules (o-iterator): Remove .s cases.
65609         (compile-command.s): Delete.
65610         (COMPILE.s): Delete.
65611         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
65612
65613 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
65614
65615         * configure.in (libc_cv_predef_stack_protector): Only consider
65616         "foobar" and "__stack_chk_fail" lines in libc_undefs.
65617         * configure: Regenerated.
65618
65619 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
65620
65621         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
65622         New macro.  Use R*LP on int and pointer.
65623         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
65624         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
65625         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
65626         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
65627
65628         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
65629         [__WORDSIZE_TIME64_COMPAT32] instead of
65630         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
65631         (struct utmp): Likewise.
65632         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
65633         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
65634         Renamed to ...
65635         (__WORDSIZE_TIME64_COMPAT32): This.
65636         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
65637         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
65638         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
65639         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
65640         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
65641         (__WORDSIZE_TIME64_COMPAT32): New macro.
65642
65643 2012-05-21  Andreas Jaeger  <aj@suse.de>
65644
65645         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
65646         only if [SHARED]. Add prototype for __wcschr_ia32.
65647
65648 2012-05-21  Roland McGrath  <roland@hack.frob.com>
65649
65650         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
65651         of %rbp unmolested in the jmp_buf while mangling the low bits.
65652         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
65653         unmolested high bits of %rbp while demangling the low bits.
65654         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
65655
65656 2012-05-21  Andreas Jaeger  <aj@suse.de>
65657
65658         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
65659         * sunrpc/svc_simple.c: Use it for registerrpc.
65660         * sunrpc/xcrypt.c: Use it for passwd2des.
65661
65662         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
65663
65664 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
65665
65666         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
65667         Don't define if [__SYSCALL_WORDSIZE != 32].
65668         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
65669         New macro.
65670
65671 2012-05-21  Bruno Haible  <bruno@clisp.org>
65672             Andreas Jaeger  <aj@suse.de>
65673
65674         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
65675         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
65676         inptr and inend for must_buffer_ch.
65677         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
65678         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
65679         * stdio-common/Makefile (tests): Remove bug15.
65680         (bug15-ENV): Remove macro.
65681         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
65682         anymore.
65683
65684 2012-05-19  Andreas Jaeger  <aj@suse.de>
65685             Roland McGrath  <roland@hack.frob.com>
65686
65687         * manual/contrib.texi: Completely rewritten. It contains now an
65688         alphabetical list of contributors and their contributions.
65689
65690 2012-05-21  Richard Henderson  <rth@twiddle.net>
65691
65692         * misc/getauxval.c (__getauxval): Use unsigned long int.
65693         * misc/sys/auxv.h: Include <sys/cdefs.h>.
65694         (getauxval): Use unsigned long int.
65695
65696 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
65697
65698         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
65699
65700 2012-05-21  Roland McGrath  <roland@hack.frob.com>
65701
65702         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
65703         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
65704         __alignof__ (long double).
65705
65706 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65707
65708         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65709
65710 2012-05-20  Richard Henderson  <rth@twiddle.net>
65711
65712         * misc/getauxval.c: New file.
65713         * misc/sys/auxv.h: New file.
65714         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
65715         (routines): Add getauxval.
65716         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
65717         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
65718         * elf/dl-sysdep.c (_dl_auxv): Remove.
65719         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
65720         * elf/dl-support.c (_dl_auxv): New variable.
65721         (_dl_aux_init): Initialize it.
65722         * manual/startup.texi (Auxiliary Vector): New node.
65723         * sysdeps/generic/bits/hwcap.h: New file.
65724         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
65725         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
65726         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
65727         * sysdeps/sparc/sysdep.h: ... here.  Include it.
65728         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
65729         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
65730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65731         Update.
65732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
65733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
65734         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
65735         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
65736         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
65737         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
65738         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
65739         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
65740
65741 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65742
65743         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65744
65745 2012-05-19  David S. Miller  <davem@davemloft.net>
65746
65747         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65748
65749 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
65750
65751         [BZ #14123]
65752         * math/s_ccosh.c: Include <float.h>
65753         (__ccosh): Avoid internal overflow calculating sinh and cosh
65754         values before multiplying by sin and cos values.
65755         * math/s_ccoshf.c: Likewise.
65756         * math/s_ccoshl.c: Likewise.
65757         * math/s_csin.c: Likewise.
65758         * math/s_csinf.c: Likewise.
65759         * math/s_csinl.c: Likewise.
65760         * math/s_csinh.c: Likewise.
65761         * math/s_csinhf.c: Likewise.
65762         * math/s_csinhl.c: Likewise.
65763         * math/libm-test.inc (ccos_test): Add more tests.
65764         (ccosh_test): Likewise.
65765         (csin_test): Likewise.
65766         (csinh_test): Likewise.
65767         * sysdeps/i386/fpu/libm-test-ulps: Update.
65768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65769
65770 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
65771
65772         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
65773         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
65774
65775         * sysdeps/x86_64/x32/_itoa.h: Add comment.
65776
65777 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
65778
65779         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
65780         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
65781         * sysdeps/powerpc/soft-fp/Versions: Likewise.
65782         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
65783         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
65784         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
65785         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
65786         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
65787         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
65788         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
65789         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
65790         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
65791         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
65792         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
65793         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
65794         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
65795         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
65796         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
65797         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
65798         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
65799         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
65800         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
65801         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
65802         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
65803         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
65804         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
65805         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
65806         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
65807         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
65808         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
65809         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
65810
65811 2012-05-18  Andreas Jaeger  <aj@suse.de>
65812
65813         * csu/.gitignore: Delete.
65814
65815 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
65816
65817         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
65818         (timex): Use __syscall_slong_t.
65819
65820 2012-05-18  Andreas Jaeger  <aj@suse.de>
65821             Carlos O'Donell  <carlos_odonell@mentor.com>
65822
65823         * manual/install.texi (Configuring and compiling): Update
65824         description about files modified in the source directory.
65825         * INSTALL: Regenerated.
65826
65827 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
65828
65829         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
65830         value.  Use "or" to set return value to -1.
65831         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
65832         negate return value.
65833
65834 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65835
65836         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
65837         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
65838         failure if the compiler has Graphite support disabled.
65839         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
65840         Likewise.
65841         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
65842         (CFLAGS-memmove.c): Likewise.
65843         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
65844         Likewise.
65845
65846 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
65847
65848         * sysdeps/x86_64/x32/_itoa.h: New file.
65849
65850         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
65851         getdents system call only if kernel and user dirents have the
65852         same d_ino and d_off.
65853
65854         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
65855         LLONG_MAX != LONG_MAX.
65856         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65857         (_fitoa_word): Likewise.
65858
65859         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
65860         years.
65861         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
65862         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
65863         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
65864
65865         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
65866         include <bits/wordsize.h>.  Check __x86_64__ instead of
65867         __WORDSIZE.
65868         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
65869         if __x86_64__ is defined.  Use anonymous union on fpstate.
65870
65871         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
65872         anonymous union.
65873
65874 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
65875
65876         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
65877         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
65878         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
65879         Refer to _rtld_local_ro instead of _rtld_global_ro.
65880         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
65881         Likewise.
65882         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
65883         Likewise.
65884         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
65885         Likewise.
65886         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
65887         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
65888         of _rtld_global, and rtld_progname instead of _dl_argv[0].
65889
65890         [BZ #10882]
65891         * sysdeps/powerpc/powerpc32/dl-machine.c
65892         (__elf_machine_runtime_setup) [PROF]: Don't reference
65893         _dl_prof_resolve.
65894
65895 2012-05-18  Andreas Jaeger  <aj@suse.de>
65896
65897         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
65898         function only available for GCCs before 3.4 since GCC 3.4
65899         introduced a builtin.
65900         (lrint): Likewise.
65901         (llrintf): Likewise.
65902         (llrint): Likewise.
65903         (fmaxf): Likewise.
65904         (fmax): Likewise.
65905         (fminf): Likewise.
65906         (fmin): Likewise.
65907         (rint): Likewise.
65908         (rintf): Likewise.
65909         (nearbyint): Likewise.
65910         (nearbyintf): Likewise.
65911         (ceil): Likewise.
65912         (ceilf): Likewise.
65913         (floor): Likewise.
65914         (floorf): Likewise.
65915
65916 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
65917
65918         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
65919         on both fields and cast pointer to __syscall_ulong_t.
65920
65921         * bits/types.h (__fsword_t): New type.
65922         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
65923         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
65924         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65925         (__FSWORD_T_TYPE): Likewise.
65926         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65927         (__FSWORD_T_TYPE): Likewise.
65928         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65929         (__FSWORD_T_TYPE): Likewise.
65930         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
65931         (__FSWORD_T_TYPE): Likewise.
65932         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
65933         __SWORD_TYPE with __fsword_t.
65934         (statfs64): Likewise.
65935
65936 2012-05-17  David S. Miller  <davem@davemloft.net>
65937
65938         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
65939
65940 2012-05-17  Andreas Jaeger  <aj@suse.de>
65941
65942         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
65943         warning.
65944
65945 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
65946
65947         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
65948
65949 2012-05-17  Andreas Jaeger  <aj@suse.de>
65950
65951         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
65952         when it is used.
65953
65954 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
65955
65956         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
65957
65958 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
65959
65960         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
65961         * sysdeps/x86_64/tst-mallocalign1.c: New file.
65962
65963 2012-05-17  Andreas Jaeger  <aj@suse.de>
65964             Carlos O'Donell  <carlos_odonell@mentor.com>
65965
65966         [BZ #14059]
65967         * sysdeps/x86_64/multiarch/init-arch.h
65968         (bit_YMM_Usable): Rename to...
65969         (bit_AVX_Usable): ... this.
65970         (bit_FMA4_Usable): New macro.
65971         (bit_XMM_state): New macro.
65972         (bit_YMM_state): New macro.
65973         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
65974         [__ASSEMBLER__] (index_AVX_Usable): ... this.
65975         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
65976         (CPUID_OSXSAVE): New macro.
65977         (CPUID_AVX): New macro.
65978         (CPUID_FMA4): New macro.
65979         (index_YMM_Usable): Rename to...
65980         (index_AVX_Usable): ... this.
65981         (HAS_AVX): Use HAS_ARCH_FEATURE.
65982         (HAS_FMA4): Likewise.
65983         (HAS_YMM_USABLE): Remove.
65984         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
65985         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
65986         are present.
65987         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
65988         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
65989         * sysdeps/x86_64/multiarch/Makefile: Likewise.
65990         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
65991         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
65992
65993 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
65994
65995         * math/libm-test.c: Support platforms without multiple rounding modes.
65996         * math/bug-nextafter.c: Support platforms without FP exceptions.
65997         * math/bug-nexttoward.c: Likewise.
65998         * math/test-fenv.c: Likewise.
65999         * math/test-misc.c: Likewise.
66000         * stdlib/bug-getcontext.c: Likewise.
66001
66002 2012-05-17  Andreas Jaeger  <aj@suse.de>
66003
66004         * manual/examples/search.c (critter_cmp): Change signature to
66005         avoid warnings.
66006         * manual/string.texi (Collation Functions): Likewise.
66007
66008 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
66009
66010         * bits/types.h: Fold copyright years.
66011         * bits/typesizes.h: Likewise.
66012         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
66013         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
66014         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
66015         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
66016         * time/time.h: Likewise.
66017
66018 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
66019
66020         [BZ #208]
66021         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
66022         in instead of returning them.  Return void.
66023         (__libc_mallinfo): Accumulate over all arenas.
66024         (__malloc_stats): Adjust for change in int_mallinfo interface.
66025
66026 2012-05-16  Roland McGrath  <roland@hack.frob.com>
66027
66028         [BZ #10375]
66029         * configure.in (NM): Add AC_CHECK_TOOL for it.
66030         (libc_extra_cflags): New substituted variable.
66031         Check for -fstack-protector being used implicitly.
66032         * configure: Regenerated.
66033         * config.make.in (config-extra-cflags): New variable,
66034         gets @libc_extra_cflags@.
66035         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
66036
66037         [BZ #10375]
66038         * configure.in: Check for _FORTIFY_SOURCE being predefined.
66039         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
66040         * configure: Regenerated.
66041         * config.make.in (CPPUNDEFS): New substituted variable.
66042         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
66043         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
66044         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
66045
66046 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
66047
66048         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
66049         (mq_attr): Use __syscall_slong_t.
66050
66051 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
66052
66053         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
66054         Check __x86_64__ instead of __WORDSIZE.
66055         (_STAT_VER_LINUX): Likewise.
66056         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
66057         __syscall_ulong_t and __syscall_slong_t.
66058         (stat64): Likewise.
66059
66060 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
66061
66062         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
66063
66064 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
66065
66066         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
66067
66068 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
66069
66070         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
66071         __syscall_ulong_t.
66072
66073         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
66074         include <bits/wordsize.h>.  Check __x86_64__ instead of
66075         __WORDSIZE.
66076         (greg_t): Use "__extension__ long long int" if __x86_64__ is
66077         defined.
66078         (mcontext_t): Replace "unsigned long" with "unsigned long long".
66079
66080         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
66081         include <bits/wordsize.h>.  Check __x86_64__ instead of
66082         __WORDSIZE.
66083         (user_regs_struct): Use "__extension__ unsigned long long"
66084         instead of "unsigned long" if __x86_64__ is defined.
66085         (user): Likewise.  Pad after pointer field if __ILP32__ is
66086         defined.
66087
66088 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
66089
66090         * configure.in (makeinfo): Require version 4.5 or later.  Allow
66091         versions 5 to 9.
66092         * configure: Regenerated.
66093         * manual/install.texi (texinfo): Increase version requirement to
66094         4.5 or later.
66095         * INSTALL: Regenerated.
66096
66097         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
66098
66099 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
66100
66101         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
66102
66103         * sysdeps/x86_64/x32/ffs.c: New file.
66104
66105         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
66106         __syscall_ulong_t.
66107         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
66108         defined.  Use __syscall_ulong_t.
66109         (shminfo): Use __syscall_ulong_t.
66110         (shm_info): Likewise.
66111
66112         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
66113         __syscall_ulong_t.
66114
66115         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
66116         <bits/wordsize.h>.
66117         (msgqnum_t): Use __syscall_ulong_t.
66118         (msglen_t): Likewise.
66119         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
66120         __syscall_ulong_t.
66121
66122         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
66123         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
66124
66125         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
66126
66127         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
66128         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
66129
66130         * sysvipc/sys/msg.h (msgbuf): Replace long int with
66131         __syscall_slong_t.
66132
66133         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
66134         include <bits/wordsize.h>.  Check __x86_64__ instead of
66135         __WORDSIZE.
66136
66137         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
66138         "unsigned long long int" if __x86_64__ is defined.
66139         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
66140
66141         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
66142         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
66143         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
66144
66145         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
66146         <stdint.h>.
66147         (GET_PC): Cast to uintptr_t first.
66148         (GET_FRAME): Likewise.
66149         (GET_STACK): Likewise.
66150
66151         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
66152         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
66153         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
66154         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
66155         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
66156         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
66157         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
66158         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
66159         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
66160         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
66161         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
66162         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
66163         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
66164         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
66165         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
66166         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
66167         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
66168         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
66169         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
66170         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
66171         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
66172         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
66173         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
66174         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
66175         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
66176         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
66177         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
66178         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
66179         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
66180
66181 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
66182
66183         * Makerules (+depfiles): Also collect depfiles from .oS in
66184         $(extra-objs).
66185         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
66186         .oS, $(libnldbl-routines)).
66187
66188         * Makerules (native-compile-mkdep-flags): Define.
66189         * sunrpc/Makefile (extra-objs): Add $(addprefix
66190         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
66191         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
66192         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
66193         calling $(make-target-directory).
66194
66195 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66196
66197         * bits/types.h (__snseconds_t): Removed.
66198         * time/time.h (struct timespec): Replace __snseconds_t with
66199         __syscall_slong_t.
66200         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
66201         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
66202         Likewise.
66203         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
66204         (__SNSECONDS_T_TYPE): Likewise.
66205         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
66206         (__SNSECONDS_T_TYPE): Likewise.
66207         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
66208         (__SNSECONDS_T_TYPE): Likewise.
66209
66210 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66211
66212         * sysdeps/mach/hurd/bits/typesizes.h
66213         (__SYSCALL_SLONG_TYPE): New macro.
66214         (__SYSCALL_ULONG_TYPE): Likewise.
66215
66216 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66217
66218         * bits/types.h (__syscall_slong_t): New type.
66219         (__syscall_ulong_t): Likewise.
66220
66221         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
66222         (__SYSCALL_ULONG_TYPE): Likewise.
66223         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
66224         (__SYSCALL_SLONG_TYPE): Likewise.
66225         (__SYSCALL_ULONG_TYPE): Likewise.
66226         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
66227         (__SYSCALL_SLONG_TYPE): Likewise.
66228         (__SYSCALL_ULONG_TYPE): Likewise.
66229         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
66230         (__SYSCALL_SLONG_TYPE): Likewise.
66231         (__SYSCALL_ULONG_TYPE): Likewise.
66232
66233 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66234
66235         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
66236         Add sigaltstack-offsets.sym.
66237         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
66238         <sigaltstack-offsets.h>.
66239         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
66240         longjmp_msg pointer.
66241         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
66242         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
66243         signal stack.
66244         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
66245
66246 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
66247
66248         * elf/stackguard-macros.h: Remove file.
66249         * sysdeps/generic/stackguard-macros.h: New file.
66250         * sysdeps/i386/stackguard-macros.h: Likewise.
66251         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
66252         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
66253         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
66254         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
66255         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
66256         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
66257         * sysdeps/x86_64/stackguard-macros.h: Likewise.
66258         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
66259         <elf/stackguard-macros.h>.
66260
66261         [BZ #14109]
66262         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
66263         __aligned__ in attribute.
66264         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
66265         (gregset_t): Likewise.
66266
66267 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66268
66269         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
66270         * sysdeps/x86_64/64/Implies-after: Here.  New file.
66271         * sysdeps/x86_64/x32/Implies-after: New file.
66272
66273 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66274
66275         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
66276         and access return value for _dl_profile_fixup.  Use R10_LP to
66277         load frame size.
66278
66279 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66280
66281         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
66282
66283 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66284
66285         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
66286         * sysdeps/x86_64/x32/sysdep.h: New file.
66287
66288 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66289
66290         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
66291         * sysdeps/x86_64/setjmp.S: Likewise.
66292
66293 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66294
66295         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
66296         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
66297         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
66298         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
66299         remove unused global constant.
66300
66301 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
66302
66303         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
66304         include of <not-cancel.h>.
66305
66306 2012-05-15  Roland McGrath  <roland@hack.frob.com>
66307
66308         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
66309
66310 2012-05-15  Jeff Law  <law@redhat.com>
66311             Andreas Jaeger  <aj@suse.de>
66312
66313         [BZ #13594]
66314         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
66315         out from...
66316         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
66317         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
66318         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
66319         code changing __hst_map_handle.map.
66320
66321 2012-05-15  Roland McGrath  <roland@hack.frob.com>
66322
66323         * configure.in (sysnames): Look for Implies-before and Implies-after
66324         files.
66325         * configure: Regenerated.
66326
66327 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66328
66329         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
66330         8-byte data alignment with LP_SIZE alignment.
66331
66332 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66333
66334         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
66335         into R10_LP.
66336
66337 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66338
66339         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
66340
66341 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66342
66343         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
66344         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
66345         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
66346         Likewise.
66347         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
66348
66349 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66350
66351         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
66352         (stackinfo_sub_sp): Likewise.
66353
66354 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66355
66356         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
66357         RAX_LP.
66358
66359 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66360
66361         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
66362         into R*_LP.
66363
66364 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66365
66366         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
66367         sizes into R*_LP.
66368
66369 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66370
66371         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
66372
66373 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66374
66375         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
66376         into R11_LP and load __x86_64_shared_cache_size_half into
66377         R8_LP.
66378
66379 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66380
66381         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
66382         R8_LP.
66383
66384 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66385
66386         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
66387         logb for POWER7.
66388         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
66389         logbf for POWER7.
66390         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
66391         logbl for POWER7.
66392         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
66393         powerpc32/power7/fpu/s_logb.c via #include.
66394         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
66395         powerpc32/power7/fpu/s_logbf.c via #include.
66396         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
66397         powerpc32/power7/fpu/s_logbl.c via #include.
66398
66399 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
66400
66401         * README.libm: Remove file.
66402
66403 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66404
66405         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
66406         count for x32.  Use R*_LP and omit operand-size suffix.
66407
66408 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66409
66410         * shlib-versions: Move x86_64-.*-linux.* entries to ...
66411         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
66412         * sysdeps/x86_64/x32/shlib-versions: New file.
66413
66414 2012-05-14  Roland McGrath  <roland@hack.frob.com>
66415
66416         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
66417         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
66418         Use _dl_fatal_printf instead.
66419
66420 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
66421
66422         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
66423         set if not set by the user.  Do not allow for being unset.
66424         * sysdeps/unix/sysv/linux/configure: Regenerated.
66425
66426 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66427
66428         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
66429         the `q' suffix from lea and replace .quad with ASM_ADDR.
66430
66431 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66432
66433         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
66434         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
66435         instead of $17.
66436         (PTR_DEMANGLE): Likewise.
66437
66438 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66439
66440         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
66441         (LP_OP): Likewise.
66442         (ASM_ADDR): Likewise.
66443         (RAX_LP): Likewise.
66444         (RBP_LP): Likewise.
66445         (RBX_LP): Likewise.
66446         (RCX_LP): Likewise.
66447         (RDI_LP): Likewise.
66448         (RSI_LP): Likewise.
66449         (RSP_LP): Likewise.
66450         (R8_LP): Likewise.
66451         (R9_LP): Likewise.
66452         (R10_LP): Likewise.
66453         (R10_LP): Likewise.
66454         (R11_LP): Likewise.
66455         (R12_LP): Likewise.
66456         (R13_LP): Likewise.
66457         (R14_LP): Likewise.
66458         (R15_LP): Likewise.
66459
66460 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66461
66462         * sysdeps/x86_64/x32/dl-machine.h: New file.
66463
66464 2012-05-14  Andreas Jaeger  <aj@suse.de>
66465
66466         * manual/Makefile (subdir): Remove export of subdir.
66467         (all): Remove target.
66468         (.PHONY): Remove all from list.
66469         (mkinstalldirs): Remove.
66470         (.PHONY): Remove installdirs from list.
66471         ($(inst_infodir)/libc.info): Use make-target-directory.
66472         (installdirs): Remove.
66473         (subdir_%): Remove.
66474         (glibc-targets): Remove.
66475         (lib): Remove.
66476         (stubs): Remove.
66477         ($(objpfx)stubs ../po/manual.pot): Remove.
66478         ($(objpfx)stamp%): Remove.
66479         (make-target-directory): Remove.
66480         (subdir_install): Remove.
66481         (routines): Remove.
66482         (aux): Remove.
66483         (sources): Remove.
66484         (objects): Remove.
66485         (headers): Remove.
66486
66487         [BZ #13750]
66488         * manual/.gitignore: Remove, it's not needed anymore.
66489         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
66490         all files in it.
66491         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
66492         directory.
66493         (texis): Renamed to $(objpfx)texis.
66494         (texis-path): New, contains path to generated files.
66495         (chapters.%): Use texis-path for complete path, add extra argument
66496         libc-texinfo.sh.
66497         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
66498         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
66499         (summary,texi, stamp-summary): Use complete path of
66500         files. Generate files in build dir.
66501         (dir-add.texi): Build in build dir.
66502         (libm-err.texi,stamp-libm-err): Likewise.
66503         (version.texi, stamp-version): Likewise.
66504         (.%c.texi): Likewise.
66505         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
66506         (mostlyclean): Remove target.
66507         (realclean): Remove target.
66508         (generated): Add new variable with contents from mostlyclean and
66509         realclean, remove entries duplicated in common-mostlyclean, add
66510         stamp-libm-err and stamp-version.
66511         (generated-dirs): Add libc directory.
66512         ($(inst_infodir)/libc.info): Install files from build dir.
66513
66514         * manual/install.texi (Configuring and compiling): Adjust since
66515         the info files are not part of the tar ball anymore.
66516
66517 2012-05-14  Andreas Jaeger  <aj@suse.de>
66518
66519         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
66520         variable.
66521
66522 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
66523
66524         [BZ #13717]
66525         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
66526         to 2.2.0 where earlier.
66527         * sysdeps/unix/sysv/linux/configure: Regenerated.
66528         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
66529         Remove conditional code.
66530         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
66531         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
66532         Remove conditional code.
66533         [!__NR_lchown]: Likewise.
66534         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
66535         [__NR_lchown]: Likewise.
66536         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
66537         comment referencing __ASSUME_LCHOWN_SYSCALL.
66538         * sysdeps/unix/sysv/linux/i386/sigaction.c
66539         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66540         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66541         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
66542         Remove conditional code.
66543         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
66544         (__protocol_available): Remove #if 0 code.
66545         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
66546         conditional code.
66547         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
66548         * sysdeps/unix/sysv/linux/kernel-features.h
66549         (__ASSUME_GETCWD_SYSCALL): Don't define.
66550         (__ASSUME_REALTIME_SIGNALS): Likewise.
66551         (__ASSUME_PREAD_SYSCALL): Likewise.
66552         (__ASSUME_PWRITE_SYSCALL): Likewise.
66553         (__ASSUME_POLL_SYSCALL): Likewise.
66554         (__ASSUME_LCHOWN_SYSCALL): Likewise.
66555         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
66556         non-SPARC.
66557         (__ASSUME_SIOCGIFNAME): Don't define.
66558         (__ASSUME_MSG_NOSIGNAL): Likewise.
66559         (__ASSUME_SENDFILE): Define unconditionally.
66560         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
66561         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
66562         conditional code.
66563         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
66564         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
66565         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
66566         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
66567         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
66568         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
66569         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
66570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
66571         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
66572         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
66574         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
66575         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
66577         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66578         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
66580         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66581         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
66583         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
66584         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
66586         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
66587         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
66589         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66590         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
66592         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66593         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66594         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
66595         Remove conditional code.
66596         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66597         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
66598         Remove conditional code.
66599         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66600         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
66601         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
66602         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
66603         Remove conditional code.
66604         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66605         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
66606         Remove conditional code.
66607         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66608         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
66609         Remove conditional code.
66610         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66611         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
66612         Remove conditional code.
66613         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66614         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
66615         Remove conditional code.
66616         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66617         * sysdeps/unix/sysv/linux/sh/pwrite64.c
66618         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66619         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66620         * sysdeps/unix/sysv/linux/sigaction.c
66621         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66622         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66623         * sysdeps/unix/sysv/linux/sigpending.c
66624         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66625         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66626         * sysdeps/unix/sysv/linux/sigprocmask.c
66627         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66628         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66629         * sysdeps/unix/sysv/linux/sigsuspend.c
66630         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66631         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66632         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
66633         (__libc_missing_rt_sigs): Remove.
66634         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
66635         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
66636         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
66637         Remove conditional code.
66638         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
66639         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
66640         return 1.
66641         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
66642         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
66643         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
66644         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
66645
66646 2012-05-14  Andreas Jaeger  <aj@suse.de>
66647
66648         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
66649         it's not used in glibc.
66650         (__coshm1): Likewise.
66651         (__acosh1p): Likewise.
66652         (__sgn): Likewise.
66653
66654         * manual/string.texi (Copying and Concatenation): Add missing
66655         variable in concat example.
66656         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
66657
66658 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66659
66660         [BZ #14103]
66661         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
66662         __builtin_clzl with __builtin_clzll.
66663
66664 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66665
66666         [BZ #14104]
66667         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
66668         libc_freeres_ptr.
66669
66670 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66671
66672         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
66673         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
66674         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
66675         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
66676
66677 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
66678
66679         * NEWS: Update ia64 info.
66680
66681 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
66682
66683         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
66684         used as bcopy.
66685
66686 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
66687
66688         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
66689         * sysdeps/unix/syscalls.list (dup3): Likewise.
66690         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
66691         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
66692
66693 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
66694
66695         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
66696         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
66697
66698 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
66699
66700         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
66701         thread pointer.
66702         (TLS_IE): Use mov/add instead of movq/addq to load thread
66703         pointer.
66704         (TLS_GD_PREFIX): New.
66705         (TLS_GD): Use it.
66706
66707 2012-05-11  David S. Miller  <davem@davemloft.net>
66708
66709         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
66710         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
66711         (_FPU_SETCW): Likewise.
66712
66713 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
66714
66715         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
66716         is 32-byte aligned.
66717
66718 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
66719
66720         [BZ #11837]
66721         * iconvdata/gb18030.c: Update tables.
66722         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
66723         characters specially.
66724         (BODY for TO_LOOP): Add encoding of missing ranges.
66725
66726 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
66727
66728         [BZ #13673]
66729         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
66730         * sysdeps/mach/hurd/dup3.c: Likewise.
66731         * sysdeps/mach/hurd/readlinkat.c: Likewise.
66732         * sysdeps/powerpc/memmove.c:: Likewise.
66733
66734 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
66735
66736         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
66737         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
66738
66739 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
66740
66741         * elf/elf.h (R_X86_64_RELATIVE64): New.
66742         (R_X86_64_NUM): Updated.
66743         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
66744         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
66745         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
66746         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
66747         tst-quad1pie tst-quad2pie
66748         (modules-names): Add tst-quadmod1 tst-quadmod2.
66749         ($(objpfx)tst-quad1): New dependency.
66750         ($(objpfx)tst-quad2): Likewise.
66751         ($(objpfx)tst-quad1pie): Likewise.
66752         ($(objpfx)tst-quad2pie): Likewise.
66753         * sysdeps/x86_64/tst-quad1.c: New file.
66754         * sysdeps/x86_64/tst-quad1pie.c: New file.
66755         * sysdeps/x86_64/tst-quad2.c: Likewise.
66756         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
66757         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
66758         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
66759         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
66760         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
66761
66762 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66763
66764         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
66765         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
66766         * streams/stropts.h (t_scalar_t): Define type.
66767
66768         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
66769         (_PATH_PRESERVE): Set to "/var/lib".
66770         (_PATH_RWHODIR): Set to "/var/spool/rwho".
66771
66772         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
66773         instead of int.
66774
66775         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
66776         if __dir_mkfile succeeded.
66777
66778         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
66779         checking for _hurd_dtablesize.  Unlock it right after having
66780         finished _hurd_dtable allocation.
66781
66782 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66783
66784         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
66785         * sysdeps/mach/hurd/configure: Regenerated.
66786         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
66787         special-casing to...
66788         * sysdeps/gnu/configure.in: ... this new file.
66789         * sysdeps/unix/sysv/linux/configure: Regenerated.
66790         * sysdeps/gnu/configure: New generated file.
66791
66792         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
66793         for Linux: use nsec instead of usec, as well as:
66794         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
66795         members of type struct timespec.
66796         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
66797         New macros.
66798         (struct stat64): Likewise.
66799         (_STATBUF_ST_NSEC): New macro.
66800         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
66801
66802         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
66803         __strtoul_internal rather than strtoul.
66804
66805 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
66806
66807         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
66808         and reject them.
66809
66810 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66811
66812         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
66813         which preserves existing values.
66814         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
66815
66816 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
66817
66818         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
66819         TIMEOUT values.  Return EINVAL for NFDS values either negative or
66820         greater than FD_SETSIZE.
66821
66822 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66823
66824         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
66825         allocated, call __vm_protect to finish enabling the existing space, and
66826         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
66827         allocate the remainder.
66828
66829 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
66830
66831         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
66832         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
66833
66834 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66835
66836         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
66837         sysdeps/mach/hurd/readlink.c.
66838
66839         * posix/tst-sysconf.c (posix_options): Only use
66840         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
66841         _POSIX_SYNCHRONIZED_IO when they are defined
66842         * sysdeps/mach/hurd/bits/posix_opt.h:
66843         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
66844         (_XOPEN_REALTIME): Undefine macro.
66845         (_XOPEN_REALTIME_THREADS): Undefine macro.
66846         (_XOPEN_SHM): Undefine macro.
66847         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
66848         macro to -1.
66849         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
66850         macro to -1.
66851         (_POSIX_ASYNC_IO): Undefine macro.
66852         (_POSIX_PRIORITIZED_IO): Undefine macro.
66853         (_POSIX_SPIN_LOCKS): Define macro to -1.
66854
66855         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
66856         SA_NODEFER, SA_RESETHAND.
66857         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
66858         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
66859         F_DUPFD_CLOEXEC.
66860
66861 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66862
66863         * elf/Makefile (pldd-modules): Define unconditionally.
66864
66865 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66866
66867         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
66868
66869 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66870
66871         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
66872         Return ENOENT when name is empty.
66873         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
66874
66875 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66876
66877         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
66878
66879         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
66880
66881 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66882
66883         Fix mlock in all cases except non-readable pages.
66884         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
66885         instead of VM_PROT_ALL as parameter to __vm_wire function.
66886
66887         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
66888         (__mkdir): When path is `/', just fail with EEXIST.
66889         * sysdeps/mach/hurd/mkdirat.c: Likewise.
66890
66891 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66892
66893         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
66894         <sys/uio.h> (for writev).
66895         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
66896         and <sys/param.h> (for MIN).
66897
66898 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
66899
66900         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
66901         REQUESTED_TIME.  Properly set the remaining time and return EINTR
66902         if interrupted.
66903
66904 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66905
66906         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
66907         Depend on against $(link-rpcuserlibs).
66908
66909 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66910
66911         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
66912         (__libc_stack_end): Do not use attribute_relro.
66913         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
66914         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
66915         to libthread-provided value.
66916         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
66917         attribute_relro.
66918
66919 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66920
66921         [BZ #3748]
66922         * bits/libc-lock.h (__libc_once_get): New macro.
66923         * sysdeps/mach/bits/libc-lock.h: Likewise.
66924         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
66925         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
66926         instead of using implementation details.
66927
66928         * libio/fileops.c: Unconditionally include <kernel-features.h>.
66929         * libio/freopen.c: Likewise.
66930         * libio/freopen64.c: Likewise.
66931         * misc/syslog.c: Likewise.
66932         * nscd/connections.c: Likewise.
66933         * nscd/netgroupcache.c: Likewise.
66934         * sysdeps/posix/getcwd.c: Likewise.
66935
66936 2012-05-10  Roland McGrath  <roland@hack.frob.com>
66937
66938         * math/w_ilogbf.c: Add #include <limits.h>.
66939
66940 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66941
66942         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
66943         path instead of returning without unlocking.
66944
66945         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
66946         immediate-write ioctls.
66947         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
66948
66949 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66950
66951         * sysdeps/mach/hurd/i386/init-first.c (init): Use
66952         __builtin_frame_address instead of making assumptions about the
66953         location of the return address relative to DATA.  Force early load of
66954         the return address.
66955         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
66956         __builtin_frame_address.
66957
66958         dup3 for GNU Hurd.
66959         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
66960         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
66961         implement dup3 and do some further code clean-ups.
66962         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
66963         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
66964
66965 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66966
66967         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
66968
66969         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
66970         HURD_CRITICAL_END around holding _hurd_dtable_lock.
66971         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
66972         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
66973         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
66974         d->port.lock.
66975
66976         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
66977         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
66978         when handler == SIG_ERR, not when handler != SIG_ERR.
66979
66980 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66981
66982         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
66983         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
66984         definitions.
66985
66986         accept4 for GNU Hurd.
66987         * include/sys/socket.h (__libc_accept4): New prototype.
66988         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
66989         to implement __libc_accept4.
66990         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
66991         __libc_accept4.
66992         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
66993
66994         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
66995         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
66996         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
66997         signal-defines.sym.
66998
66999 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
67000
67001         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
67002
67003 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
67004
67005         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
67006         assertion on O_CLOEXEC flag.
67007         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
67008         * hurd/intern-fd.c: Likewise.
67009         * hurd/port2fd.c: Likewise.
67010
67011 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
67012
67013         [BZ #3906]
67014         * bits/in.h (IPV6_PKTINFO): Define new macro.
67015         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
67016
67017 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67018
67019         [BZ #13954]
67020         [BZ #13955]
67021         [BZ #13956]
67022         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
67023         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
67024         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
67025         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
67026         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67027         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
67028         * math/libm-test.inc (logb_test) : Additional logb tests.
67029
67030 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
67031             Andreas Jaeger  <aj@suse.de>
67032
67033         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
67034         * configure: Regenerated.
67035         * config.h.in (LINK_OBSOLETE_RPC): New macro.
67036         * config.make.in (link-obsolete-rpc): New substituted variable.
67037         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
67038         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
67039         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
67040         (shared-only-routines): Don't set it under [link-obsolete-rpc],
67041         so that libc.a contains the symbols.
67042         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
67043         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
67044         * sunrpc/auth_none.c: Likewise.
67045         * sunrpc/auth_unix.c: Likewise.
67046         * sunrpc/authdes_prot.c: Likewise.
67047         * sunrpc/authuxprot.c: Likewise.
67048         * sunrpc/clnt_gen.c: Likewise.
67049         * sunrpc/clnt_perr.c: Likewise.
67050         * sunrpc/clnt_raw.c: Likewise.
67051         * sunrpc/clnt_simp.c: Likewise.
67052         * sunrpc/clnt_tcp.c: Likewise.
67053         * sunrpc/clnt_udp.c: Likewise.
67054         * sunrpc/clnt_unix.c: Likewise.
67055         * sunrpc/des_crypt.c: Likewise.
67056         * sunrpc/des_soft.c: Likewise.
67057         * sunrpc/get_myaddr.c: Likewise.
67058         * sunrpc/key_call.c: Likewise.
67059         * sunrpc/key_prot.c: Likewise.
67060         * sunrpc/netname.c: Likewise.
67061         * sunrpc/pm_getmaps.c: Likewise.
67062         * sunrpc/pm_getport.c: Likewise.
67063         * sunrpc/pmap_clnt.c: Likewise.
67064         * sunrpc/pmap_prot.c: Likewise.
67065         * sunrpc/pmap_prot2.c: Likewise.
67066         * sunrpc/pmap_rmt.c: Likewise.
67067         * sunrpc/publickey.c: Likewise.
67068         * sunrpc/rpc_cmsg.c: Likewise.
67069         * sunrpc/rpc_common.c: Likewise.
67070         * sunrpc/rpc_dtable.c: Likewise.
67071         * sunrpc/rpc_prot.c: Likewise.
67072         * sunrpc/rpc_thread.c: Likewise.
67073         * sunrpc/rtime.c: Likewise.
67074         * sunrpc/svc.c: Likewise.
67075         * sunrpc/svc_auth.c: Likewise.
67076         * sunrpc/svc_raw.c: Likewise.
67077         * sunrpc/svc_run.c: Likewise.
67078         * sunrpc/svc_tcp.c: Likewise.
67079         * sunrpc/svc_udp.c: Likewise.
67080         * sunrpc/svc_unix.c: Likewise.
67081         * sunrpc/svcauth_des.c: Likewise.
67082         * sunrpc/xcrypt.c: Likewise.
67083         * sunrpc/xdr.c: Likewise.
67084         * sunrpc/xdr_array.c: Likewise.
67085         * sunrpc/xdr_float.c: Likewise.
67086         * sunrpc/xdr_intXX_t.c: Likewise.
67087         * sunrpc/xdr_mem.c: Likewise.
67088         * sunrpc/xdr_rec.c: Likewise.
67089         * sunrpc/xdr_ref.c: Likewise.
67090         * sunrpc/xdr_sizeof.c: Likewise.
67091         * sunrpc/xdr_stdio.c: Likewise.
67092
67093 2012-05-10  Roland McGrath  <roland@hack.frob.com>
67094
67095         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
67096         change.  Update copyright years.
67097
67098 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
67099
67100         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
67101
67102 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
67103             Joseph Myers  <joseph@codesourcery.com>
67104             Paul Pluzhnikov  <ppluzhnikov@google.com>
67105
67106         [BZ #14012]
67107         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
67108         requiring rpcgen.
67109         [cross-compiling] (extra-libs): Likewise.
67110         [cross-compiling] (extra-libs-others): Likewise.
67111         [cross-compiling] (librpcsvc-routines): Likewise.
67112         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
67113         [cross-compiling] (omit-deps): Likewise.
67114         (sunrpc-CPPFLAGS): New variable.
67115         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
67116         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
67117         (cross-rpcgen-objs): New variable.
67118         (extra-objs): Append $(cross-rpcgen-objs).
67119         ($(cross-rpcgen-objs)): New rule.
67120         ($(objpfx)cross-rpcgen): Likewise.
67121         (rpcgen-cmd): Define to use $(built-program-file).  Expand
67122         comment.
67123         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
67124         ($(objpfx)x%.stmp): Likewise.
67125         * sunrpc/proto.h [IS_IN_build] (_): Define.
67126         [IS_IN_build] (_libc_intl_domainname): Likewise.
67127
67128 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
67129
67130         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
67131         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
67132         and R_X86_64_TPOFF64.
67133
67134 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
67135
67136         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
67137         sysdeps/unix/sysv/syscalls.list.
67138         (stime): Likewise.
67139         (utime): Likewise.
67140         * sysdeps/unix/sysv/syscalls.list: Remove file.
67141
67142 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67143
67144         [BZ #3440]
67145         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
67146         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
67147         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
67148         (__LC_IDENTIFICATION): Make these macros useful in #if
67149         expressions, as required by C99.
67150
67151 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
67152
67153         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
67154         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
67155         after this.
67156
67157 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
67158
67159         * stdlib/longlong.h: Updated from GCC.
67160
67161 2012-05-09  Andreas Jaeger  <aj@suse.de>
67162
67163         * nscd/nscd.c (run_modes): Make named enum, reorder so that
67164         default is first entry.
67165         (run_mode): Set type.
67166         (main): Remove informal message about syslog.
67167         (options): Fix typo.
67168
67169         [BZ #14053]
67170         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
67171         to asm.
67172         (lrint): Likewise.
67173         (llrintf): Likewise.
67174         (llrint): Likewise.
67175         (rint): Likewise.
67176         (rintf): Likewise.
67177         (nearbyint): Likewise.
67178         (nearbyintf): Likewise.
67179
67180 2012-05-09  Andreas Jaeger  <aj@suse.de>
67181             Pedro Alves  <palves@redhat.com>
67182
67183         * nscd/nscd.c (run_mode): Use enum.
67184         (main): Cleanup coding style issue.
67185
67186 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
67187             Andreas Jaeger  <aj@suse.de>
67188
67189         * nscd/nscd.c (go_background): Replaced with...
67190         (run_mode): ... this.
67191         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
67192         (options): Add -F --foreground.
67193         (main): Implement it.
67194         (parse_opt): Parse it.
67195
67196 2012-05-09  Andreas Jaeger  <aj@suse.de>
67197
67198         [BZ #14083]
67199         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
67200         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
67201         -Wconversion warning.
67202         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
67203         Likewise.
67204
67205 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
67206
67207         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
67208         == 0.
67209         (LC_ALL): Use macro-int-constant.
67210         (LC_COLLATE): Likewise.
67211         (LC_CTYPE): Likewise.
67212         (LC_MESSAGES): Likewise.
67213         (LC_MONETARY): Likewise.
67214         (LC_NUMERIC): Likewise.
67215         (LC_TIME): Likewise.
67216         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
67217         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
67218         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67219         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
67220         Specify type.
67221         [C99-based standards] (float_t): Expect type.
67222         [C99-based standards] (double_t): Expect type.
67223         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
67224         type.
67225         [C99-based standards] (HUGE_VALL): Likewise.
67226         [C99-based standards] (INFINITY): Likewise.
67227         [C99-based standards] (NAN): Likewise.
67228         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
67229         [C99-based standards] (FP_NAN): Likewise.
67230         [C99-based standards] (FP_NORMAL): Likewise.
67231         [C99-based standards] (FP_SUBNORMAL): Likewise.
67232         [C99-based standards] (FP_ZERO): Likewise.
67233         [C99-based standards] (FP_FAST_FMA): Use
67234         optional-macro-int-constant.  Specify type.  Require == 1.
67235         [C99-based standards] (FP_FAST_FMAF): Likewise.
67236         [C99-based standards] (FP_FAST_FMAL): Likewise.
67237         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
67238         [C99-based standards] (FP_ILOGBNAN): Likewise.
67239         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
67240         Specify type.
67241         [C99-based standards] (MATH_ERREXCEPT): Likewise.
67242         [C99-based standards] (math_errhandling): Specify type.
67243         [ISO99 || ISO11] (signgam): Do not allow.
67244         [non-C99-based standards] (copysignf): Do not allow.
67245         [non-C99-based standards] (exp2f): Likewise.
67246         [non-C99-based standards] (log2f): Likewise.
67247         [non-C99-based standards] (modff): Allow.
67248         [non-C99-based standards] (erff): Do not allow.
67249         [non-C99-based standards] (erfcf): Likewise.
67250         [non-C99-based standards] (gammaf): Likewise.
67251         [non-C99-based standards] (hypotf): Likewise.
67252         [non-C99-based standards] (j0f): Likewise.
67253         [non-C99-based standards] (j1f): Likewise.
67254         [non-C99-based standards] (jnf): Likewise.
67255         [non-C99-based standards] (lgammaf): Likewise.
67256         [non-C99-based standards] (tgammaf): Likewise.
67257         [non-C99-based standards] (y0f): Likewise.
67258         [non-C99-based standards] (y1f): Likewise.
67259         [non-C99-based standards] (ynf): Likewise.
67260         [non-C99-based standards] (isnanf): Likewise.
67261         [non-C99-based standards] (acoshf): Likewise.
67262         [non-C99-based standards] (asinhf): Likewise.
67263         [non-C99-based standards] (atanhf): Likewise.
67264         [non-C99-based standards] (cbrtf): Likewise.
67265         [non-C99-based standards] (expm1f): Likewise.
67266         [non-C99-based standards] (ilogbf): Likewise.
67267         [non-C99-based standards] (log1pf): Likewise.
67268         [non-C99-based standards] (logbf): Likewise.
67269         [non-C99-based standards] (nextafterf): Likewise.
67270         [non-C99-based standards] (remainderf): Likewise.
67271         [non-C99-based standards] (rintf): Likewise.
67272         [non-C99-based standards] (scalbf): Likewise.
67273         [non-C99-based standards] (copysignl): Likewise.
67274         [non-C99-based standards] (exp2l): Likewise.
67275         [non-C99-based standards] (log2l): Likewise.
67276         [non-C99-based standards] (modfl): Allow.
67277         [non-C99-based standards] (erfl): Do not allow.
67278         [non-C99-based standards] (erfcl): Likewise.
67279         [non-C99-based standards] (gammal): Likewise.
67280         [non-C99-based standards] (hypotl): Likewise.
67281         [non-C99-based standards] (j0l): Likewise.
67282         [non-C99-based standards] (j1l): Likewise.
67283         [non-C99-based standards] (jnl): Likewise.
67284         [non-C99-based standards] (lgammal): Likewise.
67285         [non-C99-based standards] (tgammal): Likewise.
67286         [non-C99-based standards] (y0l): Likewise.
67287         [non-C99-based standards] (y1l): Likewise.
67288         [non-C99-based standards] (ynl): Likewise.
67289         [non-C99-based standards] (isnanl): Likewise.
67290         [non-C99-based standards] (acoshl): Likewise.
67291         [non-C99-based standards] (asinhl): Likewise.
67292         [non-C99-based standards] (atanhl): Likewise.
67293         [non-C99-based standards] (cbrtl): Likewise.
67294         [non-C99-based standards] (expm1l): Likewise.
67295         [non-C99-based standards] (ilogbl): Likewise.
67296         [non-C99-based standards] (log1pl): Likewise.
67297         [non-C99-based standards] (logbl): Likewise.
67298         [non-C99-based standards] (nextafterl): Likewise.
67299         [non-C99-based standards] (remainderl): Likewise.
67300         [non-C99-based standards] (rintl): Likewise.
67301         [non-C99-based standards] (scalbl): Likewise.
67302         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67303         [non-C99-based standards] (FP_*): Do not allow.
67304         [C99-based standards] (FP_*): Change to
67305         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
67306         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
67307         allow.
67308         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
67309         (SIG_ERR): Likewise.
67310         [X/Open-based standards] (SIG_HOLD): Likewise.
67311         (SIG_IGN): Likewise.
67312         (SIGABRT): Use macro-int-constant.  Specify type.  Require
67313         positive value.
67314         (SIGFPE): Likewise.
67315         (SIGILL): Likewise.
67316         (SIGINT): Likewise.
67317         (SIGSEGV): Likewise.
67318         (SIGTER): Likewise.
67319         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
67320         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
67321         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
67322         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
67323         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
67324         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
67325         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
67326         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
67327         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
67328         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
67329         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
67330         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
67331         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
67332         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
67333         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
67334         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
67335         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
67336         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
67337         [X/Open-based standards] (SIGTRAP): Likewise.
67338         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
67339         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
67340         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
67341         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
67342         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
67343         allow.
67344
67345 2012-05-08  Ian Wienand  <ianw@vmware.com>
67346
67347         [BZ #14080]
67348         * time/tzset.c (__tzset_parse_tz): Update default rules for
67349         daylight time changes in the Energy Policy Act of 2005.
67350
67351 2012-05-09  Andreas Jaeger  <aj@suse.de>
67352
67353         [BZ #13983]
67354         * elf/ldconfig.c (parse_conf): Change string to make clear that
67355         ldconfig only issued a warning if ld.so.conf does not exist.
67356
67357 2012-05-08  David S. Miller  <davem@davemloft.net>
67358
67359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
67360         movxtod instead of popping the value on the stack.
67361
67362         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67363
67364 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
67365
67366         * config.h.in: Add HAVE_ARM_PCS_VFP.
67367
67368 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
67369
67370         [BZ #13979]
67371         * include/features.h: Warn if user requests __FORTIFY_SOURCE
67372         checking but the checks are disabled for any reason.
67373
67374 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
67375
67376         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
67377         and ELF64_R_TYPE with ELFW(R_TYPE).
67378
67379 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
67380
67381         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
67382         (ulimit): Likewise.
67383
67384         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
67385         (settimeofday): Likewise.
67386
67387 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
67388
67389         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
67390         a struct th_u2 inside the union, and move tu_block/tu_code into
67391         a new th_u3 union of tu_block/tu_code inside of that.  Move
67392         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
67393         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
67394         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
67395         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
67396         (th_stuff): Change to th_u1.tu_stuff.
67397         (th_data): Define.
67398         (th_msg): Change to th_u1.th_u2.tu_data.
67399
67400 2012-05-07  David S. Miller  <davem@davemloft.net>
67401
67402         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67403
67404         [BZ #14074]
67405         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
67406         (SETUP_PIC_REG): Use it.
67407         (SETUP_PIC_REG_LEAF): Use it.
67408
67409 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
67410
67411         [BZ #13885]
67412         [BZ #13923]
67413         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
67414         USE_AS_EXPM1L.
67415         (EXPL_FINITE): Likewise.
67416         (FLDLOG): Likewise.
67417         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
67418         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
67419         e_expl.S.
67420         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
67421         USE_AS_EXPM1L.
67422         (EXPL_FINITE): Likewise.
67423         (FLDLOG): Likewise.
67424         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
67425         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
67426         e_expl.S.
67427         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
67428         test of -max_value argument for long double.
67429         * sysdeps/i386/fpu/libm-test-ulps: Update.
67430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67431
67432 2012-05-06  David S. Miller  <davem@davemloft.net>
67433
67434         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
67435         quad soft-float symbols whose references which are compiler
67436         generated.
67437         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
67438
67439 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
67440
67441         [BZ #13884]
67442         [BZ #13914]
67443         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
67444         USE_AS_EXP10L.
67445         (EXPL_FINITE): Likewise.
67446         (FLDLOG): Likewise.
67447         (c0): Likewise.
67448         (c1): Likewise.
67449         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
67450         Adjust comments for base varying.
67451         (__expl_finite): Change alias to EXPL_FINITE.
67452         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
67453         e_expl.S.
67454         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
67455         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
67456         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
67457         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
67458         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
67459         USE_AS_EXP10L.
67460         (EXPL_FINITE): Likewise.
67461         (FLDLOG): Likewise.
67462         (c0): Likewise.
67463         (c1): Likewise.
67464         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
67465         Adjust comments for base varying.
67466         (__expl_finite): Change alias to EXPL_FINITE.
67467         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
67468         tests for bugs.
67469         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
67470
67471         [BZ #14064]
67472         * math/libm-test.inc (check_float_internal): Correct ulp
67473         calculation for subnormal expected results.
67474
67475 2012-05-06  Andreas Jaeger  <aj@suse.de>
67476
67477         * Makeconfig (+math-flags): New, set to -frounding-math.
67478         (+cflags): Add +math-flags so that all of glibc gets compiled with
67479         it.
67480
67481         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
67482
67483 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
67484
67485         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
67486         Disable one test.
67487
67488         [BZ #13787]
67489         [BZ #13922]
67490         [BZ #14036]
67491         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
67492         (__ieee754_expl): Allow for and saturate large arguments.
67493         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
67494         (u_threshold): Likewise.
67495         (__exp): Call __ieee754_exp before checking for overflow and
67496         underflow.
67497         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
67498         (u_threshold): Likewise.
67499         (__expf): Call __ieee754_expf before checking for overflow and
67500         underflow.
67501         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
67502         (u_threshold): Likewise.
67503         (__expl): Call __ieee754_expl before checking for overflow and
67504         underflow.
67505         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
67506         (__ieee754_expl): Allow for and saturate large arguments.
67507         * math/libm-test.inc (exp_test): Add another test.  Do not allow
67508         missing overflow exception on overflow.
67509         (expm1_test): Do not allow missing overflow exception on overflow.
67510
67511         * sysdeps/i386/fpu/e_expl.c: Move to ...
67512         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
67513         rather than using inline asm.
67514         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
67515         * sysdeps/x86_64/fpu/e_expl.S: Copy from
67516         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
67517
67518         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
67519         (nice): Likewise.
67520         (poll): Likewise.
67521         (signal): Likewise.
67522         (time): Likewise.
67523         (times): Likewise.
67524
67525 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
67526
67527         * sysdeps/unix/syscalls.list (adjtime): Add entry from
67528         sysdeps/unix/common/syscalls.list.
67529         (fchmod): Likewise.
67530         (fchown): Likewise.
67531         (ftruncate): Likewise.
67532         (getrusage): Likewise.
67533         (gettimeofday): Likewise.
67534         (setpgid): Likewise.
67535         (setregid): Likewise.
67536         (setreuid): Likewise.
67537         (sigaction): Likewise.
67538         (truncate): Likewise.
67539         (vhangup): Likewise.
67540         * sysdeps/unix/common/syscalls.list: Remove file.
67541         * sysdeps/unix/bsd/Implies: Don't include unix/common.
67542         * sysdeps/unix/sysv/linux/Implies: Likewise.
67543
67544 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
67545
67546         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
67547         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
67548         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
67549         Moved to ...
67550         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
67551         Here.
67552         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
67553         to ...
67554         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
67555         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
67556         to ...
67557         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
67558         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
67559         to ...
67560         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
67561         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
67562         to ...
67563         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
67564         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
67565         to ...
67566         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
67567         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
67568         to ...
67569         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
67570         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
67571         to ...
67572         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
67573         Here.
67574         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
67575         to ...
67576         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
67577         Here.
67578         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
67579         to ...
67580         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
67581         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
67582         Moved to ...
67583         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
67584         Here.
67585         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
67586         to ...
67587         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
67588
67589 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
67590
67591         * sysdeps/unix/common/bits/dirent.h: Remove file.
67592         * sysdeps/unix/common/bits/fcntl.h: Likewise.
67593
67594         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
67595         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
67596         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
67597         * sysdeps/unix/bsd/isatty.c: Likewise.
67598         * sysdeps/unix/bsd/tcdrain.c: Likewise.
67599         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
67600         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
67601
67602 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67603
67604         [BZ #13563]
67605         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
67606         long double comparison inaccuracies.
67607         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
67608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67609
67610 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
67611
67612         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
67613         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
67614
67615 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
67616
67617         [BZ #14049]
67618         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
67619         nonzero digits before rounding a hex value.
67620         * stdlib/tst-strtod.c (tests): Add another test.
67621
67622 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67623
67624         * sysdeps/s390/fpu/libm-test-ulps: Update.
67625
67626 2012-05-03  Andreas Jaeger  <aj@suse.de>
67627
67628         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
67629         does not get optimized out.
67630         (malloc_opt_barrier): New.
67631
67632 2012-05-03  Andreas Jaeger  <aj@suse.de>
67633             Roland McGrath  <roland@hack.frob.com>
67634
67635         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
67636         intermediate file deletion.
67637         (generated): Add .symlist files.
67638
67639 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
67640
67641         [BZ #13775]
67642         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
67643         Redirect under this condition.
67644         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
67645         [__USE_GNU] (__dprintf_chk): Not under this condition.
67646         [__USE_GNU] (__vdprintf_chk): Likewise.
67647         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
67648         under this condition.
67649         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
67650         [__USE_XOPEN2K8] (dprintf): Define under this condition.
67651         [__USE_XOPEN2K8] (vdprintf): Likewise.
67652         [__USE_GNU] (__dprintf_chk): Not under this condition.
67653         [__USE_GNU] (__vdprintf_chk): Likewise.
67654         [__USE_GNU] (dprintf): Likewise.
67655         [__USE_GNU] (vdprintf): Likewise.
67656
67657 2012-05-03  Roland McGrath  <roland@hack.frob.com>
67658
67659         * elf/Makefile (common-generated): Set this instead of generated for
67660         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
67661         $(all-built-dso)-derived lists.
67662
67663 2012-05-03  Andreas Jaeger  <aj@suse.de>
67664
67665         * sysdeps/i386/fpu/libm-test-ulps: Update.
67666
67667         * FAQ: Removed.
67668         * FAQ.in: Likewise.
67669         * scripts/gen-FAQ.pl: Likewise.
67670         * manual/install.texi (Installation): Point to online location of
67671         FAQ.
67672         * Makefile (files-for-dist): Remove FAQ.
67673         (FAQ): Remove.
67674
67675 2012-05-02  Allan McRae  <allan@archlinux.org>
67676
67677         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
67678         (LDFLAGS-reldepmod5.so): Likewise.
67679         (LDFLAGS-reldep6mod1.so): Likewise.
67680         (LDFLAGS-reldep6mod4.so): Likewise.
67681         (LDFLAGS-reldep8mod3.so): Likewise.
67682         (LDFLAGS-unload4mod1.so): Likewise.
67683         (LDFLAGS-unload4mod2.so): Likewise.
67684         (LDFLAGS-tst-initorder): Likewise.
67685         (LDFLAGS-tst-initordera2.so): Likewise.
67686         (LDFLAGS-tst-initordera3.so): Likewise.
67687         (LDFLAGS-tst-initordera4.so): Likewise.
67688         (LDFLAGS-tst-initorderb2.so): Likewise.
67689         (LDFLAGS-noload): Likewise.
67690         (LDFLAGS-next): Likewise.
67691         (LDFLAGS-order2mod1.so): Likewise.
67692         (LDFLAGS-order2mod2.so): Likewise.
67693         (LDFLAGS-tst-initorder2): Likewise.
67694         (LDFLAGS-tst-initorder2a.so): Likewise.
67695         (LDFLAGS-tst-initorder2b.so): Likewise.
67696         (LDFLAGS-tst-initorder2c.so): Likewise.
67697         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
67698
67699 2012-05-02  David S. Miller  <davem@davemloft.net>
67700
67701         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67702
67703 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
67704
67705         [BZ #14055]
67706         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
67707
67708 2012-05-02  Andreas Jaeger  <aj@suse.de>
67709
67710         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
67711         since we manipulate rounding mode.
67712         (CPPFLAGS-test-idouble.c): Likewise.
67713         (CPPFLAGS-test-ifloat.c): Likewise.
67714         (CFLAGS-test-ldouble.c): Likewise.
67715         (CFLAGS-test-double.c): Likewise.
67716         (CFLAGS-test-float.c): Likewise.
67717         (CFLAGS-test-misc.c): Likewise.
67718         (CFLAGS-test-test-fenv.c): Likewise.
67719
67720 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67721
67722         [BZ #2550]
67723         [BZ #2570]
67724         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
67725         comparisons to determine direction to adjust input.
67726
67727 2012-05-01  Roland McGrath  <roland@hack.frob.com>
67728
67729         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
67730         output to the target.
67731
67732         * scripts/localplt.awk: New file.
67733         * elf/Makefile ($(objpfx)check-localplt): Target removed.
67734         (check-localplt-CFLAGS): Variable removed.
67735         ($(all-built-dso:=.jmprel)): New static pattern rule.
67736         (generated): Add those targets.
67737         (localplt-built-dso): New variable.
67738         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
67739
67740         * elf/check-localplt.c: File removed.
67741
67742         * scripts/check-execstack.awk: New file.
67743         * elf/Makefile ($(objpfx)check-execstack): Target removed.
67744         (check-execstack-CFLAGS): Variable removed.
67745         ($(objpfx)check-execstack.h): Target removed.
67746         ($(objpfx)execstack-default): New target.
67747         (generated): Add that instead of check-execstack.h.
67748         ($(all-built-dso:=.phdr)): New static pattern rule.
67749         (generated): Add those targets.
67750         * elf/check-execstack.c: File removed.
67751
67752         * scripts/check-textrel.awk: New file.
67753         * elf/Makefile ($(objpfx)check-textrel): Target removed.
67754         (check-textrel-CFLAGS): Variable removed.
67755         (all-built-dso): Use := to define.o
67756         ($(all-built-dso:=.dyn)): New static pattern rule.
67757         (generated): Add those targets.
67758         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
67759         * config.make.in (READELF): New substituted variable.
67760         * elf/check-textrel.c: File removed.
67761
67762 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
67763
67764         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
67765         allow.
67766         * conform/data/ctype.h-data [C99-based standards] (isblank):
67767         Expect function.
67768         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
67769         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
67770         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67771         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
67772         Specify type.  Require positive value.
67773         (EILSEQ): Likewise.
67774         (ERANGE): Likewise.
67775         [ISO || POSIX] (EILSEQ): Do not expect.
67776         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
67777         Specify type.  Require positive value.
67778         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
67779         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
67780         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
67781         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
67782         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
67783         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
67784         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
67785         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
67786         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
67787         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
67788         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
67789         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
67790         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
67791         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
67792         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
67793         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
67794         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
67795         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
67796         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
67797         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
67798         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
67799         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
67800         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
67801         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
67802         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
67803         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
67804         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
67805         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
67806         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
67807         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
67808         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
67809         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
67810         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
67811         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
67812         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
67813         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
67814         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
67815         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
67816         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
67817         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
67818         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
67819         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
67820         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
67821         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
67822         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
67823         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
67824         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
67825         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
67826         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
67827         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
67828         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
67829         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
67830         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
67831         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
67832         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
67833         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
67834         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
67835         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
67836         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
67837         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
67838         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
67839         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
67840         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
67841         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
67842         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
67843         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
67844         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
67845         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
67846         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
67847         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
67848         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
67849         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
67850         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
67851         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
67852         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
67853         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
67854         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
67855         Require >= 2.
67856         (FLT_ROUNDS): Expect as macro, not constant.
67857         (FLT_MANT_DIG): Use macro-int-constant.
67858         (DBL_MANT_DIG): Likewise.
67859         (LDBL_MANT_DIG): Likewise.
67860         (FLT_DIG): Likewise.
67861         (DBL_DIG): Likewise.
67862         (LDBL_DIG): Likewise.
67863         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
67864         (DBL_MIN_EXP): Likewise.
67865         (LDBL_MIN_EXP): Likewise.
67866         (FLT_MAX_EXP): Use macro-int-constant.
67867         (DBL_MAX_EXP): Likewise.
67868         (LDBL_MAX_EXP): Likewise.
67869         (FLT_MAX_10_EXP): Likewise.
67870         (DBL_MAX_10_EXP): Likewise.
67871         (LDBL_MAX_10_EXP): Likewise.
67872         (FLT_MAX): Use macro-constant.
67873         (DBL_MAX): Likewise.
67874         (LDBL_MAX): Likewise.
67875         (FLT_EPSILON): Use macro-constant.  Give upper bound.
67876         (DBL_EPSILON): Likewise.
67877         (LDBL_EPSILON): Likewise.
67878         (FLT_MIN): Likewise.
67879         (DBL_MIN): Likewise.
67880         (LDBL_MIN): Likewise.
67881         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
67882         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
67883         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
67884         [ISO11] (FLT_HAS_SUBNORM): Likewise.
67885         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
67886         [ISO11] (DBL_DECIMAL_DIG): Likewise.
67887         [ISO11] (FLT_DECIMAL_DIG): Likewise.
67888         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
67889         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
67890         [ISO11] (FLT_TRUE_MIN): Likewise.
67891         [ISO11] (LDBL_TRUE_MIN): Likewise.
67892         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67893         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
67894         (SCHAR_MIN): Use macro-int-constant.  Specify type.
67895         (SCHAR_MAX): Likewise.
67896         (UCHAR_MAX): Likewise.
67897         (CHAR_MIN): Likewise.
67898         (CHAR_MAX): Likewise.
67899         (MB_LEN_MAX): Use macro-int-constant.
67900         (SHRT_MIN): Use macro-int-constant.  Specify type.
67901         (SHRT_MAX): Likewise.
67902         (USHRT_MAX): Likewise.
67903         (INT_MAX): Likewise.
67904         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
67905         bound negative.
67906         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
67907         bound with "U".
67908         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
67909         bound with "L".
67910         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
67911         bound negative.  Suffix upper bound with "L".
67912         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
67913         bound with "UL".
67914         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
67915         Specify type.
67916         [C99-based standards] (LLONG_MAX): Likewise.
67917         [C99-based standards] (ULLONG_MAX): Likewise.
67918         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
67919         == 0.
67920         [ISO11] (max_align_t): Require type.
67921         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67922
67923         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
67924         from $CFLAGS, without defining away __attribute__ calls.
67925         (checknamespace): Use $CFLAGS_namespace.
67926
67927         * conform/conformtest.pl (@keywords): Only include C99 keywords
67928         for standards based on C99 or C11.
67929
67930         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
67931         Disable tests.
67932         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
67933         UNIX98]: Likewise.
67934
67935         * conform/conformtest.pl: Handle "macro-int-constant" and test for
67936         usability of symbols in #if.
67937
67938         * conform/conformtest.pl: If macro or constant types start
67939         "promoted:", expect the symbol to be of the following type
67940         promoted by the integer promotions.
67941
67942         * conform/conformtest.pl: Parse all "constant" and "macro" lines
67943         in one place.  Also handle "macro-constant".
67944
67945         * conform/conformtest.pl: Only accept expected macro values with
67946         "==".  Parse all "macro" lines in one place.
67947         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
67948
67949         * conform/conformtest.pl: Handle braced types on "constant" lines
67950         instead of handling "typed-constant".
67951         * conform/data/signal.h-data: Use "constant" instead of
67952         "typed-constant".
67953
67954         * conform/conformtest.pl: Handle "optional-" at start of lines in
67955         one place rather than duplicating several cases.  Handle each
67956         format of "macro" line with initial "optional-".
67957
67958         * conform/conformtest.pl: Only accept expected constant or
67959         optional-constant values with "==".  Parse all "constant" lines in
67960         one place.  Parse all "optional-constant" lines in one place.
67961         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
67962         * conform/data/fmtmsg.h-data: Likewise.
67963         * conform/data/netinet/in.h-data: Likewise.
67964         * conform/data/tar.h-data: Likewise.
67965         * conform/data/limits.h-data: Use "==" form on "constant" and
67966         "optional-constant" lines.
67967
67968         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
67969         Use -std=c99 for XOPEN2K.
67970         (@knownproblems): Remove.
67971         (newtoken): Don't check %isknown.
67972
67973         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
67974         Do not expect macro.
67975         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
67976         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
67977         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
67978         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
67979         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
67980         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
67981         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
67982         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
67983         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
67984         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
67985         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
67986         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
67987         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
67988         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
67989         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
67990         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
67991         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
67992         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
67993         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
67994         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
67995         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
67996         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
67997         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
67998         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
67999         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
68000         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
68001         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
68002         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
68003         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
68004         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
68005         [XPG3] (acosh): Likewise.
68006         [XPG3] (asinh): Likewise.
68007         [XPG3] (atanh): Likewise.
68008         [XPG3] (cbrt): Likewise.
68009         [XPG3] (expm1): Likewise.
68010         [XPG3] (ilogb): Likewise.
68011         [XPG3] (log1p): Likewise.
68012         [XPG3] (logb): Likewise.
68013         [XPG3] (nextafter): Likewise.
68014         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
68015         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
68016         [XPG3] (remainder): Likewise.
68017         [XPG3] (rint): Likewise.
68018         [XPG3 || XPG4 || UNIX98] (round): Likewise.
68019         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
68020         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
68021         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
68022         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
68023         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
68024         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
68025         [UNIX98 || XOPEN2K] (scalb): Expect.
68026         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
68027         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
68028         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
68029         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
68030         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
68031         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
68032         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
68033         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
68034         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
68035         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
68036         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
68037         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
68038         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
68039         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
68040         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
68041         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
68042         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
68043         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
68044         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
68045         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
68046         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
68047         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
68048         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
68049         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
68050         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
68051         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
68052         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
68053         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
68054         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
68055         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
68056         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
68057         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
68058         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
68059         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
68060         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
68061         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
68062         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
68063         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
68064         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
68065         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
68066         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
68067         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
68068         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
68069         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
68070         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
68071         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
68072         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
68073         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
68074         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
68075         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
68076         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
68077         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
68078         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
68079         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
68080         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
68081         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
68082         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
68083         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
68084         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
68085         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
68086         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
68087         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
68088         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
68089         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
68090         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
68091         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
68092         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
68093         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
68094         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
68095         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
68096         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
68097         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
68098         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
68099         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
68100         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
68101         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
68102         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
68103         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
68104         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
68105         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
68106         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
68107         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
68108         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
68109         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
68110         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
68111         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
68112         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
68113         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
68114         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
68115         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
68116         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
68117         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
68118         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
68119         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
68120         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
68121         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
68122         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
68123         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
68124         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
68125         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
68126         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
68127         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
68128         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
68129         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
68130         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
68131         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
68132         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
68133         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
68134         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
68135         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
68136         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
68137         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
68138         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
68139         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
68140         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
68141         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
68142         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
68143         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
68144         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
68145         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
68146         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
68147         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
68148         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
68149         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
68150         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
68151         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
68152         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
68153         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
68154         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
68155         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
68156         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
68157         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
68158         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
68159         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
68160         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
68161         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
68162         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
68163
68164         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
68165         _XOPEN_SOURCE_EXTENDED for XPG4.
68166
68167         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
68168
68169         * Makeconfig (localtime): Remove variable.
68170         (inst_localtime-file): Likewise.
68171
68172 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
68173
68174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
68175         Update.
68176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68177         Update.
68178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
68179         Update.
68180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
68181         Update.
68182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
68183         Update.
68184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
68185         Update.
68186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
68187         Update.
68188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
68189         Update.
68190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
68191         Update.
68192
68193 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
68194
68195         [BZ #2550]
68196         [BZ #2570]
68197         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
68198         comparisons to determine direction to adjust input.
68199         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
68200         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
68201         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
68202         Likewise.
68203         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
68204         Likewise.
68205         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
68206         Likewise.
68207         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
68208         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
68209         Likewise.
68210         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
68211         Likewise.
68212         * math/libm-test.inc (nexttoward_test): Add more tests.
68213
68214 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
68215
68216         [BZ #14040]
68217         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
68218         in version GLIBC_2.1, not GLIBC_2.0.
68219         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
68220         Likewise.
68221
68222 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
68223
68224         [BZ #13942]
68225         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
68226         (1 - x) * (1 + x).
68227         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
68228         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
68229         * math/libm-test.inc (acos_test): Add more tests.
68230         (asin_test): Likewise.
68231         * sysdeps/i386/fpu/libm-test-ulps: Update.
68232         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68233
68234         [BZ #14034]
68235         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
68236         of square root.
68237         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
68238         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
68239         * math/libm-test.inc (acos_test_tonearest): New function.
68240         (acos_test_towardzero): Likewise.
68241         (acos_test_downward): Likewise.
68242         (acos_test_upward): Likewise.
68243         (asin_test_tonearest): Likewise.
68244         (asin_test_towardzero): Likewise.
68245         (asin_test_downward): Likewise.
68246         (asin_test_upward): Likewise.
68247         (main): Call the new functions.
68248         * sysdeps/i386/fpu/libm-test-ulps: Update.
68249         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68250
68251         [BZ #13884]
68252         [BZ #13924]
68253         * math/e_exp10.c: Include <float.h>.
68254         (__ieee754_exp10): Handle underflow here rather than multiplying
68255         large negative argument by M_LN10.
68256         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
68257         of __ieee754_expf.
68258         * math/e_exp10l.c: Include <float.h>.
68259         (__ieee754_exp10l): Handle underflow here rather than multiplying
68260         large negative argument by M_LN10l.
68261         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
68262         spurious overflow exception on underflow.
68263
68264 2012-04-29  Marek Polacek  <polacek@redhat.com>
68265
68266         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
68267         (__fortify_function): New macro.
68268         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
68269         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
68270         __extern_always_inline.
68271         * libio/bits/stdio2.h: Likewise.
68272         * libio/bits/stdio.h: Likewise.
68273         * string/string.h: Likewise.
68274         * string/bits/string3.h: Likewise.
68275         * include/stdio.h: Likewise.
68276         * stdlib/bits/stdlib.h: Likewise.
68277         * stdlib/stdlib.h: Likewise.
68278         * rt/bits/mqueue2.h: Likewise.
68279         * rt/mqueue.h: Likewise.
68280         * posix/bits/unistd.h: Likewise.
68281         * posix/unistd.h: Likewise.
68282         * io/bits/poll2.h: Likewise.
68283         * io/bits/fcntl2.h: Likewise.
68284         * io/fcntl.h: Likewise.
68285         * io/sys/poll.h: Likewise.
68286         * misc/bits/syslog.h: Likewise.
68287         * misc/bits/syslog-ldbl.h: Likewise.
68288         * misc/sys/syslog.h: Likewise.
68289         * socket/bits/socket2.h: Likewise.
68290         * socket/sys/socket.h: Likewise.
68291         * debug/tst-chk1.c: Likewise.
68292         * wcsmbs/bits/wchar2.h: Likewise.
68293         * wcsmbs/bits/wchar-ldbl.h: Likewise.
68294         * wcsmbs/wchar.h: Likewise.
68295
68296 2012-04-29  Andreas Jaeger  <aj@suse.de>
68297
68298         * Makerules (tests): Remove enable-check-abi protection.
68299         (check-abi-warn): Remove.
68300         (check-abi-%): Remove check-abi-warn usage.
68301
68302         * configure.in: Remove check-abi configure option.
68303         * configure: Regenerated.
68304         * config.make.in (enable-check-abi): Remove.
68305
68306 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
68307
68308         [BZ #14033]
68309         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
68310         double functions to double *_finite functions.
68311
68312         [BZ #13941]
68313         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
68314         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
68315         LDBL_MIN_EXP.
68316         * stdio-common/Makefile (tests): Add tst-sprintf3.
68317         * stdio-common/tst-sprintf3.c: New file.
68318
68319         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
68320         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
68321
68322 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
68323
68324         * conform/conformtest.pl: Remove duplicate typed-constant
68325         handling.
68326
68327 2012-04-28  David S. Miller  <davem@davemloft.net>
68328
68329         * Makerules (%.abilist): Add vpath on sysdep_dirs.
68330         (check-abi-%): Remove AWK script prerequisite and explicit
68331         abilist directory.
68332         (check-abi): Rewrite to just diff the symlist with the abilist.
68333         (config-tls, config-abi-config): Delete, no longer used.
68334         (update-abi-%): Remove AWK script and explicit abilist directory.
68335         (update-abi): Rewrite to simply compare and conditionally copy the
68336         symlist and the sysdep abilist file.  Remove update-abi-config
68337         checks.
68338         * abilist/ld.abilist: Remove.
68339         * abilist/libBrokenLocale.abilist: Remove.
68340         * abilist/libanl.abilist: Remove.
68341         * abilist/libcrypt.abilist: Remove.
68342         * abilist/libdl.abilist: Remove.
68343         * abilist/librt.abilist: Remove.
68344         * abilist/libthread_db.abilist: Remove.
68345         * abilist/libutil.abilist: Remove.
68346         * scripts/extract-abilist.awk: Remove.
68347         * scripts/merge-abilist.awk: Remove.
68348         * sysdeps/generic/libcidn.abilist: New file.
68349         * sysdeps/generic/libnss_compat.abilist: New file.
68350         * sysdeps/generic/libnss_db.abilist: New file.
68351         * sysdeps/generic/libnss_dns.abilist: New file.
68352         * sysdeps/generic/libnss_files.abilist: New file.
68353         * sysdeps/generic/libnss_hesiod.abilist: New file.
68354         * sysdeps/generic/libnss_nis.abilist: New file.
68355         * sysdeps/generic/libnss_nisplus.abilist: New file.
68356         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
68357         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
68358         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
68359         file.
68360         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
68361         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
68362         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
68363         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
68364         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
68365         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
68366         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
68367         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
68368         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
68369         file.
68370         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
68371         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
68372         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
68373         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
68374         file.
68375         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
68376         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
68377         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
68378         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
68379         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
68380         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
68381         file.
68382         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
68383         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
68384         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
68385         file.
68386         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
68387         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
68388         New file.
68389         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
68390         New file.
68391         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
68392         New file.
68393         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
68394         New file.
68395         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
68396         New file.
68397         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
68398         New file.
68399         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
68400         New file.
68401         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
68402         New file.
68403         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
68404         New file.
68405         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
68406         New file.
68407         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
68408         New file.
68409         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
68410         New file.
68411         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
68412         New file.
68413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
68414         file.
68415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
68416         New file.
68417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
68418         New file.
68419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
68420         file.
68421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
68422         New file.
68423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
68424         New file.
68425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
68426         file.
68427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
68428         New file.
68429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
68430         New file.
68431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
68432         New file.
68433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
68434         New file.
68435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
68436         New file.
68437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
68438         New file.
68439         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
68440         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
68441         file.
68442         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
68443         New file.
68444         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
68445         file.
68446         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
68447         file.
68448         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
68449         file.
68450         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
68451         file.
68452         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
68453         file.
68454         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
68455         New file.
68456         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
68457         file.
68458         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
68459         file.
68460         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
68461         New file.
68462         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
68463         file.
68464         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
68465         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
68466         file.
68467         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
68468         New file.
68469         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
68470         file.
68471         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
68472         file.
68473         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
68474         file.
68475         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
68476         file.
68477         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
68478         file.
68479         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
68480         New file.
68481         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
68482         file.
68483         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
68484         file.
68485         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
68486         New file.
68487         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
68488         file.
68489         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
68490         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
68491         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
68492         file.
68493         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
68494         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
68495         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
68496         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
68497         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
68498         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
68499         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
68500         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
68501         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
68502         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
68503         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
68504         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
68505         file.
68506         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
68507         New file.
68508         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
68509         file.
68510         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
68511         file.
68512         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
68513         file.
68514         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
68515         file.
68516         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
68517         file.
68518         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
68519         New file.
68520         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
68521         New file.
68522         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
68523         file.
68524         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
68525         New file.
68526         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
68527         file.
68528         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
68529         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
68530         file.
68531         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
68532         New file.
68533         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
68534         file.
68535         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
68536         file.
68537         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
68538         file.
68539         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
68540         file.
68541         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
68542         file.
68543         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
68544         New file.
68545         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
68546         New file.
68547         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
68548         file.
68549         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
68550         New file.
68551         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
68552         file.
68553
68554 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
68555
68556         * conform/conformtest.pl: Fix typo in handling typed-constant from
68557         allow-header.
68558
68559 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
68560
68561         * README: Cut down references to pre-2.6 Linux kernels and
68562         Linuxthreads.  Update lists of configurations in libc and ports
68563         and sort alphabetically.  Say "or newer" with Linux kernel version
68564         requirements.
68565
68566         * config.h.in [IS_IN_build]: Allow compiling without optimization.
68567
68568 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
68569
68570         [BZ #887]
68571         * math/libm-test.inc (logb_test_downward): New test to expose
68572         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
68573         rounding mode.
68574
68575 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
68576
68577         [BZ #14027]
68578         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
68579         to be done.
68580         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
68581         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
68582
68583 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
68584
68585         * sysdeps/unix/i386/brk.S: Remove file.
68586         * sysdeps/unix/i386/dl-brk.S: Likewise.
68587         * sysdeps/unix/i386/pipe.S: Likewise.
68588         * sysdeps/unix/i386/sigreturn.S: Likewise.
68589         * sysdeps/unix/i386/syscall.S: Likewise.
68590         * sysdeps/unix/i386/vfork.S: Likewise.
68591         * sysdeps/unix/i386/wait.S: Likewise.
68592
68593         * sysdeps/unix/common/tcsendbrk.c: Move to ...
68594         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
68595
68596         * configure.in (arm*-none*): Do not allow without
68597         --enable-hacker-mode.
68598         (netbsd*): Remove case setting base_os.
68599         (386bsd*): Likewise.
68600         (freebsd*): Likewise.
68601         (bsdi*): Likewise.
68602         (osf*): Likewise.
68603         (sunos*): Likewise.
68604         (ultrix*): Likewise.
68605         (newsos*): Likewise.
68606         (dynix*): Likewise.
68607         (*bsd*): Likewise.
68608         (sysv*): Likewise.
68609         (isc*): Likewise.
68610         (esix*): Likewise.
68611         (sco*): Likewise.
68612         (minix*): Likewise.
68613         (irix4*): Likewise.
68614         (irix6*): Likewise.
68615         (solaris[2-9]*): Likewise.
68616         (none): Likewise.
68617         * configure: Regenerated.
68618
68619 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68620
68621         [BZ #11521]
68622         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
68623         overflow or cancellation in calculating denominator.
68624         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
68625         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
68626         down expression to avoid unexpected rounding in newer GCCs.
68627         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
68628
68629 2012-04-26  David S. Miller  <davem@davemloft.net>
68630
68631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
68632         long-double compat symbols.
68633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
68634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
68635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
68636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
68637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
68638         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
68639         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
68640         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
68641         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
68642         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
68643         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
68644         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
68645         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68646
68647 2012-04-25  David S. Miller  <davem@davemloft.net>
68648
68649         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
68650         HWCAP_* values only after the memory barriers have been defined.
68651         (atomic_full_barrier): Define.
68652         (atomic_read_barrier): Define.
68653         (atomic_write_barrier): Define.
68654
68655 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
68656
68657         * shlib-versions: Add libgcc_s version information.
68658         * sysdeps/generic/libgcc_s.h: Remove.
68659         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
68660         libgcc_s.h.
68661         * sysdeps/gnu/unwind-resume.c: Likewise.
68662         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
68663
68664 2012-04-25  David S. Miller  <davem@davemloft.net>
68665
68666         * sysdeps/unix/sparc/brk.S: Delete.
68667         * sysdeps/unix/sparc/dl-brk.S: Delete.
68668         * sysdeps/unix/sparc/pipe.S: Delete.
68669         * sysdeps/unix/sparc/sysdep.S: Delete.
68670         * sysdeps/unix/sparc/sysdep.h: Delete.
68671         * sysdeps/unix/sparc/vfork.S: Delete.
68672         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
68673         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
68674         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
68675         (ret_ERRVAL, r0, r1, MOVE): Define.
68676         (JUMPTARGET): Remove.
68677         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
68678         sysdeps/unix/sparc/sysdep.h
68679         (ENTRY, END): Remove.
68680         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68681
68682 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
68683
68684         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
68685         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
68686         -DIS_IN_build.
68687
68688         * timezone/README: Update upstream location and email address for
68689         tzcode and tzdata.
68690         * timezone/zdump.c: Update from tzcode 2012b.
68691         * timezone/zic.c: Likewise.
68692
68693         * configure.in (libc_cv_as_needed): Remove test.
68694         * configure: Regenerated.
68695         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
68696         conditional definition.
68697         [$(have-as-needed) != yes] (no-as-needed): Likewise.
68698         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
68699         * config.make.in (have-as-needed): Remove variable.
68700
68701 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
68702             Paul Pluzhnikov  <ppluzhnikov@google.com>
68703
68704         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
68705         strings correctly.
68706
68707 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
68708
68709         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
68710         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
68711         * sysdeps/sh/strlen.S: Likewise.
68712
68713 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
68714
68715         * sysdeps/unix/fork.S: Remove file.
68716         * sysdeps/unix/i386/fork.S: Likewise.
68717         * sysdeps/unix/sparc/fork.S: Likewise.
68718
68719         * sysdeps/unix/system.c: Remove file.
68720         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
68721
68722         * sysdeps/unix/getegid.S: Remove file.
68723         * sysdeps/unix/geteuid.S: Likewise.
68724
68725 2012-04-24  Roland McGrath  <roland@hack.frob.com>
68726
68727         * scripts/check-localplt.awk: New file.
68728         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
68729         of diff.
68730         * scripts/data/localplt-generic.data: Add a comment.
68731
68732         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
68733         NODE when __dir_mkfile failed.
68734         * sysdeps/mach/hurd/symlinkat.c: Likewise.
68735         Reported by Ludovic Courtès <ludo@gnu.org>.
68736
68737 2012-04-24  Andreas Jaeger  <aj@suse.de>
68738
68739         * Makerules (common-clean): Also remove gen-as-const-headers
68740         files.
68741
68742 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
68743
68744         * Makerules (native-compile): Do not change working directory for
68745         build.  Use $(OUTPUT_OPTION) in command.
68746         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
68747
68748 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68749
68750         [BZ #13886]
68751         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
68752         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
68753         * math/libm-test.inc (floor_test): Add more tests.
68754         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
68755
68756 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
68757
68758         * sysdeps/unix/getdents.c: Remove file.
68759         * sysdeps/unix/sysv/getdents.c: Likewise.
68760         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
68761
68762         * sysdeps/unix/syscalls.list (madvise): Add syscall from
68763         sysdeps/unix/mman/syscalls.list.
68764         (mmap): Likewise.
68765         (mprotect): Likewise.
68766         (msync): Likewise.
68767         (munmap): Likewise.
68768         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
68769         * sysdeps/unix/mman/syscalls.list: Remove.
68770         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
68771
68772         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
68773         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
68774         * configure: Regenerated.
68775         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
68776         $(libgcc_s_suffix).
68777         * config.make.in (libgcc_s_suffix): Remove variable.
68778
68779 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
68780
68781         * sysdeps/unix/sysv/gethostname.c: Move to ...
68782         * sysdeps/posix/gethostname.c: ... here.
68783
68784         * sysdeps/unix/execve.S: Remove file.
68785
68786         * sysdeps/unix/_exit.S: Remove file.
68787
68788 2012-04-23  Andreas Jaeger  <aj@suse.de>
68789
68790         [BZ #13739]
68791         * manual/Makefile: Remove make dist support, there's no
68792         need for a stand-alone documentation tar ball.
68793         (TEXI2DVI): Define always, it's not in Makeconfig.
68794         (dist): Removed.
68795         (tar-it): Removed.
68796         (edition): Removed.
68797         (glibc-doc-$(edition).tar): Removed
68798         (%.Z): Removed.
68799         (%.gz): Removed.
68800         (%.uu): Removed.
68801         (ETAGS): Remove, it's in Makeconfig.
68802         (move-if-change): Remove, it's in Makeconfig.
68803
68804 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         [BZ #13970]
68807         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
68808         (strtod, strtof, strtold, strtol, strtoul, strtoq)
68809         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
68810         (strtod_l, strtof_l, strtold_l): Remove __wur.
68811         It is not necessarily an error to ignore strtol's return value.
68812         One can reliably look at the stored endptr to decide whether
68813         the number had valid syntax.
68814
68815 2012-04-21  Andreas Jaeger  <aj@suse.de>
68816
68817         [BZ #13739]
68818         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
68819
68820 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
68821
68822         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
68823         * sysdeps/unix/sysv/Versions: Remove file.
68824
68825 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
68826
68827         [BZ #13927]
68828         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68829
68830 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
68831
68832         [BZ #7064]
68833         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
68834         version from __vm86.
68835
68836 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
68837
68838         * sysdeps/unix/common/lxstat.c: Remove file.
68839         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
68840
68841         * sysdeps/unix/sysv/Makefile: Remove file.
68842
68843         * sysdeps/unix/sysv/direct.h: Remove file.
68844
68845         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
68846         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
68847         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
68848         * sysdeps/unix/sysv/bits/signum.h: Likewise.
68849         * sysdeps/unix/sysv/bits/stat.h: Likewise.
68850         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
68851         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
68852
68853         * sysdeps/unix/sysv/setrlimit.c: Remove file.
68854
68855         * sysdeps/unix/xmknod.c: Remove file.
68856         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
68857
68858         * sysdeps/unix/sysv/settimeofday.c: Remove file.
68859
68860         * sysdeps/unix/sysv/i386/time.S: Remove file.
68861
68862         * sysdeps/unix/fxstat.c: Remove file.
68863         * sysdeps/unix/xstat.c: Likewise.
68864         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
68865
68866         * sysdeps/unix/sysv/sigaction.c: Remove file.
68867
68868         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
68869         (sysdep_headers): Remove variable.
68870         [termio.h not in sysdep_headers] (generated): Likewise.
68871         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
68872         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
68873         * sysdeps/unix/sysv/tcdrain.c: Likewise.
68874         * sysdeps/unix/sysv/tcflow.c: Likewise.
68875         * sysdeps/unix/sysv/tcflush.c: Likewise.
68876         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
68877         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
68878         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
68879         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
68880         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
68881
68882         * sysdeps/unix/siglist.c: Remove file.
68883
68884         * sysdeps/unix/getppid.S: Remove file.
68885
68886         * sysdeps/unix/mkdir.c: Remove file.
68887         * sysdeps/unix/rmdir.c: Likewise.
68888
68889 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
68890
68891         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
68892         ERR_MAX value.
68893         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
68894         errlist-compat value.
68895
68896 2012-04-18  David S. Miller  <davem@davemloft.net>
68897
68898         * sysdeps/generic/memcopy.h (reg_char): Delete.
68899         * debug/strcat_chk.c: Use char, not reg_char.
68900         * debug/strcpy_chk.c: Likewise.
68901         * debug/strncat_chk.c: Likewise.
68902         * debug/strncpy_chk.c: Likewise.
68903         * string/memchr.c: Likewise.
68904         * string/memrchr.c: Likewise.
68905         * string/rawmemchr.c: Likewise.
68906         * string/strcat.c: Likewise.
68907         * string/strchr.c: Likewise.
68908         * string/strchrnul.c: Likewise.
68909         * string/strcmp.c: Likewise.
68910         * string/strcpy.c: Likewise.
68911         * string/strncat.c: Likewise.
68912         * string/strncmp.c: Likewise.
68913         * string/strncpy.c: Likewise.
68914
68915 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
68916
68917         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
68918         __builtin_memcopy is called when src and dest ranges are known to not
68919         overlap.
68920
68921 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
68922
68923         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
68924         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
68925         fwd_align_merge macro call.
68926         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
68927         bwd_align_merge macro call.
68928         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
68929
68930 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
68931
68932         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
68933         bwd_align_merge macros.
68934         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
68935         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
68936         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
68937
68938 2012-04-18  David S. Miller  <davem@davemloft.net>
68939
68940         * sysdeps/sparc/sparc64/memcopy.h: Delete.
68941
68942 2012-04-18  Andreas Jaeger  <aj@suse.de>
68943
68944         [BZ# 6794]
68945         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
68946         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
68947         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
68948
68949         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
68950         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
68951         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
68952
68953         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
68954         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
68955         Adjust for changed ldbl-128 files.
68956
68957         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
68958         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
68959         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
68960
68961 2012-04-17  David S. Miller  <davem@davemloft.net>
68962
68963         * sysdeps/sparc/sparc32/memcopy.h: Delete.
68964
68965 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
68966
68967         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
68968         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
68969         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
68970         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
68971         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
68972         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
68973
68974 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68975
68976         [BZ #6794]
68977         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
68978         * math/libm-test.inc: Add ilogb errno and exception tests.
68979         * math/w_ilogb.c: New file: ilogb wrapper.
68980         * math/w_ilogbf.c: New file: ilogbf wrapper.
68981         * math/w_ilogbl.c: New file: ilogbl wrapper.
68982         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
68983         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
68984         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
68985         exception being thrown with 0.0 as argument.
68986         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
68987         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
68988         exception being thrown with 0.0 as argument.
68989         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
68990         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
68991         exception being thrown with 0.0 as argument.
68992         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
68993         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
68994         exception being thrown with 0.0 as argument.
68995         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
68996         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
68997         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
68998         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
68999         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
69000         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
69001         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
69002         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
69003         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
69004
69005 2012-04-17  Petr Baudis  <pasky@ucw.cz>
69006
69007         * include/sys/uio.h: Change __vector to __iovec to avoid clash
69008         with altivec.
69009
69010 2012-04-16  Marek Polacek  <polacek@redhat.com>
69011
69012         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
69013
69014 2012-04-16  Marek Polacek  <polacek@redhat.com>
69015
69016         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
69017         operands of fdivp instruction.
69018
69019 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
69020
69021         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
69022         * elf/tst-auditmod3b.c: Likewise.
69023         * elf/tst-auditmod4b.c: Likewise.
69024         * elf/tst-auditmod5b.c: Likewise.
69025         * elf/tst-auditmod6b.c: Likewise.
69026         * elf/tst-auditmod6c.c: Likewise.
69027         * elf/tst-auditmod7b.c: Likewise.
69028         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
69029         * sysdeps/x86_64/preconfigure.in: Likewise.
69030         * sysdeps/x86_64/preconfigure: Regenerated.
69031
69032 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
69033
69034         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
69035         __ILP32__.
69036
69037 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
69038
69039         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69040         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
69041
69042 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
69043
69044         [BZ #13973]
69045         * locale/iso-639.def: Fix gl language name. Spotted by
69046         Yaron Shahrabani.
69047
69048 2012-04-12  Roland McGrath  <roland@hack.frob.com>
69049
69050         [BZ #2074]
69051         * libio/libio.h (__io_write_fn): Update comment.
69052
69053 2012-04-12  Petr Baudis  <pasky@ucw.cz>
69054
69055         [BZ #2074]
69056         * stdio.texi (Hook Functions): The user provided writer function
69057         is not allowed to return -1.
69058
69059 2012-04-11  David S. Miller  <davem@davemloft.net>
69060
69061         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69062
69063 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
69064
69065         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
69066         Add a leading slash to rtkaio.
69067
69068 2012-04-11  Jim Meyering  <meyering@redhat.com>
69069
69070         [BZ #11959]
69071         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
69072         It is not necessarily an error to ignore fwrite's return
69073         value.  One can reliably use ferror to test for errors after
69074         the fact.
69075
69076 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
69077
69078         * bits/types.h (__snseconds_t): New type.
69079         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
69080
69081         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
69082         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69083         (__SNSECONDS_T_TYPE): Likewise.
69084         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69085         (__SNSECONDS_T_TYPE): Likewise.
69086         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69087         (__SNSECONDS_T_TYPE): Likewise.
69088
69089 2012-04-10  Andreas Jaeger  <aj@suse.de>
69090
69091         [BZ #2636]
69092         * manual/time.texi (Processor Time): Return type of times is
69093         elapsed real time since an arbitrary point in the past.
69094         (CPU Time): Move CLK_TCK from here...
69095         (Processor Time): ...to here.  Correct description.
69096         * manual/conf.texi (Constants for Sysconf): Correct description of
69097         _SC_CLK_TCK.
69098
69099 2012-04-10  David S. Miller  <davem@davemloft.net>
69100
69101         [BZ #13967]
69102         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
69103         where the is a gap between DT_REL(A) and DT_JMPREL.
69104
69105 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
69106
69107         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
69108         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
69109         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
69110
69111 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
69112
69113         * elf/dl-support.c (_dl_inhibit_cache): New variable.
69114         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
69115         (dl_main): Handle --inhibit-cache.
69116         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
69117         _dl_inhibit_cache.
69118         * elf/dl-load.c (_dl_map_object): Use it.
69119         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
69120
69121 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
69122
69123         [BZ #13872]
69124         * sysdeps/i386/fpu/e_powl.S (p78): New object.
69125         (__ieee754_powl): Saturate large exponents rather than testing for
69126         overflow of y*log2(x).
69127         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69128         * math/libm-test.inc (pow_test): Do not permit spurious overflow
69129         exceptions.
69130
69131         [BZ #11521]
69132         * math/s_ctan.c: Include <float.h>.
69133         (__ctan): Avoid internal overflow or cancellation in calculating
69134         denominator.
69135         * math/s_ctanf.c: Likewise.
69136         * math/s_ctanl.c: Likewise.
69137         * math/s_ctanh.c: Likewise.
69138         * math/s_ctanhf.c: Likewise.
69139         * math/s_ctanhl.c: Likewise.
69140         * math/libm-test.inc (ctan_test): Add more tests.
69141         (ctanh_test): Likewise.
69142         * sysdeps/i386/fpu/libm-test-ulps: Update.
69143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69144
69145 2012-04-09  Andreas Jaeger  <aj@suse.de>
69146
69147         [BZ #6894]
69148         * manual/filesys.texi (Directory Entries): Mention that d_namlen
69149         is an optional BSD extension.
69150
69151         [BZ #10254]
69152         * manual/stdio.texi (Opening Streams): Document additional fopen
69153         parameters.
69154
69155 2012-04-09  Roland McGrath  <roland@hack.frob.com>
69156
69157         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
69158         %eax without telling the compiler.
69159
69160 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
69161
69162         [BZ # 13963]
69163         * manual/install.texi: Use sourceware.org.
69164
69165 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
69166
69167         [BZ #13873]
69168         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
69169         (__ieee754_pow): Generate overflow and underflow using huge*huge
69170         and tiny*tiny rather than just returning constant infinity or zero
69171         for large exponents.
69172         * math/libm-test.inc (pow_test): Require overflow exceptions for
69173         applicable cases of large exponents.
69174
69175         [BZ #706]
69176         * sysdeps/i386/fpu/e_pow.S (p10): New object.
69177         (__ieee754_pow): Use iterative multiplication algorithm only for
69178         integer exponents with absolute value below 1024.  Check for odd
69179         integer exponents when using algorithm for real exponents.
69180         * math/libm-test.inc (pow_test): Add more tests.
69181         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
69182
69183 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
69184
69185         [BZ #13705]
69186         * math/libm-test.inc (exp_test): Do not allow overflow exception
69187         on underflow test.
69188
69189 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
69190
69191         [BZ #13705]
69192         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
69193         instead of __kernel_standard_f.
69194
69195 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
69196
69197         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
69198         * sysdeps/x86_64/memset_chk.S: Likewise.
69199
69200 2012-04-08  Andreas Jaeger  <aj@suse.de>
69201
69202         [BZ #10153]
69203         * manual/startup.texi (Environment Access): Describe return value
69204         for putenv and setenv.
69205
69206         [BZ #6895]
69207         * manual/filesys.texi (Directory Entries): Add description for
69208         DT_LNK.
69209
69210         [BZ #6890]
69211         * manual/filesys.texi (Directory Entries): Clarify that it's file
69212         system not operating system in the description of DT_UNKNOWN.
69213
69214         [BZ #6578]
69215         * manual/syslog.texi (closelog): Fix reference, it's openlog.
69216
69217 2012-04-08  Stephen Compall  <s11@member.fsf.org>
69218
69219         [BZ #6649]
69220         * manual/llio.texi (Opening and Closing Files): Add cross
69221         reference to explain mode argument.
69222
69223 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
69224
69225         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
69226         * sysdeps/x86_64/memset_chk.S: Likewise.
69227
69228 2012-04-07  David S. Miller  <davem@davemloft.net>
69229
69230         * elf/elf.h (R_SPARC_WDISP10): Define.
69231         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
69232         R_SPARC_SIZE32.
69233         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
69234         R_SPARC_SIZE64 and R_SPARC_H34.
69235
69236 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
69237
69238         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
69239         conditions and remove no longer applicable assertion.
69240
69241 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
69242
69243         * bits/byteswap.h: Include <features.h>.
69244         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
69245         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
69246
69247 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
69248
69249         * bits/byteswap.h (__bswap_16): Removed.
69250         Include <bits/byteswap-16.h> to get __bswap_16.
69251         * sysdeps/i386/bits/byteswap.h: Likewise.
69252         * sysdeps/s390/bits/byteswap.h: Likewise.
69253         * sysdeps/x86_64/bits/byteswap.h: Likewise.
69254         * bits/byteswap-16.h: New file.
69255         * sysdeps/i386/bits/byteswap-16.h: Likewise.
69256         * sysdeps/s390/bits/byteswap-16.h: Likewise.
69257         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
69258         * string/Makefile (headers): Add bits/byteswap-16.h.
69259
69260 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
69261
69262         [BZ #13895]
69263         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
69264         extra indirection.
69265         * nss/Makefile (tests-static, tests): Add tst-nss-static.
69266         * nss/tst-nss-static.c: New.
69267
69268 2012-04-06  Robert Millan  <rmh@gnu.org>
69269
69270         [BZ #6486]
69271         * manual/llio.texi (File Position Primitive): lseek
69272         refers to WHENCE when it really means OFFSET.
69273
69274 2012-04-06  Andreas Jaeger  <aj@suse.de>
69275
69276         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
69277         strncmp declarations.
69278
69279         * abilist/libc.abilist: Add __poll and __ppoll.
69280
69281 2012-04-05  David S. Miller  <davem@davemloft.net>
69282
69283         * scripts/check-local-headers.sh: Accept a host triplet in the
69284         path matched by the exclude regexp.
69285
69286         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
69287         definition.
69288         * sysdeps/powerpc/powerpc32/dl-machine.h
69289         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
69290         * sysdeps/s390/s390-32/dl-machine.h
69291         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
69292         * sysdeps/sparc/sparc32/dl-machine.h
69293         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
69294         * sysdeps/sparc/sparc64/dl-machine.h
69295         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
69296
69297         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
69298         lazy binding.
69299         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
69300         undefined symbol errors.
69301
69302         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
69303         DT_NEEDED entries.
69304
69305 2012-04-05  Michael Matz  <matz@suse.de>
69306
69307         [BZ #13592]
69308         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
69309
69310 2012-04-05  Andreas Jaeger  <aj@suse.de>
69311
69312         [BZ #13908]
69313         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
69314         comment.
69315
69316 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
69317
69318         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
69319         which ROUND is no valid rounding mode.
69320
69321 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
69322
69323         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
69324         read again.
69325         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
69326
69327 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
69328
69329         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
69330         an exception using FPU order intentionally.
69331
69332 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
69333
69334         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
69335         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
69336         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
69337         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
69338
69339 2012-04-05  Simon Josefsson  <simon@josefsson.org>
69340
69341         [BZ #12340]
69342         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
69343         EINVAL when BUFLEN is too smal.
69344
69345 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
69346
69347         [BZ #13553]
69348         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
69349         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
69350
69351 2012-04-03  Andreas Jaeger  <aj@suse.de>
69352
69353         [BZ #13938]
69354         * manual/setjmp.texi (System V contexts): Fix sentence.
69355
69356         [BZ #13926]
69357         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
69358         New macro for this case.
69359         [!__GNUC__] (__bswap_64): New inline function for this case.
69360         * sysdeps/x86_64/bits/byteswap.h: Likewise.
69361         * bits/byteswap.h: Likewise.
69362         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
69363         ull, guard with __GLIBC_HAVE_LONG_LONG.
69364
69365         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
69366         __GLIBC_HAVE_LONG_LONG.
69367
69368         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
69369         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
69370
69371 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
69372
69373         [BZ #13691]
69374         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
69375         inptr and inend, rather than using last_ch.
69376
69377 2012-04-02  David S. Miller  <davem@davemloft.net>
69378
69379         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
69380         * stdio-common/printf-parse.h (read_int): Change return type to
69381         'int', return -1 on INT_MAX overflow.
69382         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
69383         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
69384         overflows INT_MAX.  Check for overflow of in-format-string precision
69385         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
69386         SIZE_MAX not INT_MAX for integer overflow test.
69387         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
69388         skip the construct in the format string but do not record anything.
69389         * stdio-common/bug22.c: Adjust to test both width/prevision
69390         INT_MAX overflow as well as total length INT_MAX overflow.  Check
69391         explicitly for proper errno values.
69392
69393 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
69394
69395         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
69396         CHAR_MAX.
69397         * string/test-strcmp.c [! WIDE]: Likewise.
69398         * time/tst-mktime2.c: Likewise for INT_MAX.
69399         * string/test-string.h: #include <sys/param.h> for MIN.
69400
69401         * csu/init-first.c (__libc_init_first): Call __ctype_init.
69402         * sysdeps/i386/init-first.c (init): Likewise.
69403         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
69404         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
69405         * sysdeps/sh/init-first.c (init): Likewise.
69406
69407 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
69408
69409         * po/ru.po: Update from translation team.
69410         * po/vi.po: Likewise.
69411
69412 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
69413
69414         * resolv/nss_dns/dns-host.c: Merge copyright years.
69415
69416 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69417
69418         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
69419         Optimize memcpy with prefetch if
69420         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
69421         src, dst pointers have unequal 16 byte alignments.
69422
69423 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
69424
69425         [BZ #13928]
69426         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
69427         from a CNAME entry and return the minimum ttl for the query.
69428         (gaih_getanswer_slice): Likewise.
69429
69430 2012-03-30  Jeff Law  <law@redhat.com>
69431
69432         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
69433         due to long keys.
69434         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
69435         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
69436
69437         * resolv/nss_dns/dns-host.c: Update copyright year.
69438
69439 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
69440
69441         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
69442         requests to save a system call.  Fix check that all bytes are sent.
69443
69444         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
69445         comments for sendmmsg.
69446
69447 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69448
69449         [BZ #13691]
69450         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
69451         with only 1 character between 0x0041 and 0x01b0.
69452         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
69453         * wcsmbs/tst-mbsnrtowcs.c: New file.
69454
69455 2012-03-29  David S. Miller  <davem@davemloft.net>
69456
69457         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
69458         small copies by hand.
69459
69460 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
69461
69462         [BZ #13761]
69463         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
69464         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
69465         group memberships.
69466
69467 2012-03-28  David S. Miller  <davem@davemloft.net>
69468
69469         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
69470         that branches into memcpy.
69471         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
69472         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
69473         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
69474         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
69475         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
69476         bits.
69477         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
69478         implementation too.
69479         * sysdeps/sparc/mempcpy.S: New file.
69480
69481         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
69482         the IFUNC routine in the libc case.
69483         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
69484
69485         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
69486         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
69487         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
69488         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
69489         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
69490         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
69491         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
69492         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
69493
69494         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
69495         loop to 256 bytes instead of 64 bytes and fix test signedness.
69496
69497         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
69498         * sysdeps/sparc/sparc32/Makefile: rather than here...
69499         * sysdeps/sparc/sparc64/Makefile: and here.
69500
69501 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
69502
69503         * malloc/mallocbug.c: Avoid warnings about unused variables.
69504
69505 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
69506
69507         [BZ #13760]
69508         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
69509         in the right place. Discard and retry query if response is
69510         larger than input buffer size.
69511
69512 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
69513
69514         [BZ #369]
69515         [BZ #2678]
69516         [BZ #3866]
69517         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
69518         x for large integer exponent.
69519         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
69520         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
69521         sign of result as needed afterwards.
69522         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
69523         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
69524         result for underflowing pow the same as for overflow.
69525         (__kernel_standard_l): Handle powl overflow and underflow here
69526         rather than calling __kernel_standard.
69527         * math/libm-test.inc (pow_test): Add more tests.
69528
69529         [BZ #3868]
69530         [BZ #13879]
69531         [BZ #13910]
69532         [BZ #13911]
69533         [BZ #13912]
69534         [BZ #13913]
69535         [BZ #13915]
69536         [BZ #13916]
69537         [BZ #13917]
69538         [BZ #13918]
69539         [BZ #13919]
69540         [BZ #13920]
69541         [BZ #13921]
69542         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
69543         * sysdeps/ieee754/k_standard.c: Include <float.h>.
69544         (__kernel_standard_l): New function.
69545         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
69546         __kernel_standard.
69547         * math/w_acosl.c (__acosl): Likewise.
69548         * math/w_asinl.c (__asinl): Likewise.
69549         * math/w_atan2l.c (__atan2l): Likewise.
69550         * math/w_atanhl.c (__atanhl): Likewise.
69551         * math/w_coshl.c (__coshl): Likewise.
69552         * math/w_exp10l.c (__exp10l): Likewise.
69553         * math/w_exp2l.c (__exp2l): Likewise.
69554         * math/w_fmodl.c (__fmodl): Likewise.
69555         * math/w_hypotl.c (__hypotl): Likewise.
69556         * math/w_j0l.c (__j0l, __y0l): Likewise.
69557         * math/w_j1l.c (__j1l, __y1l): Likewise.
69558         * math/w_jnl.c (__jnl, __ynl): Likewise.
69559         * math/w_lgammal.c (__lgammal): Likewise.
69560         * math/w_log10l.c (__log10l): Likewise.
69561         * math/w_log2l.c (__log2l): Likewise.
69562         * math/w_logl.c (__logl): Likewise.
69563         * math/w_powl.c (__powl): Likewise.
69564         * math/w_remainderl.c (__remainderl): Likewise.
69565         * math/w_scalbl.c (sysv_scalbl): Likewise.
69566         * math/w_sinhl.c (__sinhl): Likewise.
69567         * math/w_sqrtl.c (__sqrtl): Likewise.
69568         * math/w_tgammal.c (__tgammal): Likewise.
69569         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
69570         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
69571         * math/libm-test.inc (acos_test): Add more tests.
69572         (acosh_test): Likewise.
69573         (asin_test): Likewise.
69574         (atanh_test): Likewise.
69575         (exp_test): Likewise.
69576         (exp10_test): Likewise.
69577         (exp2_test): Likewise.
69578         (expm1_test): Likewise.
69579         (lgamma_test): Likewise.
69580         (log_test): Likewise.
69581         (log10_test): Likewise.
69582         (log1p_test): Likewise.
69583         (log2_test): Likewise.
69584         (pow_test): Do not allow some spurious overflow exceptions.
69585         (sqrt_test): Add more tests.
69586         (tgamma_test): Likewise.
69587         (y0_test): Likewise.
69588         (y1_test): Likewise.
69589         (yn_test): Likewise.
69590
69591 2012-03-27  Anton Blanchard  <anton@samba.org>
69592
69593         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
69594         MAP_HUGETLB.
69595         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
69596         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
69597         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
69598
69599 2012-03-27  David S. Miller  <davem@davemloft.net>
69600
69601         * conform/Makefile: Run run-conformtest.sh using $(BASH).
69602
69603         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
69604         have-as-vis3 check.
69605
69606 2012-03-27  Andreas Jaeger  <aj@suse.de>
69607
69608         * sysdeps/x86_64/elf/configure.in: Moved to ...
69609         * sysdeps/x86_64/configure.in: ... here.
69610         * sysdeps/x86_64/elf/start.S: Moved to ...
69611         * sysdeps/x86_64/start.S: ... here.
69612         * sysdeps/x86_64/elf/configure: Delete.
69613
69614         * sysdeps/x86_64/configure.in: Merge contents from
69615         sysdeps/i386/configure.in (without i686 check).
69616
69617         * sysdeps/i386/elf/Versions: Merge into ...
69618         * sysdeps/i386/Versions: ... this.
69619         * sysdeps/i386/elf/Versions: Delete file.
69620         * sysdeps/i386/elf/start.S: Moved to ...
69621         * sysdeps/i386/start.S: ...here.
69622         * sysdeps/i386/elf/configure.in: Merge into...
69623         * sysdeps/i386/configure.in: ...here.
69624         * sysdeps/i386/elf/configure.in: Delete file.
69625         * sysdeps/i386/elf/configure: Delete file.
69626
69627         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
69628         * debug/backtracesyms.c: ... here.
69629         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
69630         * debug/backtracesymsfd.c: ... here.
69631         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
69632         * sysdeps/generic/ifunc-sel.h: ... here.
69633
69634         * sysdeps/unix/i386/start.c: Delete file.
69635         * sysdeps/unix/sparc/start.c: Delete file.
69636         * sysdeps/unix/start.c: Delete file.
69637
69638         * sysdeps/sh/elf/configure.in: Moved to ...
69639         * sysdeps/sh/configure.in: ... here.
69640         * sysdeps/sh/elf/start.S: Moved to ...
69641         * sysdeps/sh/start.S: ... here.
69642         * sysdeps/sh/elf/configure: Delete file.
69643
69644         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
69645         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
69646         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
69647         * sysdeps/powerpc/powerpc64/entry.h: ... here.
69648         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
69649         * sysdeps/powerpc/powerpc64/start.S: here.
69650         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
69651         * sysdeps/powerpc/powerpc64/Makefile: ... this.
69652         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
69653         * sysdeps/powerpc/powerpc64/configure.in: ... this.
69654         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
69655
69656         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
69657         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
69658         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
69659         * sysdeps/powerpc/powerpc32/start.S: ... here.
69660         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
69661         * sysdeps/powerpc/powerpc32/configure.in: ... this.
69662         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
69663
69664         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
69665         * sysdeps/powerpc/ifunc-sel.h: ... here.
69666         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
69667         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
69668
69669         * sysdeps/sparc/elf/configure.in: Moved to ...
69670         * sysdeps/sparc/configure.in: ... here.
69671         * sysdeps/sparc/elf/configure: Delete file.
69672         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
69673         * sysdeps/sparc/sparc32/start.S: ... here.
69674         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
69675         * sysdeps/sparc/sparc64/start.S: ... here.
69676         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
69677         * sysdeps/sparc/sparc32/Makefile: ... this.
69678         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
69679         * sysdeps/sparc/sparc64/Makefile: ... this.
69680
69681         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
69682         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
69683         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
69684         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
69685         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
69686         * sysdeps/s390/s390-32/setjmp.S: ... here.
69687         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
69688         * sysdeps/s390/s390-32/configure.in: ... here.
69689         * sysdeps/s390/s390-32/elf/configure: Delete file.
69690         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
69691         * sysdeps/s390/s390-32/start.S: ... here.
69692
69693         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
69694         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
69695         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
69696         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
69697         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
69698         * sysdeps/s390/s390-64/setjmp.S: ... here.
69699         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
69700         * sysdeps/s390/s390-64/configure.in: ... here
69701         * sysdeps/s390/s390-64/elf/configure: Delete file.
69702         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
69703         * sysdeps/s390/s390-64/start.S: ... here.
69704         * sysdeps/s390/s390-64/elf/configure: Delete.
69705
69706         * configure.in: Remove support for elf directories in sysdeps.
69707
69708         * configure: Regenerated.
69709         * sysdeps/i386/configure: Regenerated.
69710         * sysdeps/powerpc/powerpc32/configure: Regenerated.
69711         * sysdeps/powerpc/powerpc64/configure: Regenerated.
69712         * sysdeps/s390/s390-32/configure: Regenerated.
69713         * sysdeps/s390/s390-64/configure: Regenerated.
69714         * sysdeps/sh/configure: Regenerated.
69715         * sysdeps/sparc/configure: Regenerated.
69716         * sysdeps/x86_64/configure: Regenerated.
69717
69718 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
69719
69720         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69721
69722         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
69723         denormal result into account.
69724
69725 2012-03-25  Roland McGrath  <roland@hack.frob.com>
69726
69727         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
69728         Reported by Allan McRae <allan@archlinux.org>.
69729
69730 2012-03-23  Jeff Law  <law@redhat.com>
69731
69732         * nss/getnssent.c (__nss_getent): Fix typo.
69733
69734 2012-03-23  David S. Miller  <davem@davemloft.net>
69735
69736         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69737
69738 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
69739
69740         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
69741         to pad to uint64_t for each field.
69742         (dl_tls_index): Replace unsigned long with uint64_t.
69743
69744 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
69745         Paul Pluzhnikov  <ppluzhnikov@google.com>
69746
69747         [BZ #6528]
69748         * grp/Makefile (otherlibs): Don't set it.
69749         * inet/Makefile (otherlibs): Likewise.
69750         * login/Makefile (otherlibs): Likewise.
69751         * nscd/Makefile (otherlibs): Likewise.
69752         * posix/Makefile (otherlibs): Likewise.
69753         * pwd/Makefile (otherlibs): Likewise.
69754         * rt/Makefile (otherlibs): Likewise.
69755         * sunrpc/Makefile (otherlibs): Likewise.
69756         * nss/Makefile (otherlibs): Likewise.
69757         Add libnss_files to routines and static-only-routines.
69758         ($(objpfx)getent): Remove rule.
69759         * resolv/Makefile: Add libnss_dns and libresolv to routines and
69760         static-only-routines.
69761
69762 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
69763
69764         [BZ #13892]
69765         * math/s_cexp.c: Include <float.h>.
69766         (__cexp): Handle exp result overflowing not necessarily
69767         overflowing both real and imaginary parts of result.
69768         * math/s_cexpf.c: Likewise.
69769         * math/s_cexpl.c: Likewise.
69770         * math/libm-test.inc (cexp_test): Add more tests.
69771         * sysdeps/i386/fpu/libm-test-ulps: Update.
69772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69773
69774 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
69775
69776         * include/link.h (ELFW): New macro.
69777         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
69778         Replace ELF64_R_TYPE with ELFW(R_TYPE).
69779
69780 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
69781
69782         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
69783         with uint64_t.
69784
69785 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
69786
69787         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
69788         declaration.
69789         (struct La_x32_retval): Likewise.
69790
69791 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
69792
69793         * sysdeps/x86_64/preconfigure.in: New file.
69794         * sysdeps/x86_64/preconfigure: New generated file.
69795
69796 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
69797
69798         [BZ #13824]
69799         * math/e_exp2l.c: Include <float.h>.
69800         (__ieee754_exp2l): Handle overflow and underflow cases
69801         separately.  Only pass fractional part of argument to
69802         __ieee754_expl.
69803         * math/libm-test.inc (exp2_test): Add more tests.
69804
69805         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
69806         negating x to take absolute value.
69807         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
69808         Likewise.
69809         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
69810         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
69811         Likewise.
69812         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
69813         computing low part if x was negated.
69814         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
69815
69816 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
69817
69818         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
69819         la_x32_gnu_pltexit.
69820         (pltexit): Cast int_retval to ptrdiff_t.
69821         * elf/tst-auditmod3b.c: Likewise.
69822         * elf/tst-auditmod4b.c: Likewise.
69823         * elf/tst-auditmod5b.c: Likewise.
69824         * elf/tst-auditmod6b.c: Likewise.
69825         * elf/tst-auditmod6c.c: Likewise.
69826         * elf/tst-auditmod7b.c: Likewise.
69827
69828         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
69829         and x32_gnu_pltexit.
69830
69831         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
69832         __ELF_NATIVE_CLASS.
69833         (La_x32_regs): New macro.
69834         (La_x32_retval): Likewise.
69835         (la_x32_gnu_pltenter): New function prototype.
69836         (la_x32_gnu_pltexit): Likewise.
69837
69838 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
69839
69840         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
69841         exponent.
69842
69843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69844
69845         * configure.in (libc_cv_cc_nofma): Check for option to disable
69846         generation of FMA instructions.
69847         * configure: Regenerate.
69848         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
69849         * sysdeps/ieee754/dbl-64/Makefile: New file.
69850         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
69851         Remove brandred-fma4.
69852         (CFLAGS-brandred-fma4.c): Remove.
69853         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
69854         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
69855         define.
69856         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
69857         define.
69858
69859 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
69860
69861         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
69862         LLONG_MAX != LONG_MAX.
69863         (_itoa_word): Use _ITOA_WORD_TYPE on value.
69864         (_fitoa_word): Likewise.
69865         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
69866         LLONG_MAX != LONG_MAX.
69867         * stdio-common/_itowa.h: Include <_itoa.h>.
69868         (_itowa_word): Use _ITOA_WORD_TYPE on value.
69869         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
69870         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
69871         only if not defined.
69872         (_ITOA_WORD_TYPE): Likewise.
69873         (_itoa_word): Use _ITOA_WORD_TYPE on value.
69874         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
69875
69876 2012-03-21  David S. Miller  <davem@davemloft.net>
69877
69878         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69879
69880 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
69881
69882         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
69883         of x86_64 when setting libc_cv_slibdir, libdir and
69884         libc_cv_localedir.
69885         * sysdeps/unix/sysv/linux/configure: Regenerated.
69886
69887 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
69888
69889         * manual/lang.texi (Old Varargs): Remove section.
69890         (How Variadic): Update menu.
69891         (va_start): Do not mention varargs.h.
69892
69893 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
69894             Joseph Myers  <joseph@codesourcery.com>
69895
69896         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
69897         link test.
69898         * configure: Regenerated.
69899
69900 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
69901
69902         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
69903         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
69904         conformtest.pl
69905
69906 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
69907
69908         * NOTES: Remove.
69909         * Makefile (files-for-dist): Remove NOTES.
69910         (NOTES): Remove rule.
69911         * README: Don't refer to NOTES.
69912         * manual/creature.texi: Don't include macros.texi.
69913         * manual/intro.texi (creature.texi): Remove comment referring to
69914         NOTES.
69915
69916         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
69917         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
69918         * configure: Regenerated.
69919         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
69920         LIBC_TRY_CC_OPTION.
69921         (libc_cv_as_i686): Likewise.
69922         (libc_cv_cc_avx): Likewise.
69923         (libc_cv_cc_sse2avx): Likewise.
69924         (libc_cv_cc_fma4): Likewise.
69925         (libc_cv_cc_novzeroupper): Likewise.
69926         * sysdeps/i386/configure: Regenerated.
69927
69928         [BZ #13883]
69929         * sysdeps/i386/fpu/s_cexp.S: Remove.
69930         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69931         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69932         * math/libm-test.inc (cexp_test): Add more tests.
69933         * sysdeps/i386/fpu/libm-test-ulps: Update.
69934         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69935
69936 2012-03-21  Allan McRae  <allan@archlinux.org>
69937
69938         * timezone/Makefile: Do not install iso3166.tab and zone.tab
69939
69940 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
69941
69942         [BZ #13871]
69943         * math/w_exp2.c: Do not include <float.h>.
69944         (o_threshold, u_threshold): Remove.
69945         (__exp2): Calculate result before checking finiteness and calling
69946         __kernel_standard.
69947         * math/w_exp2f.c: Likewise.
69948         * math/w_exp2l.c: Likewise.
69949         * math/libm-test.inc (exp2_test): Require overflow exception for
69950         1e6 input.
69951
69952         [BZ #3866]
69953         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
69954         range of signed 64-bit integers before using fistpll.  Remove
69955         checks for whether integers fit in mantissa bits.
69956         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
69957         the range of signed 32-bit integers before using fistpl.  Remove
69958         checks for whether integers fit in mantissa bits.
69959         * sysdeps/i386/fpu/e_powl.S (p64): New object.
69960         (__ieee754_powl): Test for y outside the range of signed 64-bit
69961         integers before using fistpll.  Reduce 64-bit values to 63-bit
69962         ones as needed.
69963         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
69964         divide-by-zero is raised for zero to large negative powers.
69965         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
69966         (__ieee754_powl): Test for y outside the range of signed 64-bit
69967         integers before using fistpll.  Reduce 64-bit values to 63-bit
69968         ones as needed.
69969         * math/libm-test.inc (pow_test): Add more tests.
69970
69971 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
69972
69973         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
69974         <stdio-common/_itoa.h>.
69975         * debug/segfault.c: Likewise.
69976         * elf/dl-cache.c: Likewise.
69977         * elf/dl-minimal.c: Likewise.
69978         * elf/dl-misc.c: Likewise.
69979         * elf/dl-sysdep.c: Likewise.
69980         * elf/dl-version.c: Likewise.
69981         * elf/rtld.c: Likewise.
69982         * hurd/hurdsock.c: Likewise.
69983         * hurd/lookup-retry.c: Likewise.
69984         * malloc/malloc.c: Likewise.
69985         * malloc/mtrace.c: Likewise.
69986         * nscd/nscd_getgr_r.c: Likewise.
69987         * nscd/nscd_getpw_r.c: Likewise.
69988         * nscd/nscd_getserv_r.c: Likewise.
69989         * posix/getopt_init.c: Likewise.
69990         * posix/wordexp.c: Likewise.
69991         * stdio-common/_itoa.c: Likewise.
69992         * stdio-common/printf_fphex.c: Likewise.
69993         * stdio-common/vfprintf.c: Likewise.
69994         * string/_strerror.c: Likewise.
69995         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
69996         * sysdeps/i386/i686/hp-timing.h: Likewise.
69997         * sysdeps/mach/_strerror.c: Likewise.
69998         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
69999         * sysdeps/mach/hurd/sethostid.c: Likewise.
70000         * sysdeps/mach/hurd/xmknodat.c: Likewise.
70001         * sysdeps/mach/xpg-strerror.c: Likewise.
70002         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
70003         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
70004         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
70005         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
70006         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
70007         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
70008         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
70009         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
70010         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
70011         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
70012         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
70013         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
70014         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
70015         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
70016         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
70017         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
70018         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
70019         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
70020         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
70021         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
70022         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
70023
70024         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
70025
70026         * stdio-common/_itoa.h: Moved to ...
70027         * sysdeps/generic/_itoa.h: Here.
70028
70029         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
70030
70031         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
70032         instead of "_itoa.h" and "_itowa.h".
70033         * stdio-common/vfprintf.: Likewise.
70034
70035 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
70036
70037         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
70038         <bits/wordsize.h>.
70039         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
70040         (__signbit): Likwise.
70041         (llrintf): Likwise.
70042         (llrint): Likwise.
70043
70044 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
70045
70046         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
70047         __WORDSIZE != 64.
70048
70049 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
70050
70051         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
70052         OVERFLOW_EXCEPTION_OK.
70053         * math/libm-test.inc ("Philosophy"): Update comment about
70054         exception testing.
70055         (OVERFLOW_EXCEPTION): Define.
70056         (OVERFLOW_EXCEPTION_OK): Likewise.
70057         (INVALID_EXCEPTION_OK): Renumber.
70058         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
70059         (IGNORE_ZERO_INF_SIGN): Likewise.
70060         (test_exceptions): Handle FE_OVERFLOW.
70061         (exp10_test): Expect overflow exceptions.
70062         (exp2_test): Likewise.
70063         (expm1_test): Likewise.
70064         (nextafter_test): Likewise.
70065         (pow_test): Likewise.
70066         (scalbn_test): Likewise.
70067         (scalbln_test): Likewise.
70068
70069 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
70070
70071         * sysdeps/x86_64/bits/atomic.h
70072         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
70073         64bit integer.
70074         (atomic_exchange_acq): Likewise.
70075         (__arch_exchange_and_add_body): Likewise.
70076         (__arch_add_body): Likewise.
70077         (atomic_add_negative): Likewise.
70078         (atomic_add_zero): Likewise.
70079
70080 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
70081
70082         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
70083         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
70084
70085 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
70086
70087         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
70088         Check __x86_64__ instead of __WORDSIZE.
70089
70090 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
70091
70092         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
70093
70094 2012-03-19  David S. Miller  <davem@davemloft.net>
70095
70096         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70097
70098         * sysdeps/sparc/fpu/fenv_private.h: New file.
70099         * sysdeps/sparc/fpu/math_private.h: Use it.
70100         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
70101         Remove.
70102         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
70103         (libc_feholdexcept_setroundl): Remove.
70104         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
70105         Remove.
70106         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
70107         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
70108
70109 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
70110
70111         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
70112         int64_t instead of long int.
70113         (INSERT_WORDS64): Likwise.
70114
70115 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
70116
70117         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
70118         _Unwind_GetCFA return to _Unwind_Ptr first.
70119
70120 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
70121
70122         [BZ #13629]
70123         * math/s_clog.c: Include <float.h>.
70124         (__clog): Scale large or subnormal inputs.
70125         * math/s_clogf.c: Likewise.
70126         * math/s_clogl.c: Likewise.
70127         * math/s_clog10.c: Include <float.h>.
70128         (M_LOG10_2): Define.
70129         (__clog10): Scale large or subnormal inputs.
70130         * math/s_clog10f.c: Likewise.
70131         * math/s_clog10l.c: Likewise.
70132         * math/libm-test.inc (clog_test): Add more tests.
70133         (clog10_test): Likewise.
70134         * sysdeps/i386/fpu/libm-test-ulps: Update.
70135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70136
70137         [BZ #11451]
70138         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
70139         x and y.
70140         * math/libm-test.inc (atan2_test): Add another test.
70141
70142         * Makerules (common-objdir-compile): Remove.
70143         * sysdeps/unix/Makefile (config-generated): Do not add
70144         $(unix-generated) to variable.
70145         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
70146         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
70147         Remove rule.
70148         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
70149         Likewise.
70150         [generic bits/local_lim.h] (before-compile): Do not append to
70151         variable.
70152         [generic bits/local_lim.h] (common-generated): Likewise.
70153         [generic sys/param.h] (before-compile): Do not append to variable.
70154         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
70155         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
70156         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
70157         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
70158         include.
70159         [generic sys/param.h] (sys/param.h-includes): Remove variable.
70160         [generic sys/param.h] (sys/param.h-includes): Remove rule.
70161         [generic sys/param.h] ($(addprefix
70162         $(common-objpfx),$(sys/param.h-includes))): Likewise.
70163         [generic sys/param.h] (common-generated): Do not append to
70164         variable.
70165         [generic sys/param.h] (sysdep_headers): Likewise.
70166         [generic bits/errno.h] (before-compile): Do not append to
70167         variable.
70168         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
70169         rule.
70170         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
70171         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
70172         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
70173         [generic bits/errno.h] (common-generated): Do not append to
70174         variable.
70175         [generic bits/ioctls.h] (before-compile): Do not append to
70176         variable.
70177         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
70178         rule.
70179         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
70180         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
70181         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
70182         rule.
70183         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
70184         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
70185         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
70186         [generic bits/ioctls.h] (common-generated): Do not append to
70187         variable.
70188         [generic sys/syscall.h] (syscall.h): Remove variable.
70189         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
70190         rule.
70191         [generic sys/syscall.h] (before-compile): Do not append to
70192         variable.
70193         [generic sys/syscall.h] (common-generated): Likewise.
70194         * sysdeps/unix/errnos-tmpl.c: Remove file.
70195         * sysdeps/unix/errnos.awk: Likewise.
70196         * sysdeps/unix/ioctls-tmpl.c: Likewise.
70197         * sysdeps/unix/ioctls.awk: Likewise.
70198         * sysdeps/unix/mk-local_lim.c: Likewise.
70199         * sysdeps/unix/snarf-ioctls: Likewise.
70200
70201 2012-03-19  Richard Henderson  <rth@twiddle.net>
70202
70203         * sysdeps/i386/fpu/fenv_private.h: New file.
70204         * sysdeps/i386/fpu/math_private.h: Use it.
70205         (math_opt_barrier, math_force_eval): Remove.
70206         (libc_feholdexcept_setround_53bit): Remove.
70207         (libc_feupdateenv_53bit): Remove.
70208         * sysdeps/x86_64/fpu/math_private.h: Likewise.
70209         (math_opt_barrier, math_force_eval): Remove.
70210         (libc_feholdexcept): Remove.
70211         (libc_feholdexcept_setround): Remove.
70212         (libc_fetestexcept, libc_fesetenv): Remove.
70213         (libc_feupdateenv_test): Remove.
70214         (libc_feupdateenv, libc_feholdsetround): Remove.
70215         (libc_feresetround): Remove.
70216
70217         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
70218         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
70219
70220         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
70221         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
70222         (libc_feupdateenv_testl): New.
70223         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
70224         (libc_feupdateenv_testf): New.
70225         (libc_feupdateenv): Use libc_feupdateenv_test.
70226         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
70227         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
70228
70229         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
70230         (libc_feholdsetroundf, libc_feholdsetroundl): New.
70231         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
70232         (libc_feresetround_noex): New.
70233         (libc_feresetround_noexf): New.
70234         (libc_feresetround_noexl): New.
70235         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
70236         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
70237         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
70238         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
70239         SET_RESTORE_ROUND.
70240         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
70241         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
70242         (__cos): Likewise.
70243         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
70244         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
70245         SET_RESTORE_ROUND_NOEX.
70246         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
70247         SET_RESTORE_ROUND_NOEXF.
70248         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
70249         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
70250         (libc_feholdsetroundf): New.
70251         (libc_feresetround, libc_feresetroundf): New.
70252
70253         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
70254         (libc_feholdexcept_setround_53bit): Convert from macro to function.
70255         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
70256
70257         * sysdeps/generic/math_private.h: Include <fenv.h>.
70258         (default_libc_feholdexcept): New.
70259         (default_libc_feholdexcept_setround): New.
70260         (default_libc_fesetenv, default_libc_feupdateenv): New.
70261         (libc_feholdexcept): Only define if undefined.
70262         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
70263         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
70264         (libc_feholdexcept_setroundl): Likewise.
70265         (libc_feholdexcept_setround_53bit): Likewise.
70266         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
70267         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
70268         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
70269         (libc_feupdateenv_53bit): Likewise.
70270         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
70271         (libc_feholdexcept): Convert from macro to inline function.
70272         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
70273         (libc_fesetenv, libc_feupdateenv): Likewise.
70274
70275         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
70276         not previously defined.
70277         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
70278         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
70279         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
70280         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
70281         * sysdeps/ieee754/flt-32/math_private.h: New file.
70282         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
70283         math_private.h below SET_FLOAT_WORD.
70284         (__isnan, __isinf_ns, __finite): Remove.
70285         (__isnanf, __isinf_nsf, __finitef): Remove.
70286
70287 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
70288
70289         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70290
70291 2012-03-17  David S. Miller  <davem@davemloft.net>
70292
70293         [BZ #6471]
70294         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
70295         for 2.16.
70296
70297 2012-03-16  David S. Miller  <davem@davemloft.net>
70298
70299         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
70300         warnings.
70301
70302         [BZ #6471]
70303         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
70304         properly.
70305         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
70306         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
70307         sysdep_routines when subdir is sysvipc.
70308         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
70309         __getshmlba helper.
70310
70311         * sysdeps/sparc/fpu/libm-test/ulps: Update.
70312
70313 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70314
70315         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
70316         [__LP64__].
70317
70318 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70319
70320         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
70321         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
70322         (__lround): Renamed to ...
70323         (__llround): This.  Replace long int with long long int.
70324         Define lround functions as aliases of llround functions.
70325         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
70326
70327 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70328
70329         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
70330         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
70331         adresses to uintptr_t.  Replace "long int" and "unsigned long
70332         int" with "greg_t" on va_arg.
70333
70334 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70335
70336         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
70337         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
70338
70339         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
70340         Move e_machine check before EI_CLASS check.  Handle x32
70341         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
70342         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
70343         SKIP_EM_IA_64 and include
70344         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
70345
70346         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
70347         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
70348         (add_system_dir): New macro.
70349
70350         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
70351         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
70352
70353 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
70354
70355         [BZ #2551]
70356         [BZ #2552]
70357         [BZ #2553]
70358         [BZ #2554]
70359         [BZ #2562]
70360         [BZ #2563]
70361         [BZ #2565]
70362         [BZ #2566]
70363         [BZ #2576]
70364         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
70365         (y0): Likewise.
70366         * math/w_j0f.c (j0f): Likewise.
70367         (y0f): Likewise.
70368         * math/w_j0l.c (__j0l): Likewise.
70369         (__y0l): Likewise.
70370         * math/w_j1.c (j1): Likewise.
70371         (y1): Likewise.
70372         * math/w_j1f.c (j1f): Likewise.
70373         (y1f): Likewise.
70374         * math/w_j1l.c (__j1l): Likewise.
70375         (__y1l): Likewise.
70376         * math/w_jn.c (jn): Likewise.
70377         (yn): Likewise.
70378         * math/w_jnf.c (jnf): Likewise.
70379         (ynf): Likewise.
70380         * math/w_jnl.c (__jnl): Likewise.
70381         (__ynl): Likewise.
70382         * math/libm-test.inc (j0_test): Add more tests.
70383         (j1_test): Likewise.
70384         (jn_test): Likewise.  Add trailing semicolon to existing test.
70385         (y0_test): Likewise.
70386         (y1_test): Likewise.
70387         * sysdeps/i386/fpu/libm-test-ulps: Update.
70388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70389
70390         [BZ #13851]
70391         [BZ #13854]
70392         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
70393         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
70394         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
70395         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
70396         (__tanl): Set errno for infinite argument.
70397         * sysdeps/i386/fpu/mptan.c: Remove.
70398         * sysdeps/i386/fpu/s_tan.S: Likewise.
70399         * sysdeps/i386/fpu/s_tanl.S: Likewise.
70400         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
70401         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
70402         * math/libm-test.inc (tan_test): Add more tests and enable more
70403         tests for double and long double.
70404         * sysdeps/i386/fpu/libm-test-ulps: Update.
70405         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70406
70407 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
70408
70409         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
70410         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
70411
70412 2012-03-16  Roland McGrath  <roland@hack.frob.com>
70413
70414         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
70415         * configure.in: Use it for both main tree and add-ons.
70416         * configure: Regenerated.
70417
70418 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70419
70420         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
70421
70422 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
70423
70424         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
70425         in comment.
70426
70427         [BZ #13851]
70428         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
70429         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
70430         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
70431         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
70432         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
70433         infinite argument.
70434         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
70435         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
70436         != 0 for prec == 2.
70437         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
70438         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
70439         * sysdeps/i386/fpu/s_cosl.S: Likewise.
70440         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
70441         * sysdeps/i386/fpu/s_sinl.S: Likewise.
70442         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
70443         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
70444         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
70445         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
70446         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
70447         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
70448         * math/libm-test.inc (cos_test): Add more tests and enable more
70449         tests for long double.
70450         (sin_test): Likewise.
70451         (sincos_test): Likewise.
70452         * sysdeps/i386/fpu/libm-test-ulps: Update.
70453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70454
70455 2012-03-16  David S. Miller  <davem@davemloft.net>
70456
70457         * sysdeps/sparc/fpu/math_private.h: New file.
70458
70459 2012-03-15  David S. Miller  <davem@davemloft.net>
70460
70461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
70462         file.
70463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
70464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
70465         file.
70466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
70467         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
70468         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
70469         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
70470         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
70471         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
70472         sysdep routines.
70473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
70474
70475         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
70476         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
70477
70478         * sysdeps/sparc/sparc-ifunc.h: New file.
70479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
70480         sparc-ifunc.h
70481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
70482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
70483         Likewise.
70484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
70485         Likewise.
70486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
70487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
70488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
70489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
70490         Likewise.
70491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
70492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
70493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
70494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
70495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
70496         Likewise.
70497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
70498         Likewise.
70499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
70500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
70501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
70502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
70503         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
70504         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
70505         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
70506         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
70507         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
70508         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
70509         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
70510         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
70511         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
70512         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
70513         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
70514         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
70515         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
70516         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
70517         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
70518         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
70519         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
70520         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
70521         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
70522         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
70523
70524 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
70525
70526         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
70527         scaling.
70528         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70529
70530 2012-03-15  Andreas Jaeger  <aj@suse.de>
70531
70532         [BZ #13852]
70533         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
70534         ieee754/flt-32 implementation for sin, cos and sincos.
70535         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
70536         * sysdeps/i386/fpu/s_cosf.S: Likewise.
70537         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
70538         * sysdeps/i386/fpu/s_sinf.S: Likewise.
70539         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
70540         ieee754/flt-32 implementation for tan.
70541
70542         * math/libm-test.inc (cos_test): Enable some large input tests for
70543         float as well
70544         (sin_test): Likewise.
70545         (sincos_test): Likewise.
70546         (tan_test): Add tests for large input.
70547
70548         * sysdeps/i386/fpu/libm-test-ulps: Update.
70549
70550 2012-03-15  Andreas Jaeger  <aj@suse.de>
70551
70552         [BZ #13658]
70553         * math/libm-test.inc (cos_test): Add more test cases.
70554         (sin_test): Likewise.
70555         (sincos_test): Likewise.
70556
70557 2012-03-15  Andreas Jaeger  <aj@suse.de>
70558
70559         [BZ #13837]
70560         * math/libm-test.inc (cos_test): Add a test case for large input
70561         value.
70562         (sin_test): Likewise.
70563         (sincos_test): Likewise.
70564
70565 2012-03-15  Andreas Jaeger  <aj@suse.de>
70566             Joseph Myers  <joseph@codesourcery.com>
70567
70568         [BZ #13658]
70569         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
70570         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
70571         * sysdeps/i386/fpu/branred.c: Likewise.
70572         * sysdeps/i386/fpu/dosincos.c: Likewise.
70573         * sysdeps/i386/fpu/mpa.c: Likewise.
70574         * sysdeps/i386/fpu/s_cos.S: Likewise.
70575         * sysdeps/i386/fpu/s_sin.S: Likewise.
70576         * sysdeps/i386/fpu/s_sincos.S: Likewise.
70577         * sysdeps/i386/fpu/sincos32.c: Likewise.
70578
70579         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
70580         Define.
70581         (libc_feupdateenv_53bit): Define.
70582         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
70583         Define.
70584         (libc_feupdateenv_53bit): Define.
70585
70586         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
70587         53 bit (without extend i386 double precision).
70588
70589         * math/libm-test.inc (sincos_test): Add tests for large input.
70590         (sin): Likewise.
70591         (cos): Likewise.
70592
70593         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
70594
70595 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
70596
70597         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70598
70599 2012-03-15  David S. Miller  <davem@davemloft.net>
70600
70601         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
70602         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
70603         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
70604         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
70605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
70606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
70607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
70608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
70609         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
70610         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
70611         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
70612         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
70613         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
70614         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
70615         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
70616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
70617         file.
70618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
70619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
70620         file.
70621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
70622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
70623         file.
70624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
70625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
70626         file.
70627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
70628         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
70629         fmin/fmax sysdep routines.
70630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
70631
70632 2012-03-14  David S. Miller  <davem@davemloft.net>
70633
70634         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
70635         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
70636         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
70637         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
70638         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
70639         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
70640         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
70641         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
70642         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
70643         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
70644         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
70645         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
70646         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
70647         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
70648         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
70649         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
70650         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
70651         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
70652         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
70653         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
70654         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
70655         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
70656         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
70657         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
70658         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
70659         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
70660         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
70661         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
70662         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
70663         routines.
70664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
70665         file.
70666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
70667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
70668         file.
70669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
70670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
70671         file.
70672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
70673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
70674         file.
70675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
70676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
70677         file.
70678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
70679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
70680         file.
70681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
70682         file.
70683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
70684         file.
70685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
70686         file.
70687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
70688         New file.
70689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
70690         file.
70691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
70692         file.
70693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
70694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
70695         file.
70696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
70697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
70698         file.
70699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
70700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
70701         file.
70702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
70703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
70704         VIS3 routines.
70705
70706         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
70707         New file.
70708
70709         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70710
70711         * sysdeps/sparc/configure.in: New file.
70712         * sysdeps/sparc/configure: Generate.
70713         * configure.in (libc_cv_sparc_as_vis3): Substitute.
70714         * configure: Regenerate.
70715         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
70716         * config.make.in (have-as-vis3): New.
70717         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
70718         available use -Av9d instead of -Av9a.
70719         * sysdeps/sparc/sparc64/Makefile: Likewise.
70720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
70721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
70722         New file.
70723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
70724         file.
70725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
70726         New file.
70727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
70728         file.
70729         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
70730         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
70731         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
70732         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
70733         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
70734
70735         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
70736         fzeros/fnegs to load 0x80000000 into a float register instead of
70737         using the stack.
70738         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
70739
70740 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
70741
70742         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
70743         bits/syscall.h.
70744         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
70745         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
70746         ($(inst_includedir)/bits/syscall.h): Remove rule.
70747         ($(objpfx)bits/syscall.d): Include instead of
70748         $(objpfx)syscall-list.d.
70749         (generated): Change syscall-list.h and syscall-list.d to
70750         bits/syscall.h and bits/syscall.d.
70751
70752 2012-03-14  Roland McGrath  <roland@hack.frob.com>
70753
70754         [BZ #13846]
70755         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
70756
70757 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
70758
70759         [BZ #13841]
70760         * math/s_csqrt.c: Include <float.h>.
70761         (__csqrt): Scale large or subnormal inputs.
70762         * math/s_csqrtf.c: Likewise.
70763         * math/s_csqrtl.c: Likewise.
70764         * math/libm-test.inc (csqrt_test): Add more tests.
70765         * sysdeps/i386/fpu/libm-test-ulps: Update.
70766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70767
70768         [BZ #13840]
70769         * math/libm-test.inc (hypot_test): Add more tests.
70770
70771 2012-03-13  David S. Miller  <davem@davemloft.net>
70772
70773         [BZ #13840]
70774         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
70775         double-precision for the calculation instead of scaling.
70776
70777 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
70778
70779         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
70780         manipulate bits before adding and subtracting TWO52[sx].
70781         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
70782         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
70783         Likewise.
70784         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
70785
70786 2012-03-13  David S. Miller  <davem@davemloft.net>
70787
70788         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
70789         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
70790         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
70791         rtld-global-offsets.h
70792         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
70793
70794         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
70795         large parameters.
70796
70797         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
70798
70799         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
70800         'err' in the ifdef scope in which it is actually used.
70801
70802         * nss/nss_db/db-init.c: Include string.h
70803
70804 2012-03-12  David S. Miller  <davem@davemloft.net>
70805
70806         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
70807         masking out of the most significant byte of random value used.
70808         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
70809         Fix coding style in previous change.
70810
70811         * sysdeps/unix/sysv/linux/kernel-features.h
70812         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
70813         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
70814         expression.
70815         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
70816         later.
70817
70818 2012-03-11  David S. Miller  <davem@davemloft.net>
70819
70820         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
70821         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
70822         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
70823         for 'resultvar' otherwise things get truncated on 64-bit.
70824
70825         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
70826         Fix masking out of the most significant byte of random value used.
70827
70828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70829
70830 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
70831
70832         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70833
70834 2012-03-09  David S. Miller  <davem@davemloft.net>
70835
70836         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
70837         variables with appropriate CPP guards.
70838         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
70839         from the frame pointer, not the stack pointer.  Correct layout
70840         comments.  Fix test on resulting framesize and the management of
70841         the outregs buffer for pltexit.  Preserve floating point return
70842         values across _dl_call_pltexit call.
70843         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
70844         framesize and the management of the outregs buffer for pltexit.
70845         Preserve floating point return values across _dl_call_pltexit
70846         call.
70847         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
70848         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
70849         (la_sparc64_gnu_pltexit): New functions.
70850         (print_exit): Fix format string for return register value.
70851
70852 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
70853
70854         * sunrpc/Makefile (others): Add rpcgen.
70855         ($(objpfx)rpcgen): Remove special build rule and dependency on
70856         libc.
70857         * sunrpc/rpcgen.c: New file.
70858
70859 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         [BZ #13673]
70862         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
70863         * stdio-common/bug-vfprintf-nargs.c: Likewise.
70864         * sysdeps/i386/crti.S: Likewise.
70865         * sysdeps/i386/crtn.S: Likewise.
70866         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
70867         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
70868         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
70869         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
70870         * sysdeps/sh/crti.S: Likewise.
70871         * sysdeps/sh/crtn.S: Likewise.
70872         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
70873
70874         [BZ #13673]
70875         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
70876         with URL.
70877         * locale/programs/locfile-kw.gperf: Likewise.
70878         * locale/programs/charmap-kw.h: Regenerated.
70879         * locale/programs/locfile-kw.h: Likewise.
70880
70881         [BZ #13673]
70882         * intl/plural.y: Replace FSF snail mail address with URL.
70883         * intl/plural.c: Regenerated.
70884
70885 2012-03-09  Richard Henderson  <rth@twiddle.net>
70886
70887         * include/math_private.h: Remove file.
70888         * math/math_private.h: Move file ...
70889         * sysdeps/generic/math_private.h: ... here.
70890
70891         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
70892         * sysdeps/powerpc/fpu/math_private.h: Likewise.
70893         * sysdeps/x86_64/fpu/math_private.h: Likewise.
70894
70895         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
70896         and <math_private.h>.
70897         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
70898         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
70899         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
70900         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
70901         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
70902         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
70903         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70904         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70905         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
70906         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70907         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70908         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
70909         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
70910         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70911         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
70912         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
70913         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
70914         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
70915         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
70916         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
70917         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70918         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
70919         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
70920         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70921         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
70922         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
70923         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
70924         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
70925         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70926         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
70927         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
70928         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70929         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
70930         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
70931         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
70932         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
70933         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
70934         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
70935         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
70936         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70937         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
70938         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
70939         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
70940         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
70941         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
70942         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
70943         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
70944         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
70945         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
70946         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
70947         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
70948         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
70949         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
70950         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
70951         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
70952         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
70953         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70954         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
70955         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
70956         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
70957         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70958         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
70959         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70960         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
70961         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
70962         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70963         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70964         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70965         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
70966         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
70967         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
70968         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
70969         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
70970         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
70971         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
70972         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
70973         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
70974         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
70975         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
70976         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
70977         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
70978         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
70979         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
70980         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
70981         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
70982         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
70983         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
70984         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
70985         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
70986         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
70987         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
70988         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
70989         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
70990         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
70991         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
70992         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
70993         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
70994         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
70995         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
70996         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
70997         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
70998         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
70999         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71000         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71001         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
71002         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71003         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71004         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71005         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
71006         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
71007         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
71008         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
71009         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71010         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
71011         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
71012         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71013         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
71014         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
71015         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
71016         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71017         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
71018         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
71019         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71020         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
71021         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
71022         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
71023         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
71024         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
71025         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
71026         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
71027         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
71028         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71029         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
71030         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
71031         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
71032         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
71033         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71034         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
71035         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
71036         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71037         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71038         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
71039         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
71040         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
71041         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
71042         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
71043         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
71044         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
71045         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
71046         * sysdeps/ieee754/k_standard.c: Likewise.
71047         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71048         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71049         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71050         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71051         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71052         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71053         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71054         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71055         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71056         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71057         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71058         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71059         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71060         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71061         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71062         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71063         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
71064         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71065         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71066         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
71067         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
71068         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
71069         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
71070         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
71071         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
71072         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
71073         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
71074         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
71075         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
71076         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
71077         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
71078         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
71079         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
71080         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
71081         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
71082         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
71083         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
71084         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
71085         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
71086         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
71087         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
71088         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
71089         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
71090         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
71091         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
71092         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
71093         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
71094         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
71095         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
71096         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
71097         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
71098         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
71099         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
71100         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
71101         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
71102         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
71103         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
71104         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
71105         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
71106         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
71107         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
71108         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
71109         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
71110         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71111         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71112         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71113         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71114         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71115         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71116         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71117         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71118         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
71119         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71120         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71121         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71122         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71123         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
71124         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71125         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71126         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
71127         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
71128         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
71129         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
71130         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
71131         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
71132         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
71133         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
71134         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
71135         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
71136         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
71137         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
71138         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
71139         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
71140         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
71141         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
71142         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
71143         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
71144         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
71145         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
71146         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
71147         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
71148         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
71149         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
71150         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
71151         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
71152         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
71153         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
71154         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
71155         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
71156         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
71157         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
71158         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
71159         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71160         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71161         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71162         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71163         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71164         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71165         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71166         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71167         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71168         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71169         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71170         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71171         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71172         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
71173         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
71174         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
71175         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
71176         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
71177         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
71178         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
71179         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
71180         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
71181         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
71182         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
71183         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
71184         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
71185         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
71186         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
71187         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
71188         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
71189         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
71190         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
71191         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
71192         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
71193         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
71194         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
71195         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
71196         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
71197         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
71198         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71199         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
71200         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
71201         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
71202         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
71203         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
71204         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
71205         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
71206         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
71207         * sysdeps/ieee754/s_lib_version.c: Likewise.
71208         * sysdeps/ieee754/s_matherr.c: Likewise.
71209         * sysdeps/ieee754/s_signgam.c: Likewise.
71210         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71211         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71212         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
71213         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
71214         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
71215         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
71216         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
71217         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
71218         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
71219         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
71220         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
71221         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
71222         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
71223         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
71224         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
71225         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
71226         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
71227         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
71228         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
71229         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
71230         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
71231
71232 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
71233
71234         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
71235         * sunrpc/rpc_main.c: Likewise.
71236         * sunrpc/rpc_svcout.c: Likewise.
71237
71238 2012-03-09  David S. Miller  <davem@davemloft.net>
71239
71240         * include/math_private.h: New file.
71241
71242 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
71243
71244         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
71245         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
71246         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
71247         from <bits/socket_type.h>.
71248         (enum __socket_type): Don't define here.
71249         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
71250         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
71251         bits/socket_type.h.
71252
71253         [BZ #13566]
71254         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
71255         checking __USE_GNU.
71256
71257         * Makerules ($(inst_includedir)/%.h): New rule.
71258         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
71259         (install-others): Remove variable setting.
71260         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
71261
71262 2012-03-08  Richard Henderson  <rth@twiddle.net>
71263
71264         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
71265         from macro to inline function; merge with the
71266         !__LIBC_INTERNAL_MATH_INLINES version.
71267         (__ieee754_sqrtf): Likewise.
71268
71269         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
71270         to inline function.
71271         (__rintf, __floor, __floorf): Likewise.
71272
71273         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
71274         macro to inline function.
71275         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
71276
71277         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
71278         not <math/math_private.h>.
71279
71280 2012-03-08  David S. Miller  <davem@davemloft.net>
71281
71282         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
71283         copyright year.
71284         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
71285
71286 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
71287
71288         * resolv/gai_misc.c (handle_requests): Fix struct timespec
71289         normalization.
71290         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
71291         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
71292
71293 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
71294
71295         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
71296         be defined individually, they must be defined as a block.  Define
71297         S for printing a string instead of hidint the different by using a
71298         macro for adding the 'l'.
71299         * stdio-common/tst-fphex-wide.c: Adjust.
71300
71301 2012-03-07  Marek Polacek  <polacek@redhat.com>
71302
71303         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
71304
71305 2012-03-08  Marek Polacek  <polacek@redhat.com>
71306
71307         [BZ #13806]
71308         * stdio-common/Makefile (tests): Add tst-fphex-wide.
71309         * stdio-common/tst-fphex.c: Define a few macros to make the
71310         test reusable.  Use them.
71311         * stdio-common/tst-fphex-wide.c: New file.
71312
71313 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
71314
71315         [BZ #6911]
71316         * manual/macros.texi (gnusystems): New macro.
71317         (nongnusystems): Likewise.
71318         (gnulinuxhurdsystems): Likewise.
71319         (gnuhurdsystems): Likewise..
71320         (gnulinuxsystems): Likewise.
71321         * manual/charset.texi: Use new macros or @theglibc{} to refer to
71322         variants of the GNU system, not "GNU system".
71323         * manual/conf.texi: Likewise.
71324         * manual/errno.texi: Likewise.  Update example of errno macro
71325         expansion.
71326         * manual/filesys.texi: Likewise.
71327         (getumask): Document as specific to GNU/Hurd.
71328         * manual/install.texi: Likewise.  Reword some references to
71329         GNU/Linux.
71330         * manual/intro.texi: Likewise.
71331         * manual/io.texi: Likewise.
71332         (File Name Portability): Detail which constraints are inapplicable
71333         to all GNU systems and which are only inapplicable to GNU/Hurd.
71334         * manual/job.texi: Likewise.
71335         * manual/llio.texi: Likewise.
71336         (O_NOCTTY): Document as present on GNU/Linux.
71337         * manual/maint.texi: Likewise.
71338         * manual/memory.texi: Likewise.
71339         * manual/pattern.texi: Likewise.
71340         * manual/pipe.texi: Likewise.
71341         * manual/process.texi: Likewise.
71342         * manual/resource.texi: Likewise.
71343         (RUSAGE_CHILDREN): Remove statement about specifying a particular
71344         child on GNU/Hurd.
71345         * manual/setjmp.texi: Likewise.
71346         * manual/signal.texi: Likewise.
71347         * manual/startup.texi: Likewise.
71348         * manual/stdio.texi: Likewise.
71349         * manual/terminal.texi: Likewise.
71350         (ONLCR): Document as POSIX.
71351         (OXTABS): Document availability on GNU/Linux as XTABS.
71352         (ONOEOT): Document availability separately from other bits.
71353         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
71354         * manual/time.texi: Likewise.
71355         * manual/users.texi: Likewise.
71356         * INSTALL: Regenerated.
71357         * sysdeps/gnu/errlist.c: Regenerated.
71358
71359         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
71360         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
71361         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
71362         puts.
71363         * configure: Regenerated.
71364
71365 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
71366
71367         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
71368         default includes instead of AC_HEADER_CHECK.
71369         * sysdeps/i386/configure: Regenerated.
71370
71371         [BZ #10716]
71372         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
71373         * math/s_cacoshf.c (__cacoshf): Likewise.
71374         * math/s_cacoshl.c (__cacoshl): Likewise.
71375         * math/s_casinh.c (__casinh): Set signs of result from argument.
71376         * math/s_casinhf.c (__casinhf): Likewise.
71377         * math/s_casinhl.c (__casinhl): Likewise.
71378         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
71379         (casinh_test): Add more tests.
71380         * sysdeps/i386/fpu/libm-test-ulps: Update.
71381         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71382
71383 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
71384
71385         * po/zh_TW.po: Update from translation team.
71386
71387         * login/Makefile (distribute): Remove variable.
71388         * catgets/Makefile: Likewise.
71389         * mach/Makefile: Likewise.
71390         * malloc/Makefile: Likewise.
71391         * misc/Makefile: Likewise.
71392         * iconv/Makefile: Likewise.
71393         * nscd/Makefile: Likewise.
71394         * hurd/Makefile: Likewise.
71395         * manual/Makefile: Likewise.
71396         * locale/Makefile: Likewise.
71397         * intl/Makefile: Likewise.
71398         * conform/Makefile: Likewise.
71399         * nss/Makefile: Likewise.
71400         * time/Makefile: Likewise.
71401         * soft-fp/Makefile: Likewise.
71402         * dirent/Makefile: Likewise.
71403         * gmon/Makefile: Likewise.
71404         * po/Makefile: Likewise.
71405         * rt/Makefile: Likewise.
71406         * socket/Makefile: Likewise.
71407         * math/Makefile: Likewise.
71408         * signal/Makefile: Likewise.
71409         * debug/Makefile: Likewise.
71410         * elf/Makefile: Likewise.
71411         * timezone/Makefile: Likewise.
71412         * stdlib/Makefile: Likewise.
71413         * iconvdata/Makefile: Likewise.
71414         * sunrpc/Makefile: Likewise.
71415         * io/Makefile: Likewise.
71416         * argp/Makefile: Likewise.
71417         * inet/Makefile: Likewise.
71418         * hesiod/Makefile: Likewise.
71419         * grp/Makefile: Likewise.
71420         * csu/Makefile: Likewise.
71421         * wctype/Makefile: Likewise.
71422         * crypt/Makefile: Likewise.
71423         * libio/Makefile: Likewise.
71424         * string/Makefile: Likewise.
71425         * nis/Makefile: Likewise.
71426         * resolv/Makefile: Likewise.
71427         * stdio-common/Makefile: Likewise.
71428         * wcsmbs/Makefile: Likewise.
71429         * dlfcn/Makefile: Likewise.
71430         * posix/Makefile: Likewise.
71431
71432         [BZ #6959]
71433         * timezone/Makefile: Don't install timezone files, just the programs
71434         and scripts.
71435
71436 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
71437
71438         * nss/databases.def: Add missing gshadow entry.
71439
71440         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
71441
71442 2012-03-06  Marek Polacek  <polacek@redhat.com>
71443
71444         [BZ #13726]
71445         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
71446         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
71447         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
71448         * stdio-common/tst-long-dbl-fphex.c: New file.
71449
71450 2012-03-06  David S. Miller  <davem@davemloft.net>
71451
71452         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
71453         (set_obp_int): New function.
71454         (get_obp_int): New function.
71455         (__get_clockfreq_via_dev_openprom): Likewise.
71456         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
71457         Avoid unused variable warnings on 'val' and use builtin_expect.
71458         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
71459         __builtin_expect.
71460         (INLINE_CLONE_SYSCALL): Likewise.
71461
71462 2012-03-05  David S. Miller  <davem@davemloft.net>
71463
71464         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71465
71466 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
71467
71468         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
71469
71470         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
71471         only for |x| >= 40.
71472         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71473
71474 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
71475
71476         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
71477         Replace gettimeofday with __vdso_gettimeofday.
71478
71479         * sysdeps/unix/sysv/linux/x86_64/init-first.c
71480         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
71481         __vdso_clock_gettime and __vdso_getcpu.
71482
71483         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
71484         time with __vdso_time.
71485
71486 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
71487
71488         * manual/lang.texi (size_t): Note types to which size_t may be
71489         equivalent with the GNU C Library, but do not describe when
71490         differences between them are significant.
71491
71492 2012-03-05  Andreas Jaeger  <aj@suse.de>
71493
71494         * sysdeps/i386/fpu/libm-test-ulps: Update.
71495
71496 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
71497
71498         [BZ #3976]
71499         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
71500         (__ieee754_pow): Save and restore rounding mode and use
71501         round-to-nearest for main computations.
71502         * math/libm-test.inc (pow_test_tonearest): New function.
71503         (pow_test_towardzero): Likewise.
71504         (pow_test_downward): Likewise.
71505         (pow_test_upward): Likewise.
71506         (main): Call the new functions.
71507         * sysdeps/i386/fpu/libm-test-ulps: Update.
71508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71509
71510         [BZ #3976]
71511         * math/libm-test.inc (cosh_test_tonearest): New function.
71512         (cosh_test_towardzero): Likewise.
71513         (cosh_test_downward): Likewise.
71514         (cosh_test_upward): Likewise.
71515         (sinh_test_tonearest): Likewise.
71516         (sinh_test_towardzero): Likewise.
71517         (sinh_test_downward): Likewise.
71518         (sinh_test_upward): Likewise.
71519         (main): Call the new functions.
71520         * sysdeps/i386/fpu/libm-test-ulps: Update.
71521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71522
71523 2012-03-05  Tom de Vries  <tom@codesourcery.com>
71524
71525         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
71526         default stack guard is set in last bytes.
71527         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
71528
71529 2012-03-05  Kees Cook  <keescook@chromium.org>
71530
71531         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
71532
71533         [BZ #13656]
71534         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
71535         possibly allocate from heap instead of stack.
71536         * stdio-common/bug-vfprintf-nargs.c: New file.
71537         * stdio-common/Makefile (tests): Add nargs overflow test.
71538
71539 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
71540
71541         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
71542
71543 2012-03-03  Marek Polacek  <polacek@redhat.com>
71544
71545         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
71546         * math/math_private.h: Likewise.
71547         * stdlib/tst-strtod.c: Likewise.
71548         * sysdeps/i386/i486/bits/atomic.h: Likewise.
71549         * sysdeps/x86_64/bits/atomic.h: Likewise.
71550
71551 2012-03-02  David S. Miller  <davem@davemloft.net>
71552
71553         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
71554         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
71555         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
71556         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
71557         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
71558         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
71559         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
71560         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
71561
71562 2012-03-02  Roland McGrath  <roland@hack.frob.com>
71563
71564         [BZ #13792]
71565         * manual/examples/README: New file, says the example source files
71566         can be used under GPL>=2.
71567         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
71568         line containing just "*/".
71569         * manual/examples/add.c: Add copyright header (GPL>=2).
71570         * manual/examples/argp-ex1.c: Likewise.
71571         * manual/examples/argp-ex2.c: Likewise.
71572         * manual/examples/argp-ex3.c: Likewise.
71573         * manual/examples/argp-ex4.c: Likewise.
71574         * manual/examples/atexit.c: Likewise.
71575         * manual/examples/db.c: Likewise.
71576         * manual/examples/dir.c: Likewise.
71577         * manual/examples/dir2.c: Likewise.
71578         * manual/examples/execinfo.c: Likewise.
71579         * manual/examples/filecli.c: Likewise.
71580         * manual/examples/filesrv.c: Likewise.
71581         * manual/examples/fmtmsgexpl.c: Likewise.
71582         * manual/examples/genpass.c: Likewise.
71583         * manual/examples/inetcli.c: Likewise.
71584         * manual/examples/inetsrv.c: Likewise.
71585         * manual/examples/isockad.c: Likewise.
71586         * manual/examples/longopt.c: Likewise.
71587         * manual/examples/memopen.c: Likewise.
71588         * manual/examples/memstrm.c: Likewise.
71589         * manual/examples/mkfsock.c: Likewise.
71590         * manual/examples/mkisock.c: Likewise.
71591         * manual/examples/mygetpass.c: Likewise.
71592         * manual/examples/pipe.c: Likewise.
71593         * manual/examples/popen.c: Likewise.
71594         * manual/examples/rprintf.c: Likewise.
71595         * manual/examples/search.c: Likewise.
71596         * manual/examples/select.c: Likewise.
71597         * manual/examples/setjmp.c: Likewise.
71598         * manual/examples/sigh1.c: Likewise.
71599         * manual/examples/sigusr.c: Likewise.
71600         * manual/examples/stpcpy.c: Likewise.
71601         * manual/examples/strdupa.c: Likewise.
71602         * manual/examples/strftim.c: Likewise.
71603         * manual/examples/strncat.c: Likewise.
71604         * manual/examples/subopt.c: Likewise.
71605         * manual/examples/swapcontext.c: Likewise.
71606         * manual/examples/termios.c: Likewise.
71607         * manual/examples/testopt.c: Likewise.
71608         * manual/examples/testpass.c: Likewise.
71609         * manual/examples/timeval_subtract.c: Likewise.
71610
71611         [BZ #13792]
71612         * manual/time.texi (Elapsed Time): Move timeval_subtract example
71613         function to ...
71614         * manual/timeval_subtract.c.texi: ... here, new file.
71615
71616 2012-03-02  David S. Miller  <davem@davemloft.net>
71617
71618         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
71619
71620 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
71621
71622         [BZ #3976]
71623         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
71624         (__sin): Save and restore rounding mode and use round-to-nearest
71625         for all computations.
71626         (__cos): Save and restore rounding mode and use round-to-nearest
71627         for all computations.
71628         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
71629         <fenv.h>.
71630         (tan): Save and restore rounding mode and use round-to-nearest for
71631         all computations.
71632         * math/libm-test.inc (cos_test_tonearest): New function.
71633         (cos_test_towardzero): Likewise.
71634         (cos_test_downward): Likewise.
71635         (cos_test_upward): Likewise.
71636         (sin_test_tonearest): Likewise.
71637         (sin_test_towardzero): Likewise.
71638         (sin_test_downward): Likewise.
71639         (sin_test_upward): Likewise.
71640         (tan_test_tonearest): Likewise.
71641         (tan_test_towardzero): Likewise.
71642         (tan_test_downward): Likewise.
71643         (tan_test_upward): Likewise.
71644         (main): Call the new functions.
71645         * sysdeps/i386/fpu/libm-test-ulps: Update.
71646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71647
71648         [BZ #10135]
71649         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
71650         small n, then large n, before computing and testing k+n.
71651         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
71652         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
71653         Likewise.
71654         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
71655         Likewise.
71656         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
71657         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
71658         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
71659         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
71660         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
71661         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
71662         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
71663         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
71664         * math/libm-test.inc (scalbn_test): Add more tests.
71665         (scalbln_test): Likewise.
71666
71667         * manual/filesys.texi (mode_t): Describe constraints on size and
71668         signedness, not exact equivalence to a particular type.
71669         (ino_t): Likewise.
71670         (ino64_t): Likewise.
71671         (dev_t): Likewise.
71672         (nlink_t): Likewise.
71673         (blkcnt_t): Likewise.
71674         (blkcnt64_t): Likewise.
71675         * manual/llio.texi (off_t): Likewise.
71676
71677         [BZ #3976]
71678         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
71679         (__ieee754_exp): Save and restore rounding mode and use
71680         round-to-nearest for all computations.
71681         * math/libm-test.inc (exp_test_tonearest): New function.
71682         (exp_test_towardzero): Likewise.
71683         (exp_test_downward): Likewise.
71684         (exp_test_upward): Likewise.
71685         (main): Call the new functions.
71686         * sysdeps/i386/fpu/libm-test-ulps: Update.
71687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71688
71689 2012-03-01  Chris Demetriou  <cgd@google.com>
71690
71691         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
71692         have predictable order.
71693
71694 2012-03-01  David S. Miller  <davem@davemloft.net>
71695
71696         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
71697
71698         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
71699         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
71700         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
71701         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
71702
71703         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
71704         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
71705         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
71706         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
71707         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
71708         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
71709         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
71710         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
71711         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
71712
71713         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71714
71715         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
71716         * sysdeps/sparc/fpu/libm-test-ulps: to here.
71717         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
71718
71719         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
71720         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
71721         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
71722         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
71723         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
71724         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
71725         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
71726         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
71727         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
71728         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
71729         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
71730         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
71731         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
71732         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
71733         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
71734         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
71735         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
71736         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
71737         * sysdeps/sparc/elf/configure: Regenerated.
71738
71739 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
71740
71741         * configure.in (AS, LD): Require binutils 2.20 or later.
71742         * configure: Regenerated.
71743         * manual/install.texi (Tools for Compilation): Give binutils 2.20
71744         as required minimum version.
71745         * INSTALL: Regenerated.
71746
71747         [BZ #2541]
71748         [BZ #4108]
71749         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
71750         before squaring exponent.
71751         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
71752         bottom long double and 27 bits of top long double before squaring
71753         exponent.
71754         * math/libm-test.inc (erfc_test): Add more tests.
71755         * sysdeps/i386/fpu/libm-test-ulps: Update.
71756         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
71757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71758
71759 2012-03-01  Kai Tietz  <ktietz@redhat.com>
71760
71761         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
71762         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
71763         containing bit-fields.
71764         * soft-fp/extended.h (_FP_UNION_E): Likewise.
71765         * soft-fp/single.h (_FP_UNION_S): Likewise.
71766         * soft-fp/double.h (_FP_UNION_D): Likewise.
71767
71768 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
71769
71770         [BZ #13786]
71771         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
71772         not include ../strcmp.S.
71773         [USE_AS_STRNCASECMP_L]: Likewise.
71774         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
71775         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
71776         * sysdeps/i386/i686/multiarch/strncase_l-c.c
71777         (__strncasecmp_l_ia32): Define as alias to
71778         __strncasecmp_l_nonascii.
71779
71780         [BZ #5794]
71781         * math/libm-test.inc (expm1_test): Add test for bug 5794.
71782         * sysdeps/i386/fpu/libm-test-ulps: Update.
71783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71784
71785         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
71786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71787
71788 2012-02-29  Jeff Law  <law@redhat.com>
71789
71790         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
71791         out of bounds read.
71792
71793 2012-02-29  Marek Polacek  <polacek@redhat.com>
71794
71795         [BZ #13706]
71796         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
71797         * elf/Makefile: Add rules to run tst-unused-dep.out.
71798
71799 2012-02-28  David S. Miller  <davem@davemloft.net>
71800
71801         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
71802         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
71803         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
71804         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
71805         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
71806         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
71807
71808 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
71809
71810         * math/libm-test.inc (llround_test): Move one test from
71811         lround_test.  Use TEST_f_L in moved test.
71812         (lround_test): Move misplaced test to llround_test.  Add testcase
71813         from bug 2561.
71814
71815 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
71816
71817         * sysdeps/x86_64/fpu/e_expf.S: New file.
71818         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
71819
71820 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
71821
71822         [BZ #13637]
71823         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
71824         of remain_len that may cause incomplete multi-byte character and
71825         false match.
71826         * posix/bug-regex33.c: New file.
71827         * posix/Makefile (tests): Add bug-regex33.
71828
71829 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
71830
71831         * manual/macros.texi: New file.
71832         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
71833         * manual/libc.texinfo: Include macros.texi.
71834         * manual/creatute.texi: Likewise.
71835         * manual/install.texi: Likewise.
71836         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
71837         @glibcadj{} in references to the GNU C Library.
71838         * manual/charset.texi: Likewise.
71839         * manual/conf.texi: Likewise.
71840         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
71841         when not using those macros.
71842         * manual/creature.texi: Likewise.
71843         * manual/crypt.texi: Likewise.
71844         * manual/errno.texi: Likewise.
71845         * manual/filesys.texi: Likewise.
71846         * manual/header.texi: Likewise.
71847         * manual/install.texi: Likewise.
71848         * manual/intro.texi: Likewise.
71849         * manual/io.texi: Likewise.
71850         * manual/job.texi: Likewise.
71851         * manual/lang.texi: Likewise.
71852         * manual/libc.texiinfo: Likewise.
71853         * manual/llio.texi: Likewise.
71854         * manual/locale.texi: Likewise.
71855         * manual/maint.texi: Likewise.
71856         * manual/math.texi: Likewise.
71857         * manual/memory.texi: Likewise.
71858         * manual/message.texi: Likewise.
71859         * manual/nss.texi: Likewise.
71860         * manual/pattern.texi: Likewise.
71861         * manual/process.texi: Likewise.
71862         * manual/resource.texi: Likewise.
71863         * manual/search.texi: Likewise.
71864         * manual/setjmp.texi: Likewise.
71865         * manual/signal.texi: Likewise.
71866         * manual/socket.texi: Likewise.
71867         * manual/startup.texi: Likewise.
71868         * manual/stdio.texi: Likewise.
71869         * manual/string.texi: Likewise.
71870         * manual/sysinfo.texi: Likewise.
71871         * manual/syslog.texi: Likewise.
71872         * manual/terminal.texi: Likewise.
71873         * manual/time.texi: Likewise.
71874         * manual/users.texi: Likewise.
71875         * INSTALL: Regenerated.
71876         * NOTES: Regenerated.
71877         * sysdeps/gnu/errlist.c: Regenerated.
71878
71879 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
71880
71881         * include/dirent.h: Include <dirstream.h> before
71882         <dirent/dirent.h>.
71883
71884 2012-02-28  David S. Miller  <davem@davemloft.net>
71885
71886         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
71887         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
71888         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
71889         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
71890
71891 2012-02-27  David S. Miller  <davem@davemloft.net>
71892
71893         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
71894         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
71895         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
71896         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
71897
71898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
71899         frame pointer instead of stack pointer relative arg slot.
71900         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
71901         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
71902         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
71903
71904 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
71905
71906         [BZ #3992]
71907         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
71908
71909 2012-02-27  David S. Miller  <davem@davemloft.net>
71910
71911         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
71912         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
71913         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
71914         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
71915         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
71916         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
71917         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
71918         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
71919
71920 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
71921
71922         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
71923         later.  Allow versions 5-9.
71924         * configure: Regenerated.
71925         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
71926         required minimum version and 4.6 as recommended version.  Do not
71927         mention bugs in GCC 2.7 and 2.8.
71928         * INSTALL: Regenerated.
71929
71930 2012-02-27  David S. Miller  <davem@davemloft.net>
71931
71932         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
71933         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
71934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
71935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
71936         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
71937         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
71938         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
71939         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
71940
71941         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
71942         manipulate bits before adding and subtracting TWO112[sx].
71943         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
71944
71945 2012-02-27  Roland McGrath  <roland@hack.frob.com>
71946
71947         [BZ #13775]
71948         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
71949         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
71950         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
71951         being in POSIX, because they are in 1003.1-2008.
71952
71953         * rt/tst-aio.c: Include <fcntl.h>.
71954         * rt/tst-aio7.c: Likewise.
71955         * rt/tst-aio64.c: Likewise.
71956
71957         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
71958
71959 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
71960
71961         * manual/install.texi (--with-headers): Describe headers as
71962         interface headers, not private headers.
71963         (Specific advice for GNU/Linux systems): Describe use of headers
71964         from "make headers_install", not private headers from older
71965         kernels.
71966         * INSTALL: Regenerated.
71967         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
71968         Change to 2.6.19.
71969         * sysdeps/unix/sysv/linux/configure: Regenerated.
71970
71971         * manual/llio.texi (fclean): Remove documentation.
71972
71973         * manual/Makefile (libc-texi-generated): New variable.  Include
71974         version.texi.
71975         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
71976         $(libc-texi-generated), not duplicated list of files.
71977         (version.texi, stamp-version): New rules.
71978         (realclean): Remove $(libc-texi-generated), not individual files
71979         from that list.  Do not remove dir-add.texinfo.
71980         * manual/libc.texinfo: Comment out uses of edition numbers and
71981         references to printed manual.  Remove last-updated dates.
71982         (EDITION): Comment out.
71983         (ISBN): Likewise.
71984         (VERSION, UPDATED): Remove.
71985         (version.texi): Include.
71986
71987 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
71988
71989         * sysdeps/posix/spawni.c: Include <signal.h>.
71990         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
71991         * sysdeps/pthread/aio_fsync.c: Likewise.
71992
71993 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
71994
71995         * conform/Makefile (tests): Run only when not cross-compiling and
71996         when fast-check is not defined.
71997
71998         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
71999         * conform/data/limits.h-data: Fixes for POSIX2008.
72000         * conform/run-conformtest.sh: Run all tests.
72001         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
72002         headers.
72003         * include/bits/dlfcn.h: Likewise.
72004         * include/langinfo.h: Likewise.
72005         * include/monetary.h: Likewise.
72006         * include/sys/poll.h: Likewise.
72007
72008         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
72009         for __USE_GNU.
72010         * posix/spawn.h: Define __need_sigset_t.
72011         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
72012         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
72013         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
72014         to get sigevent_t only.
72015         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
72016         only for __USE_GNU.
72017         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72018         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
72019         process_vm_writev only for __USE_GNU.
72020         * termios/termios.h: Declare tcgetsid also for POSIX2008.
72021
72022         * conform/Makefile: For now ignore errors from run-conformtest.
72023         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
72024         POSIX to avoid namespace pollution.  Don't prepend headers.
72025         * conform/data/aio.h-data: Fixes for POSIX testing.
72026         * conform/data/fcntl.h-data: Likewise.
72027         * conform/data/glob.h-data: Likewise.
72028         * conform/data/grp.h-data: Likewise.
72029         * conform/data/pthread.h-data: Likewise.
72030         * conform/data/pwd.h-data: Likewise.
72031         * conform/data/signal.h-data: Likewise.
72032         * conform/data/spawn.h-data: Likewise.
72033         * conform/data/stdio.h-data: Likewise.
72034         * conform/data/stdlib.h-data: Likewise.
72035         * conform/data/stropts.h-data: Likewise.
72036         * conform/data/sys/mman.h-data: Likewise.
72037         * conform/data/sys/stat.h-data: Likewise.
72038         * conform/data/sys/types.h-data: Likewise.
72039         * conform/data/sys/wait.h-data: Likewise.
72040         * conform/data/time.h-data: Likewise.
72041         * conform/data/unistd.h-data: Likewise.
72042         * conform/data/utime.h-data: Likewise.
72043
72044         * io/sys/stat.h: fchmod was always in POSIX.
72045         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
72046         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
72047         * rt/aio.h: Define __need_timespec before including <time.h>.
72048         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
72049         struct.  Add forward declaration of pthread_attr_t and use it in
72050         sigevent.
72051         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
72052         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
72053         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
72054         always remove CLK_TCK definition.
72055
72056 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
72057
72058         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
72059
72060 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
72061
72062         * conform/run-conformtest.sh: New file.
72063         * conform/Makefile: Run run-conformtest for tests.
72064         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
72065         support.
72066
72067         * conform/data/uchar.h-data: New file.
72068         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
72069         * conform/data/arpa/inet.h-data: Likewise.
72070         * conform/data/assert.h-data: Likewise.
72071         * conform/data/complex.h-data: Likewise.
72072         * conform/data/cpio.h-data: Likewise.
72073         * conform/data/ctype.h-data: Likewise.
72074         * conform/data/dirent.h-data: Likewise.
72075         * conform/data/dlfcn.h-data: Likewise.
72076         * conform/data/errno.h-data: Likewise.
72077         * conform/data/fcntl.h-data: Likewise.
72078         * conform/data/float.h-data: Likewise.
72079         * conform/data/fmtmsg.h-data: Likewise.
72080         * conform/data/fnmatch.h-data: Likewise.
72081         * conform/data/ftw.h-data: Likewise.
72082         * conform/data/glob.h-data: Likewise.
72083         * conform/data/grp.h-data: Likewise.
72084         * conform/data/iconv.h-data: Likewise.
72085         * conform/data/inttypes.h-data: Likewise.
72086         * conform/data/langinfo.h-data: Likewise.
72087         * conform/data/libgen.h-data: Likewise.
72088         * conform/data/limits.h-data: Likewise.
72089         * conform/data/locale.h-data: Likewise.
72090         * conform/data/math.h-data: Likewise.
72091         * conform/data/monetary.h-data: Likewise.
72092         * conform/data/mqueue.h-data: Likewise.
72093         * conform/data/ndbm.h-data: Likewise.
72094         * conform/data/net/if.h-data: Likewise.
72095         * conform/data/netdb.h-data: Likewise.
72096         * conform/data/netinet/in.h-data: Likewise.
72097         * conform/data/nl_types.h-data: Likewise.
72098         * conform/data/poll.h-data: Likewise.
72099         * conform/data/pthread.h-data: Likewise.
72100         * conform/data/pwd.h-data: Likewise.
72101         * conform/data/regex.h-data: Likewise.
72102         * conform/data/sched.h-data: Likewise.
72103         * conform/data/search.h-data: Likewise.
72104         * conform/data/semaphore.h-data: Likewise.
72105         * conform/data/setjmp.h-data: Likewise.
72106         * conform/data/signal.h-data: Likewise.
72107         * conform/data/spawn.h-data: Likewise.
72108         * conform/data/stdarg.h-data: Likewise.
72109         * conform/data/stdio.h-data: Likewise.
72110         * conform/data/stdlib.h-data: Likewise.
72111         * conform/data/string.h-data: Likewise.
72112         * conform/data/strings.h-data: Likewise.
72113         * conform/data/stropts.h-data: Likewise.
72114         * conform/data/sys/ipc.h-data: Likewise.
72115         * conform/data/sys/mman.h-data: Likewise.
72116         * conform/data/sys/msg.h-data: Likewise.
72117         * conform/data/sys/resource.h-data: Likewise.
72118         * conform/data/sys/select.h-data: Likewise.
72119         * conform/data/sys/sem.h-data: Likewise.
72120         * conform/data/sys/shm.h-data: Likewise.
72121         * conform/data/sys/socket.h-data: Likewise.
72122         * conform/data/sys/stat.h-data: Likewise.
72123         * conform/data/sys/statvfs.h-data: Likewise.
72124         * conform/data/sys/time.h-data: Likewise.
72125         * conform/data/sys/timeb.h-data: Likewise.
72126         * conform/data/sys/times.h-data: Likewise.
72127         * conform/data/sys/types.h-data: Likewise.
72128         * conform/data/sys/uio.h-data: Likewise.
72129         * conform/data/sys/un.h-data: Likewise.
72130         * conform/data/sys/utsname.h-data: Likewise.
72131         * conform/data/sys/wait.h-data: Likewise.
72132         * conform/data/syslog.h-data: Likewise.
72133         * conform/data/tar.h-data: Likewise.
72134         * conform/data/termios.h-data: Likewise.
72135         * conform/data/utime.h-data: Likewise.
72136         * conform/data/utmpx.h-data: Likewise.
72137         * conform/data/varargs.h-data: Likewise.
72138         * conform/data/wchar.h-data: Likewise.
72139         * conform/data/wctype.h-data: Likewise.
72140         * conform/data/wordexp.h-data: Likewise.
72141
72142         * include/stropts.h: New file.
72143         * include/uchar.h: New file.
72144         * include/aio.h: Changes to allow conformtest.pl to use the headers.
72145         * include/assert.h: Likewise.
72146         * include/ctype.h: Likewise.
72147         * include/dirent.h: Likewise.
72148         * include/dlfcn.h: Likewise.
72149         * include/fcntl.h: Likewise.
72150         * include/fnmatch.h: Likewise.
72151         * include/glob.h: Likewise.
72152         * include/grp.h: Likewise.
72153         * include/libio.h: Likewise.
72154         * include/locale.h: Likewise.
72155         * include/math.h: Likewise.
72156         * include/net/if.h: Likewise.
72157         * include/netdb.h: Likewise.
72158         * include/netinet/in.h: Likewise.
72159         * include/pthread.h: Likewise.
72160         * include/pwd.h: Likewise.
72161         * include/regex.h: Likewise.
72162         * include/sched.h: Likewise.
72163         * include/search.h: Likewise.
72164         * include/setjmp.h: Likewise.
72165         * include/signal.h: Likewise.
72166         * include/stdio.h: Likewise.
72167         * include/stdlib.h: Likewise.
72168         * include/string.h: Likewise.
72169         * include/sys/cdefs.h: Likewise.
72170         * include/sys/mman.h: Likewise.
72171         * include/sys/msg.h: Likewise.
72172         * include/sys/resource.h: Likewise.
72173         * include/sys/select.h: Likewise.
72174         * include/sys/socket.h: Likewise.
72175         * include/sys/stat.h: Likewise.
72176         * include/sys/statvfs.h: Likewise.
72177         * include/sys/time.h: Likewise.
72178         * include/sys/times.h: Likewise.
72179         * include/sys/uio.h: Likewise.
72180         * include/sys/utsname.h: Likewise.
72181         * include/sys/wait.h: Likewise.
72182         * include/termios.h: Likewise.
72183         * include/time.h: Likewise.
72184         * include/ulimit.h: Likewise.
72185         * include/unistd.h: Likewise.
72186         * include/utime.h: Likewise.
72187         * include/wchar.h: Likewise.
72188         * include/wctype.h: Likewise.
72189         * include/wordexp.h: Likewise.
72190
72191         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
72192
72193         * time/time.h: TIME_UTC must be a macro.
72194         Make timespec_get available for ISO C11 only as well.
72195
72196 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
72197
72198         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
72199         Reported by Peng Haitao <penght@cn.fujitsu.com>.
72200
72201 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
72202
72203         * configure.in: Use -o not -a in test for unsupported multi-arch.
72204
72205 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
72206
72207         * manual/texinfo.tex: Update to version 2012-01-19.16.
72208
72209 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
72210
72211         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
72212
72213 2012-02-24  Roland McGrath  <roland@hack.frob.com>
72214
72215         [BZ #13738]
72216         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
72217         * manual/fdl-1.3.texi: New file.
72218         * manual/fdl-1.1.texi: File removed.
72219
72220         [BZ #13738]
72221         * manual/libc.texinfo (FDL_VERSION): New @set.
72222         Use it for mention of FDL in cover text.
72223         (Documentation License): Use it in @include file name.
72224
72225 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
72226             Roland McGrath  <roland@hack.frob.com>
72227
72228         [BZ #5461]
72229         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
72230         (not LONG_LONG_MAX and LONG_LONG_MIN.
72231         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
72232         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
72233         name.
72234         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
72235
72236 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
72237
72238         [BZ #2547]
72239         [BZ #11365]
72240         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
72241         manipulate bits before adding and subtracting TWO23[sx].
72242         * math/libm-test.inc (nearbyint_test): Add more tests.
72243
72244 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
72245
72246         [BZ #2548]
72247         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
72248         bits before adding and subtracting TWO23[sx].
72249         * math/libm-test.inc (rint_test): Add more tests.
72250         (rint_test_tonearest): Likewise.
72251         (rint_test_towardzero): Likewise.
72252         (rint_test_downward): Likewise.
72253         (rint_test_upward: Likewise.
72254
72255 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
72256
72257         [BZ #10110]
72258         * include/stdc-predef.h: New file.  Extracted from features.h.
72259         * include/features.h: Include stdc-predef.h.
72260         * Makefile (headers): Add stdc-predef.h.
72261         * CONFORMANCE (Compiler limitations): Update.
72262
72263 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
72264
72265         * manual/libc.texinfo (VERSION, UPDATED): Revert.
72266
72267 2012-02-21  David S. Miller  <davem@davemloft.net>
72268
72269         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
72270         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
72271
72272 2012-02-20  David S. Miller  <davem@davemloft.net>
72273
72274         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
72275         using a normal save/restore sequence, rather than allocating a
72276         dummy stack frame just to store a frame pointer and restore.
72277         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
72278
72279 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
72280
72281         * manual/install.texi: Fix stray word in line-wrapped comment.
72282
72283 2012-02-20  David S. Miller  <davem@davemloft.net>
72284
72285         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
72286         both binutils and gcc support GOTDATA.
72287
72288         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
72289         "rd %pc" in the PIC register setup sequences.
72290
72291         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
72292         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
72293         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
72294         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
72295         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
72296         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
72297         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72298         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
72299         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
72300         (SYSCALL_ERROR_HANDLER): Likewise.
72301         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
72302         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
72303         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
72304         (SYSCALL_ERROR_HANDLER): Likewise.
72305
72306         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
72307         (HAVE_GCC_GOTDATA): New.
72308         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
72309         relocation support in both binutils and gcc.
72310         * sysdeps/sparc/elf/configure: Regenerate.
72311
72312         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
72313         * sysdeps/sparc/sparc32/elf/configure: Delete.
72314         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
72315         * sysdeps/sparc/sparc64/elf/configure: Delete.
72316         * sysdeps/sparc/elf/configure.in: New file.
72317         * sysdeps/sparc/elf/configure: Generate.
72318
72319         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
72320         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
72321         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72322         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
72323         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
72324
72325 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
72326
72327         * manual/install.texi: Do not mention specific glibc version
72328         numbers.
72329         * manual/libc.texinfo (VERSION, UPDATED): Update.
72330         (@copying): Use @copyright{} and range of years.
72331
72332 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
72333
72334         [BZ #13695]
72335         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
72336         [crti.S not in sysdirs] (generated): Do not append.
72337         [crti.S not in sysdirs] (omit-deps): Likewise.
72338         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
72339         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
72340         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
72341         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
72342         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
72343         Likewise.
72344         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
72345         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
72346         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
72347         * csu/defs.awk: Remove file.
72348         * sysdeps/generic/initfini.c: Likewise.
72349         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
72350         variable.
72351         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
72352         Likewise.
72353
72354 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
72355
72356         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
72357         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
72358         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
72359         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
72360         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
72361         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
72362         <bits/epoll.h>.
72363         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
72364         (__EPOLL_PACKED): Define to empty if not defined by
72365         <bits/epoll.h>.
72366         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
72367         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72368         bits/epoll.h.
72369
72370 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
72371
72372         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
72373         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
72374         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
72375         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
72376         <bits/timerfd.h>.
72377         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
72378         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72379         bits/timerfd.h.
72380
72381 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
72382
72383         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
72384         in C locale.
72385         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
72386         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
72387         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
72388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72389
72390 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
72391
72392         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72393         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
72394
72395 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
72396
72397         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
72398         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
72399         defined.
72400         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
72401         Likewise.
72402         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
72403         entry for 2.16.
72404
72405 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
72406
72407         * math/w_acos.c: Use non-signaling floating-point comparisons.
72408         * math/w_acosf.c: Likewise.
72409         * math/w_acosh.c: Likewise.
72410         * math/w_acoshf.c: Likewise.
72411         * math/w_acoshl.c: Likewise.
72412         * math/w_acosl.c: Likewise.
72413         * math/w_asin.c: Likewise.
72414         * math/w_asinf.c: Likewise.
72415         * math/w_asinl.c: Likewise.
72416         * math/w_atanh.c: Likewise.
72417         * math/w_atanhf.c: Likewise.
72418         * math/w_atanhl.c: Likewise.
72419         * math/w_exp2.c: Likewise.
72420         * math/w_exp2f.c: Likewise.
72421         * math/w_exp2l.c: Likewise.
72422         * math/w_j0.c: Likewise.
72423         * math/w_j0f.c: Likewise.
72424         * math/w_j0l.c: Likewise.
72425         * math/w_j1.c: Likewise.
72426         * math/w_j1f.c: Likewise.
72427         * math/w_j1l.c: Likewise.
72428         * math/w_jn.c: Likewise.
72429         * math/w_jnf.c: Likewise.
72430         * math/w_log.c: Likewise.
72431         * math/w_log10.c: Likewise.
72432         * math/w_log10f.c: Likewise.
72433         * math/w_log10l.c: Likewise.
72434         * math/w_log2.c: Likewise.
72435         * math/w_log2f.c: Likewise.
72436         * math/w_log2l.c: Likewise.
72437         * math/w_logf.c: Likewise.
72438         * math/w_logl.c: Likewise.
72439         * math/w_sqrt.c: Likewise.
72440         * math/w_sqrtf.c: Likewise.
72441         * math/w_sqrtl.c: Likewise.
72442         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72443         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
72444         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72445         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
72446         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
72447
72448 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
72449
72450         [BZ #9739]
72451         * manual/string.texi (strnlen): Use correct parameter name in
72452         equivalent expression.
72453
72454 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
72455
72456         [BZ #11174]
72457         * manual/users.texi (seteuid): Consistently use neweuid for
72458         argument name.
72459
72460 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
72461
72462         [BZ #13704]
72463         * manual/nss.texi (Services in the NSS configuration): Correct
72464         list of services in example configuration file.
72465
72466 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
72467
72468         [BZ #11322]
72469         * manual/arith.texi: Remove statements about negative zero
72470         behaving identically to zero.
72471
72472 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
72473
72474         [BZ #5993]
72475         * manual/install.texi: Do not document upgrading from libc5.
72476
72477 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
72478
72479         [BZ #4596]
72480         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
72481
72482 2012-02-18  David S. Miller  <davem@davemloft.net>
72483
72484         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
72485         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
72486         %o7 across the call.
72487         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
72488         instead.
72489         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
72490         SETUP_PIC_REG_LEAF.
72491         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72492         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
72493         * sysdeps/sparc/crtn.S: Likewise.
72494
72495 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
72496
72497         * aout/Makefile: Remove.
72498
72499 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
72500
72501         [BZ #13058]
72502         * manual/examples/argp-ex1.c (main): Format definition in GNU
72503         style.
72504         * manual/examples/argp-ex2.c (main): Likewise.
72505         * manual/examples/argp-ex3.c (main): Likewise.
72506         * manual/examples/argp-ex4.c (main): Likewise.
72507         * manual/examples/longopt.c (main): Use new-style prototype
72508         definition.
72509         * manual/examples/strncat.c (main): Specify return type and use
72510         (void) for arguments.
72511         * manual/examples/subopt.c (main): Use char **argv argument.
72512
72513 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72514
72515         [BZ #5077]
72516         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
72517         rounding modes.
72518
72519 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
72520
72521         [BZ #6907]
72522         * manual/string.texi (strchr): Change when strchrnul is
72523         recommended.
72524
72525 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
72526
72527         [BZ #174]
72528         * manual/locale.texi (setlocale): Document LOCPATH.
72529
72530 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72531
72532         [BZ #10210]
72533         * manual/process.texi (execle): Move @dots{} before last argument.
72534
72535 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
72536
72537         [BZ #12047]
72538         * manual/charset.texi (Generic Charset Conversion): Fix typo
72539         (LC_TYPE -> LC_CTYPE).
72540
72541 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
72542
72543         [BZ #5805]
72544         * manual/arith.texi (scalbn): Use @var{} on parameter names.
72545         (scalbnf): Likewise.
72546         (scalbnl): Likewise.
72547         (scalbln): Likewise.
72548         (scalblnf): Likewise.
72549         (scalblnl): Likewise.
72550         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
72551         (vwarnx): Likewise.
72552         (verr): Likewise.
72553         (verrx): Likewise.
72554         * manual/filesys.texi (telldir): Use braces around return type.
72555         * manual/llio.texi (mmap): Add space after comma.
72556         (mmap64): Likewise.
72557         * manual/math.texi (jn): Use @var{} on parameter names.
72558         (jnf): Likewise.
72559         (jnl): Likewise.
72560         (yn): Likewise.
72561         (ynf): Likewise.
72562         (ynl): Likewise.
72563         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
72564         line.
72565         * manual/resource.texi (ulimit): Use @dots{} instead of literal
72566         "...".
72567         (sched_get_priority_min): Remove semicolon on @deftypefun line.
72568         (sched_get_priority_max): Likewise.
72569         * manual/signal.texi (sigvec): Add space after comma.
72570         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
72571         names.
72572         (if_indextoname): Likewise.
72573         (if_freenameindex): Likewise.
72574         (sendto): Use ',' instead of '.' in prototype.
72575         * manual/startup.texi (syscall): Use @dots{} instead of literal
72576         "...".
72577         * manual/stdio.texi (__fpending): Separate initial words of
72578         paragraph from @deftypefun line.
72579         * manual/syslog.texi (syslog): Use @dots{} instead of literal
72580         "...".
72581         (vsyslog): Use @var{} on parameter names.
72582         * manual/terminal.texi (stty): Use @var{} on parameter names.
72583         * manual/users.texi (getutmp): Use @var{} on parameter names.
72584         (getutmpx): Likewise.
72585
72586 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72587
72588         [BZ #6884]
72589         * manual/stdio.texi (fopen): Fix typos in description of
72590         ",ccs=STRING".
72591
72592 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
72593
72594         [BZ #4026]
72595         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
72596         get clock_id definition.
72597
72598 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
72599
72600         [BZ #4822]
72601         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
72602         (madvise): Cast every argument to void on its own.
72603
72604 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72605
72606         [BZ #9902]
72607         * manual/startup.texi (Exit Status): Fix typo.
72608
72609 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72610
72611         [BZ #10140]
72612         * manual/examples/argp-ex1.c: Include <stdlib.h>.
72613         * manual/examples/argp-ex2.c: Likewise.
72614         * manual/examples/argp-ex3.c: Likewise.
72615
72616 2012-02-16  Richard Henderson  <rth@redhat.com>
72617
72618         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
72619         * sysdeps/s390/s390-32/initfini.c: Remove.
72620         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
72621         * sysdeps/s390/s390-64/initfini.c: Remove.
72622
72623 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
72624
72625         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
72626         compiler output for sysdeps/generic/initfini.c.
72627         * sysdeps/sh/elf/initfini.c: Remove file.
72628
72629 2012-02-16  David S. Miller  <davem@davemloft.net>
72630
72631         [BZ #11494]
72632         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
72633
72634         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
72635         * sysdeps/sparc/crti.S: New file.
72636         * sysdeps/sparc/crtn.S: New file.
72637         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
72638         * sysdeps/sparc/sparc64/Makefile: Likewise.
72639
72640 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
72641
72642         [BZ #3335]
72643         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
72644
72645 2012-02-15  Roland McGrath  <roland@hack.frob.com>
72646
72647         [BZ #4822]
72648         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
72649
72650         * mach/devstream.c (cookie_io_functions_t): Macro removed.
72651         (write, read, close): Likewise.
72652         Patch by Aurelien Jarno <aurelien@aurel32.net>.
72653
72654 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
72655
72656         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
72657         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
72658         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
72659         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
72660         <bits/signalfd.h>.
72661         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
72662         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72663         bits/signalfd.h.
72664
72665 2012-02-14  Marek Polacek  <polacek@redhat.com>
72666
72667         * sysdeps/x86_64/crti.S: New file.
72668         * sysdeps/x86_64/crtn.S: New file.
72669         * sysdeps/x86_64/elf/initfini.c: Remove file.
72670
72671 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
72672
72673         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
72674         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
72675         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
72676         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
72677         <bits/inotify.h>.
72678         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
72679         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72680         bits/inotify.h.
72681
72682 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
72683
72684         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
72685         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
72686         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
72687         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
72688         <bits/eventfd.h>.
72689         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
72690         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72691         bits/eventfd.h.
72692
72693 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
72694
72695         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
72696         __feraiseexcept instead of feraiseexcept.
72697
72698         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
72699         nanosleep invocations.
72700         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
72701         strings, and add error checking for a nanosleep invocations.
72702
72703 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         Replace FSF snail mail address with URLs, as per GNU coding standards.
72706         Most of the snail mail addresses were wrong anyway, and omitting
72707         them makes the source code easier to maintain.  Almost all of the
72708         changes are to license notices and to locale LC_IDENTIFICATION
72709         addresses, except for this one:
72710         * manual/libc.texinfo: In "Published by", give the FSF's URL,
72711         not its snail mail address.
72712
72713 2012-02-09  Richard Henderson  <rth@twiddle.net>
72714
72715         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
72716         of kernel-features.h.
72717
72718         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
72719
72720 2012-02-08  Marek Polacek  <polacek@redhat.com>
72721
72722         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
72723         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
72724         * sysdeps/gnu/_G_config.h: Likewise.
72725         * sysdeps/generic/_G_config.h: Likewise.
72726
72727 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
72728
72729         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
72730         tests.
72731         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72732
72733         * sysdeps/powerpc/powerpc32/crti.S: New file.
72734         * sysdeps/powerpc/powerpc32/crtn.S: New file.
72735         * sysdeps/powerpc/powerpc64/crti.S: New file.
72736         * sysdeps/powerpc/powerpc64/crtn.S: New file.
72737
72738         * Makeconfig (have-initfini): Don't set.
72739         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
72740         * configure.in (nopic_initfini): Don't substitute.
72741         * config.h.in (HAVE_INITFINI): Don't #undef.
72742         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
72743         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
72744
72745 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
72746
72747         Support crti.S and crtn.S provided directly by architectures.
72748         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
72749         [crti.S in sysdirs] (omit-deps): Likewise.
72750         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
72751         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
72752         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
72753         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
72754         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
72755         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
72756         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
72757         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
72758         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
72759         compiler output for sysdeps/generic/initfini.c.
72760         * sysdeps/i386/elf/Makefile: Remove file.
72761         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
72762
72763 2012-02-07  Marek Polacek  <polacek@redhat.com>
72764
72765         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
72766         * sysdeps/gnu/_G_config.h: Likewise.
72767         * sysdeps/mach/hurd/_G_config.h: Likewise.
72768
72769 2012-02-07  Marek Polacek  <polacek@redhat.com>
72770
72771         * math/Makefile (tests): Add tst-CMPLX2.
72772         * math/tst-CMPLX2.c: New file.
72773
72774 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
72775
72776         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72777
72778         * math/libm-test.inc (jn_test): Add missing L suffix.
72779
72780 2012-02-06  Marek Polacek  <polacek@redhat.com>
72781
72782         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
72783         * sysdeps/i386/fpu/e_powf.S: Likewise.
72784         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72785         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
72786         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72787         * sysdeps/i386/fpu/e_pow.S: Likewise.
72788         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
72789         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72790         * sysdeps/i386/fpu/s_expm1.S: Likewise.
72791         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
72792         * sysdeps/i386/fpu/e_log2.S: Likewise.
72793         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72794         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72795         * sysdeps/i386/fpu/e_powl.S: Likewise.
72796         * sysdeps/i386/fpu/s_log1p.S: Likewise.
72797         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72798         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
72799         * sysdeps/i386/fpu/e_logl.S: Likewise.
72800         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
72801         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
72802         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
72803         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
72804         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72805         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72806         * sysdeps/i386/fpu/e_log.S: Likewise.
72807         * sysdeps/i386/fpu/s_cexp.S: Likewise.
72808         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72809         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
72810         * sysdeps/i386/fpu/e_logf.S: Likewise.
72811         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72812         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72813         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
72814         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
72815         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
72816         * sysdeps/i386/fpu/e_log10.S: Likewise.
72817         * sysdeps/i386/fpu/s_frexp.S: Likewise.
72818         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72819         * sysdeps/i386/fpu/s_asinh.S: Likewise.
72820         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
72821         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72822         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
72823         * sysdeps/i386/asm-syntax.h: Likewise.
72824         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72825         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72826         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72827         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
72828         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
72829         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72830         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
72831         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
72832         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72833         * sysdeps/powerpc/sysdep.h: Likewise.
72834         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
72835         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
72836
72837 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
72838
72839         [BZ #411]
72840         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
72841
72842 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
72843
72844         * sysdeps/i386/sysdep.h: Include <features.h>.
72845         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
72846         version.
72847
72848 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
72849
72850         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
72851         Define.
72852         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
72853         LOAD_PIC_REG_STR.
72854
72855 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
72856
72857         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
72858         (SETUP_PIC_REG): Use GET_PC_THUNK.
72859         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
72860         macro.
72861
72862 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
72863
72864         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
72865         for non-PIC compilation.
72866         (SETUP_PIC_REG): Add .p2align directive.
72867         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
72868         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
72869         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
72870         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
72871         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
72872         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
72873         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
72874         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
72875         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
72876         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
72877         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
72878         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
72879         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
72880         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
72881         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
72882         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
72883         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
72884         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
72885         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
72886         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
72887         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
72888         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
72889         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
72890         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
72891         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
72892         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
72893         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
72894         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
72895         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
72896         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
72897         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
72898         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
72899         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
72900         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
72901         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
72902         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
72903         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
72904         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
72905         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
72906         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
72907         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
72908
72909 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
72910
72911         * math/tst-CMPLX.c: Include <stdio.h>.
72912
72913 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
72914
72915         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
72916         float.
72917         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
72918         * sysdeps/sparc/bits/mathdef.h: Likewise.
72919
72920 2012-01-31  Marek Polacek  <polacek@redhat.com>
72921
72922         * libio/libio.h: Don't define _PARAMS.
72923         * locale/programs/config.h: Don't define PARAMS.
72924         * stdlib/strtol_l.c: Likewise.
72925         (__strtol_l): Remove PARAMS from the prototype.
72926
72927 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
72928
72929         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
72930         names.  Just use the correct names.  Remove unnecessary wrapper
72931         functions.
72932         * malloc/arena.c: Likewise.
72933         * malloc/hooks.c: Likewise.
72934
72935         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
72936         ARENA_TEST says not to.  Simplify test for creation of a new arena.
72937         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
72938
72939 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
72940
72941         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
72942         into tail calls.
72943         (update_get_addr): New function.
72944         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
72945         GET_ADDR_MODULE parameter.
72946
72947 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
72948
72949         * crypt/cert.c: Remove __STDC__ conditionals.
72950         * crypt/crypt-entry.c: Likewise.
72951         * crypt/crypt_util.c: Likewise.
72952         * libio/filedoalloc.c: Likewise.
72953         * libio/fileops.c: Likewise.
72954         * libio/genops.c: Likewise.
72955         * libio/iofclose.c: Likewise.
72956         * libio/iofdopen.c: Likewise.
72957         * libio/iofopen.c: Likewise.
72958         * libio/iofopen64.c: Likewise.
72959         * libio/iogetdelim.c: Likewise.
72960         * libio/iopopen.c: Likewise.
72961         * libio/obprintf.c: Likewise.
72962         * libio/oldfileops.c: Likewise.
72963         * libio/oldiofclose.c: Likewise.
72964         * libio/oldiofdopen.c: Likewise.
72965         * libio/oldiofopen.c: Likewise.
72966         * libio/oldiopopen.c: Likewise.
72967         * libio/wfiledoalloc.c: Likewise.
72968         * libio/wgenops.c: Likewise.
72969         * locale/programs/xmalloc.c: Likewise.
72970         * misc/syslog.c: Likewise.
72971         * stdio-common/xbug.c: Likewise.
72972         * string/memchr.c: Likewise.
72973         * string/memcmp.c: Likewise.
72974         * string/memrchr.c: Likewise.
72975         * string/rawmemchr.c: Likewise.
72976         * sysdeps/posix/getcwd.c: Likewise.
72977         * time/strftime_l.c: Likewise.
72978
72979 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
72980
72981         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
72982         * config.make.in (config-cflags-sse2avx): Define.
72983         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
72984         Fix typo.
72985
72986 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
72987
72988         * scripts/config.guess: Update from upstream config git repository.
72989         * scripts/config.sub: Likewise.
72990
72991 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
72992
72993         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
72994         (EM_NUM): Update.
72995         (R_TILEPRO_*, R_TILEGX_*): New macros.
72996
72997         * scripts/firstversions.awk: Fix bug in version range handling.
72998
72999         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
73000
73001         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
73002
73003         * include/sys/epoll.h: New file.
73004         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
73005         libc_hidden_def.
73006
73007 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
73008
73009         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
73010         Avoid unnecessary __WORDSIZE == 64 test.
73011         (fmaxf): Use VEX format if possible.
73012         (fmax): Likewise.
73013         (fminf): Likewise.
73014         (fmin): Likewise.
73015
73016         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
73017         * math/math_private.h: Remove libc_fegetround* and
73018         libc_fesetround*.
73019         * sysdeps/i386/configure.in: Check for -msse2avx.
73020         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
73021         also if SSE2AVX is defined.
73022         Remove libc_fegetround* and libc_fesetround*.
73023         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
73024         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
73025         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
73026         of HAS_YMM_USABLE.
73027         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
73028         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
73029         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
73030         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
73031         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
73032
73033         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
73034
73035 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73036
73037         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
73038         size is not set.
73039         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
73040
73041 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
73042
73043         [BZ #13618]
73044         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
73045         relocation.
73046         * Makeconfig (libm): Define.
73047         * elf/Makefile: Add rules to build and run tst-relsort1.
73048         * elf/tst-relsort1.c: New file.
73049         * elf/tst-relsort1mod1.c: New file.
73050         * elf/tst-relsort1mod2.c: New file.
73051
73052 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
73053
73054         * math/s_ldexp.c: Remove __STDC__ conditionals.
73055         * math/s_ldexpf.c: Likewise.
73056         * math/s_ldexpl.c: Likewise.
73057         * math/s_nextafter.c: Likewise.
73058         * math/s_nexttowardf.c: Likewise.
73059         * math/s_significand.c: Likewise.
73060         * math/s_significandf.c: Likewise.
73061         * math/s_significandl.c: Likewise.
73062         * math/w_jnl.c: Likewise.
73063         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
73064         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
73065         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
73066         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
73067         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
73068         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
73069         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
73070         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
73071         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
73072         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
73073         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
73074         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
73075         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
73076         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
73077         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
73078         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
73079         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
73080         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
73081         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
73082         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
73083         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
73084         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
73085         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
73086         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
73087         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
73088         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
73089         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
73090         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
73091         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
73092         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
73093         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
73094         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
73095         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
73096         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
73097         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
73098         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
73099         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
73100         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
73101         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
73102         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
73103         * sysdeps/ieee754/k_standard.c: Likewise.
73104         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
73105         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
73106         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
73107         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
73108         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
73109         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
73110         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
73111         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
73112         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
73113         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
73114         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
73115         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
73116         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
73117         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
73118         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
73119         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
73120         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
73121         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
73122         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
73123         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
73124         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
73125         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
73126         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
73127         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
73128         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
73129         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
73130         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
73131         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
73132         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73133         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
73134         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
73135         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
73136         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
73137         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
73138         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
73139         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
73140         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
73141         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
73142         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
73143         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
73144         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
73145         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
73146         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
73147         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
73148         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
73149         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
73150         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
73151         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
73152         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
73153         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
73154         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
73155         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
73156         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
73157         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
73158         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
73159         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
73160         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
73161         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
73162         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
73163         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
73164         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
73165         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
73166         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
73167         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
73168         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
73169         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
73170         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
73171         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
73172         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
73173         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
73174         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
73175         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
73176         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
73177         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
73178         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
73179         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
73180         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
73181         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
73182         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
73183         * sysdeps/ieee754/s_matherr.c: Likewise.
73184         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
73185         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
73186         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
73187         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
73188
73189 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
73190
73191         * crypt/md5.h: Remove __STDC__ conditionals.
73192         * libio/libioP.h: Likewise.
73193         * locale/programs/config.h: Likewise.
73194         * sysdeps/generic/sysdep.h: Likewise.
73195         * sysdeps/i386/asm-syntax.h: Likewise.
73196         * sysdeps/s390/asm-syntax.h: Likewise.
73197         * sysdeps/unix/sysdep.h: Likewise.
73198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
73199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
73200
73201 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
73202
73203         * libio/libio.h: Remove __STDC__ conditionals.
73204         * malloc/obstack.h: Likewise.
73205         * math/complex.h: Likewise.
73206         * math/math.h: Likewise.
73207         * sysdeps/generic/_G_config.h: Likewise.
73208         * sysdeps/gnu/_G_config.h: Likewise.
73209         * sysdeps/mach/hurd/_G_config.h: Likewise.
73210         * sysdeps/powerpc/bits/mathdef.h: Likewise.
73211         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
73212         * sysdeps/sparc/bits/mathdef.h: Likewise.
73213
73214 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
73215
73216         [BZ #13583]
73217         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
73218         Clean up HAS_* macros.
73219         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
73220         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
73221         possible.
73222         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
73223         HAS_AVX.
73224         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
73225         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
73226         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
73227         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
73228         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
73229
73230 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
73231
73232         * elf/tst-unique3.cc (gets): Remove declaration.
73233         * elf/tst-unique3lib.cc (gets): Likewise.
73234         * elf/tst-unique3lib2.cc (gets): Likewise.
73235         * elf/tst-unique4.cc (gets): Likewise.
73236
73237 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
73238
73239         * include/stdio.h: Add C++ protection.  Add gets declarations and
73240         definitions.
73241         * debug/tst-chk1.c: Don't declare gets here.
73242         * stdio-common/tst-gets.c: Likewise.
73243
73244 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
73245
73246         * posix/glob: Remove directory.
73247
73248 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
73249
73250         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
73251
73252 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
73253
73254         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
73255         of the non-standard EPFNOSUPPORT.
73256
73257 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73258
73259         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
73260         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
73261         ANYWHERE set to 1 only on KERN_NO_SPACE error.
73262
73263 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
73264
73265         * wcsmbs/uchar.h: Test __STDC_VERSION__.
73266
73267 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
73268
73269         * nscd/aicache.c (addhstaiX): Do not cache negative results of
73270         transient errors.
73271         * nscd/grpcache.c (cache_addgr): Likewise.
73272         * nscd/hstcache.c (cache_addhst): Likewise.
73273         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73274         * nscd/pwdcache.c (cache_addpw): Likewise.
73275         * nscd/servicescache.c (cache_addserv): Likewise.
73276
73277 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
73278
73279         * malloc/malloc.c: Various cleanups.
73280         * malloc/hooks.c: Likewise.
73281
73282         * stdlib/Makefile (tests): Add bug-fmtmsg1.
73283         * stdlib/bug-fmtmsg1.c: New file.
73284
73285         * stdlib/fmtmsg.c (init): Add missing unlock.
73286         Patch by Peng Haitao <penght@cn.fujitsu.com>.
73287
73288 2012-01-12  Marek Polacek  <polacek@redhat.com>
73289
73290         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
73291         and _GNU_SOURCE.
73292
73293 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73294
73295         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
73296         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
73297         macro to ensure uniqueness of label name.
73298         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
73299         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
73300
73301 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
73302
73303         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
73304
73305         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
73306         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
73307         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
73308         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
73309
73310 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
73311
73312         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
73313
73314         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
73315         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
73316         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
73317
73318         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
73319
73320         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
73321         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
73322         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
73323         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
73324
73325         * math/bits/math-finite.h: Add ldexp support.
73326
73327 2012-01-10  Marek Polacek  <polacek@redhat.com>
73328
73329         * locale/programs/localedef.h (show_archive_content): Add noreturn
73330         attribute.
73331
73332 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
73333
73334         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
73335
73336 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
73337
73338         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
73339
73340         * io/Makefile (headers): Add bits/poll2.h.
73341
73342 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
73343
73344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
73345         typo #include statement.
73346
73347 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
73348
73349         * include/sys/cdefs.h: Define __attribute_alloc_size.
73350         * catgets/gencat.c: Add alloc_size attribute and apply consistently
73351         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
73352         * elf/pldd.c: Likewise.
73353         * iconv/iconv_charmap.c: Likewise.
73354         * iconv/iconvconfig.c: Likewise.
73355         * iconv/strtab.c: Likewise.
73356         * locale/programs/locale.c: Likewise.
73357         * locale/programs/localedef.h: Likewise.
73358         * locale/programs/simple-hash.c: Likewise.
73359         * nscd/nscd.h: Likewise.
73360         * nss/makedb.c: Likewise.
73361         * sysdeps/generic/ldconfig.h: Likewise.
73362         * locale/programs/localedef.c: Remove xmalloc prototype.
73363         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
73364
73365 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
73366
73367         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
73368         appropriate.
73369
73370 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
73371
73372         * math/Makefile (tests): Add tst-CMPLX.
73373         * math/tst-CMPLX.c: New file.
73374
73375         * math/complex.h (CMPLXL): Fix typo.
73376
73377         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
73378         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
73379         GLIBC_2.16.
73380         * debug/tst-chk1.c: Add poll and ppoll tests.
73381         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
73382         * include/sys/poll.h: Add hidden proto for ppoll.
73383         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
73384         * sysdeps/mach/hurd/ppoll.c: Likewise.
73385         * io/ppoll.c: Likewise.
73386         * debug/poll_chk.c: New file.
73387         * debug/ppoll_chk.c: New file.
73388         * include/bits/poll2.h: New file.
73389         * io/bits/poll2.h: New file.
73390
73391         [BZ #1350]
73392         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
73393
73394         * configure.in: static is always set to yes.  Remove.
73395         * config.make.in: Don't set build-static.
73396         * Makeconfig: Remove use of build-static.
73397         * dlfcn/Makefile: Likewise.
73398         * elf/Makefile: Likewise.
73399         * math/Makefile: Likewise.
73400         * misc/Makefile: Likewise.
73401         * nptl/Makefile: Likewise.
73402         * sysdeps/mach/hurd/Makefile: Likewise.
73403
73404         * configure.in: PWD_P is not used anymore.
73405         * config.make.in: Remove PWD_P entry.
73406
73407         * configure.in: Remove last remnants of RANLIB.
73408         No need to check for signed size_t anymore.
73409         Don't set libc_commonpagesize and libc_relro_required here for Alpha
73410         and IA-64.
73411         Remove __builtin_expect test because we require at least gcc 3.4.
73412         * aclocal.m4: Likewise.
73413
73414         * wcsmbs/mbrtoc16.c: Implement using towc function.
73415         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
73416         * wcsmbs/wcsmbsload.c: Likewise.
73417         * iconv/gconv_simple.c: Likewise.
73418         * iconv/gconv_int.h: Likewise.
73419         * iconv/gconv_builtin.h: Likewise.
73420         * iconv/iconv_prog.c: Remove CHAR16 handling.
73421
73422         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
73423
73424         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
73425
73426         * configure.in: Remove --with-elf and --enable-bounded options.
73427         Dont set base_machine for ia64.  More non-ELF conditions removed.
73428         Remove testing and setting of leading underscore information.
73429         * config.make.in (build-bounded): Set to no.
73430         * config.h.in: Remove NO_UNDERSCORES entry.
73431         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
73432         them.
73433         * csu/start.c: Remove !NO_UNDERSCORE code.
73434         * locale/localeinfo.h: Likewise.
73435         * sysdeps/generic/machine-gmon.h: Likewise.
73436         * sysdeps/generic/sysdep.h: Likewise.
73437         * sysdeps/i386/sysdep.h: Likewise.
73438         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
73439         * sysdeps/mach/sysdep.h: Likewise.
73440         * sysdeps/s390/s390-32/sysdep.h: Likewise.
73441         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73442         * sysdeps/sh/sysdep.h: Likewise.
73443         * sysdeps/sparc/sparc32/alloca.S: Likewise.
73444         * sysdeps/unix/i386/sysdep.S: Likewise.
73445         * sysdeps/unix/sparc/start.c: Likewise.
73446         * sysdeps/unix/sparc/sysdep.S: Likewise.
73447         * sysdeps/unix/sparc/sysdep.h: Likewise.
73448         * sysdeps/unix/start.c: Likewise.
73449         * sysdeps/unix/x86_64/sysdep.S: Likewise.
73450         * sysdeps/x86_64/sysdep.h: Likewise.
73451
73452 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
73453
73454         [BZ #13553]
73455         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
73456         for non-gcc.
73457         * argp/argp-fmtstream.h: Use const instead __const.
73458         * argp/argp.h: Likewise.
73459         * assert/assert.h: Likewise.
73460         * bits/fenv.h: Likewise.
73461         * bits/sched.h: Likewise.
73462         * bits/sigset.h: Likewise.
73463         * bits/sigthread.h: Likewise.
73464         * catgets/nl_types.h: Likewise.
73465         * conform/data/pthread.h-data: Likewise.
73466         * crypt/crypt-private.h: Likewise.
73467         * crypt/crypt.h: Likewise.
73468         * crypt/crypt_util.c: Likewise.
73469         * ctype/ctype.h: Likewise.
73470         * debug/execinfo.h: Likewise.
73471         * debug/mbsnrtowcs_chk.c: Likewise.
73472         * debug/mbsrtowcs_chk.c: Likewise.
73473         * debug/wcsnrtombs_chk.c: Likewise.
73474         * debug/wcsrtombs_chk.c: Likewise.
73475         * debug/wcstombs_chk.c: Likewise.
73476         * dirent/dirent.h: Likewise.
73477         * dlfcn/dlfcn.h: Likewise.
73478         * elf/neededtest4.c: Likewise.
73479         * grp/grp.h: Likewise.
73480         * gshadow/gshadow.h: Likewise.
73481         * iconv/gconv.h: Likewise.
73482         * iconv/gconv_int.h: Likewise.
73483         * iconv/gconv_simple.c: Likewise.
73484         * iconv/iconv.h: Likewise.
73485         * iconv/loop.c: Likewise.
73486         * iconv/skeleton.c: Likewise.
73487         * include/aio.h: Likewise.
73488         * include/aliases.h: Likewise.
73489         * include/argz.h: Likewise.
73490         * include/arpa/inet.h: Likewise.
73491         * include/assert.h: Likewise.
73492         * include/dirent.h: Likewise.
73493         * include/dlfcn.h: Likewise.
73494         * include/execinfo.h: Likewise.
73495         * include/fcntl.h: Likewise.
73496         * include/fenv.h: Likewise.
73497         * include/glob.h: Likewise.
73498         * include/grp.h: Likewise.
73499         * include/libintl.h: Likewise.
73500         * include/mntent.h: Likewise.
73501         * include/netdb.h: Likewise.
73502         * include/pwd.h: Likewise.
73503         * include/rpc/netdb.h: Likewise.
73504         * include/sched.h: Likewise.
73505         * include/search.h: Likewise.
73506         * include/shadow.h: Likewise.
73507         * include/signal.h: Likewise.
73508         * include/stdio.h: Likewise.
73509         * include/stdlib.h: Likewise.
73510         * include/string.h: Likewise.
73511         * include/sys/socket.h: Likewise.
73512         * include/sys/stat.h: Likewise.
73513         * include/sys/statfs.h: Likewise.
73514         * include/sys/statvfs.h: Likewise.
73515         * include/sys/syslog.h: Likewise.
73516         * include/sys/time.h: Likewise.
73517         * include/sys/uio.h: Likewise.
73518         * include/time.h: Likewise.
73519         * include/unistd.h: Likewise.
73520         * include/utmp.h: Likewise.
73521         * include/wchar.h: Likewise.
73522         * include/wctype.h: Likewise.
73523         * inet/aliases.h: Likewise.
73524         * inet/arpa/inet.h: Likewise.
73525         * inet/netinet/ether.h: Likewise.
73526         * inet/netinet/in.h: Likewise.
73527         * intl/libintl.h: Likewise.
73528         * io/bits/fcntl2.h: Likewise.
73529         * io/fcntl.h: Likewise.
73530         * io/ftw.h: Likewise.
73531         * io/sys/poll.h: Likewise.
73532         * io/sys/stat.h: Likewise.
73533         * io/sys/statfs.h: Likewise.
73534         * io/sys/statvfs.h: Likewise.
73535         * io/utime.h: Likewise.
73536         * libio/bits/stdio.h: Likewise.
73537         * libio/bits/stdio2.h: Likewise.
73538         * libio/libio.h: Likewise.
73539         * libio/libioP.h: Likewise.
73540         * libio/stdio.h: Likewise.
73541         * locale/lc-ctype.c: Likewise.
73542         * locale/locale.h: Likewise.
73543         * login/utmp.h: Likewise.
73544         * malloc/arena.c: Likewise.
73545         * malloc/malloc.c: Likewise.
73546         * malloc/malloc.h: Likewise.
73547         * malloc/mcheck.c: Likewise.
73548         * malloc/mtrace.c: Likewise.
73549         * math/bits/mathcalls.h: Likewise.
73550         * math/fenv.h: Likewise.
73551         * math/math_private.h: Likewise.
73552         * misc/bits/error.h: Likewise.
73553         * misc/bits/syslog.h: Likewise.
73554         * misc/err.h: Likewise.
73555         * misc/error.h: Likewise.
73556         * misc/fstab.h: Likewise.
73557         * misc/mntent.h: Likewise.
73558         * misc/regexp.h: Likewise.
73559         * misc/search.h: Likewise.
73560         * misc/sgtty.h: Likewise.
73561         * misc/sys/mman.h: Likewise.
73562         * misc/sys/syslog.h: Likewise.
73563         * misc/sys/uio.h: Likewise.
73564         * misc/sys/xattr.h: Likewise.
73565         * misc/ttyent.h: Likewise.
73566         * nis/rpcsvc/ypclnt.h: Likewise.
73567         * nss/nss.h: Likewise.
73568         * posix/bits/unistd.h: Likewise.
73569         * posix/fnmatch.h: Likewise.
73570         * posix/glob.h: Likewise.
73571         * posix/sched.h: Likewise.
73572         * posix/spawn.h: Likewise.
73573         * posix/sys/wait.h: Likewise.
73574         * posix/unistd.h: Likewise.
73575         * posix/wordexp.h: Likewise.
73576         * pwd/pwd.h: Likewise.
73577         * resolv/netdb.h: Likewise.
73578         * resource/sys/resource.h: Likewise.
73579         * rt/aio.h: Likewise.
73580         * rt/bits/mqueue2.h: Likewise.
73581         * rt/mqueue.h: Likewise.
73582         * shadow/shadow.h: Likewise.
73583         * signal/signal.h: Likewise.
73584         * socket/send.c: Likewise.
73585         * socket/sendto.c: Likewise.
73586         * socket/sys/socket.h: Likewise.
73587         * stdio-common/printf.h: Likewise.
73588         * stdlib/bits/stdlib.h: Likewise.
73589         * stdlib/fmtmsg.h: Likewise.
73590         * stdlib/monetary.h: Likewise.
73591         * stdlib/stdlib.h: Likewise.
73592         * stdlib/ucontext.h: Likewise.
73593         * streams/stropts.h: Likewise.
73594         * string/argz.h: Likewise.
73595         * string/bits/string2.h: Likewise.
73596         * string/string.h: Likewise.
73597         * string/strings.h: Likewise.
73598         * sunrpc/rpc/auth.h: Likewise.
73599         * sunrpc/rpc/auth_des.h: Likewise.
73600         * sunrpc/rpc/clnt.h: Likewise.
73601         * sunrpc/rpc/netdb.h: Likewise.
73602         * sunrpc/rpc/pmap_clnt.h: Likewise.
73603         * sunrpc/rpc/xdr.h: Likewise.
73604         * sysdeps/generic/inttypes.h: Likewise.
73605         * sysdeps/generic/net/if.h: Likewise.
73606         * sysdeps/generic/sys/swap.h: Likewise.
73607         * sysdeps/gnu/net/if.h: Likewise.
73608         * sysdeps/gnu/utmpx.h: Likewise.
73609         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
73610         * sysdeps/i386/i486/bits/string.h: Likewise.
73611         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
73612         * sysdeps/s390/bits/string.h: Likewise.
73613         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
73614         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
73615         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
73616         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
73617         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
73618         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
73619         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
73620         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
73621         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
73622         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
73623         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
73624         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
73625         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
73626         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
73627         * sysdeps/unix/sysv/linux/readv.c: Likewise.
73628         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
73629         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
73630         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
73631         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
73632         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
73633         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
73634         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
73635         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
73636         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
73637         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
73638         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
73639         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
73640         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
73641         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
73642         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
73643         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
73644         * sysvipc/sys/ipc.h: Likewise.
73645         * sysvipc/sys/msg.h: Likewise.
73646         * sysvipc/sys/sem.h: Likewise.
73647         * sysvipc/sys/shm.h: Likewise.
73648         * termios/termios.h: Likewise.
73649         * time/sys/time.h: Likewise.
73650         * time/time.h: Likewise.
73651         * wcsmbs/bits/wchar2.h: Likewise.
73652         * wcsmbs/uchar.h: Likewise.
73653         * wcsmbs/wchar.h: Likewise.
73654         * wctype/wctype.h: Likewise.
73655
73656         [BZ #13551]
73657         * Makeconfig: Remove all but ELF support including AIX support.
73658         * Makerules: Likewise.
73659         * config.h.in: Likewise.
73660         * config.make.in: Likewise.
73661         * configure: Likewise.
73662         * configure.in: Likewise.
73663         * csu/Makefile: Likewise.
73664         * csu/version.c: Likewise.
73665         * debug/Makefile: Likewise.
73666         * dlfcn/Makefile: Likewise.
73667         * elf/Makefile: Likewise.
73668         * extra-lib.mk: Likewise.
73669         * iconv/Makefile: Likewise.
73670         * include/libc-symbols.h: Likewise.
73671         * include/shlib-compat.h: Likewise.
73672         * resolv/Makefile: Likewise.
73673         * resolv/res_libc.c: Likewise.
73674         * rt/Makefile: Likewise.
73675         * sysdeps/i386/asm-syntax.h: Likewise.
73676         * sysdeps/i386/sysdep.h: Likewise.
73677         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
73678         * sysdeps/mach/sysdep.h: Likewise.
73679         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
73680         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
73681         * sysdeps/s390/asm-syntax.h: Likewise.
73682         * sysdeps/s390/s390-32/sysdep.h: Likewise.
73683         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73684         * sysdeps/sh/sysdep.h: Likewise.
73685         * sysdeps/unix/sparc/sysdep.h: Likewise.
73686         * sysdeps/wordsize-32/divdi3.c: Likewise.
73687         * sysdeps/x86_64/sysdep.h: Likewise.
73688
73689         * argp/Versions: Remove _argp_unlock_xxx.
73690
73691         [BZ #13559]
73692         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
73693         * abilist/libBrokenLocale.abilist: Likewise.
73694         * abilist/libanl.abilist: Likewise.
73695         * abilist/libc.abilist: Likewise.
73696         * abilist/libcrypt.abilist: Likewise.
73697         * abilist/libdl.abilist: Likewise.
73698         * abilist/libm.abilist: Likewise.
73699         * abilist/libnsl.abilist: Likewise.
73700         * abilist/libpthread.abilist: Likewise.
73701         * abilist/libresolv.abilist: Likewise.
73702         * abilist/librt.abilist: Likewise.
73703         * abilist/libthread_db.abilist: Likewise.
73704         * abilist/libutil.abilist: Likewise.
73705         * abilist/libnss_db.abilist: New file.
73706
73707         * scripts/abilist.awk: Add support for indirect functions.
73708
73709         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
73710
73711         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
73712
73713         * shlib-versions: Remove entries for ports architectures.
73714
73715         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
73716         files in ports.
73717         * elf/stackguard-macros.h: Remove support for IA-64.
73718         * elf/tst-auditmod1.c: Likewise.
73719         * sysdeps/generic/ldsodefs.h: Likewise.
73720
73721         * sysdeps/unix/sysv/linux/configure.in: Ports should define
73722         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
73723         configure files.
73724
73725         [BZ #13552]
73726         * configure.in: Remove --enable-omitfp support.
73727         * FAQ.in: Adjust.
73728         * config.make.in: Likewise.
73729         * Makeconfig: Likewise.
73730         * manual/install.texi: Likewise.
73731
73732         In case anyone cares, the IA-64 architecture could move to ports.
73733         * sysdeps/ia64/*: Removed.
73734         * sysdeps/unix/sysv/linux/ia64/*: Removed.
73735         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
73736
73737         [BZ #13555]
73738         * configure.in: Remove entries for unsupported architectures.
73739
73740         [BZ #13533]
73741         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
73742         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
73743         routines.
73744         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
73745         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
73746         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
73747         fall back to using wcrtomb.
73748         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
73749         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
73750         renaming.
73751         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
73752         * wcsmbs/tst-c16c32-1.c: New file.
73753
73754         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
73755         local variable.
73756
73757         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
73758
73759         * elf/tst-unique3.cc: Add explicit declaration of gets.
73760         * elf/tst-unique3lib.cc: Likewise.
73761         * elf/tst-unique3lib2.cc: Likewise.
73762         * elf/tst-unique4.cc: Likewise.
73763
73764         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
73765
73766 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
73767
73768         [BZ #13566]
73769         * assert/assert.h (static_assert): Don't define for C++.
73770         * libio/stdio.h (gets): Do declare for C++ <= C++11.
73771         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
73772
73773 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
73774
73775         * iconv/loop.c (single loop): Fix assertion in storing of
73776         remaining bytes.
73777
73778         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
73779
73780 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
73781
73782         * posix/getconf.c: Update copyright year.
73783         * nss/getent.c: Likewise.
73784         * nss/makedb.c: Likewise.
73785         * iconv/iconvconfig.c: Likewise.
73786         * iconv/iconv_prog.c: Likewise.
73787         * elf/ldconfig.c: Likewise.
73788         * elf/pldd.c: Likewise.
73789         * elf/sotruss.ksh: Likewise.
73790         * catgets/gencat.c: Likewise.
73791         * csu/version.c: Likewise.
73792         * elf/ldd.bash.in: Likewise.
73793         * elf/sprof.c (print_version): Likewise.
73794         * locale/programs/locale.c: Likewise.
73795         * locale/programs/localedef.c: Likewise.
73796         * login/programs/pt_chown.c: Likewise.
73797         * nscd/nscd.c (print_version): Likewise.
73798         * debug/xtrace.sh: Likewise.
73799         * malloc/memusage.sh: Likewise.
73800         * malloc/mtrace.pl: Likewise.
73801         * debug/catchsegv.sh: Likewise.
73802
73803 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
73804
73805         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
73806         pure attribute.
73807
73808 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
73809
73810         [BZ #13533]
73811         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
73812         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
73813         transformations.
73814         * iconv/gconv_int.h: Likewise.
73815         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
73816         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
73817         from libc for GLIBC_2.16.
73818         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
73819         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
73820         * wcsmbs/uchar.h: Really define mbstate_t.
73821         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
73822         * wcsmbs/c16rtomb.c: New file.
73823         * wcsmbs/mbrtoc16.c: New file.
73824         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
73825         for C/POSIX locale.
73826         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
73827         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
73828
73829         * wcsmbs/wchar.h: Add missing __restrict.
73830
73831 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
73832
73833         [BZ #13532]
73834         * time/Makefile (routines): Add timespec_get.
73835         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
73836         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
73837         timespec for ISO C11.
73838         * time/timespec_get.c: New file.
73839         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
73840         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
73841
73842         [BZ #13531]
73843         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
73844         * stdlib/stdlib.h: Declare aligned_alloc.
73845         * Versions.def: Add GLIBC_2.16 for libc.
73846         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
73847
73848         [BZ 13527]
73849         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
73850         ISO C11.
73851
73852         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
73853         code.
73854
73855         [BZ #13528]
73856         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
73857
73858         [BZ #13529]
73859         * assert/assert.h (static_assert): Define.
73860
73861         * version.h: Update for 2.16 development version.
73862
73863         [BZ #13526]
73864         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
73865         _ISOC11_SOURCE.
73866
73867         * version.h (RELEASE): Bump for 2.15 release.
73868         * include/features.h (__GLIBC_MINOR__): Bump to 15.
73869
73870         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
73871         Patch by Marek Polacek <mpolacek@redhat.com>.
73872
73873         * bits/byteswap.h: Protect long long constants with __extension__.
73874         * sysdeps/i386/bits/byteswap.h: Likewise.
73875         * sysdeps/ia64/bits/byteswap.h: Likewise.
73876         * sysdeps/s390/bits/byteswap.h: Likewise.
73877         * sysdeps/x86_64/bits/byteswap.h: Likewise.
73878
73879 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73880
73881         [BZ #13540]
73882         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
73883         destination buffer.
73884         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
73885
73886 2011-12-23  Marek Polacek  <polacek@redhat.com>
73887
73888         * elf/dl-addr.c (determine_info): Add inline keyword.
73889         * elf/tst-auditmod4b.c (check_avx): Likewise.
73890         * elf/tst-auditmod6b.c (check_avx): Likewise.
73891         * elf/tst-auditmod6c.c (check_avx): Likewise.
73892         * elf/tst-auditmod7b.c (check_avx): Likewise.
73893
73894 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
73895
73896         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
73897         !__SSE_MATH__.
73898
73899 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73900
73901         [BZ #13540]
73902         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
73903         processing for last bytes.
73904
73905 2011-08-06  Bruno Haible  <bruno@clisp.org>
73906
73907         [BZ #13061]
73908         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
73909         U+0385, not to U+1FEE.
73910
73911         [BZ #13062]
73912         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
73913         entry for U+00A5 U+0301.
73914
73915 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
73916
73917         [BZ #13166]
73918         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
73919         buffer for the output is too small.
73920
73921         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
73922         optimization.
73923
73924         [BZ #13185]
73925         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
73926         SSE flags if possible.
73927
73928 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73929
73930         [BZ #13540]
73931         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
73932         processing for last bytes.
73933
73934 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
73935
73936         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
73937         (syscall-list-default-options, syscall-list-default-condition)
73938         (syscall-list-includes): Define.
73939         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
73940         list of ABIs and options and #if conditions for each ABI.  Do not
73941         handle common syscalls between ABIs specially.
73942         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
73943         Remove.
73944         (syscall-list-variants, syscall-list-32bit-options)
73945         (syscall-list-32bit-condition, syscall-list-64bit-options)
73946         (syscall-list-64bit-condition): Define.
73947         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
73948         (syscall-list-variants, syscall-list-32bit-options)
73949         (syscall-list-32bit-condition, syscall-list-64bit-options)
73950         (syscall-list-64bit-condition): Define.
73951         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
73952         Remove.
73953         (syscall-list-variants, syscall-list-32bit-options)
73954         (syscall-list-32bit-condition, syscall-list-64bit-options)
73955         (syscall-list-64bit-condition): Define.
73956         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
73957         Remove.
73958         (syscall-list-variants, syscall-list-32bit-options)
73959         (syscall-list-32bit-condition, syscall-list-64bit-options)
73960         (syscall-list-64bit-condition): Define.
73961
73962 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
73963
73964         * locale/iso-639.def: Add brx entry.
73965
73966         [BZ #13328]
73967         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
73968         Proposed by Mariusz_Cukr <marcukr@op.pl>.
73969
73970         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
73971         __feraiseexcept_renamed.
73972
73973 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
73974
73975         [BZ #13538]
73976         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
73977         EPOLLET with unsigned values.
73978         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
73979         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
73980
73981         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
73982         to large cancellation.
73983         * math/s_cacoshf.c: Likewise.
73984         * math/s_cacoshl.c: Likewise.
73985
73986 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
73987
73988         [BZ #13305]
73989         [BZ #12786]
73990         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
73991         * math/s_cacoshf.c: Likewise.
73992         * math/s_cacoshl.c: Likewise.
73993
73994 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
73995
73996         [BZ #13439]
73997         * iconv/gconv.h: Define __GCONV_SWAP.
73998         * iconvdata/unicode.c: The swap bit must be stored in __flags.
73999         * iconvdata/utf-16.c: Likewise.
74000         * iconvdata/utf-32.c: Likewise.
74001
74002 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
74003
74004         [BZ #13524]
74005         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
74006         numerator after shifting it by one limb.
74007
74008 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
74009
74010         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
74011         under [__USE_EXTERN_INLINES].
74012
74013 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
74014
74015         [BZ #13446]
74016         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
74017
74018 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74019
74020         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
74021         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
74022         optimized code.
74023         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
74024         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
74025         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
74026         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
74027         for strncasecmp/strncasecmp_l compilation.
74028         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
74029         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
74030
74031 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
74032
74033         [BZ #13484]
74034         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
74035         of __asm__.
74036
74037 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
74038
74039         [BZ #13506]
74040         * time/tzfile.c (__tzfile_read): Check values from file header.
74041
74042 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
74043
74044         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
74045         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
74046         * powerpc/powerpc32/dl-start.S: Likewise.
74047         * powerpc/powerpc32/elf/start.S: Likewise.
74048         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
74049         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
74050         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
74051         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
74052         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
74053         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
74054         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
74055         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
74056         * powerpc/powerpc32/fpu/s_round.S: Likewise.
74057         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
74058         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
74059         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
74060         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
74061         * powerpc/powerpc32/memset.S: Likewise.
74062         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
74063         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
74064         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
74065         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
74066         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
74067         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
74068         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
74069         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
74070         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
74071         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
74072         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
74073         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
74074         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
74075
74076 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74077
74078         * math/libm-test.inc: Added more nearbyint tests.
74079         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
74080         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
74081         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
74082         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
74083
74084 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
74085
74086         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
74087         FD_CLOEXEC.
74088
74089 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74090
74091         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
74092         Add wcscpy-ssse3 wcscpy-c.
74093         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
74094         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
74095         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
74096         * sysdeps/x86_64/wcschr.S: New file.
74097         * sysdeps/x86_64/wcsrchr.S: New file.
74098         * string/test-strcmp.c: Remove checking of wcscmp function for
74099         wrong alignments.
74100         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
74101         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
74102         wcsrchr-sse2 wcsrchr-c.
74103         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
74104         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
74105         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
74106         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
74107         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
74108         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
74109         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
74110         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
74111         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
74112         * wcsmbc/wcschr.c (WCSCHR): New macro.
74113
74114 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74115
74116         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
74117         * wcsmbs/test-wcsrchr.c: New file.
74118         * string/test-strrchr.c: Add wcsrchr support.
74119         (WIDE): New macro.
74120         * wcsmbs/test-wcscpy.c: New file.
74121         * string/test-strcpy.c: Add wcscpy support.
74122         (WIDE): New macro.
74123
74124 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
74125
74126         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
74127         the inner loop.
74128
74129 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
74130
74131         [BZ #13472]
74132         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
74133
74134 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
74135
74136         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
74137         Minor optimizations.
74138
74139         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
74140         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
74141         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
74142
74143 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
74144
74145         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
74146         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
74147         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
74148         for gcc to avoid warnings.
74149         * inet/Makefile (tests): Add tst-checks.
74150         * inet/tst-checks.c: New file.
74151
74152         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
74153         warning.
74154
74155         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
74156         __wmemcmp_sse2.
74157
74158         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
74159         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
74160
74161         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
74162
74163 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
74164
74165         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
74166         problem.
74167
74168         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
74169
74170 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
74171
74172         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
74173         conditional on GCC version.
74174         (__arch_compare_and_exchange_val_8_acq)
74175         (__arch_compare_and_exchange_val_16_acq)
74176         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
74177         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
74178         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
74179
74180 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
74181
74182         * sysdeps/sh/backtrace.c: New file.
74183
74184 2011-12-02  Andreas Schwab  <schwab@redhat.com>
74185
74186         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
74187         parenthesis.
74188
74189 2011-12-01  Andreas Schwab  <schwab@redhat.com>
74190
74191         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
74192         falling back to utime.
74193
74194 2011-11-30  Andreas Schwab  <schwab@redhat.com>
74195
74196         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
74197         expectations for float.
74198
74199 2011-11-29  Andreas Schwab  <schwab@redhat.com>
74200
74201         * locale/weight.h (findidx): Add parameter len.
74202         * locale/weightwc.h (findidx): Likewise.
74203         * posix/fnmatch_loop.c (FCT): Adjust caller.
74204         * posix/regcomp.c (build_equiv_class): Likewise.
74205         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
74206         * posix/regexec.c (check_node_accept_bytes): Likewise.
74207         * string/strcoll_l.c (STRCOLL): Likewise.
74208         * string/strxfrm_l.c (STRXFRM): Likewise.
74209
74210 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
74211
74212         * Makefile.in: Remove CVSOPT handling.
74213         * configure.in: Remove use of AC_REVISION.
74214         * iconvdata/Makefile (distribute): No need to filter out CVS.
74215         * scripts/list-sources.sh: Remove CVS, subversion and monotone
74216         handling.
74217
74218 2011-11-16  Andreas Schwab  <schwab@redhat.com>
74219
74220         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
74221         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
74222         [USE_AS_STRNCASECMP_L]: Likewise.
74223         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
74224         NO_TLS_DIRECT_SEG_REFS.
74225         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
74226         Fix argument offsets for non-PIC.
74227         [USE_AS_STRNCASECMP_L]: Likewise.
74228         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
74229         NO_TLS_DIRECT_SEG_REFS.
74230
74231 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
74232
74233         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
74234         O_CLOEXEC.
74235         * locale/loadlocale.c (_nl_load_locale): Likewise.
74236
74237 2011-11-15  Andreas Schwab  <schwab@redhat.com>
74238
74239         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
74240         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
74241         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
74242         (SYSCALL_GETTIME): Set errno on error.
74243
74244         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
74245         count references to noai6ai_cached.
74246
74247 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
74248
74249         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
74250
74251         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
74252         FD_CLOEXEC for /proc/self/maps.
74253
74254         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
74255         FD_CLOEXEC for /proc/meminfo.
74256
74257         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
74258         gai.conf.
74259
74260         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
74261         FD_CLOEXEC for given file.
74262
74263         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
74264
74265         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
74266         FD_CLOEXEC for /etc/hosts.
74267         (_gethtent): Likewise.
74268
74269         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
74270
74271         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
74272         cancellation and set FD_CLOEXEC for /etc/netgroup.
74273
74274         * nss/nss_files/files-key.c (search): Don't allow cancellation when
74275         reading /etc/publickey.
74276
74277         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
74278         allow cancellation when reading /etc/group.
74279
74280         * nss/nss_files/files-alias.c (internal_setent): Don't allow
74281         cancellation.
74282         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
74283
74284         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
74285         when using data file.
74286
74287         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
74288
74289         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
74290         (write_nis_obj): Use "c" and "e" in fopen.
74291
74292         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
74293
74294         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
74295
74296         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
74297
74298         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
74299
74300         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
74301         locale.alias.
74302
74303         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
74304
74305         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
74306
74307         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
74308
74309         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
74310         file parsing and set FD_CLOEXEC.
74311
74312 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
74313
74314         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
74315
74316 2011-11-14  Andreas Schwab  <schwab@redhat.com>
74317
74318         * malloc/arena.c (arena_get2): Don't call reused_arena when
74319         _int_new_arena failed.
74320
74321 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
74322
74323         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
74324         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
74325         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
74326         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
74327         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
74328         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
74329         to compile strcasecmp and strncasecmp.
74330         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
74331         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
74332
74333         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
74334
74335 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
74336
74337         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
74338         locale-defines.sym to gen-as-const-headers.
74339         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
74340         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
74341         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
74342         to compile strcasecmp and strncasecmp.
74343         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
74344         strcasecmp_l and strncasecmp_l.
74345         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
74346         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
74347         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
74348         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
74349         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
74350         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
74351         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
74352         * sysdeps/i386/i686/multiarch/strncase.S: New file.
74353         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
74354         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
74355         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
74356
74357 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
74358
74359         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
74360         result of SYSDEP_GETTIME_CPU to retval.
74361         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
74362         parameter list to macro.  Remove trailing semicolon.  Adjust users.
74363
74364         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
74365         variable.
74366
74367         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
74368         mantissa words.
74369         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
74370
74371         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
74372         from unused variable.
74373
74374         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
74375         DWARF definitions.
74376         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
74377         for assembling.
74378
74379         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
74380         over namespaces.
74381
74382         * sunrpc/rpc_prot.c (rejected): Fix case value.
74383
74384         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
74385         unsigned long long int to avoid warnings in shift.
74386
74387         * posix/regex_internal.c (re_string_reconstruct): Actually use result
74388         of use of trans.
74389         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
74390         variable tmp.
74391
74392         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
74393         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
74394         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
74395
74396         * nis/nis_table.c (nis_list): Use variable of correct type for
74397         result of __follow_path call.
74398
74399 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74400
74401         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
74402         of math functions ceil, trunc, floor, round, and sqrt, when
74403         avaliable on the platform.
74404         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
74405         name clash.
74406         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
74407         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
74408         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
74409
74410 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
74411
74412         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
74413         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
74414
74415 2011-11-11  Roland McGrath  <roland@hack.frob.com>
74416
74417         * include/unistd.h: Fix __readlink return type.
74418         Reported by Chris Metcalf <cmetcalf@tilera.com>.
74419
74420 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
74421
74422         * stdlib/ucontext.h: Undo last change for makecontext.
74423
74424 2011-11-11  Andreas Schwab  <schwab@redhat.com>
74425
74426         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
74427
74428         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
74429         * setjmp/setjmp.h: Mark functions as non-leaf.
74430         * setjmp/bits/setjmp2.h: Likewise.
74431         * stdlib/ucontext.h: Likewise.
74432
74433 2011-11-10  Andreas Schwab  <schwab@redhat.com>
74434
74435         * malloc/arena.c (_int_new_arena): Don't increment narenas.
74436         (reused_arena): Don't check arena limit.
74437         (arena_get2): Atomically check arena limit.
74438
74439 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
74440
74441         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
74442         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
74443
74444         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
74445         instructions.
74446
74447 2011-11-07  Andreas Schwab  <schwab@redhat.com>
74448
74449         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
74450         handler when locking.
74451
74452         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
74453         Fix size of allocated buffer.
74454
74455 2011-11-04  Andreas Schwab  <schwab@redhat.com>
74456
74457         [BZ #10103]
74458         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
74459         declarations for long double functions.
74460         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
74461
74462         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
74463
74464 2011-11-03  Andreas Schwab  <schwab@redhat.com>
74465
74466         * nscd/nscd.c (main): Don't start AVC thread until credentials are
74467         installed.
74468
74469         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
74470         is disabled.
74471
74472 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74473
74474         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
74475
74476 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
74477
74478         * include/alloca.h (stackinfo_alloca_round): Define.
74479         (extend_alloca): Use it.
74480         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
74481         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
74482         here.
74483
74484         * scripts/check-local-headers.sh: Ignore libaudit.h.
74485
74486         * nscd/Makefile (extra-objs): Make recursively expanded.
74487
74488 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
74489
74490         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
74491         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
74492
74493         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
74494         * posix/tst-rfc3484-2.c: Likewise.
74495         * posix/tst-rfc3484-3.c: Likewise.
74496
74497         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
74498         process_vm_writev.
74499         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
74500         process_vm_writev.
74501         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
74502         process_vm_writev from libc using GLIBC_2.15 version.
74503
74504         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
74505
74506 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
74507
74508         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
74509         stack usage.
74510
74511 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
74512
74513         [BZ #13367]
74514         * nss/getent.c (initgroups_keys): Show error message in case no group
74515         names are given.
74516
74517         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
74518         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
74519         __bump_nl_timestamp.
74520         * nscd/connections (nscd_init): When host database is served open
74521         netlink socket and request notification about configuration changes.
74522         (main_loop_poll): Track netlink file descriptor and bump timestamp
74523         in case data becomes available.
74524         (main_loop_epoll): Likewise.
74525         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
74526         (database_pers_head): Add extra_data fileds.
74527         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
74528         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
74529         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
74530         Adjust caller.
74531         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
74532         in6ai data, call __free_in6ai.
74533         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
74534         Add -DHAVE_NETLINK.
74535         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
74536         interface information.  Reuse previous data if netlink timestamp
74537         is not changed.
74538         (__bump_nl_timestamp): New function.
74539         (__free_in6ai): New function.
74540
74541 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
74542
74543         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
74544         close_not_cancel_no_status here.
74545         (__check_pf): Reorganize code a bit to not call close twice if OOM.
74546
74547 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
74548
74549         [BZ #13276]
74550         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
74551         return value.
74552
74553         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
74554         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
74555         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
74556
74557 2011-07-03  Andreas Jaeger  <aj@suse.de>
74558
74559         [BZ #10709]
74560         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
74561         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
74562         * math/libm-test.inc (sin_test): Add test case.
74563
74564 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
74565
74566         [BZ #13337]
74567         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
74568         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
74569
74570         * elf/chroot_canon.c (chroot_canon): Cleanups.
74571
74572         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
74573
74574         [BZ #13335]
74575         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
74576         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
74577
74578         * string/test-strchr.c: Make usable for strchrnul testing.
74579         * string/test-strchrnul.c: New file.
74580         * string/Makefile (strop-tests): Add strchrnul.
74581
74582         * po/it.po: Update from translation team.
74583         * po/es.po: Likewise.
74584
74585 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
74586
74587         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
74588         the three constants needed as parameters.  Drop the others.
74589         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
74590         __m128i_strloadu_tolower.
74591         Create and initialize variable zero and use it in all the places
74592         where _mm_setzero_si128 was used.
74593
74594         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
74595         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
74596         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
74597         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
74598         anymore.
74599         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
74600         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
74601         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
74602         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
74603         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
74604         __mpranred, __mptan.
74605         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
74606         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
74607         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
74608         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
74609         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
74610         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
74611         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
74612         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
74613         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
74614
74615 2011-10-28  Andreas Schwab  <schwab@redhat.com>
74616
74617         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
74618         redefine if SHARED.
74619         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
74620
74621         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
74622         wide char related routines to wcsmbs subdir.
74623
74624 2011-10-27  Andreas Schwab  <schwab@redhat.com>
74625
74626         [BZ #13344]
74627         * misc/sys/cdefs.h (__THROWNL): Define.
74628         * posix/unistd.h: Use __THREADNL instead of __THREAD
74629         for memory synchronization functions.
74630
74631 2011-10-26  Roland McGrath  <roland@hack.frob.com>
74632
74633         [BZ #13349]
74634         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
74635         doesn't exist.
74636         * manual/stdio.texi (Obstack Streams): Node removed.
74637
74638 2011-10-26  Andreas Schwab  <schwab@redhat.com>
74639
74640         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
74641         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
74642         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
74643
74644         * math/math_private.h (math_force_eval): Allow non-addressable
74645         arguments.
74646         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
74647
74648 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
74649
74650         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
74651         file is not needed.
74652
74653         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
74654         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
74655         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
74656         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
74657         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
74658         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
74659         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
74660         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
74661         Add AVX variants.
74662         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
74663         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
74664         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
74665         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
74666         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
74667         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
74668         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
74669         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
74670         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
74671         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
74672         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
74673         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
74674         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
74675         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
74676         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
74677         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
74678         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
74679         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
74680         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
74681
74682         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
74683         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
74684
74685         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
74686         place.  Use VEX encoding when compiling for AVX.
74687
74688 2011-10-25  Andreas Schwab  <schwab@redhat.com>
74689
74690         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
74691         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
74692
74693         * string/test-strchr.c (do_test): Don't generate NUL bytes.
74694
74695 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
74696
74697         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
74698         useless if() expression.
74699         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
74700         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
74701         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
74702         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
74703         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
74704         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
74705         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
74706         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
74707         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
74708         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
74709         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
74710         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
74711         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
74712         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
74713         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
74714         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
74715         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
74716         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
74717         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
74718
74719         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
74720
74721 2011-10-25  Andreas Schwab  <schwab@redhat.com>
74722
74723         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
74724         condition.
74725         * elf/dl-fini.c (_dl_sort_fini): Likewise.
74726
74727 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
74728
74729         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
74730         .text section.  Avoid duplicate constants.
74731         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
74732         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74733         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
74734         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
74735         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
74736         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74737         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74738         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
74739         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
74740         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
74741         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
74742         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
74743         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
74744         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
74745         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
74746         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
74747         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
74748         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
74749         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
74750         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74751         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
74752         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
74753         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
74754         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
74755         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
74756         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
74757         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
74758         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
74759         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
74760         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
74761         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
74762         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
74763         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
74764         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
74765         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
74766         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
74767         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
74768         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
74769         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
74770         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
74771         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
74772         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
74773         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
74774         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
74775         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
74776
74777 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
74778
74779         * sysdeps/x86_64/dla.h: Move to ...
74780         * sysdeps/x86_64/fpu/dla.h: ...here.
74781         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
74782         situations.  Use __builtin_fma only for gcc 4.6 and up.
74783
74784         * config.make.in: Add have-mfma4 entry.
74785         * configure.in: Substitute libc_cv_cc_fma4.
74786         * math/Makefile (dbl-only-routines): Add sincostab.
74787         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
74788         Use __sincostab not sincos.
74789         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
74790         name is a macro.
74791         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
74792         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74793         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74794         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
74795         using __copysign.
74796         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
74797         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
74798         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
74799         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
74800         and __inv.
74801         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
74802         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
74803         __copysign.
74804         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
74805         define aliases when function name is a macro.
74806         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
74807         sysdeps/ieee754/dbl-64/sincos.tbl.
74808         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
74809         fma4-enabled routines.
74810         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
74811         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
74812         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
74813         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
74814         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
74815         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
74816         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
74817         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
74818         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
74819         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
74820         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
74821         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
74822         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
74823         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
74824         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
74825         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
74826         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
74827         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
74828         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
74829         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
74830         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
74831         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
74832         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
74833         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
74834         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
74835         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
74836         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
74837         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
74838         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
74839         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
74840
74841         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
74842         rename.
74843         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74844         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74845         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
74846         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74847         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74848         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
74849         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
74850         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74851
74852 2011-10-24  Andreas Schwab  <schwab@redhat.com>
74853
74854         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
74855
74856 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
74857
74858         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
74859
74860         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
74861         prediction.
74862         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
74863
74864         * string/strnlen.c: Don't define STRNLEN, reverse logic.
74865         Remove unused variable magic_bits.
74866         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
74867
74868         * string/strnlen.c: Define and use STRNLEN macro.
74869         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
74870         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
74871         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
74872         * wcsmbs/wcslen.c: Define and use WCSLEN.
74873         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
74874         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
74875         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
74876         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
74877         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
74878         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
74879         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
74880
74881 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74882
74883         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74884         strnlen-sse2-no-bsf.
74885         Rename strlen-no-bsf to strlen-sse2-no-bsf.
74886         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
74887         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
74888         Add strnlen support.
74889         (USE_AS_STRNLEN): New macro.
74890         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
74891         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
74892         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
74893         * sysdeps/x86_64/wcslen.S: New file.
74894
74895 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
74896
74897         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
74898         XMM-moves are used for copying on small sizes.
74899
74900 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74901
74902         * wcsmbs/Makefile (strop-tests): Add wcschr.
74903         * wcsmbs/test-wcschr.c: New file.
74904         * string/test-strchr.c: Update.
74905         Add wcschr support.
74906         (WIDE): New macro.
74907
74908 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74909
74910         * wcsmbs/Makefile (strop-tests): Add wcslen.
74911         * wcsmbs/test-wcslen.c: New file.
74912         * string/test-strlen.c: Update.
74913         Add wcslen support.
74914         (WIDE): New macro.
74915
74916 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
74917
74918         * po/it.po: Update from translation team.
74919
74920 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74921
74922         * sysdeps/x86_64/wcscmp.S: Update.
74923         Fix wrong comparison semantics.
74924         wcscmp shall use signed comparison not unsigned.
74925         Don't use substraction to avoid overflow bug.
74926         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
74927         * wcsmbc/wcscmp.c: Likewise.
74928         * string/test-strcmp.c: Likewise.
74929         Add new tests to check cases with negative values.
74930
74931 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
74932
74933         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
74934         * sysdeps/x86_64/dla.h: ...here.  New file.
74935         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
74936         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74937         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
74938         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74939         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74940         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
74941         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
74942         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
74943         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74944
74945 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
74946
74947         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
74948         __ynl_finite aliases.
74949
74950 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
74951
74952         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
74953
74954         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
74955         define DLA_FMA.
74956         [DLA_FMA] (EMULV): Use DLA_FMA.
74957         [DLA_FMA] (MUL12): Use EMULV.
74958         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
74959         that are not needed.
74960         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74961         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
74962         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74963         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74964         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
74965         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
74966         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74967
74968 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
74969
74970         * math/s_nan.c: Undef __nan.
74971         * math/s_nanf.c: Undef __nanf.
74972         * math/s_nanl.c: Undef __nanl.
74973         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
74974         "math_private.h".
74975
74976 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
74977
74978         * math/s_catan.c: Add branch predictions.
74979         * math/s_catanf.c: Likewise.
74980         * math/s_catanh.c: Likewise.
74981         * math/s_catanhf.c: Likewise.
74982         * math/s_catanhl.c: Likewise.
74983         * math/s_catanl.c: Likewise.
74984         * math/s_cexp.c: Likewise.
74985         * math/s_cexpf.c: Likewise.
74986         * math/s_cexpl.c: Likewise.
74987         * math/s_clog.c: Likewise.
74988         * math/s_clog10.c: Likewise.
74989         * math/s_clog10f.c: Likewise.
74990         * math/s_clog10l.c: Likewise.
74991         * math/s_clogf.c: Likewise.
74992         * math/s_clogl.c: Likewise.
74993         * math/s_csqrt.c: Likewise.
74994         * math/s_csqrtf.c: Likewise.
74995         * math/s_csqrtl.c: Likewise.
74996         * math/s_ctanf.c: Likewise.
74997         * math/s_ctanh.c: Likewise.
74998         * math/s_ctanhf.c: Likewise.
74999         * math/s_ctanhl.c: Likewise.
75000         * math/s_ctanl.c: Likewise.
75001
75002         * math/math_private.h: Define __nan, __nanf, __nanl.
75003         * math/s_cacosh.c: Include <math_private.h>.
75004         * math/s_cacoshl.c: Likewise.
75005         * math/s_casinh.c: Likewise.
75006         * math/s_casinhf.c: Likewise.
75007         * math/s_casinhl.c: Likewise.
75008         * math/s_ccos.c: Rely entire on ccosh.
75009         * math/s_ccosf.c: Rely entire on ccoshf.
75010         * math/s_ccosl.c: Rely entirely on ccoshl.
75011         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
75012         Remove tests for FE_INVALID.
75013         * math/s_ccoshf.c: Likewise.
75014         * math/s_ccoshl.c: Likewise.
75015         * math/s_csin.c: Likewise.
75016         * math/s_csinf.c: Likewise.
75017         * math/s_csinh.c Likewise.
75018         * math/s_csinhf.c: Likewise.
75019         * math/s_csinhl.c: Likewise.
75020         * math/s_csinl.c: Likewise.
75021         * math/s_ctan.c: Likewise.
75022         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
75023         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
75024         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
75025
75026 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
75027
75028         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
75029         compilation problems.
75030
75031         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
75032         __builtin_expect.
75033
75034 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
75035
75036         * sysdeps/i386/configure.in: Test for -mfma4 option.
75037         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
75038         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
75039         COMMON_CPUID_INDEX_80000001.
75040         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
75041         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
75042         use it if FMA3 is not supported.
75043         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
75044
75045         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
75046         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75047
75048 2011-10-20  Andreas Schwab  <schwab@redhat.com>
75049
75050         [BZ #12892]
75051         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
75052         it would create a cycle with a link time dependency.
75053
75054 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
75055
75056         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
75057         instruction.
75058         * string/Makefile (strop-tests): Add rawmemchr.
75059         * string/test-rawmemchr.c: New file.
75060
75061         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
75062         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
75063         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
75064         when compiling str{,n}casecmp and when AVX is available.  Hook up
75065         new optimized code in initializers.
75066
75067 2011-10-19  Andreas Schwab  <schwab@redhat.com>
75068
75069         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
75070         __feraiseexcept instead of feraiseexcept.
75071
75072 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
75073
75074         * math/math_private.h: Define defaults for libc_fetestexcept and
75075         libc_feupdateenv.
75076         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
75077         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
75078         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
75079         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
75080         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
75081         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
75082         libc_fetestexcept and libc_feupdateenv.
75083
75084         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
75085         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
75086         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
75087         * sysdeps/x86_64/fpu/math_private.h: Define special version of
75088         libc_feholdexcept_setround.
75089
75090         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
75091         Add s_nearbyint-c and s_nearbyintf-c.
75092         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
75093         nearbyintf inlines.
75094         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
75095         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
75096         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
75097         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
75098
75099         * math/math_private.h: Define defaults for libc_fegetround,
75100         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
75101         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
75102         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
75103         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
75104         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
75105         standard functions.
75106         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
75107         Remove comments and hacks for old compiler versions.
75108         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
75109         libc_fegetround, libc_fesetround, libc_feholdexcept, and
75110         libc_feholdexceptl.
75111
75112 2011-10-18  Andreas Schwab  <schwab@redhat.com>
75113
75114         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
75115         (__feraiseexcept_renamed): Add __NTH.
75116         (feraiseexcept): Add __NTH.  Rename local variables to fix
75117         namespace violations.
75118
75119 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
75120
75121         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
75122
75123         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
75124
75125         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
75126         recently added interfaces.
75127         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
75128
75129         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
75130         about macro parameter expansion.
75131
75132         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
75133         __NO_MATH_INLINES is defined.  Cleanups.
75134
75135         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
75136         and __floorf is target has SSE4.1.
75137         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
75138         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
75139         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
75140         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
75141
75142         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
75143         name.
75144         (floorf): Likewise.
75145
75146         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
75147
75148 2011-10-17  Andreas Schwab  <schwab@redhat.com>
75149
75150         * misc/sys/cdefs.h: Fix last change.
75151
75152         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
75153         database lookup.
75154
75155 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
75156
75157         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
75158
75159         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
75160         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
75161         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
75162         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
75163         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
75164         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
75165         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
75166         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
75167         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
75168         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
75169         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
75170         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
75171         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
75172         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
75173         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
75174         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
75175         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
75176         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
75177         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
75178         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
75179         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
75180         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
75181
75182         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
75183         ceil, ceilf, floor, floorf.
75184
75185         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
75186         Perform IRELATIVE relocations last.
75187
75188         * elf/do-rel.h: Add another parameter nrelative, replacing the
75189         local variable with the same name.  Change name of the function
75190         to end in Rel or Rela (uppercase).
75191         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
75192         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
75193         elf_dynamic_do_##reloc function.
75194
75195 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
75196
75197         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
75198         is sufficient, at least on modern CPUs.
75199
75200         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
75201
75202         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
75203         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
75204
75205         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
75206         __expl_finite.
75207         * math/bits/math-finite.h: Add entries for exp.
75208         * math/e_expl.c: Add __*_finite alias.
75209         * sysdeps/i386/fpu/e_exp.S: Likewise.
75210         * sysdeps/i386/fpu/e_expf.S: Likewise.
75211         * sysdeps/i386/fpu/e_expl.c: Likewise.
75212         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
75213         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
75214         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
75215         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
75216         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
75217         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
75218         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
75219
75220         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
75221         is sufficient, at least on modern CPUs.
75222
75223         * ctype/ctype-info.c (__ctype_init): Define.
75224         * include/ctype.h (__ctype_init): Declare.
75225         (__ctype_b_loc): The variable is always initialized.
75226         (__ctype_toupper_loc): Likewise.
75227         (__ctype_tolower_loc): Likewise.
75228         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
75229         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
75230
75231 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
75232
75233         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
75234
75235         * configure.in: Also look in $cxxmachine/include for C++ system
75236         headers.
75237
75238 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
75239
75240         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
75241         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
75242         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
75243         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
75244         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
75245         (USE_AS_WMEMCMP): New macro.
75246         Fixing indents.
75247         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
75248         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
75249         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
75250         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
75251         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
75252         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
75253         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
75254         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
75255         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
75256         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
75257         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
75258         (USE_AS_WMEMCMP): New macro.
75259         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
75260         * sysdeps/string/test-memcmp.c: Update.
75261         Fix simple_wmemcmp.
75262         Add new tests.
75263         * wcsmbs/wmemcmp.c: Update.
75264         (WMEMCMP): New macro.
75265         Fix overflow bug.
75266
75267 2011-10-12  Andreas Jaeger  <aj@suse.de>
75268
75269         [BZ #13268]
75270         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
75271
75272 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
75273
75274         * libio/iofwide.c (do_length): Avoid warning.
75275
75276         * ctype/ctype.h (__isctype_f): Add missing __THROW.
75277
75278 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
75279
75280         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
75281
75282         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
75283         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
75284         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
75285         * sysdeps/i386/i686/fpu/e_log.S: New file.
75286         * sysdeps/i386/i686/fpu/e_logf.S: New file.
75287         * sysdeps/i386/i686/fpu/e_logl.S: New file.
75288
75289         * ctype/ctype.h: Add support for inlined isXXX functions when
75290         compiling C++ code.
75291
75292 2011-10-14  Andreas Schwab  <schwab@redhat.com>
75293
75294         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75295
75296         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
75297
75298 2011-10-13  Roland McGrath  <roland@hack.frob.com>
75299
75300         [BZ #13291]
75301         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
75302
75303 2011-10-13  Andreas Schwab  <schwab@redhat.com>
75304
75305         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
75306         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
75307         feraiseexcept.
75308
75309         * sysdeps/x86_64/memrchr.S: Check for zero size.
75310
75311         * string/stratcliff.c: Add memrchr tests.
75312
75313 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
75314
75315         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
75316         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
75317         rawmemchr-sse2 rawmemchr-sse2-bsf.
75318         * sysdeps/i386/i686/multiarch/memchr.S: New file.
75319         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
75320         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
75321         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
75322         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
75323         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
75324         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
75325         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
75326         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
75327         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
75328         * string/memrchr.c (MEMRCHR): New macro.
75329
75330 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
75331
75332         Add integration with gcc's -ffinite-math-only and optimize wrapper
75333         functions in libm.
75334         * Versions.def: Define GLIBC_2.15 version for libm.
75335         * math/Makefile (headers): Add bits/math-finite.h.
75336         * math/bits/math-finite.h: New file.
75337         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
75338         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
75339         * math/e_acoshl.c: Add __*_finite alias.
75340         * math/e_acosl.c: Likewise.
75341         * math/e_asinl.c: Likewise.
75342         * math/e_atan2l.c: Likewise.
75343         * math/e_atanhl.c: Likewise.
75344         * math/e_coshl.c: Likewise.
75345         * math/e_exp10.c: Likewise.
75346         * math/e_exp10f.c: Likewise.
75347         * math/e_exp10l.c: Likewise.
75348         * math/e_exp2l.c: Likewise.
75349         * math/e_fmodl.c: Likewise.
75350         * math/e_gammal_r.c: Likewise.
75351         * math/e_hypotl.c: Likewise.
75352         * math/e_j0l.c: Likewise.
75353         * math/e_j1l.c: Likewise.
75354         * math/e_jnl.c: Likewise.
75355         * math/e_lgammal_r.c: Likewise.
75356         * math/e_log10l.c: Likewise.
75357         * math/e_log2l.c: Likewise.
75358         * math/e_logl.c: Likewise.
75359         * math/e_powl.c: Likewise.
75360         * math/e_sinhl.c: Likewise.
75361         * math/e_sqrtl.c: Likewise.
75362         * math/e_scalb.c: Completely rewritten and optimized.
75363         * math/e_scalbf.c: Likewise.
75364         * math/e_scalbl.c: Likewise.
75365         * math/w_acos.c: Likewise.
75366         * math/w_acosf.c: Likewise.
75367         * math/w_acosl.c: Likewise.
75368         * math/w_acosh.c: Likewise.
75369         * math/w_acoshf.c: Likewise.
75370         * math/w_acoshl.c: Likewise.
75371         * math/w_asin.c: Likewise.
75372         * math/w_asinf.c: Likewise.
75373         * math/w_asinl.c: Likewise.
75374         * math/w_atan2.c: Likewise.
75375         * math/w_atan2f.c: Likewise.
75376         * math/w_atan2l.c: Likewise.
75377         * math/w_atanh.c: Likewise.
75378         * math/w_atanhf.c: Likewise.
75379         * math/w_atanhl.c: Likewise.
75380         * math/w_exp10.c: Likewise.
75381         * math/w_exp10f.c: Likewise.
75382         * math/w_exp10l.c: Likewise.
75383         * math/w_fmod.c: Likewise.
75384         * math/w_fmodf.c: Likewise.
75385         * math/w_fmodl.c: Likewise.
75386         * math/w_j0.c: Likewise.
75387         * math/w_j0f.c: Likewise.
75388         * math/w_j0l.c: Likewise.
75389         * math/w_j1.c: Likewise.
75390         * math/w_j1f.c: Likewise.
75391         * math/w_j1l.c: Likewise.
75392         * math/w_jn.c: Likewise.
75393         * math/w_jnf.c: Likewise.
75394         * math/w_log.c: Likewise.
75395         * math/w_logf.c: Likewise.
75396         * math/w_logl.c: Likewise.
75397         * math/w_log10.c: Likewise.
75398         * math/w_log10f.c: Likewise.
75399         * math/w_log10l.c: Likewise.
75400         * math/w_log2.c: Likewise.
75401         * math/w_log2f.c: Likewise.
75402         * math/w_log2l.c: Likewise.
75403         * math/w_pow.c: Likewise.
75404         * math/w_powf.c: Likewise.
75405         * math/w_powl.c: Likewise.
75406         * math/w_remainder.c: Likewise.
75407         * math/w_remainderf.c: Likewise.
75408         * math/w_remainderl.c: Likewise.
75409         * math/w_scalb.c: Likewise.
75410         * math/w_scalbf.c: Likewise.
75411         * math/w_scalbl.c: Likewise.
75412         * math/w_sqrt.c: Likewise.
75413         * math/w_sqrtf.c: Likewise.
75414         * math/w_sqrtl.c: Likewise.
75415         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
75416         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
75417         used.
75418         * math/math_private.h: Declare __kernel_standard_f.
75419         * math/w_cosh.c: Remove cruft and optimize a bit.
75420         * math/w_coshf.c: Likewise.
75421         * math/w_coshl.c: Likewise.
75422         * math/w_exp2.c: Likewise.
75423         * math/w_exp2f.c: Likewise.
75424         * math/w_exp2l.c: Likewise.
75425         * math/w_hypot.c: Likewise.
75426         * math/w_hypotf.c: Likewise.
75427         * math/w_hypotl.c: Likewise.
75428         * math/w_lgamma.c: Likewise.
75429         * math/w_lgamma_r.c: Likewise.
75430         * math/w_lgammaf.c: Likewise.
75431         * math/w_lgammaf_r.c: Likewise.
75432         * math/w_lgammal.c: Likewise.
75433         * math/w_lgammal_r.c: Likewise.
75434         * math/w_sinh.c: Likewise.
75435         * math/w_sinhf.c: Likewise.
75436         * math/w_sinhl.c: Likewise.
75437         * math/w_tgamma.c: Likewise.
75438         * math/w_tgammaf.c: Likewise.
75439         * math/w_tgammal.c: Likewise.
75440         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
75441         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
75442         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
75443         Minor optimizations.  Pretty printing.  Remove cruft.
75444         * sysdeps/i386/fpu/e_acosf.S: Likewise.
75445         * sysdeps/i386/fpu/e_acosh.S: Likewise.
75446         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
75447         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
75448         * sysdeps/i386/fpu/e_acosl.c: Likewise.
75449         * sysdeps/i386/fpu/e_asin.S: Likewise.
75450         * sysdeps/i386/fpu/e_asinf.S: Likewise.
75451         * sysdeps/i386/fpu/e_atan2.S: Likewise.
75452         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
75453         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
75454         * sysdeps/i386/fpu/e_atanh.S: Likewise.
75455         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
75456         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
75457         * sysdeps/i386/fpu/e_exp10.S: Likewise.
75458         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
75459         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
75460         * sysdeps/i386/fpu/e_exp2.S: Likewise.
75461         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
75462         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
75463         * sysdeps/i386/fpu/e_fmod.S: Likewise.
75464         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
75465         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
75466         * sysdeps/i386/fpu/e_hypot.S: Likewise.
75467         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
75468         * sysdeps/i386/fpu/e_log.S: Likewise.
75469         * sysdeps/i386/fpu/e_log10.S: Likewise.
75470         * sysdeps/i386/fpu/e_log10f.S: Likewise.
75471         * sysdeps/i386/fpu/e_log10l.S: Likewise.
75472         * sysdeps/i386/fpu/e_log2.S: Likewise.
75473         * sysdeps/i386/fpu/e_log2f.S: Likewise.
75474         * sysdeps/i386/fpu/e_log2l.S: Likewise.
75475         * sysdeps/i386/fpu/e_logf.S: Likewise.
75476         * sysdeps/i386/fpu/e_logl.S: Likewise.
75477         * sysdeps/i386/fpu/e_pow.S: Likewise.
75478         * sysdeps/i386/fpu/e_powf.S: Likewise.
75479         * sysdeps/i386/fpu/e_powl.S: Likewise.
75480         * sysdeps/i386/fpu/e_remainder.S: Likewise.
75481         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
75482         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
75483         * sysdeps/i386/fpu/e_scalb.S: Likewise.
75484         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
75485         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
75486         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
75487         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
75488         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
75489         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
75490         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
75491         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
75492         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
75493         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
75494         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
75495         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
75496         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
75497         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
75498         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
75499         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
75500         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
75501         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
75502         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
75503         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
75504         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
75505         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
75506         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
75507         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
75508         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
75509         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
75510         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
75511         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
75512         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
75513         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
75514         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
75515         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
75516         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
75517         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
75518         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
75519         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
75520         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
75521         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
75522         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
75523         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
75524         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
75525         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
75526         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
75527         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
75528         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
75529         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
75530         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
75531         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
75532         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
75533         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
75534         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
75535         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
75536         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
75537         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
75538         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
75539         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
75540         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
75541         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
75542         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
75543         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
75544         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
75545         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
75546         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
75547         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
75548         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
75549         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
75550         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
75551         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
75552         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
75553         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
75554         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
75555         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
75556         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
75557         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
75558         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
75559         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
75560         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
75561         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
75562         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
75563         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
75564         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
75565         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
75566         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
75567         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
75568         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
75569         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
75570         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
75571         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
75572         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
75573         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
75574         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
75575         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
75576         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
75577         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
75578         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
75579         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
75580         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
75581         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
75582         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
75583         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
75584         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
75585         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
75586         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
75587         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
75588         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
75589         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
75590         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
75591         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
75592         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
75593         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
75594         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
75595         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
75596         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
75597         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
75598         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
75599         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
75600         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
75601         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
75602         (__isnanf): Likewise.
75603         (__isinf_ns): Likewise.
75604         (__isinf_nsf): Likewise.
75605         (__finite): Likewise.
75606         (__finitef): Likewise.
75607         (__ieee754_sqrt): Define as macro.
75608         (__ieee754_sqrtf): Define as macro.
75609         (__ieee754_sqrtl): Define as macro.
75610         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
75611         inlined copy.
75612         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
75613         __FINITE_MATH_ONLY__ consistent.
75614         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
75615
75616 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
75617
75618         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
75619         of rawmemchr.
75620
75621         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
75622
75623 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
75624
75625         * po/ja.po: Update from translation team.
75626
75627 2011-10-08  Roland McGrath  <roland@hack.frob.com>
75628
75629         * locale/programs/locarchive.c (prepare_address_space): New function.
75630         (create_archive, enlarge_archive, open_archive): Use it.
75631
75632         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
75633         inside [SHARED], where it is used.
75634
75635         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
75636
75637         * nss/getent.c (netgroup_keys): Remove unused variable.
75638         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
75639
75640 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
75641
75642         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
75643         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
75644         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
75645         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
75646         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
75647         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
75648         * math/Makefile (libm-calls): Add s_isinf_ns.
75649         * math/divtc3.c: Use __isinf_nsl instead of isinf.
75650         * math/multc3.c: Likewise.
75651         * math/s_casin.c: Likewise.
75652         * math/s_casinf.c: Likewise.
75653         * math/s_casinl.c: Likewise.
75654         * math/s_ccos.c: Likewise.
75655         * math/s_ccosf.c: Likewise.
75656         * math/s_ccosl.c: Likewise.
75657         * math/s_ctan.c: Likewise.
75658         * math/s_ctanf.c: Likewise.
75659         * math/s_ctanh.c: Likewise.
75660         * math/s_ctanhf.c: Likewise.
75661         * math/s_ctanhl.c: Likewise.
75662         * math/s_ctanl.c: Likewise.
75663         * math/w_fmod.c: Likewise.
75664         * math/w_fmodf.c: Likewise.
75665         * math/w_fmodl.c: Likewise.
75666         * math/w_remainder.c: Likewise.
75667         * math/w_remainderf.c: Likewise.
75668         * math/w_remainderl.c: Likewise.
75669         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
75670         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
75671         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
75672         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
75673         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
75674         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
75675         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
75676         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
75677
75678         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
75679         of the number.
75680         * stdio-common/printf_fphex.c: Likewise.
75681         * stdio-common/printf_size.c: Likewise.
75682
75683         * math/e_exp10.c: Include math_private.h using <...> not "...".
75684         * math/e_exp10f.c: Likewise.
75685         * math/e_exp10l.c: Likewise.
75686         * math/e_exp2l.c: Likewise.
75687         * math/e_j0l.c: Likewise.
75688         * math/e_j1l.c: Likewise.
75689         * math/e_jnl.c: Likewise.
75690         * math/e_lgammal_r.c: Likewise.
75691         * math/e_rem_pio2l.c: Likewise.
75692         * math/e_scalb.c: Likewise.
75693         * math/e_scalbf.c: Likewise.
75694         * math/e_scalbl.c: Likewise.
75695         * math/k_cosl.c: Likewise.
75696         * math/k_sinl.c: Likewise.
75697         * math/k_tanl.c: Likewise.
75698         * math/s_cacoshf.c: Likewise.
75699         * math/s_catan.c: Likewise.
75700         * math/s_catanf.c: Likewise.
75701         * math/s_catanh.c: Likewise.
75702         * math/s_catanhf.c: Likewise.
75703         * math/s_catanhl.c: Likewise.
75704         * math/s_catanl.c: Likewise.
75705         * math/s_ccosh.c: Likewise.
75706         * math/s_ccoshf.c: Likewise.
75707         * math/s_ccoshl.c: Likewise.
75708         * math/s_cexp.c: Likewise.
75709         * math/s_cexpf.c: Likewise.
75710         * math/s_cexpl.c: Likewise.
75711         * math/s_clog.c: Likewise.
75712         * math/s_clog10.c: Likewise.
75713         * math/s_clog10f.c: Likewise.
75714         * math/s_clog10l.c: Likewise.
75715         * math/s_clogf.c: Likewise.
75716         * math/s_clogl.c: Likewise.
75717         * math/s_csin.c: Likewise.
75718         * math/s_csinf.c: Likewise.
75719         * math/s_csinh.c: Likewise.
75720         * math/s_csinhf.c: Likewise.
75721         * math/s_csinhl.c: Likewise.
75722         * math/s_csinl.c: Likewise.
75723         * math/s_csqrt.c: Likewise.
75724         * math/s_csqrtf.c: Likewise.
75725         * math/s_csqrtl.c: Likewise.
75726         * math/s_ctan.c: Likewise.
75727         * math/s_ctanf.c: Likewise.
75728         * math/s_ctanh.c: Likewise.
75729         * math/s_ctanhf.c: Likewise.
75730         * math/s_ctanhl.c: Likewise.
75731         * math/s_ctanl.c: Likewise.
75732         * math/s_ldexp.c: Likewise.
75733         * math/s_ldexpf.c: Likewise.
75734         * math/s_ldexpl.c: Likewise.
75735         * math/s_significand.c: Likewise.
75736         * math/s_significandf.c: Likewise.
75737         * math/s_significandl.c: Likewise.
75738         * math/w_acos.c: Likewise.
75739         * math/w_acosf.c: Likewise.
75740         * math/w_acosh.c: Likewise.
75741         * math/w_acoshf.c: Likewise.
75742         * math/w_acoshl.c: Likewise.
75743         * math/w_acosl.c: Likewise.
75744         * math/w_asin.c: Likewise.
75745         * math/w_asinf.c: Likewise.
75746         * math/w_asinl.c: Likewise.
75747         * math/w_atan2.c: Likewise.
75748         * math/w_atan2f.c: Likewise.
75749         * math/w_atan2l.c: Likewise.
75750         * math/w_atanh.c: Likewise.
75751         * math/w_atanhf.c: Likewise.
75752         * math/w_atanhl.c: Likewise.
75753         * math/w_cosh.c: Likewise.
75754         * math/w_coshf.c: Likewise.
75755         * math/w_coshl.c: Likewise.
75756         * math/w_dremf.c: Likewise.
75757         * math/w_exp10.c: Likewise.
75758         * math/w_exp10f.c: Likewise.
75759         * math/w_exp10l.c: Likewise.
75760         * math/w_exp2.c: Likewise.
75761         * math/w_exp2f.c: Likewise.
75762         * math/w_fmod.c: Likewise.
75763         * math/w_fmodf.c: Likewise.
75764         * math/w_fmodl.c: Likewise.
75765         * math/w_hypot.c: Likewise.
75766         * math/w_hypotf.c: Likewise.
75767         * math/w_hypotl.c: Likewise.
75768         * math/w_j0.c: Likewise.
75769         * math/w_j0f.c: Likewise.
75770         * math/w_j0l.c: Likewise.
75771         * math/w_j1.c: Likewise.
75772         * math/w_j1f.c: Likewise.
75773         * math/w_j1l.c: Likewise.
75774         * math/w_jn.c: Likewise.
75775         * math/w_jnf.c: Likewise.
75776         * math/w_jnl.c: Likewise.
75777         * math/w_lgamma.c: Likewise.
75778         * math/w_lgamma_r.c: Likewise.
75779         * math/w_lgammaf.c: Likewise.
75780         * math/w_lgammaf_r.c: Likewise.
75781         * math/w_lgammal.c: Likewise.
75782         * math/w_lgammal_r.c: Likewise.
75783         * math/w_log.c: Likewise.
75784         * math/w_log10.c: Likewise.
75785         * math/w_log10f.c: Likewise.
75786         * math/w_log10l.c: Likewise.
75787         * math/w_log2.c: Likewise.
75788         * math/w_log2f.c: Likewise.
75789         * math/w_log2l.c: Likewise.
75790         * math/w_logf.c: Likewise.
75791         * math/w_logl.c: Likewise.
75792         * math/w_pow.c: Likewise.
75793         * math/w_powf.c: Likewise.
75794         * math/w_powl.c: Likewise.
75795         * math/w_remainder.c: Likewise.
75796         * math/w_remainderf.c: Likewise.
75797         * math/w_remainderl.c: Likewise.
75798         * math/w_scalb.c: Likewise.
75799         * math/w_scalbf.c: Likewise.
75800         * math/w_scalbl.c: Likewise.
75801         * math/w_sinh.c: Likewise.
75802         * math/w_sinhf.c: Likewise.
75803         * math/w_sinhl.c: Likewise.
75804         * math/w_sqrt.c: Likewise.
75805         * math/w_sqrtf.c: Likewise.
75806         * math/w_sqrtl.c: Likewise.
75807         * math/w_tgamma.c: Likewise.
75808         * math/w_tgammaf.c: Likewise.
75809         * math/w_tgammal.c: Likewise.
75810
75811         * po/ja.po: Update from translation team.
75812
75813 2011-09-29  Andreas Jaeger  <aj@suse.de>
75814
75815         [BZ #13179]
75816         * sunrpc/netname.c (netname2host): Fix logic.
75817
75818         [BZ #6779]
75819         [BZ #6783]
75820         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
75821         correctly.
75822         * math/w_remainder.c (__remainder): Likewise.
75823         * math/w_remainderf.c (__remainderf): Likewise.
75824         * math/libm-test.inc (remainder_test): Add test cases.
75825
75826 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75827
75828         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
75829         sdiv_qrnnd.
75830
75831 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
75832
75833         * string/test-memcmp.c: Avoid unncessary #defines.
75834         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
75835
75836 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
75837
75838         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
75839         Use new sse2 version for core i3 - i7 as it's faster
75840         than sse42 version.
75841         (bit_Prefer_PMINUB_for_stringop): New.
75842         * sysdeps/x86_64/rawmemchr.S: Update.
75843         Replace with faster SSE2 version.
75844         * sysdeps/x86_64/memrchr.S: New file.
75845         * sysdeps/x86_64/memchr.S: Update.
75846         Replace with faster SSE2 version.
75847
75848 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
75849
75850         * elf/dl-load.c (lose): Add cast to avoid warning.
75851
75852 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
75853
75854         * po/ca.po: Update from translation team.
75855
75856         * inet/getnetgrent_r.c: Hook up nscd.
75857         * nscd/Makefile (routines): Add nscd_netgroup.
75858         (nscd-modules): Add netgroupcache.
75859         (CFLAGS-netgroupcache.c): Define.
75860         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
75861         (cache_search): Add const to second parameter.
75862         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
75863         INNETGR.
75864         (dbs): Add netgrdb entry.
75865         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
75866         (verify_persistent_db): Handle netgrdb.
75867         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
75868         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
75869         GETFDNETGR.
75870         (netgroup_response_header): Define.
75871         (innetgroup_response_header): Define.
75872         (datahead): Add netgroup_response_header and innetgroup_response_header
75873         elements.
75874         * nscd/nscd.conf: Add entries for netgroup cache.
75875         * nscd/nscd.h (dbtype): Add netgrdb.
75876         (_PATH_NSCD_NETGROUP_DB): Define.
75877         (netgroup_iov_disabled): Declare.
75878         (xmalloc, xcalloc, xrealloc): Move declarations here.
75879         (cache_search): Adjust prototype.
75880         Add netgroup-related prototypes.
75881         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
75882         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
75883         (__nscd_innetgr): Declare.
75884         * nscd/selinux.c (perms): Use access_vector_t as element type and
75885         add netgroup-related initializers.
75886         * nscd/netgroupcache.c: New file.
75887         * nscd/nscd_netgroup.c: New file.
75888         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
75889         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
75890         For four parameters use innetgr.
75891         * nss/nss_files/files-init.c: Add definition and callback for netgr.
75892         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
75893         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
75894         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
75895
75896         * nscd/connections.c (register_traced_file): Don't register file
75897         for disabled databases.
75898
75899 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
75900
75901         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
75902
75903         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
75904         from tree and freeing node.
75905
75906 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
75907
75908         * nss/nsswitch.c (__nss_database_lookup): Handle
75909         nss_parse_service_list out of memory case.
75910
75911 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
75912
75913         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
75914         out of memory case.
75915
75916 2011-10-04  Andreas Schwab  <schwab@redhat.com>
75917
75918         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
75919         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
75920         pass it down.
75921         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
75922         elf_machine_rela, elf_machine_lazy_rel.
75923         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
75924         (ELF_DYNAMIC_DO_REL): Likewise.
75925         (ELF_DYNAMIC_DO_RELA): Likewise.
75926         (ELF_DYNAMIC_RELOCATE): Likewise.
75927         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
75928         to ELF_DYNAMIC_DO_REL.
75929         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
75930         (dl_main): In trace mode always set __RTLD_NOIFUNC.
75931         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
75932         elf_machine_rela.
75933         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
75934         skip_ifunc, don't call ifunc function if non-zero.
75935         (elf_machine_rela): Likewise.
75936         (elf_machine_lazy_rel): Likewise.
75937         (elf_machine_lazy_rela): Likewise.
75938         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
75939         (elf_machine_lazy_rel): Likewise.
75940         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
75941         Likewise.
75942         (elf_machine_lazy_rel): Likewise.
75943         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75944         Likewise.
75945         (elf_machine_lazy_rel): Likewise.
75946         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
75947         (elf_machine_lazy_rel): Likewise.
75948         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
75949         (elf_machine_lazy_rel): Likewise.
75950         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
75951         (elf_machine_lazy_rel): Likewise.
75952         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
75953         (elf_machine_lazy_rel): Likewise.
75954         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
75955         (elf_machine_lazy_rel): Likewise.
75956         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
75957         (elf_machine_lazy_rel): Likewise.
75958
75959 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
75960
75961         * nss/nss_files/files-init.c (_nss_files_init): Use static
75962         initialization for all the *_traced_file variables.
75963
75964 2011-09-28  Andreas Schwab  <schwab@redhat.com>
75965
75966         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75967
75968 2011-09-27  Roland McGrath  <roland@hack.frob.com>
75969
75970         [BZ #13226]
75971         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
75972
75973 2011-09-27  Andreas Schwab  <schwab@redhat.com>
75974
75975         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
75976         Reread the line before reparsing it.
75977
75978 2011-09-26  Andreas Schwab  <schwab@redhat.com>
75979
75980         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
75981
75982 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
75983             Maxim Kuvyrkov  <maxim@codesourcery.com>
75984             Joseph Myers  <joseph@codesourcery.com>
75985
75986         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
75987         if needed for __stack_chk_guard.
75988
75989 2011-09-19  Roland McGrath  <roland@hack.frob.com>
75990
75991         * sysdeps/posix/spawni.c (script_execute): Always define it.
75992         It will be optimized away if unused.
75993         (maybe_script_execute): New function.
75994         (__spawni): Call it.
75995
75996         * Makerules: Don't include tls.make.
75997         (config-tls): Always set to thread.
75998         * tls.make.c: File removed.
75999
76000 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
76001
76002         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
76003         * config.make.in (CPPFLAGS-config): New substituted variable.
76004
76005 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
76006
76007         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
76008
76009         [BZ #13192]
76010         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
76011         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
76012
76013 2011-09-15  Roland McGrath  <roland@hack.frob.com>
76014
76015         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
76016         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
76017         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76018         (CALL_FAIL): Likewise.
76019         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
76020         (CALL_FAIL): Macro removed.
76021         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
76022
76023 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
76024
76025         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
76026         for __FINITE_MATH_ONLY__ == 1.
76027
76028 2011-09-15  Andreas Schwab  <schwab@redhat.com>
76029
76030         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
76031         __ieee754_sqrt instead of sqrt.
76032         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
76033         __ieee754_sqrtf instead of sqrtf.
76034         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
76035         __floorf instead of floorf.
76036         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
76037         __floorf, __truncf instead of floorf, truncf.
76038
76039 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
76040
76041         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
76042
76043         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
76044         __extern_always_inline.
76045         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
76046         32-bit.
76047
76048 2011-09-14  Andreas Schwab  <schwab@redhat.com>
76049
76050         * elf/rtld.c (dl_main): Also relocate in dependency order when
76051         doing symbol dependency testing.
76052
76053 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
76054
76055         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76056         Always define `refsym'.
76057
76058 2011-09-13  Andreas Schwab  <schwab@redhat.com>
76059
76060         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
76061         (__FD_ELT): Renamed from __FDELT.
76062         * misc/bits/select2.h (__FD_ELT): Likewise.
76063         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
76064         __FD_MASK instead of __FDELT, __FDMASK.
76065         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
76066         Likewise.
76067         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
76068         Likewise.
76069
76070         * elf/Makefile (gen-ldd): Fix pattern.
76071
76072         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
76073         (init_tls): Likewise.
76074
76075 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
76076
76077         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
76078
76079 2011-09-12  Andreas Schwab  <schwab@redhat.com>
76080
76081         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
76082         `struct cmsghdr *' instead of `void *'.
76083         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
76084         Likewise.
76085
76086 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
76087
76088         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
76089         if non-absolute.
76090         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
76091         ldd_rewrite_script.
76092
76093 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
76094
76095         * configure.in: Remove --with-tls option.
76096         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
76097         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
76098         out in case it is missing.
76099         * sysdeps/ia64/elf/configure.in: Likewise.
76100         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
76101         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
76102         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
76103         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
76104         * sysdeps/sh/elf/configure.in: Likewise.
76105         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
76106         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
76107         * sysdeps/x86_64/elf/configure.in: Likewise.
76108         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
76109         * sysdeps/mach/hurd/tls.h: Likewise.
76110
76111         [BZ #13067]
76112         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
76113
76114         [BZ #13090]
76115         * configure.in: Fix use of AC_INIT.
76116
76117         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
76118
76119 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
76120
76121         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
76122         __set_errno.
76123         * malloc/hooks.c: Likewise.
76124
76125         [BZ #11929]
76126         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
76127         variables statically.
76128         (narenas): Initialize.
76129         (list_lock): Initialize.
76130         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
76131         initializtion of main_arena and list_lock.  Small cleanups.
76132         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
76133         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
76134         Add initializers to main_arena and mp_.
76135         (malloc_state): Remove pagesize member.  Change all users to use
76136         GLRO(dl_pagesize).
76137
76138         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
76139         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
76140         is always initialized.
76141
76142         * malloc/malloc.c: Removed unused configurations and dead code.
76143         * malloc/arena.c: Likewise.
76144         * malloc/hooks.c: Likewise.
76145         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
76146
76147         * include/tls.h: Removed.  USE___THREAD must always be defined.
76148         * bits/libc-tsd.h: Don't handle !USE___THREAD.
76149         * elf/dl-libc.c: Likewise.
76150         * elf/dl-tsd.c: Likewise.
76151         * include/errno.h: Likewise.
76152         * include/netdb.h: Likewise.
76153         * include/resolv.h: Likewise.
76154         * inet/herrno-loc.c: Likewise.
76155         * inet/herrno.c: Likewise.
76156         * malloc/arena.c: Likewise.
76157         * malloc/hooks.c: Likewise.
76158         * malloc/malloc.c: Likewise.
76159         * resolv/res-state.c: Likewise.
76160         * resolv/res_libc.c: Likewise.
76161         * sysdeps/i386/dl-machine.h: Likewise.
76162         * sysdeps/ia64/dl-machine.h: Likewise.
76163         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
76164         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
76165         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
76166         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
76167         * sysdeps/sh/dl-machine.h: Likewise.
76168         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
76169         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
76170         * sysdeps/unix/i386/sysdep.S: Likewise.
76171         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
76172         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
76173         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
76174         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
76175         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
76176         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
76177         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
76178         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
76179         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
76180         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
76181         * sysdeps/unix/x86_64/sysdep.S: Likewise.
76182         * sysdeps/x86_64/dl-machine.h: Likewise.
76183         * tls.make.c: Likewise.
76184
76185         * configure.in: Remove --with-__thread option.  Make tests for
76186         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
76187         tls_model attribute fail if no support is available.  Remove
76188         USE_IN_LIBIO.
76189         * Makeconfig: Adjust for dropped configure option.  All features are
76190         now mandatory.
76191         * Makerules: Likewise.
76192         * Versions.def: Likewise.
76193         * argp/argp-fmtstream.c: Likewise.
76194         * argp/argp-fmtstream.h: Likewise.
76195         * argp/argp-help.c: Likewise.
76196         * assert/assert.c: Likewise.
76197         * config.h.in: Likewise.
76198         * config.make.in: Likewise.
76199         * configure: Likewise.
76200         * configure.in: Likewise.
76201         * csu/Versions: Likewise.
76202         * csu/init.c: Likewise.
76203         * elf/tst-audit2.c: Likewise.
76204         * elf/tst-tls10.c: Likewise.
76205         * elf/tst-tls10.h: Likewise.
76206         * elf/tst-tls11.c: Likewise.
76207         * elf/tst-tls12.c: Likewise.
76208         * elf/tst-tls14.c: Likewise.
76209         * elf/tst-tlsmod11.c: Likewise.
76210         * elf/tst-tlsmod12.c: Likewise.
76211         * elf/tst-tlsmod13.c: Likewise.
76212         * elf/tst-tlsmod13a.c: Likewise.
76213         * elf/tst-tlsmod14a.c: Likewise.
76214         * elf/tst-tlsmod15b.c: Likewise.
76215         * elf/tst-tlsmod16a.c: Likewise.
76216         * elf/tst-tlsmod16b.c: Likewise.
76217         * elf/tst-tlsmod7.c: Likewise.
76218         * elf/tst-tlsmod8.c: Likewise.
76219         * elf/tst-tlsmod9.c: Likewise.
76220         * gmon/gmon.c: Likewise.
76221         * grp/fgetgrent_r.c: Likewise.
76222         * grp/putgrent.c: Likewise.
76223         * hurd/fopenport.c: Likewise.
76224         * include/libc-symbols.h: Likewise.
76225         * include/tls.h: Likewise.
76226         * intl/gettextP.h: Likewise.
76227         * intl/loadinfo.h: Likewise.
76228         * locale/global-locale.c: Likewise.
76229         * locale/localeinfo.h: Likewise.
76230         * mach/devstream.c: Likewise.
76231         * malloc/arena.c: Likewise.
76232         * malloc/set-freeres.c: Likewise.
76233         * misc/err.c: Likewise.
76234         * misc/getttyent.c: Likewise.
76235         * misc/mntent_r.c: Likewise.
76236         * posix/getopt.c: Likewise.
76237         * posix/wordexp.c: Likewise.
76238         * pwd/fgetpwent_r.c: Likewise.
76239         * resolv/Versions: Likewise.
76240         * resolv/res_hconf.c: Likewise.
76241         * shadow/fgetspent_r.c: Likewise.
76242         * shadow/putspent.c: Likewise.
76243         * stdio-common/printf_fphex.c: Likewise.
76244         * stdio-common/tmpfile.c: Likewise.
76245         * stdlib/abort.c: Likewise.
76246         * stdlib/fmtmsg.c: Likewise.
76247         * sunrpc/auth_unix.c: Likewise.
76248         * sunrpc/clnt_perr.c: Likewise.
76249         * sunrpc/clnt_tcp.c: Likewise.
76250         * sunrpc/clnt_udp.c: Likewise.
76251         * sunrpc/clnt_unix.c: Likewise.
76252         * sunrpc/openchild.c: Likewise.
76253         * sunrpc/svc_simple.c: Likewise.
76254         * sunrpc/svc_tcp.c: Likewise.
76255         * sunrpc/svc_udp.c: Likewise.
76256         * sunrpc/svc_unix.c: Likewise.
76257         * sunrpc/xdr.c: Likewise.
76258         * sunrpc/xdr_array.c: Likewise.
76259         * sunrpc/xdr_rec.c: Likewise.
76260         * sunrpc/xdr_ref.c: Likewise.
76261         * sunrpc/xdr_stdio.c: Likewise.
76262
76263 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
76264
76265         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
76266
76267 2011-07-03  Andreas Jaeger  <aj@suse.de>
76268
76269         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
76270         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
76271         regenerate with gen-libm-tests.pl.
76272
76273 2010-05-12  Petr Baudis  <pasky@suse.cz>
76274
76275         [BZ #11589]
76276         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
76277         around j0() zero points by switching to j1().
76278         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
76279         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
76280         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
76281         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
76282
76283 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
76284
76285         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
76286         instead of 0.
76287         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
76288         instead of 0.
76289         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
76290         Patch in part by Pavel Roskin <proski@gnu.org>.
76291
76292         [BZ #13138]
76293         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
76294         realloc.
76295         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
76296         Free memory block if necessary.
76297
76298         [BZ #12847]
76299         * libio/genops.c (INTDEF): For string streams the _lock pointer can
76300         be NULL.  Don't lock in this case.
76301
76302 2011-09-09  Roland McGrath  <roland@hack.frob.com>
76303
76304         * elf/elf.h (ELFOSABI_GNU): New macro.
76305         (ELFOSABI_LINUX): Define to that.
76306
76307 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
76308
76309         * string/strncat.c (strncat): Undef the symbol in case it has been
76310         defined in bits/string.h.
76311
76312 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
76313
76314         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
76315
76316         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
76317         link map.
76318
76319 2011-08-17  Andreas Jaeger  <aj@suse.de>
76320
76321         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
76322
76323 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
76324             Ian Lance Taylor  <iant@google.com>
76325
76326         * math/libm-test.inc (lround_test): New testcase.
76327         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
76328
76329 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
76330
76331         * Makefile: Remove support for automatic cvs check-ins.
76332         * Makerules: Likewise.
76333         * config.make.in: Likewise.
76334         * configure.in: Likewise.
76335         * intl/Makefile: Likewise.
76336         * locale/Makefile: Likewise.
76337         * po/Makefile: Likewise.
76338         * posix/Makefile: Likewise.
76339         * sysdeps/gnu/Makefile: Likewise.
76340         * sysdeps/mach/hurd/Makefile: Likewise.
76341         * sysdeps/sparc/sparc32/Makefile: Likewise.
76342
76343         [BZ #13118]
76344         * posix/Makefile (bug-regex32-ENV): Define.
76345         Patch by John Stanley <jpsinthemix@verizon.net>.
76346
76347         * misc/Makefile (headers): Add bits/select2.h.
76348         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
76349         * misc/bits/select2.h: New file.
76350         * include/bits/select2.h: New file.
76351         * debug/Makefile (routines): Add fdelt_chk.
76352         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
76353         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
76354         FD_ISSET.
76355         * debug/fdelt_chk.c: New file.
76356
76357         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
76358         * wcsmbs/test-wmemcmp.c: Likewise.
76359         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
76360         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
76361
76362 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76363
76364         * string/Makefile (strop-tests): Add memcmp.
76365         * string/test-wmemcmp.c: New file.
76366         * string/test-memcmp.c: Add wmemcmp support.
76367
76368 2011-09-08  Roland McGrath  <roland@hack.frob.com>
76369
76370         [BZ #13153]
76371         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
76372         2011-07-19 change.
76373
76374         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
76375         garbage value in a __mach_port_mod_refs call in the cases of the
76376         task-self and thread-self ports.
76377
76378 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76379
76380         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
76381
76382 2011-09-08  Andreas Schwab  <schwab@redhat.com>
76383
76384         * elf/dl-load.c (lose): Check for non-null L.
76385
76386 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
76387
76388         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
76389
76390         * elf/dl-libc.c (dlerror_run): Pass back error code from
76391         dl_catch_error.
76392
76393         [BZ #13123]
76394         * elf/dl-load.c (lose): Free l_origin if it is valid.
76395
76396         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
76397         names.
76398         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
76399         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
76400         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
76401         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
76402         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
76403         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
76404
76405 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76406
76407         * sysdeps/powerpc/fpu/e_hypot.c: New file.
76408         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
76409         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
76410         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
76411         * sysdeps/powerpc/fpu/k_cosf.c: New file.
76412         * sysdeps/powerpc/fpu/k_sinf.c: New file.
76413         * sysdeps/powerpc/fpu/s_cosf.c: New file.
76414         * sysdeps/powerpc/fpu/s_sinf.c: New file.
76415         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
76416         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
76417
76418 2011-08-15  Alan Modra  <amodra@gmail.com>
76419
76420         [BZ #13092]
76421         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
76422         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
76423         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
76424         ppc_mcount to static-only-routines.
76425         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
76426         __mcount_internal.
76427         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
76428         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
76429
76430 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
76431
76432         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
76433         for finite and infinity parameters.
76434
76435 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
76436
76437         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
76438         and add nop instructions for throughput optimization.
76439         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
76440
76441 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
76442
76443         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
76444         aligned copy for power7 with vector-scalar instructions.
76445         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
76446
76447 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
76448
76449         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
76450         AVX check.
76451
76452 2011-09-07  Andreas Schwab  <schwab@redhat.com>
76453
76454         [BZ #13144]
76455         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
76456         last change.
76457
76458 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
76459
76460         * sysdeps/unix/sysv/linux/x86_64/init-first.c
76461         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
76462         syscall wrapper around clock_gettime in __vdso_clock_gettime.
76463         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
76464         clock_gettime.
76465
76466 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
76467
76468         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
76469         Forgot to demangle the pointer.
76470
76471         * sysdeps/i386/sysdep.h: Define atom_text_section.
76472         * sysdeps/x86_64/sysdep.h: Likewise.
76473         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
76474         section with atom_text_section.
76475         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
76476         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
76477         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
76478         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
76479         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
76480
76481         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
76482         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
76483         already be defined.  Change to take two parameters and don't assign
76484         result to variable.  Adjust all users.
76485         Define INTERNAL_GETTIME if not already defined.
76486         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
76487         call.
76488         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
76489         HAVE_CLOCK_GETTIME_VSYSCALL.
76490         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
76491
76492         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
76493         gettimeofday vsyscall, just use time.
76494
76495 2011-09-06  Andreas Schwab  <schwab@redhat.com>
76496
76497         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
76498         <errno.h>.
76499
76500 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
76501
76502         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
76503         syscall on x86-64.
76504         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
76505         syscall.
76506         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
76507         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
76508         syscall if possible.
76509
76510 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
76511
76512         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
76513         e_ident.  Don't pass to find_mapsXX.
76514         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
76515
76516 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
76517
76518         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76519         strchr-sse2-no-bsf strrchr-sse2-no-bsf
76520         * sysdeps/x86_64/multiarch/strchr.S: Update.
76521         Check bit_slow_BSF bit.
76522         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
76523         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
76524         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
76525
76526 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
76527
76528         [BZ #13134]
76529         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
76530         before glibc 2.15.
76531         (tryshell): Define.
76532         (__spawni): Change last parameter to be flag.  Test
76533         SPAWN_XFLAGS_USE_PATH flag to use path or not.
76534         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
76535         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
76536         * posix/spawni.c: Likewise.
76537         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
76538         * posix/spawnp.c: Likewise.  Change normal version to use
76539         SPAWN_XFLAGS_USE_PATH.
76540         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
76541         SPAWN_XFLAGS_TRY_SHELL.
76542
76543         [BZ #13150]
76544         * posix/glob.h: Remove gcc 1.x support.
76545
76546         [BZ #13068]
76547         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
76548
76549 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
76550
76551         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76552         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
76553         strrchr-sse2-bsf
76554         * sysdeps/i386/i686/multiarch/strchr.S: New file.
76555         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
76556         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
76557         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
76558         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
76559         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
76560
76561 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76562
76563         * sysdeps/x86_64/wcscmp.S: New file.
76564
76565         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
76566         wcscmp-c wcscmp-sse2
76567         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
76568         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
76569         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
76570         * wcsmbs/wcscmp.c: Allow renaming.
76571
76572 2011-09-05  David S. Miller  <davem@davemloft.net>
76573
76574         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
76575         stack slot, rather than the struct return pointer slot.
76576         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
76577         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
76578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
76579         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
76580
76581 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
76582
76583         * po/ja.po: Update from translation team.
76584
76585         [BZ #13144]
76586         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
76587         kernel in 64-bit binaries.
76588
76589 2011-09-01  David S. Miller  <davem@davemloft.net>
76590
76591         * elf/elf.h (HWCAP_SPARC_*): Move to..
76592         * sysdeps/sparc/sysdep.h: this new file and add new values.
76593         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
76594         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
76595         _DL_HWCAP_COUNT to 24.
76596         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
76597         entries.
76598         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
76599         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
76600         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
76601         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
76602         instead of magic constants.
76603         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
76604
76605 2011-08-31  David S. Miller  <davem@davemloft.net>
76606
76607         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
76608         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
76609         Reimplement to do errno handling inline.
76610         (SYSCALL_ERROR_HANDLER): New macro.
76611         (__SYSCALL_STRING): Do not do errno handling in asm.
76612         (__CLONE_SYSCALL_STRING): Delete.
76613         (__INTERNAL_SYSCALL_STRING): Delete.
76614         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
76615         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
76616         (PSEUDO): Reimplement to do errno handling inline.
76617         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
76618         (SYSCALL_ERROR_HANDLER): New macro.
76619         (__SYSCALL_STRING): Do not do errno handling in asm.
76620         (__CLONE_SYSCALL_STRING): Delete.
76621         (__INTERNAL_SYSCALL_STRING): Delete.
76622         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
76623         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
76624         i386.
76625         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
76626         (inline_syscall*): Add 'err' argument.
76627         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
76628         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
76629         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
76630         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
76631
76632         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
76633         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
76634
76635 2011-08-30  Andreas Schwab  <schwab@redhat.com>
76636
76637         * elf/rtld.c (dl_main): Relocate objects in dependency order.
76638
76639 2011-08-29  Jiri Olsa <jolsa@redhat.com>
76640
76641         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
76642         directive.
76643
76644 2011-08-24  David S. Miller  <davem@davemloft.net>
76645
76646         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
76647
76648 2011-08-24  Andreas Schwab  <schwab@redhat.com>
76649
76650         * elf/Makefile: Add rules to build and run unload8 test.
76651         * elf/unload8.c: New file.
76652         * elf/unload8mod1.c: New file.
76653         * elf/unload8mod1x.c: New file.
76654         * elf/unload8mod2.c: New file.
76655         * elf/unload8mod3.c: New file.
76656
76657         * elf/dl-close.c (_dl_close_worker): Reset private search list if
76658         it wasn't used.
76659
76660 2011-08-23  David S. Miller  <davem@davemloft.net>
76661
76662         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
76663         subtract stack bias.
76664         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
76665         %sp not %fp in calculations.
76666         (_JMPBUF_UNWINDS_ADJ): Likewise.
76667
76668         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
76669         (aio_suspend): Call it to force an exception region around the
76670         AIO_MISC_WAIT() invocation.
76671
76672 2011-08-23  Andreas Schwab  <schwab@redhat.com>
76673
76674         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
76675         backslash.
76676
76677 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
76678
76679         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
76680         protection macro.
76681         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
76682         and <dl-machine.h>.
76683         (Elf64_FuncDesc): Remove.
76684
76685 2011-08-22  David S. Miller  <davem@davemloft.net>
76686
76687         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
76688         sigaltstack check, add missing cfi directives.
76689         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
76690         missing cfi directives, and sigaltstack handling.
76691
76692 2011-08-16  Andreas Schwab  <schwab@redhat.com>
76693
76694         [BZ #11724]
76695         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
76696         object is seen twice.
76697         * elf/dl-fini.c (_dl_sort_fini): Likewise.
76698
76699         * elf/Makefile (distribute): Add tst-initorder2.c.
76700         (tests): Add tst-initorder2.
76701         (modules-names): Add tst-initorder2a tst-initorder2b
76702         tst-initorder2c tst-initorder2d.  Add rules to build them.
76703         ($(objpfx)tst-initorder2.out): New rule.
76704         * elf/tst-initorder2.c: New file.
76705         * elf/tst-initorder2.exp: New file.
76706
76707 2011-08-22  Andreas Schwab  <schwab@redhat.com>
76708
76709         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
76710
76711         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
76712         dependencies back to end of function.
76713
76714         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76715         $(elfobjdir)/ld.so.
76716
76717 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
76718
76719         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
76720         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
76721         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
76722         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
76723         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
76724         of __vdso_gettimeofday.
76725         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
76726         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
76727         attribute_hidden.
76728         (_libc_vdso_platform_setup): Remove initialization of
76729         __vdso_gettimeofday and __vdso_time.
76730
76731 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
76732
76733         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
76734         and fgetc_unlocked.
76735         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
76736         getc_unlocked.
76737
76738         * elf/dl-open.c (add_to_global): Report additions to the global scope
76739         for LD_DEBUG=scopes.
76740         (dl_open_worker): Also print scope of newly loaded dependencies.
76741         (_dl_show_scope): Indicate if there is no scope.
76742
76743         [BZ #13114]
76744         * stdio-common/Makefile (tests): Add bug24.
76745         * stdio-common/bug24.c: New file.
76746
76747 2011-08-19  Andreas Jaeger  <aj@suse.de>
76748
76749         [BZ #13114]
76750         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
76751         non-existant file when using close-on-exec mode.
76752
76753 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
76754
76755         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
76756         the very first instruction.
76757
76758         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
76759         the CFI state in the end.
76760         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
76761         inclusion of dl-trampoline.h.
76762         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
76763
76764 2011-08-19  Andreas Schwab  <schwab@redhat.com>
76765
76766         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
76767         expectations for long double.
76768
76769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
76770         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
76771
76772 2011-08-14  David S. Miller  <davem@davemloft.net>
76773
76774         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
76775         artificual limit depends upon the system page size.
76776
76777 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
76778
76779         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
76780         * resolv/Makefile: Define CFLAGS-libresolv.
76781
76782 2011-08-17  Andreas Schwab  <schwab@redhat.com>
76783
76784         * nss/makedb.c (compute_tables): Make variables used in nested
76785         function static.
76786
76787 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
76788
76789         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
76790         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
76791         if buffer was too small.
76792
76793         * elf/pldd.c (main): Attach to all threads in the process.
76794         Rewrite /proc handling to use *at functions.
76795
76796 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
76797
76798         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
76799         specifies first scope to show.
76800         (dl_open_worker): Update callers.  Move printing scope of new
76801         object to before the relocation.
76802         * elf/rtld.c (dl_main): Update _dl_show_scope call.
76803         * sysdeps/generic/ldsodefs.h: Update declaration.
76804
76805         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
76806         string for the scope number.
76807
76808 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
76809
76810         * nscd/servicescache.c (cache_addserv): Make sure written is always
76811         initialized.
76812
76813 2011-08-14  Roland McGrath  <roland@hack.frob.com>
76814
76815         * sysdeps/i386/i486/bits/atomic.h
76816         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
76817         statement expression, so as to suppress "set but not used" warning.
76818         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
76819
76820         * string/strncat.c (STRNCAT): Use prototype definition.
76821
76822         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
76823         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
76824         -Iprograms here.
76825         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
76826         (localedef-modules): Add localedef.
76827         (locale-modules): Add locale.
76828
76829         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
76830         * elf/rtld.c (dl_main): Invert order of assignment in last change,
76831         to avoid a warning.
76832
76833 2011-08-14  David S. Miller  <davem@davemloft.net>
76834
76835         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
76836         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
76837
76838 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
76839
76840         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
76841         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
76842         * elf/rtld.c (dl_main): Set l_name of vDSO.
76843         Call _dl_show_scope when DL_DEBUG_SCOPES.
76844         (process_dl_debug): Recognize scopes flag and also set it for all.
76845         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
76846         Declare _dl_show_scope.
76847
76848         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
76849         (do_dlopen): Pass caller_dlopen to dl_open.
76850         (__libc_dlopen_mode): Initialize caller_dlopen.
76851
76852         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
76853         of libc.  Make tolower call locale-independent.  Optimize a bit by
76854         using isdigit instead of isalnum.
76855         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
76856
76857 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
76858
76859         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
76860         was a dependency or dynamically loaded.
76861
76862 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
76863
76864         * intl/l10nflist.c: Allow architecture-specific pop function.
76865         * sysdeps/x86_64/l10nflist.c: New file.
76866
76867         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
76868         classification.
76869
76870 2011-08-10  Andreas Schwab  <schwab@redhat.com>
76871
76872         * include/dirent.h: Add libc_hidden_proto for scandirat and
76873         scandirat64.  Don't declare __scandirat64.
76874         * dirent/scandirat.c: Add libc_hidden_def.
76875         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
76876         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
76877
76878 2011-08-10  David S. Miller  <davem@davemloft.net>
76879
76880         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
76881         enum.
76882         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
76883         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
76884         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
76885
76886 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
76887
76888         * Versions.def [libc]: Add GLIBC_2.15.
76889         * dirent/Makefile (routines): Add scandirat and scandirat64.
76890         * dirent/Versions [libc]: Export scandirat and scandirat64 for
76891         GLIBC_2.15.
76892         * dirent/dirent.h: Declare scandirat and scandirat64.
76893         * dirent/scandirat.c: New file.
76894         * dirent/scandirat64.c: New file.
76895         * sysdeps/wordsize-64/scandirat.c: New file.
76896         * sysdeps/wordsize-64/scandirat64.c: New file.
76897         * dirent/opendir.c: Define opendirat.
76898         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
76899         using scandirat.
76900         * dirent/scandir64.c: Adjust for scandir.c change.
76901         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
76902         __scandirat64, and __scandir_cancel_handler.
76903         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
76904         additional parameter and use openat instead of open (outside of ld.so).
76905         Add new __opendir as wrapper around __opendirat.
76906         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
76907         here without requiring old scandirat implementation.
76908
76909 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
76910
76911         * dirent/scandir.c (cancel_handler): Renamed to
76912         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
76913         defined.  Adjust users.
76914         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
76915         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
76916
76917 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
76918
76919         * string/test-string.h (IMPL): Use __STRING to expand name and then
76920         stringify it.
76921
76922         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
76923         of cleanups.
76924
76925 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76926
76927         * string/Makefile: Update.
76928         (strop-tests): Append strncat.
76929         * string/test-wcscmp.c: New file.
76930         New comprehensive test for wcscmp.
76931         * string/test-strcmp.c: Update.
76932         (WIDE): New define.
76933
76934 2011-07-22  Andreas Schwab  <schwab@redhat.com>
76935
76936         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
76937         line.
76938
76939 2011-07-26  Andreas Schwab  <schwab@redhat.com>
76940
76941         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
76942         encoding to ACE if AI_IDN.
76943
76944 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
76945
76946         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
76947         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
76948
76949 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
76950
76951         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
76952         Fix overflow bug in strncat.
76953         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
76954
76955         * string/test-strncat.c: Update.
76956         Add new tests for checking overflow bugs.
76957
76958 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
76959
76960         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76961         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
76962         * sysdeps/i386/i686/multiarch/strcat.S: New file.
76963         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
76964         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
76965         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
76966         * sysdeps/i386/i686/multiarch/strncat.S: New file.
76967         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
76968         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
76969
76970         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
76971         (USE_AS_STRCAT): Define.
76972         Add strcat and strncat support.
76973         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
76974
76975 2011-07-25  Andreas Schwab  <schwab@redhat.com>
76976
76977         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
76978         __n bigger than INT_MAX+1.
76979         (__strncmp_g): Likewise.
76980
76981 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
76982
76983         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
76984         * libio/stido.h: Likewise.
76985
76986         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
76987         (AF_NFC): Define.
76988         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
76989         (AF_NFC): Define.
76990
76991         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
76992         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
76993         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
76994         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
76995         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
76996
76997         [BZ #13021]
76998         * scripts/test-installation.pl: Don't expect libnss_test1 to be
76999         installed.
77000
77001         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
77002         typo.
77003         (_dl_x86_64_save_sse): Likewise.
77004
77005 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
77006
77007         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
77008         OSXSAVE.
77009         (_dl_x86_64_save_sse): Likewise.
77010
77011         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
77012
77013         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
77014
77015 2011-07-21  Andreas Schwab  <schwab@redhat.com>
77016
77017         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
77018         change.
77019         (_dl_x86_64_save_sse): Use correct AVX check.
77020
77021 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77022
77023         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
77024         bug in strncpy/strncat.
77025         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
77026
77027 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
77028
77029         * string/tester.c (test_strcat): Add tests for different alignments
77030         of source and destination.
77031         (test_strncat): Likewise.
77032
77033 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
77034
77035         [BZ #12852]
77036         * posix/glob.c (glob): Check passed in values before using them in
77037         expressions to avoid some overflows.
77038         (glob_in_dir): Likewise.
77039
77040         [BZ #13007]
77041         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
77042         check for AVX enablement so that we don't crash with old kernels and
77043         new hardware.
77044         * elf/tst-audit4.c: Add same checks here.
77045         * elf/tst-audit6.c: Likewise.
77046
77047         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
77048
77049 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
77050
77051         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
77052
77053 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
77054
77055         * po/cs.po: Update from translation team.
77056         * po/bg.po: Likewise.
77057
77058 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
77059
77060         * misc/sys/cdefs.h: Add support for const attribute.
77061         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
77062         to gnu_dev_{major,minor,makedev} functions.
77063
77064 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
77065
77066         * intl/dcigettext.c (get_output_charset): Add missing bracket.
77067
77068 2011-07-20  Andreas Schwab  <schwab@redhat.com>
77069
77070         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
77071         strlen results.
77072
77073 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77074
77075         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
77076         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
77077         register in order to avoid conflicts with the soft frame pointer
77078         being held in r11 when necessary.
77079         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
77080         (INTERNAL_VSYSCALL_NCS): Likewise.
77081
77082 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
77083
77084         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
77085         * elf/dl-fini.c (_dl_fini): Adjust caller.
77086         * elf/dl-close.c (_dl_close_worker): Likewise.
77087         * sysdeps/generic/ldsodefs.h: Adjust declaration.
77088
77089 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
77090
77091         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
77092         "aux_cache->nlibs < 0".
77093
77094         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
77095         in the reload-count case.
77096
77097 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
77098
77099         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77100         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
77101         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
77102         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
77103         * sysdeps/x86_64/multiarch/strcat.S: New file.
77104         * sysdeps/x86_64/multiarch/strncat.S: New file.
77105         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
77106         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
77107         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
77108         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
77109         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
77110         (USE_AS_STRCAT): Define.
77111         Add strcat and strncat support.
77112         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
77113         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
77114         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
77115         * string/strncat.c: Update.
77116         (USE_AS_STRNCAT): Define.
77117         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77118         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
77119         and i7.
77120         * sysdeps/x86_64/multiarch/init-arch.h
77121         (bit_Prefer_PMINUB_for_stringop): New.
77122         (index_Prefer_PMINUB_for_stringop): Likewise.
77123         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
77124         bit_Prefer_PMINUB_for_stringop.
77125
77126 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
77127
77128         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
77129         buffer64.
77130         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
77131         of casting of buffer.
77132         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
77133         buffer32 and buffer64.
77134         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
77135         writes instead of casting of buffer.
77136         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
77137         buffer32.
77138         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
77139         casting of buffer.
77140
77141 2011-07-19  Andreas Schwab  <schwab@redhat.com>
77142
77143         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
77144
77145 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
77146
77147         * nscd/nscd.c (termination_handler): Don't do anything for a database
77148         if it has not yet been initialized.
77149
77150 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
77151
77152         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
77153
77154 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
77155
77156         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
77157
77158 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
77159
77160         * po/nl.po: Update from translation team.
77161         * po/sv.po: Likewise.
77162
77163 2011-07-16  Roland McGrath  <roland@hack.frob.com>
77164
77165         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
77166         now disallowed by GCC.
77167
77168         * configure.in (use-default-link): Default to yes if a test -shared
77169         link meets our qualifications.
77170         * configure: Regenerated.
77171
77172         * config.make.in (output-format): New variable.
77173         * configure.in: Check for ld --print-output-format support.
77174         * configure: Regenerated.
77175         * Makerules ($(common-objpfx)format.lds)
77176         [$(output-format) != unknown]: Just use $(output-format),
77177         instead of the linker-script munging.
77178
77179 2011-07-14  Roland McGrath  <roland@hack.frob.com>
77180
77181         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
77182         of $(common-objpfx)shlib.lds.
77183         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
77184
77185         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
77186         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
77187
77188         * configure.in (-z relro check): Adjust test code to add a large
77189         writable data section after it.
77190         * configure: Regenerated.
77191
77192 2011-07-11  Roland McGrath  <roland@hack.frob.com>
77193
77194         * configure.in (-z relro check): Fix test code to make the variable
77195         truly const.
77196         * configure: Regenerated.
77197
77198 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
77199
77200         * nscd/nscd.h (struct traced_file): Define.
77201         (struct database_dyn): Remove inotify_descr, reset_res, and filename
77202         elements.  Add traced_files.
77203         (inotify_fd): Declare.
77204         (register_traced_file): Declare.
77205         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
77206         (inotify_fd): Export.
77207         (resolv_conf_descr): Remove.
77208         (nscd_init): Move inotify descriptor creation to main.
77209         Don't register files for notification here.
77210         (register_traced_file): New function.
77211         (invalidate_cache): Don't use reset_res to determine whether to call
77212         res_init, go through the list of registered files.
77213         (main_loop_poll): The inotify descriptors are now stored in the
77214         structures for the traced files.
77215         (main_loop_epoll): Likewise.
77216         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
77217         to __nss_disable_nscd.
77218         * nscd/cache.c (prune_cache): There is no single inotify descriptor
77219         for a database anymore.  Check the records for all the registered
77220         files instead.
77221         * nss/Makefile (libnss_files-routines): Add files-init.
77222         (libnss_db-routines): Add db-init.
77223         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
77224         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
77225         * nss/nss_db/db-init.c: New file.
77226         * nss/nss_files/files-init.c: New file.
77227         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
77228         __nss_lookup_function.
77229         (__nss_lookup_function): Call nss_load_library.
77230         (nss_load_all_libraries): New function.
77231         (__nss_disable_nscd): Take parameter with callback function for files
77232         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
77233         used for the cached services.
77234         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
77235         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
77236         options for features to all the files in nscd.
77237
77238         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
77239
77240 2011-07-10  Roland McGrath  <roland@hack.frob.com>
77241
77242         * csu/elf-init.c (__libc_csu_init): Comment typo.
77243
77244 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
77245
77246         * po/pl.po: Update from translation team.
77247         * po/ja.po: Likewise.
77248         * po/ru.po: Likewise.
77249         * po/ko.po: Likewise.
77250         * po/fr.po: Likewise.
77251
77252 2011-07-09  Roland McGrath  <roland@hack.frob.com>
77253
77254         * configure.in (.ctors/.dtors header and trailer check):
77255         Use an empirical test on a built program.
77256         * configure: Regenerated.
77257
77258         * configure.in (-z relro check): Use an empirical test on a built DSO.
77259         Detect, but do not require, on ia64.
77260         * configure: Regenerated.
77261
77262         * configure.in (READELF): Find it with AC_CHECK_TOOL.
77263         Update tests that use readelf to use $READELF instead.
77264         * configure: Regenerated.
77265
77266 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
77267
77268         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
77269         if the result is not used.
77270
77271 2011-07-05  Andreas Jaeger  <aj@suse.de>
77272
77273         [BZ#9696]
77274         * stdlib/tst-strtod.c: Add testcase.
77275
77276 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
77277
77278         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
77279         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
77280         The latter has a higher limit.  Take additional parameter to pass to
77281         the new function.
77282         (__pathconf): Pass file to __statfs_link_max.
77283         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
77284         __statfs_link_max.
77285         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
77286         __statfs_link_max.
77287
77288         [BZ #12868]
77289         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
77290         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
77291         Handle Lustre.
77292         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
77293         (__statfs_filesize_max): Likewise.
77294         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
77295
77296 2011-07-05  Andreas Jaeger  <aj@suse.de>
77297
77298         * resolv/res_comp.c (dn_skipname): Remove unused variable.
77299
77300 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
77301
77302         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
77303         `status' variable.
77304         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
77305         Likewise.
77306
77307 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
77308
77309         * Makefile (strop-tests): Add strncat.
77310         * string/test-strncat.c: New file.
77311
77312 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
77313
77314         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
77315
77316 2011-06-21  Andreas Jaeger  <aj@suse.de>
77317
77318         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
77319         Copy rule from iconvdata/Makefile.
77320
77321 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
77322
77323         [BZ #12922]
77324         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
77325         but no long options are defined, just return 'W'.
77326
77327 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
77328
77329         [BZ #9696]
77330         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
77331
77332 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
77333
77334         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
77335         netgroups to read.
77336         (innetgr): Likewise.
77337
77338 2011-07-05  Roland McGrath  <roland@hack.frob.com>
77339
77340         * config.make.in (install_root): Default to $(DESTDIR).
77341
77342 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
77343
77344         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
77345
77346 2011-07-02  Roland McGrath  <roland@hack.frob.com>
77347
77348         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
77349
77350         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
77351         containing directory rather than embedding absolute directory names.
77352
77353         * scripts/check-local-headers.sh: Rewritten using awk.
77354         Match by word, not by line.  Print error messages for matches.
77355         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
77356
77357         * Makerules [shlib-lds-flags empty]:
77358         ($(common-objpfx)libc_pic.opts): New target.
77359         ($(common-objpfx)libc_pic.os.clean): New target.
77360         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
77361
77362         * config.make.in (OBJCOPY): New variable.
77363         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
77364         * configure: Regenerated.
77365
77366         * config.make.in (use-default-link): New variable.
77367         * configure.in (use_default_link): Grok --with-default-link to set it.
77368         * configure: Regenerated.
77369         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
77370         (shlib-lds, shlib-lds-flags): Define to empty.
77371
77372         * Makerules (shlib-lds): New variable.
77373         (shlib-lds-flags): New variable.
77374         (build-shlib, build-moduile, build-module-asneeded): Use it.
77375         ($(common-objpfx)libc.so): Use $(shlib-lds).
77376         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
77377         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
77378
77379         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
77380         DT_FLAGS/DT_FLAGS_1 with zero flags.
77381
77382         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
77383         linker script munging.
77384
77385 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
77386
77387         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
77388         as 128-bit value.
77389         * crypt/sha512.c (sha512_process_block): Perform total addition using
77390         128-bit if possible.
77391         (__sha512_finish_ctx): Likewise.
77392         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
77393         as 64-bit value.
77394         * crypt/sha256.c (SWAP64): Define.
77395         (sha256_process_block): Perform total addition using 64-bit if
77396         possible.
77397         (__sha256_finish_ctx): Likewise.
77398
77399 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
77400
77401         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
77402         * nscd/initgrcache.c (addinitgroupsX): Likewise.
77403         * nscd/hstcache.c (cache_addhst): Likewise.
77404         * nscd/grpcache.c (cache_addgr): Likewise.
77405         * nscd/aicache.c (addhstaiX): Likewise.
77406         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
77407
77408 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
77409
77410         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
77411         * nscd/initgrcache.c (addinitgroupsX): Likewise.
77412         * nscd/hstcache.c (cache_addhst): Likewise.
77413         * nscd/grpcache.c (cache_addgr): Likewise.
77414         * nscd/aicache.c (addhstaiX): Likewise.
77415
77416 2011-07-01  Andreas Schwab  <schwab@redhat.com>
77417
77418         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
77419         domain only when needed.
77420
77421 2011-06-30  Andreas Schwab  <schwab@redhat.com>
77422
77423         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
77424         is always restored.
77425
77426 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
77427
77428         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
77429         are re-adding the entry.
77430         * nscd/servicescache.c (cache_addserv): Likewise.
77431
77432 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
77433
77434         * sysdeps/generic/dl-irel.h: fix protection against multiple
77435         inclusions.
77436         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
77437
77438 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
77439
77440         [BZ #12935]
77441         * malloc/memusage.sh: Fix quoting in message.
77442         * debug/xtrace.sh: Likewise.
77443
77444         * configure.in: Remove support for --experimental-malloc option, make
77445         it the default.
77446         * config.make.in: Likewise.
77447         * malloc/Makefile: Likewise.
77448
77449 2011-06-27  Andreas Schwab  <schwab@redhat.com>
77450
77451         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
77452         two-byte characters.
77453
77454 2011-06-27  Roland McGrath  <roland@hack.frob.com>
77455
77456         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
77457         AC_CACHE_CHECK invocation.
77458         * configure: Regenerated.
77459
77460         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
77461
77462 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
77463
77464         [BZ #12350]
77465         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
77466         bit from old_res_options.
77467
77468         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
77469
77470         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
77471         value type for setfct.
77472
77473 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
77474
77475         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
77476         __gettimeofday instead of gettimeofday.
77477
77478 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
77479
77480         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
77481
77482 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
77483
77484         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
77485
77486         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
77487         info.
77488
77489 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
77490
77491         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77492         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
77493         strcpy-sse2-unaligned strncpy-sse2-unaligned
77494         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
77495         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
77496         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
77497         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
77498         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
77499         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
77500         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
77501         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
77502         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
77503         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
77504         (STRCPY): Support SSE2 and SSSE3 versions.
77505
77506 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
77507
77508         [BZ #12874]
77509         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
77510         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
77511         kernels which artificially limit size of requests.
77512
77513 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
77514
77515         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77516         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
77517         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
77518         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
77519         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
77520         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
77521         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
77522         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
77523         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
77524         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
77525         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
77526         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
77527         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
77528         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
77529         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
77530         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77531         Enable unaligned load optimization for Intel Core i3, i5 and i7
77532         processors.
77533         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
77534         Define.
77535         (index_Fast_Unaligned_Load): Define.
77536         (HAS_FAST_UNALIGNED_LOAD): Define.
77537
77538 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
77539
77540         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
77541
77542 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
77543
77544         [BZ #12907]
77545         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
77546         until it is clear that the information is realy needed.
77547         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
77548
77549 2011-06-22  Andreas Schwab  <schwab@redhat.com>
77550
77551         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
77552
77553 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
77554
77555         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
77556         /sys/devices/system/cpu/online if it is usable.
77557
77558         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
77559         reading the information from the /proc filesystem to once a second.
77560
77561 2011-06-21  Andreas Jaeger  <aj@suse.de>
77562
77563         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
77564         NULL after inclusion of kernel headers.
77565
77566 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
77567
77568         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
77569         calls to internal_setent.
77570
77571         [BZ #12885]
77572         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
77573         addresses using gethostbyname4_r ignore IPv4 addresses.
77574
77575         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
77576         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
77577
77578         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
77579
77580 2011-06-20  David S. Miller  <davem@davemloft.net>
77581
77582         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
77583         inclusions.
77584         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
77585
77586         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
77587         (elf_irel): Use it.
77588         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
77589         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
77590         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
77591         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
77592         * sysdeps/x86_64/dl-irel.h: Likewise.
77593
77594         * elf/dl-runtime.c: Use elf_ifunc_invoke.
77595         * elf/dl-sym.c: Likewise.
77596
77597 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
77598
77599         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
77600         need to dereference resplen2.
77601
77602 2011-06-14  Andreas Schwab  <schwab@redhat.com>
77603
77604         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
77605
77606 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
77607
77608         * Makeconfig: Define vardbdir and inst_vardbdir.
77609         * nss/Makefile: Add rules to install db-Makefile.
77610
77611         * nss/nss_db/db-XXX.c: Cleanup.
77612
77613         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
77614         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
77615         GLIBC_PRIVATE.
77616         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
77617         * nss/makedb.c: Implement -g option to specify that value strings
77618         are generated and should not be added to table iterated over for
77619         get*ent calls.
77620         * nss/nss_db/db-initgroups.c: New file.
77621
77622         * nss/getent.c: Add support for initgroups lookups through getgrouplist
77623         interface.
77624
77625         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
77626         (internal_getgrouplist): Adjust to name change.
77627         Update use_initgroups_entry if this is not the first call.
77628         * nss/databases.def: Add initgroups entry.
77629
77630         * nss/makedb.c (compute_tables): Check result of multiple hash table
77631         sizes to minimize maximum chain length.
77632
77633 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
77634
77635         * Versions.def: Add entry for libnss_db.
77636         * shlib-versions: Likewise.
77637         * nss/Makefile: Add rules to build libnss_db.
77638         * nss/Versions: Add libnss_db information.  Organize libnss_files
77639         entries better.
77640         * nss/db-Makefile: Add gshadow support.  Change rules for the new
77641         makedb progra.  Some minor improvements to generate smaller files.
77642         * nss/nss_db/nss_db.h: Move NSS database header data structures to
77643         here from...
77644         * nss/makedb.c: ...here.
77645         Improve database format to be smaller and require less memory at
77646         runtime.
77647         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
77648         db anymore.
77649         * nss/nss_db/db-netgrp.c: Likewise.
77650         * nss/nss_db/db-open.c: Likewise.
77651         * nss/nss_files/flies-XXX.x: Adjust comments.
77652         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
77653         * nss/nss_files/files-grp.c: Likewise.
77654         * nss/nss_files/files-hosts.c: Likewise.
77655         * nss/nss_files/files-network.c: Likewise.
77656         * nss/nss_files/files-proto.c: Likewise.
77657         * nss/nss_files/files-pwd.c: Likewise.
77658         * nss/nss_files/files-rpc.c: Likewise.
77659         * nss/nss_files/files-service.c: Likewise.
77660         * nss/nss_files/files-sgrp.c: Likewise.
77661         * nss/nss_files/files-spwd.c: Likewise.
77662         * nss/nss_db/db-alias.c: Removed.
77663         * nss/nss_db/dummy-db.h: Removed.
77664
77665 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
77666
77667         * nss/makedb.c: Rewritten to not use database library.
77668         * nss/Makefile: Update to build new makedb program.
77669
77670 2011-06-14  Andreas Jaeger  <aj@suse.de>
77671
77672         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
77673         memset declaration.
77674
77675 2011-06-10  Andreas Schwab  <schwab@redhat.com>
77676
77677         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
77678         tmpbuf.
77679
77680 2011-06-10  Roland McGrath  <roland@hack.frob.com>
77681
77682         * Makerules (shlib.lds): Fail if the linker script comes out empty.
77683         * elf/Makefile ($(objpfx)ld.so): Likewise.
77684
77685         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
77686         Don't list ld.so twice in dependencies.
77687
77688         * posix/bug-regex31.c: Include <stdlib.h>.
77689
77690         * nscd/hstcache.c (cache_addhst): Remove unused variable.
77691
77692         * nis/nss_compat/compat-spwd.c
77693         (getspent_next_nss_netgr): Remove unused variable.
77694         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
77695
77696         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
77697         nonmembers" output to use the right array.
77698
77699         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
77700
77701         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
77702
77703         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
77704         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
77705         * catgets/gencat.c (read_input_file): Likewise.
77706         * locale/programs/locarchive.c (enlarge_archive): Likewise.
77707
77708         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
77709         variable definition inside #if's controlling its use.
77710
77711         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
77712
77713         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
77714
77715         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
77716
77717         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
77718         unreachable code.
77719
77720         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
77721
77722         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
77723         * configure: Regenerated.
77724
77725         * Makerules: Revert last change.
77726         * elf/Makefile: Likewise.
77727
77728 2011-06-09  Roland McGrath  <roland@hack.frob.com>
77729
77730         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
77731         * elf/Makefile ($(objpfx)librtld.os): Likewise.
77732         (reloc-link): Likewise.
77733
77734 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
77735
77736         * elf/Makefile: Add rules to build pldd.
77737         * elf/pldd.c: New file.
77738         * elf/pldd-xx.c: New file.
77739
77740 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
77741
77742         * version.h: Update for 2.15 development version.
77743
77744 2011-06-07  David S. Miller  <davem@davemloft.net>
77745
77746         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
77747         ifuncs.
77748         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
77749         elf_machine_lazy_rel): Likewise.
77750         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
77751         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
77752         elf_machine_lazy_rel): Likewise.
77753         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
77754         dl_hwcap via passed in argument.
77755         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
77756         Likewise.
77757
77758 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77759
77760         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
77761
77762 2011-06-06  Roland McGrath  <roland@hack.frob.com>
77763
77764         [BZ #12849]
77765         * manual/fdl-1.1.texi: New file, verbatim from:
77766         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
77767         * manual/lgpl-2.1.texi: New file, verbatim from:
77768         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
77769         * manual/Makefile (licenses): New variable, list those new file names.
77770         (texis): Use it.
77771         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
77772
77773         * manual/fdl.texi: File removed.
77774         * manual/lesser.texi: File removed.
77775         * manual/libc.texinfo (Copying, Documentation License):
77776         Use new @include file names, put @appendix directive before @include.
77777
77778 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
77779
77780         [BZ #12841]
77781         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
77782         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
77783         (mq_open): Add __NTH.
77784
77785 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
77786
77787         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77788         Assume Intel Core i3/i5/i7 processor if AVX is available.
77789
77790 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
77791
77792         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
77793         typo.
77794
77795 2011-05-31  Andreas Schwab  <schwab@redhat.com>
77796
77797         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
77798         memory.  Use alloca_account.  Fix memory leak when retrying.
77799
77800 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
77801
77802         * version.h (RELEASE): Bump for 2.14 release.
77803         * include/features.h (__GLIBC_MINOR__): Bump to 14.
77804
77805         * config.make.in (RANLIB): Remove entry.
77806
77807 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
77808
77809         * po/Makefile (po-sed-cmd): Add ksh to extensions.
77810         (libc.pot): Work around missing support for .ksh extension in xgettext.
77811
77812         [BZ #12684]
77813         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
77814         if both request failed.
77815         (send_dg): In case of server errors clear resplen or *resplen2.
77816
77817         [BZ #12454]
77818         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
77819         when there are multiple maps.
77820         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
77821         (_dl_fini): Remove test here.
77822
77823         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
77824
77825 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
77826
77827         [BZ #12350]
77828         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
77829         bit from old_res_options.
77830         (gaih_inet): Likewise.
77831
77832         [BZ #11099]
77833         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
77834         as signed.
77835
77836         * resolv/res_init.c (res_setoptions): Make the code more compact.
77837
77838         [BZ #11558]
77839         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
77840         set RES_USEVC.
77841
77842         [BZ #11634]
77843         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
77844
77845         * malloc/malloc.h: Mark malloc hook variables as deprecated.
77846
77847         [BZ #11781]
77848         * malloc/malloc.h: Declare malloc hook variables as volatile.
77849
77850         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
77851         in last patch.
77852
77853         [BZ #11799]
77854         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
77855         raise in the comment.
77856         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
77857         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
77858         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
77859
77860 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
77861
77862         [BZ #12811]
77863         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
77864         grow the buffers more if it already has to be sufficient.
77865         (build_wcs_upper_buffer): Likewise.
77866         * posix/regexec.c (check_matching): Likewise.
77867         (clean_state_log_if_needed): Likewise.
77868         (extend_buffers): Don't enlarge buffers beyond size of the input
77869         buffer.
77870         Patches mostly by Emil Wojak <emil@wojak.eu>.
77871         * posix/bug-regex32.c: New file.
77872         * posix/Makefile (tests): Add bug-regex32.
77873
77874         * locale/findlocale.c (_nl_find_locale): Return right away if
77875         _nl_explode_name failed.
77876         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
77877
77878         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
77879
77880         * debug/xtrace.sh: Unify messages.
77881         * malloc/memusage.sh: Likewise.
77882
77883         [BZ #12813]
77884         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
77885         time symbol from vDSO.  Substitute with vsyscall if not available.
77886         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
77887         __vdso_time.
77888
77889         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
77890         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
77891         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
77892         Add sendmmsg and internal_sendmmsg.
77893         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
77894         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
77895         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
77896
77897         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
77898         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
77899         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
77900
77901 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
77902
77903         [BZ #12813]
77904         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
77905         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
77906         available.
77907         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
77908         __vdso_getcpu.
77909
77910         [BZ #12814]
77911         * iconvdata/Makefile (tests): Add bug-iconv9.
77912         * iconvdata/bug-iconv9.c: New file.
77913
77914 2011-05-27  Andreas Schwab  <schwab@redhat.com>
77915
77916         [BZ #12814]
77917         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
77918
77919 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
77920
77921         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
77922         (struct user_regs_struct): Change intcs field back to cs.
77923
77924 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
77925
77926         * po/ja.po: Update from translation team.
77927
77928 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
77929
77930         [BZ #12795]
77931         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
77932         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
77933
77934 2011-05-20  Andreas Schwab  <schwab@redhat.com>
77935
77936         * stdlib/longlong.h: Update from GCC.
77937
77938 2011-05-23  Andreas Schwab  <schwab@redhat.com>
77939
77940         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
77941         parameter name.
77942         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
77943         Add parameter name.
77944         (__sysconf): Pass it down.
77945
77946 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
77947
77948         [BZ #12671]
77949         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
77950         some situations.
77951         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
77952         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
77953         add in in __libc_use_alloca calls.  Adjust callers.
77954         (glob): Use malloc in some situations.
77955
77956         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
77957         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
77958         pltexit.
77959
77960 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
77961
77962         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
77963         and CLOCK_BOOTTIME_ALARM.
77964
77965         [BZ #12782]
77966         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
77967         is returned.
77968
77969         * string/_strerror.c (__strerror_r): Print negative errors as signed
77970         numbers.
77971
77972         [BZ #12777]
77973         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
77974         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
77975         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
77976
77977         * configure.in: Fix typo in redirection and correct removal of test
77978         files in two cases.
77979
77980         [BZ #12788]
77981         * locale/setlocale.c (new_composite_name): Fix test to check for
77982         identical name of all categories.
77983
77984         [BZ #12792]
77985         * libio/filedoalloc.c (local_isatty): New function.
77986         (_IO_file_doallocate): Use local_isatty.
77987         * stdio-common/perror.c (perror): In case a new stream is used
77988         forward the stream error.
77989         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
77990         error flag.
77991
77992 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
77993
77994         [BZ #11884]
77995         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
77996         alloca.
77997         * include/alloca.h (extend_alloca_account): Define.
77998
77999         [BZ #11857]
78000         * posix/regex.h: Fix comments with documentation of user-accessible
78001         fields after compilation and describe correct free'ing of pattern
78002         after re_compile_pattern.
78003         Patch by Reuben Thomas <rrt@sc3d.org>.
78004
78005 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
78006
78007         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
78008         and -mno-altivec to prevent the compiler from using Altivec and/or
78009         VSX instructions when the corresponding registers are not available.
78010
78011 2011-05-19  Andreas Schwab  <schwab@redhat.com>
78012
78013         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
78014
78015 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
78016
78017         * libio/freopen.c (freopen): Use __dup2, not dup2.
78018         * libio/freopen64.c (freopen64): Likewise.
78019
78020 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
78021
78022         [BZ #12775]
78023         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
78024         * math/Makefile (tests): Add test-powl.
78025         (CFLAGS-test-powl.c): Define.
78026         * math/test-powl.c: New file.
78027
78028 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
78029
78030         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
78031
78032 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
78033
78034         [BZ #11837]
78035         * iconvdata/gb18030.c: Update to GB18020-2005.
78036
78037 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
78038
78039         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
78040         RE_SYNTAX_POSIX_AWK): Update to match recent development.
78041         Patch by Aharon Robbins <arnold@skeeve.com>.
78042
78043         [BZ #11892]
78044         * stdlib/putenv.c (putenv): Don't always create copy of the variable
78045         on the stack.
78046
78047         [BZ #11895]
78048         * misc/pselect.c (__pselect): Handle timeout value errors hidden
78049         through underflows.
78050
78051         [BZ #12766]
78052         * misc/error.c (error_at_line): Ensure file_name and old_file_name
78053         point to strings before performing equality test for error_one_per_line
78054         mode.
78055
78056         [BZ #11697]
78057         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
78058
78059         [BZ #11820]
78060         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
78061         (struct user_fpregs_struct): Avoid __uint*_t types.
78062
78063         [BZ #6420]
78064         * malloc/mtrace.c (tr_where): Add additional parameter to point to
78065         symbol info.  Use it instead of calling _dl_addr locally.
78066         (lock_and_info): New function.
78067         (tr_freehook): Call lock_and_info and pass symbol info as additional
78068         parameter to tr_where.
78069         (tr_mallochook): Likewise.
78070         (tr_reallochook): Likewise.
78071         (tr_memalignhook): Likewise.
78072
78073         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
78074         used and couldn't be at all thread-safe.
78075
78076 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
78077
78078         * libio/freopen.c (freopen): Don't close old file descriptor
78079         before the new one is opened.  Instead dup the new file descriptor
78080         to the old one after the new stream is created.
78081         * libio/freopen64.c (freopen64): Likewise.
78082         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
78083         * libio/fileops.c (_IO_new_file_close_it): Handle new
78084         _IO_FLAGS2_NOCLOSE flag.
78085         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
78086         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
78087         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
78088         _IO_FLAGS2_NOCLOSE flag.
78089         * include/unistd.h: Add hidden_proto for dup3.
78090         Define __have_dup3.
78091         * io/dup3.c: Define hidden symbol.
78092         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
78093
78094         [BZ #7101]
78095         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
78096         when an incomplete long option is used.
78097         * posix/tst-getopt_long1.c: New file.
78098         * posix/Makefile (tests): Add tst-getopt_long1.
78099
78100         [BZ #10138]
78101         * scripts/config.guess: Update from autoconf-2.68.
78102         * scripts/config.sub: Likewise.
78103
78104         [BZ #10157]
78105         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
78106         tests into ...
78107         (has_cpuclock): ...this.  New function.
78108         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
78109         macro here based on has_cpuclock code.
78110
78111         [BZ #10149]
78112         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
78113         First byte (not low byte) is now always NUL.
78114         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
78115
78116         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
78117         Use non-cancelable interfaces.
78118
78119         [BZ #9809]
78120         * locale/iso-639.def: Add entry for Sorani.
78121
78122         [BZ #11901]
78123         * include/stdlib.h: Move include protection to the right place.
78124         Define abort_msg_s.  Declare __abort_msg with it.
78125         * stdlib/abort.c (__abort_msg): Adjust type.
78126         * assert/assert.c (__assert_fail_base): New function.  Majority
78127         of code from __assert_fail.  Allocate memory for __abort_msg with
78128         mmap.
78129         (__assert_fail): Now call __assert_fail_base.
78130         * assert/assert-perr.c: Remove bulk of implementation.  Use
78131         __assert_fail_base.
78132         * include/assert.hL Declare __assert_fail_base.
78133         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
78134         mmap.
78135         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
78136
78137 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
78138
78139         [BZ #11952]
78140         [BZ #12453]
78141         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
78142         until all modules are registered in the DTV.
78143         * elf/Makefile: Add rules to build and run tst-tls19.
78144         * elf/tst-tls19.c: New file.
78145         * elf/tst-tls19mod1.c: New file.
78146         * elf/tst-tls19mod2.c: New file.
78147         * elf/tst-tls19mod3.c: New file.
78148         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
78149
78150         [BZ #12083]
78151         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
78152         correctly.
78153
78154         [BZ #12601]
78155         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
78156         two-byte sequence errors.
78157         * iconvdata/Makefile (tests): Add bug-iconv8.
78158         * iconvdata/bug-iconv8.c: New file.
78159
78160         [BZ #12626]
78161         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
78162         buf2 definition.
78163
78164         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
78165
78166         [BZ #12432]
78167         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
78168         (dummy_getcfa): New function.
78169         (init): Get _Unwind_GetCFA address, use dummy if not found.
78170         (backtrace_helper): In recursion check, also check whether CFA changes.
78171         (__backtrace): Completely initialize arg.
78172
78173         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
78174         storing incomplete byte sequence in state object.  Avoid testing for
78175         guaranteed too small input if we know there is enough data available.
78176
78177 2011-05-11  Andreas Schwab  <schwab@redhat.com>
78178
78179         * Makeconfig (+link-pie): Indent.
78180         * Rules (binaries-pie): Define if $(have-fpie) and
78181         $(build-shared).
78182         (binaries-shared): Also filter out $(binaries-pie).
78183         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
78184         * nscd/Makefile (others-pie): Add nscd.
78185         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
78186         ($(objpfx)nscd): Remove command override.
78187         * login/Makefile (others-pie): Add pt_chown.
78188         ($(objpfx)pt_chown): Remove command override.
78189         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
78190         remove command overrides.
78191
78192 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
78193
78194         * libio/tst_putwc.c: Fix error messages.
78195
78196         [BZ #12724]
78197         * libio/fileops.c (_IO_new_file_close_it): Always flush when
78198         currently writing and seek to current position when not.
78199         * libio/Makefile (tests): Add bug-fclose1.
78200         * libio/bug-fclose1.c: New file.
78201
78202 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
78203
78204         [BZ #12511]
78205         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
78206         don't set DF_1_NODELETE here.
78207         (do_lookup_x): When entering new entry test for copy relocation
78208         and if necessary set DF_1_NODELETE flag.
78209         * elf/tst-unique4.cc: New file.
78210         * elf/tst-unique4.h: New file.
78211         * elf/tst-unique4lib.cc: New file.
78212         * elf/Makefile: Add rules to build and run tst-unique4.
78213         Patch by Piotr Bury <pbury@goahead.com>.
78214
78215 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
78216
78217         [BZ #12052]
78218         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
78219
78220         [BZ #12625]
78221         * misc/mntent_r.c (addmntent): Flush the stream after the output
78222
78223         [BZ #12393]
78224         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
78225         (is_trusted_path_normalize): Skip initial colon.  Append slash
78226         to empty buffer.  Duplicate is_trusted_path code but allow
78227         constructed patch to be prefix.
78228         (is_dst): Allow $ORIGIN followed by /.
78229         (_dl_dst_substitute): Correct clearing of check_for_trusted.
78230         Correct testing of result of is_trusted_path_normalize
78231         (decompose_rpath): Fix warning.
78232
78233 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
78234
78235         [BZ #11257]
78236         * grp/initgroups.c (internal_getgrouplist): When we found the service
78237         list through the initgroups entry in nsswitch.conf do not always
78238         continue on a successful lookup.  Don't always use the
78239         __nss_group_database value if it is set.
78240         * nss/nsswitch.conf (initgroups): Change action for successful db
78241         lookup to continue for compatibility.
78242
78243 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
78244
78245         [BZ #11532]
78246         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
78247         and CP774 modules.
78248         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
78249         and CP774 modules.
78250         * iconvdata/tst-tables.sh: Likewise.
78251         * iconvdata/cp770.c: New file.
78252         * iconvdata/cp771.c: New file.
78253         * iconvdata/cp772.c: New file.
78254         * iconvdata/cp773.c: New file.
78255         * iconvdata/cp774.c: New file.
78256         * iconvdata/testdata/CP770: New file.
78257         * iconvdata/testdata/CP770..UTF8: New file.
78258         * iconvdata/testdata/CP771: New file.
78259         * iconvdata/testdata/CP771..UTF8: New file.
78260         * iconvdata/testdata/CP772: New file.
78261         * iconvdata/testdata/CP772..UTF8: New file.
78262         * iconvdata/testdata/CP773: New file.
78263         * iconvdata/testdata/CP773..UTF8: New file.
78264         * iconvdata/testdata/CP774: New file.
78265         * iconvdata/testdata/CP774..UTF8: New file.
78266
78267         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
78268         END CHARMAP line.
78269         * iconvdata/gen-8bit-gap.sh: Likewise.
78270         * iconvdata/gen-8bit.sh: Likewise.
78271
78272         * locale/iso-639.def: Add ary entry.
78273
78274         [BZ #11258]
78275         * locale/C-translit.h.in: Add U20A1 transliteration.
78276
78277         [BZ #12178]
78278         * locale/iso-639.def: Add wae entry.
78279         Patch by Kevin Bortis <bortis@translate-wae.ch>.
78280
78281         [BZ #12545]
78282         * locale/programs/localedef.c (construct_output_path): Use ssize_t
78283         for n.
78284
78285         [BZ #12711]
78286         * locale/C-translit.h.in: Add entry for U20B9.
78287         Patch by pravin.d.s@gmail.com.
78288
78289 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
78290
78291         [BZ #12713]
78292         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
78293         ENAMETOOLONG use generic getcwd.
78294         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
78295         in rtld.  Use *stat64.
78296         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
78297         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
78298         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
78299         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
78300         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
78301         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
78302         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
78303         __fstatat64 macros.
78304         * include/dirent.h: Add libc_hidden_proto for rewinddir.
78305         * dirent/rewinddir.c: Add libc_hidden_def.
78306         * sysdeps/mach/hurd/rewinddir.c: Likewise.
78307         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
78308
78309         * include/dirent.h (__alloc_dir): Add flags parameter.
78310         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
78311         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
78312         __alloc_dir.
78313         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
78314         from fdopendir if O_CLOEXEC is already set.
78315
78316 2011-03-15  Alan Modra  <amodra@gmail.com>
78317
78318         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
78319         l_tls_firstbyte_offset non-zero.  Save padding offset in
78320         l_tls_firstbyte_offset for later use.
78321         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
78322         freeing static tls block.
78323
78324 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
78325
78326         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
78327         where #ifdef was intended.  The intent is to prevent ARG_MAX from
78328         being defined by the kernel headers.
78329
78330 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
78331
78332         [BZ #12734]
78333         * resolv/resolv.h: Define RES_NOTLDQUERY.
78334         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
78335         no-tld-query and set RES_NOTLDQUERY.
78336         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
78337         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
78338         modern BIND to search name as TLD unless forbidden.
78339
78340 2011-05-07  Petr Baudis  <pasky@suse.cz>
78341             Ulrich Drepper  <drepper@gmail.com>
78342
78343         [BZ #12393]
78344         * elf/dl-load.c (fillin_rpath): Move trusted path check...
78345         (is_trusted_path): ...to here.
78346         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
78347         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
78348         using is_trusted_path_normalize() in setuid scripts.
78349
78350 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
78351
78352         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
78353         __BEGIN/__END_DECLS.
78354
78355 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
78356
78357         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
78358         NSS_STATUS_NOTFOUND if no record was found.
78359
78360 2011-05-05  Andreas Schwab  <schwab@redhat.com>
78361
78362         * sunrpc/Makefile (headers): Add rpc/netdb.h.
78363         (headers-not-in-tirpc): Remove rpc/netdb.h
78364         * resolv/netdb.h: Revert last change.
78365
78366 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
78367
78368         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
78369         circular dependency between libgcc.a and libc.a.
78370
78371 2011-05-05  Andreas Schwab  <schwab@redhat.com>
78372
78373         * resolv/netdb.h: Don't include <rpc/netdb.h>.
78374         * nis/Makefile: Don't install rpcsvc/*.
78375         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
78376         instead of <rpc/types.h>.
78377         (MAXHOSTNAMELEN): Define.
78378
78379 2011-05-03  Andreas Schwab  <schwab@redhat.com>
78380
78381         * elf/ldconfig.c (add_dir): Don't crash on empty path.
78382
78383 2011-04-28  Maciej Babinski  <mbabinski@google.com>
78384
78385         [BZ #12714]
78386         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
78387         gethostbyname4_r when IPv6 results are possible.
78388
78389 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
78390
78391         [BZ #12723]
78392         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
78393         _PC_PIPE_BUF handling.
78394
78395 2011-04-30  Bruno Haible  <bruno@clisp.org>
78396
78397         [BZ #12717]
78398         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
78399         * resolv/netdb.h (getnameinfo): Change type of flags parameter
78400         to 'int'.
78401         * inet/getnameinfo.c (getnameinfo): Likewise.
78402
78403 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
78404
78405         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
78406         to groups setting in database lookup.
78407         * nss/nsswitch.conf: Add initgroups entry.
78408
78409 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
78410
78411         [BZ #12685]
78412         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
78413         mode string.
78414         Patch by Eric Blake <eblake@redhat.com>.
78415
78416 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
78417
78418         * sunrpc/Makefile (need-export-routines): Add svc_run.
78419         (routines): Remove svc_run.
78420         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
78421         * sunrpc/clnt_perr.c (clnt_perrno): Export.
78422         * sunrpc/svc_run.c (svc_run): Likewise.
78423         * sunrpc/svc_udp.c (svcudp_create): Likewise.
78424
78425 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
78426
78427         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
78428         problem in reallocation in last patch.
78429
78430 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
78431
78432         * sunrpc/Makefile: Move inclusion of Rules.
78433
78434 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
78435
78436         * nss/nss_files/files-initgroups.c: New file.
78437         * nss/Makefile (libnss_files-routines): Add files-initgroups.
78438         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
78439         _nss_files_initgroups_dyn.
78440
78441 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
78442
78443         * elf/elf.h (R_ARM_IRELATIVE): Define.
78444
78445 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
78446
78447         * po/ru.po: Update from translation team.
78448
78449 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
78450
78451         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
78452         dependencies.
78453
78454 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
78455
78456         [BZ #12653]
78457         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
78458         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
78459         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
78460         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
78461         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
78462
78463 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
78464
78465         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
78466         differing bytes.
78467         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
78468         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
78469         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
78470
78471 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
78472
78473         [BZ #12420]
78474         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
78475         storing it.
78476         * stdlib/bug-getcontext.c: New file.
78477         * stdlib/Makefile: Add rules to build and run bug-getcontext.
78478
78479 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78480
78481         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
78482         instructions into .machine "z9-109".
78483         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
78484         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
78485
78486 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78487
78488         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
78489         between environment variables and auxiliary vector.
78490
78491 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
78492
78493         * Makefile: Add rules to build linkobj/libc.so.
78494         * include/libc-symbols.h: Define libc_hidden_nolink.
78495         * include/rpc/auth.h: Mark functions which are to be hidden.
78496         * include/rpc/auth_des.h: Likewise.
78497         * include/rpc/auth_unix.h: Likewise.
78498         * include/rpc/clnt.h: Likewise.
78499         * include/rpc/des_crypt.h: Likewise.
78500         * include/rpc/key_prot.h: Likewise.
78501         * include/rpc/pmap_clnt.h: Likewise.
78502         * include/rpc/pmap_prot.h: Likewise.
78503         * include/rpc/pmap_rmt.h: Likewise.
78504         * include/rpc/rpc_msg.h: Likewise.
78505         * include/rpc/svc.h: Likewise.
78506         * include/rpc/svc_auth.h: Likewise.
78507         * include/rpc/xdr.h: Likewise.
78508         * nis/Makefile: Link all DSOs against linkobj/libc.so.
78509         * nss/Makefile: Likewise.
78510         * sunrpc/Makefile: Don't install headers.  Build library with normal
78511         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
78512         * sunrpc/auth_des.c: Hide exported symbols by default, export some
78513         for the compat linking library.  Remove use of INTDEF/INTUSE.
78514         * sunrpc/auth_none.c: Likewise.
78515         * sunrpc/auth_unix.c: Likewise.
78516         * sunrpc/authdes_prot.c: Likewise.
78517         * sunrpc/authuxprot.c: Likewise.
78518         * sunrpc/clnt_gen.c: Likewise.
78519         * sunrpc/clnt_perr.c: Likewise.
78520         * sunrpc/clnt_raw.c: Likewise.
78521         * sunrpc/clnt_simp.c: Likewise.
78522         * sunrpc/clnt_tcp.c: Likewise.
78523         * sunrpc/clnt_udp.c: Likewise.
78524         * sunrpc/clnt_unix.c: Likewise.
78525         * sunrpc/des_crypt.c: Likewise.
78526         * sunrpc/des_soft.c: Likewise.
78527         * sunrpc/get_myaddr.c: Likewise.
78528         * sunrpc/key_call.c: Likewise.
78529         * sunrpc/key_prot.c: Likewise.
78530         * sunrpc/netname.c: Likewise.
78531         * sunrpc/pm_getmaps.c: Likewise.
78532         * sunrpc/pm_getport.c: Likewise.
78533         * sunrpc/pmap_clnt.c: Likewise.
78534         * sunrpc/pmap_prot.c: Likewise.
78535         * sunrpc/pmap_prot2.c: Likewise.
78536         * sunrpc/pmap_rmt.c: Likewise.
78537         * sunrpc/publickey.c: Likewise.
78538         * sunrpc/rpc_cmsg.c: Likewise.
78539         * sunrpc/rpc_common.c: Likewise.
78540         * sunrpc/rpc_dtable.c: Likewise.
78541         * sunrpc/rpc_prot.c: Likewise.
78542         * sunrpc/rpc_thread.c: Likewise.
78543         * sunrpc/rtime.c: Likewise.
78544         * sunrpc/svc.c: Likewise.
78545         * sunrpc/svc_auth.c: Likewise.
78546         * sunrpc/svc_authux.c: Likewise.
78547         * sunrpc/svc_raw.c: Likewise.
78548         * sunrpc/svc_run.c: Likewise.
78549         * sunrpc/svc_simple.c: Likewise.
78550         * sunrpc/svc_tcp.c: Likewise.
78551         * sunrpc/svc_udp.c: Likewise.
78552         * sunrpc/svc_unix.c: Likewise.
78553         * sunrpc/svcauth_des.c: Likewise.
78554         * sunrpc/xcrypt.c: Likewise.
78555         * sunrpc/xdr.c: Likewise.
78556         * sunrpc/xdr_array.c: Likewise.
78557         * sunrpc/xdr_float.c: Likewise.
78558         * sunrpc/xdr_intXX_t.c: Likewise.
78559         * sunrpc/xdr_mem.c: Likewise.
78560         * sunrpc/xdr_rec.c: Likewise.
78561         * sunrpc/xdr_ref.c: Likewise.
78562         * sunrpc/xdr_sizeof.c: Likewise.
78563         * sunrpc/xdr_stdio.c: Likewise.
78564
78565 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
78566
78567         [BZ #12650]
78568         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
78569         * sysdeps/ia64/dl-tls.h: Likewise.
78570         * sysdeps/powerpc/dl-tls.h: Likewise.
78571         * sysdeps/s390/dl-tls.h: Likewise.
78572         * sysdeps/sh/dl-tls.h: Likewise.
78573         * sysdeps/sparc/dl-tls.h: Likewise.
78574         * sysdeps/x86_64/dl-tls.h: Likewise.
78575         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
78576
78577 2011-03-14  Andreas Schwab  <schwab@redhat.com>
78578
78579         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
78580         rpath element also skip the following colon.
78581         (expand_dynamic_string_token): Add is_path parameter and pass
78582         down to DL_DST_REQUIRED and _dl_dst_substitute.
78583         (decompose_rpath): Call expand_dynamic_string_token with
78584         non-zero is_path.  Ignore empty rpaths.
78585         (_dl_map_object_from_fd): Call expand_dynamic_string_token
78586         with zero is_path.
78587
78588 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
78589
78590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
78591         Make cancelable.
78592
78593 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
78594
78595         [BZ #12655]
78596         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
78597         Patch by Filipe David Manana <fdmanana@apache.org>.
78598
78599 2011-04-07  Andreas Schwab  <schwab@redhat.com>
78600
78601         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
78602         Maintain aligned stack.
78603         (CHECK_RSP): Remove unused macro.
78604
78605 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
78606
78607         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
78608         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
78609
78610 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
78611
78612         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
78613
78614         * include/features.h: Mention __USE_XOPEN2K8 in comment.
78615
78616 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
78617
78618         [BZ #12518]
78619         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
78620         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
78621         * sysdeps/x86_64/memmove.c: New file.
78622         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
78623         (memcpy): Renamed to ...
78624         (__new_memcpy): This.
78625         (memcpy): Provide GLIBC_2_14 memcpy.
78626         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
78627         (memcpy): Provide GLIBC_2_2_5 memcpy.
78628
78629 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
78630
78631         [BZ #12631]
78632         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
78633
78634 2011-03-30  Andreas Schwab  <schwab@redhat.com>
78635
78636         * misc/syncfs.c: New file.
78637         * misc/Makefile (routines): Add syncfs.
78638         * posix/unistd.h: Declare syncfs.
78639         * sysdeps/unix/syscalls.list: Add syncfs.
78640
78641 2011-04-01  Andreas Schwab  <schwab@redhat.com>
78642
78643         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
78644         open_by_handle_at.
78645         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
78646         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
78647         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
78648         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
78649         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
78650         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
78651         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
78652
78653 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
78654
78655         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
78656         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
78657         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
78658         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
78659         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
78660         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
78661         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
78662
78663         * io/Makefile: Compile fallocate.c, fallocate64.c, and
78664         sync_file_range.c with -fexceptions.
78665         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
78666         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
78667         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
78668         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
78669         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
78670         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
78671         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
78672         sync_file_range as cancellation point
78673         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
78674         now a wrapper around __call_sync_file_range with cancellation handling.
78675         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
78676         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
78677         function name to __call_sync_file_range.
78678         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
78679         Add call_sync_file_range.
78680
78681 2011-04-01  Andreas Schwab  <schwab@redhat.com>
78682
78683         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
78684         bits/timex.h.
78685
78686 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
78687
78688         * iconv/iconv.h: Fix typo in comment.
78689         * io/fcntl.h: Likewise.
78690         * libio/stdio.h: Likewise.
78691         * posix/spawn.h: Likewise.
78692         * posix/unistd.h: Likewise.
78693         * stdlib/stdlib.h: Likewise.
78694         * time/time.h: Likewise.
78695         * wcsmbs/wchar.h: Likewise.
78696
78697         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
78698         open_by_handle): Add.
78699         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
78700         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
78701         Augment a few comments.
78702         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
78703         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
78704         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
78705         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
78706         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
78707         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
78708         open_by_handle.
78709
78710         * io/fcntl.h (AT_EMPTY_PATH): Define.
78711
78712 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
78713
78714         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
78715         * sysdeps/unix/sysv/linux/bits/time.h: New file.
78716         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
78717         to...
78718         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
78719         * Versions.def: Add GLIBC_2.14.
78720         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
78721         Export.
78722
78723 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
78724
78725         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
78726         round counter.
78727         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
78728
78729 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
78730
78731         [BZ #12597]
78732         * string/test-strncmp.c (do_page_test): New function.
78733         (check2): Likewise.
78734         (test_main): Call check2.
78735         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
78736
78737 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
78738
78739         [BZ #12587]
78740         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
78741         Handle cache information in CPU leaf 4.
78742         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
78743
78744 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
78745
78746         [BZ #12583]
78747         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
78748         character representation.
78749         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
78750
78751 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
78752
78753         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
78754         END(__isnan) to END(__isnanf) to match function entry point/label
78755         EALIGN(__isnanf,...).
78756
78757 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
78758
78759         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
78760
78761 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
78762
78763         [BZ #12510]
78764         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
78765         copy from the symbol referenced in the relocation to initialize the
78766         used variable.
78767         Patch by Piotr Bury <pbury@goahead.com>.
78768         * elf/Makefile: Add rules to build and tst-unique3.
78769         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
78770         * elf/tst-unique3.cc: New file.
78771         * elf/tst-unique3.h: New file.
78772         * elf/tst-unique3lib.cc: New file.
78773         * elf/tst-unique3lib2.cc: New file.
78774
78775         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
78776
78777 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
78778
78779         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
78780         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
78781         to _start.
78782
78783 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
78784
78785         * elf/dl-load.c (_dl_map_object): If we are looking for the first
78786         to-be-loaded object along a path to loader is ld.so.
78787
78788 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
78789             Ulrich Drepper  <drepper@gmail.com>
78790
78791         * sysdeps/x86_64/memset.S: After aligning destination, code
78792         branches to different locations depending on the value of
78793         misalignment, when multiarch is enabled. Fix this.
78794
78795 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
78796
78797         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
78798         Set _x86_64_preferred_memory_instruction for AMD processsors.
78799         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
78800         Set bit_Prefer_SSE_for_memop for AMD processors.
78801
78802 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
78803
78804         * libio/fmemopen.c (fmemopen): Optimize a bit.
78805
78806 2011-03-03  Andreas Schwab  <schwab@redhat.com>
78807
78808         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
78809
78810 2011-03-03  Roland McGrath  <roland@redhat.com>
78811
78812         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
78813
78814 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
78815
78816         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
78817         __bzero_ultra1 instead of __memset_ultra1.
78818
78819 2011-02-23  Andreas Schwab  <schwab@redhat.com>
78820             Ulrich Drepper  <drepper@gmail.com>
78821
78822         [BZ #12509]
78823         * include/link.h (struct link_map): Add l_orig_initfini.
78824         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
78825         returning unsuccessfully.
78826         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
78827         close of a file loaded at startup, restore the original l_initfini
78828         list.
78829         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
78830         list, store the pointer.
78831         * elf/Makefile ($(objpfx)noload-mem): New rule.
78832         (noload-ENV): Define.
78833         (tests): Add $(objpfx)noload-mem.
78834         * elf/noload.c: Include <memcheck.h>.
78835         (main): Call mtrace.  Close all opened handles.
78836
78837 2011-02-17  Andreas Schwab  <schwab@redhat.com>
78838
78839         [BZ #12454]
78840         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
78841         dependencies are missing.
78842
78843 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
78844
78845         Fix __if_freereq crash: Unlike the generic version which uses free,
78846         Hurd needs munmap.
78847         * sysdeps/mach/hurd/ifreq.h: New file.
78848
78849 2011-01-27  Petr Baudis  <pasky@suse.cz>
78850             Ulrich Drepper  <drepper@gmail.com>
78851
78852         [BZ 12445]#
78853         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
78854         to extend_alloca().
78855         * stdio-common/bug23.c: New file.
78856         * stdio-common/Makefile (tests): Add bug23.
78857
78858 2010-09-28  Andreas Schwab  <schwab@redhat.com>
78859             Ulrich Drepper  <drepper@gmail.com>
78860
78861         [BZ #12489]
78862         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
78863         before performing relro protection.  At old place add assertion
78864         to make sure nothing changed.
78865
78866 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
78867             Glauber de Oliveira Costa  <glommer@gmail.com>
78868
78869         * elf/elf.h: Add new ARM TLS relocs.
78870
78871 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
78872
78873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
78874         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
78875         cast from r3.
78876         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
78877         'tests' variable.
78878         * sysdeps/wordsize-64/tst-writev.c: New file.
78879
78880 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
78881
78882         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
78883         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
78884         insns in _dl_start to prevent a TOC reference before relocs are
78885         resolved.
78886
78887 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
78888
78889         [BZ #12469]
78890         * Makeconfig: Remove RANLIB definition.
78891         * Makerules: Don't use RANLIB.
78892         * aclocal.m4: Remove ranlib test.
78893         * configure.in: No need to check for ranlib.
78894         * elf/rtld-Rules: Don't use RANLIB.
78895
78896 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
78897
78898         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
78899         protection macro.
78900         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
78901         inclusion protection macro.
78902
78903         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
78904         SIGRTMIN and SIGRTMAX and print information in that case only when
78905         SIGRTMIN is defined.
78906
78907 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
78908
78909         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
78910         arginfo fn returning -1.
78911
78912         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
78913         and thousands string is zero terminated.
78914
78915 2011-02-03  Andreas Schwab  <schwab@redhat.com>
78916
78917         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
78918         sysdeps/unix/sysv/linux/bits/socket.h.
78919
78920 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
78921
78922         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
78923         (__CPU_COUNT): Remove old macros.
78924         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
78925         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
78926         (__CPU_ALLOC, __CPU_FREE): Add macros.
78927         (__sched_cpualloc, __sched_cpufree): Add declarations.
78928
78929 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
78930
78931         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
78932         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
78933         * nscd/aicache.c (addhstaiX): Return timeout of added value.
78934         (readdhstai): Return value of addhstaiX call.
78935         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
78936         (addgrbyX): Return value returned by cache_addgr.
78937         (readdgrbyname): Return value returned by addgrbyX.
78938         (readdgrbygid): Likewise.
78939         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
78940         (addpwbyX): Return value returned by cache_addpw.
78941         (readdpwbyname): Return value returned by addhstbyX.
78942         (readdpwbyuid): Likewise.
78943         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
78944         (addservbyX): Return value returned by cache_addserv.
78945         (readdservbyname): Return value returned by addservbyX:
78946         (readdservbyport): Likewise.
78947         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
78948         (addhstbyX): Return value returned by cache_addhst.
78949         (readdhstbyname): Return value returned by addhstbyX.
78950         (readdhstbyaddr): Likewise.
78951         (readdhstbynamev6): Likewise.
78952         (readdhstbyaddrv6): Likewise.
78953         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
78954         (readdinitgroups): Return value returned by addinitgroupsX.
78955         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
78956         (prune_cache): Keep track of timeout value of re-added entries.
78957         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
78958         * nscd/nscd.h: Adjust prototypes of readd* functions.
78959
78960 2011-02-04  Roland McGrath  <roland@redhat.com>
78961
78962         * nis/nis_server.c (nis_servstate): Use the right name for 0.
78963         (nis_stats): Likewise.
78964         * nis/nis_modify.c (nis_modify): Likewise.
78965         * nis/nis_remove.c (nis_remove): Likewise.
78966         * nis/nis_add.c (nis_add): Likewise.
78967
78968         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
78969
78970         * posix/fnmatch_loop.c: Add some consts.
78971
78972         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
78973
78974 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
78975
78976         [BZ #12460]
78977         * config.make.in (config-cflags-novzeroupper): Define.
78978         * configure.in: Substitute libc_cv_cc_novzeroupper.
78979         * elf/Makefile (AVX-CFLAGS): Define.
78980         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
78981         (CFLAGS-tst-auditmod4a.c): Likewise.
78982         (CFLAGS-tst-auditmod4b.c): Likewise.
78983         (CFLAGS-tst-auditmod6b.c): Likewise.
78984         (CFLAGS-tst-auditmod6c.c): Likewise.
78985         (CFLAGS-tst-auditmod7b.c): Likewise.
78986         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
78987
78988 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
78989
78990         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
78991         function to the callback.
78992         Patch partly by Jiri Olsa <jolsa@redhat.com>.
78993
78994 2011-02-02  Andreas Schwab  <schwab@redhat.com>
78995
78996         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
78997         of errno.
78998
78999 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
79000
79001         [BZ #11724]
79002         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
79003         of constructors.
79004         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
79005         of destructors.
79006         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
79007
79008         [BZ #11724]
79009         * elf/Makefile: Add rules to build and run new test.
79010         * elf/tst-initorder.c: New file.
79011         * elf/tst-initorder.exp: New file.
79012         * elf/tst-initordera1.c: New file.
79013         * elf/tst-initordera2.c: New file.
79014         * elf/tst-initordera3.c: New file.
79015         * elf/tst-initordera4.c: New file.
79016         * elf/tst-initorderb1.c: New file.
79017         * elf/tst-initorderb2.c: New file.
79018         * elf/tst-order-a1.c: New file.
79019         * elf/tst-order-a2.c: New file.
79020         * elf/tst-order-a3.c: New file.
79021         * elf/tst-order-a4.c: New file.
79022         * elf/tst-order-b1.c: New file.
79023         * elf/tst-order-b2.c: New file.
79024         * elf/tst-order-main.c: New file.
79025         New test case by George Gensure <werkt0@gmail.com>.
79026
79027 2010-10-01  Andreas Schwab  <schwab@redhat.com>
79028
79029         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
79030         decoding ACE if AI_CANONIDN.
79031
79032 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
79033
79034         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
79035
79036 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
79037
79038         * version.h (RELEASE): Bump for 2.13 release.
79039         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
79040
79041         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
79042
79043         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
79044         MADV_NOHUGEPAGE.
79045         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
79046         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
79047         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
79048         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
79049         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
79050         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
79051
79052         * posix/getconf.c: Update copyright year.
79053         * catgets/gencat.c: Likewise.
79054         * csu/version.c: Likewise.
79055         * debug/catchsegv.sh: Likewise.
79056         * debug/xtrace.sh: Likewise.
79057         * elf/ldconfig.c: Likewise.
79058         * elf/ldd.bash.in: Likewise.
79059         * elf/sprof.c (print_version): Likewise.
79060         * iconv/iconv_prog.c: Likewise.
79061         * iconv/iconvconfig.c: Likewise.
79062         * locale/programs/locale.c: Likewise.
79063         * locale/programs/localedef.c: Likewise.
79064         * malloc/memusage.sh: Likewise.
79065         * malloc/mtrace.pl: Likewise.
79066         * nscd/nscd.c (print_version): Likewise.
79067         * nss/getent.c: Likewise.
79068
79069         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
79070         PF_CAIF, and PF_ALG.
79071         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
79072
79073 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
79074
79075         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
79076         (modules-names): Use them.
79077         (ifunc-test-modules, ifunc-pie-tests): Define.
79078         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
79079         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
79080         (test-extras): Likewise.
79081         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
79082         $(compile-command.c).
79083         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
79084         (all-built-dso): Define.
79085         (check-textrel.out, check-execstack.out): Depend on it.
79086
79087         * configure.in: Don't override --enable-multi-arch.
79088
79089 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
79090
79091         [BZ #6812]
79092         * nscd/hstcache.c (tryagain): Define.
79093         (cache_addhst): Return tryagain not notfound for temporary errors.
79094         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
79095         failed.
79096
79097 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
79098
79099         [BZ #10563]
79100         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
79101         to make the syscall.
79102         * sysdeps/unix/sysv/linux/setgroups.c: New file.
79103
79104         [BZ #12378]
79105         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
79106         and fall back to matching as normal character if the string ends before
79107         the matching ']' is found.  This is what POSIX requires.
79108         * posix/testfnm.c: Adjust test result.
79109         * posix/globtest.sh: Adjust test result.  Add new test.
79110         * posix/tst-fnmatch.input: Likewise.
79111         * posix/tst-fnmatch2.c: Add new test.
79112
79113 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
79114
79115         * elf/Makefile (check-execstack): Revert last change.  Depend on
79116         check-execstack.h.
79117         (check-execstack.h): New target.
79118         (generated): Add check-execstack.h.
79119         * elf/check-execstack.c: Include "check-execstack.h".
79120         (main): Revert last change.
79121         (handle_file): Return zero if GNU_STACK is absent and
79122         DEFAULT_STACK_PERMS doesn't include PF_X.
79123
79124 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
79125
79126         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
79127         in child fails because the descriptor is already closed.
79128         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
79129         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
79130         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
79131
79132         [BZ #12397]
79133         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
79134         syscall.
79135
79136         [BZ #10484]
79137         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
79138         temporary buffer used to handle multi lookups locally.
79139         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
79140
79141 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
79142
79143         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
79144         loader is ld.so.
79145
79146 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
79147
79148         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
79149         alignment for SSE2.
79150
79151 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
79152
79153         [BZ #12394]
79154         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
79155         characters.  When rounding increased number of integer digits recompute
79156         number of groups.
79157         * stdio-common/tst-grouping.c: New file.
79158         * stdio-common/Makefile: Add rules to build and run tst-grouping.
79159
79160 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
79161
79162         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
79163         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
79164
79165         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
79166         void.
79167         * bits/select.h: Likewise.
79168
79169 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
79170
79171         * po/ja.po: Update from translation team.
79172
79173 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
79174
79175         [BZ #11155]
79176         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
79177         implementation just like for lxstat, fxstatat, et al.
79178
79179 2010-12-27  Jim Meyering  <meyering@redhat.com>
79180
79181         [BZ #12348]
79182         * posix/regexec.c (build_trtable): Return failure indication upon
79183         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
79184
79185 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
79186
79187         [BZ #12201]
79188         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
79189         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
79190         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
79191         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
79192
79193         [BZ #12207]
79194         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
79195
79196         [BZ #12204]
79197         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
79198         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
79199
79200 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
79201
79202         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
79203         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
79204         script has SORT_BY_INIT_PRIORITY.
79205         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
79206         NO_CTORS_DTORS_SECTIONS is defined.
79207         * elf/soinit.c: Likewise.
79208         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
79209         NO_CTORS_DTORS_SECTIONS is defined.
79210         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
79211         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
79212         * sysdeps/sh/init-first.c: Likewise.
79213         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
79214
79215 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
79216
79217         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
79218         always use the slow path.
79219
79220 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
79221
79222         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
79223         similar rule which adds the sysdep directories to the header search in
79224         order to pick up the correct platform stackinfo.h.
79225         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
79226         perform test if it is, otherwise return successfully without testing.
79227         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
79228         DEFAULT_STACK_PERMS define in stackinfo.h.
79229         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
79230         defined in stackinfo.h.
79231         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
79232         DEFAULT_STACK_PERMS defined in stackinfo.h.
79233         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
79234         * sysdeps/ia64/stackinfo.h: Likewise.
79235         * sysdeps/s390/stackinfo.h: Likewise.
79236         * sysdeps/sh/stackinfo.h: Likewise.
79237         * sysdeps/sparc/stackinfo.h: Likewise.
79238         * sysdeps/x86_64/stackinfo.h: Likewise.
79239         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
79240         PF_X for powerpc64.  Retain PF_X for powerpc32.
79241
79242 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
79243
79244         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
79245         accurately.
79246         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
79247         GETDENTS_64BIT_ALIGNED.
79248
79249 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
79250
79251         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
79252
79253 2010-12-10  Andreas Schwab  <schwab@redhat.com>
79254
79255         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
79256         _GNU_SOURCE.
79257
79258         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
79259         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
79260         Remove __restrict.
79261         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
79262         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
79263
79264 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
79265
79266         [BZ #11655]
79267         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
79268         are initialized.
79269
79270 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
79271
79272         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
79273
79274 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
79275
79276         * po/it.po: Update from translation team.
79277
79278 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
79279
79280         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
79281         unused codes.
79282
79283 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
79284
79285         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
79286
79287 2010-11-24  Andreas Schwab  <schwab@redhat.com>
79288
79289         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
79290         specially.
79291         (gaih_getanswer_slice): Likewise.
79292
79293 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
79294
79295         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
79296
79297 2010-05-31  Petr Baudis  <pasky@suse.cz>
79298
79299         [BZ #11149]
79300         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
79301         silently even in the chroot mode.
79302
79303 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
79304
79305         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
79306         last patch a bit.  Pretty printing
79307
79308 2010-05-31  Petr Baudis <pasky@suse.cz>
79309
79310         [BZ #10085]
79311         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
79312         initialization of skip_initgroups_dyn.
79313
79314 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
79315
79316         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
79317         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
79318
79319 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
79320
79321         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
79322
79323 2010-11-11  Andreas Schwab  <schwab@redhat.com>
79324
79325         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
79326         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
79327         (tst-fnmatch-ENV): Set MALLOC_TRACE.
79328         ($(objpfx)tst-fnmatch-mem): New rule.
79329         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
79330         * posix/tst-fnmatch.c (main): Call mtrace.
79331
79332 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
79333
79334         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79335         Support Intel processor model 6 and model 0x2c.
79336
79337 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
79338
79339         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
79340           signed comparison.
79341
79342 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
79343
79344         [BZ #12205]
79345         * string/test-strncasecmp.c (check_result): New function.
79346         (do_one_test): Use it.
79347         (check1): New function.
79348         (test_main): Use it.
79349         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
79350         Support strcasecmp and strncasecmp.
79351
79352 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
79353
79354         [BZ #12194]
79355         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
79356         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79357
79358 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
79359
79360         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
79361         IFUNC support.
79362         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79363         memset-x86-64.
79364         * sysdeps/x86_64/multiarch/bzero.S: New file.
79365         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
79366         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
79367         * sysdeps/x86_64/multiarch/memset.S: New file.
79368         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
79369         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79370         Set bit_Prefer_SSE_for_memop for Intel processors.
79371         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
79372         Define.
79373         (index_Prefer_SSE_for_memop): Define.
79374         (HAS_PREFER_SSE_FOR_MEMOP): Define.
79375
79376 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
79377
79378         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
79379         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
79380
79381 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
79382
79383         [BZ #12191]
79384         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
79385         (__x86_64_raw_data_cache_size_half): Likewise.
79386         (__x86_64_raw_shared_cache_size): Likewise.
79387         (__x86_64_raw_shared_cache_size_half): Likewise.
79388
79389         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
79390         (__x86_64_raw_data_cache_size_half): Likewise.
79391         (__x86_64_raw_shared_cache_size): Likewise.
79392         (__x86_64_raw_shared_cache_size_half): Likewise.
79393         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
79394         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
79395         and __x86_64_raw_shared_cache_size_half.  Round
79396         __x86_64_data_cache_size_half, __x86_64_data_cache_size
79397         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
79398         to multiple of 256 bytes.
79399
79400 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
79401
79402         [BZ #12167]
79403         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
79404         of inacessible symlinks.  Verify result of symlink before returning it.
79405         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
79406         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
79407
79408 2010-10-28  Erich Ritz  <erichritz@gmail.com>
79409
79410         * math/math.h (isinf): Fix typo in comment.
79411
79412 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
79413
79414         * po/da.po: Update from translation team.
79415
79416 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
79417
79418         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
79419         is added to the list.
79420
79421 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79422             Ulrich Drepper  <drepper@gmail.com>
79423
79424         * elf/dl-object.c (_dl_new_object): Don't append the new object to
79425         the global list here.  Move code to...
79426         (_dl_add_to_namespace_list): ...here.  New function.
79427         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
79428         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
79429         * elf/dl-load.c (lose): Don't remove the element from the list.
79430         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
79431         (_dl_map_object): Likewise.
79432
79433 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
79434
79435         [BZ #12159]
79436         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
79437         into all bytes of SSE register.
79438         Patch by Richard Li <richardpku@gmail.com>.
79439
79440 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
79441
79442         [BZ #12140]
79443         * malloc/malloc.c (_int_free): Fill correct number of bytes when
79444         perturbing.
79445
79446 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
79447
79448         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
79449         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
79450         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
79451         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
79452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
79453         submachine.
79454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
79455
79456 2010-10-22  Andreas Schwab  <schwab@redhat.com>
79457
79458         * include/dlfcn.h (__RTLD_SECURE): Define.
79459         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
79460         mode & __RTLD_SECURE instead.
79461         (open_path): Rename preloaded parameter to secure.
79462         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
79463         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
79464         * elf/dl-deps.c (openaux): Likewise.
79465         * elf/rtld.c (struct map_args): Remove is_preloaded.
79466         (map_doit): Don't use it.
79467         (dl_main): Likewise.
79468         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
79469         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
79470
79471 2010-09-09  Andreas Schwab  <schwab@redhat.com>
79472
79473         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
79474         (sysd-rules-targets): Remove duplicates.
79475         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
79476         rtld-%.$o dependency.
79477
79478 2010-10-18  Andreas Schwab  <schwab@redhat.com>
79479
79480         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
79481         _dl_map_object do it.
79482
79483 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
79484
79485         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
79486         fast fma builtins, define the macros in the C99 standard.
79487         (FP_FAST_FMAF): Likewise.
79488         (FP_FAST_FMAL): Likewise.
79489         * sysdeps/x86_64/bits/mathdef.h: Likewise.
79490
79491         * bits/mathdef.h: Update copyright year.
79492         * sysdeps/powerpc/bits/mathdef.h: Likewise.
79493
79494 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
79495
79496         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
79497         builtins, define the macros in the C99 standard.
79498         (FP_FAST_FMAF): Likewise.
79499         (FP_FAST_FMAL): Likewise.
79500         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
79501         multiply/add.
79502         (FP_FAST_FMAF): Likewise.
79503
79504 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
79505
79506         [BZ #3268]
79507         * math/libm-test.inc (fma_test): Some new testcases.
79508         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
79509         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
79510         y and infinite z.  Do multiplication by C already in long double.
79511         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
79512         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
79513         y and infinite z.  Do bitwise or of inexact bit into u.d.
79514         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
79515         * sysdeps/i386/fpu/s_fmaf.S: Removed.
79516         * sysdeps/i386/fpu/s_fma.S: Removed.
79517         * sysdeps/i386/fpu/s_fmal.S: Removed.
79518
79519 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
79520
79521         [BZ #3268]
79522         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
79523         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
79524         computation is not scheduled after fetestexcept.  Fix value
79525         of minimum denormal long double.
79526
79527 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
79528
79529         [BZ #3268]
79530         * math/libm-test.inc (fma_test): Add some more tests.
79531         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
79532         correctly.
79533
79534 2010-10-15  Andreas Schwab  <schwab@redhat.com>
79535
79536         * scripts/data/localplt-s390-linux-gnu.data: New file.
79537         * scripts/data/localplt-s390x-linux-gnu.data: New file.
79538
79539 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
79540
79541         [BZ #3268]
79542         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
79543         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
79544         instead of dbl-64.
79545         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
79546         inlines.
79547         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
79548         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
79549         if one of x and y is very large and the other is subnormal.
79550         * sysdeps/s390/fpu/s_fmaf.c: New file.
79551         * sysdeps/s390/fpu/s_fma.c: New file.
79552         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
79553         * sysdeps/powerpc/fpu/s_fma.S: New file.
79554         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
79555         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
79556         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
79557
79558 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
79559
79560         [BZ #3268]
79561         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
79562         fma tests.
79563         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
79564         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
79565         * sysdeps/i386/i686/multiarch/s_fma.c: Include
79566         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
79567         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
79568         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
79569         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
79570
79571 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
79572
79573         [BZ #12078]
79574         * posix/regcomp.c (parse_branch): One more memory leak plugged.
79575         * posix/bug-regex31.input: Add test case.
79576
79577 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
79578
79579         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
79580         * posix/bug-regex31.input: New file.
79581
79582         [BZ #12078]
79583         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
79584         (parse_sub_exp): Fix last change, use postorder.
79585
79586         * posix/bug-regex31.c: New file.
79587         * posix/Makefile: Add rules to build and run bug-regex31.
79588
79589         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
79590
79591         [BZ #12078]
79592         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
79593
79594         [BZ #12108]
79595         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
79596         to have entries in sys_siglist.
79597
79598         [BZ #12093]
79599         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
79600         be NULL.
79601
79602 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
79603
79604         [BZ #3268]
79605         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
79606         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
79607         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
79608         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
79609         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
79610         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
79611         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
79612         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
79613         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
79614         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
79615         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
79616         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
79617         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
79618         * math/ftestexcept.c (fetestexcept): Likewise.
79619         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
79620         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
79621         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
79622         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
79623         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
79624         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
79625         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
79626
79627 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
79628
79629         [BZ #12107]
79630         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
79631         newline.
79632
79633 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
79634
79635         * string/bug-strstr1.c: New file.
79636         * string/Makefile: Add rules to build and run bug-strstr1.
79637
79638 2010-10-05  Eric Blake  <eblake@redhat.com>
79639
79640         [BZ #12092]
79641         * string/str-two-way.h (two_way_long_needle): Always clear memory
79642         when skipping input due to the shift table.
79643
79644 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
79645
79646         [BZ #12005]
79647         * malloc/mcheck.c: Handle large requests.
79648
79649         [BZ #12077]
79650         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
79651         for strncmp and strncasecmp.
79652         * string/stratcliff.c: Add tests for strcmp and strncmp.
79653         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
79654
79655 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79656
79657         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
79658         __set_fpscr.
79659
79660 2010-09-30  Andreas Jaeger  <aj@suse.de>
79661
79662         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
79663         (CGROUP_SUPER_MAGIC): Define.
79664         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
79665         Handle btrfs and cgroup file systems.
79666         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
79667         Likewise.
79668
79669 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
79670
79671         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
79672         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
79673
79674 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79675
79676         [BZ #12067]
79677         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
79678         trying to locate the ELF header.
79679
79680 2010-09-27  Andreas Schwab  <schwab@redhat.com>
79681
79682         [BZ #11611]
79683         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
79684         Mask out sign-bit copies when constructing f_fsid.
79685
79686 2010-09-24  Petr Baudis <pasky@suse.cz>
79687
79688         * debug/stack_chk_fail_local.c: Add missing licence exception.
79689         * debug/warning-nop.c: Likewise.
79690
79691 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
79692
79693         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
79694         implementing getdents64 using getdents syscall, set d_type if
79695         __ASSUME_GETDENTS32_D_TYPE.
79696
79697 2010-09-16  Andreas Schwab  <schwab@redhat.com>
79698
79699         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
79700         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
79701
79702 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
79703
79704         [BZ #12037]
79705         * posix/unistd.h: Undo change of feature selection for ftruncate from
79706         2010-01-11.
79707
79708 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
79709
79710         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
79711         detection.
79712
79713 2010-09-20  Andreas Schwab  <schwab@redhat.com>
79714
79715         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
79716         fanotify_mark.
79717         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
79718
79719 2010-09-14  Andreas Schwab  <schwab@redhat.com>
79720
79721         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
79722         variables after CHECK_SP call.
79723         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
79724
79725 2010-09-13  Andreas Schwab  <schwab@redhat.com>
79726             Ulrich Drepper  <drepper@redhat.com>
79727
79728         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
79729         re-relocationg ld.so.
79730         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
79731         _dl_init_paths call.
79732         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
79733         here anymore.
79734
79735 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
79736
79737         * resolv/res_init.c (__res_vinit): Count the default server we added.
79738
79739 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
79740             Ulrich Drepper  <drepper@redhat.com>
79741
79742         [BZ #11968]
79743         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
79744         (____longjmp_chk): Use %ebx for saving value across system call.
79745         Add unwind info.
79746
79747 2010-09-06  Andreas Schwab  <schwab@redhat.com>
79748
79749         * manual/Makefile: Don't mix pattern rules with normal rules.
79750
79751 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
79752
79753         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
79754         operation.
79755         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
79756         * libio/iofopncook.c (_IO_cookie_init): Likewise.
79757         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
79758         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
79759         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
79760         Likewise.
79761
79762 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
79763
79764         [BZ #11979]
79765         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
79766         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
79767
79768 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
79769
79770         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
79771         * sysdeps/x86_64/addmul_1.S: Likewise.
79772         * sysdeps/x86_64/lshift.S: Likewise.
79773         * sysdeps/x86_64/mul_1.S: Likewise.
79774         * sysdeps/x86_64/rshift.S: Likewise.
79775         * sysdeps/x86_64/sub_n.S: Likewise.
79776         * sysdeps/x86_64/submul_1.S: Likewise.
79777
79778 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
79779
79780         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
79781         Define __sched_param instead of SCHED_* and sched_param when
79782         <bits/sched.h> is included with __need_schedparam defined.
79783         * bits/sched.h [__need_schedparam]
79784         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
79785         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
79786         (__defined_schedparam): Define to 1.
79787         (__sched_param): New structure, identical to sched_param.
79788         (__need_schedparam): Undefine.
79789
79790 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
79791
79792         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
79793         (epoll_create1): Declare.
79794
79795         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
79796
79797 2010-08-31  Andreas Schwab  <schwab@redhat.com>
79798
79799         [BZ #7066]
79800         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
79801         shifting retval into place.
79802
79803 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
79804
79805         * nis/rpcsvc/nis.h: Update copyright notice.
79806         * nis/rpcsvc/nis.x: Likewise.
79807         * nis/rpcsvc/nis_callback.h: Likewise.
79808         * nis/rpcsvc/nis_callback.x: Likewise.
79809         * nis/rpcsvc/nis_object.x: Likewise.
79810         * nis/rpcsvc/nis_tags.h: Likewise.
79811         * nis/rpcsvc/yp.h: Likewise.
79812         * nis/rpcsvc/yp.x: Likewise.
79813         * nis/rpcsvc/ypupd.h: Likewise.
79814         * nis/yp_xdr.c: Likewise.
79815         * nis/ypupdate_xdr.c: Likewise.
79816
79817         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
79818         mainly the body of pmap_getport.  Add parameters to specify timeouts.
79819         (pmap_getport): Use __libc_rpc_getport.
79820         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
79821         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
79822         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
79823
79824 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
79825
79826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
79827         fanotify_mark.
79828
79829 2010-08-27  Roland McGrath  <roland@redhat.com>
79830
79831         * sysdeps/i386/i686/multiarch/Makefile
79832         (CFLAGS-varshift.c): New variable.
79833
79834 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
79835
79836         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
79837         * sysdeps/i386/i686/multiarch/varshift.c: New file.
79838
79839         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
79840
79841         * sysdeps/x86_64/strlen.S: Minimal code improvement.
79842
79843 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
79844
79845         * sysdeps/x86_64/strlen.S: Unroll the loop.
79846         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79847         strlen-sse2 strlen-sse2-bsf.
79848         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
79849         __strlen_no_bsf if bit_Slow_BSF is set.
79850         (__strlen_sse42): Removed.
79851         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
79852         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
79853
79854 2010-08-25  Roland McGrath  <roland@redhat.com>
79855
79856         * sysdeps/x86_64/multiarch/varshift.S: File removed.
79857         * sysdeps/x86_64/multiarch/varshift.c: New file.
79858         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
79859         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
79860         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
79861         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
79862
79863 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
79864
79865         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79866         strlen-sse2 strlen-sse2-bsf.
79867         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
79868         __strlen_sse2_bsf if bit_Slow_BSF is unset.
79869         (__strlen_sse2): Removed.
79870         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
79871         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
79872         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
79873         bit_Slow_BSF for Atom.
79874         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
79875         (index_Slow_BSF): Define.
79876         (HAS_SLOW_BSF): Define.
79877
79878 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
79879
79880         [BZ #10851]
79881         * resolv/res_init.c (__res_vinit): When no server address at all
79882         is given default to loopback.
79883
79884 2010-08-24  Roland McGrath  <roland@redhat.com>
79885
79886         * configure.in: Remove config-name.h generation.
79887         * configure: Regenerated.
79888         * config-name.in: File removed.
79889         * scripts/config-uname.sh: New file.
79890         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
79891         ($(objdir)config-name.h): New target.
79892
79893         * sunrpc/rpc_parse.h: Avoid nested comment.
79894
79895 2010-08-24  Richard Henderson  <rth@redhat.com>
79896             Ulrich Drepper  <drepper@redhat.com>
79897             H.J. Lu  <hongjiu.lu@intel.com>
79898
79899         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
79900         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
79901         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
79902         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
79903         _mm_alignr_epi8 with _mm_loadu_si128.
79904         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
79905         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
79906         (__m128i_shift_right): Removed.
79907         * sysdeps/i386/i686/multiarch/varshift.h: New file.
79908         * sysdeps/i386/i686/multiarch/varshift.S: New file.
79909         * sysdeps/x86_64/multiarch/varshift.h: New file.
79910         * sysdeps/x86_64/multiarch/varshift.S: New file.
79911
79912 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
79913
79914         * configure.in: Move assembler checks to before sysdep dir checking.
79915
79916 2010-08-20  Petr Baudis  <pasky@suse.cz>
79917
79918         * LICENSES: Sync the sunrpc license.
79919
79920 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
79921
79922         * sunrpc/auth_des.c: Update copyright notice once again.
79923         * sunrpc/auth_none.c: Likewise.
79924         * sunrpc/auth_unix.c: Likewise.
79925         * sunrpc/authdes_prot.c: Likewise.
79926         * sunrpc/authuxprot.c: Likewise.
79927         * sunrpc/bindrsvprt.c: Likewise.
79928         * sunrpc/clnt_gen.c: Likewise.
79929         * sunrpc/clnt_perr.c: Likewise.
79930         * sunrpc/clnt_raw.c: Likewise.
79931         * sunrpc/clnt_simp.c: Likewise.
79932         * sunrpc/clnt_tcp.c: Likewise.
79933         * sunrpc/clnt_udp.c: Likewise.
79934         * sunrpc/clnt_unix.c: Likewise.
79935         * sunrpc/des_crypt.c: Likewise.
79936         * sunrpc/des_soft.c: Likewise.
79937         * sunrpc/get_myaddr.c: Likewise.
79938         * sunrpc/getrpcport.c: Likewise.
79939         * sunrpc/key_call.c: Likewise.
79940         * sunrpc/key_prot.c: Likewise.
79941         * sunrpc/openchild.c: Likewise.
79942         * sunrpc/pm_getmaps.c: Likewise.
79943         * sunrpc/pm_getport.c: Likewise.
79944         * sunrpc/pmap_clnt.c: Likewise.
79945         * sunrpc/pmap_prot.c: Likewise.
79946         * sunrpc/pmap_prot2.c: Likewise.
79947         * sunrpc/pmap_rmt.c: Likewise.
79948         * sunrpc/rpc/auth.h: Likewise.
79949         * sunrpc/rpc/auth_unix.h: Likewise.
79950         * sunrpc/rpc/clnt.h: Likewise.
79951         * sunrpc/rpc/des_crypt.h: Likewise.
79952         * sunrpc/rpc/key_prot.h: Likewise.
79953         * sunrpc/rpc/netdb.h: Likewise.
79954         * sunrpc/rpc/pmap_clnt.h: Likewise.
79955         * sunrpc/rpc/pmap_prot.h: Likewise.
79956         * sunrpc/rpc/pmap_rmt.h: Likewise.
79957         * sunrpc/rpc/rpc.h: Likewise.
79958         * sunrpc/rpc/rpc_des.h: Likewise.
79959         * sunrpc/rpc/rpc_msg.h: Likewise.
79960         * sunrpc/rpc/svc.h: Likewise.
79961         * sunrpc/rpc/svc_auth.h: Likewise.
79962         * sunrpc/rpc/types.h: Likewise.
79963         * sunrpc/rpc/xdr.h: Likewise.
79964         * sunrpc/rpc_clntout.c: Likewise.
79965         * sunrpc/rpc_cmsg.c: Likewise.
79966         * sunrpc/rpc_common.c: Likewise.
79967         * sunrpc/rpc_cout.c: Likewise.
79968         * sunrpc/rpc_dtable.c: Likewise.
79969         * sunrpc/rpc_hout.c: Likewise.
79970         * sunrpc/rpc_main.c: Likewise.
79971         * sunrpc/rpc_parse.c: Likewise.
79972         * sunrpc/rpc_parse.h: Likewise.
79973         * sunrpc/rpc_prot.c: Likewise.
79974         * sunrpc/rpc_sample.c: Likewise.
79975         * sunrpc/rpc_scan.c: Likewise.
79976         * sunrpc/rpc_scan.h: Likewise.
79977         * sunrpc/rpc_svcout.c: Likewise.
79978         * sunrpc/rpc_tblout.c: Likewise.
79979         * sunrpc/rpc_util.c: Likewise.
79980         * sunrpc/rpc_util.h: Likewise.
79981         * sunrpc/rpcinfo.c: Likewise.
79982         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
79983         * sunrpc/rpcsvc/key_prot.x: Likewise.
79984         * sunrpc/rpcsvc/klm_prot.x: Likewise.
79985         * sunrpc/rpcsvc/mount.x: Likewise.
79986         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
79987         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
79988         * sunrpc/rpcsvc/rex.x: Likewise.
79989         * sunrpc/rpcsvc/rstat.x: Likewise.
79990         * sunrpc/rpcsvc/rusers.x: Likewise.
79991         * sunrpc/rpcsvc/sm_inter.x: Likewise.
79992         * sunrpc/rpcsvc/spray.x: Likewise.
79993         * sunrpc/rpcsvc/yppasswd.x: Likewise.
79994         * sunrpc/rtime.c: Likewise.
79995         * sunrpc/svc.c: Likewise.
79996         * sunrpc/svc_auth.c: Likewise.
79997         * sunrpc/svc_authux.c: Likewise.
79998         * sunrpc/svc_raw.c: Likewise.
79999         * sunrpc/svc_run.c: Likewise.
80000         * sunrpc/svc_simple.c: Likewise.
80001         * sunrpc/svc_tcp.c: Likewise.
80002         * sunrpc/svc_udp.c: Likewise.
80003         * sunrpc/svc_unix.c: Likewise.
80004         * sunrpc/svcauth_des.c: Likewise.
80005         * sunrpc/xcrypt.c: Likewise.
80006         * sunrpc/xdr.c: Likewise.
80007         * sunrpc/xdr_array.c: Likewise.
80008         * sunrpc/xdr_float.c: Likewise.
80009         * sunrpc/xdr_mem.c: Likewise.
80010         * sunrpc/xdr_rec.c: Likewise.
80011         * sunrpc/xdr_ref.c: Likewise.
80012         * sunrpc/xdr_sizeof.c: Likewise.
80013         * sunrpc/xdr_stdio.c: Likewise.
80014
80015         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
80016         handling.
80017
80018 2010-08-19  Andreas Schwab  <schwab@redhat.com>
80019
80020         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
80021
80022 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
80023
80024         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
80025         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
80026         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
80027         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
80028         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
80029         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
80030         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
80031         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
80032         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
80033         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
80034         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
80035         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
80036         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
80037         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
80038
80039 2010-07-26  Anton Blanchard  <anton@samba.org>
80040
80041         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
80042         * malloc/arena.c (heap_trim): Likewise.
80043
80044 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
80045
80046         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
80047         here.  Not...
80048         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
80049         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
80050
80051 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
80052
80053         * sysdeps/i386/elf/Makefile: New file.
80054
80055 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
80056
80057         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
80058         from fanotify_init.
80059         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
80060         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
80061
80062 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
80063
80064         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
80065         of strncasecmp_l.
80066         * sysdeps/multiarch/strcmp.S: Likewise.
80067
80068 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
80069
80070         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
80071         strncase_l-nonascii.
80072         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
80073         Add strncase_l-ssse3.
80074         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
80075         * sysdeps/x86_64/strcmp.S: Likewise.
80076         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
80077         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
80078         * sysdeps/x86_64/strncase.S: New file.
80079         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
80080         * sysdeps/x86_64/strncase_l.S: New file.
80081         * string/Makefile (strop-tests): Add strncasecmp.
80082         * string/test-strncasecmp.c: New file.
80083
80084         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
80085         warning.
80086
80087         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
80088         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
80089
80090 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
80091
80092         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
80093
80094 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
80095
80096         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
80097         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
80098         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
80099
80100 2010-05-01  Alan Modra  <amodra@gmail.com>
80101
80102         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
80103         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
80104         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
80105         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
80106         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
80107         tidying.  Don't tail-call __sigjmp_save for static lib.
80108         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
80109         save location.
80110         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
80111         (CALL_MCOUNT): Add eh info, and nop after bl.
80112         (TAIL_CALL_SYSCALL_ERROR): New macro.
80113         (PSEUDO_RET): Use it.
80114         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
80115         Correct save location of integer regs and cr.
80116         (_dl_profile_resolve): Correct cr save location.  Delete nops
80117         after bl when SHARED.  Reduce cfi size a little by better
80118         placement of cfi directives.
80119         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
80120         make a stack frame.  Instead use parm save area as a temp.
80121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
80122         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
80123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
80124         Don't make a stack frame for parent, use parm save area.
80125         Increase child stack frame to 112 bytes.  Don't save unused reg,
80126         and adjust reg usage.  Set up cfi on error recovery and
80127         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
80128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
80129         (__makecontext): Add dummy nop after jump to exit.
80130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
80131         Use correct parm save area and cr save, reduce stack frame.
80132         Correct cfi for possible PSEUDO_RET frame setup.
80133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
80134         Branch to local label emitted by PSEUDO_RET rather than
80135         __syscall_error.
80136
80137 2010-08-12  Andreas Schwab  <schwab@redhat.com>
80138
80139         [BZ #11904]
80140         * locale/programs/locale.c (print_assignment): New function.
80141         (show_locale_vars): Use it.
80142
80143 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
80144
80145         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
80146         field.
80147         (struct statfs64): Likewise.
80148         (_STATFS_F_FLAGS): Define.
80149         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
80150         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
80151         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
80152         (ST_VALID): Define locally.
80153         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
80154         __statvfs_getflags, use the provided value.
80155         * sysdeps/unix/sysv/linux/kernel-features.h: Define
80156         __ASSUME_STATFS_F_FLAGS.
80157
80158         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
80159
80160         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
80161         Add sys/fanotify.h.
80162         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
80163         fanotify_mask for GLIBC_2.13.
80164         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
80165         fanotify_init and fanotify_mark.
80166         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
80167         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
80168
80169         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
80170         Add prlimit.
80171         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
80172         prlimit64 for GLIBC_2.13.
80173         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
80174         prlimit64.
80175         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
80176         syscall.
80177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
80178         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
80179         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
80180         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
80181         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
80182         add prlimit alias.
80183         * sysdeps/unix/sysv/linux/prlimit.c: New file.
80184
80185         [BZ #11903]
80186         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
80187         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
80188
80189         * nss/Makefile: Add rules to build and run tst-nss-test1.
80190         * shlib-versions: Add entry for libnss_test1.
80191         * nss/nss_test1.c: New file.
80192         * nss/tst-nss-test1.c: New file.
80193
80194         * nss/nsswitch.c (__nss_database_custom): Define new variable.
80195         (__nss_configure_lookup): Set appropriate entry in
80196         __nss_configure_lookup to true.
80197         * nss/nsswitch.h: Define enum with indeces of databases in
80198         databases and __nss_database_custom arrays.  Declare
80199         __nss_database_custom.
80200         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
80201         to avoid using nscd when custom rules are installed.
80202         * nss/getXXbyYY_r.c: Likewise.
80203         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
80204
80205         * nss/nss_files/files-parse.c: Whitespace fixes.
80206
80207 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
80208
80209         [BZ #11883]
80210         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
80211         * posix/fnmatch_loop.c: Likewise.
80212
80213 2010-07-17  Andi Kleen  <ak@linux.intel.com>
80214
80215         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
80216         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
80217         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
80218         * Versions.def [GLIBC_2.13]: Add.
80219
80220 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
80221
80222         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
80223         Also fail if tpwd after pwuid call is NULL.
80224
80225 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80226
80227         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
80228         when converting to ms.
80229
80230 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80231
80232         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
80233         EOPNOTSUPP errors with ENOTTY.
80234         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
80235         EOPNOTSUPP errors with ENOTTY.
80236
80237 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
80238
80239         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
80240         Add strcasecmp_l-ssse3.
80241         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
80242         strcasecmp.
80243         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
80244         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
80245         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
80246
80247 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
80248
80249         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
80250
80251         * string/Makefile (strop-tests): Add strcasecmp.
80252         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
80253         strcasecmp_l-nonascii.
80254         (gen-as-const-headers): Add locale-defines.sym.
80255         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
80256         * sysdeps/x86_64/strcasecmp.S: New file.
80257         * sysdeps/x86_64/strcasecmp_l.S: New file.
80258         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
80259         * sysdeps/x86_64/locale-defines.sym: New file.
80260         * string/test-strcasecmp.c: New file.
80261
80262         * string/test-strcasestr.c: Test both ends of the range of characters.
80263         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
80264
80265 2010-07-29  Roland McGrath  <roland@redhat.com>
80266
80267         [BZ #11856]
80268         * manual/locale.texi (Yes-or-No Questions): Fix example code.
80269
80270 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
80271
80272         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
80273         for ld.so.
80274
80275 2010-07-27  Andreas Schwab  <schwab@redhat.com>
80276
80277         * manual/memory.texi (Malloc Tunable Parameters): Document
80278         M_PERTURB.
80279
80280 2010-07-26  Roland McGrath  <roland@redhat.com>
80281
80282         [BZ #11840]
80283         * configure.in (-fgnu89-inline check): Set and substitute
80284         gnu89_inline, not libc_cv_gnu89_inline.
80285         * configure: Regenerated.
80286         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
80287
80288 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
80289
80290         * string/test-strnlen.c: New file.
80291         * string/Makefile (strop-tests): Add strnlen.
80292         * string/tester.c (test_strnlen): Add a few more test cases.
80293         * string/tst-strlen.c: Better error reporting.
80294
80295         * sysdeps/x86_64/strnlen.S: New file.
80296
80297 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
80298
80299         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
80300         lower-latency instructions.
80301
80302 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
80303
80304         * string/test-strcasestr.c: New file.
80305         * string/test-strstr.c: New file.
80306         * string/Makefile (strop-tests): Add strstr and strcasestr.
80307         * string/str-two-way.h: Don't undefine MAX.
80308         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
80309
80310 2010-07-21  Andreas Schwab  <schwab@redhat.com>
80311
80312         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80313         strcasestr-nonascii.
80314         (CFLAGS-strcasestr-nonascii.c): Define.
80315         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
80316         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
80317         Remove unused attribute.
80318
80319 2010-07-20  Roland McGrath  <roland@redhat.com>
80320
80321         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
80322         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
80323         ld.so.cache was broken.  With it, there is no way to disable dsocaps
80324         like LD_HWCAP_MASK can disable hwcaps.
80325
80326 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
80327
80328         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
80329
80330 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
80331
80332         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
80333         call in strcasestr.
80334         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
80335         __strcasestr_sse42_nonascii.
80336         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
80337         strcasestr-nonascii.c.
80338         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
80339
80340 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
80341
80342         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
80343         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
80344         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
80345         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
80346
80347 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
80348
80349         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
80350         fcntl.
80351
80352 2010-07-06  Andreas Schwab  <schwab@redhat.com>
80353
80354         [BZ #11577]
80355         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
80356         dl_signal_cerror.
80357
80358 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
80359
80360         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
80361         _PC_PIPE_BUF using F_GETPIPE_SZ.
80362
80363 2010-07-05  Roland McGrath  <roland@redhat.com>
80364
80365         * manual/arith.texi (Rounding Functions): Fix rint description
80366         implicit in round description.
80367
80368 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
80369
80370         * elf/Makefile: Fix linking for a few tests to make recent linker
80371         happy.
80372
80373 2010-06-30  Andreas Schwab  <schwab@redhat.com>
80374
80375         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
80376         $(common-objpfx)libc_nonshared.a.
80377
80378 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
80379
80380         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
80381         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
80382         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
80383         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
80384         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
80385         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
80386         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
80387         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
80388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
80389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
80390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
80391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
80392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
80393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
80394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
80395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
80396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
80397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
80398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
80399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
80400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
80401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
80402         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
80403         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
80404         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
80405         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
80406         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
80407         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
80408         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
80409         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
80410         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
80411         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
80412         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
80413         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
80414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
80415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
80416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
80417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
80418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
80419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
80420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
80421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
80422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
80423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
80424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
80425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
80426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
80427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
80428
80429 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
80430
80431         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
80432         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
80433         * string/memmove.c (memmove): Renamed to ...
80434         (MEMMOVE): ...this.  Default to memmove.
80435         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
80436         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
80437         (END_CHK): Define.
80438         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80439         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
80440         mempcpy-ssse3-back memmove-ssse3-back.
80441         * sysdeps/x86_64/multiarch/bcopy.S: New file .
80442         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
80443         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
80444         * sysdeps/x86_64/multiarch/memcpy.S: New file.
80445         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
80446         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
80447         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
80448         * sysdeps/x86_64/multiarch/memmove.c: New file.
80449         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
80450         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
80451         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
80452         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
80453         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
80454         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
80455         Define.
80456         (index_Fast_Copy_Backward): Define.
80457         (HAS_ARCH_FEATURE): Define.
80458         (HAS_FAST_REP_STRING): Define.
80459         (HAS_FAST_COPY_BACKWARD): Define.
80460
80461 2010-06-21  Andreas Schwab  <schwab@redhat.com>
80462
80463         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
80464         Restore proper fallback handling.
80465
80466 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
80467
80468         [BZ #11701]
80469         * posix/group_member.c (__group_member): Correct checking loop.
80470
80471         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
80472         OOM in getpwuid_r correctly.  Return error number when the caller
80473         should return, otherwise -1.
80474         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
80475         call returning > 0 value.
80476         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
80477
80478 2010-06-07  Andreas Schwab  <schwab@redhat.com>
80479
80480         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
80481         libc_nonshared.a from targets in modules-names.
80482
80483 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
80484
80485         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
80486         requires it.
80487
80488 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
80489
80490         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
80491         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
80492         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
80493         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
80494
80495 2010-06-02  Andreas Schwab  <schwab@redhat.com>
80496
80497         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
80498
80499 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
80500
80501         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
80502         and F_GETPIPE_SZ.
80503         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
80504         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
80505         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
80506         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
80507         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
80508         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
80509
80510 2010-06-14  Roland McGrath  <roland@redhat.com>
80511
80512         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
80513
80514 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
80515
80516         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
80517         __REDIRECT followed by __THROW.
80518         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
80519         * posix/getopt.h (getopt): Likewise.
80520
80521 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
80522
80523         * hurd/lookup-at.c (__file_name_lookup_at): Accept
80524         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
80525         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
80526         in AT_FLAGS.
80527         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
80528         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
80529
80530 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
80531
80532         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
80533
80534 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
80535
80536         [BZ #11640]
80537         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80538         Properly check family and model.
80539
80540 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
80541
80542         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
80543
80544 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
80545
80546         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
80547
80548 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
80549
80550         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
80551         symbol reference.
80552
80553 2010-05-19  Andreas Schwab  <schwab@redhat.com>
80554
80555         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
80556         symbol reference.
80557
80558 2010-05-21  Andreas Schwab  <schwab@redhat.com>
80559
80560         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
80561         and internal_recvmmsg.
80562         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
80563         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
80564         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
80565         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
80566
80567         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
80568         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
80569         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
80570
80571 2010-05-20  Andreas Schwab  <schwab@redhat.com>
80572
80573         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
80574
80575 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
80576
80577         POWER7 optimizations.
80578         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
80579         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
80580
80581 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
80582
80583         * version.h: Update for 2.13 development version.
80584
80585 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
80586
80587         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
80588         exceptions.  Return 0.
80589
80590 2010-05-07  Roland McGrath  <roland@redhat.com>
80591
80592         * elf/ldconfig.c (main): Add a const.
80593
80594 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
80595
80596         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
80597         (args_options): Add no-idn option.
80598         (ahosts_keys_int): Add idn_flags to ai_flags.
80599         (parse_option): Handle 'i' option to clear idn_flags.
80600
80601         * malloc/malloc.c (_int_free): Possible race in the most recently
80602         added check.  Only act on the data if no current modification
80603         happened.
80604
80605 See ChangeLog.17 for earlier changes.