d221a037ceb023b6b3b9beb91bdb1cc80a04e905
[platform/upstream/glibc.git] / ChangeLog
1 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2
3         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
4         do_sincos_2, sloww, sloww1): Update comments.
5
6         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
7         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
8
9         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
10         K boolean and rename it.
11         (__sin): Adjust.
12         (__cos): Adjust.
13
14 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
15             Siddhesh Poyarekar  <siddhesh@sourceware.org>
16
17         * manual/nss.texi: Fix typos in the manual.
18
19 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
20
21         * manual/contrib.texi: Fix typos in the manual.
22
23         * manual/maint.texi: Fix typos in the manual.
24
25         * manual/install.texi: Fix typos in the manual.
26         * INSTALL: Regenerated.
27
28         * manual/lang.texi: Fix typos in the manual.
29
30         * manual/probes.texi: Fix typos in the manual.
31
32         * manual/threads.texi: Fix typos in the manual.
33
34         * manual/debug.texi: Fix typos in the manual.
35
36         * manual/crypt.texi: Fix typos in the manual.
37
38         * manual/conf.texi: Fix typos in the manual.
39
40         * manual/sysinfo.texi: Fix typos in the manual.
41
42         * manual/users.texi: Fix typos in the manual.
43
44         * manual/job.texi: Fix typos in the manual.
45
46         * manual/process.texi: Fix typos in the manual.
47
48         * manual/argp.texi: Fix typos in the manual.
49         * manual/getopt.texi: Likewise.
50         * manual/startup.texi: Likewise.
51
52         * manual/signal.texi: Fix typos in the manual.
53
54         * manual/setjmp.texi: Fix typos in the manual.
55
56         * manual/resource.texi: Fix typos in the manual.
57
58         * manual/time.texi: Fix typos in the manual.
59
60         * manual/arith.texi: Fix typos in the manual.
61
62         * manual/math.texi: Fix typos in the manual.
63
64         * manual/syslog.texi: Fix typos in the manual.
65
66         * manual/terminal.texi: Fix typos in the manual.
67
68         * manual/socket.texi: Fix typos in the manual.
69
70         * manual/filesys.texi: Fix typos in the manual.
71
72         * manual/llio.texi: Fix typos in the manual.
73
74         * manual/stdio.text: Fix typos in the manual.
75
76 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
77
78         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
79         instead of K1.
80
81         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
82         SHIFT_QUADRANT and make it bool.
83         (do_sincos_2): Likewise.
84         (sloww): Likewise.
85         (sloww1): Likewise.
86         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
87         (__cos): Likewise.
88
89 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
90
91         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
92
93 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
94
95         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
96         Define to __WORDSIZE, not conditional on [LONG_MAX ==
97         0x7fffffffL].
98         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
99
100 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
101
102         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
103         inline by __inline__.
104         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
105         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
106         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
107         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
108         sigset_t from signal.h.
109         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
110         which is already required.
111
112 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
113
114         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
115
116 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
117
118         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
119         (struct tcp_repair_window): New type.
120
121 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
122
123         * libio/tst-memstream3.c: Include string.h.
124
125 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
126
127         [BZ #18241]
128         [BZ #20181]
129         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
130         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
131         write position is at the end the buffer.
132         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
133         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
134         (_IO_str_seekoff): Set correct offset from negative displacement and
135         set EINVAL for invalid ones.
136         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
137         buffer length.
138         (_IO_wstr_switch_to_get_mode): New function.
139         (_IO_wstr_seekoff): Set correct offset from negative displacement and
140         set EINVAL for invalid ones.
141         * libio/tst-memstream3.c: New file.
142         * libio/tst-wmemstream3.c: Likewise.
143         * manual/examples/memstrm.c: Remove warning when priting size_t.
144
145 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
146
147         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
148         macro to use __builtin_fma.
149         * sysdeps/x86_64/fpu/dla.h: Remove file.
150
151         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
152         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
153         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
154
155 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
156
157         [BZ #20292]
158         * elf/Makefile (routines): Add dl-addr-obj.
159         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
160         tst-_dl_addr_inside_object.
161         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
162         [ifeq (yesyes,$(have-fpie)$(build-shared))]
163         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
164         [ifeq (yesyes,$(have-fpie)$(build-shared))]
165         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
166         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
167         * elf/dl-open.c: Likewise.
168         * elf/dl-addr-obj.c: New file.
169         * elf/tst-_dl_addr_inside_object.c: New file.
170
171 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
172
173         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
174         <bits/iscanonical.h>.
175         * bits/iscanonical.h: New file.
176         * math/s_iscanonicall.c: Likewise.
177         * math/Versions (__iscanonicall): New libm symbol at version
178         GLIBC_2.25.
179         * math/libm-test.inc (iscanonical_test_data): New array.
180         (iscanonical_test): New function.
181         (main): Call iscanonical_test.
182         * math/Makefile (headers): Add bits/iscanonical.h.
183         (type-ldouble-routines): Add s_iscanonicall.
184         * manual/arith.texi (Floating Point Classes): Document
185         iscanonical.
186         * manual/libm-err-tab.pl: Update comment on interfaces without
187         ulps tabulated.
188         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
189         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
190         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
191         Likewise.
192         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
193         test-iscanonical-ldbl-128ibm.
194         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
195         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
196         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
197         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
198         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
199         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
200         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
202         Likewise.
203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
204         Likewise.
205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
206         Likewise.
207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
208         Likewise.
209         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
210         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
211
212 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
213
214         * string/bits/string3.h: Remove C++ style comments.
215
216 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
217
218         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
219         instead of ternary condition.
220         (do_sincos_2): Likewise.
221         (__sin): Likewise.
222         (__cos): Likewise.
223         (slow): Likewise.
224         (sloww): Likewise.
225         (sloww1): Likewise.
226         (bsloww): Likewise.
227         (bsloww1): Likewise.
228
229         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
230         instead of ternary condition.
231         (do_sin_slow): Likewise.
232         (do_sincos_1): Likewise.
233         (do_sincos_2): Likewise.
234         (__cos): Likewise.
235         (sloww): Likewise.
236         (sloww1): Likewise.
237         (sloww2): Likewise.
238         (bsloww): Likewise.
239         (bsloww1): Likewise.
240         (bsloww2): Likewise.
241
242         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
243         check from here...
244         (slow2): ... and here...
245         (__sin): ... to here.
246
247 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
248
249         * math/math.h
250         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
251         Cast argument to its own type.
252         * math/test-iszero-excess-precision.c: New file.
253         * math/Makefile (tests): Add test-iszero-excess-precision.
254         (CFLAGS-test-iszero-excess-precision.c): New variable.
255
256 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
257
258         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
259         field, add err field.
260         (__spawni_child): Report error through err member instead of pipe.
261         (__spawnix): Likewise.
262
263 2016-09-28  Zack Weinberg  <zackw@panix.com>
264
265         * scripts/check-installed-headers.sh: Generalize treatment of
266         sys/elf.h to all target architectures.
267
268         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
269         deleted typedef ucontext_t.
270
271 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
272
273         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
274         (__INTERNAL_SYSCALL1): Likewise.
275         (__INTERNAL_SYSCALL2): Likewise.
276         (__INTERNAL_SYSCALL3): Likewise.
277         (__INTERNAL_SYSCALL4): Likewise.
278         (__INTERNAL_SYSCALL5): Likewise.
279         (__INTERNAL_SYSCALL6): Likewise.
280         (__INTERNAL_SYSCALL7): Likewise.
281         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
282         (__INTERNAL_SYSCALL_NARGS): Likewise.
283         (__INTERNAL_SYSCALL_DISP): Likewise.
284         (INTERNAL_SYSCALL_CALL): Likewise.
285         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
286         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
287         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
288         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
289         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
290         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
291         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
292         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
293         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
294         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
295         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
296         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
297         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
298
299 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
300
301         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
302         macro.
303         * math/libm-test.inc (iszero_test_data): New array.
304         (iszero_test): New function.
305         (main): Call iszero_test.
306         * manual/arith.texi (Floating Point Classes): Document iszero.
307         * manual/libm-err-tab.pl: Update comment on interfaces without
308         ulps tabulated.
309
310 2016-09-23  Zack Weinberg  <zackw@panix.com>
311
312         * scripts/check-installed-headers.sh: New script.
313         * Rules: In each directory that defines header files to be installed,
314         run check-installed-headers.sh on them as a special test.
315         * Makefile: Likewise for the headers installed at top level.
316
317         * include/aliases.h, include/alloca.h, include/argz.h
318         * include/arpa/nameser.h, include/arpa/nameser_compat.h
319         * include/elf.h, include/envz.h, include/err.h
320         * include/execinfo.h, include/fpu_control.h, include/getopt.h
321         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
322         * include/link.h, include/malloc.h, include/mcheck.h
323         * include/mntent.h, include/netinet/ether.h
324         * include/nss.h, include/obstack.h, include/printf.h
325         * include/pty.h, include/resolv.h, include/rpc/auth.h
326         * include/rpc/auth_des.h, include/rpc/auth_unix.h
327         * include/rpc/clnt.h, include/rpc/des_crypt.h
328         * include/rpc/key_prot.h, include/rpc/netdb.h
329         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
330         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
331         * include/rpc/rpc_msg.h, include/rpc/svc.h
332         * include/rpc/svc_auth.h, include/rpc/xdr.h
333         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
334         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
335         * include/rpcsvc/ypupd.h, include/shadow.h
336         * include/stdio_ext.h, include/sys/epoll.h
337         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
338         * include/sys/prctl.h, include/sys/profil.h
339         * include/sys/statfs.h, include/sys/sysctl.h
340         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
341         * sysdeps/arm/nacl/include/bits/setjmp.h
342         * sysdeps/mips/include/sys/asm.h
343         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
344         * sysdeps/unix/sysv/linux/include/sys/timex.h
345         * sysdeps/x86/fpu/include/bits/fenv.h:
346         Add #ifndef _ISOMAC guard around internal declarations.
347         Add multiple-inclusion guard if not already present.
348
349 2016-09-23  Zack Weinberg  <zackw@panix.com>
350
351         * sysdeps/generic/sys/ucontext.h
352         * sysdeps/arm/sys/ucontext.h
353         * sysdeps/i386/sys/ucontext.h
354         * sysdeps/m68k/sys/ucontext.h
355         * sysdeps/mips/sys/ucontext.h
356         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
357         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
358         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
359         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
360         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
361         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
362         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
363         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
364         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
365         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
366         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
367         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
368         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
369         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
370         Include both bits/sigcontext.h and bits/sigstack.h.
371         Fix grammar error in comment, if present.
372
373         * bits/sigstack.h
374         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
375         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
376         * sysdeps/unix/sysv/linux/bits/sigstack.h
377         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
378         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
379         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
380         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
381         * bits/sigcontext.h
382         * sysdeps/mach/hurd/i386/bits/sigcontext.h
383         * sysdeps/unix/sysv/linux/bits/sigcontext.h
384         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
385         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
386         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
387         as well as signal.h, if this was not already allowed.  Request
388         definition of size_t if necessary.  Minimize semantically-null
389         differences across files.
390
391 2016-09-23  Zack Weinberg  <zackw@panix.com>
392
393         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
394         Remove all logic conditional on __need macros.  Move all the
395         conditionally defined types to their own headers...
396         * time/bits/types/clock_t.h: Define clock_t here.
397         * time/bits/types/clockid_t.h: Define clockid_t here.
398         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
399         * time/bits/types/struct_timespec.h: Define struct timespec here.
400         * time/bits/types/struct_timeval.h: Define struct timeval here.
401         * time/bits/types/struct_tm.h: Define struct tm here.
402         * time/bits/types/time_t.h: Define time_t here.
403         * time/bits/types/timer_t.h: Define timer_t here.
404         * time/Makefile: Install the new headers.
405
406         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
407         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
408         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
409         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
410         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
411         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
412         * sysdeps/unix/sysv/linux/bits/resource.h
413         * sysdeps/unix/sysv/linux/bits/timex.h
414         * sysdeps/unix/sysv/linux/mips/bits/resource.h
415         * sysdeps/unix/sysv/linux/net/ppp_defs.h
416         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
417         * sysdeps/unix/sysv/linux/sys/acct.h
418         * sysdeps/unix/sysv/linux/sys/timerfd.h
419         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
420         * time/sys/time.h, time/sys/timeb.h
421         Use the new bits/types headers.
422
423         * include/time.h: Remove __need logic.
424         * include/bits/time.h
425         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
426         * include/bits/types/time_t.h, include/bits/types/timer_t.h
427         * include/bits/types/struct_itimerspec.h
428         * include/bits/types/struct_timespec.h
429         * include/bits/types/struct_timeval.h
430         * include/bits/types/struct_tm.h:
431         New wrapper headers.
432
433 2016-09-23  Zack Weinberg  <zackw@panix.com>
434
435         * sysdeps/mach/hurd/net/if_ppp.h
436         * sysdeps/unix/sysv/linux/net/if_ppp.h:
437         Only define struct ifpppstatsreq and struct ifpppcstatsreq
438         if __USE_MISC is defined, to ensure struct ifreq is declared.
439
440         * inet/netinet/ether.h: Condition all function prototypes
441         on __USE_MISC, to ensure struct ether_addr is declared.
442
443         * socket/bits/types/struct_osockaddr.h: New header.
444         * include/bits/types/struct_osockaddr.h: New wrapper.
445         * socket/Makefile: Install the new header.
446         * socket/sys/socket.h, inet/protocols/talkd.h:
447         Refer to bits/types/struct_osockaddr.h for the definition of
448         struct osockaddr.
449
450 2016-09-23  Zack Weinberg  <zackw@panix.com>
451
452         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
453         * inet/protocols/routed.h, inet/protocols/talkd.h
454         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
455         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
456         * sysdeps/generic/netinet/if_ether.h
457         * sysdeps/generic/netinet/in_systm.h
458         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
459         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
460         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
461         * sysdeps/mach/hurd/net/if_arp.h
462         * sysdeps/mach/hurd/net/if_ppp.h
463         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
464         * sysdeps/unix/sysv/linux/bits/in.h
465         * sysdeps/unix/sysv/linux/net/ethernet.h
466         * sysdeps/unix/sysv/linux/net/if_arp.h
467         * sysdeps/unix/sysv/linux/net/if_ppp.h
468         * sysdeps/unix/sysv/linux/net/if_shaper.h
469         * sysdeps/unix/sysv/linux/net/route.h
470         * sysdeps/unix/sysv/linux/netinet/if_ether.h
471         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
472         * sysdeps/unix/sysv/linux/netinet/if_tr.h
473         * sysdeps/unix/sysv/linux/netipx/ipx.h
474         * sysdeps/unix/sysv/linux/sys/acct.h
475         * include/arpa/nameser.h, include/resolv.h:
476         Change all uses of u_char to unsigned char,
477         u_short and ushort to unsigned short, u_int and uint to unsigned int,
478         u_long and ulong to unsigned long, u_int8_t to uint8_t,
479         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
480         and u_int64_t and u_quad_t to uint64_t.
481
482         * mach/sys/reboot.h: Remove two casts of integer literals
483         to the types they already have.
484
485         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
486         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
487         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
488         from referring to 'unsigned char' to 'uint8_t' for consistency with
489         the macro definition below.
490
491         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
492         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
493         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
494         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
495         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
496         * sysdeps/unix/sysv/linux/sys/acct.h
497         * include/arpa/nameser.h, include/resolv.h:
498         Fix indentation disrupted by mechanical edits.
499
500         * inet/protocols/talkd.h, resolv/arpa/nameser.h
501         * sysdeps/generic/netinet/in_systm.h
502         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
503         * sysdeps/gnu/netinet/udp.h
504         * sysdeps/unix/sysv/linux/net/ethernet.h
505         * sysdeps/unix/sysv/linux/net/if_arp.h
506         * sysdeps/unix/sysv/linux/net/if_ppp.h
507         * sysdeps/unix/sysv/linux/net/if_shaper.h
508         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
509         * sysdeps/unix/sysv/linux/netinet/if_tr.h
510         * sysdeps/unix/sysv/linux/netipx/ipx.h
511         * sysdeps/unix/sysv/linux/sys/acct.h
512         Include stdint.h for uintNN_t definitions.
513         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
514
515 2016-09-23  Zack Weinberg  <zackw@panix.com>
516
517         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
518         * sysdeps/unix/sysv/linux/netrose/rose.h:
519         Include sys/socket.h and netax25/ax25.h.
520
521         * inet/netinet/icmp6.h, inet/netinet/ip6.h
522         * resolv/arpa/nameser_compat.h:
523         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
524
525         * sysdeps/unix/sysv/linux/sys/quota.h:
526         Use __caddr_t instead of caddr_t.
527         * sysdeps/unix/sysv/linux/sys/timerfd.h:
528         Use __clockid_t instead of clockid_t.
529
530         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
531
532         * argp/argp.h: Check whether _LIBC is defined before expanding it.
533         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
534         expanding it.
535
536         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
537         Define __glibc_c99_flexarr_available to 1 when the compiler
538         supports C99-compatible flexible array members, 0 otherwise.
539         * sysdeps/unix/sysv/linux/bits/socket.h
540         * sysdeps/mach/hurd/bits/socket.h
541         * bits/socket.h: Use __glibc_c99_flexarr_available in
542         definitions of struct cmsghdr and CMSG_DATA.
543
544 2016-09-23  Florian Weimer  <fweimer@redhat.com>
545
546         * manual/nss.texi (NSS Modules Interface): Adjust function return
547         type to enum nss_status.  Document errnop argument.  Clarify
548         h_errnop semantics.  Fix cross-reference formatting.
549         (NSS Module Function Internals): Mention that *errnop needs to be
550         set on failure, but not to zero.
551
552 2016-09-23  Florian Weimer  <fweimer@redhat.com>
553
554         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
555         (get_random_name): New functions.
556         (check_wrapper_flags_mode): Use linkat to give the new file a name
557         determined by get_random_name.
558         (do_test): Add calls to test open64 and openat64.
559
560 2016-09-23  Florian Weimer  <fweimer@redhat.com>
561
562         * test-skeleton.c: Remove #include <stdarg.h>.
563
564 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
565
566         [BZ #19826]
567         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
568         initialization of static TLS entries.
569         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
570         * nptl/allocatestack.c (init_one_static_tls): Likewise.
571
572 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
573
574         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
575         _hurd_malloc_fork_prepare.
576         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
577         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
578         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
579         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
580         (_hurd_fork_child_hook): Drop malloc_fork_child.
581         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
582         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
583         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
584         after locking locks (notably hurd_dtable_lock). Call
585         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
586         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
587         __malloc_fork_unlock_child.
588         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
589
590 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
591
592         * soft-fp/extendhftf2.c: New.
593         * soft-fp/fixhfti.c: Likewise.
594         * soft-fp/fixunshfti.c: Likewise.
595         * soft-fp/floattihf.c: Likewise.
596         * soft-fp/floatuntihf.c: Likewise.
597         * soft-fp/half.h: Likewise.
598         * soft-fp/trunctfhf2.c: Likewise.
599
600 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
601
602         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
603         macro.
604         * math/libm-test.inc (issubnormal_test_data): New array.
605         (issubnormal_test): New function.
606         * manual/arith.texi (Floating Point Classes): Document
607         issubnormal.
608         * manual/libm-err-tab.pl: Update comment on interfaces without
609         ulps tabulated.
610
611         * sysdeps/generic/stdint.h: Define
612         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
613         <bits/libc-header-start.h> instead of including <features.h>.
614         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
615         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
616         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
617         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
618         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
619         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
620         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
621         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
622         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
623         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
624         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
625         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
626         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
627         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
628         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
629         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
630         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
631         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
632         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
633         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
634         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
635         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
636         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
637         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
638         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
639         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
640         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
641         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
642         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
643         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
644         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
645         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
646         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
647         * manual/arith.texi (Integers): Document these macros for types
648         specified by width properties.
649         * manual/lang.texi (Width of Type): Document these macros for
650         other standard typedefs.
651         * stdlib/tst-width-stdint.c: New file.
652         * stdlib/Makefile (tests): Add tst-width-stdint.
653
654 2016-09-21  Florian Weimer  <fweimer@redhat.com>
655
656         [BZ #20016]
657         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
658         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
659         Move ...
660         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
661         ... here, as compatibility symbols in a new file.
662         * resolv/Makefile (libresolv-routines): Add compat-hooks.
663         * resolv/res_init.c (__res_vinit): Adjust member names.
664         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
665         * resolv/resolv.h (res_sendhookact, res_send_qhook)
666         (res_send_rhook): Remove.
667         (struct __res_state): Rename qhook, rhook members.
668
669 2016-09-21  Florian Weimer  <fweimer@redhat.com>
670
671         malloc: Use __libc_lock wrappers.
672         * malloc/arena.c (list_lock, free_list_lock): Define using
673         __libc_lock_define_initialized.
674         (arena_lock): Adjust formatting.
675         * malloc/malloc.c (struct malloc_state): Define mutex using
676         __libc_lock_define.
677         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
678         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
679         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
680         (mutex_unlock, mutex_trylock): Remove.
681         (__pthread_initialize): Remove unused macro.
682         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
683         (mutex_unlock, mutex_trylock): Remove.
684
685 2016-09-21  Florian Weimer  <fweimer@redhat.com>
686
687         [BZ #20592]
688         Remove RR type classification macros.
689         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
690         (ns_t_udp_p, ns_t_xfr_p): Remove.
691
692 2016-09-21  Florian Weimer  <fweimer@redhat.com>
693
694         Remove misleading version information.
695         * resolv/arpa/nameser.h (__NAMESER): Remove.
696         * resolv/arpa/nameser_compat.h (__BIND): Remove.
697
698 2016-09-21  Florian Weimer  <fweimer@redhat.com>
699
700         Remove the always-defined BIND_4_COMPAT macro.
701         * resolv/arpa/nameser.h: Unconditionally include
702         <arpa/nameser_compat.h>.
703         (BIND_4_COMPAT): Remove.
704         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
705
706 2016-09-21  Florian Weimer  <fweimer@redhat.com>
707
708         [BZ #20591]
709         Remove obsolete DNSSEC support.
710         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
711         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
712         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
713         (ns_verify_tcp, ns_verify_tcp_init): Remove.
714         (ns_cert_types): Add comment.
715         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
716         separately.
717         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
718         (dst_s_dns_key_id): Remove.
719         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
720         variables.
721
722 2016-09-21  Florian Weimer  <fweimer@redhat.com>
723
724         [BZ #20524]
725         * manual/string.texi (String/Array Comparison): Clarify the
726         strverscmp behavior.
727
728 2016-09-21  Florian Weimer  <fweimer@redhat.com>
729
730         * test-skeleton.c (xasprintf): Add function.
731         * io/tst-open-tmpfile.c: New test.
732         * io/Makefile (tests): Add it.
733
734 2016-09-21  Florian Weimer  <fweimer@redhat.com>
735
736         Avoid running $(CXX) during build to obtain header file paths.
737         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
738         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
739         * Makerules (cstdlib, cmath): Remove variables.  Use
740         $(c++-cstdlib-header), $(c++-cmath-header) instead.
741         * configure: Regenerate.
742
743 2016-09-21  Florian Weimer  <fweimer@redhat.com>
744
745         * Makeconfig (all-object-suffixes): Include .op only if
746         $(build-profile).
747
748 2016-09-21  Florian Weimer  <fweimer@redhat.com>
749
750         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
751         conditionals.  Do not define PATH_MAX.
752
753 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
754
755         * posix/Makefile (tests): Add tst-spawn3.
756         * posix/tst-spawn3.c: New file.
757         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
758         if it is already opened for open action.
759
760         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
761         all signals when executing the clone vfork child.
762         (SIGALL_SET): Remove macro.
763
764         * nptl/Makefile (tests): Add tst-exec5.
765         * nptl/tst-exec5.c: New file.
766         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
767         asynchronous cancellation.
768
769 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
770
771         * hurd/exc2signal.c: #include <hurd/signal.h>
772         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
773         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
774         accordingly.
775         * mach/mach_error.c (mach_error): Fix old-style function definition.
776         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
777
778 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
779
780         * math/Makefile (libm-calls): Remove s_nanF.
781         (gen-libm-calls): Add s_nanF.
782
783         * math/s_nan.c: Refactor into ...
784         * math/s_nan_template.c: New file.
785
786         * math/s_nanf.c: Removed.
787         * math/s_nanl.c: Removed.
788         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
789         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
790
791         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
792         (LDOUBLE_nanl_libm_version): New macro.
793
794         * sysdeps/generic/math-type-macros-double.h:
795         (M_STRTO_NAN): New macro.
796         * sysdeps/generic/math-type-macros-float.h: Likewise.
797         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
798
799         * sysdeps/generic/math-type-macros.h: Document
800         M_STRTO_NAN.
801
802 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
803
804         * math/s_nanf.c: Remove __nanf undef.
805         * math/s_nan.c: Remove __nan undef.
806         * math/s_nanl.c: Remove __nanl undef.
807
808         * sysdeps/generic/math_private.h (__nan): Remove macro
809         override.
810         (__nanf): Likewise.
811         (__nanl): Likewise.
812
813 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
814
815         * math/Makefile (gen-all-calls): New variable.
816         (generated): Replace gen-libm-calls with gen-all-calls.
817         (gen-libm-templates.stmp): Likewise.  Also, ensure
818         the output directory exists or is created and add
819         dependency on the Makefile.
820         (calls): Move s_ldexpF into gen-calls.
821         (gen-calls): New variable.
822
823         * math/s_ldexpf.c: Removed.
824         * math/s_ldexpl.c: Removed.
825         * math/s_ldexp.c: Refactored into ...
826         * math/s_ldexp_template.c: New file.
827
828         * sysdeps/generic/math-type-macros-double.h: Remove
829         redundant fall-through definition of declare_mgen_alias.
830         (declare_mgen_alias_2): New macro.
831
832         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
833         New macro for function aliased to two exported symbols.
834
835         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
836         new template file.
837         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
838
839 2016-09-20  Florian Weimer  <fweimer@redhat.com>
840
841         * Makeconfig (all-object-suffixes): Remove .og.
842         * Makerules (elide-routines.og): Remove.
843         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
844         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
845         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
846
847 2016-09-20  Florian Weimer  <fweimer@redhat.com>
848
849         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
850         .os objects.
851
852 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
853
854         [BZ #20615]
855         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
856         fpu directory by non-fpu.
857         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
858         on non-fpu directory from a fpu directory.
859
860 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
861
862         * include/limits.h: Define
863         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
864         <bits/libc-header-start.h> instead of including <features.h>.
865         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
866         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
867         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
868         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
869         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
870         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
871         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
872         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
873         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
874         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
875         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
876         * manual/lang.texi (Width of Type): Document these macros.
877         * stdlib/tst-width.c: New file.
878         * stdlib/Makefile (tests): Add tst-width.
879
880 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
881
882         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
883         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
884
885 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
886
887         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
888         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
889         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
890
891 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
892
893         [BZ #18243]
894         * rt/Makefile (test): Add tst-shm-cancel.
895         * rt/tst-shm-cancel.c: New file.
896         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
897
898         [BZ #18243]
899         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
900         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
901         definition.
902         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
903         uncontended case.
904         * nptl/sem_wait.c (__new_sem_wait): Likewise.
905         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
906         (tf): Fix check for uncontended case.
907         (do_test): Likewise.
908         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
909         (tf): Fix check for uncontended case.
910         (do_test): Likewise.
911         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
912         (tf): Fix check for uncontended case.
913         (do_test): Likewise.
914         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
915         (tf): Fix check for uncontended case.
916         (do_test): Likewise.
917
918         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
919         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
920
921         [BZ #15765]
922         * nptl/Makefile (tests): Add tst-sem16.
923         * nptl/tst-sem16.c: New file.
924         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
925
926         * nptl/sem_open.c (sem_open): Init pad value to 0.
927         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
928         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
929
930 2016-09-15  Florian Weimer  <fweimer@redhat.com>
931
932         [BZ #20611]
933         * inet/Makefile (routines): Add inet6_scopeid_pton.
934         (tests): Add tst-inet6_scopeid_pton.
935         * inet/inet6_scopeid_pton.c: New file.
936         * inet/net-internal.h: Likewise.
937         * inet/tst-inet6_scopeid_pton.c: New test.
938         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
939         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
940         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
941
942 2016-09-14  Florian Weimer  <fweimer@redhat.com>
943
944         Remove support for compiling wrappers with PTW.
945         * sysdeps/nptl/Makeconfig: Drop ptw- support.
946         * nptl/Makefile (pthread-compat-wrappers): Define.
947         (libpthread-routines): Use pthread-compat-wrappers.
948         * sysdeps/unix/sysv/linux/alpha/Makefile
949         (libpthread-routines, libpthread-shared-only-routines): Remove
950         ptw- prefix.
951         * sysdeps/s390/nptl/Makefile
952         (libpthread-routines, libpthread-shared-only-routines): Likewise.
953         * sysdeps/ia64/nptl/Makefile
954         (libpthread-routines, libpthread-shared-only-routines): Likewise.
955         * sysdeps/nacl/Makefile (libpthread-routines): Use
956         pthread-compat-wrappers to filter the routines list instead of the
957         ptw- prefix.
958
959 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
960
961         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
962         with L() and remove explicit suffix, convert real literals
963         which can be equivalentally substituted with integers, and
964         transform -L(x) to L(-x).
965
966         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
967         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
968         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
969         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
970         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
971         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
972         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
973         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
974         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
975         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
976         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
977         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
978         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
979         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
980         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
981         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
982         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
983         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
984         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
985         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
986         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
987         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
988         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
989         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
990         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
991         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
992         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
993         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
994         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
995         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
996         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
997         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
998         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
999         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
1000         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
1001         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1002         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
1003         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
1004         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
1005         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
1006         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
1007         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
1008         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
1009         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
1010         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
1011         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
1012         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
1013         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
1014         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
1015         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1016
1017 2016-09-13  Florian Weimer  <fweimer@redhat.com>
1018
1019         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
1020
1021 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1022
1023         * malloc/Makefile (tests): Remove individual static test names
1024         and just add all of tests-static.
1025
1026         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
1027
1028 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
1029
1030         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
1031         file.
1032
1033         * sysdeps/sparc/fpu/fegetmode.c: New file.
1034         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
1035
1036         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
1037         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
1038
1039         * sysdeps/s390/fpu/fegetmode.c: New file.
1040         * sysdeps/s390/fpu/fesetmode.c: Likewise.
1041
1042         * sysdeps/powerpc/fpu/fegetmode.c: New file.
1043         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
1044         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
1045         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
1046         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
1047         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
1048
1049         * sysdeps/mips/fpu/fegetmode.c: New file.
1050         * sysdeps/mips/fpu/fesetmode.c: Likewise.
1051
1052         * sysdeps/m68k/fpu/fegetmode.c: New file.
1053         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
1054
1055         * sysdeps/ia64/fpu/fegetmode.c: New file.
1056         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
1057
1058         * sysdeps/hppa/fpu/fegetmode.c: New file.
1059         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
1060
1061         * sysdeps/arm/fegetmode.c: New file.
1062         * sysdeps/arm/fesetmode.c: Likewise.
1063
1064         * sysdeps/alpha/fpu/fegetmode.c: New file.
1065         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
1066
1067         * sysdeps/aarch64/fpu/fegetmode.c: New file.
1068         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
1069
1070         * math/fegetmode.c: New file.
1071         * math/fesetmode.c: Likewise.
1072         * sysdeps/i386/fpu/fegetmode.c: Likewise.
1073         * sysdeps/i386/fpu/fesetmode.c: Likewise.
1074         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
1075         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
1076         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
1077         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
1078         declaration.
1079         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
1080         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
1081         typedef.
1082         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1083         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1084         (femode_t): New typedef.
1085         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1086         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1087         (femode_t): New typedef.
1088         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1089         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1090         (femode_t): New typedef.
1091         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1092         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1093         (femode_t): New typedef.
1094         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1095         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1096         (femode_t): New typedef.
1097         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1098         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1099         (femode_t): New typedef.
1100         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1101         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1102         (femode_t): New typedef.
1103         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1104         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1105         (femode_t): New typedef.
1106         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1107         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1108         (femode_t): New typedef.
1109         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1110         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1111         (femode_t): New typedef.
1112         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
1113         declaration.
1114         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1115         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1116         (femode_t): New typedef.
1117         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1118         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1119         (femode_t): New typedef.
1120         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1121         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1122         (femode_t): New typedef.
1123         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1124         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1125         (femode_t): New typedef.
1126         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1127         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1128         (femode_t): New typedef.
1129         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
1130         * manual/arith.texi (FE_DFL_MODE): Document macro.
1131         (fegetmode): Document function.
1132         (fesetmode): Likewise.
1133         * math/Versions (fegetmode): New libm symbol at version
1134         GLIBC_2.25.
1135         (fesetmode): Likewise.
1136         * math/Makefile (libm-support): Add fegetmode and fesetmode.
1137         (tests): Add test-femode and test-femode-traps.
1138         * math/test-femode-traps.c: New file.
1139         * math/test-femode.c: Likewise.
1140         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
1141         alias for __fe_dfl_env.
1142         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
1143         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
1144         (__fe_dfl_mode): Likewise.
1145         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
1146         version GLIBC_2.25.
1147         * sysdeps/nacl/libm.abilist: Update.
1148         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1149         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1150         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1151         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1152         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1153         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1154         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1155         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1156         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1157         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1158         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1159         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1161         Likewise.
1162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1163         Likewise.
1164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1165         Likewise.
1166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1167         Likewise.
1168         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1169         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1170         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1171         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1172         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1173         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1174         Likewise.
1175         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1176         Likewise.
1177         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1178         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1179         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1180
1181 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1182
1183         [BZ #20495]
1184         [BZ #20508]
1185         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
1186         processors, set Use_dl_runtime_resolve_slow and set
1187         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
1188         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
1189         New.
1190         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
1191         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
1192         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
1193         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
1194         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
1195         if Use_dl_runtime_resolve_opt is set.  Use
1196         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
1197         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
1198         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
1199         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
1200         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
1201         New.
1202         (_dl_runtime_resolve_opt): Likewise.
1203         (_dl_runtime_profile): Define only if _dl_runtime_profile is
1204         defined.
1205
1206 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1207
1208         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
1209         __libc_memalign with "+ RELA R_390_GLOB_DAT".
1210
1211 2016-09-06  Florian Weimer  <fweimer@redhat.com>
1212
1213         Convert malloc to __libc_lock.  Automated part, using this Perl
1214         s/// command:
1215           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
1216             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
1217         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
1218         conversion.
1219
1220 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
1221
1222         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
1223         (linknamespace-symlists-tests): Likewise.
1224         (linknamespace-header-tests): Likewise.
1225
1226 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
1227
1228         [BZ #19810]
1229         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
1230         * elf/tst-noload.c: New test case.
1231         * elf/Makefile (tests): Add tst-noload.
1232
1233 2016-09-02  Roland McGrath  <roland@hack.frob.com>
1234
1235         * sysdeps/nacl/dup.c: Add libc_hidden_def.
1236
1237         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
1238         not any more.
1239
1240         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
1241
1242 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1243
1244         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
1245         (do_cos_slow): Likewise.
1246         (do_sin): Likewise.
1247         (do_sin_slow): Likewise.
1248         (slow): Likewise.
1249         (slow1): Likewise.
1250         (slow2): Likewise.
1251         (sloww): Likewise.
1252         (sloww1): Likewise.
1253         (sloww2): Likewise.
1254         (bsloww): Likewise.
1255         (bsloww1): Likewise.
1256         (bsloww2): Likewise.
1257         (cslow2): Likewise.
1258
1259         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
1260
1261         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
1262         arguments.  Consolidate input partitioning from callers here.
1263         (do_cos_slow): Likewise.
1264         (do_sin): Likewise.
1265         (do_sin_slow): Likewise.
1266         (do_sincos_1): Remove the no longer necessary input partitioning.
1267         (do_sincos_2): Likewise.
1268         (__sin): Likewise.
1269         (__cos): Likewise.
1270         (slow1): Likewise.
1271         (slow2): Likewise.
1272         (sloww1): Likewise.
1273         (sloww2): Likewise.
1274         (bsloww1): Likewise.
1275         (bsloww2): Likewise.
1276         (cslow2): Likewise.
1277
1278 2016-09-02  Florian Weimer  <fweimer@redhat.com>
1279
1280         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
1281         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
1282         outside of allocated array.
1283
1284 2016-09-02  Florian Weimer  <fweimer@redhat.com>
1285
1286         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
1287         instead of MB_CUR_MAX to avoid variable-length array.
1288
1289 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1290
1291         * math/Makefile (libm-calls): Remove k_rem_pio2F.
1292         (type-double-routines): Add k_rem_pio2.
1293         (type-float-routines): Add k_rem_pio2f.
1294
1295         * sysdeps/generic/math_private.h:
1296         (__kernel_rem_pio2l): Removed.
1297
1298         * math/k_rem_pio2l.c: Removed.
1299         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
1300         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
1301         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
1302         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
1303
1304 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1305
1306         * math/Makefile (gen-libm-calls): Add s_fmin
1307         (libm-calls): Remove above.
1308
1309         * math/s_fmin.c: Refactor into ...
1310         * math/s_fmin_template.c: New file.
1311
1312         * math/s_fminf.c: Removed.
1313         * math/s_fminl.c: Removed.
1314         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
1315         (LDOUBLE_fmin_libm_version): New macro.
1316
1317         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
1318         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
1319
1320 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1321
1322         * math/Makefile: (gen-libm-calls): Add s_fmax.
1323         (libm-calls): Remove above.
1324
1325         * math/s_fmax.c: Refactor into ...
1326         * math/s_fmax_template.c: New file.
1327         * math/s_fmaxf.c: Removed.
1328         * math/s_fmaxl.c: Removed.
1329
1330         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
1331         (LDOUBLE_fmaxl_libm_version): New macro.
1332
1333         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
1334         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
1335
1336         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
1337         s_fmin.c to pick the aarch64 version of the file.
1338         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
1339         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
1340
1341 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1342
1343         * math/Makefile: (gen-libm-calls): Add s_nextdown.
1344         (libm-calls): Remove above.
1345
1346         * math/s_nextdown.c: Refactor into ...
1347         * math/s_nextdown_template.c: New file.
1348         * math/s_nextdownf.c: Removed.
1349         * math/s_nextdownl.c: Removed.
1350
1351         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
1352
1353 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1354
1355         * math/Makefile (gen-libm-calls): Add s_fdim.
1356         (libm-calls): Move to above.
1357
1358         * math/s_fdim.c: Renamed and refactored into to ...
1359         * math/s_fdim_template.c: New file.
1360         * math/s_fdiml.c: Removed.
1361         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
1362         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
1363
1364         * sysdeps/generic/math-type-macros-double.h:
1365         (declare_mgen_alias): Don't declare if already declared.
1366         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
1367         Likewise.
1368
1369         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
1370         (declare_mgen_alias): Don't declare if already declared.
1371         (M_LIBM_NEED_COMPAT): Likewise.
1372         (declare_mgen_libm_compat): Likewise.
1373         (LDOUBLE_fdiml_libm_version): New macro.
1374
1375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
1376         Include math/s_fdim.c now that ldbl-opt version is not needed.
1377         (declare_mgen_alias): New macro to disable aliasing.
1378
1379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
1380         (declare_mgen_alias): Likewise.
1381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
1382         (declare_mgen_alias): Likewise.
1383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
1384         (declare_mgen_alias): Likewise.
1385         (M_LIBM_NEED_COMPAT): Likewise.
1386
1387 2016-09-01  Florian Weimer  <fweimer@redhat.com>
1388
1389         [BZ #20525]
1390         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
1391         Include <linux/quota.h>.
1392         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
1393         and btodb.
1394         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
1395         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
1396         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
1397         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
1398         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
1399         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
1400         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
1401         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
1402         types.
1403         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
1404         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
1405
1406 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1407
1408         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
1409         (gammal_positive): Fix spacing.
1410         (__ieee754_gammal_r): Likewise.
1411
1412 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1413
1414         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
1415         (_Float128): Define as long double, always.
1416         (L): Apply long double type suffix, always.
1417
1418         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
1419         _Float128, excepting comments.
1420
1421         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1422         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
1423         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
1424         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1425         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1426         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1427         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
1428         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
1429         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
1430         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
1431         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
1432         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1433         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1434         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1435         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1436         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1437         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1438         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1439         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
1440         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
1441         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1442         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
1443         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
1444         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
1445         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
1446         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1447         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
1448         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
1449         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
1450         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1451         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1452         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
1453         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
1454         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
1455         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1456         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1457         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
1458         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1459         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
1460         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
1461         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
1462         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
1463         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1464         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1465         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
1466         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
1467         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
1468         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1469         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
1470         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
1471         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
1472         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
1473         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
1474         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
1475         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
1476         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
1477         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
1478         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
1479         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
1480         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
1481         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
1482         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
1483         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
1484         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
1485         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
1486         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
1487         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1488         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1489
1490         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
1491         _Float128, and include math_private.h.
1492         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
1493
1494         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
1495         long double semantics.
1496         (_Float128): Likewise.
1497         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
1498         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
1499         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
1500         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
1501
1502 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
1503
1504         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
1505         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
1506         * sysdeps/s390/configure: Regenerated.
1507         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
1508         instruction for raising over-/underflow if z196 zarch is supported
1509         by default.
1510         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
1511
1512 2016-08-30  Svante Signell  <svante.signell@gmail.com>
1513
1514         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
1515         it point to a dumb buffer for RPC to fill it.
1516
1517 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1518
1519         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
1520         instead of if/else.
1521         (do_sin_slow): Likewise.
1522         (do_sincos_1): Use fabs instead of if/else.
1523         (do_sincos_2): Likewise.
1524         (__sin): Likewise.
1525         (__cos): Likewise.
1526         (slow2): Likewise.
1527         (sloww): Likewise.
1528         (sloww1): Likewise.  Drop argument M.
1529         (sloww2): Use fabs instead of if/else.
1530         (bsloww): Likewise.
1531         (bsloww1): Likewise.
1532         (bsloww2): Likewise.
1533
1534         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
1535         fall through comment.
1536         (do_sincos_1): Likewise.
1537
1538         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
1539         Consolidate switch cases 0 and 2.
1540
1541 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1542
1543         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
1544         (libm-calls): Remove the above.
1545
1546         * math/s_cexp_template.c: Update using type-generic macros.
1547         * math/s_clog10_template.c: Likewise.
1548         * math/s_cpow_template.c: Likewise.
1549         * math/s_clog_template.c: Likewise.
1550         * math/s_cproj_template.c: Likewise.
1551         * math/s_csqrt_template.c: Likewise.
1552
1553         * math/s_cexp.c: Removed.
1554         * math/s_cexpf.c: Removed.
1555         * math/s_cexpl.c: Removed.
1556         * math/s_clog10.c: Removed.
1557         * math/s_clog10f.c: Removed.
1558         * math/s_clog10l.c: Removed.
1559         * math/s_cpow.c: Removed.
1560         * math/s_cpowf.c: Removed.
1561         * math/s_cpowl.c: Removed.
1562         * math/s_clog.c: Removed.
1563         * math/s_clogf.c: Removed.
1564         * math/s_clogl.c: Removed.
1565         * math/s_cproj.c: Removed.
1566         * math/s_cprojf.c: Removed.
1567         * math/s_cprojl.c: Removed.
1568         * math/s_csqrt.c: Removed.
1569         * math/s_csqrtf.c: Removed.
1570         * math/s_csqrtl.c: Removed.
1571
1572         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
1573         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
1574         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
1575         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
1576         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
1577         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
1578
1579         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
1580         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
1581         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
1582         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
1583         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
1584         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
1585         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
1586         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
1587         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
1588         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
1589         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
1590
1591         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
1592         version.
1593
1594         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
1595         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
1596         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
1597         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
1598
1599 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1600
1601         * s_cexp_template.c: Copy of s_cexp.c.
1602         * s_clog_template.c: Copy of s_clog.c.
1603         * s_clog10_template.c: Copy of s_clog10.c.
1604         * s_cpow_template.c: Copy of s_cpow.c.
1605         * s_cproj_template.c: Copy of s_cproj.c.
1606         * s_csqrt_template.c: Copy of s_csqrt.c.
1607
1608 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1609
1610         [BZ #20517]
1611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
1612         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
1613         exported.
1614
1615 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
1616
1617         * math/fetestexceptflag.c: New file.
1618         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
1619         Stefan Liebler.
1620         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1621         (fetestexceptflag): New function declaration.
1622         * manual/arith.texi (fetestexceptflag): Document function.
1623         * math/Versions (fetestexceptflag): New libm symbol at version
1624         GLIBC_2.25.
1625         * math/Makefile (libm-support): Add fetestexceptflag.
1626         (tests): Add test-fetestexceptflag.
1627         * math/test-fetestexceptflag.c: New file.
1628         * sysdeps/nacl/libm.abilist: Update.
1629         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1630         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1631         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1632         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1633         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1634         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1635         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1636         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1637         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1638         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1639         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1640         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1642         Likewise.
1643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1644         Likewise.
1645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1646         Likewise.
1647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1648         Likewise.
1649         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1650         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1651         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1652         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1653         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1654         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1655         Likewise.
1656         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1657         Likewise.
1658         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1659         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1660         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1661
1662 2016-08-26  Florian Weimer  <fweimer@redhat.com>
1663
1664         [BZ #20432]
1665         Avoid strong references to malloc-internal symbols when linking
1666         statically, to support statically interposed mallocs.
1667         * include/libc-symbols.h (call_function_static_weak): New macro.
1668         * malloc/Makefile (tests): Add tst-interpose-nothread,
1669         tst-interpose-thread, tst-interpose-static-nothread,
1670         tst-interpose-static-thread.
1671         (tests-static): Add tst-interpose-static-nothread,
1672         tst-interpose-static-thread.
1673         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
1674         tst-interpose-aux-thread.o.
1675         (test-extras): Add tst-interpose-aux-nothread,
1676         tst-interpose-aux-thread.
1677         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
1678         tst-interpose-aux-nothread.o.
1679         (tst-interpose-thread, tst-interpose-static-thread): Link with
1680         tst-interpose-aux-thread.o and libthread.
1681         * malloc/tst-interpose-aux-nothread.c: New file.
1682         * malloc/tst-interpose-aux-thread.c: Likewise.
1683         * malloc/tst-interpose-aux.c: Likewise.
1684         * malloc/tst-interpose-aux.h: Likewise.
1685         * malloc/tst-interpose-nothread.c: Likewise.
1686         * malloc/tst-interpose-skeleton.c: Likewise.
1687         * malloc/tst-interpose-static-nothread.c: Likewise.
1688         * malloc/tst-interpose-static-thread.c: Likewise.
1689         * malloc/tst-interpose-thread.c: Likewise.
1690         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
1691         * sysdeps/mach/hurd/fork.c (__fork): Only call
1692         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
1693         __malloc_fork_unlock_child if defined.
1694         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1695
1696 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1697
1698         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
1699         timespec C99 designated initialization.
1700
1701 2016-08-26  Florian Weimer  <fweimer@redhat.com>
1702
1703         [BZ #19946]
1704         Avoid expected SIGALRM signals.
1705         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
1706         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
1707         (xpthread_create, xpthread_detach, xpthread_join)
1708         (delayed_exit_thread, delayed_exit): New functions.
1709         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
1710         (tf): Use xpthread_cond_wait.
1711         (do_test): Likewise.  Replace alarm with delayed_exit.
1712         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1713         (do_test): Call delayed_exit.  Report failure.
1714         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1715         (do_test): Call delayed_exit.
1716         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1717         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
1718         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1719         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
1720         error.
1721         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
1722         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
1723         error.
1724         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
1725         (do_test): Call delayed_exit.
1726         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
1727         (do_test): Call delayed_exit.
1728         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
1729         (do_test): Call delayed_exit instead of alarm.  Use
1730         xpthread_mutex_lock.
1731         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
1732         (do_test): Call delayed_exit instead of alarm.  Use
1733         xpthread_mutex_lock.
1734         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
1735         (do_test): Call delayed_exit instead of alarm.
1736         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
1737         (do_test): Call delayed_exit instead of alarm.  Use
1738         xpthread_spin_lock.
1739         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
1740         (do_test): Call delayed_exit instead of alarm.  Use
1741         xpthread_join.
1742
1743 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
1744
1745         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
1746         adjust CFA when allocating register save area on re-aligned
1747         stack.
1748
1749 2016-08-26  Florian Weimer  <fweimer@redhat.com>
1750
1751         * string/tst-cmp.c: New test.
1752         * string/Makefile (tests): Add it.
1753
1754 2016-08-25  Mark Wielaard  <mark@klomp.org>
1755
1756         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
1757         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
1758         (check_tree_recurse): Use newly defined accessors.
1759         (check_tree): Likewise.
1760         (maybe_split_for_insert): Likewise.
1761         (__tfind): Likewise.
1762         (__tdelete): Likewise.
1763         (trecurse): Likewise.
1764         (tdestroy_recurse): Likewise.
1765         (__tsearch): Likewise. And add asserts for malloc alignment.
1766         (__twalk): Cast root to node in case CHECK_TREE is defined.
1767
1768 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1769
1770         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
1771
1772 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1773
1774         * math/Makefile (libm-gen-calls): Add
1775         catan, catanh, ctan, ctanh.
1776         (libm-calls): Remove the above.
1777
1778         * math/s_catan_template.c: Update using type-generic macros.
1779         * math/s_catanh_template.c: Likewise.
1780         * math/s_ctan_template.c: Likewise.
1781         * math/s_ctanh_template.c: Likewise.
1782
1783         * math/s_catanf.c: Removed.
1784         * math/s_catan.c: Removed.
1785         * math/s_catanl.c: Removed.
1786         * math/s_catanhf.c: Removed.
1787         * math/s_catanh.c: Removed.
1788         * math/s_catanhl.c: Removed.
1789         * math/s_ctanf.c: Removed.
1790         * math/s_ctan.c: Removed.
1791         * math/s_ctanl.c: Removed.
1792         * math/s_ctanhf.c: Removed.
1793         * math/s_ctanh.c: Removed.
1794         * math/s_ctanhl.c: Removed.
1795
1796         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
1797         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
1798         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
1799         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
1800         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
1801         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
1802
1803         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
1804         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
1805         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
1806         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
1807
1808 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1809
1810         * s_catan_template.c: Copy of s_catan.c.
1811         * s_catanh_template.c: Copy of s_catanh.c.
1812         * s_ctan_template.c: Copy of s_ctan.c.
1813         * s_ctanh_template.c: Copy of s_ctanh.c.
1814
1815 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1816
1817         * math/Makefile (gen-libm-calls): Move
1818         casin, casinh, csin, csinh here.
1819         (libm-calls): Remove the above.
1820
1821         * math/s_casin_template.c: Update using type-generic macros.
1822         * math/s_casinh_template.c: Likewise.
1823         * math/s_csin_template.c: Likewise.
1824         * math/s_csinh_template.c: Likewise.
1825         * math/k_casinh_template.c: Likewise.
1826
1827         * math/s_casinf.c: Removed.
1828         * math/s_casin.c: Removed.
1829         * math/s_casinl.c: Removed.
1830         * math/s_casinh.c: Removed.
1831         * math/s_casinhf.c: Removed.
1832         * math/s_casinhl.c: Removed.
1833         * math/s_csin.c: Removed.
1834         * math/s_csinf.c: Removed.
1835         * math/s_csinl.c: Removed.
1836         * math/s_csinh.c: Removed.
1837         * math/s_csinhf.c: Removed.
1838         * math/s_csinhl.c: Removed.
1839         * math/k_casinh.c: Removed.
1840         * math/k_casinhf.c: Removed.
1841         * math/k_casinhl.c: Removed.
1842
1843         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
1844         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
1845         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
1846         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
1847
1848         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
1849         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
1850         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
1851         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
1852         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
1853         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
1854         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
1855         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
1856
1857         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
1858         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
1859         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
1860         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
1861
1862         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
1863         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
1864         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
1865         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
1866
1867 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1868
1869         * s_casin_template.c: Copy of s_casin.c.
1870         * s_casinh_template.c: Copy of s_casinh.c.
1871         * s_csin_template.c: Copy of s_csin.c.
1872         * s_csinh_template.c: Copy of s_csinh.c.
1873         * k_casinh_template.c: Copy of k_casinh.c.
1874
1875 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1876
1877         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
1878
1879 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1880
1881         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
1882         (mul_split) Remove, rename as mul_splitl, remove
1883         redundant float.h include, and include via mul_splitl.h
1884
1885         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
1886         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1887         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
1888         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
1889         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1890
1891         * math/mul_splitl.h: New file.
1892
1893         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
1894         Move into mul_split.h, and remove redundant float.h include.
1895
1896         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
1897         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
1898         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
1899         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
1900
1901         * math/mul_split.h: New file.
1902
1903 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1904
1905         * math/Makefile (libm-gen-calls): Move
1906         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
1907         (libm-calls): Remove above.
1908
1909         * math/s_cacos_template.c: Update using type-generic macros.
1910         * math/s_cacosh_template.c: Likewise.
1911         * math/s_ccos_template.c: Likewise.
1912         * math/s_ccosh_template.c: Likwise.
1913
1914         * math/s_cacosf.c: Removed.
1915         * math/s_cacos.c: Removed.
1916         * math/s_cacosl.c: Removed.
1917         * math/s_cacoshf.c: Removed.
1918         * math/s_cacosh.c: Removed.
1919         * math/s_cacoshl.c: Removed.
1920         * math/s_ccosf.c: Removed.
1921         * math/s_ccos.c: Removed.
1922         * math/s_ccosl.c: Removed.
1923         * math/s_ccoshf.c: Removed.
1924         * math/s_ccosh.c: Removed.
1925         * math/s_ccoshl.c: Removed.
1926
1927         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
1928         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
1929         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
1930         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
1931         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
1932         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
1933
1934         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
1935         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
1936         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
1937         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
1938
1939         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
1940         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
1941         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
1942         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
1943
1944 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1945
1946         * s_cacos_template.c: Copy of s_cacos.c.
1947         * s_cacosh_template.c: Copy of s_cacosh.c.
1948         * s_ccos_template.c: Copy of s_ccos.c.
1949         * s_ccosh_template.c: Copy of s_ccosh.c.
1950
1951 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1952
1953         * stdlib/tst-strtod-round-skeleton.c:
1954         Refactored from tst-strtod-round.c.
1955
1956         (L_): New macro to apply literal modifier.
1957         (FNPFX): New macro to select str or wcs prefix.
1958         (CHAR): New macro to choose wchar_t or char.
1959         (STRM): New macro to choose printf for tested character type.
1960
1961         (STRTO): New macro to choose appropriate string -> real function.
1962         (FNPFXS): Stringitized version of FNPFX.
1963         (STR): Support for above macro.
1964         (STRX): Likewise.
1965
1966         (TEST): Update with above macros.
1967         (test): Likewise.
1968         (GEN_ONE_TEST): Likewise.
1969         (test_in_one_mode): Likewise.
1970
1971         * stdlib/tst-strtod-round.c: New file.
1972         * wcsmbs/tst-wcstod-round.c: New file.
1973
1974         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
1975         (tst-wcstod-round): Add libm depencency for fesetround.
1976
1977 2016-08-19  Zack Weinberg  <zackw@panix.com>
1978
1979         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
1980
1981 2016-08-18  Torvald Riegel  <triegel@redhat.com>
1982
1983         [BZ #20477]
1984         * resolv/res_hconf.c (do_init): Use atomic access.
1985         * resolv/res_hconf.h: Add comments.
1986         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
1987         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
1988         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1989
1990 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
1991
1992         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
1993         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
1994         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
1995         Likewise.
1996
1997 2016-08-18  Florian Weimer  <fweimer@redhat.com>
1998
1999         [BZ #16907]
2000         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
2001         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
2002         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
2003         (__attribute__): Remove definition.
2004
2005 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2006
2007         * sysdeps/ieee754/ldbl-128/e_asinl.c:
2008         Remove unused sqrtl declaration.
2009
2010 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2011
2012         * math/Makefile: (gen-libm-templates.stmp): New rule.
2013         (libm-calls): Move carg conj cimag and cabs into ...
2014         (gen-libm-calls): New variable.
2015         (generated): Inform Make objects from gen-libm-calls
2016         may be generated.
2017
2018         * sysdeps/generic/math-type-macros.h: New file.
2019         * sysdeps/generic/math-type-macros-float.h: Likewise.
2020         * sysdeps/generic/math-type-macros-double.h: Likewise.
2021         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
2022         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
2023         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
2024
2025         * math/cabs.c: Refactor into
2026         * math/cabs_template.c: new file.
2027         * math/cabsf.c: Removed.
2028         * math/cabsl.c: Removed.
2029         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
2030         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
2031
2032         * math/carg.c: Refactor into
2033         * math/carg_template.c: new file.
2034         * math/cargf.c: Removed.
2035         * math/cargl.c: Removed.
2036         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
2037         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
2038
2039         * math/conj.c: Refactor into
2040         * math/conj_template.c: new file.
2041         * math/conjf.c: Removed.
2042         * math/conjl.c: Removed.
2043         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
2044         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
2045
2046         * math/cimag.c: Refactor into
2047         * math/cimag_template.c: new file.
2048         * math/cimagf.c: Removed.
2049         * math/cimagl.c: Removed.
2050         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
2051         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
2052
2053         * math/cimag.c: Refactor into
2054         * math/cimag_template.c: new file.
2055         * math/cimagf.c: Removed.
2056         * math/cimagl.c: Removed.
2057         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
2058         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
2059
2060 2016-08-17  Florian Weimer  <fweimer@redhat.com>
2061
2062         Reduce time to expected nptl/tst-once5 failure.
2063         * nptl/tst-once5.cc (TIMEOUT): Define.
2064
2065 2016-08-17  Florian Weimer  <fweimer@redhat.com>
2066
2067         [BZ #20452]
2068         Avoid additional copies of objects in libc.a in static libraries.
2069         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
2070         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
2071         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
2072         rt-sysdep.
2073         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
2074         Add nptl-sysdep.
2075         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
2076         Add ptw-sysdep.
2077         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
2078         rt-sysdep.
2079         * sysdeps/unix/sysv/linux/alpha/Makefile
2080         (libpthread-shared-only-routines): Add ptw-sysdep,
2081         ptw-sigprocmask, ptw-rt_sigaction.
2082         * sysdeps/unix/sysv/linux/ia64/Makefile
2083         (librt-shared-only-routines): Add rt-sysdep.
2084         * sysdeps/unix/sysv/linux/i386/Makefile
2085         (libpthread-shared-only-routines): Add libc-do-syscall.
2086         * sysdeps/unix/sysv/linux/microblaze/Makefile
2087         (libpthread-shared-only-routines): Add sysdep.
2088         * sysdeps/unix/sysv/linux/powerpc/Makefile
2089         (librt-shared-only-routines): Add rt-sysdep.
2090         (libpthread-shared-only-routines): Add sysdep.
2091         * sysdeps/unix/sysv/linux/s390/Makefile
2092         (librt-shared-only-routines): Add rt-sysdep.
2093         * sysdeps/unix/sysv/linux/sparc/Makefile
2094         (librt-shared-only-routines): Add rt-sysdep.
2095         (libpthread-shared-only-routines): Add sysdep.
2096         * sysdeps/unix/sysv/linux/tile/Makefile
2097         (libpthread-shared-only-routines): Likewise.
2098
2099 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
2100
2101         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
2102         Mask implicit bit out of unpacked value.
2103         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
2104         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
2105         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
2106
2107         * sysdeps/sparc/fpu/fesetexcept.c: New file.
2108
2109         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
2110
2111         * sysdeps/s390/fpu/fesetexcept.c: New file.
2112
2113         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
2114         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
2115         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
2116
2117         * sysdeps/mips/fpu/fesetexcept.c: New file.
2118
2119         * sysdeps/m68k/fpu/fesetexcept.c: New file.
2120
2121         * sysdeps/ia64/fpu/fesetexcept.c: New file.
2122
2123         * sysdeps/hppa/fpu/fesetexcept.c: New file.
2124
2125         * sysdeps/arm/fesetexcept.c: New file.
2126
2127         * sysdeps/alpha/fpu/fesetexcept.c: New file.
2128
2129         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
2130
2131         * math/fesetexcept.c: New file.
2132         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
2133         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
2134         * math/fenv.h: Define
2135         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2136         <bits/libc-header-start.h> instead of including <features.h>.
2137         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
2138         declaration.
2139         * manual/arith.texi (fesetexcept): Document function.
2140         * math/Versions (fesetexcept): New libm symbol at version
2141         GLIBC_2.25.
2142         * math/Makefile (libm-support): Add fesetexcept.
2143         (tests): Add test-fesetexcept and test-fesetexcept-traps.
2144         * math/test-fesetexcept.c: New file.
2145         * math/test-fesetexcept-traps.c: Likewise.
2146         * sysdeps/nacl/libm.abilist: Update.
2147         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2148         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2149         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2150         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2151         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2152         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2153         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2154         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2155         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2156         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2157         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2158         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2160         Likewise.
2161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2162         Likewise.
2163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2164         Likewise.
2165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2166         Likewise.
2167         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2168         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2169         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2170         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2171         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2172         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2173         Likewise.
2174         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2175         Likewise.
2176         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2177         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2178         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2179
2180 2016-08-16  Florian Weimer  <fweimer@redhat.com>
2181
2182         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
2183         New.
2184         (do_test): Apply default_stack_size_in_mb if not set.
2185         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
2186
2187 2016-08-15  Andreas Schwab  <schwab@suse.de>
2188
2189         [BZ #20435]
2190         CVE-2016-6323
2191         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
2192         as .cantunwind.
2193
2194 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
2195
2196         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
2197         comment from fraiseexcpt.c.
2198
2199         * math/test-fexcept.c (feraiseexcept_exact): New function.
2200         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
2201         (test_except): Likewise.
2202
2203 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
2204
2205         [BZ #20455]
2206         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
2207         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
2208         to be restored.
2209
2210         * math/test-fexcept-traps.c: New file.
2211         * math/test-fexcept.c: Likewise.
2212         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
2213         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
2214         macro.
2215         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
2216         (EXCEPTION_SET_FORCES_TRAP): Likewise.
2217
2218 2016-08-09  Torvald Riegel  <triegel@redhat.com>
2219
2220         * include/atomic.h (atomic_fetch_and_relaxed,
2221         atomic_fetch_and_release, atomic_fetch_or_release,
2222         atomic_fetch_xor_release): New.
2223
2224 2016-08-06  Christian Seiler  <christian@iwakd.de>
2225
2226         [BZ #20444]
2227         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
2228         MACH_PORT_NULL.
2229
2230 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
2231
2232         * math/s_fdim.c: Avoid alias renamed.
2233         * math/s_fdimf.c: Likewise.
2234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2235         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
2236         Add s_fdimf-vis3, s_fdim-vis3.
2237         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
2238         (CFLAGS-s_fdim-vis3.c): Likewise.
2239         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
2240         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
2241
2242 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
2243
2244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2245         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
2246         Remove s_fdimf-vis3, s_fdim-vis3.
2247         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
2248         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
2249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
2250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
2251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
2252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
2253         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
2254         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
2255         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
2256         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
2257
2258 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
2259
2260         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
2261         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
2262         -Wa,-Av9a -mvis.
2263
2264 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2265
2266         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
2267         LIT() to individual constants in simple expressions
2268         after splitting on spaces.
2269         (_apply_lit): Rename replaced version, and use it to
2270         apply to what appears to be a token.
2271
2272         * math/libm-test.inc: Fix many, many issues with
2273         spacing.
2274
2275 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
2276
2277         * math/math.h: Move comment about <bits/mathdef.h> definitions
2278         above inclusion of <bits/mathdef.h>.  Do not mention
2279         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
2280
2281 2016-08-05  Torvald Riegel  <triegel@redhat.com>
2282
2283         * include/atomic.h (atomic_exchange_relaxed): New.
2284
2285 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
2286
2287         * math/e_scalb.c: Do not include <fenv.h>.
2288         (invalid_fn): Do calculation resulting in NaN instead of raising
2289         FE_INVALID and returning a NaN explicitly.
2290         * math/e_scalbf.c: Do not include <fenv.h>.
2291         (invalid_fn): Do calculation resulting in NaN instead of raising
2292         FE_INVALID and returning a NaN explicitly.
2293         * math/e_scalbl.c: Do not include <fenv.h>.
2294         (invalid_fn): Do calculation resulting in NaN instead of raising
2295         FE_INVALID and returning a NaN explicitly.
2296
2297 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
2298
2299         * po/de.po: Updated from Translation Project.
2300         * po/fi.po: Likewise.
2301         * po/sv.po: Likewise.
2302
2303 2016-08-04  Florian Weimer  <fweimer@redhat.com>
2304
2305         [BZ #20452]
2306         Use sysdep.o from libc.a in static libraries.
2307         * sysdeps/unix/sysv/linux/i386/Makefile
2308         (libpthread-shared-only-routines): Add sysdep.
2309         (librt-shared-only-routines): Likewise.
2310
2311 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
2312
2313         * math/tgmath.h (nextdown): Define if
2314         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
2315         (nextup): Likewise.
2316
2317         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
2318         macro.
2319         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
2320         Document.
2321         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
2322         Document macro.
2323         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
2324         (exp10f): Likewise.
2325         (exp10l): Likewise.
2326         * math/bits/mathcalls.h (exp10): Declare if
2327         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
2328
2329         * manual/arith.texi (nextup): Fix typo in last change.
2330
2331 2016-08-03  Zack Weinberg  <zackw@panix.com>
2332
2333         [BZ #19239]
2334         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
2335         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
2336         define major, minor, and makedev to issue deprecation warnings on use.
2337         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
2338         previously-activated deprecation warnings for these macros and prevent
2339         subsequent inclusions of this header from having any effect.
2340         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
2341         including <sys/sysmacros.h>, and undefine it again afterward.
2342
2343 2016-08-03  Zack Weinberg  <zackw@panix.com>
2344
2345         * sysdeps/generic/sys/sysmacros.h: Delete file.
2346         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
2347         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
2348         * bits/sysmacros.h: ... here; this encoding is now the generic
2349         encoding.  Now defines only the following macros:
2350         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
2351         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
2352         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
2353
2354         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
2355         bits/sysmacros.h and the above new macros to generate the
2356         public implementations of major, minor, and makedev.
2357         * misc/tst-makedev.c: New test.
2358         * include/sys/sysmacros.h: New wrapper.
2359
2360         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
2361         (routines): Add makedev.
2362         (tests): Add tst-makedev.
2363         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
2364         gnu_dev_makedev.
2365         * posix/Makefile (headers): Remove sys/sysmacros.h.
2366         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
2367
2368         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
2369         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
2370         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
2371         * sysdeps/unix/sysv/linux/alpha/libc.abilist
2372         * sysdeps/unix/sysv/linux/arm/libc.abilist
2373         * sysdeps/unix/sysv/linux/hppa/libc.abilist
2374         * sysdeps/unix/sysv/linux/i386/libc.abilist
2375         * sysdeps/unix/sysv/linux/ia64/libc.abilist
2376         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
2377         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
2378         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
2379         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2380         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2381         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2382         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2383         * sysdeps/unix/sysv/linux/nios2/libc.abilist
2384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
2387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
2388         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
2389         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
2390         * sysdeps/unix/sysv/linux/sh/libc.abilist
2391         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
2392         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
2393         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
2394         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
2395         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
2396         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
2397         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
2398         Add GLIBC_2.25.
2399
2400         * include/features.h (__glibc_clang_prereq): New macro.
2401         * misc/sys/cdefs.h (__glibc_clang_has_extension)
2402         (__attribute_deprecated_msg__): New macros.
2403
2404 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
2405
2406         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
2407         macro.
2408         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
2409         * manual/arith.texi (issignaling): Document as ISO from TS
2410         18661-1:2014.
2411         (nextup): Likewise.
2412         (nextupf): Likewise.
2413         (nextupl): Likewise.
2414         (nextdown): Likewise.
2415         (nextdownf): Likewise.
2416         (nextdownl): Likewise.
2417         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
2418         macro.
2419         * math/math.h: Define
2420         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2421         <bits/libc-header-start.h> instead of including <features.h>.
2422         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
2423         [__USE_GNU].
2424         * math/bits/mathcalls.h (nextdown): Declare if
2425         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
2426         (nextup): Likewise.
2427         (__issignaling): Likewise.
2428
2429 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2430
2431         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
2432         check, and remove __glibc_likely hint
2433         from FP_INFINITE check.
2434         * s_csinhf.c (__csinhf): Likewise.
2435
2436         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
2437         hint from FP_INFINITE check.
2438         * s_csinhl.c (__csinhl): Likewise.
2439
2440 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2441
2442         * math/Makefile (libm-calls): Insert F placeholder into
2443         object names.  Move w_lgamma_compat* routines into
2444         (libm-compat-calls): New variable.
2445         (libm-compat-calls-ldouble-yes): New variable.
2446         (calls): Insert F placeholder.
2447         (generated): Redefine using new type-foreach macro call.
2448         (routines): Likewise.
2449
2450         (types): New variable to hold a list of symbolic names
2451         for each type supported by the target machine.
2452         (libm-routines): Redefine using new types variable.
2453         (type-foreach): macro to replace fooF with the
2454         appropriately suffixed foo for each types.
2455
2456         (type-ldouble-suffix): New variable.
2457         (type-ldouble-routines): Likewise.
2458         (type-ldouble-yes): Likewise.
2459         (type-double-suffix): Likewise.
2460         (type-double-routines): Likewise.
2461         (type-float-suffix): Likewise.
2462         (type-float-routines): Likewise.
2463
2464         (dbl-only-routines): Remove.
2465         (long-c-yes): Likewise.
2466         (long-m-routines): Likewise.
2467         (long-m-support): Likewise.
2468         (long-m-yes): Likewise.
2469         (test-longdouble-yes): Likewise.
2470
2471         (test-float.o): Simplify by increasing the scope of the
2472         recipe which adds libm-test.stmp to the vector types.
2473         (test-ifloat.o): Likewise.
2474         (test-float-finite.o): Likewise.
2475         (test-double.o): Likewise
2476         (test-idouble.o): Likewise.
2477         (test-double-finite.o): Likewise.
2478         (test-ldouble.o): Likewise
2479         (test-ildoubl.o): Likewise.
2480         (test-ldouble-finite.o): Likewise.
2481
2482         (libm-tests): Redefine type tests using foreach and the
2483         list of types in types.
2484
2485         (CPPFLAGS-test-ildoubl.c): Rename to
2486         (CPPFLAGS-test-ildouble.c): New variable
2487
2488         * math/test-ildoubl.c: Rename to
2489         * math/test-ildouble.c: New file.
2490
2491 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2492
2493         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
2494         Use fabsl instead of fabs.
2495         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
2496         Likewise.
2497         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
2498         Add long double suffix to constant to ensure proper
2499         promotion to long double.
2500
2501 2016-08-03  Tom Tromey  <tom@tromey.com>
2502
2503         [BZ #20311]
2504         * nptl_db/Makefile (headers): Add proc_service.h.
2505         * nptl_db/proc_service.h: Add include guard.  Use
2506         __BEGIN/__END_DECLS.
2507         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
2508         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
2509         arguments.
2510
2511
2512 2016-08-03  Florian Weimer  <fweimer@redhat.com>
2513
2514         [BZ #17730]
2515         Avoid using memalign for TCB allocations.
2516         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
2517         (_dl_allocate_tls_storage): Use malloc and manual alignment.
2518         Avoid alignment gap in the TLS_DTV_AT_TP case.
2519         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
2520         determine the pointer to free.
2521         * nptl/tst-tls3-malloc.c: New test.
2522         * nptl/Makefile (tests): Add it.
2523         (tst-tls3-malloc): Link with libdl, libpthread.
2524         (LDFLAGS-tst-tls3-malloc): Set.
2525         (tst-tls3-malloc.out): Depend on DSO used in test.
2526
2527 2016-08-03  Florian Weimer  <fweimer@redhat.com>
2528
2529         [BZ #17730]
2530         Avoid using memalign for TLS allocations.
2531         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
2532         is_static member with to_free member.
2533         (union dtv): Use struct dtv_pointer.
2534         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
2535         dtv_pointer instead of is_static.
2536         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2537         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
2538         instead of val.
2539         (allocate_dtv_entry): New function.
2540         (allocate_and_init): Return struct dtv_pointer.  Call
2541         allocate_dtv_entry instead of __libc_memalign.
2542         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
2543         instead of val.
2544         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
2545         instead of is_static.  Adjust call to allocate_and_init.
2546         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
2547         struct dtv_pointer instead of val.
2548
2549 2016-08-03  Florian Weimer  <fweimer@redhat.com>
2550
2551         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
2552         (MALLOC_ALIGN_MASK): Move ...
2553         * malloc/malloc-internal.h: ... to here.
2554         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
2555
2556 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
2557
2558         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
2559         (UDP_ENCAP_GTP1U): Likewise.
2560
2561         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
2562         (PF_MAX): Update value.
2563         (AF_QIPCRTR): New macro.
2564
2565 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
2566
2567         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
2568         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2569         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2570         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
2571         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
2572         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
2573         s_truncf-vis3, s_trunc-vis3.
2574         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
2575         (CFLAGS-s_ceil-vis3.c): Likewise.
2576         (CFLAGS-s_floorf-vis3.c): Likewise.
2577         (CFLAGS-s_floor-vis3.c): Likewise.
2578         (CFLAGS-s_truncf-vis3.c): Likewise.
2579         (CFLAGS-s_trunc-vis3.c): Likewise.
2580         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
2581         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
2582         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
2583         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
2584         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
2585         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
2586         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
2587         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
2588         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
2589         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
2590         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
2591         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
2592
2593 2016-08-02  David S. Miller  <davem@davemloft.net>
2594
2595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
2596         (__nearbyint_vis3): Don't check for sNaN before float register is
2597         loaded with the incoming argument.
2598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
2599         (__nearbyintf_vis3): Likewise.
2600         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
2601         Likewise.
2602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
2603         Likewise.
2604
2605         * string/test-strncmp.c (do_test_limit): Make sure the test data
2606         stream is aligned as required for the type "CHAR".
2607         (do_test): Likewise.
2608
2609 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
2610
2611         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
2612         by beq instructions jumping to the end of the function.
2613         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
2614         clobber list. Use "i" constraint instead of "X".
2615         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
2616         of "X".
2617
2618 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
2619
2620         * bits/libc-header-start.h: New file.
2621         * Makefile (headers): Add bits/libc-header-start.h.
2622         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
2623         (__GLIBC_USE): New macro.
2624         * libio/stdio.h: Define
2625         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2626         <bits/libc-header-start.h> instead of including <features.h>.
2627         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
2628         (open_memstream): Likewise.
2629         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
2630         (__asprintf): Likewise.
2631         (asprintf): Likewise.
2632         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
2633         (getdelim): Likewise.
2634         (getline): Likewise.
2635         * string/string.h: Define
2636         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2637         <bits/libc-header-start.h> instead of including <features.h>.
2638         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
2639         (strndup): Likewise.
2640         * wcsmbs/wchar.h: Define
2641         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
2642         <bits/libc-header-start.h> instead of including <features.h>.
2643         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
2644         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
2645
2646 2016-08-02  Florian Weimer  <fweimer@redhat.com>
2647
2648         Support linking against compatibility symbols, for use in tests.
2649         * include/libc-symbols.h (symbol_version_reference): New macro.
2650         (symbol_version): Use it.
2651         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
2652         (compat_symbol): Use compat_symbol_reference.
2653         (compat_symbol_1, compat_symbol_2): Remove.
2654         (compat_symbol_reference, compat_symbol_reference_1)
2655         (compat_symbol_reference_2): New macro.  Use
2656         symbol_version_reference.
2657
2658 2016-08-02  Florian Weimer  <fweimer@redhat.com>
2659
2660         [BZ #19469]
2661         * malloc/Makefile (CPPFLAGS): Compile tests with
2662         -DTEST_NO_MALLOPT.
2663         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
2664
2665 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
2666
2667         [BZ #20033]
2668         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
2669         finite version.
2670         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
2671         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
2672         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
2673         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
2674         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
2675         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
2676         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
2677         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
2678         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
2679         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
2680         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
2681         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
2682         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
2683         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
2684         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
2685         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
2686         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
2687         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
2688         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
2689         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
2690         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
2691         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
2692         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
2693         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
2694         in zero power.
2695
2696 2016-08-02  Florian Weimer  <fweimer@redhat.com>
2697
2698         [BZ #20370]
2699         * malloc/arena.c (get_free_list): Update comment.  Assert that
2700         arenas on the free list have no attached threads.
2701         (remove_from_free_list): New function.
2702         (reused_arena): Call it.
2703
2704 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
2705
2706         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
2707         when it is a NaN.
2708         [_IEEE_FP_INEXACT] Remove.
2709         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
2710         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
2711         when it is a NaN.
2712         [_IEEE_FP_INEXACT] Remove.
2713         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
2714         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
2715         when it is a NaN.
2716         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
2717         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
2718         when its absolute value is greater than 0x1.0p52.
2719         [_IEEE_FP_INEXACT] Remove.
2720         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
2721         when its absolute value is greater than 0x1.0p23.
2722         [_IEEE_FP_INEXACT] Remove.
2723
2724 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
2725
2726         * version.h (RELEASE): Set to "development"
2727         (VERSION): Set to 2.24.90.
2728         * NEWS: Add 2.25 section.
2729
2730         * version.h (RELEASE): Set to "stable"
2731         (VERSION): Set to 2.24.
2732         * include/features.h (__GLIBC_MINOR__): Set to 24.
2733
2734         * NEWS: Add 2.24 fixed bugs.
2735         * po/libc.pot: Regenerate.
2736
2737 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
2738
2739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2740         [$(subdir) = math] (libm-sysdep_routines): Remove.
2741         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
2742         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
2743         s_truncf-vis3, s_trunc-vis3.
2744         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
2746         file.
2747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
2748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
2749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
2750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
2751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
2752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
2753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
2754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
2756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
2757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
2758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
2759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
2760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
2761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
2762         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
2763         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
2764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
2765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
2766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
2767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
2768         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
2769         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
2770         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
2771         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
2772         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
2773         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
2774         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
2775         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
2776         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
2777         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
2778         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
2779         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
2780         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
2781         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
2782         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
2783         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
2784         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
2785         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
2786         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
2787         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
2788         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
2789         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
2790
2791 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
2792
2793         [BZ #20384]
2794         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
2795         test-double-libmvec-sincos-avx-main.o,
2796         test-double-libmvec-sincos-avx2-main.o,
2797         test-double-libmvec-sincos-main.o,
2798         test-float-libmvec-sincosf-avx-main.o,
2799         test-float-libmvec-sincosf-avx2-main.o and
2800         test-float-libmvec-sincosf-main.o.
2801         test-float-libmvec-sincosf-avx512-main.o.
2802         ($(objpfx)test-double-libmvec-sincos): Also link with
2803         $(objpfx)test-double-libmvec-sincos-main.o.
2804         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
2805         $(objpfx)test-double-libmvec-sincos-avx-main.o.
2806         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
2807         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
2808         ($(objpfx)test-float-libmvec-sincosf): Also link with
2809         $(objpfx)test-float-libmvec-sincosf-main.o.
2810         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
2811         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
2812         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
2813         test-double-libmvec-sincos-avx512-main.o and
2814         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
2815         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
2816         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
2817         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
2818         (CFLAGS-test-double-libmvec-sincos.c): Removed.
2819         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
2820         (CFLAGS-test-double-libmvec-sincos-main.c): New.
2821         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
2822         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
2823         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
2824         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
2825         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
2826         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
2827         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
2828         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
2829         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
2830         -DREQUIRE_AVX2.
2831         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
2832         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
2833         -DREQUIRE_AVX512F.
2834         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
2835         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
2836         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
2837         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
2838         file.
2839         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
2840         Likewise.
2841         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
2842         Likewise.
2843         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
2844         Likewise.
2845         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
2846         Likewise.
2847         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
2848         Likewise.
2849         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
2850         Likewise.
2851         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
2852         Likewise.
2853
2854 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
2855
2856         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
2857
2858 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
2859
2860         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
2861         and typo in a comment about AT_HWCAP entry.
2862
2863 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2864
2865         * sysdeps/aarch64/libm-test-ulps: Updated.
2866
2867 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
2868
2869         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
2870         of r13 as it is not restored in mvcle case.
2871
2872 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
2873
2874         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
2875         Rename "ret" to "__ret".
2876         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
2877         inline_syscall5, inline_syscall6): Likewise.
2878
2879 2016-07-19   Will Newton  <will.newton@gmail.com>
2880
2881         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
2882         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
2883         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
2884         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
2885         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
2886
2887 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2888
2889         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
2890         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
2891         -mfpmath=387 with $(rtld-CFLAGS).
2892         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
2893         $(rtld-CFLAGS).
2894
2895 2016-07-18   Ross Burton  <ross.burton@intel.com>
2896              Khem Raj  <raj.khem@gmail.com>
2897
2898         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
2899         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
2900         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
2901         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
2902         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
2903         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
2904         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
2905         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
2906         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
2907         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
2908         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
2909         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
2910         R_METAG_TLS_DTPOFF): New.
2911
2912 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2913             Matt Clay  <mclay@lycos.com>
2914
2915         [BZ #20357]
2916         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
2917         to call __mpsin/__mpcos and to negate values.
2918         * math/auto-libm-test-in: Add test.
2919         * math/auto-libm-test-out: Regenerate.
2920
2921 2016-07-18  Zack Weinberg  <zackw@panix.com>
2922
2923         * grp/Makefile: Don't install the internal header grp-merge.h.
2924
2925 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2926
2927         * sysdeps/aarch64/libm-test-ulps: Regenerated.
2928
2929 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2930
2931         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
2932
2933 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2934
2935         [BZ #15368]
2936         * sysdeps/unix/sysv/linux/nptl-signals.h
2937         (__nptl_clear_internal_signals): New function.
2938         (__libc_signal_block_all): Likewise.
2939         (__libc_signal_block_app): Likewise.
2940         (__libc_signal_restore_set): Likewise.
2941         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
2942         implementation.
2943         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
2944         the cached pid/tid value in pthread structure.
2945
2946 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2947
2948         [BZ #20347]
2949         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
2950
2951 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
2952
2953         [BZ #20348]
2954         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
2955         preadv64, pwrite64 and pwritev64.
2956
2957 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
2958
2959         [BZ #20350]
2960         * posix/tst-preadwrite.c: Renamed to ...
2961         * posix/tst-preadwrite-common.c: This.
2962         (PREAD): Removed.
2963         (PWRITE): Likewise.
2964         (STRINGIFY): Likewise.
2965         (STRINGIFY2): Likewise.
2966         (do_prepare): Make it static and remove function arguments.
2967         (do_test): Likewise.
2968         (PREPARE): Updated.
2969         (TEST_FUNCTION): New.
2970         (name): Make it static.
2971         (fd): Likewise.
2972         (do_prepare): Use create_temp_file.
2973         (do_test): Renamed to ...
2974         (do_test_with_offset): This.  Make it static and accept offset.
2975         Properly check return value of PWRITE and PREAD.  Return bytes
2976         read.  Don't close fd nor unlink name.
2977         * posix/tst-preadwrite.c: Rewrite.
2978         * posix/tst-preadwrite64.c: Likewise.
2979
2980 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
2981
2982         [BZ #20309]
2983         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
2984         -mtls-dialect=gnu2 works.
2985         * configure: Regenerated.
2986         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
2987         (tests): Add tst-gnu2-tls1.
2988         (modules-names): Add tst-gnu2-tls1mod.
2989         ($(objpfx)tst-gnu2-tls1): New.
2990         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
2991         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
2992         * elf/tst-gnu2-tls1.c: New file.
2993         * elf/tst-gnu2-tls1mod.c: Likewise.
2994         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
2995         bytes for push in the PLT entry to align the stack.
2996
2997 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
2998
2999         [BZ #20349]
3000         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
3001
3002 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3003
3004         [BZ #18707]
3005         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
3006         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
3007
3008 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3009
3010         * sysdeps/unix/sysv/linux/sysdep.h
3011         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
3012         guards.
3013         * misc/tst-preadvwritev-common.c: New file.
3014         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
3015         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
3016         a check for files larger than 2GB.
3017
3018         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3019         (__ASSUME_OFF_DIFF_OFF64): Remove define.
3020         * sysdeps/unix/sysv/linux/pread.c
3021         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
3022         __OFF_T_MATCHES_OFF64_T.
3023         * sysdeps/unix/sysv/linux/pread64.c
3024         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
3025         * sysdeps/unix/sysv/linux/preadv.c
3026         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
3027         * sysdeps/unix/sysv/linux/preadv64.c
3028         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
3029         * sysdeps/unix/sysv/linux/pwrite.c
3030         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
3031         * sysdeps/unix/sysv/linux/pwrite64.c
3032         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
3033         * sysdeps/unix/sysv/linux/pwritev.c
3034         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
3035         * sysdeps/unix/sysv/linux/pwritev64.c
3036         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
3037
3038 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
3039
3040         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3041         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
3042
3043 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
3044
3045         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
3046
3047 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
3048
3049         [BZ #20240]
3050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3051         (CFLAGS-s_modf-ppc32.c): New variable.
3052         (CFLAGS-s_modff-ppc32.c): Likewise.
3053         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3054         (CFLAGS-s_modf-ppc64.c): Likewise.
3055         (CFLAGS-s_modff-ppc64.c): Likewise.
3056
3057 2016-07-07  Andreas Schwab  <schwab@suse.de>
3058
3059         [BZ #20263]
3060         * nptl/tst-robust10.c: New test.
3061         * nptl/Makefile (tests): Add tst-robust10.
3062
3063 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
3064
3065         [BZ #20263]
3066         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
3067
3068 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
3069
3070         * sysdeps/s390/linkmap.h (struct link_map_machine):
3071         Remove member gotplt and add member jmprel.
3072         * sysdeps/s390/s390-32/dl-machine.h
3073         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
3074         instead of gotplt with &got[3].
3075         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
3076         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3077
3078 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
3079
3080         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
3081
3082 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3083
3084         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
3085         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
3086         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
3087         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
3088         * libio/vtables.c (_IO_vtable_check)
3089         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
3090         * libio/libioP.h (IO_set_accept_foreign_vtables)
3091         [!PTR_MANGLE]: Do not call PTR_MANGLE.
3092
3093 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3094
3095         [BZ #20314]
3096         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
3097         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
3098         $(common-objpfx)cmath.
3099         ($(common-objpfx)cstdlib): New target.
3100         ($(common-objpfx)cmath): Likewise.
3101
3102 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
3103
3104         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
3105
3106 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3107
3108         [BZ #20327]
3109         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
3110         are not part of the string.
3111
3112 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3113
3114         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
3115         * nptl/tst-cancel4-common.h (fifoname): New variable.
3116         (fifofd): Likewise.
3117         (cl_fifo): New function.
3118         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
3119         SIGINT.
3120         (tf_open): Add early cancel test.
3121
3122 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3123
3124         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
3125
3126 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
3127
3128         * sysdeps/generic/ldsodefs.h
3129         (dl_symbol_visibility_binds_local_p): New inline function.
3130         * elf/dl-addr.c (determine_info): Treat hidden and internal
3131         symbols as local.
3132         * elf/dl-lookup.c (do_lookup_x): Likewise.
3133         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
3134
3135 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
3136
3137         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
3138         invalid exception for a sNaN input.
3139         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
3140         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
3141         (__nearbyint_vis3): Likewise
3142         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
3143         (__nearbyintf_vis3): Likewise
3144         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
3145         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
3146         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
3147         Likewise.
3148         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
3149         Likewise.
3150
3151 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
3152
3153         [BZ #20139]
3154         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
3155         (HAVE_AVX512DQ_ASM_SUPPORT): This.
3156         * sysdeps/x86_64/configure.ac: Require assembler from binutils
3157         2.24 or above.
3158         (HAVE_AVX512_ASM_SUPPORT): Removed.
3159         (HAVE_AVX512DQ_ASM_SUPPORT): New.
3160         * sysdeps/x86_64/configure: Regenerated.
3161         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
3162         check unconditional.
3163         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
3164         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
3165         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
3166         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3167         Likewise.
3168         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3169         Likewise.
3170         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
3171         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
3172         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
3173         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
3174         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
3175         Likewise.
3176         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3177         Likewise.
3178         * sysdeps/x86_64/multiarch/memset.S: Likewise.
3179         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
3180         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
3181         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
3182         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
3183         Likewise.
3184         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
3185         Likewise.
3186         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
3187         Likewise.
3188         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
3189         Likewise.
3190         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
3191         Likewise.
3192         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
3193         Likewise.
3194         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
3195         Likewise.
3196         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
3197         Likewise.
3198         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
3199         Likewise.
3200         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
3201         Likewise.
3202         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
3203         Likewise.
3204
3205 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
3206
3207         [BZ #20024]
3208         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
3209         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
3210         of this implementation of vector function.
3211         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
3212         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
3213         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
3214         Likewise.
3215         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
3216         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
3217         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
3218         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
3219         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
3220         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
3221         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
3222         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
3223         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
3224         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
3225         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
3226         for testing vector sincos with fixed ABI.
3227         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
3228         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
3229         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
3230         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
3231         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
3232         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
3233         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
3234         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
3235         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
3236         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
3237         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
3238         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
3239         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
3240         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
3241         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
3242         * sysdeps/x86_64/fpu/Makefile: Added new tests.
3243
3244 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
3245
3246         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
3247
3248 2016-06-30  Anton Blanchard  <anton@samba.org>
3249
3250         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3251         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
3252         s_sinf-ppc64.
3253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
3254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
3255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
3256         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
3257
3258 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3259
3260         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3261         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3262         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
3263         e_expf-ppc64.
3264         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
3265         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
3266         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
3267         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
3268
3269 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
3270
3271         [BZ #20277]
3272         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
3273         when SHARED is defined.
3274
3275 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3276
3277         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
3278         (index_arch_Prefer_ERMS): Likewise.
3279         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
3280         __memcpy_erms for Prefer_ERMS.
3281         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3282         (__memmove_erms): Enabled for libc.a.
3283         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
3284         __memmove_erms or Prefer_ERMS.
3285         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
3286         __mempcpy_erms for Prefer_ERMS.
3287         * sysdeps/x86_64/multiarch/memset.S (memset): Return
3288         __memset_erms for Prefer_ERMS.
3289
3290 2016-06-30  Andreas Schwab  <schwab@suse.de>
3291
3292         [BZ #20262]
3293         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
3294         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
3295         of memory.
3296
3297 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
3298
3299         [BZ #18645]
3300         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
3301         (test-extras): Add tst-cleanupx4aux.
3302         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
3303         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
3304         tst-cleanupx4aux.o.
3305         * nptl/tst-cleanupx4aux.c: New file.
3306
3307 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
3308
3309         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
3310
3311 2016-06-29  Andreas Schwab  <schwab@suse.de>
3312
3313         [BZ #20260]
3314         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
3315         address before the beginning of the string as an integer to avoid
3316         array-bounds warning.
3317
3318 2016-06-28  Richard Henderson  <rth@redhat.com>
3319
3320         * elf/elf.h (EM_BPF): New.
3321         (EM_NUM): Update.
3322         (R_BPF_NONE, R_BPF_MAP_FD): New.
3323
3324         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
3325         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
3326         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
3327         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
3328         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
3329         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
3330         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
3331         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
3332         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
3333         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
3334         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
3335         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
3336         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
3337         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
3338         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
3339         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
3340         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
3341         (EM_NUM): Update.
3342
3343 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
3344
3345         [BZ #18960]
3346         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
3347         Set _nl_current_LC_CATEGORY_used to two instead of one.
3348
3349 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
3350
3351         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
3352         (do_test): ... this.
3353         (TEST_FUNCTION): New macro.
3354          Include test-skeleton.c.
3355         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
3356         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
3357
3358 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
3359
3360         [BZ #15479]
3361         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
3362         floating-point environment rather than just control word.
3363         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
3364         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
3365         floating-point environment, with "invalid" exceptions merged in,
3366         rather than just control word.
3367         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
3368         * math/libm-test.inc (trunc_test_data): Do not allow spurious
3369         "inexact" exceptions.
3370
3371         [BZ #15479]
3372         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
3373         floating-point environment rather than just control word.
3374         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
3375         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
3376         floating-point environment, with "invalid" exceptions merged in,
3377         rather than just control word.
3378         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
3379         * math/libm-test.inc (floor_test_data): Do not allow spurious
3380         "inexact" exceptions.
3381
3382         [BZ #15479]
3383         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
3384         floating-point environment rather than just control word.
3385         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
3386         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
3387         floating-point environment, with "invalid" exceptions merged in,
3388         rather than just control word.
3389         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
3390         * math/libm-test.inc (ceil_test_data): Do not allow spurious
3391         "inexact" exceptions.
3392
3393 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
3394
3395         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
3396         __libc_vfork.
3397         (__vfork) [IS_IN (libc)]: Remove alias.
3398         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
3399         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
3400         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
3401
3402 2016-06-24  Torvald Riegel  <triegel@redhat.com>
3403
3404         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
3405         of atomic_compare_and_exchange_bool_rel.
3406         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
3407         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
3408         catomic_compare_and_exchange_bool_rel): Remove.
3409         * sysdeps/aarch64/atomic-machine.h
3410         (atomic_compare_and_exchange_bool_rel): Likewise.
3411         * sysdeps/alpha/atomic-machine.h
3412         (atomic_compare_and_exchange_bool_rel): Likewise.
3413         * sysdeps/arm/atomic-machine.h
3414         (atomic_compare_and_exchange_bool_rel): Likewise.
3415         * sysdeps/mips/atomic-machine.h
3416         (atomic_compare_and_exchange_bool_rel): Likewise.
3417         * sysdeps/microblaze/atomic-machine.h
3418         ( __arch_compare_and_exchange_bool_8_rel,
3419         __arch_compare_and_exchange_bool_16_rel): Likewise.
3420         * sysdeps/powerpc/atomic-machine.h
3421         ( __arch_compare_and_exchange_bool_8_rel,
3422         __arch_compare_and_exchange_bool_16_rel): Likewise.
3423         * sysdeps/powerpc/powerpc32/atomic-machine.h
3424         ( __arch_compare_and_exchange_bool_32_rel,
3425         __arch_compare_and_exchange_bool_64_rel): Likewise.
3426         * sysdeps/powerpc/powerpc64/atomic-machine.h
3427         ( __arch_compare_and_exchange_bool_32_rel,
3428         __arch_compare_and_exchange_bool_64_rel): Likewise.
3429         * sysdeps/tile/atomic-machine.h
3430         (atomic_compare_and_exchange_bool_rel): Likewise.
3431
3432 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
3433
3434         [BZ #20296]
3435         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
3436         when either argument is a NaN.
3437         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
3438         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
3439
3440         * math/libm-test.inc (snan_value_ld): New macro.
3441         (isgreater_test_data): Add sNaN tests.
3442         (isgreaterequal_test_data): Likewise.
3443         (isless_test_data): Likewise.
3444         (islessequal_test_data): Likewise.
3445         (islessgreater_test_data): Likewise.
3446         (isunordered_test_data): Likewise.
3447         (nextafter_test_data): Likewise.
3448         (nexttoward_test_data): Likewise.
3449         (remainder_test_data): Likewise.
3450         (remquo_test_data): Likewise.
3451         (significand_test_data): Likewise.
3452         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
3453
3454 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3455
3456         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
3457         environment macros are defined.
3458         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
3459
3460 2016-06-23  Florian Weimer  <fweimer@redhat.com>
3461
3462         [BZ #20191]
3463         Implement vtable verification in libio.
3464         * Makerules (shlib.lds): Place __libc_IO_vtables section.
3465         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
3466         * debug/vdprintf_chk.c (__vdprintf_chk): Call
3467         _IO_new_file_init_internal instead of _IO_file_init.
3468         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
3469         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
3470         * libio/Makefile (routines): Add vtables.
3471         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
3472         (_IO_init): Remove, not for internal use.
3473         (_IO_init_internal): Declare, internal replacement for _IO_init.
3474         (_IO_file_init): Remove, not for internal use.
3475         (_IO_new_file_init): Remove, not for internal use.
3476         (_IO_new_file_init_internal): Declare, internal replacement for
3477         _IO_new_file_init.
3478         (_IO_old_file_init): Remove, not for internal use.
3479         (_IO_old_file_init_internal): Declare, internal replacement for
3480         _IO_old_file_init.
3481         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
3482         internal use.
3483         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
3484         Declare.
3485         (libio_vtable): New macro.
3486         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
3487         functions.
3488         * libio/fileops.c (_IO_new_file_init_internal): Rename from
3489         _IO_new_file_init.
3490         (_IO_new_file_init): New externally visible wrapper which disables
3491         vtable verification.
3492         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
3493         Define as vtables.
3494         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
3495         (_IO_init): New externally visible wrapper which disables
3496         vtable verification.
3497         * libio/iofdopen.c (_IO_new_fdopen): Call
3498         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
3499         comment.
3500         * libio/iofopen.c (__fopen_internal): Call
3501         _IO_new_file_init_internal instead of _IO_file_init.
3502         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
3503         Define as vtables.
3504         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
3505         _IO_new_file_init_internal instead of _IO_file_init.
3506         * libio/iopopen.c (_IO_new_popen): Likewise.
3507         (_IO_proc_jumps): Define as vtable.
3508         * libio/iovdprintf.c (_IO_vdprintf): Call
3509         _IO_new_file_init_internal instead of _IO_file_init.
3510         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
3511         (__open_memstream): Call _IO_init_internal instead of _IO_init.
3512         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
3513         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
3514         _IO_old_file_init.
3515         (_IO_old_file_init): New externally visible wrapper which disables
3516         vtable verification.
3517         (_IO_old_file_jumps): Define as vtable.
3518         * libio/oldiofdopen.c (_IO_old_fdopen): Call
3519         _IO_old_file_init_internal instead of _IO_old_file_init.
3520         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3521         * libio/oldiopopen.c (_IO_old_popen): Likewise.
3522         (_IO_old_proc_jumps): Define as vtable.
3523         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
3524         Define as vtables.
3525         * libio/vtables.c: New file.
3526         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
3527         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
3528         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
3529         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3530         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3531         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
3532         instead of _IO_init.
3533
3534 2016-06-23  Florian Weimer  <fweimer@redhat.com>
3535
3536         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
3537
3538 2016-06-23  Florian Weimer  <fweimer@redhat.com>
3539
3540         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
3541         potentially unused.
3542
3543 2016-06-22  Florian Weimer  <fweimer@redhat.com>
3544
3545         * test-skeleton.c (write_message): New function.
3546         * malloc/tst-mallocfork2.c (write_message): Remove.
3547         * debug/tst-longjmp_chk2.c (write_indented): New function.
3548         (write_message): Remove.
3549         (stackoverflow_handler): Call write_indented.
3550
3551 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
3552
3553         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
3554         "inexact" exceptions after fnstenv.
3555         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
3556         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
3557         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
3558
3559 2015-06-22  Zack Weinberg  <zackw@panix.com>
3560
3561         * sysdeps/generic/bits/hwcap.h: Moved to ...
3562         * bits/hwcap.h: Here.
3563
3564 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
3565
3566         * sysdeps/aarch64/memcpy.S (memcpy):
3567         Further tuning for performance.
3568
3569 2016-06-21  Florian Weimer  <fweimer@redhat.com>
3570
3571         [BZ #20284]
3572         * malloc/arena.c (reused_arena): Do not return NULL if we start
3573         out with a non-corrupted arena.
3574
3575 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3576
3577         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
3578         * misc/tst-preadvwritev.c: New file.
3579         * misc/tst-preadvwritev64.c: Likewise.
3580         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
3581         usage.
3582         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
3583         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
3584         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
3585         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
3586
3587 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
3588
3589         [BZ #19654]
3590         * sysdeps/x86_64/fpu/Makefile: Added new tests.
3591         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
3592         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
3593         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
3594         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
3595         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
3596         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
3597         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
3598         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
3599         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
3600         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
3601         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
3602         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
3603         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
3604         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
3605         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
3606         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
3607         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
3608         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
3609         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
3610         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
3611         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
3612         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
3613         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
3614         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
3615         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
3616
3617 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3618
3619         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
3620         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
3621
3622 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3623
3624         * sysdeps/aarch64/memcpy.S (memcpy):
3625         Rewrite of optimized memcpy and memmove.
3626         * sysdeps/aarch64/memmove.S (memmove): Remove
3627         memmove code (merged into memcpy.S).
3628
3629 2016-06-20  Florian Weimer  <fweimer@redhat.com>
3630
3631         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
3632         * sysdeps/generic/dl-dtv.h: New file.
3633         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3634         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
3635         (dtv_t): Remove.
3636         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3637         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
3638         (dtv_t): Remove.
3639         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3640         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
3641         (dtv_t): Remove.
3642         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3643         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
3644         (dtv_t): Remove.
3645         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3646         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
3647         (dtv_t): Remove.
3648         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3649         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
3650         (dtv_t): Remove.
3651         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3652         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
3653         (dtv_t): Remove.
3654         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
3655         (dtv_t): Remove.
3656         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3657         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
3658         (dtv_t): Remove.
3659         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3660         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
3661         (dtv_t): Remove.
3662         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3663         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
3664         (dtv_t): Remove.
3665         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3666         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
3667         (dtv_t): Remove.
3668         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3669         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
3670         (dtv_t): Remove.
3671         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3672         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
3673         (dtv_t): Remove.
3674         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3675         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
3676         (dtv_t): Remove.
3677         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
3678         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
3679         (dtv_t): Remove.
3680
3681 2016-06-20  Florian Weimer  <fweimer@redhat.com>
3682
3683         Revert symbol poisoning of  __malloc_initialize_hook.
3684         * include/stdc-predef.h (__malloc_initialize_hook): Remove
3685         poisoning.
3686         * malloc/Makefile: Remove un-poisoning.
3687         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
3688         instead of old__malloc_initialize_hook.
3689         * malloc/malloc-hooks.h: Likewise.
3690         * malloc/malloc.c: Likewise.
3691         * malloc/mcheck-init.c: Likewise.
3692
3693 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
3694
3695         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
3696
3697 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
3698
3699         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
3700         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
3701         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
3702         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
3703
3704 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3705
3706         * NEWS: Mention addition of nextup and nextdown.
3707         * manual/arith.texi: Document nextup and nextdown.
3708         * manual/libm-err-tab.pl: Add nextup and nextdown.
3709         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
3710         * math/Versions (libm): Add GLIBC_2.24.
3711         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
3712         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
3713         Add new test.
3714         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
3715         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
3716         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
3717         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
3718         (nextup_test_data): Likewise.
3719         (nextdown_test_data): Likewise.
3720         * math/s_nextdown.c: New file.
3721         * math/s_nextdownf.c: Likewise.
3722         * math/s_nextdownl.c: Likewise.
3723         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
3724         F(nextup): New function.
3725         F(nextdown): Likewise.
3726         * math/tgmath.h: Add nextup and nextdown.
3727         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
3728         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
3729         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
3730         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
3731         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
3732         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
3733         Add nextup and nextdown.
3734         (CFLAGS-nldbl-nextup.c): New variable.
3735         (CFLAGS-nldbl-nextdown.c): Likewise.
3736         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
3737         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
3738         * sysdeps/nacl/libm.abilist: Update.
3739         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3740         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3741         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3742         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3743         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3744         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3745         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3746         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3747         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3748         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3749         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3750         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
3752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3753         Likewise.
3754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
3755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
3756         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3757         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3758         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3759         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3760         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3761         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
3762         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
3763         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3764         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3765         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
3766         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3767
3768 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
3769
3770         * manual/pattern.texi: Fix typos & grammar errors.
3771
3772 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
3773
3774         * manual/search.texi: Fix typos & grammar errors.
3775
3776 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
3777
3778         * manual/message.texi: Fix typos & grammar errors.
3779
3780 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
3781
3782         * manual/contrib.texi: Fix spelling typos.
3783         * manual/crypt.texi: Likewise.
3784         * manual/filesys.texi: Likewise.
3785         * manual/locale.texi: Likewise.
3786         * manual/message.texi: Likewise.
3787         * manual/nss.texi: Likewise.
3788         * manual/string.texi: Likewise.
3789
3790 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
3791
3792         * manual/locale.texi: Fix typos & grammar errors.
3793
3794 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
3795
3796         * manual/charset.texi: Fix typos & grammar errors.
3797
3798 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
3799
3800         * manual/string.texi: Fix typos.
3801
3802 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
3803
3804         * manual/ctype.texi: Fix typos.
3805
3806 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
3807
3808         * manual/memory.texi: Fix various typos & grammar errors.
3809
3810 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
3811
3812         [BZ #20255]
3813         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
3814         * math/libm-test.inc (fdim_test_data): Add another test.
3815
3816         [BZ #6796]
3817         [BZ #20255]
3818         [BZ #20256]
3819         * math/s_fdim.c: Include <math_private.h>.
3820         (__fdim): Use math_narrow_eval on result.
3821         * math/s_fdimf.c: Include <math_private.h>.
3822         (__fdimf): Use math_narrow_eval on result.
3823         * sysdeps/i386/fpu/s_fdim.S: Remove file.
3824         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
3825         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
3826         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
3827         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
3828         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
3829         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
3830         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
3831         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
3832         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
3833         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
3834         * math/libm-test.inc (fdim_test_data): Expect errno setting on
3835         overflow.  Add sNaN tests.
3836
3837         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
3838         fpclassify.
3839         * math/s_fdimf.c (__fdimf): Likewise.
3840         * math/s_fdiml.c (__fdiml): Likewise.
3841
3842 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3843
3844         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3845         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
3846         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3847         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3848         ifunc'ed strcasecmp/strncasecmp.
3849         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
3850         [EALIGN]: Removed.
3851         [END]: Likewise.
3852         [__strcasecmp]: Define instead of the above to control symbol name.
3853         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
3854         for __strcasecmp_power8.
3855         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
3856         for __strncasecmp_power8.
3857         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
3858         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
3859         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
3860         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
3861         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
3862         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
3863
3864 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
3865
3866         [BZ #20252]
3867         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
3868         arguments when second argument is a NaN.
3869         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
3870         qNaN tests.
3871
3872         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
3873         (conj_test_data): Likewise.
3874         (copysign_test_data): Likewise.
3875         (creal_test_data): Likewise.
3876         (fma_test_data): Likewise.
3877         (fmod_test_data): Likewise.
3878
3879         [BZ #20250]
3880         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
3881         itself.
3882         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
3883         zero input to itself.
3884         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
3885         Likewise.
3886         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
3887         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
3888         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
3889         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
3890         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
3891
3892 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3893
3894         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
3895         * nptl/tst-cancel4-common.c: New file.
3896         * nptl/tst-cancel4-common.h: Likewise.
3897         * nptl/tst-cancel4.c: Move common definitions to
3898         tst-cancel4-common.{c,h} file.
3899         * nptl/tst-cancel4_1.c: New test.
3900         * nptl/tst-cancel4_2.c: New test.
3901
3902 2016-06-13  Florian Weimer  <fweimer@redhat.com>
3903
3904         [BZ #20248]
3905         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
3906         (write_message): New function.
3907         (stackoverflow_handler): Call it instead of printf, to avoid
3908         excessive stack usage by printf.
3909         (do_test): Restore SIGSEGV, SIGBUS default handlers.
3910
3911 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3912
3913         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
3914         (prio_inherit_missing): Remove define.
3915         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3916         (__ASSUME_FUTEX_LOCK_PI): Likewise.
3917         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
3918         Likewise.
3919         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3920         (__ASSUME_FUTEX_LOCK_PI): Likewise.
3921         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3922         (__ASSUME_FUTEX_LOCK_PI): Likewise.
3923         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
3924         (__ASSUME_FUTEX_LOCK_PI): Likewise.
3925
3926 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
3927
3928         [BZ #19670]
3929         [BZ #19672]
3930
3931         * io/test-lfs.c (do_prepare): Use xmalloc.
3932         * io/tst-fcntl.c (do_prepare): Likewise.
3933         * libio/tst-fopenloc.c (do_bz17916): Likewise.
3934         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
3935         * login/tst-utmp.c (do_prepare): Likewise.
3936         * posix/tst-exec.c (do_prepare): Likewise.
3937         * posix/tst-pathconf.c (prepare): Likewise.
3938         * posix/tst-spawn.c (do_prepare): Likewise.
3939         * posix/tst-truncate.c (do_prepare): Likewise.
3940         * rt/tst-aio.c (do_prepare): Likewise.
3941         * rt/tst-aio64.c (do_prepare): Likewise.
3942
3943 2016-06-11  Florian Weimer  <fweimer@redhat.com>
3944
3945         [BZ #20237]
3946         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
3947         (get*ent): Set entidx to NULL during initialization.  If entidx is
3948         NULL, start iteration from the beginning.
3949
3950 2016-06-11  Florian Weimer  <fweimer@redhat.com>
3951
3952         * malloc/malloc.c (musable): Return correct size for dumped fake
3953         mmapped chunk.
3954
3955 2016-06-11  Florian Weimer  <fweimer@redhat.com>
3956
3957         [BZ #20222]
3958         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
3959         (_IO_cookie_write): Likewise.
3960         (_IO_cookie_seek): Likewise.
3961         (_IO_cookie_close): Likewise.
3962         (_IO_old_cookie_seek): Likewise.
3963         (set_callbacks): New function.
3964         (_IO_cookie_init): Call set_callbacks to copy callbacks.
3965
3966 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
3967
3968         * locale/programs/localedef.c (oldstyle_tables): Remove.
3969         * locale/programs/localedef.h (oldstyle_tables): Likewise.
3970
3971 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
3972
3973         [BZ #20240]
3974         * math/Makefile (CFLAGS-s_modf.c): New variable.
3975         (CFLAGS-s_modff.c): Likewise.
3976         (CFLAGS-s_modfl.c): Likewise.
3977         * math/libm-test.inc (modf_test_data): Add sNaN tests.
3978
3979 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
3980
3981         [BZ #20215]
3982         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
3983         [!__GNUC_PREREQ (3,2)]: Likewise.
3984
3985 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
3986
3987         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
3988         (msghdr.msg_controllen): Likewise.
3989         (cmsghdr.cmsg_len): Likewise.
3990         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
3991         ptw-oldsendmsg.
3992         (CFLAGS-oldrecvmsg.c): Remove rule.
3993         (CFLAGS-oldsendmsg.c): Likewise.
3994         (CFLAGS-recvmsg.c): Add rule.
3995         (CFLAGS-sendmsg.c): Likewise.
3996         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
3997         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
3998         (CFLAGS-recvmsg.c): Remove rule.
3999         (CFLAGS-sendmsg.c): Likewise.
4000         (CFLAGS-oldrecvmsg.c): Likewise.
4001         (CFLAGS-oldsendmsg.c): Likewise.
4002         (CFLAGS-recvmmsg.c): Likewise.
4003         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
4004         to kernel defined interfaces.
4005         (msghdr.msg_controllen): Likewise.
4006         (cmsghdr.cmsg_len): Likewise.
4007         (msghdr.__glibc_reserved1): Remove member.
4008         (msghdr.__glibc_reserved2): Likewise.
4009         (cmsghdr.__glibc_reserved1): Likewise.
4010         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
4011         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
4012         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
4013         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
4014         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
4015         version.
4016         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
4017         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
4018         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
4019         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
4020         Remove recvmsg and sendmsg.
4021         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
4022         Likewise.
4023         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
4024         Likewise.
4025         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
4026         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
4027         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
4028         Likewise.
4029         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
4030         Likewise.
4031         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
4032         [libc] (GLIBC_2.24): Likewise.
4033         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
4034         Likewise.
4035         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
4036         Likewise.
4037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
4038         [libc] (GLIBC_2.24): Likewise.
4039         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
4040         Likewise.
4041         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
4042         Likewise.
4043         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
4044         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
4045         Likewise.
4046         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
4047         Likewise.
4048         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
4049         Likewise.
4050         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
4051         Likewise.
4052         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
4053         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
4054         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
4055         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
4056         version for {recv,send,recm,sendm}msg.
4057         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4058         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4059         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4060         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4061         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4062         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4063         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4064         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4065         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4066         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
4067         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4068         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4070         Likewise.
4071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4072         Likewise.
4073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
4074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4075         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4076         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4077         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4078         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4079         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4080         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4081         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
4082         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
4083         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
4084         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4085         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4086
4087 2016-06-10  Florian Weimer  <fweimer@redhat.com>
4088
4089         [BZ #19564]
4090         Remove __malloc_initialize_hook from the API.
4091         * malloc/malloc.h (__malloc_initialize_hook): Remove.
4092         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
4093         #pragma GCC poison.
4094         * malloc/malloc-hooks.h: New file.
4095         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
4096         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
4097         (old__malloc_initialize_hook): Rename from
4098         __malloc_initialize_hook to evade poisoning.  Turn into compat
4099         symbol.
4100         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
4101         __malloc_initialize_hook.
4102         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
4103         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
4104         * manual/memory.texi (Hooks for Malloc): Remove
4105         __malloc_initialize_hook.  Adjust hook example.
4106
4107 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
4108
4109         [BZ #20235]
4110         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
4111         itself.
4112         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
4113         * math/libm-test.inc (log2_test_data): Add sNaN tests.
4114
4115         [BZ #20234]
4116         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
4117         infinity or NaN input to itself.
4118
4119         [BZ #20233]
4120         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
4121         to itself.
4122
4123         [BZ #20232]
4124         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
4125         itself.
4126
4127 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
4128
4129         * sysdeps/x86_64/start.S (_start): Always indirect branch to
4130         __libc_start_main via GOT.
4131
4132 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
4133
4134         * sysdeps/x86_64/memcopy.h: New file.
4135         * sysdeps/x86_64/wordcopy.c: Likewise.
4136
4137 2016-06-09  Florian Weimer  <fweimer@redhat.com>
4138
4139         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
4140         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
4141         <cstdlib>.
4142         (optimization_barrier): New.
4143         (do_test): Use it.  Call quick_exit in the global namespace.
4144         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
4145         instead of <cstdlib>, <thread>.
4146         (optimization_barrier): New.
4147         (non_main_thread): Adjust declaration.  Call optimization_barrier.
4148         Call quick_exit in the global namespace.
4149         (do_test): Call optimization_barrier.  Use pthread_create,
4150         pthread_join instead of std::thread.
4151
4152 2016-06-09  Andreas Schwab  <schwab@suse.de>
4153
4154         [BZ #19755]
4155         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
4156         new entries in auto-propagate mode.
4157         * nscd/grpcache.c (cache_addgr): Likewise.
4158
4159 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
4160
4161         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
4162         New functions.
4163         (add_temp_file): Use them.
4164
4165 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
4166
4167         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
4168
4169 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
4170
4171         [BZ #20229]
4172         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
4173         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
4174         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
4175
4176         [BZ #20228]
4177         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
4178         itself.
4179         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
4180         * math/libm-test.inc (log10_test_data): Add sNaN tests.
4181
4182         [BZ #20227]
4183         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
4184         itself.
4185         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4186         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
4187         * math/libm-test.inc (log_test_data): Add sNaN tests.
4188
4189         [BZ #20226]
4190         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
4191         itself.
4192         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
4193         * math/libm-test.inc (exp_test_data): Add sNaN tests.
4194         (exp10_test_data): Likewise.
4195         (expm1_test_data): Likewise.
4196
4197         [BZ #20225]
4198         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
4199         itself.
4200         * math/s_ldexpf.c (__ldexpf): Likewise.
4201         * math/s_ldexpl.c (__ldexpl): Likewise.
4202         * math/w_scalbln.c (__w_scalbln): Likewise.
4203         * math/w_scalblnf.c (__w_scalblnf): Likewise.
4204         * math/w_scalblnl.c (__w_scalblnl): Likewise.
4205         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
4206         (scalbln_test_data): Likewise.
4207
4208         [BZ #20224]
4209         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
4210         argument to itself.
4211         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
4212
4213 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
4214
4215         [BZ #19776]
4216         * sysdeps/x86_64/memcpy.S: Make it dummy.
4217         * sysdeps/x86_64/mempcpy.S: Likewise.
4218         * sysdeps/x86_64/memmove.S: New file.
4219         * sysdeps/x86_64/memmove_chk.S: Likewise.
4220         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
4221         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
4222         * sysdeps/x86_64/memmove.c: Removed.
4223         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
4224         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4225         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
4226         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4227         Likewise.
4228         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
4229         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
4230         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4231         memcpy-sse2-unaligned, memmove-avx-unaligned,
4232         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
4233         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4234         (__libc_ifunc_impl_list): Replace
4235         __memmove_chk_avx512_unaligned_2 with
4236         __memmove_chk_avx512_unaligned.  Remove
4237         __memmove_chk_avx_unaligned_2.  Replace
4238         __memmove_chk_sse2_unaligned_2 with
4239         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
4240         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
4241         with __memmove_avx512_unaligned.  Replace
4242         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
4243         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
4244         with __memcpy_chk_avx512_unaligned.  Remove
4245         __memcpy_chk_avx_unaligned_2.  Replace
4246         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
4247         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
4248         Replace __memcpy_avx512_unaligned_2 with
4249         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
4250         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
4251         with __mempcpy_chk_avx512_unaligned.  Remove
4252         __mempcpy_chk_avx_unaligned_2.  Replace
4253         __mempcpy_chk_sse2_unaligned_2 with
4254         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
4255         Replace __mempcpy_avx512_unaligned_2 with
4256         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
4257         Replace __mempcpy_sse2_unaligned_2 with
4258         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
4259         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
4260         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
4261         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
4262         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
4263         (ENTRY): Removed.
4264         (END): Likewise.
4265         (ENTRY_CHK): Likewise.
4266         (libc_hidden_builtin_def): Likewise.
4267         Don't include ../memcpy.S.
4268         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
4269         __memcpy_chk_avx512_unaligned_erms and
4270         __memcpy_chk_avx512_unaligned.  Use
4271         __memcpy_chk_avx_unaligned_erms and
4272         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
4273         Default to __memcpy_chk_sse2_unaligned.
4274         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4275         Change function suffix from unaligned_2 to unaligned.
4276         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
4277         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
4278         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
4279         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
4280         (ENTRY): Removed.
4281         (END): Likewise.
4282         (ENTRY_CHK): Likewise.
4283         (libc_hidden_builtin_def): Likewise.
4284         Don't include ../mempcpy.S.
4285         (mempcpy): New.  Add a weak alias.
4286         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
4287         __mempcpy_chk_avx512_unaligned_erms and
4288         __mempcpy_chk_avx512_unaligned.  Use
4289         __mempcpy_chk_avx_unaligned_erms and
4290         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
4291         Default to __mempcpy_chk_sse2_unaligned.
4292
4293 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
4294
4295         [BZ #19881]
4296         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
4297         into ...
4298         * sysdeps/x86_64/memset.S: This.
4299         (__bzero): Removed.
4300         (__memset_tail): Likewise.
4301         (__memset_chk): Likewise.
4302         (memset): Likewise.
4303         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
4304         defined.
4305         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
4306         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
4307         (__memset_zero_constant_len_parameter): Check SHARED instead of
4308         PIC.
4309         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4310         memset-avx2 and memset-sse2-unaligned-erms.
4311         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4312         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
4313         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
4314         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4315         (__bzero): Enabled.
4316         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
4317         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
4318         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
4319         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
4320         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4321         (memset): Removed.
4322         (__memset_chk): Likewise.
4323         (MEMSET_SYMBOL): New.
4324         (libc_hidden_builtin_def): Replace __memset_sse2 with
4325         __memset_sse2_unaligned.
4326         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
4327         __memset_chk_sse2 and __memset_chk_avx2 with
4328         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
4329         Use __memset_chk_sse2_unaligned_erms or
4330         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
4331         __memset_chk_avx512_unaligned_erms and
4332         __memset_chk_avx512_unaligned.
4333
4334 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4335
4336         * math/gen-auto-libm-test.c (fp_format_desc): remove
4337         suffix member.
4338         (output_generic_value): Remove usage of suffix member,
4339         and the resulting unuse of the fp_format argument.
4340         (output_for_one_input_case): Remove unused fp_format
4341         parameter.
4342
4343         * math/auto-libm-test-out: Regenerate.
4344
4345         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
4346         usage with TEST_COND_ibm128.
4347         (TEST_COND_flt_32): Remove.
4348         (TEST_COND_dbl_64): Remove.
4349         (TEST_COND_ldbl_96_intel): Remove.
4350         (TEST_COND_ldbl_96_m68k): Remove.
4351         (TEST_COND_ldbl_128): Remove.
4352
4353 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4354
4355         * auto-libm-test-in:
4356         Replace flt-32 usage with binary32.
4357         Replace dbl-64 usage with binary64.
4358         Replace ldbl-intel-96 usage with intel96.
4359         Replace ldbl-m68k-96 usage with m68k96.
4360         Replace ldbl-128ibm usage with ibm128.
4361         Replace ldbl-128 usage with binary128.
4362
4363         * auto-libm-test-out: Regenerate.
4364
4365 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4366
4367         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
4368         (parse_ulps): Dynamically generate type name matching
4369         string from all_floats.
4370         (get_ulps): Generate the ulps as an array instead.
4371         (output_ulps): Dynamically compose the type based
4372         on the number of supported formats, and print
4373         the indices as type specific helper macros.
4374
4375         * math/libm-test.inc: Remove comment about CHOOSE.
4376         (ulp_data): Generate the type in libm-test-ulps.h.
4377         (ULP_IDX): New macro.
4378         (find_ulps): Update usage of max_ulp.
4379
4380         * math/test-double-vlen2.h (CHOOSE): Remove.
4381         * math/test-double-vlen4.h (CHOOSE): Likewise.
4382         * math/test-double-vlen8.h (CHOOSE): Likewise.
4383         * math/test-float.c (CHOOSE): Likewise.
4384         * math/test-float-finite.c (CHOOSE): Likewise.
4385         * math/test-double.c (CHOOSE): Likewise.
4386         * math/test-double-finite.c (CHOOSE): Likewise.
4387         * math/test-idouble.c (CHOOSE): Likewise.
4388         * math/test-ifloat.c (CHOOSE): Likewise.
4389         * math/test-ildoubl.c (CHOOSE): Likewise.
4390         * math/test-ldouble-finite.c (CHOOSE): Likewise.
4391         * math/test-ldouble.c (CHOOSE): Likewise.
4392
4393         * math/test-float.h (TEST_FLOAT): Remove.
4394         * math/test-double.h (TEST_DOUBLE): Likewise.
4395         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
4396
4397 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4398
4399         * math/gen-libm-test.pl: (apply_lit): New subroutine.
4400         (parse_args): Strip C suffix from floating point literals
4401         typed with 'f' and wrap them with LIT().
4402
4403         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
4404         (test_ff_f_data_nexttoward): Rename to
4405         (test_fj_f_data): New struct.
4406         (nexttoward_test_data): Relabel tests as
4407         TEST_fj_f instead of TEST_ff_f.
4408
4409 2016-06-08  Florian Weimer  <fweimer@redhat.com>
4410
4411         Emacs bug 23726.
4412         * malloc/malloc.c (dumped_main_arena_start): Update comment.
4413         (__libc_realloc): Correct size computation for dumped fake mmapped
4414         chunks.
4415
4416 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
4417
4418         [BZ #20219]
4419         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
4420         to itself.
4421         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
4422
4423         [BZ #20218]
4424         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
4425         to itself.
4426         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
4427
4428 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
4429
4430         [BZ #20195]
4431         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
4432         check to ...
4433         (init_cpu_features): Here.
4434
4435 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
4436
4437         [BZ #20214]
4438         * sysdeps/unix/sysv/linux/bits/in.h
4439         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
4440          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
4441         Define to 1.
4442         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
4443          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
4444         Define to 0.
4445         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
4446         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
4447
4448 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
4449
4450         [BZ #20198]
4451         * stdlib/Makefile (tests): Add tst-quick_exit, and
4452         tst-thread-quick_exit.
4453         [ifeq ($(have-cxx-thread_local),yes)]
4454         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
4455         (CFLAGS-tst-thread-quick_exit.o): Likewise.
4456         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
4457         (LDLIBS-tst-thread-quick_exit): Likewise.
4458         [ifneq ($(have-cxx-thread_local),yes)]
4459         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
4460         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
4461         If run_dtors is true call __call_tls_dtors.
4462         (exit): Call __run_exit_handlers with run_dtors set to true.
4463         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
4464         definition.
4465         * stdlib/quick_exit.c (quick_exit): Remove function.
4466         (__new_quick_exit): New function.
4467         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
4468         function.
4469         * stdlib/tst-quick_exit.cc: New file.
4470         * stdlib/tst-thread-quick_exit.cc: New file.
4471         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
4472         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
4473         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
4474         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
4475         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
4476         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
4477         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
4478         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
4479         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
4480         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
4481         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
4482         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
4483         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
4484         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
4485         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
4486         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
4487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
4488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
4489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
4490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
4491         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
4492         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
4493         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
4494         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
4495         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
4496         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
4497         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
4498         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
4499         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
4500         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
4501
4502 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4503
4504         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
4505         a typo in comments.
4506
4507 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
4508
4509         [BZ #20213]
4510         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
4511         argument to itself.
4512         * math/libm-test.inc (asin_test_data): Add sNaN tests.
4513
4514 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4515
4516         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
4517         required flags.
4518         (CFLAGS-pwritev64.c): Likewise.
4519         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
4520         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
4521         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
4522         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4523         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
4524         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
4525         syscall from auto-generation.
4526         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
4527         [WORDSIZE == 64] (pwritev64): Remove macro.
4528         [!PWRITEV] (PWRITEV): Likewise.
4529         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
4530         [!PWRITEV] (PWRITE): Likewise.
4531         [!PWRITEV] (OFF_T): Likewise.
4532         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
4533         (LO_HI_LONG): Remove macro.
4534         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
4535         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
4536         (PWRITEV): Remove macro.
4537         (PWRITEV_REPLACEMENTE): Likewise.
4538         (PWRITE): Likewise.
4539         (OFF_T): Likewise.
4540         (pwritev64): New function.
4541         * nptl/tst-cancel4.c (tf_writev): Add test.
4542
4543         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
4544         required flags.
4545         (CFLAGS-preadv64.c): Likewise.
4546         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
4547         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
4548         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
4549         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
4550         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
4551         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
4552         syscall from auto-generation.
4553         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
4554         [WORDSIZE == 64] (preadv64): Remove macro.
4555         [!PREADV] (PREADV): Likewise.
4556         [!PREADV] (PREADV_REPLACEMENT): Likewise.
4557         [!PREADV] (PREAD): Likewise.
4558         [!PREADV] (OFF_T): Likewise.
4559         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
4560         (LO_HI_LONG): Remove macro.
4561         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
4562         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
4563         (PREADV): Remove macro.
4564         (PREADV_REPLACEMENTE): Likewise.
4565         (PREAD): Likewise.
4566         (OFF_T): Likewise.
4567         (preadv64): New function.
4568         * nptl/tst-cancel4.c (tf_preadv): Add test.
4569
4570 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
4571
4572         [BZ #20212]
4573         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
4574         argument to itself.
4575         * math/libm-test.inc (acos_test_data): Add sNaN tests.
4576
4577 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4578
4579         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
4580         New symbol defined as libc_hidden_def.
4581         (strcasestr): Became a weak alias to __strcasestr.
4582         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
4583         according to multi-arch support.  Move __stpncpy hidden
4584         definition from here to...
4585         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
4586         symbol stpncpy.
4587         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
4588         libc_hidden_builtin_def.
4589         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
4590         memset symbol to use when multi-arch support is available.
4591
4592 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4593
4594         * dlfcn/tst-rec-dlopen.c: Include string.h.
4595
4596 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4597
4598         * manual/install.texi: Remove mention of --without-tls
4599         * INSTALL: Regenerate.
4600
4601 2016-06-05  Florian Weimer  <fweimer@redhat.com>
4602
4603         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
4604         Remove.
4605         (call_function, interposed_malloc_called): New variables.
4606         (malloc): New function.
4607         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
4608         and clear call_function as needed.
4609
4610 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
4611
4612         * include/wchar.h (__wmemset): Use __typeof.
4613
4614 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
4615
4616         * include/wchar.h (__wmemset): Declare function without typeof.
4617
4618 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
4619
4620         [BZ #20205]
4621         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
4622         exponent when incrementing negative subnormal with low mantissa
4623         word zero.
4624         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
4625         Add another test.
4626
4627 2016-06-03  Florian Weimer  <fweimer@redhat.com>
4628
4629         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
4630         __wmemset instead of wmemset.
4631
4632 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
4633
4634         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
4635         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
4636         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
4637         __USE_KERNEL_IPV6_DEFS to 0.
4638         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
4639         Update comment.
4640
4641 2016-06-01  Florian Weimer  <fweimer@redhat.com>
4642
4643         [BZ #19861]
4644         Do not use IFUNC resolver with potentially unrelocated symbol.
4645         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
4646         (DEFINE_FORK): Remove macro and inline definition.
4647         (fork_alias): Renamed from fork_ifunc.
4648         (__fork_alias): Renamed from __fork_ifunc.
4649
4650 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
4651
4652         [BZ 19653]
4653         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
4654         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
4655
4656 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4657
4658         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
4659         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
4660         i386-linux-gnu).
4661         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
4662         Set to no.
4663         * sysdeps/mach/hurd/configure: Refresh.
4664
4665 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4666
4667         [BZ #20178]
4668         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
4669         on failure instead of exit.
4670
4671 2016-05-30  Roland McGrath  <roland@hack.frob.com>
4672
4673         [BZ #3629]
4674         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
4675         of POSIX.1-2008.
4676
4677 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4678
4679         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
4680           Use PLT entry for calling _hurd_self_sigstate.
4681
4682 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4683
4684         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
4685         available logical processors with SMT level type sharing L2
4686         cache for Intel processors.
4687
4688 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
4689
4690         [BZ #20160]
4691         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
4692         argument to itself before returning the result.
4693         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
4694         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
4695         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
4696         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
4697         Likewise.
4698         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
4699         Likewise.
4700         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
4701         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
4702         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
4703         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
4704         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
4705         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
4706
4707         [BZ #20160]
4708         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
4709         argument to itself before returning the result.
4710         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
4711         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
4712         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
4713         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
4714         Likewise.
4715         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4716         Likewise.
4717         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
4718         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
4719         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
4720         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
4721         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
4722         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
4723
4724 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4725
4726         * libm-test.inc: Replace usage of M_El with
4727         (lit_e): New macro.
4728
4729 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4730
4731         * libm-test.inc: Replace usage of M_PI_4l with
4732         (lit_pi_4_d): New macro.
4733
4734 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4735
4736         * libm-test.inc: Replace usage of M_PIl with
4737         (lit_pi): New macro.
4738
4739 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4740
4741         * libm-test.inc: Replace usage of M_PI2l with
4742         (lit_pi_2_d): New macro.
4743
4744         * math/test-double.h (LITM): New macro.
4745         * math/test-float.h (LITM): Likewise.
4746         * math/test-ldouble.h (LITM): Likewise.
4747
4748 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4749
4750         * libm-test.inc (M_PI_34l): Rename to
4751         (lit_pi_3_m_4_d): New Macro.
4752         (M_PI_34_LOG10El): Rename to
4753         (lit_pi_3_m_4_ln10_m_d): New Macro.
4754         (M_PI2_LOG10El): Rename to
4755         (lit_pi_2_ln10_m_d):  New Macro.
4756         (M_PI4_LOG10El): Rename to
4757         (lit_pi_4_ln10_m_d):  New Macro.
4758         (M_PI_LOG10El): Rename to
4759         (lit_pi_ln10_d):  New Macro.
4760
4761 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
4762
4763         [BZ #20157]
4764         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
4765         determine whether to negate low half if [_ARCH_PPCGR], and integer
4766         comparison otherwise.
4767         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
4768         determine whether to negate low half.
4769
4770         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
4771         (NO_TEST_INLINE_DOUBLE): Likewise.
4772         (TEST_COND_x86_64): Likewise.
4773         (TEST_COND_x86): Likewise.
4774         (M_PI_6l): Likewise.
4775
4776 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4777
4778         * math/libm-test.inc:
4779         (TEST_FLOAT): Change usage to TEST_COND_binary32.
4780         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
4781         (TEST_LDOUBLE): Update usage to evaluate as true if
4782         the guarded tests match the property being tested.
4783         (LDBL_MAX_EXP): Change to MAX_EXP.
4784         (LDBL_MIN_EXP): Change to MIN_EXP.
4785         (LDBL_MANT_DIG): Change to MANT_DIG, except for
4786         nexttoward tests.
4787
4788 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4789
4790         * math/libm-test.inc:
4791         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
4792         (TYPE_MIN): Likewise.
4793         (TYPE_TRUE_MIN): Likewise.
4794         (TYPE_MAX): Likewise.
4795         (MIN_EXP): Likewise.
4796         (MAX_EXP): Likewise.
4797         (MANT_DIG): Likewise.
4798
4799         (FSTR_MAX): New macro.
4800         (__CONCATX): Likewise.
4801         (QTYPE_STR): Likewise.
4802         (TEST_COND_binary32): Likewise.
4803         (TEST_COND_binary64): Likewise.
4804         (TEST_COND_binary128): Likewise.
4805         (TEST_COND_ibm128): Likewise.
4806         (TEST_COND_intel96): Likewise.
4807         (TEST_COND_m68k96): Likewise.
4808
4809         (TEST_COND_flt_32): Redefine as equivalent format test macro.
4810         (TEST_COND_dbl_64): Likewise.
4811         (TEST_COND_ldbl_96_intel): Likewise.
4812         (TEST_COND_ldbl_96_m68k): Likewise.
4813         (TEST_COND_ldbl_128): Likewise.
4814         (TEST_COND_ldbl_128ibm): Likewise.
4815
4816         (plus_zero): Redefine using LIT macro.
4817         (minus_zero): Likewise.
4818         (plus_infty): Redefine as (INF).
4819         (minux_infty): Redefine as (-INF).
4820         (max_value): Redefine as TYPE_MAX.
4821         (min_value): Redefine as TYPE_MIN.
4822         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
4823
4824         (print_float): Refactor to use snprintf to convert FLOAT values
4825         to string. This brings it closer to dropin replacement of strtof
4826         for the TS 18661 defined types.
4827         (update_stats): Likewise.
4828         (print_complex_function_ulps): Likewise.
4829         (print_max_error): Likewise.
4830         (print_complex_max_error): Likewise.
4831         (check_float_internal): Likewise.
4832
4833         * math/test-float.h (PREFIX): New macro.
4834         (LIT): Likewise.
4835         (TYPE_STR): Likewise.
4836         (FTOSTR): Likewise.
4837
4838         * math/test-double.h (PREFIX): New macro.
4839         (LIT): Likewise.
4840         (TYPE_STR): Likewise.
4841         (FTOSTR): Likewise.
4842
4843         * math/test-ldouble.h (PREFIX): New macro.
4844         (LIT): Likewise.
4845         (TYPE_STR): Likewise.
4846         (FTOSTR): Likewise.
4847
4848 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
4849
4850         [BZ #20156]
4851         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
4852         to itself when zero or not finite.
4853         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
4854         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
4855         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
4856         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
4857
4858 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
4859
4860         [BZ #20153]
4861         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
4862         x * x + x for infinities and NaNs.
4863
4864         [BZ #20151]
4865         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
4866         argument to itself before returning result.
4867         (__ieee754_y0l): Likewise.
4868         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4869         (__ieee754_y1l).
4870
4871         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
4872         (atan_test_data): Likewise.
4873         (ceil_test_data): Likewise.
4874         (cos_test_data): Likewise.
4875         (cosh_test_data): Likewise.
4876         (erf_test_data): Likewise.
4877         (exp2_test_data): Likewise.
4878         (fabs_test_data): Likewise.
4879         (floor_test_data): Likewise.
4880         (ilogb_test_data): Likewise.
4881         (j0_test_data): Likewise.
4882         (j1_test_data): Likewise.
4883         (jn_test_data): Likewise.
4884         (lgamma_test_data): Likewise.
4885         (lrint_test_data): Likewise.
4886         (llrint_test_data): Likewise.
4887         (logb_test_data): Likewise.
4888         (lround_test_data): Likewise.
4889         (llround_test_data): Likewise.
4890         (nearbyint_test_data): Likewise.
4891         (rint_test_data): Likewise.
4892         (round_test_data): Likewise.
4893         (sin_test_data): Likewise.
4894         (sincos_test_data): Likewise.
4895         (sinh_test_data): Likewise.
4896         (sqrt_test_data): Likewise.
4897         (tan_test_data): Likewise.
4898         (tanh_test_data): Likewise.
4899         (tgamma_test_data): Likewise.
4900         (trunc_test_data): Likewise.
4901         (y0_test_data): Likewise.
4902         (y1_test_data): Likewise.
4903         (yn_test_data): Likewise.
4904
4905         * math/libm-test.inc: Update comment about NaN testing.
4906         (TEST_SNAN): New macro.
4907         (snan_value): Likewise.
4908         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
4909         (fpclassify_test_data): Add sNaN tests.
4910         (isfinite_test_data): Likewise.
4911         (isinf_test_data): Likewise.
4912         (isnan_test_data): Likewise.
4913         (isnormal_test_data): Likewise.
4914         (issignaling_test_data): Likewise.
4915         (signbit_test_data): Likewise.
4916         * math/gen-libm-test.pl (%beautify): Add snan_value.
4917         (show_exceptions): Add argument $test_snan.
4918         (parse_args): Handle snan_value as non-finite.  Update call to
4919         show_exceptions.
4920         * math/Makefile (libm-test-no-inline-cflags): Add
4921         -fsignaling-nans.
4922
4923 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4924
4925         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
4926         (CFLAGS-oldsendmsg.c): Add rule.
4927         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
4928         Correct recvmsg symbol name.
4929         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
4930         Likewise.
4931
4932 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4933
4934         * sysdeps/unix/sysv/linux/Makefile
4935         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
4936         oldsendmmsg.
4937         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
4938         sendmmsg.
4939         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4940         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4941         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4942         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
4943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4944         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4945         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4946         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
4947         Likewise.
4948         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4949         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
4950         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
4951         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
4952         iovlen and controllen fields to adjust to POSIX specification.
4953         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
4954
4955         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
4956         and change to correct expected type.
4957         (msghdr.msg_controllen): Likewise.
4958         (cmsghdr.cmsg_len): Likewise.
4959         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
4960         expected POSIX assumption about the size.
4961         (msghdr.msg_controllen): Likewise.
4962         (msghdr.__glibc_reserved1): Likewise.
4963         (msghdr.__glibc_reserved2): Likewise.
4964         (cmsghdr.cmsg_len): Likewise.
4965         (cmsghdr.__glibc_reserved1): Likewise.
4966         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
4967         Add ptw-oldrecvmsg and ptw-oldsendmsg.
4968         (CFLAGS-sendmsg.c): Remove rule.
4969         (CFLAGS-recvmsg.c): Likewise.
4970         (CFLAGS-oldsendmsg.c): Add rule.
4971         (CFLAGS-oldrecvmsg.c): Likewise.
4972         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
4973         recvmsg and sendmsg.
4974         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
4975         Likewise.
4976         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
4977         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
4978         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
4979         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
4980         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
4981         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
4982         Likewise.
4983         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
4984         Likewise.
4985         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
4986         Likewise.
4987         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
4988         Likewise.
4989         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
4990         Likewise.
4991         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
4992         Likewise.
4993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
4994         (GLIBC_2.24): Likewise.
4995         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
4996         Likewise.
4997         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
4998         Likewise.
4999         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
5000         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
5001         Likewise.
5002         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
5003         Likewise.
5004         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
5005         Likewise.
5006         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
5007         (GLIBC_2.24): Likewise.
5008         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
5009         Likewise.
5010         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
5011         Likewise.
5012         * sysdeps/unix/sysv/linux/Makefile
5013         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
5014         (CFLAGS-sendmsg.c): Add rule.
5015         (CFLAGS-recvmsg.c): Likewise.
5016         (CFLAGS-oldsendmsg.c): Likewise.
5017         (CFLAGS-oldrecvmsg.c): Likewise.
5018         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
5019         initialization.
5020         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
5021         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
5022         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
5023         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
5024         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
5025         iovlen and controllen fields to adjust to POSIX specification.
5026         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
5027         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
5028         added recvmsg and sendmsg.
5029         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5030         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5031         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5032         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5033         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5034         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5035         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5036         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5037         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5038         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5039         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5040         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
5041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5042         Likewise.
5043         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
5045         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5046         Likewise.
5047         Likewise.
5048         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5049         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5050         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5051         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5052         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5053         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5054         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5055         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5056         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5057         Likewise.
5058         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5059         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5060
5061         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
5062         from auto-generation.
5063         (sendmsg): Likewise.
5064         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
5065         (sendmsg): Likewise.
5066         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
5067         (sendmsg): Likewise.
5068         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
5069         (sendmsg): Likewise.
5070         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
5071         (sendmsg): Likewise.
5072         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
5073         (sendmsg): Likewise.
5074         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
5075         Likewise.
5076         (sendmsg): Likewise.
5077         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
5078         (sendmsg): Likewise.
5079         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5080         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5081         Remove.
5082         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5083         Likewise.
5084         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5085         Undefine.
5086         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5087         Likewise.
5088         * sysdeps/unix/sysv/linux/kernel-features.h
5089         (__ASSUME_SENDMSG_SYSCALL): Define.
5090         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5091         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5092         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5093         Remove.
5094         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5095         Likewise.
5096         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5097         Undefine.
5098         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5099         Likewise.
5100         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5101         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5102         Remove.
5103         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5104         Likewise.
5105         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5106         Undefine.
5107         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5108         Likewise.
5109         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5110         (__ASSUME_SENDMSG_SYSCALL): Undefine.
5111         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5112         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5113         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5114         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5115         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5116         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5117         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5118
5119 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5120
5121         * stdlib/gen-tst-strtod-round.c: Add backslash to
5122         compile command in comment.
5123         (printfp): Remove the literal suffix, and define an infinite
5124         value as INF to avoid expansion clash with INFINITY.
5125         (round_str): Remove the literal suffix.
5126         (round_for_all): Likewise, remove the now duplicate ldbl-64
5127         entry, and remove some magic constants.
5128
5129         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
5130         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
5131         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
5132         (_CONCAT): New macro.
5133         (CONCAT): Likewise.
5134         (CHOOSE_ld): Likewise.
5135         (CHOOSE_f): Likewise.
5136         (CHOOSE_d): Likewise.
5137         (FTYPE_MEMBER): Likewise.
5138         (BOOL_MEMBER): Likewise.
5139         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
5140         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
5141         (_XNTRY): Likewise.
5142         (XNTRY): Likewise.
5143         (_ENTRY): Likewise.
5144         (ENTRY): Likewise.
5145         (test_exactness): Generate members via macro.
5146         (test_results): Likewise.
5147         (test): Update members.
5148         (TEST): Redefine using new macros.
5149         (INF): New macro.
5150         (fetestmodes): New structure.
5151         (do_test): Refactor to be type generic.
5152         (test_in_one_mode): Refactor duplicate code into
5153         (GEN_ONE_TEST): New macro.
5154
5155         * stdlib/tst-strtod-round-data.h: Regenerate.
5156
5157         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
5158         Extend to pass additional arbitrary parameters to
5159         generators.
5160
5161 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
5162
5163         [BZ #15479]
5164         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
5165         floating-point state after first floating-point operation on
5166         input.  Restore full floating-point state instead of just rounding
5167         mode.
5168         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
5169         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
5170         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
5171         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
5172         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
5173
5174         [BZ #15479]
5175         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
5176         floating-point state after first floating-point operation on
5177         input.  Restore full floating-point state instead of just rounding
5178         mode.
5179         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
5180         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
5181         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
5182         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
5183         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
5184
5185 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5186
5187         [BZ #19727]
5188         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
5189         valid high surrogate.
5190         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
5191         of an utf16 surrogate.
5192         * iconv/gconv_simple.c (BODY): Likewise.
5193         * iconvdata/bug-iconv12.c: New file.
5194         * iconvdata/Makefile (tests): Add bug-iconv12.
5195
5196 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5197
5198         [BZ #19726]
5199         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
5200         outptrp in case of an illegal input.
5201         * iconv/tst-iconv6.c: New file.
5202         * iconv/Makefile (tests): Add tst-iconv6.
5203
5204 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5205
5206         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
5207         an error in case of a value in range of an utf16 low surrogate.
5208
5209 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5210
5211         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
5212         an error in case of a value in range of an utf16 low surrogate.
5213
5214 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5215
5216         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
5217         Move to ...
5218         * sysdeps/s390/Makefile: ... here.
5219         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
5220         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
5221         (BRANCH_ON_COUNT): New define.
5222         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
5223         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
5224         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
5225         run on s390-32, too.
5226         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
5227         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
5228         run on s390-32, too.
5229         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
5230         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
5231         run on s390-32, too.
5232
5233 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5234
5235         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
5236         etf3eh or new vector loop-variant.
5237
5238 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5239
5240         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
5241         etf3eh or new vector loop-variant.
5242
5243 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5244
5245         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
5246         or new vector loop-variant.
5247
5248 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5249
5250         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
5251         Rename to TR_LOOP and usage of tr instead of troo instruction.
5252
5253 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5254
5255         * sysdeps/s390/multiarch/gconv_simple.c: New File.
5256         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
5257
5258 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5259
5260         * sysdeps/s390/multiarch/8bit-generic.c: New File.
5261         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
5262         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
5263         New override define.
5264         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
5265
5266 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5267
5268         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
5269         * sysdeps/s390/configure.ac: Add test for S390 vector register
5270         support in gcc.
5271         * sysdeps/s390/configure: Regenerated.
5272
5273 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5274
5275         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
5276         Install file from $(objpfx)gconv-modules.
5277         ($(objpfx)gconv-modules): Concatenate architecture specific file
5278         in variable sysdeps-gconv-modules and gconv-modules in src dir.
5279         * sysdeps/s390/gconv-modules: New file.
5280         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
5281         Deleted.
5282         ($(objpfx)gconv-modules-s390): Deleted.
5283         (sysdeps-gconv-modules): New variable.
5284
5285 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
5286
5287         [BZ #15479]
5288         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
5289         of immediate operand to rounding instruction.
5290         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
5291         Likewise.
5292         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
5293         Likewise.
5294         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
5295         Likewise.
5296
5297 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5298
5299         * math/libm-test.inc (MIN_EXP): Directly define as
5300         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
5301
5302 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5303
5304         * math/libm-test.inc (MANT_DIG): Directly define as
5305         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
5306
5307 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5308
5309         * stdlib/gen-tst-strtod-round.c (main):
5310           Change usage to more closely match the generated
5311           output.  Add usage and compilation instructions.
5312           (string_to_fp): Add and use FILE* parameter as
5313           output target.
5314           (print_fp): Likewise.
5315           (round_str): Likewise.
5316           (round_for_all): Likewise.
5317         * stdlib/tst-strtod-round.c (tests): Move into
5318         * stdlib/tst-strtod-round-data.h: New file.
5319
5320 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
5321
5322         [BZ #15479]
5323         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
5324         (__round): Do not force "inexact" exception.
5325         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
5326         variable.
5327         (__round): Do not force "inexact" exception.
5328         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
5329         (__roundf): Do not force "inexact" exception.
5330         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
5331         (__roundl): Do not force "inexact" exception.
5332         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
5333         (__roundl): Do not force "inexact" exception.
5334         * math/libm-test.inc (round_test_data): Do not allow spurious
5335         "inexact" exceptions.
5336
5337         [BZ #15479]
5338         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
5339         exception in comment.
5340         (huge): Remove variable.
5341         (__floor): Do not force "inexact" exception.
5342         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
5343         "inexact" exception in comment.
5344         (huge): Remove variable.
5345         (__floor): Do not force "inexact" exception.
5346         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
5347         exception in comment.
5348         (huge): Remove variable.
5349         (__floorf): Do not force "inexact" exception.
5350         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
5351         exception in comment.
5352         (huge): Remove variable.
5353         (__floorl): Do not force "inexact" exception.
5354
5355         [BZ #15479]
5356         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
5357         exception in comment.
5358         (huge): Remove variable.
5359         (__ceil): Do not force "inexact" exception.
5360         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
5361         "inexact" exception in comment.
5362         (huge): Remove variable.
5363         (__ceil): Do not force "inexact" exception.
5364         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
5365         (__ceilf): Do not force "inexact" exception.
5366         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
5367         exception in comment.
5368         (huge): Remove variable.
5369         (__ceill): Do not force "inexact" exception.
5370
5371 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5372
5373         * config.h.in (BIND_NOW): New.
5374         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
5375         * configure: Regenerated.
5376         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
5377         indirect branch via the GOT slot.
5378
5379 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5380
5381         [BZ #19765]
5382         * sysdeps/s390/mempcpy.S: New File.
5383         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
5384         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
5385         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5386         Add mempcpy variants.
5387         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
5388         (memcpy): Adjust to be usable from mempcpy entry point.
5389         (__memcpy_mvcle): Likewise.
5390         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5391         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
5392         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
5393         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
5394         (__memcpy_z10): Likewise.
5395         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
5396
5397 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5398
5399         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
5400         Remove __GI_ symbol.
5401         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
5402         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
5403         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
5404         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
5405         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
5406         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
5407
5408 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5409
5410         * sysdeps/s390/s390-64/memcpy.S (memcpy):
5411         Use cghi instead of chi to compare 64bit value.
5412
5413 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5414
5415         * sysdeps/s390/s390-32/memcpy.S (memcpy):
5416         Jump to 1MB check before executing mvc-loop.
5417
5418 2016-05-24  Florian Weimer  <fweimer@redhat.com>
5419
5420         [BZ #6527]
5421         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
5422         unconditionally.
5423         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
5424
5425 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5426
5427         * stdlib/tst-strtod6.c (do_test): Use new type generic
5428         invocation of the test function.
5429         (test): Refactor into ...
5430         (TEST_STRTOD): New macro base function.
5431
5432 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5433
5434         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
5435         (TEST_STRTOD): New macro.
5436         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
5437
5438 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5439
5440         * stdlib/tst-strtod6.c (do_test): Use new type generic
5441         invocation of the test function.
5442         (test): Refactor into ...
5443         (TEST_STRTOD): New macro base function.
5444
5445 2016-05-23  Florian Weimer  <fweimer@redhat.com>
5446
5447         CVE-2016-4429
5448         [BZ #20112]
5449         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
5450         payload.
5451
5452 2016-05-23  Florian Weimer  <fweimer@redhat.com>
5453
5454         [BZ #20111]
5455         * bits/sockaddr.h (_SS_SIZE): Define.
5456         * bits/socket.h (_SS_SIZE): Remove.
5457         (_SS_PADSIZE): Adjust to account for all padding.
5458         (struct sockaddr_storage): Update comment.  Avoid implicit
5459         padding.
5460         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
5461         (_SS_PADSIZE): Adjust to account for all padding.
5462         (struct sockaddr_storage): Update comment.  Avoid implicit
5463         padding.
5464         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
5465         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
5466         (_SS_PADSIZE): Adjust to account for all padding.
5467         (struct sockaddr_storage): Update comment.  Avoid implicit
5468         padding.
5469         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
5470         __SS_SIZE is 126 in this version.
5471         * inet/tst-sockaddr.c: New file.
5472         * inet/Makefile (tests): Add tst-sockaddr.c
5473         (tst-sockaddr.c): Compile with non-strict aliasing.
5474
5475 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
5476
5477         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
5478         [XPG3 || XPG4].
5479         (NL_ARGMAX): Also expect for [XPG3].
5480         (NL_LANGMAX): Likewise.
5481         (NL_MSGMAX): Likewise.
5482         (NL_NMAX): Likewise.
5483         (NL_SETMAX): Likewise.
5484         (NL_TEXTMAX): Likewise.
5485         (NZERO): Likewise.
5486         (TMP_MAX): Likewise.
5487         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
5488         variable.
5489
5490         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
5491         (PF_MAX): Update value.
5492         (AF_KCM): New macro.
5493         (SOL_NETBEUI): Likewise.
5494         (SOL_LLC): Likewise.
5495         (SOL_DCCP): Likewise.
5496         (SOL_NETLINK): Likewise.
5497         (SOL_TIPC): Likewise.
5498         (SOL_RXRPC): Likewise.
5499         (SOL_PPPOL2TP): Likewise.
5500         (SOL_BLUETOOTH): Likewise.
5501         (SOL_PNPIPE): Likewise.
5502         (SOL_RDS): Likewise.
5503         (SOL_IUCV): Likewise.
5504         (SOL_CAIF): Likewise.
5505         (SOL_ALG): Likewise.
5506         (SOL_NFC): Likewise.
5507         (SOL_KCM): Likewise.
5508         (MSG_BATCH): New enum value and macro.
5509
5510 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5511
5512         [BZ #18185]
5513         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
5514         sharing L2 cache to 2 for Knights Landing.
5515
5516 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
5517
5518         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
5519         (FTW_DP): Do not expect for [XPG3 || XPG4].
5520         (FTW_SL): Do not expect for [XPG3].
5521         (FTW_SLN): Likewise.
5522         (FTW_PHYS): Likewise.
5523         (FTW_MOUNT): Likewise.
5524         (FTW_DEPTH): Likewise.
5525         (FTW_CHDIR): Likewise.
5526         (nftw): Likewise.
5527         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
5528         variable.
5529
5530 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
5531
5532         * manual/errno.texi: Fix various typos & grammar errors.
5533
5534 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
5535
5536         * manual/intro.texi: Fix duplicated typo.
5537
5538 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
5539
5540         [BZ #13304]
5541         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
5542         <float.h>, <math_private.h> and <stdlib.h>.
5543         (add_split): New function.
5544         (mul_split): Likewise.
5545         (ext_val): New typedef.
5546         (store_ext_val): New function.
5547         (mul_ext_val): New function.
5548         (compare): New function.
5549         (add_split_ext): New function.
5550         (__fmal): After checking for Inf, NaN and zero, compute result as
5551         an exact sum of scaled double values in round-to-nearest before
5552         adding those up and adjusting for other rounding modes.
5553         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
5554         tests of fma.
5555         * math/auto-libm-test-out: Regenerated.
5556
5557 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5558
5559         [BZ #20119]
5560         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
5561         processor level type mask for CPUID with EAX == 11.
5562
5563 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5564
5565         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
5566         logical threads if the HTT bit is 0.
5567         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
5568         (index_cpu_HTT): Likewise.
5569         (reg_HTT): Likewise.
5570
5571 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5572
5573         [BZ #20115]
5574         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
5575         Remove alignments on jump targets.
5576
5577 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
5578
5579         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
5580         (getpwent): Likewise.
5581         (setpwent): Likewise.
5582         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
5583         variable.
5584
5585         * conform/data/search.h-data (insque): Do not expect for [XPG3].
5586         (remque): Likewise.
5587         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
5588         variable.
5589
5590 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
5591
5592         * math/libm-test.inc: Update comment not to refer to signs of NaNs
5593         not being tested.
5594
5595 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5596
5597         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
5598         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
5599         call.
5600         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
5601         (__condvar_cleanup1): Likewise.
5602
5603 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5604
5605         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
5606         New
5607         (__pthread_unwind): Renamed to ...
5608         (PTHREAD_UNWIND): This.
5609         (__pthread_enable_asynccancel): Replace
5610         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
5611
5612 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
5613
5614         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
5615         (CLONE_NEWCGROUP): New macro.
5616
5617         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
5618         (Q_GETNEXTQUOTA): New macro.
5619
5620 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5621
5622         [BZ #19907]
5623         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
5624         buffer updated by the previous run.
5625         * string/test-memcpy.c (do_one_test): Likewise.
5626         * benchtests/bench-memmove.c (do_one_test): Add a comment.
5627         * string/test-memmove.c (do_one_test): Likewise.
5628
5629 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
5630
5631         [BZ #20094]
5632         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
5633         not [__USE_XOPEN].
5634         (unlockpt): Likewise.
5635         (ptsname): Likewise.
5636         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
5637         variable.
5638
5639         [BZ #20076]
5640         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
5641         instead of [__USE_UNIX98].
5642         (S_ISSOCK): Likewise.
5643         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
5644         variable.
5645
5646         [BZ #20074]
5647         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
5648         [__USE_POSIX].
5649         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
5650         variable.
5651
5652         [BZ #20051]
5653         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
5654         (ttyslot): Do not declare.
5655         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
5656         (ttyslot): New prototype.
5657         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
5658         variable.
5659         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
5660
5661 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
5662
5663         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
5664
5665 2016-05-13  Florian Weimer  <fweimer@redhat.com>
5666
5667         Fix race condition in tst-mallocfork2, use fewer resources.
5668         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
5669         to current process group.
5670         (signal_sender): Yield in the non-sleeping case.
5671
5672 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
5673
5674         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
5675         (ecvt): Likewise.
5676         (fcvt): Likewise.
5677         (gcvt): Likewise.
5678         (getsubopt): Likewise.
5679         (grantpt): Likewise.
5680         (initstate): Likewise.
5681         (l64a): Likewise.
5682         (mktemp): Likewise.
5683         (mkstemp): Likewise.
5684         (ptsname): Likewise.
5685         (random): Likewise.
5686         (realpath): Likewise.
5687         (setstate): Likewise.
5688         (srandom): Likewise.
5689         (ttyslot): Likewise.
5690         (unlockpt): Likewise.
5691         (valloc): Likewise.
5692
5693         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
5694         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
5695         variable.
5696
5697 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5698
5699         [BZ #20072]
5700         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
5701         init_cpu_features only if SHARED is defined.
5702         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
5703
5704 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5705
5706         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
5707         non-inclusive caches on Intel processors.
5708
5709 2016-05-13  Florian Weimer  <fweimer@redhat.com>
5710
5711         * malloc/malloc.c (dumped_main_arena_start)
5712         (dumped_main_arena_end): New variables.
5713         (DUMPED_MAIN_ARENA_CHUNK): New macro.
5714         (do_check_chunk): Skip dumped fake mmapped chunks.
5715         (munmap_chunk): Likewise.
5716         (__libc_free): Do not adjust statistics for fake mmapped chunks.
5717         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
5718         mmapped chunks.
5719         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
5720         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
5721         and dumped_main_arena_end to cover the dumped heap.
5722
5723 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
5724
5725         * conform/data/time.h-data (getdate_err): Do not expect for
5726         [XPG3].
5727         (getdate): Likewise.
5728         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
5729         variable.
5730
5731         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
5732         (F_ULOCK): Likewise.
5733         (F_TEST): Likewise.
5734         (F_TLOCK): Likewise.
5735         (useconds_t): Likewise.
5736         (intptr_t): Do not expect for [XPG3] or [XPG4].
5737         (brk): Do not expect for [XPG3]
5738         (fchown): Likewise.
5739         (fchdir): Likewise.
5740         (ftruncate): Likewise.
5741         (getdtablesize): Likewise.
5742         (gethostid): Likewise.
5743         (getpagesize): Likewise.
5744         (getpgid): Likewise.
5745         (getsid): Likewise.
5746         (getwd): Likewise.
5747         (lchown): Likewise.
5748         (lockf): Likewise.
5749         (readlink): Likewise.
5750         (sbrk): Likewise.
5751         (setpgrp): Likewise.
5752         (setregid): Likewise.
5753         (setreuid): Likewise.
5754         (symlink): Likewise.
5755         (sync): Likewise.
5756         (truncate): Likewise.
5757         (ualarm): Likewise.
5758         (usleep): Likewise.
5759         (vfork): Likewise.
5760         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
5761         variable.
5762
5763         [BZ #20054]
5764         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
5765         not [__USE_UNIX98].
5766         * conform/data/unistd.h-data (gethostname): Do not expect for
5767         [XPG3].
5768
5769         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
5770         [!POSIX] (S_IFBLK): Likewise.
5771         [!POSIX] (S_IFCHR): Likewise.
5772         [!POSIX] (S_IFIFO): Likewise.
5773         [!POSIX] (S_IFREG): Likewise.
5774         [!POSIX] (S_IFDIR): Likewise.
5775         [!POSIX] (S_IFLNK): Likewise.
5776         [!POSIX] (S_IFSOCK): Likewise.
5777         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
5778         variable.
5779         (test-xfail-XPG4/fcntl.h/conform): Likewise.
5780
5781 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
5782
5783         * sysdeps/aarch64/memset.S (__memset):
5784         Rewrite of optimized memset.
5785
5786 2016-05-12  Florian Weimer  <fweimer@redhat.com>
5787
5788         [BZ #19703]
5789         Partially async-signal-safe fork for single-threaded processes.
5790         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
5791         variable.  Do not acquire and reset/release malloc and libio locks
5792         in single-threaded processes.
5793         * malloc/tst-mallocfork2.c: New file.
5794         * malloc/Makefile (tests): Add it.
5795
5796 2016-05-12  Florian Weimer  <fweimer@redhat.com>
5797
5798         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
5799         argument.  Use scratch buffer instead of extend_alloca.
5800         (gethosts): Use scratch buffer instead of extend_alloca.
5801         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
5802         extend_alloca.
5803         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
5804
5805 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
5806
5807         [BZ #20055]
5808         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
5809         instead of [__USE_UNIX98].
5810         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
5811         [__USE_UNIX98].
5812         * conform/data/termios.h-data (tcgetsid): Do not expect for
5813         [XPG3].
5814         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
5815         variable.
5816         (test-xfail-XPG4/termios.h/conform): Likewise.
5817
5818 2016-05-11  Florian Weimer  <fweimer@redhat.com>
5819
5820         Do not use mcheck in localedef.
5821         * locale/programs/localedef.c (turn_on_mcheck)
5822         (__malloc_initialize_hook): Remove.
5823
5824 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
5825
5826         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
5827         * sysdeps/s390/s390-64/Makefile: Likewise.
5828
5829 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5830
5831         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
5832         Remove ifunc-defines.sym.
5833         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
5834         Likewise.
5835         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
5836         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
5837         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
5838         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
5839         rtld-global-offsets.sym.
5840         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
5841         * sysdeps/x86/cpu-features-offsets.sym: This.
5842         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
5843         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
5844
5845 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
5846
5847         [BZ #20073]
5848         * io/sys/stat.h (fchmod): Declare for
5849         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
5850         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
5851         variable.
5852
5853         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
5854         [XPG3] (S_IFSOCK): Likewise.
5855         [XPG3] (S_ISVTX): Likewise.
5856         [XPG3] (S_ISLNK): Likewise.
5857         [XPG3] (S_ISSOCK): Likewise.
5858         [XPG3] (fchmod): Likewise.
5859         [XPG3] (lstat): Likewise.
5860         [XPG3] (mknod): Likewise.
5861
5862         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
5863         [XPG3].  Expect type long and XFAIL for [XPG4].
5864         (st_blocks): Likewise.
5865
5866         [BZ #20044]
5867         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
5868         (pthread_atfork): New prototype.
5869         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
5870         variable.
5871
5872         [BZ #20043]
5873         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
5874         prototype.
5875
5876 2016-05-10  Florian Weimer  <fweimer@redhat.com>
5877
5878         [BZ #20017]
5879         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
5880         gmtime.
5881
5882 2016-05-10  Florian Weimer  <fweimer@redhat.com>
5883
5884         [BZ #19994]
5885         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
5886         flag in _res.options.
5887
5888 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
5889
5890         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
5891         [XPG3 || XPG4].
5892         (blksize_t): Likewise.
5893         (clockid_t): Likewise.
5894         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
5895         variable.
5896         (test-xfail-XPG4/sys/types.h/conform): Likewise.
5897
5898 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
5899
5900         * sysdeps/unix/sysv/linux/s390/init-first.c:
5901         Add VDSO_SYMBOL(getcpu).
5902         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
5903         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
5904         Add VDSO_SYMBOL(getcpu).
5905         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
5906         New define HAVE_GETCPU_VSYSCALL.
5907         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5908
5909 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5910
5911         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
5912         instead of <sysdeps/x86_64/cacheinfo.c>.
5913         * sysdeps/x86_64/cacheinfo.c: Moved to ...
5914         * sysdeps/x86/cacheinfo.c: Here.
5915
5916 2016-05-04  Florian Weimer  <fweimer@redhat.com>
5917
5918         * malloc/malloc-internal.h: Adjust header file guard.
5919
5920 2016-05-04  Florian Weimer  <fweimer@redhat.com>
5921
5922         [BZ #19787]
5923         * inet/getnameinfo.c (check_sprintf_result): New function.
5924         (CHECKED_SNPRINTF): New macro.
5925         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
5926         to the host buffer.
5927         (gni_host_local): Use checked_copy to copy the host name.
5928         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
5929         (gni_serv_local): Use checked_copy to copy the service name.
5930         (getnameinfo): Remove unnecessary truncation of result buffers.
5931
5932 2016-05-04  Florian Weimer  <fweimer@redhat.com>
5933
5934         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
5935         in case of inet_ntop failure.
5936
5937 2016-05-04  Florian Weimer  <fweimer@redhat.com>
5938
5939         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
5940         avoid long lines.
5941         (gni_host_inet_numeric): Likewise.  Reduce scope of local
5942         variables.
5943         (gni_host_inet, gni_host_local): Add comment.
5944         (gni_host): Add comment.  Use temporary to avoid long lines.
5945
5946 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5947
5948         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
5949         registers specifiers where general purpose registers specifiers should
5950         have been used.
5951
5952 2016-05-04  Florian Weimer  <fweimer@redhat.com>
5953
5954         [BZ #19779]
5955         CVE-2016-1234
5956         Avoid copying names of directory entries.
5957         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
5958         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
5959         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
5960         (struct readdir_result): New type.
5961         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
5962         (GL_READDIR): New macros.
5963         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
5964         (convert_dirent, convert_dirent64): New functions.
5965         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
5966         convert_dirent64.  Adjust references to the readdir result.
5967         * sysdeps/unix/sysv/linux/i386/glob64.c:
5968         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
5969         * posix/bug-glob2.c (LONG_NAME): Define.
5970         (filesystem): Add LONG_NAME.
5971         (my_DIR): Increase the size of room_for_dirent.
5972
5973 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
5974
5975         [BZ #20041]
5976         * misc/sys/select.h (__need_timespec): Only define if
5977         [__USE_XOPEN2K].
5978         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
5979         variable.
5980         (test-xfail-XPG4/utmpx.h/conform): Likewise.
5981         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
5982         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
5983
5984 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5985             Segher Boessenkool  <segher@gcc.gnu.org>
5986
5987         [BZ #20004]
5988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
5989         (__novec_swapcontext): Add missing load.
5990
5991 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
5992
5993         [BZ #20023]
5994         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
5995         <time.h>.
5996         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
5997         variable.
5998         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
5999
6000 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6001
6002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
6003         flags CLONE_VM compare.
6004
6005 2016-05-02  Florian Weimer  <fweimer@redhat.com>
6006
6007         [BZ #20031]
6008         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
6009         completely empty.
6010
6011 2016-05-02  Florian Weimer  <fweimer@redhat.com>
6012
6013         [BZ #19573]
6014         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
6015         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
6016         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
6017         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
6018         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
6019         (hesiod_free_list): Mark as hidden.
6020         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
6021         res_set, res_get.
6022         * hesiod/hesiod.c: Remove unnecessary forward declarations.
6023         (init, __hesiod_res_get, __hesiod_res_set): Remove.
6024         (hesiod_init): Remove obsolete res_ninit call.
6025         (hesiod_end): Do not free resolver state.  Do not invoke callback.
6026         (hesiod_bind): Do not call init.
6027         (get_txt_records): Use res_mkquery, res_send instead of
6028         res_nmkquery, res_nsend.
6029         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
6030         instead of _nss_hesiod_init.
6031         (_nss_hesiod_initgroups_dyn): Likewise.
6032         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
6033         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
6034         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
6035
6036 2016-05-02  Florian Weimer  <fweimer@redhat.com>
6037
6038         * hesiod/hesiod_p.h (DEF_RHS): Remove.
6039         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
6040
6041 2016-05-02  Florian Weimer  <fweimer@redhat.com>
6042
6043         * hesiod/hesiod.h: Remove RCS keyword.
6044         * hesiod/hesiod_p.h: Likewise.
6045
6046         * hesiod/hesiod.c: Likewise.
6047
6048 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
6049
6050         [BZ #12450]
6051         * locale/iso-639.def: Add Samogitian/sgs.
6052
6053 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
6054
6055         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
6056
6057         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
6058
6059 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
6060             Carlos O'Donell  <carlos@redhat.com>
6061
6062         [BZ #19072]
6063         * grp/Makefile (headers): Add grp-merge.h
6064         (routines): Add grp-merge.
6065         * grp/getgrgid_r.c: Include grp-merge.h.
6066         (DEEPCOPY_FN): Define.
6067         (MERGE_FN): Define.
6068         * grp/getgrname_r.c: Include grp-merge.h.
6069         (DEEPCOPY_FN): Define.
6070         (MERGE_FN): Define.
6071         * grp/grp-merge.c: New file.
6072         * grp/grp-merge.h: New file.
6073         * include/grp-merge.h: New file.
6074         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
6075         __copy_grp@GLIBC_PRIVATE.
6076         * manual/nss.texi (Actions in the NSS configuration): Describe
6077         return, continue, and merge.
6078         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
6079         (DEEPCOPY_FN): Define.
6080         (MERGE_FN): Define.
6081         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
6082         (DEEPCOPY_FN): Define.
6083         (MERGE_FN): Define.
6084         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
6085         [!MERGE_FN]: Define __merge_einval.
6086         (CHECK_MERGE): Define.
6087         (REENTRANT_NAME): Process merge if do_merge is true.
6088         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
6089         (__nss_getent_r): Likewise.
6090         * nss/nsswitch.c (nss_parse_service_list): Likewise.
6091         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
6092
6093 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6094
6095         [BZ #20012]
6096         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
6097         length to calculate the buffer to read.
6098         (fmemopen_write): Set the buffer position based on bytes written.
6099         (fmemopen_seek): Return EINVAL for invalid whence modes.
6100
6101         [BZ #19957]
6102         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
6103         tst-getpid2.
6104         (test): Add tst-clone2.
6105         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
6106         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
6107         pid/tid fields for CLONE_VM.
6108         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
6109         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
6110         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
6111         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
6112         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
6113         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
6114         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
6115         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
6116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
6117         Likewise.
6118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
6119         Likewise.
6120         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
6121         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
6122         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
6123         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
6124         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
6125         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
6126         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
6127         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
6128
6129 2016-04-29  Florian Weimer  <fweimer@redhat.com>
6130
6131         [BZ #19642]
6132         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
6133         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
6134         (gni_serv_local, gni_serv): New functions extracted from
6135         getnameinfo.
6136         (getnameinfo): Call gni_host and gni_serv to perform the
6137         processing.  Always free scratch buffer.
6138
6139 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6140
6141         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
6142         remaining bytes in the dest string, with zeros.
6143
6144 2016-04-29  Florian Weimer  <fweimer@redhat.com>
6145
6146         [BZ #20010]
6147         CVE-2016-3706
6148         * sysdeps/posix/getaddrinfo.c
6149         (convert_hostent_to_gaih_addrtuple): New function.
6150         (gethosts): Call convert_hostent_to_gaih_addrtuple.
6151         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
6152         AF_INET data.
6153
6154 2016-04-29  Florian Weimer  <fweimer@redhat.com>
6155
6156         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
6157         callback function gl_readdir.
6158         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
6159         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
6160         (glob_in_dir): Remove len.  Use strdup instead of malloc and
6161         memcpy to copy the name.
6162         * manual/pattern.texi (Calling Glob): Document requirements for
6163         implementations of the gl_readdir callback function.
6164         * manual/examples/mkdirent.c: New example.
6165         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
6166         per the manual guidance.
6167         * posix/tst-gnuglob.c (my_readdir): Likewise.
6168
6169 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
6170
6171         [BZ #20014]
6172         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
6173         not [__USE_POSIX].
6174         (getchar_unlocked): Likewise.
6175         (putc_unlocked): Likewise.
6176         (putchar_unlocked): Likewise.
6177         (flockfile): Likewise.
6178         (ftrylockfile): Likewise.
6179         (funlockfile): Likewise.
6180         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
6181         variable.
6182         (test-xfail-XPG4/stdio.h/conform): Likewise.
6183
6184         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
6185         Expect constant.
6186         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
6187         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
6188         variable.
6189         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6190         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6191
6192         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
6193         [__USE_LARGEFILE64] (off64_t): Likewise.
6194         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
6195         variable.
6196
6197 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6198
6199         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
6200
6201 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6202
6203         * resolv/inet_addr.c: Reindent preprocessor conditionals.
6204         * resolv/res_init.c: Likewise.
6205         * resolv/res_mkquery.c: Likewise.
6206
6207 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6208
6209         * resolv/res_init.c (isascii): Do not define.  Use definition in
6210         <ctype.h>.
6211         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
6212         (LOG_AUTH): Remove.
6213         (SPRINTF): Remove, adjust caller.
6214         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
6215
6216 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6217
6218         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
6219         SUNSECURITY conditional.
6220         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
6221
6222 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6223
6224         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
6225         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
6226         Remove BSD-related preprocessor conditionals.
6227         * conf/portability.h: Remove.
6228
6229 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6230
6231         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
6232         * resolv/res_data.c: Likewise.
6233
6234 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6235
6236         * resolv/res_comp.c: Remove code conditional on __ultrix__.
6237         * resolv/res_data.c: Remove code conditional on ultrix.
6238
6239 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6240
6241         * resolv/res_init.c (RFC1535): Do not define.  Remove
6242         RFC1535 preprocessor conditionals.
6243         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
6244         because there configuration options which make the resolver
6245         behavior different.
6246
6247 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6248
6249         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
6250         RESOLVSORT preprocessor conditionals.
6251         * resolv/nss_dns/dns-host.c: Likewise.
6252         * resolv/res_init.c: Likewise.
6253
6254 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6255
6256         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
6257         is never defined.
6258
6259 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6260
6261         * inet/inet_lnaof.c: Remove SCSS keyword.
6262         * inet/inet_mkadr.c: Likewise.
6263         * inet/inet_net.c: Likewise.
6264         * inet/inet_netof.c: Likewise.
6265         * inet/rcmd.c: Likewise.
6266         * inet/rexec.c: Likewise.
6267         * inet/ruserpass.c: Likewise.
6268
6269 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6270
6271         * resolv/inet_addr.c: Remove _LIBC conditionals.
6272         * resolv/res_data.c: Likewise.
6273         * resolv/res_init.c: Likewise.
6274         * resolv/res_mkquery.c: Likewise.
6275         * resolv/res_libc.c: Update comment.
6276         * resolv/README: Update.
6277
6278 2016-04-28  Florian Weimer  <fweimer@redhat.com>
6279
6280         * resolv/gethnamaddr.c: Remove SCSS keyword.
6281         * resolv/herror.c: Likewise.
6282         * resolv/inet_addr.c: Likewise.
6283         * resolv/inet_net_ntop.c: Likewise.
6284         * resolv/inet_net_pton.c: Likewise.
6285         * resolv/inet_neta.c: Likewise.
6286         * resolv/inet_ntop.c: Likewise.
6287         * resolv/inet_pton.c: Likewise.
6288         * resolv/ns_date.c: Remove RCS keyword.
6289         * resolv/ns_name.c: Likewise.
6290         * resolv/ns_netint.c: Likewise.
6291         * resolv/ns_parse.c: Likewise.
6292         * resolv/ns_print.c: Likewise.
6293         * resolv/ns_samedomain.c: Likewise.
6294         * resolv/ns_ttl.c: Likewise.
6295         * resolv/nsap_addr.c: Likewise.
6296         * resolv/res_comp.c: Remove SCSS and RCS keyword.
6297         * resolv/res_data.c: Remove RCS keyword.
6298         * resolv/res_debug.c: Remove SCSS and RCS keyword.
6299         * resolv/res_init.c: Likewise.
6300         * resolv/res_mkquery.c: Likewise.
6301         * resolv/res_query.c: Likewise.
6302         * resolv/res_send.c: Likewise.
6303
6304 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
6305
6306         * conform/data/stdio.h-data (fdopen): Expect also for
6307         [XPG3 || XPG4].
6308
6309         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
6310         (fseeko): Likewise.
6311         (ftello): Likewise.
6312         (ftrylockfile): Likewise.
6313         (funlockfile): Likewise.
6314         (getc_unlocked): Likewise.
6315         (getchar_unlocked): Likewise.
6316         (putc_unlocked): Likewise.
6317         (putchar_unlocked): Likewise.
6318
6319 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6320
6321         [BZ #19868]
6322         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
6323         DNS packet syntax checks (which were not needed before).  Skip
6324         over non-PTR records.
6325
6326 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6327
6328         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
6329         definition.  Include <stddef.h> instead.
6330
6331 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6332
6333         [BZ #19831]
6334         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
6335         function.
6336         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
6337         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
6338
6339 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6340
6341         [BZ #19862]
6342         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
6343         (getanswer_r): Do not call syslog.
6344         (gaih_getanswer_slice): Likewise.
6345         * resolv/gethnamaddr.c (AskedForGot): Remove.
6346         (getanswer): Do not call syslog.
6347         (gethostbyaddr): Likewise.
6348
6349 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
6350
6351         * conform/data/signal.h-data (union sigval): Expect also if
6352         [XOPEN2K].
6353         (struct sigevent): Likewise.
6354         (SIGEV_NONE): Likewise.
6355         (SIGEV_SIGNAL): Likewise.
6356         (SIGEV_THREAD): Likewise.
6357         (SIGRTMIN): Likewise.
6358         (SIGRTMAX): Likewise.
6359         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
6360         variable.
6361         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6362
6363 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6364
6365         [BZ #19830]
6366         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
6367         (gaih_getanswer_slice): Likewise.
6368         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
6369         Also check for availability of RR metadata.
6370
6371 2016-04-27  Florian Weimer  <fweimer@redhat.com>
6372
6373         [BZ #19825]
6374         * resolv/res_send.c (send_vc): Remove early *resplen2
6375         initialization.  Set *resplen2 on socket error.  Call
6376         close_and_return_error for other errors.
6377
6378 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
6379
6380         * sysdeps/unix/sysv/linux/netiucv/iucv.h
6381         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
6382         (SCM_IUCV_TRGCLS): New define.
6383
6384 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6385
6386         [BZ #20005]
6387         * libio/fmemopen.c (fmemopen_write): Update internal position after
6388         write.
6389         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
6390         * stdio-common/tst-fmemopen4.c: New file..
6391
6392 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
6393
6394         [BZ #19996]
6395         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
6396         not [__USE_XOPEN2K].
6397         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
6398         variable.
6399
6400         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
6401         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
6402         variable.
6403
6404         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
6405         [__USE_XOPEN2K8].
6406         [__USE_LARGEFILE64] (off64_t): Likewise.
6407         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
6408         variable.
6409
6410 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
6411
6412         [BZ #19989]
6413         * libio/stdio.h (cuserid): Do not declare if
6414         [__USE_XOPEN2K && !__USE_GNU].
6415         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
6416         variable.
6417
6418 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6419
6420         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6421         (sysdep_routines): Add P8 and PPC64 strcspn targets.
6422         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6423         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
6424         ifunc'ed strcspn.
6425         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
6426         [EALIGN]: Removed.
6427         [END]: Likewise
6428         [STRSPN]: Define instead of the above to control symbol name.
6429         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
6430         New file.
6431         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
6432         Likewise.
6433         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
6434         Likewise.
6435         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
6436         Likewise.
6437         * sysdeps/powerpc/powerpc64/power8/strspn.S:
6438         [INITIAL_MASK]: New macro.
6439         [STRCSPN]: Likewise.
6440         [UPDATE_MASK]: Likewise.
6441         [USE_AS_STRCSPN]: Lisewise.
6442
6443 2016-04-25  Florian Weimer  <fweimer@redhat.com>
6444
6445         [BZ #19931]
6446         * stdio-common/tst-vfprintf-width-prec.c: New file.
6447         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
6448         (tests-special): Add tst-vfprintf-width-prec-mem.out.
6449         (generated): Add mtrace-related files.
6450         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
6451         (tst-%-mem.out): New pattern rule, replaces
6452         tst-printf-bz18872-mem.out.
6453         * stdio-common/vfprintf.c (vfprintf): When handling a precision
6454         specifier, deallocate any previously allocated work buffer.
6455
6456 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
6457
6458         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
6459         Add nop before __startcontext, add explaining comments.
6460
6461 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
6462
6463         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
6464         any more. Notably since IPV6_PKTINFO has been reintroduced with a
6465         completely different API.
6466
6467         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
6468         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
6469         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
6470         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
6471         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
6472         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
6473         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
6474         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
6475         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
6476         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
6477
6478 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
6479
6480         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
6481
6482 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
6483
6484         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
6485         when it is the default of 0.
6486
6487 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6488
6489         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
6490         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6491         (sysdep_routines): Add new strcasestr targets.
6492         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6493         (__libc_ifunc_impl_list): Likewise.
6494         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
6495         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
6496         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
6497         * sysdeps/powerpc/powerpc64/power8/Makefile:
6498         New file to add strcasestr-ppc64 to sysdep_routines.
6499         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
6500         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
6501
6502 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
6503
6504         * benchtests/Makefile (wcsmbs-benchset): Include only for
6505         native builds and runs.
6506         (LOCALES): Likewise.
6507         (bench-build): Build timing-type here instead of the bench
6508         target.  Generate locale only for native builds.
6509         * benchtests/README: Add note for cross-building.
6510
6511         * benchtests/Makefile (bench-clean): Clean up extra-objs.
6512
6513         * benchtests/README: Update README to include instructions on
6514         using bench-build.
6515
6516         * Makefile.in (bench-build): New target.
6517         * Rules (PHONY): Add bench-build target.
6518         * benchtests/Makefile (bench): Depend on bench-build.
6519         (bench-build): New target.
6520
6521 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6522
6523         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
6524         profil_reply_port.
6525         (profile_waiter): Do not initialize profil_reply_port.
6526         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
6527         frequency instead of tick length in us.
6528
6529 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
6530
6531         [BZ #18712]
6532         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
6533         (__old_mempcpy_small): Likewise.
6534         (__old_strcpy_small): Likewise.
6535         (__old_stpcpy_small): Likewise.
6536         (__old_strpbrk_c2): Fix compat symbol name.
6537         (__old_strpbrk_c3): Likewise.
6538         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
6539         (__mempcpy_small): Remove.
6540         (__strcpy_small): Remove.
6541         (__stpcpy_small): Remove.
6542
6543 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
6544
6545         [BZ #19400]
6546         * locale/iso-639.def: Add the Talossan/tzl language.
6547
6548 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
6549
6550         [BZ #16983]
6551         * locale/programs/ld-address.c (address_finish): Update postal_fmt
6552         comment.  Add "ln" to strchr check on postal_fmt.
6553
6554 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
6555
6556         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
6557         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
6558         tel_dom_fmt.
6559
6560 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6561
6562         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6563         (sysdep_routines): Added __strlen_power8.
6564         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
6565         __strlen_power8 entry.
6566         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
6567         Implementation for POWER8.
6568         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
6569         for __strlen_power8.
6570         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
6571         Implementation for POWER8.
6572
6573 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
6574
6575         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
6576
6577 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
6578
6579         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
6580         Goldmont and Airmont processors.
6581
6582 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
6583
6584         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
6585         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
6586         (__STRING2_SMALL_GET32): Remove.
6587         (memset): Remove.
6588         (__memset_1): Remove.
6589         (__memset_gc): Remove.
6590         (__mempcpy): Remove.
6591         (mempcpy): Remove.
6592         (__mempcpy_args): Remove.
6593         (strchr): Remove.
6594         (strcpy): Remove.
6595         (strcpy_args): Remove.
6596         (__stpcpy_args): Remove.
6597         (__strcmp_cc): Remove.
6598         (__strcmp_gc): Remove.
6599         (strstr): Remove.
6600
6601 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
6602
6603         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
6604         * nis/nis_call.c (nis_server_cache_add): Likewise.
6605
6606 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6607
6608         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
6609
6610 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6611
6612         * malloc/arena.c (__malloc_fork_lock_parent)
6613         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
6614         internal_function attribute.
6615
6616 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
6617
6618         * stdio-common/printf_fp.c (__printf_fp_l):
6619         Rename ___printf_fp_l to __printf_fp_l and
6620         remove strong alias. Use libc_hidden_def instead
6621         of ldbl_hidden_def macro.
6622
6623 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6624
6625         Remove malloc hooks from fork handler.  They are no longer needed
6626         because malloc runs right before fork, and no malloc calls from
6627         other fork handlers are not possible anymore.
6628         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
6629         declarations.
6630         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
6631         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
6632         (atfork_recursive_cntr): Remove.
6633         (__malloc_fork_lock_parent): Do not override malloc hooks and
6634         thread_arena.
6635         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
6636         thread_arena.
6637         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
6638         thread_arena instead of save_arena.
6639
6640 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6641
6642         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
6643         (thread_atfork, thread_atfork_static): Remove.
6644         * sysdeps/mach/hurd/malloc-machine.h:
6645         (thread_atfork, thread_atfork_static): Remove.
6646
6647 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6648
6649         [BZ #19431]
6650         Run the malloc fork handler as late as possible to avoid deadlocks.
6651         * malloc/malloc-internal.h: New file.
6652         * malloc/malloc.c: Include it.
6653         * malloc/arena.c (ATFORK_MEM): Remove.
6654         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
6655         Update comment.
6656         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
6657         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
6658         Remove outdated comment.
6659         (ptmalloc_init): Do not call thread_atfork.  Remove
6660         thread_atfork_static.
6661         * malloc/tst-malloc-fork-deadlock.c: New file.
6662         * Makefile (tests): Add tst-malloc-fork-deadlock.
6663         (tst-malloc-fork-deadlock): Link against libpthread.
6664         * manual/memory.texi (Aligned Memory Blocks): Update safety
6665         annotation comments.
6666         * sysdeps/nptl/fork.c (__libc_fork): Call
6667         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
6668         __malloc_fork_unlock_child.
6669         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6670
6671 2016-04-14  Florian Weimer  <fweimer@redhat.com>
6672
6673         [BZ #19613]
6674         Remove union wait.
6675         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
6676         (w_stopsig, w_stopval): Remove.
6677         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
6678         stat_loc argument.
6679         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
6680         (__WAIT_STATUS_DEFN): Remove.
6681         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
6682         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
6683         (wait, wait3, wait4): Use int * for the stat_loc argument.
6684         * posix/wait.c (__wait): Likewise.
6685         * posix/wait3.c (__wait3): Likewise.
6686         * posix/wait4.c (__wait4): Likewise.
6687         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
6688         (__WAIT_STATUS_DEFN): Remove.
6689         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
6690         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
6691         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
6692         argument.
6693         * sysdeps/posix/wait.c (__libc_wait): Likewise.
6694         * sysdeps/posix/wait3.c (__wait3): Likewise.
6695         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
6696         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
6697         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
6698         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
6699         stat_loc argument.
6700         * manual/process.texi (BSD Wait Functions): Remove union wait.
6701
6702 2016-04-13  Andreas Schwab  <schwab@suse.de>
6703
6704         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
6705         (test-extras): Add tst-tlsalign-vars.
6706         * math/Makefile: Wrap long lines.
6707         (libm-vec-test-wrappers): Define.
6708         (test-extras): Add $(libm-vec-test-wrappers).
6709         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
6710         * nss/Makefile (extra-test-objs): Add nss_test1.os.
6711         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
6712         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
6713         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
6714         (extra-test-objs): Add corresponding objects.
6715
6716 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
6717
6718         [BZ #19928]
6719         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
6720         New.
6721         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
6722         times of shared cache size.
6723         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
6724         (VMOVNT): New.
6725         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
6726         (VMOVNT): Likewise.
6727         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
6728         (VMOVNT): Likewise.
6729         (VMOVU): Changed to movups for smaller code sizes.
6730         (VMOVA): Changed to movaps for smaller code sizes.
6731         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
6732         comments.
6733         (PREFETCH): New.
6734         (PREFETCH_SIZE): Likewise.
6735         (PREFETCHED_LOAD_SIZE): Likewise.
6736         (PREFETCH_ONE_SET): Likewise.
6737         Rewrite to use forward and backward loops, which move 4 vector
6738         registers at a time, to support overlapping addresses and use
6739         non temporal store if size is above the threshold and there is
6740         no overlap between destination and source.
6741
6742 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
6743
6744         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
6745         Include dl-vdso.
6746         * sysdeps/unix/sysv/linux/mips/Versions: Add
6747         __vdso_clock_gettime.
6748         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
6749         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
6750         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
6751         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
6752         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
6753         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6754         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6755         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
6756         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
6757
6758 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6759
6760         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
6761         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
6762         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
6763         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
6764         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6765         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
6767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
6768         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
6769         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
6770         syscalls generation.
6771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6772         [__NR_pwrite64] (__NR_write): Remove define.
6773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6774         [__NR_pwrite64] (__NR_write): Remove define.
6775         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
6776         Remove define.
6777         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
6778         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
6779         Remove define.
6780         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
6781         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
6782         Linux implementation as base.
6783         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
6784
6785         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
6786         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
6787         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
6788         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
6789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
6790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
6791         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
6792         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
6793         syscall generation.
6794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6795         [__NR_pread64] (__NR_pread): Remove define.
6796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
6797         [__NR_pread64] (__NR_pread): Likewise.
6798         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
6799         define.
6800         (__libc_pread): Use SYSCALL_LL macro on offset argument.
6801         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
6802         Remove define.
6803         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
6804         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
6805         Linux implementation as base.
6806         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
6807         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6808         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6809
6810         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
6811         definition.
6812         (__ALIGNMENT_COUNT): Likewise.
6813         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
6814         (__ALIGNMENT_COUNT): Likewise.
6815         (SYSCALL_LL): New define.
6816         (SYSCALL_LL64): Likewise.
6817         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
6818         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
6819         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
6820         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
6821
6822         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6823         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
6824         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6825         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
6826         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6827         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
6828
6829 2016-04-11  Florian Weimer  <fweimer@redhat.com>
6830
6831         [BZ #19865]
6832         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
6833         original buffer before retry.
6834
6835 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6836
6837         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
6838         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
6839         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
6840         GLRO(dl_auxv) list.
6841         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
6842         including <ldsodefs.h>.
6843         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
6844
6845 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
6846
6847         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
6848         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
6849         $(CPPFLAGS).
6850
6851 2016-04-09  Khem Raj  <raj.khem@gmail.com>
6852
6853         [BZ #17950]
6854         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
6855         Add -mfpmath=387.
6856
6857 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
6858
6859         * sysdeps/i386/configure.ac: Change == to = when calling test.
6860         * sysdeps/x86_64/configure.ac: Likewise.
6861         * sysdeps/i386/configure: Regenerated.
6862         * sysdeps/x86_64/configure: Likewise.
6863
6864 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
6865
6866         [BZ #16137]
6867         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
6868         * benchtests/bench-strcoll.c (input_files): Likewise.
6869         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
6870         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
6871         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
6872
6873 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
6874
6875         [BZ #19929]
6876         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
6877         [__USE_XOPEN2K8 && !__USE_GNU].
6878         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
6879         variable.
6880
6881         [BZ #19925]
6882         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
6883         define if [!__USE_MISC && __USE_XOPEN2K].
6884         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
6885         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
6886         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
6887         Likewise.
6888         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
6889         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
6890         variable.
6891         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
6892
6893 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6894
6895         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6896         (sysdep_routines): Add new strspn targets.
6897         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6898         (__libc_ifunc_impl_list): Add strspn.
6899         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
6900         New file.
6901         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
6902         Likewise.
6903         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
6904         Likewise.
6905         * sysdeps/powerpc/powerpc64/power8/strspn.S:
6906         Likewise.
6907
6908 2016-04-07  Florian Weimer  <fweimer@redhat.com>
6909
6910         * misc/hsearch_r.c: Include <limits.h>.
6911
6912 2016-04-07  Florian Weimer  <fweimer@redhat.com>
6913
6914         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
6915
6916 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
6917
6918         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6919         (MEMCPY_SYMBOL): New.
6920         (MEMPCPY_SYMBOL): Likewise.
6921         (MEMMOVE_CHK_SYMBOL): Likewise.
6922         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
6923         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
6924         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
6925         Provide alias for memcpy in libc.a and ld.so.
6926
6927 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
6928
6929         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
6930         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
6931         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
6932         Disabled fro now.
6933         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
6934         symbols.  Properly check USE_MULTIARCH on __memset symbols.
6935
6936 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
6937
6938         * benchtests/Makefile (string-benchset): Add memcpy-large,
6939         memmove-large and memset-large.
6940         * benchtests/bench-memcpy-large.c: New file.
6941         * benchtests/bench-memmove-large.c: Likewise.
6942         * benchtests/bench-memmove-large.c: Likewise.
6943         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
6944
6945 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
6946
6947         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
6948         32-bit displacement to avoid long nop between instructions.
6949
6950 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
6951
6952         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
6953         a comment on VMOVU and VMOVA.
6954
6955 2016-04-04  Florian Weimer  <fweimer@redhat.com>
6956
6957         [BZ #19633]
6958         Use specified locale for number formatting in strfmon_l.
6959         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
6960         (__nl_lookup_word): New inline functions.
6961         * include/printf.h (__print_fp_l): Declare.
6962         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
6963         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
6964         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
6965         (___printf_fp): New function.
6966         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
6967         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
6968         * stdlib/tst-strfmon_l.c (do_test): New test.
6969         * stdlib/Makefile (tests): Add kt.
6970         (LOCALES): Build additional locales.
6971         (tst-strfmon_l.out): Require locales.
6972
6973 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
6974
6975         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
6976         if not in libc.
6977         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
6978         Likewise.
6979         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
6980         Likewise.
6981         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
6982         Likewise.
6983
6984 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
6985
6986         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
6987         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
6988         with unaligned_erms.
6989         (__memmove_erms): Skip if source == destination.
6990         (__memmove_unaligned_erms): Don't check source == destination
6991         first.
6992
6993 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
6994
6995         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
6996         bit_arch_Fast_Copy_Backward for Intel Core proessors.
6997
6998 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6999
7000         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
7001         * string/strspn.c (strspn): Likewise.
7002
7003 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
7004
7005         * benchtests/bench-memset.c (do_test): Support 64-byte
7006         alignment.
7007         (test_main): Test 64-byte alignment.
7008
7009 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
7010
7011         * benchtests/bench-memmove.c (test_main): Test 64-byte
7012         alignment.
7013
7014 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
7015
7016         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
7017
7018 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7019
7020         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
7021         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
7022         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
7023
7024         * string/strpbrk.c (strpbrk): Rewrite function.
7025         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
7026         (__strpbrk_c2): Likewise.
7027         (__strpbrk_c3): Likewise.
7028         * string/string-inlines.c
7029         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
7030         Likewise.
7031         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
7032         Likewise.
7033
7034         * string/strspn.c (strcspn): Rewrite function.
7035         * string/bits/string2.h (strspn): Use __builtin_strcspn.
7036         (__strspn_c1): Remove inline function.
7037         (__strspn_c2): Likewise.
7038         (__strspn_c3): Likewise.
7039         * string/string-inlines.c
7040         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
7041         compatibility symbol.
7042         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
7043         Likewise.
7044         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
7045         Likewise.
7046         * string/string-inlines.c: Include generic version.
7047
7048 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
7049             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7050
7051         * string/Version (libc): Add GLIBC_2.24.
7052         * string/strcspn.c (strcspn): Rewrite function.
7053         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
7054         (__strcspn_c1): Remove inline function.
7055         (__strcspn_c2): Likewise.
7056         (__strcspn_c3): Likewise.
7057         * string/string-inline.c
7058         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
7059         compatibility symbol.
7060         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
7061         Likewise.
7062         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
7063         Likewise.
7064         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
7065
7066 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
7067
7068         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7069         Use ahi instead of aghi to adjust stack pointer.
7070
7071 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7072
7073         [BZ #19853]
7074         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
7075         TEST to take significant digits as second parameter.
7076         [TEST]: Redefine in terms of TEST_N taking 30
7077         significant digits.
7078         (do_test): Add test case to demonstrate precision
7079         failure in the ldbl-128ibm printf.
7080         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
7081         (__mpn_extract_long_double): Carry 7 extra intermediate
7082         bits of precision to aide computing difference when
7083         signs differ.
7084
7085 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
7086
7087         [BZ #19881]
7088         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7089         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
7090         memset-avx512-unaligned-erms.
7091         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7092         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
7093         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
7094         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
7095         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
7096         __memset_sse2_unaligned_erms, __memset_erms,
7097         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
7098         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
7099         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
7100         file.
7101         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
7102         Likewise.
7103         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
7104         Likewise.
7105         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
7106         Likewise.
7107
7108 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
7109
7110         [BZ #19776]
7111         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7112         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
7113         memmove-avx512-unaligned-erms.
7114         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7115         (__libc_ifunc_impl_list): Test
7116         __memmove_chk_avx512_unaligned_2,
7117         __memmove_chk_avx512_unaligned_erms,
7118         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
7119         __memmove_chk_sse2_unaligned_2,
7120         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
7121         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
7122         __memmove_avx512_unaligned_erms, __memmove_erms,
7123         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
7124         __memcpy_chk_avx512_unaligned_2,
7125         __memcpy_chk_avx512_unaligned_erms,
7126         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
7127         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
7128         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
7129         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
7130         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
7131         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
7132         __mempcpy_chk_avx512_unaligned_erms,
7133         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
7134         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
7135         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
7136         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
7137         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
7138         __mempcpy_erms.
7139         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
7140         file.
7141         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
7142         Likwise.
7143         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
7144         Likwise.
7145         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7146         Likwise.
7147
7148 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
7149
7150         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
7151         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
7152         (La_s390_64_regs): Likewise.
7153         (La_s390_32_retval): Append vector register lrv_v24.
7154         (La_s390_64_retval): Likeweise.
7155         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7156         Handle extended structs La_s390_32_regs and La_s390_32_retval.
7157         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7158         Handle extended structs La_s390_64_regs and La_s390_64_retval.
7159
7160 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
7161
7162         [BZ #19916]
7163         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
7164         to create a non-vector/vector version for _dl_runtime_resolve and
7165         _dl_runtime_profile. Move implementation to ...
7166         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
7167         (_dl_runtime_resolve) Save and restore fpr/vrs.
7168         (_dl_runtime_profile) Save and restore vrs and fix some issues
7169         if _dl_call_pltexit is called.
7170         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
7171         Choose the correct resolver function if running on a machine with vx.
7172         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
7173         to create a non-vector/vector version for _dl_runtime_resolve and
7174         _dl_runtime_profile. Move implementation to ...
7175         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
7176         (_dl_runtime_resolve) Save and restore fpr/vrs.
7177         (_dl_runtime_profile) Save and restore vrs and fix some issues
7178         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
7179         Choose the correct resolver function if running on a machine with vx.
7180
7181 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7182
7183         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
7184
7185 2016-03-31  Florian Weimer  <fweimer@redhat.com>
7186
7187         [BZ #19509]
7188         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
7189         skip_map != NULL.
7190         * elf/tst-dlsym-error.c: New file.
7191         * elf/Makefile (tests): Add tst-dlsym-error.
7192         (tst-dlsym-error): Link against libdl.
7193
7194 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
7195
7196         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7197         (__ASSUME_FUTIMESAT): Remove macro.
7198         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
7199
7200 2016-03-29  Florian Weimer  <fweimer@redhat.com>
7201
7202         [BZ #19879]
7203         CVE-2016-3075
7204         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
7205         copy name.
7206
7207 2016-03-29  Florian Weimer  <fweimer@redhat.com>
7208
7209         [BZ #19837]
7210         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
7211         error if parse_line fails.
7212
7213 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
7214
7215         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
7216         (index_cpu_ERMS): Likewise.
7217         (reg_ERMS): Likewise.
7218
7219 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
7220
7221         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
7222         PER_LINUX_FDPIC): Add.
7223
7224 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
7225
7226         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7227         memcpy-avx512-no-vzeroupper.
7228         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
7229         to ...
7230         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
7231         (MEMCPY): Don't define.
7232         (MEMCPY_CHK): Likewise.
7233         (MEMPCPY): Likewise.
7234         (MEMPCPY_CHK): Likewise.
7235         (MEMPCPY_CHK): Renamed to ...
7236         (__mempcpy_chk_avx512_no_vzeroupper): This.
7237         (MEMPCPY_CHK): Renamed to ...
7238         (__mempcpy_chk_avx512_no_vzeroupper): This.
7239         (MEMCPY_CHK): Renamed to ...
7240         (__memmove_chk_avx512_no_vzeroupper): This.
7241         (MEMCPY): Renamed to ...
7242         (__memmove_avx512_no_vzeroupper): This.
7243         (__memcpy_avx512_no_vzeroupper): New alias.
7244         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
7245
7246 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
7247
7248         [BZ #18858]
7249         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7250         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
7251         and mempcpy-avx512-no-vzeroupper.
7252         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
7253         New.
7254         (MEMPCPY): Likewise.
7255         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
7256         (MEMPCPY_CHK): New.
7257         (MEMPCPY): Likewise.
7258         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
7259         (MEMPCPY): Likewise.
7260         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
7261         (MEMPCPY): Likewise.
7262         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
7263         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
7264         Likewise.
7265         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
7266         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
7267
7268 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
7269              Amit Pawar  <Amit.Pawar@amd.com>
7270
7271         [BZ #19583]
7272         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
7273         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
7274         processors.  Set Fast_Copy_Backward for AMD Excavator
7275         processors.
7276         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
7277         New.
7278         (index_arch_Fast_Unaligned_Copy): Likewise.
7279         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
7280         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
7281
7282 2016-03-25  Florian Weimer  <fweimer@redhat.com>
7283
7284         [BZ #19791]
7285         * resolv/res_send.c (close_and_return_error): New function.
7286         (send_dg): Initialize *resplen2 after reopen failure.  Call
7287         close_and_return_error for error returns.  On error paths without
7288         __res_iclose, initialze *resplen2 explicitly.  Update comment for
7289         successful return.
7290
7291 2016-03-25  Florian Weimer  <fweimer@redhat.com>
7292
7293         [BZ# 19860]
7294         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
7295         zero if the compiler does not provide the AVX512F bit.
7296
7297 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
7298
7299         [BZ #19848]
7300         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
7301         from 8 to 4.
7302         (__ieee754_powl): Compare integer exponent against 4 not 8.
7303         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
7304         from 8 to 4.
7305         (__ieee754_powl): Compare integer exponent against 4 not 8.
7306         * math/auto-libm-test-in: Add more tests of pow.
7307         * math/auto-libm-test-out: Regenerated.
7308         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
7309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7310
7311 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
7312
7313         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
7314         Make code unconditional.
7315         [!__NR_utimensat]: Remove conditional code.
7316         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
7317         Make code unconditional.
7318         [!__NR_utimensat]: Remove conditional code.
7319         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
7320         Make code unconditional.
7321         [!__NR_utimensat]: Remove conditional code.
7322
7323 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
7324
7325         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
7326         Make code unconditional.
7327
7328 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
7329
7330         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
7331         call-clobbered %eax on retry path.
7332         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
7333
7334 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7335
7336         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
7337         Don't set %rcx twice before "rep movsb".
7338
7339 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7340
7341         [BZ #19583]
7342         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
7343         inline.  Check family before setting family, model and
7344         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
7345         bits here.
7346         (init_cpu_features): Replace HAS_CPU_FEATURE and
7347         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
7348         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
7349         for Intel processors with usable AVX2.  Call get_common_indeces
7350         for other processors with family == NULL.
7351         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
7352         (CPU_FEATURES_ARCH_P): Likewise.
7353         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
7354         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
7355
7356 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7357
7358         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
7359         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
7360         $(shared-thread-library) instead of hardcoding the path to libpthread.
7361
7362 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
7363
7364         * sysdeps/unix/sysv/linux/kernel-features.h
7365         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
7366         * sysdeps/unix/sysv/linux/getdents.c
7367         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
7368         [!have_no_getdents64_defined]: Likewise.
7369         (__GETDENTS): Remove __have_no_getdents64 conditional.
7370
7371 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
7372
7373         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
7374         Remove macro.
7375         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
7376         <kernel-features.h>.
7377         (signalfd) [__NR_signalfd4]: Make code unconditional.
7378         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
7379
7380 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7381
7382         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
7383         style.
7384
7385 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7386
7387         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
7388         (__pthread_enable_asynccancel): Use JUMPTARGET to call
7389         __pthread_unwind.
7390         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
7391         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
7392         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
7393         (__condvar_cleanup1): Likewise.
7394
7395 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
7396
7397         [BZ #19822]
7398         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
7399         move it to the final $@ location.
7400
7401 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7402
7403         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
7404         access where posix_spawn success and pid argument is null.
7405         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
7406         success case.
7407
7408 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
7409
7410         * sysdeps/mach/hurd/i386/c++-types.data: New file.
7411
7412         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
7413
7414         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
7415         and __fcntl.
7416         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
7417         __fcntl only.
7418         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
7419         adding attribute_hidden to __open and __fcntl.
7420
7421         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
7422         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
7423         depend on libc-modules.h,
7424         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
7425
7426 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
7427
7428         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
7429         Remove macro.
7430         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
7431         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
7432         entry.
7433
7434         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
7435         Remove macro.
7436         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
7437         include <kernel-features.h>.
7438         [!__ASSUME_FALLOCATE]: Remove conditional code.
7439         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
7440
7441 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7442
7443         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
7444         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
7445         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
7446         (_ZGVdN4v_cos_avx2): Likewise.
7447         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
7448         (_ZGVdN4v_cos): Likewise.
7449         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
7450         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
7451         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
7452         (_ZGVdN4v_exp_avx2): Likewise.
7453         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
7454         (_ZGVdN4v_exp): Likewise.
7455         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
7456         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
7457         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
7458         (_ZGVdN4v_log_avx2): Likewise.
7459         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
7460         (_ZGVdN4v_log): Likewise.
7461         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
7462         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
7463         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
7464         (_ZGVdN4vv_pow_avx2): Likewise.
7465         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
7466         (_ZGVdN4vv_pow): Likewise.
7467         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
7468         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
7469         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
7470         (_ZGVdN4v_sin_avx2): Likewise.
7471         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
7472         (_ZGVdN4v_sin): Likewise.
7473         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
7474         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
7475         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
7476         (_ZGVdN4vvv_sincos_avx2): Likewise.
7477         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
7478         (_ZGVdN4vvv_sincos): Likewise.
7479         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
7480         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
7481         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
7482         (_ZGVbN4v_cosf_sse4): Likewise.
7483         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
7484         (_ZGVdN8v_cosf_avx2): Likewise.
7485         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
7486         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
7487         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
7488         (_ZGVbN4v_expf_sse4): Likewise.
7489         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
7490         (_ZGVdN8v_expf_avx2): Likewise.
7491         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
7492         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
7493         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
7494         (_ZGVbN4v_logf_sse4): Likewise.
7495         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
7496         (_ZGVdN8v_logf_avx2): Likewise.
7497         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
7498         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
7499         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
7500         (_ZGVbN4vv_powf_sse4): Likewise.
7501         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
7502         (_ZGVdN8vv_powf_avx2): Likewise.
7503         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
7504         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
7505         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
7506         (_ZGVbN4vvv_sincosf_sse4): Likewise.
7507         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
7508         (_ZGVdN8vvv_sincosf_avx2): Likewise.
7509         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
7510         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
7511         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
7512         (_ZGVbN4v_sinf_sse4): Likewise.
7513         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
7514         (_ZGVdN8v_sinf_avx2): Likewise.
7515         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
7516         Use JUMPTARGET to call callee.
7517         (WRAPPER_IMPL_SSE2_ff): Likewise.
7518         (WRAPPER_IMPL_SSE2_fFF): Likewise.
7519         (WRAPPER_IMPL_AVX): Likewise.
7520         (WRAPPER_IMPL_AVX_ff): Likewise.
7521         (WRAPPER_IMPL_AVX_fFF): Likewise.
7522         (WRAPPER_IMPL_AVX512): Likewise.
7523         (WRAPPER_IMPL_AVX512_ff): Likewise.
7524         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
7525         Likewise.
7526         (WRAPPER_IMPL_SSE2_ff): Likewise.
7527         (WRAPPER_IMPL_SSE2_fFF): Likewise.
7528         (WRAPPER_IMPL_AVX): Likewise.
7529         (WRAPPER_IMPL_AVX_ff): Likewise.
7530         (WRAPPER_IMPL_AVX_fFF): Likewise.
7531         (WRAPPER_IMPL_AVX512): Likewise.
7532         (WRAPPER_IMPL_AVX512_ff): Likewise.
7533         (WRAPPER_IMPL_AVX512_fFF): Likewise.
7534
7535 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7536
7537         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
7538         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
7539         qualifier.
7540         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
7541         internal_function qualifiers.
7542
7543 2016-03-15  Carlos O'Donell <carlos@redhat.com>
7544
7545         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
7546         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
7547         * math/atest-exp.c (exp_mpn): Mark chk unused.
7548         * math/atest-exp2.c (exp_mpn): Likwise.
7549         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
7550         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
7551
7552 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
7553
7554         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
7555         Remove macro.
7556         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
7557         <kernel-features.h>.
7558         [__NR_ppoll]: Make code unconditional.
7559         [!__ASSUME_PPOLL]: Remove conditional code.
7560
7561         * sysdeps/unix/sysv/linux/kernel-features.h
7562         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
7563         (__ASSUME_ACCEPT4): Likewise.
7564         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7565         Define.
7566         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
7567         Likewise.
7568         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7569         Likewise.
7570         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
7571         Likewise.
7572         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
7573         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
7574         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7575         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
7576         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7577         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7578         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7579         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7580         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7581         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7582         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
7583         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7584         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7585         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7586         * sysdeps/unix/sysv/linux/i386/kernel-features.h
7587         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7588         Likewise.
7589         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7590         Likewise.
7591         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7592         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
7593         0x040300].
7594         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7595         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
7596         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7597         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7598         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
7599         0x030300].
7600         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
7601         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7602         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7603         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
7604         0x040300].
7605         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7606         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7607         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7608         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
7609         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7610         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7611         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
7612         0x030300].
7613         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7614         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
7615         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7616         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7617         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7618         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7619         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7620         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7621         * sysdeps/unix/sysv/linux/s390/kernel-features.h
7622         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
7623         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
7624         0x040300].
7625         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7626         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7627         * sysdeps/unix/sysv/linux/sh/kernel-features.h
7628         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
7629         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7630         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7631         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7632         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7633         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7634         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7635         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7636         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7637         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7638         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
7639         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
7640         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7641         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7642         Likewise.
7643         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7644         Likewise.
7645
7646 2016-03-15  Andreas Schwab  <schwab@suse.de>
7647
7648         [BZ #19257]
7649         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
7650         statp->_u._ext.nscount as loop count.
7651
7652 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
7653
7654         * math/test-signgam-finite-c99.c: Also #undef
7655         __LIBC_INTERNAL_MATH_INLINES.
7656         * math/test-signgam-main.c: Likewise.
7657
7658 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
7659
7660         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
7661         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
7662         (MADV_FREE): Likewise.
7663         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
7664         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
7665         EPOLLEXCLUSIVE.
7666
7667 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
7668
7669         * timezone/README: Remove mention of checktab.awk. Mention wiki
7670         SharedSourceFiles.
7671
7672 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
7673
7674         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
7675         WUNTRACED.
7676
7677 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7678
7679         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
7680         order to match the type of p when calling atomic_exchange_acq().
7681
7682 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7683
7684         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
7685         cfi_offset calls.
7686         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
7687         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
7688         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
7689         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
7690         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
7691
7692 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
7693
7694         * timezone/checktab.awk: Removed.
7695
7696 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
7697
7698         * manual/math.texi (Errors in Math Functions): Document relaxed
7699         accuracy goals for IBM long double.
7700         * math/libm-test.inc (test_exceptions): Always allow spurious
7701         "underflow" and "inexact" exceptions for IBM long double.
7702
7703 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
7704
7705         [BZ #19762]
7706         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
7707         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
7708         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
7709         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
7710         (bit_arch_*): This for feature array.
7711         (bit_*): Renamed to ...
7712         (bit_cpu_*): This for cpu array.
7713         (index_*): Renamed to ...
7714         (index_arch_*): This for feature array.
7715         (index_*): Renamed to ...
7716         (index_cpu_*): This for cpu array.
7717         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
7718         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
7719         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
7720         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
7721         bit_##name with index_cpu_##name and bit_cpu_##name.
7722         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
7723         bit_##name with index_arch_##name and bit_arch_##name.
7724
7725 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
7726
7727         [BZ #19792]
7728         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
7729         Terminate FDE before return label.
7730
7731 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
7732
7733         [BZ #19790]
7734         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
7735         (rintl): Define as macro.
7736         [USE_AS_NEARBYINTL] (__rintl): Likewise.
7737         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
7738         of fesetround.  Ensure results are evaluated before end of scope.
7739         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
7740         USE_AS_NEARBYINTL and include s_rintl.c.
7741         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
7742         Disable exception traps in new environment.
7743         (libc_feholdsetround_ppc_ctx): Likewise.
7744
7745 2016-03-08  Roland McGrath  <roland@hack.frob.com>
7746
7747         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
7748         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
7749         (tst_audit10_aux) [__AVX512F__]: ... here.
7750
7751 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
7752
7753         * include/sys/auxv.h: New file.
7754
7755 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
7756
7757         [BZ #19759]
7758         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
7759
7760 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7761
7762         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
7763         operand modifier.
7764         (feclearexcept): Likewise.
7765
7766 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7767
7768         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
7769         to reflect the entire 32-bit HWCAP.
7770         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
7771         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
7772
7773 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
7774
7775         [BZ #19783]
7776         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
7777         $(test-via-rtld-prefix).
7778         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
7779
7780 2016-03-08  Florian Weimer  <fweimer@redhat.com>
7781
7782         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
7783         union wait.  Report any non-zero exit status as error.
7784
7785 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7786
7787         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
7788         configured with --enable-hardcoded-path-in-tests.
7789
7790 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
7791
7792         [BZ #19677]
7793         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
7794         (__ieee754_remainderl): Put zero low parts in canonical form.
7795         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
7796         file.  Based on
7797         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
7798         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
7799         with wrapper round test-fmodrem-ldbl-128ibm.c.
7800         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
7801         file.
7802         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
7803         Likewise.
7804         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
7805         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
7806
7807 2016-03-07  Florian Weimer  <fweimer@redhat.com>
7808
7809         [BZ #19610]
7810         * elf/ldconfig.c (opt_link): Update comment.
7811         (options): Update help string for option -X.
7812         (search_dir): Unlink stale symbolic link only if updating symbolic
7813         links.
7814         * elf/tst-ldconfig-X.sh: New file.
7815         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
7816         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
7817
7818 2016-03-07  Andreas Schwab  <schwab@suse.de>
7819
7820         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
7821         needed arguments.
7822
7823 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
7824
7825         [BZ #15333]
7826         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
7827         to lstat64.
7828
7829 2016-03-07  Florian Weimer  <fweimer@redhat.com>
7830
7831         * libio/filedoalloc.c (isatty): Remove.
7832         (local_isatty): Add comment.  Call __isatty directly.
7833         (_IO_file_doallocate): Update comment.  Assume _LIBC.
7834         * libio/wfiledoalloc.c (isatty): Remove.
7835         (_IO_wfile_doallocate): Update comment.
7836
7837 2016-03-07  Florian Weimer  <fweimer@redhat.com>
7838
7839         [BZ #19269]
7840         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
7841         tst-audit4-aux.o.
7842         (tst-audit10): Depend on tst-audit10-aux.o.
7843         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
7844         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
7845         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
7846         instead of inline AVX code.
7847         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
7848         instead of inline AVX512 code.
7849         * sysdeps/x86_64/tst-audit4-aux.c: New file
7850         * sysdeps/x86_64/tst-audit10-aux.c: New file
7851
7852         [BZ #19648]
7853         * test-skeleton.c (main): Do not set RLIMIT_DATA.
7854
7855 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7856
7857         [BZ #14750]
7858         [BZ #10354]
7859         [BZ #18433]
7860         * include/sched.h (__clone): Add hidden prototype.
7861         (__clone2): Likewise.
7862         * include/unistd.h (__dup): Likewise.
7863         * posix/Makefile (tests): Add tst-spawn2.
7864         * posix/tst-spawn2.c: New file.
7865         * sysdeps/posix/dup.c (__dup): Add hidden definition.
7866         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
7867         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
7868         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
7869         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
7870         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
7871         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
7872         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
7873         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
7874         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
7875         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
7876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
7877         Likewise.
7878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
7879         Likewise.
7880         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
7881         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
7882         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
7883         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
7884         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
7885         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
7886         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
7887         * sysdeps/unix/sysv/linux/nptl-signals.h
7888         (____nptl_is_internal_signal): New function.
7889         * sysdeps/unix/sysv/linux/spawni.c: New file.
7890
7891         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
7892         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
7893         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
7894         * posix/tst-execvp2.c (do_test): Likewise.
7895         * posix/tst-execvp3.c (do_test): Likewise.
7896         * posix/tst-execvp4.c (do_test): Likewise.
7897         * posix/tst-execvpe1.c: New file.
7898         * posix/tst-execvpe2.c: Likewise.
7899         * posix/tst-execvpe3.c: Likewise.
7900         * posix/tst-execvpe4.c: Likewise.
7901         * posix/tst-execvpe5.c: Likewise.
7902         * posix/tst-execvpe6.c: Likewise.
7903
7904         [BZ #19534]
7905         * posix/execl.c (execl): Remove dynamic memory allocation.
7906         * posix/execle.c (execle): Likewise.
7907         * posix/execlp.c (execlp): Likewise.
7908
7909 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
7910
7911         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
7912         Replace .text with .text.avx512.
7913         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
7914         Likewise.
7915
7916 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
7917
7918         * sysdeps/generic/libnsl.abilist: New file.
7919         * sysdeps/generic/libutil.abilist: New file.
7920
7921 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
7922
7923         [BZ #19762]
7924         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
7925         HAS_ARCH_FEATURE with Fast_Rep_String.
7926         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
7927         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
7928         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
7929         Likewise.
7930         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
7931         Likewise.
7932         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
7933         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
7934         Likewise.
7935         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
7936         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
7937         Likewise.
7938
7939 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
7940
7941         [BZ #19745]
7942         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
7943         with *%rax in call.
7944
7945 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
7946
7947         [BZ #19745]
7948         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
7949         with *__libc_start_main@GOTPCREL(%rip) in call.
7950
7951 2016-03-04  Roland McGrath  <roland@hack.frob.com>
7952
7953         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
7954         inside conditional for nonempty $(CXX).
7955
7956         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
7957         nonempty.
7958
7959         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
7960         to test for empty $(CXX) rather than $(CXX) of "no".
7961
7962 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
7963
7964         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
7965
7966 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
7967             H.J. Lu  <hongjiu.lu@intel.com>
7968
7969         [BZ #18880]
7970         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
7971         instead of Slow_BSF, and also check for Fast_Copy_Backward to
7972         enable __memcpy_ssse3_back.
7973
7974 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
7975
7976         [BZ #19758]
7977         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
7978         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
7979
7980 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
7981
7982         [BZ #19490]
7983         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
7984         (__fentry__): Likewise.
7985
7986 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
7987
7988         * gmon/Makefile (noprof): Add $(sysdep_noprof).
7989         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
7990
7991 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
7992
7993         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
7994         __mcount_internal directly.
7995         (C_LABEL(__fentry__)): Likewise.
7996         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
7997         directly.
7998
7999 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
8000
8001         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
8002         (__start_context): Call __setcontext directly.
8003
8004 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
8005
8006         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8007         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8008         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
8009         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
8010         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8011         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8012         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
8013         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8014         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
8015         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
8016         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
8017         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
8018         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8019         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8020         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8021         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8022         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
8023         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8024         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8025         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
8026         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
8027         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8028         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8029         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
8030         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
8031         Remove conditional code.
8032         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8033         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
8034         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8035         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8036         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
8037         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8038         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
8039         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8040         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
8041         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8042         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8043         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
8044
8045 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
8046
8047         * NEWS (2.23): Fix typo in bug 19048 text.
8048
8049 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
8050
8051         [BZ #14259]
8052         * Makeconfig: Rename msgcatdir to localedir.
8053         Rename inst_msgcatdir to inst_localedir.
8054         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
8055         * config.make.in: Add localedir.
8056         * elf/Makefile ($(objpfx)sotruss): Use localedir.
8057         (ldd-rewrite): Likewise.
8058         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
8059         (install-others): Use inst_localedir.
8060         (CPPFLAGS): Use localedir.
8061         * locale/Makefile (locale-CPPFLAGS): Likewise.
8062         * po/Makefile (mo-installed): Use inst_localedir.
8063
8064         [BZ #19575]
8065         * localedata/charmaps/GB18030: Update comments regarding PAU to
8066         non-PUA mappings.
8067
8068 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
8069
8070         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
8071         test for header.
8072         * sysdeps/unix/sysv/linux/configure: Regenerated.
8073         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
8074         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
8075         Remove conditional code.
8076         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
8077
8078         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
8079         Define to 3.2.0.
8080         (arch_minimum_kernel): Likewise.
8081         * sysdeps/unix/sysv/linux/configure: Regenerated.
8082         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
8083         Define to 2.6.32.
8084         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
8085         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
8086         (arch_minimum_kernel): Define to 2.6.32.
8087         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
8088         * README: Document Linux 3.2 requirement.
8089         * manual/install.texi (Linux): Document Linux 3.2 headers
8090         requirement.
8091         * INSTALL: Regenerated.
8092
8093 2016-02-24  Andreas Schwab  <schwab@suse.de>
8094
8095         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
8096         if !NO_LONG_DOUBLE.
8097
8098 2016-02-22  Roland McGrath  <roland@hack.frob.com>
8099
8100         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
8101         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
8102
8103 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
8104
8105         [BZ #19512]
8106         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
8107
8108 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
8109
8110         * posix/tst-dir.c: Include libc-internal.h.
8111
8112 2016-02-20  Florian Weimer  <fweimer@redhat.com>
8113
8114         [BZ #19056]
8115         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
8116         * manual/filesys.texi (Reading/Closing Directory): Mention
8117         deprecaion.
8118         * posix/tst-dir.c (main): Disable deprecation warning in test.
8119
8120 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
8121
8122         [BZ #19679]
8123         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
8124         Renamed to ...
8125         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
8126         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
8127         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
8128         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
8129         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
8130         * sysdeps/x86_64/dl-trampoline.h
8131         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
8132         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
8133
8134 2016-02-19  Mark Wielaard  <mjw@redhat.com>
8135
8136         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
8137
8138 2016-02-19  Mark Wielaard  <mjw@redhat.com>
8139
8140         * elf/elf.h (R_386_GOT32X): New.
8141         (R_386_NUM): Update.
8142         (R_X86_64_GOTPCRELX: New.
8143         (R_X86_64_REX_GOTPCRELX): New.
8144         (R_X86_64_NUM): Update.
8145
8146 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
8147
8148         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
8149
8150 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
8151
8152         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
8153         assign attr->stackaddr to it, and adjust it down when
8154         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
8155         [_STACK_GROWS_UP]: Delete assert.
8156         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
8157         Implement stack grows up logic.
8158         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
8159         stack grows up logic.
8160
8161 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8162
8163         * NEWS: Update with 2.24 template.
8164
8165 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
8166
8167         [BZ #19678]
8168         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
8169         Ensure +0.0 is returned when taking the next value below the least
8170         positive value.
8171
8172 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8173
8174         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
8175         available.  Do not define NO_THREADS.
8176         * malloc/malloc.c: Do not check NO_THREADS.
8177         * malloc/arena.c: Likewise.
8178
8179 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8180
8181         * malloc/malloc.c (__libc_mallinfo): Update comment.
8182         (struct malloc_par): Remove max_total_mem member, it was always 0.
8183         (int_mallinfo): Store 0 into usmblks (no functional change).
8184         * malloc/hooks.c (struct malloc_state): Document that
8185         max_total_mem is always 0.
8186         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
8187         always 0.
8188         * manual/memory.texi (Statistics of Malloc): Likewise.
8189
8190 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8191
8192         * malloc/malloc.c (sysmalloc): Do not update arena_max.
8193         * malloc/arena.c (arena_max): Remove.
8194         (heap_trim, _int_new_arena): Do not update arena_max.
8195
8196 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8197
8198         * resolv/res_init.c (res_ninit): Update comment.
8199
8200 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8201
8202         [BZ #19505]
8203         * posix/spawn_int.h: Add headers and include guard.
8204         (__spawn_valid_fd): New function.
8205         * posix/spawn_faction_addopen.c
8206         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
8207         * posix/spawn_faction_addclose.c
8208         (posix_spawn_file_actions_addclose): Likewise.
8209         * posix/spawn_faction_adddup2.c
8210         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
8211         second file descriptor.
8212         * posix/spawn_valid_fd.c: New file.
8213         * posix/tst-posix_spawn-fd.c: New file.
8214         * posix/Makefile (routines): Add spawn_valid_fd.
8215         (tests): Add tst-posix_spawn-fd.
8216
8217 2016-02-19  Florian Weimer  <fweimer@redhat.com>
8218
8219         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
8220         (do_test): Limit the number of arenas, so that we can use fewer
8221         outer threads.  Limit timeout to 3 seconds, in preparation for a
8222         larger TIMEOUT value.
8223
8224 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
8225
8226         [BZ #19674]
8227         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
8228         sign in overflowing and underflowing results when overflow or
8229         underflow is detected early.  Include sign in result before rather
8230         than after scaling.
8231
8232         [BZ #19603]
8233         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
8234         (__ieee754_remainderl): Adjust sign of integer version of low part
8235         when taking absolute value of high part.
8236         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
8237         * math/libm-test.inc (remainder_test_data): Add another test.
8238         (remquo_test_data): Likewise.
8239
8240 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
8241
8242         [BZ #19602]
8243         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
8244         equal high parts and both low parts zero specially.
8245         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
8246         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
8247         Add test-fmodl-ldbl-128ibm.
8248
8249         [BZ #19595]
8250         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
8251         common logic for all cases of shifting subnormal results.  Do not
8252         insert sign bit in shifted mantissa.  Always pass -1023 as biased
8253         exponent to ldbl_insert_mantissa in subnormal case.
8254
8255         [BZ #19594]
8256         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
8257         on high and low parts then adjust result and use
8258         ldbl_canonicalize_int if needed.
8259
8260         [BZ #19593]
8261         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
8262         on high part and __floor or __ceil on low part then use
8263         ldbl_canonicalize_int if needed.
8264
8265         [BZ #19592]
8266         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
8267         high and low parts then use ldbl_canonicalize_int if needed.
8268
8269         [BZ #17899]
8270         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
8271         New function.
8272         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
8273         on high and low parts then use ldbl_canonicalize_int if needed.
8274
8275 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8276
8277         * configure: Regenerated.
8278
8279         * po/libc.pot: Regenerated.
8280
8281         * po/be.po: Updated translation.
8282         * po/bg.po: Likewise.
8283         * po/ca.po: Likewise.
8284         * po/cs.po: Likewise.
8285         * po/da.po: Likewise.
8286         * po/el.po: Likewise.
8287         * po/eo.po: Likewise.
8288         * po/es.po: Likewise.
8289         * po/fi.po: Likewise.
8290         * po/fr.po: Likewise.
8291         * po/gl.po: Likewise.
8292         * po/hr.po: Likewise.
8293         * po/hu.po: Likewise.
8294         * po/ia.po: Likewise.
8295         * po/id.po: Likewise.
8296         * po/it.po: Likewise.
8297         * po/ja.po: Likewise.
8298         * po/lt.po: Likewise.
8299         * po/nb.po: Likewise.
8300         * po/nl.po: Likewise.
8301         * po/pt_BR.po: Likewise.
8302         * po/rw.po: Likewise.
8303         * po/sk.po: Likewise.
8304         * po/sl.po: Likewise.
8305         * po/sv.po: Likewise.
8306         * po/tr.po: Likewise.
8307         * po/zh_CN.po: Likewise.
8308         * po/zh_TW.po: Likewise.
8309
8310         * version.h (RELEAES): Set to "development".
8311         (VERSION): Set to 2.23.90.
8312
8313         * version.h (RELEASE): Set to "stable".
8314         (VERSION): Set to 2.23.
8315         * include/feature.h (__GLIBC_MINOR__): Set to 23.
8316
8317         * NEWS: Updated fixed bugs.
8318
8319 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8320             Wilco Dijkstra  <wdijkstr@arm.com>
8321
8322         [BZ #19462]
8323         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
8324         (_STRING_INLINE_unaligned): This.
8325         * include/string.h: Include <string_private.h>.
8326         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
8327         _STRING_INLINE_unaligned.
8328         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
8329         (_STRING_INLINE_unaligned): New.
8330         * sysdeps/aarch64/string_private.h: New file.
8331         * sysdeps/generic/string_private.h: Likewise.
8332         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
8333         * sysdeps/s390/string_private.h: Likewise.
8334         * sysdeps/x86/string_private.h: Likewise.
8335         * sysdeps/m68k/m680x0/m68020/bits/string.h
8336         (_STRING_ARCH_unaligned): Renamed to ...
8337         (_STRING_INLINE_unaligned): This.
8338         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
8339         to ...
8340         (_STRING_INLINE_unaligned): This.
8341         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
8342         to ...
8343         (_STRING_INLINE_unaligned): This.
8344         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
8345         to ...
8346         (_STRING_INLINE_unaligned): This.
8347
8348 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
8349             H.J. Lu  <hongjiu.lu@intel.com>
8350
8351         [BZ #19590]
8352         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
8353         relocation.
8354
8355 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
8356
8357         [BZ #18665]
8358         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
8359         *herrno_p.
8360         (gaih_getanswer): Document functional behviour. Return tryagain
8361         if any result is tryagain.
8362         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
8363         when freed.
8364         * resolv/res_send.c: Add copyright text.
8365         (__libc_res_nsend): Document that MAXPACKET is expected.
8366         (send_vc): Document. Remove buffer reuse.
8367         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
8368         size of the buffer. Add Dprint for truncated UDP buffer.
8369
8370 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
8371
8372         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
8373         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
8374         * INSTALL: Regenerate.
8375
8376 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
8377             Jonathan Wakely  <jwakely@redhat.com>
8378             Carlos O'Donell  <carlos@redhat.com>
8379
8380         [BZ 19439]
8381         * math/Makefile (tests): Add test-math-isinff.
8382         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
8383         * math/bits/mathcalls.h [__USE_MISC]: Use
8384         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
8385         functions not in C++11 and which don't conflict e.g. isinff,
8386         isinfl etc.
8387         * math/test-math-isinff.cc: New file.
8388
8389 2016-02-12  Florian Weimer  <fweimer@redhat.com>
8390
8391         * misc/bug18240.c (do_test): Set RLIMIT_AS.
8392
8393 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8394
8395         [BZ #19529]
8396         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
8397
8398 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8399
8400         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
8401
8402 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
8403
8404         [BZ #19550]
8405         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
8406         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
8407         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
8408         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
8409         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
8410         New syscall entry.
8411         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
8412         New syscall entry.
8413         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
8414         syscall entry.
8415
8416 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8417
8418         [BZ #18240]
8419         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
8420         unsigned int wraparound.
8421
8422 2016-01-27  Florian Weimer  <fweimer@redhat.com>
8423
8424         [BZ #18240]
8425         * misc/bug18240.c: New test.
8426         * misc/Makefile (tests): Add it.
8427
8428 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
8429             Joseph Myers  <joseph@codesourcery.com>
8430
8431         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
8432         load in branch delay slot when less than a word of input left.
8433
8434 2016-01-27  Andreas Schwab  <schwab@suse.de>
8435
8436         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
8437         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
8438         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
8439         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
8440
8441 2016-01-26  David S. Miller  <davem@davemloft.net>
8442
8443         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
8444
8445 2016-01-25  David S. Miller  <davem@davemloft.net>
8446
8447         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
8448         __sqrtl_finite.
8449         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
8450         instead using versioned_symbol.
8451         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
8452         of entries.
8453
8454         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
8455         __sqrtl_finite to GLIBC_2.23
8456
8457 2016-01-25  Ricchard Henderson  <rth@redhat.com>
8458
8459         * sysdeps/alpha/fpu/libm-test-ulps: Update.
8460
8461 2016-01-25  Andreas Schwab  <schwab@suse.de>
8462
8463         [BZ #17514]
8464         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
8465         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
8466         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
8467         * nptl/tst-mutex-errorcheck.c: New file.
8468
8469 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8470
8471         [BZ #18560]
8472         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
8473         (IPCOP_semop): Likewise.
8474         (IPCOP_semget): Likewise.
8475         (IPCOP_semctl): Likewise.
8476         (IPCOP_msgsnd): Likewise.
8477         (IPCOP_msgrcv): Likewise.
8478         (IPCOP_msgget): Likewise.
8479         (IPCOP_msgctl): Likewise.
8480         (IPCOP_shmat): Likewise.
8481         (IPCOP_shmdt): Likewise.
8482         (IPCOP_shmget): Likewise.
8483         (IPCOP_shmctl): Likewise.
8484
8485 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
8486
8487         * string/tst-endian.c: Include <libc-internal.h>.
8488         (do_test): Ignore tautological-compare warnings around
8489         "htobeXX (beXXtoh (i)) != i" and
8490         "htoleXX (leXXtoh (i)) != i" if-statements.
8491
8492 2016-01-24  David S. Miller  <davem@davemloft.net>
8493
8494         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
8495         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
8496         alias.
8497         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8498         __sqrtl_finite.
8499
8500         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8501
8502 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
8503
8504         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
8505         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
8506         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
8507
8508 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8509
8510         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
8511         (thread_func): Use new function to simplify barrier check.
8512         (do_test): Use new function to simplify checking barrier exit
8513         code, and actually join the child thread.
8514
8515 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8516
8517         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
8518         semicolon.
8519         (__libc_tend): Likewise.
8520         (__libc_tabort): Likewise.
8521
8522 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
8523
8524         * sysdeps/nios2/libm-test-ulps: Update.
8525         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
8526         (__gtsf2): Likewise.
8527         (__unorddf2): Likewise.
8528         (__unordsf2): Likewise.
8529         (__ledf2): Likewise.
8530
8531 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
8532
8533         * nis/nis_table.c (__follow_path): Disable diagnostic for
8534         uninitialized variable that is a false positive for gcc 4.7.
8535         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
8536
8537 2016-01-20  Roland McGrath  <roland@hack.frob.com>
8538
8539         * sysdeps/nacl/lowlevellock-futex.h
8540         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
8541         Always evaluate PRIVATE argument.
8542
8543 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
8544
8545         [BZ #19490]
8546         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
8547         (pthread_cond_broadcast): Use ENTRY/END
8548         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
8549         (pthread_cond_signal): Likewise.
8550         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
8551         Likewise.
8552         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
8553         Likewise.
8554         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
8555         Likewise.
8556
8557 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
8558
8559         * sysdeps/ieee754/dbl-64/s_finite.c
8560         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
8561         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
8562         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
8563         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
8564         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
8565
8566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8567         (__gtsf2): Add as optional for libc.so.
8568         (__unordsf2): Likewise.
8569         (__signbit): Remove for libc.so.
8570         (__signbitl): Likewise.
8571
8572 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
8573
8574         * iconvdata/bug-iconv11.c (test_ibm93x):
8575         Use %zu printf format specifier for size_t argument.
8576
8577 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
8578
8579         * math/gen-libm-test.pl (parse_ulps): Do not reduce
8580         already-recorded ulps.
8581         * sysdeps/arm/libm-test-ulps: Regenerated.
8582         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
8583         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8584         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
8585
8586 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
8587             Paul Pluzhnikov  <ppluzhnikov@google.com>
8588
8589         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
8590         assembler not supporting AVX-512.
8591
8592 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
8593
8594         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8595
8596 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
8597
8598         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
8599         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8600
8601         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8602
8603         * sysdeps/arm/libm-test-ulps: Regenerated.
8604
8605 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
8606
8607         [BZ #19451]
8608         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
8609
8610 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
8611
8612         [BZ #19486]
8613         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
8614         * sysdeps/generic/fix-fp-int-convert-overflow.h
8615         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
8616         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
8617         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
8618         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
8619         Likewise.
8620         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
8621         Avoid conversions to long int where inexact exceptions
8622         could be raised.
8623         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
8624         Likewise.
8625         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
8626         Avoid conversions to long long int where inexact exceptions
8627         could be raised.
8628         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
8629         Likewise.
8630
8631 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
8632
8633         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
8634         * configure: Regenerated.
8635
8636 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
8637
8638         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
8639
8640 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
8641
8642         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
8643         outside of comment.
8644
8645 2016-01-15  Torvald Riegel  <triegel@redhat.com>
8646
8647         * nptl/tst-barrier1.c: Add description on first line.
8648         * nptl/tst-barrier2.c: Likewise.
8649         * nptl/tst-barrier3.c: Likewise.
8650         * nptl/tst-barrier4.c: Likewise.
8651         * nptl/tst-barrier5.c: Likewise.
8652
8653 2016-01-15  Torvald Riegel  <triegel@redhat.com>
8654
8655         [BZ #18868]
8656         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
8657
8658 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
8659
8660         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
8661         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
8662         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
8663         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
8664         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
8665         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
8666         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8667         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8668         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8669         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8670         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8671
8672 2016-01-15  Torvald Riegel  <triegel@redhat.com>
8673
8674         [BZ #13065]
8675         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
8676         new implementation.
8677         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
8678         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
8679         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
8680         (BARRIER_IN_THRESHOLD): New macro.
8681         * nptl/pthread_barrierattr_setpshared.c
8682         (pthread_barrierattr_setpshared): Clean up.
8683         * nptl/tst-barrier4.c: Correct comment.
8684         * nptl/tst-barrier5.c: New file.
8685         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
8686         (gen-as-const-headers): Remove lowlevelbarrier.sym.
8687         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
8688         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
8689         * nptl/lowlevelbarrier.sym: Remove.
8690         * nptl/DESIGN-barrier.txt: Remove.
8691         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
8692         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
8693         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
8694         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
8695         error.
8696         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
8697         implementation.
8698
8699 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8700
8701         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
8702         (do_child): Mask SIGRTMIN while thr is running.
8703
8704 2016-01-15  Martin Sebor  <msebor@redhat.com>
8705
8706         [BZ #19432]
8707         * iconvdata/Makefile: Add bug-iconv11.
8708         * iconvdata/bug-iconv11.c: New test.
8709         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
8710         * iconvdata/ibm933.c: Same.
8711         * iconvdata/ibm935.c: Same.
8712         * iconvdata/ibm937.c: Same.
8713         * iconvdata/ibm939.c: Same.
8714
8715 2016-01-15  Martin Sebor  <msebor@redhat.com>
8716
8717         [BZ #19443]
8718         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
8719         [DEBUG] (_ufc_set_bits): Declare used.
8720         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
8721         [DEBUG] (print_all): Declare used.
8722         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
8723         operands of the ternary ?: expression to target type.
8724         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
8725         calling the undeclared abort.
8726         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
8727
8728 2016-01-15  Martin Sebor  <msebor@redhat.com>
8729
8730         [BZ #18755]
8731         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
8732         warnings.
8733         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
8734         (__gai_create_helper_thread): Same.
8735         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
8736         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
8737         to suppress -Wmaybe-uninitialized warnings.
8738
8739 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
8740
8741         [BZ #19465]
8742         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
8743         inside if.
8744         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8745         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8746         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8747
8748 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
8749
8750         [BZ #19466]
8751         * time/tst-mktime2.c (time_t_max): Removed.
8752         (time_t_min): Likewise.
8753         (TYPE_SIGNED): New.
8754         (TYPE_MINIMUM): Likewise.
8755         (TYPE_MAXIMUM): Likewise.
8756         (TIME_T_MIN): Likewise.
8757         (TIME_T_MAX): Likewise.
8758         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
8759         and TIME_T_MIN.
8760         (do_test): Likewise.
8761
8762 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
8763
8764         [BZ #19467]
8765         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
8766         index_Fast_Unaligned_Load flag for Excavator family CPUs.
8767
8768 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
8769
8770         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
8771
8772 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
8773
8774         * benchtests/Makefile (PYTHON): Define.
8775         (bench-func): Use $(PYTHON) to run python scripts.
8776         ($(objpfx)bench-%.c): Likewise.
8777
8778 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
8779
8780         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
8781         leading slash when `file_name' is "/".
8782
8783 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
8784
8785         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
8786         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
8787         Likewise.
8788         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
8789         Likewise.
8790         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
8791         Likewise.
8792         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
8793         enum constant and macro.
8794         (PTRACE_SETSIGMASK): Likewise.
8795         (PTRACE_SECCOMP_GET_FILTER): Likewise.
8796         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
8797         (PTRACE_GETSIGMASK): Likewise.
8798         (PTRACE_SETSIGMASK): Likewise.
8799         (PTRACE_SECCOMP_GET_FILTER): Likewise.
8800         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
8801         Likewise.
8802         (PTRACE_SETSIGMASK): Likewise.
8803         (PTRACE_SECCOMP_GET_FILTER): Likewise.
8804         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
8805         (PTRACE_GETSIGMASK): Likewise.
8806         (PTRACE_SETSIGMASK): Likewise.
8807         (PTRACE_SECCOMP_GET_FILTER): Likewise.
8808         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
8809         Likewise.
8810         (PTRACE_SETSIGMASK): Likewise.
8811         (PTRACE_SECCOMP_GET_FILTER): Likewise.
8812         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
8813         Likewise.
8814         (PTRACE_SETSIGMASK): Likewise.
8815         (PTRACE_SECCOMP_GET_FILTER): Likewise.
8816         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
8817         Likewise.
8818         (PTRACE_SETSIGMASK): Likewise.
8819         (PTRACE_SECCOMP_GET_FILTER): Likewise.
8820
8821 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
8822             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8823
8824         [BZ #19439]
8825         * math/bits/mathcalls.h
8826         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
8827         prototype.
8828         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
8829
8830 2016-01-11  Andreas Schwab  <schwab@suse.de>
8831
8832         [BZ #19253]
8833         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
8834         cache when TZDEFRULES was used.
8835         * time/tst-tzname.c: New file.
8836         * time/Makefile (test): Add tst-tzname.
8837         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
8838         * timezone/Makefile (test-zones): Add $(posixrules-file).
8839         ($(testdata)/$(posixrules-file)): New rule.
8840
8841 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
8842
8843         Fix doc quoting problems with Texinfo 5
8844         Without this change, in the info file output, Texinfo 5 quotes code
8845         in text with undirected single quotes 'like this' and generates
8846         code examples that with many PDF readers cannot be cut out of PDFs
8847         and pasted into code.
8848         * manual/libc.texinfo: Configure the libc manual like the GNU
8849         Emacs manual, by using @documentencoding and setting
8850         txicodequoteundirected and txicodequotebacktick.  This way,
8851         Texinfo 5 quotes code in text with directed single quotes ‘like
8852         this’ and produces examples that can be cut out of PDFs.  This
8853         change causes Texinfo 5 to generate info files that contain UTF-8
8854         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
8855         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
8856
8857 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8858
8859         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
8860         __libc_tabort, __libc_tend): New wrappers that enforce compiler
8861         barriers to their respective compiler built-ins.
8862         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
8863         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
8864         * sysdeps/powerpc/sysdep.h: Likewise.
8865         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
8866         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
8867         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
8868
8869 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
8870
8871         * scripts/config.guess: Revert previous shebang change.
8872         * scripts/config.sub: Likewise.
8873         * scripts/mkinstalldirs: Likewise.
8874
8875 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8876
8877         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
8878         PPC_FEATURE2_HAS_IEEE128.
8879         * sysdeps/powerpc/dl-procinfo.c:
8880         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
8881
8882 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
8883
8884         [BZ #19415]
8885         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
8886         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
8887         (_dl_lookup_address): Rewrite using function resolver trampoline.
8888         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
8889         two bits in address.
8890
8891 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
8892
8893         * longlong.h: Change !__SHMEDIA__ to
8894         (!defined (__SHMEDIA__) || !__SHMEDIA__).
8895         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
8896
8897 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
8898             Joseph Myers  <joseph@codesourcery.com>
8899             Mark Shinwell  <shinwell@codesourcery.com>
8900             Andrew Stubbs  <ams@codesourcery.com>
8901             Rich Felker <dalias@libc.org>
8902
8903         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
8904
8905 2016-01-07  Richard Henderson  <rth@redhat.com>
8906
8907         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
8908
8909 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
8910
8911         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
8912         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
8913         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
8914         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
8915         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
8916
8917 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
8918             Joseph Myers  <joseph@codesourcery.com>
8919
8920         * timezone/private.h: Update from tzcode 2015g.
8921         * timezone/tzfile.h: Likewise.
8922         * timezone/tzselect.ksh: Likewise.
8923         * timezone/zdump.c: Likewise.
8924         * timezone/zic.c: Likewise.
8925         * timezone/ialloc.c: Remove file.
8926         * timezone/scheck.c: Likewise.
8927         * timezone/Makefile (extra-objs): Remove variable.
8928         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
8929         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
8930         -Wno-maybe-uninitialized.
8931         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
8932         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
8933         (CFLAGS-ialloc.c): Remove variable.
8934         (CFLAGS-scheck.c): Likewise.
8935         * timezone/README: Update list of files from tzcode.
8936
8937 2016-01-07  Khem Raj  <raj.khem@gmail.com>
8938
8939         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
8940         instead of __fxprintf when _LIBC is undefined.
8941
8942 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
8943
8944         * catgets/test-gencat.sh: Remove space after shebang.
8945         * conform/GlibcConform.pm: Likewise.
8946         * conform/check-header-lists.sh: Likewise.
8947         * conform/conformtest.pl: Likewise.
8948         * conform/linknamespace.pl: Likewise.
8949         * conform/list-header-symbols.pl: Likewise.
8950         * debug/catchsegv.sh: Likewise.
8951         * elf/genrtldtbl.awk: Likewise.
8952         * elf/tst-pathopt.sh: Likewise.
8953         * elf/tst-rtld-load-self.sh: Likewise.
8954         * grp/tst_fgetgrent.sh: Likewise.
8955         * iconvdata/gen-8bit-gap-1.sh: Likewise.
8956         * iconvdata/gen-8bit-gap.sh: Likewise.
8957         * iconvdata/gen-8bit.sh: Likewise.
8958         * iconvdata/run-iconv-test.sh: Likewise.
8959         * intl/tst-gettext.sh: Likewise.
8960         * intl/tst-gettext2.sh: Likewise.
8961         * intl/tst-gettext4.sh: Likewise.
8962         * intl/tst-gettext6.sh: Likewise.
8963         * intl/tst-translit.sh: Likewise.
8964         * io/ftwtest-sh: Likewise.
8965         * libio/test-freopen.sh: Likewise.
8966         * locale/gen-translit.pl: Likewise.
8967         * malloc/tst-mtrace.sh: Likewise.
8968         * manual/check-safety.sh: Likewise.
8969         * manual/libc-texinfo.sh: Likewise.
8970         * manual/tsort.awk: Likewise.
8971         * manual/xtract-typefun.awk: Likewise.
8972         * nptl/tst-cancel-wrappers.sh: Likewise.
8973         * nptl/tst-tls6.sh: Likewise.
8974         * posix/globtest.sh: Likewise.
8975         * posix/tst-getconf.sh: Likewise.
8976         * posix/wordexp-tst.sh: Likewise.
8977         * scripts/check-c++-types.sh: Likewise.
8978         * scripts/check-local-headers.sh: Likewise.
8979         * scripts/config.guess: Likewise.
8980         * scripts/config.sub: Likewise.
8981         * scripts/cpp: Likewise.
8982         * scripts/cross-test-ssh.sh: Likewise.
8983         * scripts/documented.sh: Likewise.
8984         * scripts/evaluate-test.sh: Likewise.
8985         * scripts/gen-libc-abis: Likewise.
8986         * scripts/gen-sorted.awk: Likewise.
8987         * scripts/list-fixed-bugs.py: Likewise.
8988         * scripts/merge-test-results.sh: Likewise.
8989         * scripts/mkinstalldirs: Likewise.
8990         * scripts/rellns-sh: Likewise.
8991         * scripts/test-installation.pl: Likewise.
8992         * scripts/update-copyrights: Likewise.
8993         * stdio-common/tst-printf.sh: Likewise.
8994         * stdio-common/tst-unbputc.sh: Likewise.
8995         * stdlib/tst-fmtmsg.sh: Likewise.
8996         * stdlib/tst-setcontext3.sh: Likewise.
8997         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
8998         * sysdeps/unix/make-syscalls.sh: Likewise.
8999
9000 2016-01-06  John David Anglin  <dave.anglin@bell.net>
9001
9002         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
9003         asm stw with atomic_exchange_rel.  Add explanatory comment.
9004         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
9005         Likewise.
9006
9007 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9008
9009         [BZ #19122]
9010         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
9011         * sysdeps/generic/dl-unistd.h: New file.
9012         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
9013
9014 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9015
9016          [BZ #19122]
9017          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
9018          * sysdeps/generic/dl-mman.h: New file.
9019          * sysdeps/mach/hurd/dl-mman.h: Likewise.
9020
9021 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
9022
9023         * manual/texinfo.tex: Update to version 2016-01-04.21 with
9024         trailing whitespace removed.
9025         * scripts/config.guess: Update to version 2016-01-01.
9026         * scripts/config.sub: Update to version 2016-01-01.
9027         * scripts/move-if-change: Update from gnulib.
9028
9029 2016-01-04  Anton Blanchard  <anton@samba.org>
9030
9031         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
9032         for array indices.
9033         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
9034
9035 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
9036
9037         * NEWS: Update copyright dates.
9038         * catgets/gencat.c (print_version): Likewise.
9039         * csu/version.c (banner): Likewise.
9040         * debug/catchsegv.sh: Likewise.
9041         * debug/pcprofiledump.c (print_version): Likewise.
9042         * debug/xtrace.sh (do_version): Likewise.
9043         * elf/ldconfig.c (print_version): Likewise.
9044         * elf/ldd.bash.in: Likewise.
9045         * elf/pldd.c (print_version): Likewise.
9046         * elf/sotruss.sh: Likewise.
9047         * elf/sprof.c (print_version): Likewise.
9048         * iconv/iconv_prog.c (print_version): Likewise.
9049         * iconv/iconvconfig.c (print_version): Likewise.
9050         * locale/programs/locale.c (print_version): Likewise.
9051         * locale/programs/localedef.c (print_version): Likewise.
9052         * login/programs/pt_chown.c (print_version): Likewise.
9053         * malloc/memusage.sh (do_version): Likewise.
9054         * malloc/memusagestat.c (print_version): Likewise.
9055         * malloc/mtrace.pl: Likewise.
9056         * manual/libc.texinfo: Likewise.
9057         * nptl/version.c (banner): Likewise.
9058         * nscd/nscd.c (print_version): Likewise.
9059         * nss/getent.c (print_version): Likewise.
9060         * nss/makedb.c (print_version): Likewise.
9061         * posix/getconf.c (main): Likewise.
9062         * scripts/test-installation.pl: Likewise.
9063         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
9064
9065         * All files with FSF copyright notices: Update copyright dates
9066         using scripts/update-copyrights.
9067         * intl/plural.c: Regenerated.
9068         * locale/programs/charmap-kw.h: Likewise.
9069         * locale/programs/locfile-kw.h: Likewise.
9070
9071 2016-01-02  Helge Deller  <deller@gmx.de>
9072
9073         [BZ #19285]
9074         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
9075         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
9076         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
9077         (MADV_xxK_PAGES): Remove.
9078
9079 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
9080
9081         [BZ #15421]
9082         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
9083         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
9084         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
9085         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
9086
9087 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
9088
9089         [BZ #19408]
9090         * sysdeps/unix/sysv/linux/personality.c: New file.
9091         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
9092         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
9093         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
9094         (sysdep_routines): Add personality.
9095         (tests): Add tst-personality.
9096         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
9097         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
9098         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
9099         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
9100         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
9101         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
9102         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
9103         Likewise.
9104         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
9105         Likewise.
9106         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
9107         Likewise.
9108         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
9109         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
9110         Likewise.
9111
9112 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
9113
9114         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
9115         (PATH_ARM_SYSTYPE): Remove.
9116         (PATH_CPUINFO): Likewise.
9117         (IO_BASE_FOOTBRIDGE): Likewise.
9118         (IO_SHIFT_FOOTBRIDGE): Likewise.
9119         (struct platform): Likewise.
9120         (init_iosys): Remove compatibility code for 2.4 kernels.
9121         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
9122
9123 2015-12-29  Florian Weimer  <fweimer@redhat.com>
9124
9125         * malloc/tst-malloc-thread-fail.c: New file.
9126         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
9127         (tst-malloc-thread-fail): Link against libpthread.
9128
9129 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
9130
9131         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
9132         (get_parser): New function.
9133         (main): New function.
9134
9135 2015-12-29  Rob Wu  <rob@robwu.nl>
9136
9137         [BZ #19369]
9138         * resolv/res_init.c (__res_vinit): Reset defdname before use.
9139
9140 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
9141
9142         [BZ #19270]
9143         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
9144
9145 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
9146
9147         [BZ #15421]
9148         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
9149
9150 2015-12-23  Torvald Riegel  <triegel@redhat.com>
9151
9152         [BZ #13690]
9153         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
9154         after releasing it.
9155         (__lll_robust_unlock): Likewise.
9156         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
9157         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
9158         (lll_robust_unlock): Likewise.
9159         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
9160         Prevent warnings in callers.
9161
9162 2015-12-23  Florian Weimer  <fweimer@redhat.com>
9163
9164         * malloc/arena.c (list_lock): Update comment.
9165
9166 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9167
9168         * sysdeps/powerpc/hwcapinfo.c: Export symbol
9169         __parse_hwcap_and_convert_at_platform to libc.a.
9170
9171 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9172
9173         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
9174         platform and feature support for POWER9.
9175         * sysdeps/powerpc/dl-procinfo.h: Likewise.
9176         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
9177         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
9178         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
9179         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
9180         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
9181         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
9182         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
9183
9184 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9185
9186         Harmonize generic stdio-lock support with nptl
9187
9188         This fixes build when _IO_funlockfile is a macro, fixes build where
9189         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
9190         stack unwind.
9191
9192         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
9193         _IO_release_lock ): Use cleanup attribute on new
9194         _IO_acquire_lock_file variable instead of assuming that
9195         _IO_release_lock will be called.
9196         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
9197         _IO_acquire_lock_needs_exceptions_enabled.
9198         (_IO_acquire_lock_clear_flags2): New macro.
9199
9200 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9201
9202         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
9203
9204 2015-12-21  Florian Weimer  <fweimer@redhat.com>
9205
9206         [BZ #19182]
9207         * malloc/arena.c (list_lock): Document lock ordering requirements.
9208         (free_list_lock): New lock.
9209         (ptmalloc_lock_all): Comment on free_list_lock.
9210         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
9211         (detach_arena): Update comment.  free_list_lock is now needed.
9212         (_int_new_arena): Use free_list_lock around detach_arena call.
9213         Acquire arena lock after list_lock.  Add comment, including FIXME
9214         about incorrect synchronization.
9215         (get_free_list): Switch to free_list_lock.
9216         (reused_arena): Acquire free_list_lock around detach_arena call
9217         and attached threads counter update.  Add two FIXMEs about
9218         incorrect synchronization.
9219         (arena_thread_freeres): Switch to free_list_lock.
9220         * malloc/malloc.c (struct malloc_state): Update comments to
9221         mention free_list_lock.
9222
9223 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
9224
9225         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
9226         Remove functions.
9227         (sloww, sloww1): Accept argument to offset quadrant.
9228         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
9229         quadrant.
9230         (__sin, __cos): Consolidate common code into new functions.
9231         (reduce_sincos_1, do_sincos_1): New functions.
9232         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
9233
9234         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
9235         code to new functions.
9236         (reduce_sincos_2, do_sincos_2): New functions.
9237         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
9238
9239         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
9240         common code for sincos.
9241         (__cos) [!IN_SINCOS]: Likewise.
9242         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
9243         New function.
9244         (__sincos): Use it.
9245
9246 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
9247
9248         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
9249         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
9250         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
9251
9252 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
9253
9254         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
9255         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
9256         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
9257         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
9258         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
9259         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
9260         index_Prefer_No_VZEROUPPER): New feature.
9261         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
9262         Prefer_No_VZEROUPPER for Knights Landing.
9263
9264 015-12-18  Torvald Riegel  <triegel@redhat.com>
9265
9266         * math/atest-exp2.c (mp_exp_m1): Remove.
9267
9268 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9269
9270         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
9271         syscalls.
9272         (__SYSCALL0): New macro.
9273         (__SYSCALL1): Likewise.
9274         (__SYSCALL2): Likewise.
9275         (__SYSCALL3): Likewise.
9276         (__SYSCALL4): Likewise.
9277         (__SYSCALL5): Likewise.
9278         (__SYSCALL6): Likewise.
9279         (__SYSCALL_CONCAT_X): Likewise.
9280         (__SYSCALL_CONCAT): Likewise.
9281         (__SYSCALL_DIST): Likewise.
9282         (__SYSCALL_CALL): Likewise.
9283
9284 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
9285
9286         [BZ #19363]
9287         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
9288
9289 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9290
9291         [BZ #19375]
9292         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
9293         negative subnormals.
9294
9295 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
9296
9297         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9298         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
9299         (INTERNAL_SYSCALL_NCS): Use it.
9300         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
9301
9302 2015-12-16  Florian Weimer  <fweimer@redhat.com>
9303
9304         [BZ #19243]
9305         * malloc/arena.c (get_free_list): Remove assert and adjust
9306         reference count handling.  Add comment about reused_arena
9307         interaction.
9308         (reused_arena): Add comments abount get_free_list interaction.
9309         * malloc/tst-malloc-thread-exit.c: New file.
9310         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
9311         (tst-malloc-thread-exit): Link against libpthread.
9312
9313 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
9314
9315         [BZ #19367]
9316         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
9317         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
9318         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
9319         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
9320         (index_Prefer_MAP_32BIT_EXEC): Likewise.
9321
9322 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
9323
9324         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
9325         Silvermont optimizations for Knights Landing.
9326
9327 2015-12-15  Andreas Schwab  <schwab@suse.de>
9328
9329         [BZ #17197]
9330         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
9331         immediately after emitting SI.
9332         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
9333         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
9334         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
9335         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
9336         * iconvdata/bug-iconv10.c: New file.
9337         * iconvdata/Makefile (tests): Add bug-iconv10.
9338         ($(objpfx)bug-iconv10.out): New rule.
9339
9340 2015-12-15  Florian Weimer  <fweimer@redhat.com>
9341
9342         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
9343         aliasing violation.
9344
9345 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
9346
9347         [BZ #18472]
9348         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
9349         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
9350         conditionals for them.
9351         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
9352         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
9353         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
9354         sys/kdaemon.h.
9355         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
9356         compat-only syscall, obsoleted in glibc 2.23.
9357         (create_module): Likewise.
9358         (get_kernel_syms): Likewise.
9359         (query_module): Likewise.
9360         (uselib): Likewise.
9361         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
9362
9363 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
9364
9365         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
9366         <linux/version.h>.
9367         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
9368         conditional code.
9369         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
9370         and ioshift_name initialization.
9371
9372 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
9373
9374         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
9375         Fix indentation.
9376
9377 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
9378
9379         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
9380
9381 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
9382
9383         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
9384
9385 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
9386             Jakub Wilk  <jwilk@debian.org>
9387
9388         [BZ #19347]
9389         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
9390         to change the group of the device to the tty group.
9391
9392 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
9393
9394         Split large string section; add truncation advice
9395         * manual/examples/strncat.c: Remove.
9396         This example was misleading, as the code would have undefined
9397         behavior if "hello" was longer than SIZE.  Anyway, the manual
9398         shouldn't encourage strncpy+strncat for this sort of thing.
9399         * manual/string.texi (Copying Strings and Arrays): Split into
9400         three sections Copying Strings and Arrays, Concatenating Strings,
9401         and Truncating Strings, as this section was way too long.  All
9402         cross-referenced changed.  Add advice about string-truncation
9403         functions.  Remove misleading strncat example.
9404
9405 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
9406
9407         * manual/nss.texi (NSS Modules Interface): Document
9408         NSS_STATUS_NOTFOUND and SUCCESS.
9409
9410 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
9411
9412         [BZ 18568]
9413         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
9414         201505L, for Unicode 8.
9415
9416 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
9417
9418         * locale/C-translit.h: Regenerate.
9419
9420 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
9421
9422         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
9423         and U+0153.
9424
9425 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
9426
9427         [BZ #19351]
9428         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
9429         expanding log(1+z), compare z rather than its square with epsilon
9430         to determine when to avoid evaluating the expansion.
9431
9432         [BZ #19350]
9433         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
9434         Increase overflow threshold.
9435
9436         [BZ #19349]
9437         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
9438         when small.
9439
9440         * sysdeps/unix/sysv/linux/i386/kernel-features.h
9441         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
9442         New macro.
9443         [__LINUX_KERNEL_VERSION >= 0x040300]
9444         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
9445         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
9446         Likewise.
9447         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
9448         Likewise.
9449         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
9450         Likewise.
9451         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
9452         Likewise.
9453         [__LINUX_KERNEL_VERSION >= 0x040300]
9454         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
9455         [__LINUX_KERNEL_VERSION >= 0x040300]
9456         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
9457         [__LINUX_KERNEL_VERSION >= 0x040300]
9458         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
9459         [__LINUX_KERNEL_VERSION >= 0x040300]
9460         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
9461         [__LINUX_KERNEL_VERSION >= 0x040300]
9462         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
9463         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
9464         Likewise.
9465         [__LINUX_KERNEL_VERSION >= 0x040300]
9466         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
9467         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
9468         Likewise.
9469         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
9470         Likewise.
9471         [__LINUX_KERNEL_VERSION >= 0x040300]
9472         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
9473         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
9474         Likewise.
9475         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
9476         Likewise.
9477         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
9478         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
9479         Likewise.
9480         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
9481         Likewise.
9482         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
9483         Likewise.
9484         [__LINUX_KERNEL_VERSION >= 0x040300]
9485         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
9486         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
9487         Likewise.
9488         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
9489         Likewise.
9490         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
9491         Likewise.
9492         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
9493         Likewise.
9494         [__LINUX_KERNEL_VERSION >= 0x040300]
9495         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
9496         [__LINUX_KERNEL_VERSION >= 0x040300]
9497         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
9498         [__LINUX_KERNEL_VERSION >= 0x040300]
9499         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
9500         [__LINUX_KERNEL_VERSION >= 0x040300]
9501         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
9502         [__LINUX_KERNEL_VERSION >= 0x040300]
9503         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
9504         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
9505         Likewise.
9506         [__LINUX_KERNEL_VERSION >= 0x040300]
9507         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
9508         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
9509         Likewise.
9510         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
9511         Likewise.
9512         [__LINUX_KERNEL_VERSION >= 0x040300]
9513         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
9514         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
9515         Likewise.
9516         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
9517         Likewise.
9518         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9519         (__ASSUME_SOCKET_SYSCALL): Likewise.
9520         (__ASSUME_BIND_SYSCALL): Likewise.
9521         (__ASSUME_CONNECT_SYSCALL): Likewise.
9522         (__ASSUME_LISTEN_SYSCALL): Likewise.
9523         (__ASSUME_ACCEPT_SYSCALL): Likewise.
9524         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
9525         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
9526         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
9527         (__ASSUME_SEND_SYSCALL): Likewise.
9528         (__ASSUME_SENDTO_SYSCALL): Likewise.
9529         (__ASSUME_RECV_SYSCALL): Likewise.
9530         (__ASSUME_RECVFROM_SYSCALL): Likewise.
9531         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
9532         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
9533         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
9534         (__ASSUME_SENDMSG_SYSCALL): Likewise.
9535         (__ASSUME_RECVMSG_SYSCALL): Likewise.
9536         * sysdeps/unix/sysv/linux/sh/kernel-features.h
9537         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
9538         Likewise.
9539         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
9540         Likewise.
9541         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
9542         Likewise.
9543         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
9544         Likewise.
9545         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
9546         Likewise.
9547         [__LINUX_KERNEL_VERSION >= 0x020625]
9548         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
9549         [__LINUX_KERNEL_VERSION >= 0x020625]
9550         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
9551         [__LINUX_KERNEL_VERSION >= 0x020625]
9552         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
9553         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
9554         Likewise.
9555         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
9556         Likewise.
9557         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
9558         Likewise.
9559         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
9560         Likewise.
9561         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
9562         Likewise.
9563         [__LINUX_KERNEL_VERSION >= 0x020625]
9564         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
9565         [__LINUX_KERNEL_VERSION >= 0x020625]
9566         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
9567         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
9568         Likewise.
9569         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
9570         Likewise.
9571
9572 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
9573
9574         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
9575         record the current if the current ABI and CPU support the FP64
9576         extension.
9577         (has-modd-spreg): Define to record the current if the current ABI and
9578         CPU support 32-bit floating point values in odd FPU registers.
9579         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
9580         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
9581         $(has-modd-spreg) equals yes.
9582         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
9583         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
9584         $(has-modd-spreg) equal yes.
9585
9586 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
9587
9588         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
9589         basename.
9590
9591 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
9592
9593         * benchtests/Makefile (bench-math): Move ffs and ffsll...
9594         (bench-string): ... here.
9595         (bench): Add bench-string.
9596         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
9597         to *-benchset to reflect what they are.
9598         (benchset): Adjust.
9599
9600         * benchtests/sincos-inputs: Add inputs from sin-inputs and
9601         cos-inputs.
9602
9603 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
9604
9605         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
9606         __attribute__ ((__simd__)) for vector math function declarations.
9607
9608 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
9609
9610         Fix typo in strncat, wcsncat manual entries
9611         * manual/string.texi (Copying and Concatenation): Fix typos in
9612         sample implementations of strncat and wcsncat, by having them use
9613         the old value of the destination length, not the new one.
9614
9615 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
9616
9617         [BZ #16961]
9618         [BZ #16962]
9619         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
9620         string on the stack for strtod.
9621         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
9622         a string on the stack for strtof.
9623         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
9624         constructing a string on the stack for strtold.
9625         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
9626         __strtold_nan to GLIBC_PRIVATE.
9627         * math/test-nan-overflow.c: New file.
9628         * math/test-nan-payload.c: Likewise.
9629         * math/Makefile (tests): Add test-nan-overflow and
9630         test-nan-payload.
9631
9632 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
9633
9634         Consistency about byte vs character in string.texi
9635         * manual/string.texi (String and Array Utilities):
9636         Distinguish more carefully among bytes, multibyte characters,
9637         and wide characters.  Use "byte" when talking about C 'char',
9638         to distinguish it more clearly from multibyte characters.
9639         Say "wide character" or "multibyte character" instead of
9640         "character", when a wide or multibyte character is intended.
9641         Similarly for "multibyte string" versus "string".
9642         Define these terms more carefully.
9643
9644 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
9645
9646         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
9647         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
9648         Likewise.
9649         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
9650         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
9651         * sysdeps/sh/math_private.h: New file.
9652         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
9653         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
9654         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
9655         long double function name.
9656         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9657         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9658         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9659         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9660         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9661         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
9662         Remove __finitel, __isinfl, and __isnanl.
9663         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
9664         Likewise.
9665         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9666         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9667         Remove __finitel.
9668         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9669         Likewise.
9670         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9671
9672 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
9673
9674         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
9675         installed libmvec_nonshared.a.
9676
9677 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9678
9679         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
9680         (sysdep_routines): Likewise.
9681         (sysdep-rtld-routines): Likewise.
9682         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
9683         [$(subdir) = nptl](tests-static): test-get_hwcap-static
9684         * sysdeps/powerpc/Versions: Added new
9685         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
9686         * sysdeps/powerpc/hwcapinfo.c: New file.
9687         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
9688         and parse hwcap, hwcap2 and platform number information.
9689         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
9690         to store HWCAP+HWCAP2 and platform number.
9691         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
9692         for HWCAP+HWCAP2 and platform number in the TCB.
9693         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
9694         the HWCAP, HWCAP2 and platform number in the TCB.
9695         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
9696         (TLS_INIT_TP): Included calls to add the hwcap and
9697         at_platform values in the TCB in TP initialization.
9698         (TLS_DEFINE_INIT_TP): Likewise.
9699         (THREAD_GET_HWCAP): New macro.
9700         (THREAD_SET_HWCAP): Likewise.
9701         (THREAD_GET_AT_PLATFORM): Likewise.
9702         (THREAD_SET_AT_PLATFORM): Likewise.
9703         * sysdeps/powerpc/powerpc32/dl-machine.h:
9704         (dl_platform_init): New function that calls
9705         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
9706         powerpc32.
9707         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
9708         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
9709         this functionality, static linking case.
9710         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
9711         linking case.
9712         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
9713         __parse_hwcap_and_convert_at_platform for the static linking case.
9714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
9715         Included the new __parse_hwcap_and_convert_at_platform symbol in the
9716         ABI list for GLIBC 2.23.
9717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
9718         Likewise.
9719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
9720         Likewise.
9721
9722 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
9723
9724         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
9725         * configure: Regenerate.
9726         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
9727         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
9728
9729 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
9730
9731         * iconvdata/ibm930.c: Add comment explaining encoding uses.
9732         * iconvdata/ibm933.c: Likewise.
9733         * iconvdata/ibm935.c: Likewise.
9734         * iconvdata/ibm937.c: Likewise.
9735         * iconvdata/ibm939.c: Likewise.
9736
9737 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9738
9739         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
9740         pthread_join.
9741         * nptl/tst-cancel21.c (tf): Likewise.
9742
9743 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
9744
9745         [BZ #19313]
9746         * bits/typesizes.h (__CPU_MASK_TYPE): New.
9747         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
9748         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
9749         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
9750         Likewise.
9751         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
9752         Likewise.
9753         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
9754         Likewise.
9755         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
9756         Likewise.
9757         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
9758         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
9759         unsigned long int with __CPU_MASK_TYPE.
9760
9761 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9762
9763         * sysdeps/aarch64/libm-test-ulps: Regenerated.
9764
9765 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
9766
9767         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
9768         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
9769         t512.x.
9770         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
9771
9772 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
9773
9774         [BZ #19214]
9775         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
9776         argument to return extended model.  Update family and model
9777         with extended family and model when family == 0x0f.
9778         (init_cpu_features): Updated.
9779
9780 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9781
9782         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
9783         signed off_t, so 32bit bigger than 2GiB values are fine actually.
9784
9785         * sysdeps/mach/hurd/mmap64.c: New file.
9786
9787 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
9788
9789         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
9790         rights for its main user thread in NEWTASK.
9791
9792 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
9793
9794         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
9795         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
9796
9797 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
9798
9799         [BZ #14259]
9800         * Makeconfig: Rename localedir to complocaledir.
9801         Rename inst_localedir to inst_complocaledir.
9802         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
9803         * config.make.in: Use complocaledir and libc_cv_complocaledir.
9804         * configure.ac: Use libc_cv_complocaledir.
9805         * configure: Regenerate.
9806         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
9807         -DCOMPLOCALEDIR.
9808         * locale/findlocale.c: Use COMPLOCALEDIR.
9809         * locale/loadarchive.c: Likewise.
9810         * locale/programs/locale.c: Likewise.
9811         * locale/programs/localedef.c: Likewise.
9812         * locale/programs/locarchive.c: Likewise.
9813         * localedata/Makefile: Use inst_complocaledir.
9814         * sysdeps/gnu/configure: Regenerate.
9815         * sysdeps/hppa/configure: Regenerate.
9816         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
9817         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
9818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
9819         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
9820         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
9821         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
9822         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
9823
9824 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
9825
9826         [BZ #19058]
9827         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
9828         AS_NEEDED.
9829         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
9830         workaround.
9831         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
9832         libmvec-static-only-routines): Added new file.
9833         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
9834
9835 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9836
9837         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
9838         of interrupted RPC instead of restoring it.
9839
9840         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
9841         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
9842         libc_hidden_def.
9843         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
9844         into initialized data instead of common. Define rtld_hidden_data_def.
9845         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
9846         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
9847         libc_hidden_def.
9848         (if_freenameindex): Add libc_hidden_weak.
9849         (if_nameindex): Add libc_hidden_weak.
9850         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
9851         __open64.
9852         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
9853         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
9854         * sysdeps/mach/nanosleep.c: Include <time.h>
9855         (__nanosleep): Rename to __libc_nanosleep.
9856         (__nanosleep): Add weak_alias.
9857         (nanosleep): Update alias.
9858
9859 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
9860
9861         * stdlib/strtod_nan.c: New file.
9862         * stdlib/strtod_nan_double.h: Likewise.
9863         * stdlib/strtod_nan_float.h: Likewise.
9864         * stdlib/strtod_nan_main.c: Likewise.
9865         * stdlib/strtod_nan_narrow.h: Likewise.
9866         * stdlib/strtod_nan_wide.h: Likewise.
9867         * stdlib/strtof_nan.c: Likewise.
9868         * stdlib/strtold_nan.c: Likewise.
9869         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
9870         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
9871         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
9872         * wcsmbs/wcstod_nan.c: Likewise.
9873         * wcsmbs/wcstof_nan.c: Likewise.
9874         * wcsmbs/wcstold_nan.c: Likewise.
9875         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
9876         strtold_nan.
9877         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
9878         wcstof_nan.
9879         * include/stdlib.h (__strtof_nan): Declare and use
9880         libc_hidden_proto.
9881         (__strtod_nan): Likewise.
9882         (__strtold_nan): Likewise.
9883         (__wcstof_nan): Likewise.
9884         (__wcstod_nan): Likewise.
9885         (__wcstold_nan): Likewise.
9886         * include/wchar.h (____wcstoull_l_internal): Declare.
9887         * stdlib/strtod_l.c: Do not include <ieee754.h>.
9888         (____strtoull_l_internal): Remove declaration.
9889         (STRTOF_NAN): Define macro.
9890         (SET_MANTISSA): Remove macro.
9891         (STRTOULL): Likewise.
9892         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
9893         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
9894         (STRTOF_NAN): Define macro.
9895         (SET_MANTISSA): Remove macro.
9896         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
9897         (SET_MANTISSA): Remove macro.
9898         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
9899         macro.
9900         (SET_MANTISSA): Remove macro.
9901         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
9902         macro.
9903         (SET_MANTISSA): Remove macro.
9904         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
9905         (SET_MANTISSA): Remove macro.
9906         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
9907         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
9908         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
9909
9910         [BZ #19266]
9911         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
9912         upper case and lower case letters inside NAN(), not using TOLOWER.
9913         * stdlib/tst-strtod-nan-locale-main.c: New file.
9914         * stdlib/tst-strtod-nan-locale.c: Likewise.
9915         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
9916         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
9917         Depend on $(gen-locales).
9918         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
9919         * wcsmbs/tst-wcstod-nan-locale.c: New file.
9920         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
9921         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
9922         Depend on $(gen-locales).
9923         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
9924
9925 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
9926
9927         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
9928
9929         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
9930         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
9931         __finitel, __isinfl, and __isnanl.
9932         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
9933         Likewise.
9934         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9935         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
9936         __finitel.
9937         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9938         Likewise.
9939         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9940
9941 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
9942
9943         * malloc/memusage.c (me): Remove redundant getenv call.
9944
9945 2015-10-24  Florian Weimer  <fweimer@redhat.com>
9946
9947         [BZ #19143]
9948         [BZ #19164]
9949         * nptl/check-cpuset.h: Remove.
9950         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
9951         Remove CPU set size check.
9952         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
9953         Likewise.
9954         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
9955         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
9956         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
9957         (__pthread_setaffinity_new): Remove CPU set size check.
9958         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9959         (__kernel_cpumask_size): Remove.
9960         (__sched_setaffinity_new): Remove CPU set size check.
9961         * manual/threads.texi (Default Thread Attributes): Remove stale
9962         reference to check_cpuset_attr, determine_cpumask_size in comment.
9963         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
9964         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
9965         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
9966         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
9967         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
9968         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
9969         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
9970         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
9971         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
9972         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
9973         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
9974         skeleton test file.
9975         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
9976         tst-affinity-pid.
9977
9978 2015-11-24  Florian Weimer  <fweimer@redhat.com>
9979
9980         * scripts/update-abilist.sh: New file.
9981         * Makefile (+subdir_targets): Add subdir_update-all-abi.
9982         * Makerules (update-all-abi-%, update-all-abi)
9983         (subdir_update-all-abi): New targets.
9984         * elf/Makefile (update-all-abi): New target.
9985
9986 2015-11-24  Florian Weimer  <fweimer@redhat.com>
9987
9988         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
9989         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
9990         (__libc_lock_define_initialized): Use it.
9991         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
9992         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
9993         * malloc/malloc.c (main_arena): Likewise.
9994         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
9995         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
9996
9997 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
9998
9999         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
10000         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
10001         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
10002         (PTRACE_O_MASK): Update value.
10003         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
10004         New value in enum __ptrace_setoptions.
10005         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
10006         (PTRACE_O_MASK): Update value.
10007         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
10008         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
10009         (PTRACE_O_MASK): Update value.
10010         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
10011         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
10012         (PTRACE_O_MASK): Update value.
10013         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
10014         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
10015         (PTRACE_O_MASK): Update value.
10016         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
10017         New value in enum __ptrace_setoptions.
10018         (PTRACE_O_MASK): Update value.
10019         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
10020         New value in enum __ptrace_setoptions.
10021         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
10022         (PTRACE_O_MASK): Update value.
10023
10024         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
10025         New macro.
10026         (PACKET_AUXDATA): Likewise.
10027         (PACKET_ORIGDEV): Likewise.
10028         (PACKET_VERSION): Likewise.
10029         (PACKET_HDRLEN): Likewise.
10030         (PACKET_RESERVE): Likewise.
10031         (PACKET_TX_RING): Likewise.
10032         (PACKET_LOSS): Likewise.
10033         (PACKET_VNET_HDR): Likewise.
10034         (PACKET_TX_TIMESTAMP): Likewise.
10035         (PACKET_TIMESTAMP): Likewise.
10036         (PACKET_FANOUT): Likewise.
10037         (PACKET_TX_HAS_OFF): Likewise.
10038         (PACKET_QDISC_BYPASS): Likewise.
10039         (PACKET_ROLLOVER_STATS): Likewise.
10040         (PACKET_FANOUT_DATA): Likewise.
10041         (PACKET_MR_UNICAST): Likewise.
10042
10043         [BZ #19242]
10044         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
10045         (TOUPPER): Likewise.
10046         * stdlib/tst-strtol-locale-main.c: New file.
10047         * stdlib/tst-strtol-locale.c: Likewise.
10048         * stdlib/Makefile (tests): Add tst-strtol-locale.
10049         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
10050         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
10051         Depend on $(gen-locales).
10052         * wcsmbs/tst-wcstol-locale.c: New file.
10053         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
10054         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
10055         tr_TR.ISO-8859-9.
10056         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
10057         Depend on $(gen-locales).
10058
10059 2015-11-20  Roland McGrath  <roland@hack.frob.com>
10060
10061         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
10062         __glibc_likely instead of __builtin_expect.  After falling back to
10063         dyncode_create in a non-ET_DYN case, use the allocate_code_data
10064         system interface to register the code pages as occupied.
10065
10066 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
10067
10068         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10069         [!ARM_MATH_PRIVATE_H].
10070         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
10071         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10072         [!HPPA_MATH_PRIVATE_H].
10073         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
10074         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
10075         to [!I386_MATH_PRIVATE_H].
10076         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
10077         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
10078         Change guard to [!M68K_MATH_PRIVATE_H].
10079         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
10080         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
10081         guard to [!MICROBLAZE_MATH_PRIVATE_H].
10082         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
10083         macro.
10084         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10085         [!MIPS_MATH_PRIVATE_H].
10086         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
10087         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10088         [!NIO2_MATH_PRIVATE_H].
10089         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
10090         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
10091         [!TILE_MATH_PRIVATE_H].
10092         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
10093
10094         [BZ #15421]
10095         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
10096         initialize with 0 and define as weak alias of __signgam.
10097         * include/math.h [!_ISOMAC] (__signgam): Declare.
10098         * math/Makefile (libm-calls): Add w_lgamma_compat.
10099         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
10100         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
10101         test-signgam-ullong-init.
10102         (tests-static): Add test-signgam-uchar-static,
10103         test-signgam-uchar-init-static, test-signgam-uint-static,
10104         test-signgam-uint-init-static, test-signgam-ullong-static and
10105         test-signgam-ullong-init-static.
10106         (CFLAGS-test-signgam-uchar.c): New variable.
10107         (CFLAGS-test-signgam-uchar-init.c): Likewise.
10108         (CFLAGS-test-signgam-uchar-static.c): Likewise.
10109         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
10110         (CFLAGS-test-signgam-uint.c): Likewise.
10111         (CFLAGS-test-signgam-uint-init.c): Likewise.
10112         (CFLAGS-test-signgam-uint-static.c): Likewise.
10113         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
10114         (CFLAGS-test-signgam-ullong.c): Likewise.
10115         (CFLAGS-test-signgam-ullong-init.c): Likewise.
10116         (CFLAGS-test-signgam-ullong-static.c): Likewise.
10117         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
10118         * math/Versions (libm): Add GLIBC_2.23.
10119         * math/lgamma-compat.h: New file.
10120         * math/test-signgam-main.c: Likewise.
10121         * math/test-signgam-uchar-init-static.c: Likewise.
10122         * math/test-signgam-uchar-init.c: Likewise.
10123         * math/test-signgam-uchar-static.c: Likewise.
10124         * math/test-signgam-uchar.c: Likewise.
10125         * math/test-signgam-uint-init-static.c: Likewise.
10126         * math/test-signgam-uint-init.c: Likewise.
10127         * math/test-signgam-uint-static.c: Likewise.
10128         * math/test-signgam-uint.c: Likewise.
10129         * math/test-signgam-ullong-init-static.c: Likewise.
10130         * math/test-signgam-ullong-init.c: Likewise.
10131         * math/test-signgam-ullong-static.c: Likewise.
10132         * math/test-signgam-ullong.c: Likewise.
10133         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
10134         wrapper of w_lgamma_main.c.
10135         * math/w_lgamma_compat.c: New file.
10136         * math/w_lgamma_compatf.c: Likewise.
10137         * math/w_lgamma_compatl.c: Likewise.
10138         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
10139         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
10140         defining compatibility symbols.
10141         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
10142         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
10143         wrapper of w_lgammaf_main.c.
10144         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
10145         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
10146         defining compatibility symbols.
10147         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
10148         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
10149         wrapper of w_lgammal_main.c.
10150         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
10151         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
10152         defining compatibility symbols.
10153         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
10154         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
10155         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
10156         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
10157         <lgamma-compat.h>.
10158         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
10159         (__ieee754_gamma): Define as alias.
10160         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
10161         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
10162         <lgamma-compat.h>.
10163         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
10164         (__ieee754_gammaf): Define as alias.
10165         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
10166         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
10167         <lgamma-compat.h>.
10168         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
10169         (__ieee754_gammal): Define as alias.
10170         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
10171         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
10172         <math/w_lgamma_compat.c>.
10173         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
10174         Define as alias of __lgamma_compat and use in defining lgammal.
10175         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
10176         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
10177         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
10178         (USE_AS_COMPAT): New macro.
10179         (LGAMMA_OLD_VER): Undefine and redefine.
10180         (lgammal): Do not define here.
10181         (gammal): Only define here if [GAMMA_ALIAS].
10182         * conform/linknamespace.pl (@whitelist): Remove signgam.
10183         * sysdeps/nacl/libm.abilist: Update.
10184         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10185         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10186         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10187         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10188         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10189         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10190         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10191         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10192         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10193         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10194         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10195         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10197         Likewise.
10198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10199         Likewise.
10200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10201         Likewise.
10202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10203         Likewise.
10204         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10205         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10206         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10207         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10208         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10209         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10210         Likewise.
10211         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10212         Likewise.
10213         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10214         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10215         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10216
10217 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10218
10219         [BZ #16364]
10220         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
10221         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
10222
10223 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
10224
10225         * sysdeps/s390/fpu/bits/mathinline.h:
10226         Use __asm__ [__volatile__] instead of asm [volatile].
10227         * sysdeps/s390/abort-instr.h: Likewise.
10228         * sysdeps/s390/atomic-machine.h: Likewise.
10229         * sysdeps/s390/bits/string.h: Likewise.
10230         * sysdeps/s390/dl-tls.h: Likewise.
10231         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
10232         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
10233         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
10234         * sysdeps/s390/fpu/fesetround.c: Likewise.
10235         * sysdeps/s390/fpu/fpu_control.h: Likewise.
10236         * sysdeps/s390/fpu/s_fma.c: Likewise.
10237         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
10238         * sysdeps/s390/memusage.h: Likewise.
10239         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
10240         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
10241         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
10242         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
10243         * sysdeps/s390/nptl/tls.h: Likewise.
10244         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
10245         * sysdeps/s390/s390-32/backtrace.c: Likewise.
10246         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10247         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
10248         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
10249         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
10250         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
10251         * sysdeps/s390/s390-64/backtrace.c: Likewise.
10252         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10253         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
10254         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
10255         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
10256         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
10257         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
10258         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
10259         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
10260         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
10261         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
10262         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
10263         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10264         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
10265         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10266         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
10267
10268 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10269             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10270
10271         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
10272         Add lwarx hint, and use macro for acquire instruction.
10273         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
10274         Likewise.
10275         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
10276         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
10277         update to use new atomic macros.
10278
10279 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10280
10281         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10282         (__lll_trylock_elision): Fix setting of adapt_count.
10283         * sysdeps/unix/sysv/linux/powerpc/htm.h
10284         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
10285         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
10286         (_ABORT_SYSCALL): Renumber, and clarify definition.
10287         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
10288
10289 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10290
10291         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
10292         after system headers to prevent MIN/MAX redefinition.  Define
10293         HAVE_ALLOCA to preserve builtin alloca usage.
10294
10295 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
10296
10297         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
10298         static and don't set or restore rounding.
10299         (__cos)[IN_SINCOS]: Likewise.
10300         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
10301         (__sincos): Set and restore rounding mode.  Remove check for infinite
10302         or NaN input.
10303
10304         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
10305
10306         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
10307         as used.
10308
10309 2015-11-16  Florian Weimer  <fweimer@redhat.com>
10310
10311         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
10312
10313 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
10314
10315         * config.make.in (have-glob-dat-reloc): New.
10316         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
10317         target supports GLOB_DAT relocaton. AC_SUBST.
10318         * configure: Regenerated.
10319         * elf/Makefile (tests): Add tst-prelink.
10320         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
10321         (tst-prelink-ENV): New.
10322         ($(objpfx)tst-prelink-conflict.out): Likewise.
10323         ($(objpfx)tst-prelink-cmp.out): Likewise.
10324         * sysdeps/x86/tst-prelink.c: Moved to ...
10325         * elf/tst-prelink.c: Here.
10326         * sysdeps/x86/tst-prelink.exp: Moved to ...
10327         * elf/tst-prelink.exp: Here.
10328         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
10329         (tst-prelink-ENV): Removed.
10330         ($(objpfx)tst-prelink-conflict.out): Likewise.
10331         ($(objpfx)tst-prelink-cmp.out): Likewise.
10332         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
10333
10334 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
10335
10336         [BZ #14551]
10337         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
10338         (__mpn_construct_long_double): If high part overflows to infinity,
10339         set errno and recompute overflowed result of the correct sign.
10340         * sysdeps/ieee754/ldbl-128ibm/Makefile
10341         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
10342         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
10343         $(libm).
10344         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
10345
10346 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
10347
10348         [BZ #15479]
10349         [BZ #19238]
10350         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
10351         floating-point state after first operation on input.  Restore full
10352         state rather than just rounding mode.
10353         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
10354         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
10355         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
10356
10357         [BZ #19235]
10358         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
10359         add 0.5 to integer arguments.
10360         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
10361         Likewise.
10362         (.LC2): New object.
10363
10364 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
10365
10366         * scripts/pylintrc (reports): Set to no.
10367
10368 2015-11-10  Roland McGrath  <roland@hack.frob.com>
10369
10370         * elf/dl-load.c (open_verify): Take new argument FD.
10371         Skip __open call if passed FD is not -1.
10372         (_dl_map_object, open_path): Update callers.
10373         * elf/dl-sysdep-open.h: New file.
10374         * elf/dl-load.c: Include it.
10375         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
10376         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
10377         * sysdeps/nacl/dl-sysdep-open.h: New file.
10378         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
10379         from libc to rtld.
10380
10381 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
10382
10383         [BZ #19228]
10384         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
10385         and restore full floating-point state.
10386         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
10387         Likewise.
10388         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
10389         Likewise.
10390         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
10391         Likewise.
10392         * math/test-nearbyint-except-2.c: New file.
10393         * math/Makefile (tests): Add test-nearbyint-except-2.
10394
10395 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
10396
10397         [BZ #19178]
10398         * sysdeps/x86/Makefile (tests): Add tst-prelink.
10399         (tst-prelink-ENV): New.
10400         ($(objpfx)tst-prelink-conflict.out): Likewise.
10401         ($(objpfx)tst-prelink-cmp.out): Likewise.
10402         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
10403         * sysdeps/x86/tst-prelink.c: New file.
10404         * sysdeps/x86/tst-prelink.exp: Likewise.
10405
10406 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
10407
10408         * math/auto-libm-test-in: Add another test of pow.
10409         * math/auto-libm-test-out: Regenerated.
10410         * math/libm-test.inc (pow_test_data): Add another test.
10411
10412 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10413
10414         [BZ #19219]
10415         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
10416         weak_alias to nearbyintl.
10417
10418 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
10419
10420         * sysdeps/aarch64/bits/string.h: New file.
10421         (_STRING_ARCH_unaligned): Define.
10422
10423 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
10424
10425         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
10426         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
10427         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
10428         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
10429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
10430
10431 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
10432
10433         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
10434         for original name of the DSO.  Add it to the name list of the DSO
10435         if it is actually given.
10436         (_dl_map_object): Keep track of whether an audit module rewrote
10437         the file name.  If yes, pass the original name to
10438         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
10439         debugging is enabled, log the change of the file name.
10440         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
10441         _dl_map_object_from_fd.
10442         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
10443         * elf/tst-audit11.c: New file
10444         * elf/tst-auditmod11.c: New file.
10445         * elf/tst-audit11mod1.c: New file.
10446         * elf/tst-audit11mod2.c: New file.
10447         * elf/tst-audit11mod2.map: New file.
10448         * elf/tst-audit12.c: New file
10449         * elf/tst-auditmod12.c: New file.
10450         * elf/tst-audit12mod1.c: New file.
10451         * elf/tst-audit12mod2.c: New file.
10452         * elf/tst-audit12mod2.map: New file.
10453         * elf/tst-audit12mod3.c: New file.
10454
10455 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
10456
10457         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
10458         Don't create weak aliases,
10459         because versioned symbols are created later.
10460         * sysdeps/s390/s390-32/setjmp.S
10461         (setjmp, _setjmp): Remove weak and rename to an unique name
10462         in SHARED case due to existing versioned symbols.
10463         * sysdeps/s390/s390-64/setjmp.S: Likewise.
10464         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
10465         (getcontext): Create weak alias only in non SHARED case.
10466         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
10467
10468 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
10469
10470         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
10471         (__ASSUME_*_SYSCALL) Define new macros.
10472         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
10473         Remove socketcall syscalls.
10474         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
10475         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
10476         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
10477         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
10478         * sysdeps/unix/sysv/linux/send.c (__libc_send):
10479         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
10480
10481 2015-11-09  Florian Weimer  <fweimer@redhat.com>
10482
10483         [BZ #12926]
10484         Terminate process on invalid netlink response.
10485         * sysdeps/unix/sysv/linux/netlinkaccess.h
10486         (__netlink_assert_response): Declare.
10487         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
10488         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
10489         (sysdep_routines): Add netlink_assert_response.
10490         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
10491         __netlink_assert_response.
10492         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
10493         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
10494         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
10495         __netlink_assert_response.
10496
10497 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10498
10499         [BZ #19178]
10500         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
10501         (RTYPE_CLASS_PLT): Likewise.
10502         (RTYPE_CLASS_COPY): Likewise.
10503         (RTYPE_CLASS_TLS): Likewise.
10504         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
10505         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
10506         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
10507         DL_DEBUG_PRELINK.
10508
10509 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
10510
10511         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
10512         calls with argument -0.5.
10513         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
10514
10515         * configure.ac (libc_cv_z_nodelete): Remove configure test.
10516         (libc_cv_z_nodlopen): Likewise.
10517         (libc_cv_z_initfirst): Likewise.
10518         * configure: Regenerated.
10519
10520 2015-11-06  Florian Weimer  <fweimer@redhat.com>
10521
10522         Simplify abilist format to be line-based.
10523         * scripts/abilist.awk: Collect descriptors in the descs variable.
10524         (emit): Write descs variable and sort it
10525         externally, with sort.
10526         * sysdeps/**/*.abilist: Convert to new format.
10527
10528 2015-11-06  Mark Wielaard  <mjw@redhat.com>
10529
10530         [BZ #11460]
10531         * io/Makefile (routines): Add fts64.
10532         (tests): Add tst-fts and tst-fts-lfs.
10533         (CFLAGS-fts64.c): New.
10534         * io/Versions (GLIBC_2.23): New.
10535         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
10536         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
10537         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
10538         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
10539         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
10540         (FTSENT64): Likewise.
10541         (fts64_children): Likewise.
10542         (fts64_close): Likewise.
10543         (fts64_open): Likewise.
10544         (fts64_read): Likewise.
10545         (fts64_set): Likewise.
10546         * io/fts64.c: New file.
10547         * io/tst-fts.c: New test.
10548         * io/tst-fts-lfs.c: Likewise.
10549         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
10550         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
10551         fts64_set.
10552         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10553         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10554         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10555         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10556         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10557         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10558         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10559         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10560         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10561         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10562         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10563         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10564         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10566         Likewise.
10567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10568         Likewise.
10569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10571         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10572         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10573         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10574         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10575         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10576         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
10577         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
10578         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
10579         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10580         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10581         * sysdeps/wordsize-64/fts.c: New file.
10582         * sysdeps/wordsize-64/fts64.c: Likewise.
10583         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
10584         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
10585         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
10586         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
10587
10588 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
10589
10590         * math/libm-test.inc (NON_FINITE): New macro.
10591         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
10592         * math/gen-libm-test.pl (show_exceptions): Add argument
10593         $non_finite.
10594         (parse_args): Update call to show_exceptions.
10595         * math/test-math-finite.h: New file.
10596         * math/test-math-no-finite.h: Likewise.
10597         * math/test-double-finite.c: Likewise.
10598         * math/test-float-finite.c: Likewise.
10599         * math/test-ldouble-finite.c: Likewise.
10600         * math/test-double.c: Include "test-math-no-finite.h".
10601         * math/test-float.c: Include "test-math-no-finite.h".
10602         * math/test-ldouble.c: Include "test-math-no-finite.h".
10603         * math/test-math-inline.h (TEST_FINITE): New macro.
10604         * math/test-math-vector.h (TEST_FINITE): Likewise.
10605         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
10606         (libm-tests): Add test-float-finite and test-double-finite.
10607         ($(objpfx)test-float-finite.o): New dependency on
10608         $(objpfx)libm-test.stmp.
10609         ($(objpfx)test-double-finite.o): Likewise.
10610         ($(objpfx)test-ldouble-finite.o): Likewise.
10611         (libm-test-no-inline-cflags): New variable.
10612         (libm-test-finite-cflags): Likewise.
10613         (CFLAGS-test-float-finite.c): Likewise.
10614         (CFLAGS-test-double-finite.c): Likewise.
10615         (CFLAGS-test-ldouble-finite.c): Likewise.
10616         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
10617         (CFLAGS-test-double.c): Likewise.
10618         (CFLAGS-test-ldouble.c): Likewise.
10619
10620 2015-11-05  Roland McGrath  <roland@hack.frob.com>
10621
10622         * io/fcntl.c (__fcntl): Add ... to prototype.
10623         * misc/ioctl.c (__ioctl): Likewise.
10624         * misc/syscall.c (syscall): Likewise.
10625
10626 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
10627
10628         * scripts/list-fixed-bugs.py: New file.
10629
10630         [BZ #19213]
10631         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
10632         returned for argument 1.
10633         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
10634         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
10635         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
10636         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
10637         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
10638         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
10639
10640         [BZ #19211]
10641         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
10642         __USE_XOPEN], not if [!__USE_ISOC99].
10643         (lgammaf): Likewise.
10644         (lgammal): Likewise.
10645         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
10646         (gammaf): Likewise.
10647         (gammal): Likewise.
10648         * math/test-signgam-finite-c11.c: New file.
10649         * math/test-signgam-finite-c99.c: Likewise.
10650         * math/test-signgam-finite.c: Likewise.
10651         * math/Makefile (tests): Add test-signgam-finite,
10652         test-signgam-finite-c99 and test-signgam-finite-c11.
10653         (CFLAGS-test-signgam-finite.c): New variable.
10654         (CFLAGS-test-signgam-finite-c99.c): Likewise.
10655         (CFLAGS-test-signgam-finite-c11.c): Likewise.
10656
10657         [BZ #19212]
10658         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
10659         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
10660         500].
10661         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
10662         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
10663         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
10664         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
10665         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
10666         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
10667         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
10668         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
10669         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
10670         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
10671
10672         [BZ #19209]
10673         * math/bits/math-finite.h (ldexp): Remove declaration.
10674         (ldexpf): Likewise.
10675         (ldexpl): Likewise.
10676
10677         [BZ #19205]
10678         * math/bits/math-finite.h (acosf): Condition declaration on
10679         [__USE_ISOC99].
10680         (acosl): Likewise.
10681         (acoshf): Likewise.
10682         (acoshl): Likewise.
10683         (asinf): Likewise.
10684         (asinl): Likewise.
10685         (atan2f): Likewise.
10686         (atan2l): Likewise.
10687         (atanhf): Likewise.
10688         (atanhl): Likewise.
10689         (coshf): Likewise.
10690         (coshl): Likewise.
10691         (expf): Likewise.
10692         (expl): Likewise.
10693         (fmodf): Likewise.
10694         (fmodl): Likewise.
10695         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
10696         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
10697         (j0l): Likewise.
10698         (y0f): Likewise.
10699         (y0l): Likewise.
10700         (j1f): Likewise.
10701         (j1l): Likewise.
10702         (y1f): Likewise.
10703         (y1l): Likewise.
10704         (jnf): Likewise.
10705         (jnl): Likewise.
10706         (ynf): Likewise.
10707         (ynl): Likewise.
10708         (lgammaf_r): Condition declaration on [__USE_ISOC99].
10709         (lgammal_r): Likewise.
10710         (__lgamma_r_finite): New declaration.
10711         (__lgammaf_r_finite): Likewise.
10712         (__lgammal_r_finite): Likewise.
10713         (lgamma): Use __lgamma_r_finite.
10714         (lgammaf): Condition definition on [__USE_ISOC99].  Use
10715         __lgammaf_r_finite.
10716         (lgammal): Condition definition on [__USE_ISOC99].  Use
10717         __lgammal_r_finite.
10718         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
10719         __lgamma_r_finite.
10720         (gammaf): Condition definition on [__USE_ISOC99].  Use
10721         __lgammaf_r_finite.
10722         (gammal): Condition definition on [__USE_ISOC99].  Use
10723         __lgammal_r_finite.
10724         (logf): Condition declaration on [__USE_ISOC99].
10725         (logl): Likewise.
10726         (log10f): Likewise.
10727         (log10l): Likewise.
10728         (ldexpf): Likewise.
10729         (ldexpl): Likewise.
10730         (powf): Likewise.
10731         (powl): Likewise.
10732         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
10733         __USE_ISOC99].
10734         (remainderf): Condition declaration on [__USE_ISOC99].
10735         (remainderl): Likewise.
10736         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
10737         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
10738         (scalbl): Likewise.
10739         (sinhf): Condition declaration on [__USE_ISOC99].
10740         (sinhl): Likewise.
10741         (sqrtf): Likewise.
10742         (sqrtl): Likewise.
10743
10744 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
10745
10746         * sysdeps/arm/atomic-machine.h
10747         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
10748         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
10749         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
10750         Remove conditional code.
10751         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
10752         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
10753         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
10754         Change conditional to [__ASSEMBLER__].
10755         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
10756         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
10757         [!__ASSEMBLER__].
10758         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
10759         code.
10760         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
10761         conditional macro definitions.
10762         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
10763         (__arch_compare_and_exchange_val_16_acq): Likewise.
10764         (__arch_compare_and_exchange_val_32_acq): Likewise.
10765         (atomic_exchange_and_add): Likewise.
10766         (atomic_add): Likewise.
10767         (atomic_add_negative): Likewise.
10768         (atomic_add_zero): Likewise.
10769         (atomic_bit_set): Likewise.
10770         (atomic_bit_test_set): Likewise.
10771         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
10772         code unconditional.
10773         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
10774
10775         * math/test-math-errno.h: New file.
10776         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
10777         empty.
10778         (TEST_ERRNO): New macro.
10779         (TEST_EXCEPTIONS): Likewise.
10780         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
10781         (TEST_EXCEPTIONS): Likewise.
10782         * math/test-math-vector.h (TEST_ERRNO): Likewise.
10783         * math/test-double.c: Include "test-math-errno.h".
10784         * math/test-float.c: Likewise.
10785         * math/test-ldouble.c: Likewise.
10786         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
10787         code unconditional.
10788         (test_exceptions): Only run code if TEST_EXCEPTIONS.
10789         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
10790         unconditional.
10791         (test_errno): Only run code if TEST_ERRNO.
10792         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
10793
10794 2015-11-04  Florian Weimer  <fweimer@redhat.com>
10795
10796         * nptl/tst-once5.cc: Remove attribution.
10797
10798 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
10799
10800         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
10801         sqrt, tan, tanh, y0, y1 and yn.
10802         * math/auto-libm-test-out: Regenerated.
10803         * math/libm-test.inc (scalb_test_data): Add more tests.
10804         (scalbn_test_data): Likewise.
10805         (scalbln_test_data): Likewise.
10806         (signbit_test_data): Likewise.
10807         (sin_test_data): Likewise.
10808         (sincos_test_data): Likewise.
10809         (sinh_test_data): Likewise.
10810         (sqrt_test_data): Likewise.
10811         (tan_test_data): Likewise.
10812         (tanh_test_data): Likewise.
10813         (tgamma_test_data): Likewise.
10814         (y0_test_data): Likewise.
10815         (y1_test_data): Likewise.
10816         (yn_test_data): Likewise.
10817         (significand_test_data): Likewise.
10818         * sysdeps/i386/fpu/libm-test-ulps: Update.
10819
10820 2015-11-03  David Kastrup  <dak@gnu.org>
10821
10822         [BZ #18604]
10823         * assert/assert.h (assert): Don't macro-expand failed assertion
10824         expression in error message.
10825         * malloc/malloc.c (assert): Likewise.
10826
10827 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
10828
10829         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
10830         test.
10831         * configure: Regenerated.
10832
10833 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
10834
10835         * math/libm-test.inc (modf_test_data): Add more tests.
10836         (nearbyint_test_data): Likewise.
10837         (nextafter_test_data): Likewise.
10838         (nexttoward_test_data): Likewise.
10839         (pow_test_data): Likewise.
10840         (remainder_test_data): Likewise.
10841         (remquo_test_data): Likewise.
10842         (rint_test_data): Likewise.
10843
10844         [BZ #19201]
10845         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
10846         Check for zero remainder in case of large exponents and ensure
10847         correct sign of result in that case.
10848         * math/libm-test.inc (remainder_test_data): Add more tests.
10849
10850         [BZ #6799]
10851         * math/s_nextafter.c: Include <errno.h>.
10852         (__nextafter): Set errno on overflow and underflow.
10853         * math/s_nexttowardf.c: Include <errno.h>.
10854         (__nexttowardf): Set errno on overflow and underflow.
10855         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
10856         (__nextafterl): Set errno on overflow and underflow.
10857         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
10858         (__nexttoward): Set errno on overflow and underflow.
10859         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
10860         (__nexttowardf): Set errno on overflow and underflow.
10861         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
10862         (__nextafterf): Set errno on overflow and underflow.
10863         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
10864         (__nextafterl): Set errno on overflow and underflow.
10865         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
10866         (__nexttoward): Set errno on overflow and underflow.
10867         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
10868         (__nexttowardf): Set errno on overflow and underflow.
10869         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
10870         (__nextafterl): Set errno on overflow and underflow.
10871         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
10872         (__nexttoward): Set errno on overflow and underflow.
10873         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
10874         (__nexttowardf): Set errno on overflow and underflow.
10875         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
10876         (__nexttoward): Set errno on overflow and underflow.
10877         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
10878         (__nexttowardf): Set errno on overflow and underflow.
10879         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
10880         (__nldbl_nexttowardf): Set errno on overflow and underflow.
10881         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
10882         (__nextafterl): Set errno on overflow and underflow.
10883         * math/libm-test.inc (nextafter_test_data): Do not allow errno
10884         setting to be missing on overflow.  Add more tests.
10885         (nexttoward_test_data): Likewise.
10886
10887         * configure.ac (libc_cv_initfini_array): Remove configure test.
10888         * configure: Regenerated.
10889
10890 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
10891
10892         [BZ #19189]
10893         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
10894         non-finite argument handle arguments with negative sign.
10895
10896         * math/libm-test.inc (j0_test_data): Do not test sign of zero
10897         result from infinite argument.
10898         (j1_test_data): Likewise.
10899         (jn_test_data): Likewise.
10900         (y0_test_data): Likewise.
10901         (y1_test_data): Likewise.
10902         (yn_test_data): Likewise.
10903
10904         [BZ #16171]
10905         * math/w_remainder.c (drem): Define as weak alias of __remainder.
10906         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
10907         * math/w_remainderf.c (dremf): Define as weak alias of
10908         __remainderf.
10909         * math/w_remainderl.c (dreml): Define as weak alias of
10910         __remainderl.
10911         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
10912         __remainder.
10913         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
10914         __remainderf.
10915         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
10916         __remainderl.
10917         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
10918         weak alias of remainderl.
10919         * sysdeps/ieee754/ldbl-opt/w_remainder.c
10920         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
10921         alias of __remainder.
10922         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
10923         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
10924         strong alias of __remainderl.
10925         (dreml): Use long_double_symbol.
10926         * math/Makefile (libm-calls): Remove w_drem.
10927         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
10928         (CFLAGS-nldbl-drem.c): Remove variable.
10929         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
10930         * math/w_drem.c: Remove file.
10931         * math/w_dremf.c: Likewise.
10932         * math/w_dreml.c: Likewise.
10933         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
10934         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
10935         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
10936
10937         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
10938         * sysdeps/i386/configure: Regenerated.
10939         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
10940         * sysdeps/x86_64/configure: Regenerated.
10941
10942         * configure.ac (libc_cv_asm_protected_directive): Remove configure
10943         test.
10944         (libc_cv_visibility_attribute): Likewise.
10945         (libc_cv_protected_data): Test unconditionally.
10946         (libc_cv_broken_visibility_attribute): Remove configure test.
10947         (libc_cv_have_sdata_section): Test unconditionally.
10948         * configure: Regenerated.
10949
10950         * include/libc-internal.h (libc_max_align_t): Remove typedef.
10951         * include/scratch_buffer.h: Include <stddef.h> instead of
10952         <libc-internal.h>.
10953         (struct scratch_buffer): Use max_align_t instead of
10954         libc_max_align_t.
10955
10956 2015-10-29  Florian Weimer  <fweimer@redhat.com>
10957
10958         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
10959         instead of extend_alloca.  Change control flow to avoid a goto.
10960         Remove assert which is trivially always true.
10961
10962 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
10963
10964         [BZ #16068]
10965         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
10966         (FE_ALL_EXCEPT_X86): New macro.
10967         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
10968         FE_ALL_EXCEPT.  Ensure precision control is included in
10969         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
10970         handle "denormal operand exception" and clear FZ and DAZ bits.
10971         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
10972         (FE_ALL_EXCEPT_X86): New macro.
10973         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
10974         FE_ALL_EXCEPT.  Ensure precision control is included in
10975         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
10976         handle "denormal operand exception" and clear FZ and DAZ bits.
10977         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
10978         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
10979         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
10980         test-fenv-x87 and test-fenv-sse-2.
10981         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
10982
10983         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
10984         * math/test-double.h (BUILD_COMPLEX): New macro.
10985         * math/test-float.h (BUILD_COMPLEX): Likewise.
10986         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
10987
10988         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
10989         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
10990         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
10991         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
10992         instead of DBL_DENORM_MIN in comment.
10993         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
10994         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
10995         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
10996         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
10997         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
10998         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
10999
11000 2015-10-28  Florian Weimer  <fweimer@redhat.com>
11001
11002         [BZ# 19048]
11003         * malloc/malloc.c (struct malloc_state): Update comment.  Add
11004         attached_threads member.
11005         (main_arena): Initialize attached_threads.
11006         * malloc/arena.c (list_lock): Update comment.
11007         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
11008         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
11009         (deattach_arena): New function.
11010         (_int_new_arena): Initialize arena reference count and deattach
11011         replaced arena.
11012         (get_free_list, reused_arena): Update reference count and deattach
11013         replaced arena.
11014         (arena_thread_freeres): Update arena reference count and only put
11015         unreferenced arenas on the free list.
11016
11017 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
11018
11019         [BZ #19181]
11020         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
11021         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
11022         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
11023         * math/test-fenv-clear-main.c: New file.
11024         * math/test-fenv-clear.c: Likewise.
11025         * math/Makefile (tests): Add test-fenv-clear.
11026         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
11027         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
11028         test-fenv-clear-sse.
11029         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
11030
11031         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
11032         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
11033         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
11034
11035 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11036
11037         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
11038         static libc.
11039
11040 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
11041
11042         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
11043         test.
11044         * sysdeps/i386/configure: Regenerated.
11045         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
11046         test.
11047         * sysdeps/x86_64/configure: Regenerated.
11048         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
11049         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11050         memset-avx2 unconditionally instead of conditionally on
11051         [$(config-cflags-avx2) = yes].
11052         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11053         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
11054         unconditional.
11055         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
11056         * sysdeps/x86_64/multiarch/memset_chk.S
11057         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
11058         to [IS_IN (libc) && SHARED].
11059
11060 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
11061
11062         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
11063         configure test.
11064         * sysdeps/arm/configure: Regenerated.
11065         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
11066         Define variable if not already defined.
11067
11068         [BZ #17404]
11069         * sysdeps/mips/atomic-machine.h
11070         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
11071         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
11072         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
11073
11074         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
11075         unconditional.
11076         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
11077         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11078         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
11079         unconditional.
11080         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11081         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
11082         unconditional.
11083         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11084         * stdlib/setenv.c
11085         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
11086         code unconditional.
11087         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
11088         Remove conditional code.
11089         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
11090         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
11091         unconditional.
11092         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
11093         code.
11094         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
11095         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
11096         unconditional.
11097         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
11098         code.
11099         * sysdeps/ieee754/ldbl-128/k_tanl.c
11100         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
11101         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11102         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
11103         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
11104         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11105         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
11106         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
11107         unconditional.
11108         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
11109         code.
11110         * sysdeps/ieee754/ldbl-96/k_tanl.c
11111         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
11112         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
11113
11114         * nptl/tst-initializers1-c11.c: New file.
11115         * nptl/tst-initializers1-gnu11.c: Likewise.
11116         * nptl/Makefile (tests): Add these new tests.
11117         (CFLAGS-tst-initializers1-c11.c): New variable.
11118         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
11119
11120         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
11121         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
11122         instead of -std=gnu99.
11123         * configure.ac (systemtap): Test with -std=gnu11 instead of
11124         -std=gnu99.
11125         * configure: Regenerated.
11126         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
11127         in compilation command in comment.
11128
11129         * sysdeps/nptl/configure.ac: Remove file.
11130         * sysdeps/nptl/configure: Remove generated file.
11131         * configure.ac (libc_cv_forced_unwind): Do not substitute.
11132         * configure: Regenerated.
11133         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
11134         * config.make.in (have-forced-unwind): Remove variable.
11135         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
11136         unconditional.
11137         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
11138         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
11139         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
11140         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
11141         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
11142         unconditional.
11143
11144 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11145
11146         [BZ #19174]
11147         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
11148         .skip_lock_out_of_tbegin_retries.
11149         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
11150         (__lll_lock_elision): Likewise, and respect a value of
11151         try_tbegin <= 0.
11152
11153 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11154
11155         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
11156         statement.
11157
11158 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
11159
11160         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
11161         variable.
11162         (test-xfail-ISO11/stdalign.h/conform): Likewise.
11163         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
11164
11165         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
11166         of -std=c1x -D_ISOC11_SOURCE.
11167
11168         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
11169         * configure: Regenerated.
11170         * manual/install.texi (Tools for Compilation): Document
11171         requirement for GCC 4.7 or later.
11172         * INSTALL: Regenerated.
11173
11174 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
11175
11176         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
11177         on CNT to a conditional jump to 'puntdata'.
11178
11179 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
11180
11181         * configure.ac (libc_cv_gcc___thread): Remove configure test.
11182         (libc_cv_gcc_tls_model_attr): Likewise.
11183         * configure: Regenerated.
11184
11185         * configure.ac (libc_cv_need_minus_P): Remove configure test.
11186         * configure: Regenerated.
11187         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
11188
11189 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
11190
11191         * configure.ac (old_glibc_headers): Remove configure test.
11192         * configure: Regenerated.
11193         * config.make.in (old-glibc-headers): Remove variable.
11194         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
11195         (install): Remove dependency on remove-old-headers.
11196         (headers2_0): Remove variable.
11197         (remove-old-headers): Remove rule.
11198
11199         * configure.ac (libc_cv_dot_text): Remove configure test.
11200         (libc_cv_asm_set_directive): Use .text instead of
11201         ${libc_cv_dot_text} in configure test.
11202         * configure: Regenerated.
11203
11204 2015-10-26  Florian Weimer  <fweimer@redhat.com>
11205
11206         [BZ #19168]
11207         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11208
11209 2015-10-26  Florian Weimer  <fweimer@redhat.com>
11210
11211         * configure.ac (CXX): Clear the variable if the C++ toolchain does
11212         not support static linking.
11213         * configure: Regenerate.
11214
11215 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
11216
11217         * math/libm-test.inc (check_float_internal): Do not special-case
11218         errors up to 0.5 ulp.
11219
11220         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
11221         log2.
11222         * math/auto-libm-test-out: Regenerated.
11223         * math/libm-test.inc (MAX_EXP): New macro.
11224         (ilogb_test_data): Add more tests.
11225         (isfinite_test_data): Likewise.
11226         (isgreater_test_data): Likewise.
11227         (isgreaterequal_test_data): Likewise.
11228         (isinf_test_data): Likewise.
11229         (isless_test_data): Likewise.
11230         (islessequal_test_data): Likewise.
11231         (islessgreater_test_data): Likewise.
11232         (isnan_test_data): Likewise.
11233         (isnormal_test_data): Likewise.
11234         (issignaling_test_data): Likewise.
11235         (isunordered_test_data): Likewise.
11236         (j0_test_data): Likewise.
11237         (j1_test_data): Likewise.
11238         (jn_test_data): Likewise.
11239         (lgamma_test_data): Likewise.
11240         (log_test_data): Likewise.
11241         (log10_test_data): Likewise.
11242         (log1p_test_data): Likewise.
11243         (log2_test_data): Likewise.
11244         (logb_test_data): Likewise.
11245         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11246
11247         [BZ #18611]
11248         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
11249         avoid excess range and precision on underflow.
11250         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11251         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
11252         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11253         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
11254         underflow.
11255         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11256         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11257         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11258         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11259         * math/auto-libm-test-in: Do not allow missing errno setting for
11260         tests of j1 and jn.
11261         * math/auto-libm-test-out: Regenerated.
11262
11263 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
11264
11265         [BZ #15491]
11266         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
11267         floating-point environment instead of clearing all exceptions.
11268         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
11269         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
11270         merging in "invalid" exceptions from frndint.
11271         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
11272         * math/test-nearbyint-except.c: New file.
11273         * math/Makefile (tests): Add test-nearbyint-except.
11274
11275 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
11276
11277         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
11278
11279         * sysdeps/tile/libm-test-ulps: Regenerated.
11280
11281 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11282
11283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
11284         (__NR_sync_file_range2): Assume it is always defined.
11285         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
11286         (__NR_sync_file_range): Assume it is always defined.
11287
11288 2015-10-22  Andreas Schwab  <schwab@suse.de>
11289
11290         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
11291         INTERNAL_SYSCALL_ERRNO.
11292         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
11293         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
11294         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
11295         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
11296         Likewise.
11297         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
11298
11299 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
11300
11301         * io/tst-fcntl.c (fd): New static variable.
11302         (do_prepare): Open temporary file here....
11303         (do_test): ...not here.
11304
11305         * io/ftwtest-sh: Also trap on exit to remove temporary files.
11306
11307 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
11308
11309         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
11310         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
11311         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
11312         Moved before "#ifdef __ASSEMBLER__".
11313
11314 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
11315
11316         [BZ #19156]
11317         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
11318         arguments very close to 0.
11319
11320 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
11321
11322         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
11323         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
11324
11325 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
11326
11327         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
11328         New.  Defined for GCC 5 and above when not compiling for
11329         profiling.
11330         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
11331
11332         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
11333         Renamed to ...
11334         (CFLAGS-epoll_pwait.o): This.
11335         (CFLAGS-mmap.c): Renamed to ...
11336         (CFLAGS-mmap.o): This.
11337         (CFLAGS-mmap64.c): Renamed to ...
11338         (CFLAGS-mmap64.o): This.
11339         (CFLAGS-epoll_pwait.os): New.
11340         (CFLAGS-mmap.os): Likewise.
11341         (CFLAGS-mmap64.os): Likewise.
11342         (CFLAGS-semtimedop.os): Likewise.
11343         (CFLAGS-semtimedop.c): Renamed to ...
11344         (CFLAGS-semtimedop.o): This.
11345
11346 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11347
11348         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
11349         warning message.
11350
11351 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
11352
11353         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
11354         * Makefile ($(objpfx)c++-types-check.out): Filter out
11355         $(+gccwarn-c) instead of -Wstrict-prototypes.
11356
11357         * io/fts.c (fts_open): Convert to prototype-style function
11358         definition.
11359         * malloc/mcheck.c (mcheck): Likewise.
11360         (mcheck_pedantic): Likewise.
11361         * posix/regexec.c (re_search_2_stub): Likewise.  Use
11362         internal_function.
11363         (re_search_internal): Likewise.
11364         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
11365         prototype-style function definition.
11366         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
11367         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
11368         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
11369         (xdr_utmpptr): Likewise.
11370         (xdr_utmparr): Likewise.
11371         (xdr_utmpidle): Likewise.
11372         (xdr_utmpidleptr): Likewise.
11373         (xdr_utmpidlearr): Likewise.
11374
11375         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
11376         log, log10 and log2.
11377         * math/auto-libm-test-out: Regenerated.
11378         * math/libm-test.inc (fmod_test_data): Add more tests.
11379         (fpclassify_test_data): Likewise.
11380         (frexp_test_data): Likewise.
11381         (hypot_test_data): Likewise.
11382         (ilogb_test_data): Likewise.
11383
11384 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
11385
11386         * debug/fortify_fail.c (__fortify_fail): Convert to
11387         prototype-style function definition.  Use internal_function.
11388         * libio/genops.c (save_for_backup): Convert to prototype-style
11389         function definition.
11390         * libio/wgenops.c (save_for_wbackup): Likewise.
11391         * login/grantpt.c (grantpt): Likewise.
11392         * login/ptsname.c (ptsname): Likewise.
11393         (__ptsname_r): Likewise.
11394         * login/unlockpt.c (unlockpt): Likewise.
11395         * mach/msgserver.c (__mach_msg_server): Likewise.
11396         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
11397         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
11398         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
11399         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
11400         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
11401         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
11402         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
11403         Likewise.
11404         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
11405         internal_function.
11406         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
11407         prototype-style function definition.
11408         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
11409         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
11410         (__pthread_create_2_0): Likewise.
11411         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
11412         * nptl/register-atfork.c (__register_atfork): Likewise.
11413         * posix/glob.c (glob): Likewise.
11414         * posix/regcomp.c (re_comp): Likewise.
11415         * posix/regexec.c (re_exec): Likewise.
11416         * stdlib/add_n.c [__STDC__]: Make code unconditional.
11417         [!__STDC__]: Remove conditional code.
11418         * stdlib/cmp.c [__STDC__]: Make code unconditional.
11419         [!__STDC__]: Remove conditional code.
11420         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
11421         [!__STDC__]: Remove conditional code.
11422         * stdlib/divrem.c [__STDC__]: Make code unconditional.
11423         [!__STDC__]: Remove conditional code.
11424         * stdlib/lshift.c [__STDC__]: Make code unconditional.
11425         [!__STDC__]: Remove conditional code.
11426         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
11427         [!__STDC__]: Remove conditional code.
11428         * stdlib/mul.c [__STDC__]: Make code unconditional.
11429         [!__STDC__]: Remove conditional code.
11430         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
11431         [!__STDC__]: Remove conditional code.
11432         * stdlib/rshift.c [__STDC__]: Make code unconditional.
11433         [!__STDC__]: Remove conditional code.
11434         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
11435         function definition.
11436         (STRTOF): Likewise.
11437         * stdlib/strtod_l.c (__STRTOF): Likewise.
11438         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
11439         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
11440         (__strtol_l): Likewise.
11441         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
11442         [!__STDC__]: Remove conditional code.
11443         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
11444         definition.
11445         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
11446         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
11447         type.
11448         (__strcasecmp): Convert to prototype-style function definition.
11449         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
11450         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
11451         type.
11452         (__strncasecmp): Convert to prototype-style function definition.
11453         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
11454         * sunrpc/xdr.c (xdr_union): Likewise.
11455         * sunrpc/xdr_array.c (xdr_array): Likewise.
11456         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
11457         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
11458         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
11459         Likewise.
11460         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
11461         Likewise.
11462         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
11463         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
11464         Likewise.
11465         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
11466         (LOCALE_PARAM_PROTO): Likewise.
11467         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
11468         argument type.
11469         (ut_argument_spec): Remove macro.
11470         (ut_argument_spec_iso): Rename to ut_argument_spec.
11471         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
11472         prototype-style function definition.
11473         (memcpy_uppcase): Likewise.
11474         (__strftime_internal): Likewise.
11475         (my_strftime): Likewise.
11476         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
11477         (LOCALE_PARAM_DECL): Likewise.
11478         [_LIBC] (LOCALE_PARAM): Include argument type.
11479         (__strptime_internal): Convert to prototype-style function
11480         definition.
11481         (strptime): Likewise.
11482         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
11483         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
11484         type.
11485         (__wcscasecmp): Convert to prototype-style function definition.
11486         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
11487         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
11488         type.
11489         (__wcsncasecmp): Convert to prototype-style function definition.
11490
11491         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
11492         function definition.
11493         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11494         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11495         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
11496         * elf/dl-minimal.c (_itoa): Likewise.
11497         * hurd/hurdmalloc.c (malloc): Likewise.
11498         (free): Likewise.
11499         (realloc): Likewise.
11500         * inet/inet6_option.c (inet6_option_space): Likewise.
11501         (inet6_option_init): Likewise.
11502         (inet6_option_append): Likewise.
11503         (inet6_option_alloc): Likewise.
11504         (inet6_option_next): Likewise.
11505         (inet6_option_find): Likewise.
11506         * io/ftw.c (FTW_NAME): Likewise.
11507         (NFTW_NAME): Likewise.
11508         (NFTW_NEW_NAME): Likewise.
11509         (NFTW_OLD_NAME): Likewise.
11510         * libio/iofwide.c (_IO_fwide): Likewise.
11511         * libio/strops.c (_IO_str_init_static_internal): Likewise.
11512         (_IO_str_init_static): Likewise.
11513         (_IO_str_init_readonly): Likewise.
11514         (_IO_str_overflow): Likewise.
11515         (_IO_str_underflow): Likewise.
11516         (_IO_str_count): Likewise.
11517         (_IO_str_seekoff): Likewise.
11518         (_IO_str_pbackfail): Likewise.
11519         (_IO_str_finish): Likewise.
11520         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
11521         (_IO_wstr_overflow): Likewise.
11522         (_IO_wstr_underflow): Likewise.
11523         (_IO_wstr_count): Likewise.
11524         (_IO_wstr_seekoff): Likewise.
11525         (_IO_wstr_pbackfail): Likewise.
11526         (_IO_wstr_finish): Likewise.
11527         * locale/programs/localedef.c (normalize_codeset): Likewise.
11528         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
11529         (add_locales_to_archive): Likewise.
11530         (delete_locales_from_archive): Likewise.
11531         * malloc/malloc.c (__libc_mallinfo): Likewise.
11532         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
11533         * misc/tsearch.c (__tfind): Likewise.
11534         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
11535         * nptl/pthread_attr_getdetachstate.c
11536         (__pthread_attr_getdetachstate): Likewise.
11537         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
11538         Likewise.
11539         * nptl/pthread_attr_getinheritsched.c
11540         (__pthread_attr_getinheritsched): Likewise.
11541         * nptl/pthread_attr_getschedparam.c
11542         (__pthread_attr_getschedparam): Likewise.
11543         * nptl/pthread_attr_getschedpolicy.c
11544         (__pthread_attr_getschedpolicy): Likewise.
11545         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
11546         Likewise.
11547         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
11548         Likewise.
11549         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
11550         Likewise.
11551         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
11552         Likewise.
11553         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
11554         (__pthread_attr_init_2_0): Likewise.
11555         * nptl/pthread_attr_setdetachstate.c
11556         (__pthread_attr_setdetachstate): Likewise.
11557         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
11558         Likewise.
11559         * nptl/pthread_attr_setinheritsched.c
11560         (__pthread_attr_setinheritsched): Likewise.
11561         * nptl/pthread_attr_setschedparam.c
11562         (__pthread_attr_setschedparam): Likewise.
11563         * nptl/pthread_attr_setschedpolicy.c
11564         (__pthread_attr_setschedpolicy): Likewise.
11565         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
11566         Likewise.
11567         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
11568         Likewise.
11569         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
11570         Likewise.
11571         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
11572         Likewise.
11573         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
11574         Likewise.
11575         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
11576         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
11577         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
11578         use internal_function.
11579         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
11580         prototype-style function definition.
11581         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
11582         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
11583         internal_function.
11584         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
11585         Convert to prototype-style function definition.
11586         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
11587         Likewise.
11588         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
11589         Likewise.
11590         (__pthread_mutex_unlock): Likewise.
11591         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
11592         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
11593         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
11594         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
11595         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
11596         * nss/makedb.c (process_input): Likewise.
11597         * posix/fnmatch.c (__strchrnul): Likewise.
11598         (__wcschrnul): Likewise.
11599         (fnmatch): Likewise.
11600         * posix/fnmatch_loop.c (FCT): Likewise.
11601         * posix/glob.c (globfree): Likewise.
11602         (__glob_pattern_type): Likewise.
11603         (__glob_pattern_p): Likewise.
11604         * posix/regcomp.c (re_compile_pattern): Likewise.
11605         (re_set_syntax): Likewise.
11606         (re_compile_fastmap): Likewise.
11607         (regcomp): Likewise.
11608         (regerror): Likewise.
11609         (regfree): Likewise.
11610         * posix/regexec.c (regexec): Likewise.
11611         (re_match): Likewise.
11612         (re_search): Likewise.
11613         (re_match_2): Likewise.
11614         (re_search_2): Likewise.
11615         (re_search_stub): Likewise.  Use internal_function
11616         (re_copy_regs): Likewise.
11617         (re_set_registers): Convert to prototype-style function
11618         definition.
11619         (prune_impossible_nodes): Likewise.  Use internal_function.
11620         * resolv/inet_net_pton.c (inet_net_pton): Convert to
11621         prototype-style function definition.
11622         (inet_net_pton_ipv4): Likewise.
11623         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
11624         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
11625         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
11626         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
11627         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
11628         Make variadic.
11629         * time/strptime_l.c (localtime_r): Convert to prototype-style
11630         function definition.
11631         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
11632         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
11633         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
11634         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
11635
11636         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
11637         definition.
11638         (_ufc_doit_r): Likewise.
11639         * crypt/crypt_util.c (_ufc_copymem): Likewise.
11640         (_ufc_output_conversion_r): Likewise.
11641         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
11642         * inet/rcmd.c (rcmd_af): Likewise.
11643         (rcmd): Likewise.
11644         (ruserok_af): Likewise.
11645         (ruserok): Likewise.
11646         (ruserok2_sa): Likewise.
11647         (ruserok_sa): Likewise.
11648         (iruserok_af): Likewise.
11649         (iruserok): Likewise.
11650         (__ivaliduser): Likewise.
11651         (__validuser2_sa): Likewise.
11652         * inet/rexec.c (rexec_af): Likewise.
11653         (rexec): Likewise.
11654         * inet/ruserpass.c (ruserpass): Likewise.
11655         * locale/programs/xmalloc.c (xcalloc): Likewise.
11656         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
11657         * math/w_drem.c (__drem): Likewise.
11658         * math/w_dremf.c (__dremf): Likewise.
11659         * math/w_dreml.c (__dreml): Likewise.
11660         * misc/daemon.c (daemon): Likewise.
11661         * resolv/res_debug.c (p_fqnname): Likewise.
11662         * stdlib/div.c (div): Likewise.
11663         * string/memcmp.c (memcmp_bytes): Likewise.
11664         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
11665         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
11666
11667         * crypt/cert.c (main): Convert to prototype-style function
11668         definition.
11669         * io/pipe.c (__pipe): Likewise.
11670         * io/pipe2.c (__pipe2): Likewise.
11671         * misc/futimesat.c (futimesat): Likewise.
11672         * misc/utimes.c (__utimes): Likewise.
11673         * posix/execve.c (__execve): Likewise.
11674         * posix/execvp.c (execvp): Likewise.
11675         * posix/execvpe.c (__execvpe): Likewise.
11676         * posix/fexecve.c (fexecve): Likewise.
11677         * socket/socketpair.c (socketpair): Likewise.
11678         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
11679         * stdlib/erand48.c (erand48): Likewise.
11680         * stdlib/erand48_r.c (__erand48_r): Likewise.
11681         * stdlib/jrand48.c (jrand48): Likewise.
11682         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
11683         * stdlib/lcong48.c (lcong48): Likewise.
11684         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
11685         * stdlib/nrand48.c (nrand48): Likewise.
11686         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
11687         * stdlib/seed48.c (seed48): Likewise.
11688         * stdlib/seed48_r.c (__seed48_r): Likewise.
11689         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
11690         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
11691         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
11692
11693 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
11694
11695         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
11696         * configure: Regenerated.
11697         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
11698         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
11699         unconditional.
11700         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
11701         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
11702         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
11703         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
11704         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
11705         unconditional.
11706         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
11707
11708         * posix/Makefile (CFLAGS-regex.c): Remove variable.
11709         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
11710
11711         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
11712         function definition.
11713         * crypt/crypt_util.c (__encrypt_r): Likewise.
11714         * libio/genops.c (_IO_no_init): Likewise.
11715         * libio/iofopncook.c (_IO_fopencookie): Likewise.
11716         (_IO_old_fopencookie): Likewise.
11717         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
11718         * libio/iogetline.c (_IO_getline): Likewise.
11719         (_IO_getline_info): Likewise.
11720         * libio/iogetwline.c (_IO_getwline): Likewise.
11721         (_IO_getwline_info): Likewise.
11722         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
11723         * libio/vswprintf.c (_IO_vswprintf): Likewise.
11724         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
11725         (find_entry): Likewise.
11726         (iterate_table): Likewise.
11727         (lookup): Likewise.
11728         * login/forkpty.c (forkpty): Likewise.
11729         * misc/hsearch_r.c (__hsearch_r): Likewise.
11730         * misc/select.c (__select): Likewise.
11731         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
11732         Likewise.
11733         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
11734         Likewise.
11735         * nptl/old_pthread_cond_timedwait.c
11736         (__pthread_cond_timedwait_2_0): Likewise.
11737         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
11738         * nptl/pthread_barrierattr_getpshared.c
11739         (pthread_barrierattr_getpshared): Likewise.
11740         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
11741         Likewise.
11742         * nptl/pthread_mutex_setprioceiling.c
11743         (pthread_mutex_setprioceiling): Likewise.
11744         * nptl/pthread_mutexattr_getprioceiling.c
11745         (pthread_mutexattr_getprioceiling): Likewise.
11746         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
11747         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
11748         Likewise.
11749         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
11750         Likewise.
11751         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
11752         Likewise.
11753         * socket/recvfrom.c (__recvfrom): Likewise.
11754         * socket/sendto.c (__sendto): Likewise.
11755         * socket/setsockopt.c (__setsockopt): Likewise.
11756         * stdio-common/_itoa.c (_itoa): Likewise.
11757         * stdio-common/_itowa.c (_itowa): Likewise.
11758         * stdio-common/reg-printf.c (__register_printf_specifier):
11759         Likewise.
11760         (__register_printf_function): Likewise.
11761         * stdio-common/tempname.c (__path_search): Likewise.
11762         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
11763         * stdlib/mul_1.c (mpn_mul_1): Likewise.
11764         * stdlib/random_r.c (__initstate_r): Likewise.
11765         * stdlib/setenv.c (__add_to_environ): Likewise.
11766         * stdlib/submul_1.c (mpn_submul_1): Likewise.
11767         * streams/getpmsg.c (getpmsg): Likewise.
11768         * streams/putmsg.c (putmsg): Likewise.
11769         * streams/putpmsg.c (putpmsg): Likewise.
11770         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
11771         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
11772         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
11773         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
11774         * sunrpc/pm_getport.c (pmap_getport): Likewise.
11775         * sunrpc/svc_udp.c (cache_get): Likewise.
11776         * sunrpc/xdr_array.c (xdr_vector): Likewise.
11777         * sysdeps/mach/hurd/getcwd.c
11778         (__canonicalize_directory_name_internal): Likewise.
11779         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
11780         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
11781         * sysdeps/mach/hurd/select.c (__select): Likewise.
11782         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
11783         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
11784         * sysdeps/sparc/nptl/pthread_barrier_init.c
11785         (__pthread_barrier_init): Likewise.
11786         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
11787         (__pthread_cond_timedwait): Likewise.
11788         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
11789         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
11790         Likewise.
11791         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
11792         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
11793         Likewise.
11794         * sysvipc/semtimedop.c (semtimedop): Likewise.
11795         * time/setitimer.c (__setitimer): Likewise.
11796         * time/strftime_l.c (emacs_strftime): Likewise.
11797
11798 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
11799
11800         * config.make.in (have-ssp): Delete.
11801         (stack-protector): New variable.
11802         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
11803         cache test for -fstack-protector-strong.  Export stack_protector to
11804         the best ssp flag.
11805         * configure: Regenerated.
11806         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
11807         * nscd/Makefile (CFLAGS-nscd): Likewise.
11808         * resolv/Makefile (CFLAGS-libresolv): Likewise.
11809
11810 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
11811
11812         [BZ #19122]
11813         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
11814         attribute_hidden.
11815
11816 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11817
11818         [BZ #18743]
11819         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
11820         code to...
11821         (ELIDE_LOCK): ...here.
11822         (__get_new_count): New function with part of the code from
11823         __elide_lock that updates the value of adapt_count after a
11824         transaction abort.
11825         (__elided_trylock): Moved this code to...
11826         (ELIDE_TRYLOCK): ...here.
11827
11828 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
11829
11830         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
11831         * configure: Regenerate.
11832         * INSTALL: Regenerate.
11833         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
11834         and tweak grammar.
11835
11836 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
11837
11838         * login/programs/pt_chown.c: Include signal.h
11839         (main): Clear any signal mask from the parent process.
11840
11841 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
11842
11843         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
11844         * configure: Regenerated.
11845         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
11846         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
11847         $(gnu89-inline-CFLAGS).
11848
11849         * configure.ac (libc_cv_asm_weak_directive): Remove configure
11850         test.
11851         (libc_cv_asm_weakext_directive): Likewise.
11852         * configure: Regenerated.
11853         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
11854         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
11855         * include/libc-symbols.h
11856         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
11857         #error.
11858         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
11859         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
11860
11861         * sysdeps/arm/backtrace.c (__backtrace): Convert to
11862         prototype-style function definition.
11863         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
11864         * sysdeps/i386/ffs.c (__ffs): Likewise.
11865         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
11866         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
11867         Likewise.
11868         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
11869         Likewise.
11870         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
11871         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
11872         Likewise.
11873         * sysdeps/m68k/ffs.c (__ffs): Likewise.
11874         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
11875         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
11876         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
11877         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
11878         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
11879         * sysdeps/mach/hurd/access.c (__access): Likewise.
11880         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
11881         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
11882         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
11883         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
11884         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
11885         (cthread_getspecific): Likewise.
11886         (cthread_setspecific): Likewise.
11887         (__libc_getspecific): Likewise.
11888         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
11889         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
11890         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
11891         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
11892         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
11893         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
11894         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
11895         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
11896         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
11897         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
11898         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
11899         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
11900         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
11901         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
11902         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
11903         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
11904         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
11905         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
11906         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
11907         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
11908         * sysdeps/mach/hurd/link.c (__link): Likewise.
11909         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
11910         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
11911         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
11912         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
11913         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
11914         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
11915         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
11916         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
11917         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
11918         * sysdeps/mach/hurd/rename.c (rename): Likewise.
11919         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
11920         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
11921         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
11922         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
11923         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
11924         * sysdeps/mach/hurd/send.c (__send): Likewise.
11925         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
11926         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
11927         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
11928         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
11929         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
11930         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
11931         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
11932         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
11933         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
11934         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
11935         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
11936         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
11937         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
11938         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
11939         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
11940         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
11941         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
11942         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
11943         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
11944         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
11945         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
11946         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
11947         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
11948         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
11949         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
11950         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
11951         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
11952         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
11953         * sysdeps/posix/alarm.c (alarm): Likewise.
11954         * sysdeps/posix/cuserid.c (cuserid): Likewise.
11955         * sysdeps/posix/dirfd.c (dirfd): Likewise.
11956         * sysdeps/posix/dup.c (__dup): Likewise.
11957         * sysdeps/posix/dup2.c (__dup2): Likewise.
11958         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
11959         (main): Likewise.
11960         * sysdeps/posix/flock.c (__flock): Likewise.
11961         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
11962         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
11963         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
11964         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
11965         * sysdeps/posix/isatty.c (__isatty): Likewise.
11966         * sysdeps/posix/killpg.c (killpg): Likewise.
11967         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
11968         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
11969         * sysdeps/posix/raise.c (raise): Likewise.
11970         * sysdeps/posix/remove.c (remove): Likewise.
11971         * sysdeps/posix/rename.c (rename): Likewise.
11972         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
11973         * sysdeps/posix/seekdir.c (seekdir): Likewise.
11974         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
11975         * sysdeps/posix/sigignore.c (sigignore): Likewise.
11976         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
11977         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
11978         * sysdeps/posix/sigset.c (sigset): Likewise.
11979         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
11980         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
11981         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
11982         * sysdeps/posix/time.c (time): Likewise.
11983         * sysdeps/posix/ttyname.c (getttyname): Likewise.
11984         (ttyname): Likewise.
11985         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
11986         * sysdeps/posix/utime.c (utime): Likewise.
11987         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
11988         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
11989         Likewise.
11990         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
11991         (pthread_spin_trylock): Likewise.
11992         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
11993         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
11994         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
11995         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
11996         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
11997         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
11998         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
11999         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
12000         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
12001         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
12002         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
12003         * sysdeps/s390/ffs.c (__ffs): Likewise.
12004         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
12005         Likewise.
12006         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
12007         Likewise.
12008         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
12009         Likewise.
12010         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
12011         (pthread_barrier_destroy): Likewise.
12012         * sysdeps/sparc/nptl/pthread_barrier_wait.c
12013         (__pthread_barrier_wait): Likewise.
12014         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
12015         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
12016         (__pthread_barrier_wait): Likewise.
12017         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
12018         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
12019         (memcmp_not_common_alignment): Likewise.
12020         (MEMCMP): Likewise.
12021         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
12022         (_wordcopy_fwd_dest_aligned): Likewise.
12023         (_wordcopy_bwd_aligned): Likewise.
12024         (_wordcopy_bwd_dest_aligned): Likewise.
12025         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
12026         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
12027         * sysdeps/unix/bsd/stty.c (stty): Likewise.
12028         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
12029         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
12030         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
12031         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
12032         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
12033         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
12034         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
12035         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
12036         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
12037         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
12038         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
12039         * sysdeps/unix/stime.c (stime): Likewise.
12040         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
12041         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
12042         Likewise.  Use internal_function.
12043         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
12044         Convert to prototype-style function definition.
12045         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
12046         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
12047         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
12048         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
12049         Likewise.  Use internal_function.
12050         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
12051         prototype-style function definition
12052         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12053         Likewise.
12054         (__getlogin_r): Likewise.
12055         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
12056         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
12057         (__pthread_cond_broadcast): Likewise.
12058         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
12059         (__pthread_cond_destroy): Likewise.
12060         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
12061         (__pthread_cond_init): Likewise.
12062         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
12063         (__pthread_cond_signal): Likewise.
12064         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
12065         (__pthread_cond_wait): Likewise.
12066         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
12067         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
12068         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
12069         Likewise.
12070         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
12071         Likewise.
12072         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
12073         Likewise.
12074         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
12075         Likewise.
12076         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
12077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
12078         (__ftruncate64): Likewise.
12079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
12080         (truncate64): Likewise.
12081         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
12082         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
12083         (pthread_getcpuclockid): Likewise.
12084         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
12085         Likewise.
12086         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
12087         Likewise.
12088         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
12089         Likewise.
12090         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
12091         Likewise.
12092         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
12093         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
12094         (__libc_sigaction): Likewise.
12095         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
12096         Likewise.
12097         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
12098         (__sigprocmask): Likewise.
12099         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
12100         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
12101         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
12102         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
12103         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
12104         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
12105         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
12106         Likewise.
12107         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
12108         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
12109         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
12110         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
12111         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
12112         Likewise.
12113         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
12114         (__sigprocmask): Likewise.
12115         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
12116         (cfgetispeed): Likewise.
12117         (cfsetospeed): Likewise.
12118         (cfsetispeed): Likewise.
12119         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
12120         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
12121         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
12122         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
12123         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
12124         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
12125         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
12126         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
12127         Likewise.
12128         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
12129         Likewise.
12130         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
12131         Likewise.
12132         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
12133         Likewise.
12134         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
12135
12136 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12137
12138         sunrpc: Rewrite with explicit TLS access using __thread.
12139         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
12140         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
12141         directly.
12142         (__rpc_thread_variables): Access thread_rpc_vars directly.
12143         Eliminate redundant assignment of the tvp variable.
12144
12145 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12146
12147         malloc: Rewrite with explicit TLS access using __thread.
12148         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
12149         (tsd_setspecific, tsd_getspecific): Remove.
12150         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
12151         (tsd_setspecific, tsd_getspecific): Likewise.
12152         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
12153         (tsd_setspecific, tsd_getspecific): Likewise.
12154         * malloc/arena.c (thread_arena): New TLS variable.
12155         (arena_key): Remove variable.
12156         (arena_get): Use thread_arena.
12157         (arena_lookup): Remove macro.
12158         (malloc_atfork, free_atfork, ptmalloc_lock_all)
12159         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
12160         (_int_new_arena, get_free_list, reused_arena)
12161         (arena_thread_freeres): Use thread_arena.
12162         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
12163         tsd_getspecific, tsd_setspecific from safety annotations.
12164         (Allocating Cleared Space): Remove arena_lookup from safety
12165         annotations.
12166
12167 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12168
12169         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
12170         struct scratch_buffer instead of extend_alloca.
12171
12172 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12173
12174         * sysdeps/unix/sysv/linux/kernel-features.h
12175         (__ASSUME_SOCK_CLOEXEC): Remove.
12176         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
12177         (__have_paccept): Remove unused macro.
12178         * include/unistd.h (__have_sock_cloexec): Remove declaration.
12179         * misc/syslog.c (openlog_internal): Remove fallback code for
12180         !__ASSUME_SOCK_CLOEXEC.
12181         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
12182         missing SOCK_CLOEXEC.
12183         * nscd/connections.c (have_sock_cloexec): Remove definition.
12184         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
12185         * nscd/nscd_helper.c (open_socket): Remove fallback code for
12186         !__ASSUME_SOCK_CLOEXEC.
12187         * resolv/res_send.c (__have_o_nonblock): Remove definition.
12188         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
12189         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
12190         definition.
12191         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
12192         code for !__ASSUME_SOCK_CLOEXEC.
12193
12194 2015-10-17  Florian Weimer  <fweimer@redhat.com>
12195
12196         [BZ #18982]
12197         * manual/stdio.texi (Variable Arguments Output): Add portability
12198         note, explaining that vfprintf clobbers the va_list pointer.
12199
12200 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
12201
12202         * math/libm-test.inc (fabs_test_data): Add more tests.
12203         (fdim_test_data): Likewise.
12204         (fma_test_data): Likewise.
12205         (fmax_test_data): Likewise.
12206         (fmin_test_data): Likewise.
12207         (fmod_test_data): Likewise.
12208
12209 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
12210
12211         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
12212         data.
12213
12214 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
12215
12216         * math/libm-test.inc (ceil_test_data): Add more tests and more
12217         expectations for "inexact".
12218         (floor_test_data): Add more tests.
12219         (round_test_data): Likewise.
12220         (trunc_test_data): Likewise.
12221
12222         * crypt/cert.c (good_bye): Convert to prototype-style function
12223         definition.
12224         (get8): Likewise.
12225         (put8): Likewise.
12226         * crypt/crypt-entry.c (crypt): Likewise.
12227         (__fcrypt): Likewise.
12228         * crypt/crypt_util.c (_ufc_prbits): Likewise.
12229         (_ufc_set_bits): Likewise.
12230         (_ufc_clearmem): Likewise.
12231         (__init_des_r): Likewise.
12232         (shuffle_sb): Likewise.
12233         (shuffle_sb): Likewise.
12234         (_ufc_setup_salt_r): Likewise.
12235         (_ufc_mk_keytab_r): Likewise.
12236         (_ufc_dofinalperm_r): Likewise.
12237         (encrypt): Likewise.
12238         (__setkey_r): Likewise.
12239         (setkey): Likewise.
12240         * crypt/md5.c (md5_init_ctx): Likewise.
12241         (md5_read_ctx): Likewise.
12242         (md5_finish_ctx): Likewise.
12243         (md5_stream): Likewise.
12244         (md5_buffer): Likewise.
12245         (md5_process_bytes): Likewise.
12246         * crypt/sha256.c (__sha256_init_ctx): Likewise.
12247         (__sha256_finish_ctx): Likewise.
12248         (__sha256_process_bytes): Likewise.
12249         * crypt/sha512.c (__sha512_init_ctx): Likewise.
12250         (__sha512_finish_ctx): Likewise.
12251         (__sha512_process_bytes): Likewise.
12252         * ctype/isctype.c (__isctype): Likewise.
12253         * debug/backtrace.c (__backtrace): Likewise.
12254         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
12255         * debug/fgets_chk.c (__fgets_chk): Likewise.
12256         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
12257         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
12258         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
12259         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
12260         * debug/memset_chk.c (__memset_chk): Likewise.
12261         * debug/strcat_chk.c (__strcat_chk): Likewise.
12262         * debug/strncat_chk.c (__strncat_chk): Likewise.
12263         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
12264         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
12265         * dirent/dirfd.c (dirfd): Likewise.
12266         * dirent/getdents.c (__getdirentries): Likewise.
12267         * dirent/getdents64.c (getdirentries64): Likewise.
12268         * dirent/rewinddir.c (__rewinddir): Likewise.
12269         * dirent/seekdir.c (seekdir): Likewise.
12270         * dirent/telldir.c (telldir): Likewise.
12271         * elf/sln.c (makesymlinks): Likewise.
12272         (makesymlink): Likewise.
12273         * gmon/gmon.c (__moncontrol): Likewise.
12274         (__monstartup): Likewise.
12275         (write_hist): Likewise.
12276         (write_call_graph): Likewise.
12277         (write_bb_counts): Likewise.
12278         * grp/setgroups.c (setgroups): Likewise.
12279         * inet/inet_lnaof.c (inet_lnaof): Likewise.
12280         * inet/inet_net.c (inet_network): Likewise.
12281         * inet/inet_netof.c (inet_netof): Likewise.
12282         * inet/rcmd.c (rresvport_af): Likewise.
12283         (rresvport): Likewise.
12284         * io/access.c (__access): Likewise.
12285         * io/chdir.c (__chdir): Likewise.
12286         * io/chmod.c (__chmod): Likewise.
12287         * io/chown.c (__chown): Likewise.
12288         * io/close.c (__close): Likewise.
12289         * io/creat.c (creat): Likewise.
12290         * io/creat64.c (creat64): Likewise.
12291         * io/dup.c (__dup): Likewise.
12292         * io/dup2.c (__dup2): Likewise.
12293         * io/dup3.c (__dup3): Likewise.
12294         * io/euidaccess.c (__euidaccess): Likewise.
12295         * io/faccessat.c (faccessat): Likewise.
12296         * io/fchmod.c (__fchmod): Likewise.
12297         * io/fchmodat.c (fchmodat): Likewise.
12298         * io/fchown.c (__fchown): Likewise.
12299         * io/fchownat.c (fchownat): Likewise.
12300         * io/fcntl.c (__fcntl): Likewise.
12301         * io/flock.c (__flock): Likewise.
12302         * io/fts.c (fts_load): Likewise.
12303         (fts_close): Likewise.
12304         (fts_read): Likewise.
12305         (fts_set): Likewise.
12306         (fts_children): Likewise.
12307         (fts_build): Likewise.
12308         (fts_stat): Likewise.
12309         (fts_sort): Likewise.
12310         (fts_alloc): Likewise.
12311         (fts_lfree): Likewise.
12312         (fts_palloc): Likewise.
12313         (fts_padjust): Likewise.
12314         (fts_maxarglen): Likewise.
12315         (fts_safe_changedir): Likewise.
12316         * io/getwd.c (getwd): Likewise.
12317         * io/isatty.c (__isatty): Likewise.
12318         * io/lchown.c (__lchown): Likewise.
12319         * io/link.c (__link): Likewise.
12320         * io/linkat.c (linkat): Likewise.
12321         * io/lseek.c (__libc_lseek): Likewise.
12322         * io/mkdir.c (__mkdir): Likewise.
12323         * io/mkdirat.c (mkdirat): Likewise.
12324         * io/mkfifo.c (mkfifo): Likewise.
12325         * io/mkfifoat.c (mkfifoat): Likewise.
12326         * io/open.c (__libc_open): Likewise.
12327         * io/open64.c (__libc_open64): Likewise.
12328         * io/readlink.c (__readlink): Likewise.
12329         * io/readlinkat.c (readlinkat): Likewise.
12330         * io/rmdir.c (__rmdir): Likewise.
12331         * io/symlink.c (__symlink): Likewise.
12332         * io/symlinkat.c (symlinkat): Likewise.
12333         * io/ttyname.c (ttyname): Likewise.
12334         * io/ttyname_r.c (__ttyname_r): Likewise.
12335         * io/umask.c (__umask): Likewise.
12336         * io/unlink.c (__unlink): Likewise.
12337         * io/unlinkat.c (unlinkat): Likewise.
12338         * io/utime.c (utime): Likewise.
12339         * libio/clearerr.c (clearerr): Likewise.
12340         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
12341         * libio/feof.c (_IO_feof): Likewise.
12342         * libio/feof_u.c (feof_unlocked): Likewise.
12343         * libio/ferror.c (_IO_ferror): Likewise.
12344         * libio/ferror_u.c (ferror_unlocked): Likewise.
12345         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
12346         * libio/fileno.c (__fileno): Likewise.
12347         * libio/fputc.c (fputc): Likewise.
12348         * libio/fputc_u.c (fputc_unlocked): Likewise.
12349         * libio/fputwc.c (fputwc): Likewise.
12350         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
12351         * libio/freopen.c (freopen): Likewise.
12352         * libio/freopen64.c (freopen64): Likewise.
12353         * libio/fseek.c (fseek): Likewise.
12354         * libio/fseeko.c (fseeko): Likewise.
12355         * libio/fseeko64.c (fseeko64): Likewise.
12356         * libio/ftello.c (__ftello): Likewise.
12357         * libio/ftello64.c (ftello64): Likewise.
12358         * libio/fwide.c (fwide): Likewise.
12359         * libio/genops.c (_IO_un_link): Likewise.
12360         (_IO_link_in): Likewise.
12361         (_IO_least_marker): Likewise.
12362         (_IO_switch_to_main_get_area): Likewise.
12363         (_IO_switch_to_backup_area): Likewise.
12364         (_IO_switch_to_get_mode): Likewise.
12365         (_IO_free_backup_area): Likewise.
12366         (_IO_switch_to_put_mode): Likewise.
12367         (__overflow): Likewise.
12368         (__underflow): Likewise.
12369         (__uflow): Likewise.
12370         (_IO_setb): Likewise.
12371         (_IO_doallocbuf): Likewise.
12372         (_IO_default_underflow): Likewise.
12373         (_IO_default_uflow): Likewise.
12374         (_IO_default_xsputn): Likewise.
12375         (_IO_sgetn): Likewise.
12376         (_IO_default_xsgetn): Likewise.
12377         (_IO_sync): Likewise.
12378         (_IO_default_setbuf): Likewise.
12379         (_IO_default_seekpos): Likewise.
12380         (_IO_default_doallocate): Likewise.
12381         (_IO_init): Likewise.
12382         (_IO_old_init): Likewise.
12383         (_IO_default_sync): Likewise.
12384         (_IO_default_finish): Likewise.
12385         (_IO_default_seekoff): Likewise.
12386         (_IO_sputbackc): Likewise.
12387         (_IO_sungetc): Likewise.
12388         (_IO_set_column): Likewise.
12389         (_IO_set_column): Likewise.
12390         (_IO_adjust_column): Likewise.
12391         (_IO_get_column): Likewise.
12392         (_IO_init_marker): Likewise.
12393         (_IO_remove_marker): Likewise.
12394         (_IO_marker_difference): Likewise.
12395         (_IO_marker_delta): Likewise.
12396         (_IO_seekmark): Likewise.
12397         (_IO_unsave_markers): Likewise.
12398         (_IO_nobackup_pbackfail): Likewise.
12399         (_IO_default_pbackfail): Likewise.
12400         (_IO_default_seek): Likewise.
12401         (_IO_default_stat): Likewise.
12402         (_IO_default_read): Likewise.
12403         (_IO_default_write): Likewise.
12404         (_IO_default_showmanyc): Likewise.
12405         (_IO_default_imbue): Likewise.
12406         (_IO_iter_next): Likewise.
12407         (_IO_iter_file): Likewise.
12408         * libio/getc.c (_IO_getc): Likewise.
12409         * libio/getwc.c (_IO_getwc): Likewise.
12410         * libio/iofclose.c (_IO_new_fclose): Likewise.
12411         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
12412         * libio/iofflush.c (_IO_fflush): Likewise.
12413         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
12414         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
12415         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
12416         * libio/iofgets.c (_IO_fgets): Likewise.
12417         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
12418         * libio/iofgetws.c (fgetws): Likewise.
12419         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
12420         * libio/iofopen64.c (_IO_fopen64): Likewise.
12421         * libio/iofopncook.c (_IO_cookie_read): Likewise.
12422         (_IO_cookie_write): Likewise.
12423         (_IO_cookie_seek): Likewise.
12424         (_IO_cookie_close): Likewise.
12425         (_IO_cookie_seekoff): Likewise.
12426         (_IO_old_cookie_seek): Likewise.
12427         * libio/iofputs.c (_IO_fputs): Likewise.
12428         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
12429         * libio/iofputws.c (fputws): Likewise.
12430         * libio/iofputws_u.c (fputws_unlocked): Likewise.
12431         * libio/iofread.c (_IO_fread): Likewise.
12432         * libio/iofread_u.c (__fread_unlocked): Likewise.
12433         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
12434         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
12435         * libio/ioftell.c (_IO_ftell): Likewise.
12436         * libio/iofwrite.c (_IO_fwrite): Likewise.
12437         * libio/iogetdelim.c (_IO_getdelim): Likewise.
12438         * libio/iogets.c (_IO_gets): Likewise.
12439         * libio/iopadn.c (_IO_padn): Likewise.
12440         * libio/iopopen.c (_IO_new_proc_open): Likewise.
12441         (_IO_new_popen): Likewise.
12442         (_IO_new_proc_close): Likewise.
12443         * libio/ioputs.c (_IO_puts): Likewise.
12444         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
12445         (_IO_seekoff): Likewise.
12446         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
12447         (_IO_seekpos): Likewise.
12448         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
12449         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
12450         * libio/ioungetc.c (_IO_ungetc): Likewise.
12451         * libio/ioungetwc.c (ungetwc): Likewise.
12452         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
12453         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
12454         * libio/iowpadn.c (_IO_wpadn): Likewise.
12455         * libio/libc_fatal.c (__libc_fatal): Likewise.
12456         * libio/memstream.c (__open_memstream): Likewise.
12457         (_IO_mem_sync): Likewise.
12458         (_IO_mem_finish): Likewise.
12459         * libio/oldfileops.c (_IO_old_file_init): Likewise.
12460         (_IO_old_file_close_it): Likewise.
12461         (_IO_old_file_finish): Likewise.
12462         (_IO_old_file_fopen): Likewise.
12463         (_IO_old_file_attach): Likewise.
12464         (_IO_old_file_setbuf): Likewise.
12465         (_IO_old_do_write): Likewise.
12466         (old_do_write): Likewise.
12467         (_IO_old_file_underflow): Likewise.
12468         (_IO_old_file_overflow): Likewise.
12469         (_IO_old_file_sync): Likewise.
12470         (_IO_old_file_seekoff): Likewise.
12471         (_IO_old_file_write): Likewise.
12472         (_IO_old_file_xsputn): Likewise.
12473         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
12474         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
12475         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
12476         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
12477         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
12478         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
12479         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
12480         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
12481         (_IO_old_popen): Likewise.
12482         (_IO_old_proc_close): Likewise.
12483         * libio/oldpclose.c (__old_pclose): Likewise.
12484         * libio/pclose.c (__new_pclose): Likewise.
12485         * libio/peekc.c (_IO_peekc_locked): Likewise.
12486         * libio/putc.c (_IO_putc): Likewise.
12487         * libio/putc_u.c (putc_unlocked): Likewise.
12488         * libio/putchar.c (putchar): Likewise.
12489         * libio/putchar_u.c (putchar_unlocked): Likewise.
12490         * libio/putwc.c (putwc): Likewise.
12491         * libio/putwc_u.c (putwc_unlocked): Likewise.
12492         * libio/putwchar.c (putwchar): Likewise.
12493         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
12494         * libio/rewind.c (rewind): Likewise.
12495         * libio/setbuf.c (setbuf): Likewise.
12496         * libio/setlinebuf.c (setlinebuf): Likewise.
12497         * libio/vasprintf.c (_IO_vasprintf): Likewise.
12498         * libio/vscanf.c (_IO_vscanf): Likewise.
12499         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
12500         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
12501         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
12502         * libio/wgenops.c (_IO_least_wmarker): Likewise.
12503         (_IO_switch_to_main_wget_area): Likewise.
12504         (_IO_switch_to_wbackup_area): Likewise.
12505         (_IO_wsetb): Likewise.
12506         (_IO_wdefault_pbackfail): Likewise.
12507         (_IO_wdefault_finish): Likewise.
12508         (_IO_wdefault_uflow): Likewise.
12509         (__woverflow): Likewise.
12510         (__wuflow): Likewise.
12511         (__wunderflow): Likewise.
12512         (_IO_wdefault_xsputn): Likewise.
12513         (_IO_wdefault_xsgetn): Likewise.
12514         (_IO_wdoallocbuf): Likewise.
12515         (_IO_wdefault_doallocate): Likewise.
12516         (_IO_switch_to_wget_mode): Likewise.
12517         (_IO_free_wbackup_area): Likewise.
12518         (_IO_switch_to_wput_mode): Likewise.
12519         (_IO_sputbackwc): Likewise.
12520         (_IO_sungetwc): Likewise.
12521         (_IO_adjust_wcolumn): Likewise.
12522         (_IO_init_wmarker): Likewise.
12523         (_IO_wmarker_delta): Likewise.
12524         (_IO_seekwmark): Likewise.
12525         (_IO_unsave_wmarkers): Likewise.
12526         * libio/wmemstream.c (open_wmemstream): Likewise.
12527         (_IO_wmem_sync): Likewise.
12528         (_IO_wmem_finish): Likewise.
12529         * locale/nl_langinfo.c (nl_langinfo): Likewise.
12530         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
12531         * locale/programs/simple-hash.c (init_hash): Likewise.
12532         (delete_hash): Likewise.
12533         (insert_entry): Likewise.
12534         (set_entry): Likewise.
12535         (next_prime): Likewise.
12536         (is_prime): Likewise.
12537         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
12538         (xmalloc): Likewise.
12539         (xrealloc): Likewise.
12540         * locale/programs/xstrdup.c (xstrdup): Likewise.
12541         * localedata/collate-test.c (xstrcoll): Likewise.
12542         * localedata/xfrm-test.c (xstrcmp): Likewise.
12543         * login/getlogin_r.c (__getlogin_r): Likewise.
12544         * login/getpt.c (__posix_openpt): Likewise.
12545         * login/login_tty.c (login_tty): Likewise.
12546         * login/setlogin.c (setlogin): Likewise.
12547         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
12548         (mach_msg_destroy_port): Likewise.
12549         (mach_msg_destroy_memory): Likewise.
12550         * malloc/mcheck.c (flood): Likewise.
12551         * misc/acct.c (acct): Likewise.
12552         * misc/brk.c (__brk): Likewise.
12553         * misc/chflags.c (chflags): Likewise.
12554         * misc/chroot.c (chroot): Likewise.
12555         * misc/fchflags.c (fchflags): Likewise.
12556         * misc/fstab.c (getfsspec): Likewise.
12557         (getfsfile): Likewise.
12558         * misc/fsync.c (fsync): Likewise.
12559         * misc/ftruncate.c (__ftruncate): Likewise.
12560         * misc/ftruncate64.c (__ftruncate64): Likewise.
12561         * misc/getdomain.c (getdomainname): Likewise.
12562         (getdomainname): Likewise.
12563         * misc/gethostname.c (__gethostname): Likewise.
12564         * misc/getpass.c (getpass): Likewise.
12565         * misc/getttyent.c (skip): Likewise.
12566         (value): Likewise.
12567         * misc/gtty.c (gtty): Likewise.
12568         * misc/hsearch.c (hsearch): Likewise.
12569         (hcreate): Likewise.
12570         * misc/hsearch_r.c (__hcreate_r): Likewise.
12571         (__hdestroy_r): Likewise.
12572         * misc/ioctl.c (__ioctl): Likewise.
12573         * misc/mkdtemp.c (mkdtemp): Likewise.
12574         * misc/mkostemp.c (mkostemp): Likewise.
12575         * misc/mkostemp64.c (mkostemp64): Likewise.
12576         * misc/mkostemps.c (mkostemps): Likewise.
12577         * misc/mkostemps64.c (mkostemps64): Likewise.
12578         * misc/mkstemp.c (mkstemp): Likewise.
12579         * misc/mkstemp64.c (mkstemp64): Likewise.
12580         * misc/mkstemps.c (mkstemps): Likewise.
12581         * misc/mkstemps64.c (mkstemps64): Likewise.
12582         * misc/mktemp.c (__mktemp): Likewise.
12583         * misc/preadv.c (preadv): Likewise.
12584         * misc/preadv64.c (preadv64): Likewise.
12585         * misc/pwritev.c (pwritev): Likewise.
12586         * misc/pwritev64.c (pwritev64): Likewise.
12587         * misc/readv.c (__readv): Likewise.
12588         * misc/revoke.c (revoke): Likewise.
12589         * misc/setdomain.c (setdomainname): Likewise.
12590         * misc/setegid.c (setegid): Likewise.
12591         * misc/seteuid.c (seteuid): Likewise.
12592         * misc/sethostid.c (sethostid): Likewise.
12593         * misc/sethostname.c (sethostname): Likewise.
12594         * misc/setregid.c (__setregid): Likewise.
12595         * misc/setreuid.c (__setreuid): Likewise.
12596         * misc/sstk.c (sstk): Likewise.
12597         * misc/stty.c (stty): Likewise.
12598         * misc/syscall.c (syscall): Likewise.
12599         * misc/syslog.c (setlogmask): Likewise.
12600         * misc/truncate.c (__truncate): Likewise.
12601         * misc/truncate64.c (truncate64): Likewise.
12602         * misc/ualarm.c (ualarm): Likewise.
12603         * misc/usleep.c (usleep): Likewise.
12604         * misc/ustat.c (ustat): Likewise.
12605         * misc/writev.c (__writev): Likewise.
12606         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
12607         * nptl/old_pthread_cond_broadcast.c
12608         (__pthread_cond_broadcast_2_0): Likewise.
12609         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
12610         Likewise.
12611         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
12612         Likewise.
12613         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
12614         Likewise.
12615         * nptl/pt-raise.c (raise): Likewise.
12616         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
12617         Likewise.
12618         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
12619         * nptl/pthread_barrierattr_destroy.c
12620         (pthread_barrierattr_destroy): Likewise.
12621         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
12622         Likewise.
12623         * nptl/pthread_barrierattr_setpshared.c
12624         (pthread_barrierattr_setpshared): Likewise.
12625         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
12626         Likewise.
12627         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
12628         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
12629         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
12630         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
12631         Likewise.
12632         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
12633         Likewise.
12634         * nptl/pthread_condattr_getpshared.c
12635         (pthread_condattr_getpshared): Likewise.
12636         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
12637         Likewise.
12638         * nptl/pthread_condattr_setpshared.c
12639         (pthread_condattr_setpshared): Likewise.
12640         * nptl/pthread_detach.c (pthread_detach): Likewise.
12641         * nptl/pthread_equal.c (__pthread_equal): Likewise.
12642         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
12643         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
12644         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
12645         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
12646         Likewise.
12647         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
12648         Likewise.
12649         * nptl/pthread_mutex_getprioceiling.c
12650         (pthread_mutex_getprioceiling): Likewise.
12651         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
12652         Likewise.
12653         * nptl/pthread_mutexattr_getprotocol.c
12654         (pthread_mutexattr_getprotocol): Likewise.
12655         * nptl/pthread_mutexattr_getpshared.c
12656         (pthread_mutexattr_getpshared): Likewise.
12657         * nptl/pthread_mutexattr_getrobust.c
12658         (pthread_mutexattr_getrobust): Likewise.
12659         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
12660         Likewise.
12661         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
12662         Likewise.
12663         * nptl/pthread_mutexattr_setprioceiling.c
12664         (pthread_mutexattr_setprioceiling): Likewise.
12665         * nptl/pthread_mutexattr_setprotocol.c
12666         (pthread_mutexattr_setprotocol): Likewise.
12667         * nptl/pthread_mutexattr_setpshared.c
12668         (pthread_mutexattr_setpshared): Likewise.
12669         * nptl/pthread_mutexattr_setrobust.c
12670         (pthread_mutexattr_setrobust): Likewise.
12671         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
12672         Likewise.
12673         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
12674         Likewise.
12675         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
12676         Likewise.
12677         * nptl/pthread_rwlockattr_getkind_np.c
12678         (pthread_rwlockattr_getkind_np): Likewise.
12679         * nptl/pthread_rwlockattr_getpshared.c
12680         (pthread_rwlockattr_getpshared): Likewise.
12681         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
12682         Likewise.
12683         * nptl/pthread_rwlockattr_setkind_np.c
12684         (pthread_rwlockattr_setkind_np): Likewise.
12685         * nptl/pthread_rwlockattr_setpshared.c
12686         (pthread_rwlockattr_setpshared): Likewise.
12687         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
12688         Likewise.
12689         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
12690         Likewise.
12691         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
12692         Likewise.
12693         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
12694         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
12695         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
12696         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
12697         * nptl/sem_close.c (sem_close): Likewise.
12698         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
12699         * nptl/sem_init.c (__old_sem_init): Likewise.
12700         * nptl/sigaction.c (__sigaction): Likewise.
12701         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
12702         * posix/_exit.c (_exit): Likewise.
12703         * posix/alarm.c (alarm): Likewise.
12704         * posix/confstr.c (confstr): Likewise.
12705         * posix/fpathconf.c (__fpathconf): Likewise.
12706         * posix/getgroups.c (__getgroups): Likewise.
12707         * posix/getpgid.c (__getpgid): Likewise.
12708         * posix/group_member.c (__group_member): Likewise.
12709         * posix/pathconf.c (__pathconf): Likewise.
12710         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
12711         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
12712         * posix/setgid.c (__setgid): Likewise.
12713         * posix/setpgid.c (__setpgid): Likewise.
12714         * posix/setuid.c (__setuid): Likewise.
12715         * posix/sleep.c (__sleep): Likewise.
12716         * posix/sysconf.c (__sysconf): Likewise.
12717         * posix/times.c (__times): Likewise.
12718         * posix/uname.c (__uname): Likewise.
12719         * posix/waitid.c (__waitid): Likewise.
12720         * pwd/getpw.c (__getpw): Likewise.
12721         * resolv/base64.c (b64_pton): Likewise.
12722         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
12723         * resolv/gethnamaddr.c (Dprintf): Likewise.
12724         (gethostbyname): Likewise.
12725         (gethostbyname2): Likewise.
12726         (gethostbyaddr): Likewise.
12727         (_sethtent): Likewise.
12728         (_gethtbyname): Likewise.
12729         (_gethtbyname2): Likewise.
12730         (_gethtbyaddr): Likewise.
12731         (map_v4v6_address): Likewise.
12732         (map_v4v6_hostent): Likewise.
12733         (addrsort): Likewise.
12734         (ht_sethostent): Likewise.
12735         (ht_gethostbyname): Likewise.
12736         (ht_gethostbyaddr): Likewise.
12737         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
12738         (inet_net_ntop_ipv4): Likewise.
12739         * resolv/inet_neta.c (inet_neta): Likewise.
12740         * resolv/inet_ntop.c (inet_ntop): Likewise.
12741         (inet_ntop4): Likewise.
12742         (inet_ntop6): Likewise.
12743         * resolv/inet_pton.c (__inet_pton): Likewise.
12744         (inet_pton4): Likewise.
12745         (inet_pton6): Likewise.
12746         * resolv/res_debug.c (loc_aton): Likewise.
12747         (loc_ntoa): Likewise.
12748         * resource/getpriority.c (__getpriority): Likewise.
12749         * resource/getrusage.c (__getrusage): Likewise.
12750         * resource/nice.c (nice): Likewise.
12751         * resource/setpriority.c (__setpriority): Likewise.
12752         * resource/setrlimit64.c (setrlimit64): Likewise.
12753         * resource/vlimit.c (vlimit): Likewise.
12754         * resource/vtimes.c (vtimes): Likewise.
12755         * rt/aio_error.c (aio_error): Likewise.
12756         * rt/aio_return.c (aio_return): Likewise.
12757         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
12758         * signal/kill.c (__kill): Likewise.
12759         * signal/killpg.c (killpg): Likewise.
12760         * signal/raise.c (raise): Likewise.
12761         * signal/sigaction.c (__sigaction): Likewise.
12762         * signal/sigaddset.c (sigaddset): Likewise.
12763         * signal/sigaltstack.c (sigaltstack): Likewise.
12764         * signal/sigandset.c (sigandset): Likewise.
12765         * signal/sigblock.c (__sigblock): Likewise.
12766         * signal/sigdelset.c (sigdelset): Likewise.
12767         * signal/sigempty.c (sigemptyset): Likewise.
12768         * signal/sigfillset.c (sigfillset): Likewise.
12769         * signal/sighold.c (sighold): Likewise.
12770         * signal/sigignore.c (sigignore): Likewise.
12771         * signal/sigintr.c (siginterrupt): Likewise.
12772         * signal/sigisempty.c (sigisemptyset): Likewise.
12773         * signal/sigismem.c (sigismember): Likewise.
12774         * signal/signal.c (signal): Likewise.
12775         * signal/sigorset.c (sigorset): Likewise.
12776         * signal/sigpause.c (__sigpause): Likewise.
12777         * signal/sigpending.c (sigpending): Likewise.
12778         * signal/sigprocmask.c (__sigprocmask): Likewise.
12779         * signal/sigrelse.c (sigrelse): Likewise.
12780         * signal/sigreturn.c (__sigreturn): Likewise.
12781         * signal/sigset.c (sigset): Likewise.
12782         * signal/sigsetmask.c (__sigsetmask): Likewise.
12783         * signal/sigstack.c (sigstack): Likewise.
12784         * signal/sigsuspend.c (__sigsuspend): Likewise.
12785         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
12786         * signal/sysv_signal.c (__sysv_signal): Likewise.
12787         * socket/accept.c (accept): Likewise.
12788         * socket/accept4.c (__libc_accept4): Likewise.
12789         * socket/bind.c (__bind): Likewise.
12790         * socket/connect.c (__connect): Likewise.
12791         * socket/getpeername.c (getpeername): Likewise.
12792         * socket/getsockname.c (__getsockname): Likewise.
12793         * socket/getsockopt.c (getsockopt): Likewise.
12794         * socket/listen.c (__listen): Likewise.
12795         * socket/recv.c (__recv): Likewise.
12796         * socket/recvmsg.c (__recvmsg): Likewise.
12797         * socket/send.c (__send): Likewise.
12798         * socket/sendmsg.c (__sendmsg): Likewise.
12799         * socket/shutdown.c (shutdown): Likewise.
12800         * socket/sockatmark.c (sockatmark): Likewise.
12801         * socket/socket.c (__socket): Likewise.
12802         * stdio-common/ctermid.c (ctermid): Likewise.
12803         * stdio-common/cuserid.c (cuserid): Likewise.
12804         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
12805         * stdio-common/remove.c (remove): Likewise.
12806         * stdio-common/rename.c (rename): Likewise.
12807         * stdio-common/renameat.c (renameat): Likewise.
12808         * stdio-common/tempname.c (__gen_tempname): Likewise.
12809         * stdio-common/xbug.c (InitBuffer): Likewise.
12810         (AppendToBuffer): Likewise.
12811         (ReadFile): Likewise.
12812         * stdlib/a64l.c (a64l): Likewise.
12813         * stdlib/drand48_r.c (drand48_r): Likewise.
12814         * stdlib/getcontext.c (getcontext): Likewise.
12815         * stdlib/getenv.c (getenv): Likewise.
12816         * stdlib/l64a.c (l64a): Likewise.
12817         * stdlib/llabs.c (llabs): Likewise.
12818         * stdlib/lldiv.c (lldiv): Likewise.
12819         * stdlib/lrand48_r.c (lrand48_r): Likewise.
12820         * stdlib/mrand48_r.c (mrand48_r): Likewise.
12821         * stdlib/putenv.c (putenv): Likewise.
12822         * stdlib/random.c (__srandom): Likewise.
12823         (__initstate): Likewise.
12824         (__setstate): Likewise.
12825         * stdlib/random_r.c (__srandom_r): Likewise.
12826         (__setstate_r): Likewise.
12827         (__random_r): Likewise.
12828         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
12829         * stdlib/setcontext.c (setcontext): Likewise.
12830         * stdlib/setenv.c (setenv): Likewise.
12831         (unsetenv): Likewise.
12832         * stdlib/srand48.c (srand48): Likewise.
12833         * stdlib/srand48_r.c (__srand48_r): Likewise.
12834         * stdlib/swapcontext.c (swapcontext): Likewise.
12835         * stdlib/system.c (__libc_system): Likewise.
12836         * stdlib/tst-strtod.c (expand): Likewise.
12837         * stdlib/tst-strtol.c (expand): Likewise.
12838         * stdlib/tst-strtoll.c (expand): Likewise.
12839         * streams/fattach.c (fattach): Likewise.
12840         * streams/fdetach.c (fdetach): Likewise.
12841         * streams/getmsg.c (getmsg): Likewise.
12842         * streams/isastream.c (isastream): Likewise.
12843         * string/ffs.c (__ffs): Likewise.
12844         * string/ffsll.c (ffsll): Likewise.
12845         * string/memcmp.c (memcmp_common_alignment): Likewise.
12846         (memcmp_not_common_alignment): Likewise.
12847         (MEMCMP): Likewise.
12848         * string/memcpy.c (memcpy): Likewise.
12849         * string/memmove.c (MEMMOVE): Likewise.
12850         * string/memset.c (memset): Likewise.
12851         * string/rawmemchr.c (RAWMEMCHR): Likewise.
12852         * string/strchrnul.c (STRCHRNUL): Likewise.
12853         * string/strerror.c (strerror): Likewise.
12854         * string/strndup.c (__strndup): Likewise.
12855         * string/strverscmp.c (__strverscmp): Likewise.
12856         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
12857         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
12858         (clnttcp_freeres): Likewise.
12859         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
12860         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
12861         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
12862         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
12863         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
12864         (xdr_callhdr): Likewise.
12865         * sunrpc/rpcinfo.c (udpping): Likewise.
12866         (tcpping): Likewise.
12867         (pstatus): Likewise.
12868         (pmapdump): Likewise.
12869         (brdcst): Likewise.
12870         (deletereg): Likewise.
12871         (getprognum): Likewise.
12872         (getvers): Likewise.
12873         (get_inet_address): Likewise.
12874         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
12875         * sunrpc/svc_udp.c (svcudp_create): Likewise.
12876         (svcudp_stat): Likewise.
12877         (svcudp_recv): Likewise.
12878         (svcudp_reply): Likewise.
12879         (svcudp_getargs): Likewise.
12880         (svcudp_freeargs): Likewise.
12881         (svcudp_destroy): Likewise.
12882         * sunrpc/xdr.c (xdr_bytes): Likewise.
12883         (xdr_netobj): Likewise.
12884         (xdr_string): Likewise.
12885         (xdr_wrapstring): Likewise.
12886         * sunrpc/xdr_float.c (xdr_float): Likewise.
12887         (xdr_double): Likewise.
12888         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
12889         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
12890         * sysvipc/ftok.c (ftok): Likewise.
12891         * sysvipc/msgctl.c (msgctl): Likewise.
12892         * sysvipc/msgget.c (msgget): Likewise.
12893         * sysvipc/msgrcv.c (msgrcv): Likewise.
12894         * sysvipc/msgsnd.c (msgsnd): Likewise.
12895         * sysvipc/semget.c (semget): Likewise.
12896         * sysvipc/semop.c (semop): Likewise.
12897         * sysvipc/shmat.c (shmat): Likewise.
12898         * sysvipc/shmctl.c (shmctl): Likewise.
12899         * sysvipc/shmdt.c (shmdt): Likewise.
12900         * sysvipc/shmget.c (shmget): Likewise.
12901         * termios/cfmakeraw.c (cfmakeraw): Likewise.
12902         * termios/speed.c (cfgetospeed): Likewise.
12903         (cfgetispeed): Likewise.
12904         (cfsetospeed): Likewise.
12905         (cfsetispeed): Likewise.
12906         * termios/tcflow.c (tcflow): Likewise.
12907         * termios/tcflush.c (tcflush): Likewise.
12908         * termios/tcgetattr.c (__tcgetattr): Likewise.
12909         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
12910         * termios/tcgetsid.c (tcgetsid): Likewise.
12911         * termios/tcsendbrk.c (tcsendbreak): Likewise.
12912         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
12913         * time/adjtime.c (__adjtime): Likewise.
12914         * time/dysize.c (dysize): Likewise.
12915         * time/ftime.c (ftime): Likewise.
12916         * time/getitimer.c (__getitimer): Likewise.
12917         * time/gettimeofday.c (__gettimeofday): Likewise.
12918         * time/gmtime.c (__gmtime_r): Likewise.
12919         (gmtime): Likewise.
12920         * time/localtime.c (__localtime_r): Likewise.
12921         (localtime): Likewise.
12922         * time/offtime.c (__offtime): Likewise.
12923         * time/settimeofday.c (__settimeofday): Likewise.
12924         * time/stime.c (stime): Likewise.
12925         * time/strftime_l.c (tm_diff): Likewise.
12926         (iso_week_days): Likewise.
12927         * time/strptime.c (strptime): Likewise.
12928         * time/time.c (time): Likewise.
12929         * time/timespec_get.c (timespec_get): Likewise.
12930         * time/tzset.c (tzset_internal): Likewise.
12931         (compute_change): Likewise.
12932         (__tz_compute): Likewise.
12933         * wcsmbs/btowc.c (__btowc): Likewise.
12934         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
12935         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
12936         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
12937         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
12938         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
12939         * wcsmbs/wcscat.c (__wcscat): Likewise.
12940         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
12941         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
12942         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
12943         * wcsmbs/wcscspn.c (wcscspn): Likewise.
12944         * wcsmbs/wcsdup.c (wcsdup): Likewise.
12945         * wcsmbs/wcslen.c (__wcslen): Likewise.
12946         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
12947         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
12948         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
12949         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
12950         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
12951         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
12952         * wcsmbs/wcsspn.c (wcsspn): Likewise.
12953         * wcsmbs/wcsstr.c (wcsstr): Likewise.
12954         * wcsmbs/wcstok.c (wcstok): Likewise.
12955         * wcsmbs/wctob.c (wctob): Likewise.
12956         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
12957         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
12958         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
12959         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
12960         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
12961         * wcsmbs/wmemset.c (__wmemset): Likewise.
12962         * wctype/wcfuncs.c (__towlower): Likewise.
12963         (__towupper): Likewise.
12964
12965         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
12966         (lll_unlock_elision): Add adapt_count parameter.
12967
12968 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
12969
12970         * sysdeps/nptl/configure.ac: Do not give errors based on the
12971         results of top-level configure tests.
12972         * sysdeps/nptl/configure: Regenerated.
12973
12974         * configure.ac (libc_cv_Bgroup): Remove configure test.
12975         * configure: Regenerated.
12976         * config.make.in (have-Bgroup): Remove variable.
12977
12978         * configure.ac (sizeof_long_double): Remove configure test.
12979         * configure: Regenerated.
12980         * config.make.in (sizeof-long-double): Remove variable.
12981
12982         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
12983         * configure: Regenerated.
12984         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
12985         variable.
12986         (exceptions): Likewise.
12987         * sysdeps/arm/configure: Regenerated.
12988         * config.make.in (exceptions): Remove variable.
12989         * Makeconfig (uses-callbacks): Use -fexceptions instead of
12990         $(exceptions).
12991         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
12992         (CFLAGS-vdprintf_chk.c): Likewise.
12993         (CFLAGS-printf_chk.c): Likewise.
12994         (CFLAGS-fprintf_chk.c): Likewise.
12995         (CFLAGS-vprintf_chk.c): Likewise.
12996         (CFLAGS-vfprintf_chk.c): Likewise.
12997         (CFLAGS-gets_chk.c): Likewise.
12998         (CFLAGS-fgets_chk.c): Likewise.
12999         (CFLAGS-fgets_u_chk.c): Likewise.
13000         (CFLAGS-fread_chk.c): Likewise.
13001         (CFLAGS-fread_u_chk.c): Likewise.
13002         (CFLAGS-wprintf_chk.c): Likewise.
13003         (CFLAGS-fwprintf_chk.c): Likewise.
13004         (CFLAGS-vwprintf_chk.c): Likewise.
13005         (CFLAGS-vfwprintf_chk.c): Likewise.
13006         (CFLAGS-fgetws_chk.c): Likewise.
13007         (CFLAGS-fgetws_u_chk.c): Likewise.
13008         * libio/Makefile (CFLAGS-fileops.c): Likewise.
13009         (CFLAGS-fputc.c): Likewise.
13010         (CFLAGS-fputwc.c): Likewise.
13011         (CFLAGS-freopen64.c): Likewise.
13012         (CFLAGS-freopen.c): Likewise.
13013         (CFLAGS-fseek.c): Likewise.
13014         (CFLAGS-fseeko64.c): Likewise.
13015         (CFLAGS-fseeko.c): Likewise.
13016         (CFLAGS-ftello64.c): Likewise.
13017         (CFLAGS-ftello.c): Likewise.
13018         (CFLAGS-fwide.c): Likewise.
13019         (CFLAGS-genops.c): Likewise.
13020         (CFLAGS-getc.c): Likewise.
13021         (CFLAGS-getchar.c): Likewise.
13022         (CFLAGS-getwc.c): Likewise.
13023         (CFLAGS-getwchar.c): Likewise.
13024         (CFLAGS-iofclose.c): Likewise.
13025         (CFLAGS-iofflush.c): Likewise.
13026         (CFLAGS-iofgetpos64.c): Likewise.
13027         (CFLAGS-iofgetpos.c): Likewise.
13028         (CFLAGS-iofgets.c): Likewise.
13029         (CFLAGS-iofgetws.c): Likewise.
13030         (CFLAGS-iofputs.c): Likewise.
13031         (CFLAGS-iofputws.c): Likewise.
13032         (CFLAGS-iofread.c): Likewise.
13033         (CFLAGS-iofsetpos64.c): Likewise.
13034         (CFLAGS-iofsetpos.c): Likewise.
13035         (CFLAGS-ioftell.c): Likewise.
13036         (CFLAGS-iofwrite.c): Likewise.
13037         (CFLAGS-iogetdelim.c): Likewise.
13038         (CFLAGS-iogetline.c): Likewise.
13039         (CFLAGS-iogets.c): Likewise.
13040         (CFLAGS-iogetwline.c): Likewise.
13041         (CFLAGS-ioputs.c): Likewise.
13042         (CFLAGS-ioseekoff.c): Likewise.
13043         (CFLAGS-ioseekpos.c): Likewise.
13044         (CFLAGS-iosetbuffer.c): Likewise.
13045         (CFLAGS-iosetvbuf.c): Likewise.
13046         (CFLAGS-ioungetc.c): Likewise.
13047         (CFLAGS-ioungetwc.c): Likewise.
13048         (CFLAGS-oldfileops.c): Likewise.
13049         (CFLAGS-oldiofclose.c): Likewise.
13050         (CFLAGS-oldiofgetpos64.c): Likewise.
13051         (CFLAGS-oldiofgetpos.c): Likewise.
13052         (CFLAGS-oldiofsetpos64.c): Likewise.
13053         (CFLAGS-oldiofsetpos.c): Likewise.
13054         (CFLAGS-peekc.c): Likewise.
13055         (CFLAGS-putc.c): Likewise.
13056         (CFLAGS-putchar.c): Likewise.
13057         (CFLAGS-putwc.c): Likewise.
13058         (CFLAGS-putwchar.c): Likewise.
13059         (CFLAGS-rewind.c): Likewise.
13060         (CFLAGS-wfileops.c): Likewise.
13061         (CFLAGS-wgenops.c): Likewise.
13062         (CFLAGS-oldiofopen.c): Likewise.
13063         (CFLAGS-iofopen.c): Likewise.
13064         (CFLAGS-iofopen64.c): Likewise.
13065         (CFLAGS-oldtmpfile.c): Likewise.
13066         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
13067         (CFLAGS-fprintf.c): Likewise.
13068         (CFLAGS-printf.c): Likewise.
13069         (CFLAGS-vfwprintf.c): Likewise.
13070         (CFLAGS-vfscanf.c): Likewise.
13071         (CFLAGS-vfwscanf.c): Likewise.
13072         (CFLAGS-fscanf.c): Likewise.
13073         (CFLAGS-scanf.c): Likewise.
13074         (CFLAGS-isoc99_vfscanf.c): Likewise.
13075         (CFLAGS-isoc99_vscanf.c): Likewise.
13076         (CFLAGS-isoc99_fscanf.c): Likewise.
13077         (CFLAGS-isoc99_scanf.c): Likewise.
13078         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
13079         (CFLAGS-isoc99_fwscanf.c): Likewise.
13080         (CFLAGS-isoc99_vwscanf.c): Likewise.
13081         (CFLAGS-isoc99_vfwscanf.c): Likewise.
13082
13083         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
13084         after mkstemp64.
13085         * login/tst-utmp.c (do_prepare): Likewise.
13086         * rt/tst-aio.c (do_prepare): Likewise.
13087         * rt/tst-aio64.c (do_prepare): Likewise.
13088
13089 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13090
13091         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13092         (__lll_lock_elision): Remove adapt_count decrement...
13093         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13094         (__lll_trylock_elision): Likewise.
13095         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
13096         (__lll_unlock_elision): ... to here. And utilize
13097         new adapt_count parameter.
13098         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
13099         (__lll_unlock_elision): Update to include adapt_count
13100         parameter.
13101         (lll_unlock_elision): Pass pointer to adapt_count
13102         variable.
13103
13104 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13105
13106         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
13107         Add elision adapt_count parameter to list of arguments.
13108         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
13109         (lll_unlock_elision): Update with new parameter list
13110         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
13111         (lll_unlock_elision): Likewise.
13112         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
13113         (lll_unlock_elision): Likewise.
13114
13115 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13116
13117         [BZ #19122]
13118         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
13119         attribute_hidden.
13120
13121         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
13122         attribute_hidden.
13123         [IS_IN (rtld)] (__strdup): Likewise.
13124         [IS_IN (rtld)] (__strerror_r): Likewise.
13125         [IS_IN (rtld)] (__strsep_g): Likewise.
13126         [IS_IN (rtld)] (memchr): Likewise.
13127         [IS_IN (rtld)] (memcmp): Likewise.
13128         [IS_IN (rtld)] (memcpy): Likewise.
13129         [IS_IN (rtld)] (memmove): Likewise.
13130         [IS_IN (rtld)] (memset): Likewise.
13131         [IS_IN (rtld)] (rawmemchr): Likewise.
13132         [IS_IN (rtld)] (stpcpy): Likewise.
13133         [IS_IN (rtld)] (strchr): Likewise.
13134         [IS_IN (rtld)] (strcmp): Likewise.
13135         [IS_IN (rtld)] (strlen): Likewise.
13136         [IS_IN (rtld)] (strnlen): Likewise.
13137         [IS_IN (rtld)] (strsep): Likewise.
13138
13139         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
13140         attribute_hidden.
13141         [IS_IN (rtld)] (__strtoul_internal): Likewise.
13142
13143         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
13144         attribute_hidden.
13145         [IS_IN (rtld)] (__libc_sigaction): Likewise.
13146
13147         * include/setjmp.h (__longjmp): Add attribute_hidden.
13148         [IS_IN (rtld)] (__sigsetjmp): Likewise.
13149
13150         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
13151         Add attribute_hidden.
13152
13153         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
13154         [IS_IN (rtld)] (__open): Likewise.
13155         [IS_IN (rtld)] (__fcntl): Likewise.
13156
13157         * include/dirent.h (__opendirat): Add attribute_hidden.
13158         (__getdents): Likewise.
13159         (__getdents64): Likewise.
13160         (__alloc_dir): Likewise.
13161         [IS_IN (rtld)] (__closedir): Likewise.
13162         [IS_IN (rtld)] (__fdopendir): Likewise.
13163         [IS_IN (rtld)] (__readdir): Likewise.
13164         [IS_IN (rtld)] (__readdir64): Likewise.
13165         [IS_IN (rtld)] (__rewinddir): Likewise.
13166
13167         * include/dlfcn.h (_dl_catch_error): Moved to ...
13168         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
13169         attribute_hidden.
13170
13171         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
13172         (_itoa_word): Likewise.
13173
13174         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
13175         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
13176         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
13177         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
13178         (_dl_higher_prime_number): Likewise.
13179         (_dl_debug_printf_c): Likewise.
13180         (_dl_signal_cerror): Likewise.
13181         (_dl_receive_error): Likewise.
13182         (_dl_reloc_bad_type): Likewise.
13183         (_dl_resolve_conflicts): Likewise.
13184         (_dl_check_all_versions): Likewise.
13185         (_dl_check_map_versions): Likewise.
13186         (_dl_sort_fini): Likewise.
13187         (_dl_debug_initialize): Likewise.
13188         (_dl_init_paths): Likewise.
13189         (_dl_show_auxv): Likewise.
13190         (_dl_next_ld_env_entry): Likewise.
13191         (_dl_important_hwcaps): Likewise.
13192         (_dl_load_cache_lookup): Likewise.
13193         (_dl_update_slotinfo): Likewise.
13194         (_dl_show_scope): Likewise.
13195
13196         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
13197         attribute_hidden.
13198         (_wordcopy_fwd_dest_aligned): Likewise.
13199         (_wordcopy_bwd_aligned): Likewise.
13200         (_wordcopy_bwd_dest_aligned): Likewise.
13201
13202         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
13203         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
13204         Likewise.
13205         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
13206         Likewise.
13207         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
13208
13209 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13210
13211         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
13212         GCC 5 requirement.
13213
13214 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
13215
13216         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
13217         test.
13218         * sysdeps/i386/configure: Regenerated.
13219         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
13220         code unconditional.
13221
13222         * configure.ac (libc_cv_asm_previous_directive): Remove configure
13223         test.
13224         (libc_cv_asm_popsection_directive): Likewise.
13225         * configure: Regenerated.
13226         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
13227         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
13228         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
13229         (__make_section_unallocated): Make definition unconditional.
13230         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
13231         Remove conditional definition.
13232         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
13233         (__make_section_unallocated): Likewise.
13234
13235         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
13236         * configure: Regenerated.
13237         * config.make.in (static-libgcc): Remove variable.
13238         * Makerules (build-shlib-helper): Use -static-libgcc instead of
13239         $(static-libgcc).
13240         (build-module-helper): Likewise.
13241
13242         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
13243         * configure: Regenerated.
13244
13245 2015-10-15  Florian Weimer  <fweimer@redhat.com>
13246
13247         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
13248         (struct char_buffer): New type.
13249         (char_buffer_start, char_buffer_size, char_buffer_error)
13250         (char_buffer_rewind, char_buffer_add): New functions.
13251         (ADDW): Remove macro, replaced by the char_buffer_add function.
13252         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
13253         of extend_alloca.  Make control flow more explicit.
13254
13255 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13256
13257         [BZ #19137]
13258         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
13259         Add -fomit-frame-pointer.
13260         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
13261
13262 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13263
13264         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
13265         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
13266         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
13267         only if !__GNUC_PREREQ (5,0).
13268         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
13269         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
13270         (INTERNAL_SYSCALL_NCS): Likewise.
13271         (LOADREGS_0): New macro for GCC 5.
13272         (ASMARGS_0): Likewise.
13273         (LOADREGS_1): Likewise.
13274         (ASMARGS_1): Likewise.
13275         (LOADREGS_2): Likewise.
13276         (ASMARGS_2): Likewise.
13277         (LOADREGS_3): Likewise.
13278         (ASMARGS_3): Likewise.
13279         (LOADREGS_4): Likewise.
13280         (ASMARGS_4): Likewise.
13281         (LOADREGS_5): Likewise.
13282         (ASMARGS_5): Likewise.
13283         (LOADREGS_6): Likewise.
13284         (ASMARGS_6): Likewise.
13285
13286 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
13287
13288         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
13289         -fomit-frame-pointer.
13290         (CFLAGS-mmap64.c): Likewise.
13291         (CFLAGS-semtimedop.c): Likewise.
13292         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
13293         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
13294         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
13295         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
13296
13297 2015-10-15  Florian Weimer  <fweimer@redhat.com>
13298
13299         [BZ #18928]
13300         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
13301         _dl_pointer_guard member.
13302         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
13303         initializer.
13304         (security_init): Always set up pointer guard.
13305         (process_envvars): Do not process LD_POINTER_GUARD.
13306
13307 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
13308
13309         [BZ #19134]
13310         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
13311         (.LC2): Likewise.
13312         (.LC3): Likewise.
13313         (__lround): Do not add 0.5 to integer or out-of-range arguments.
13314
13315 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13316
13317         [BZ #19129]
13318         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
13319         r0 and r1.
13320
13321 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
13322
13323         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
13324
13325 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
13326
13327         * include/stap-probe.h: Fix macro definition formatting.
13328
13329 2015-10-14  Florian Weimer  <fweimer@redhat.com>
13330
13331         [BZ #19074]
13332         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
13333         load and store num_ifs.
13334
13335 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
13336
13337         [BZ #18822]
13338         * sysdeps/unix/sysv/linux/sched_getaffinity.c
13339         (__sched_getaffinity_new): Add libc_hidden_proto and
13340         libc_hidden_def.
13341
13342 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
13343
13344         [BZ #19007]
13345         * scripts/localplt.awk: Also allow GOT references.
13346         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
13347         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
13348         with "+ REL R_386_GLOB_DAT".
13349         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
13350         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
13351
13352 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
13353
13354         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
13355         INLINE_SYSCALL_ERROR_RETURN_VALUE.
13356         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
13357         Likewise.
13358         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
13359         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
13360         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
13361         INTERNAL_SYSCALLINTERNAL_SYSCALL and
13362         INLINE_SYSCALL_ERROR_RETURN_VALUE.
13363         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
13364         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13365         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
13366         Likewise.
13367         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13368
13369 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
13370
13371         [BZ #19125]
13372         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
13373         <math_private.h> and <stdint.h>.
13374         (__llround): Avoid conversions to and from long long int, and
13375         subtractions, where those might raise spurious exceptions.
13376         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
13377         <math_private.h> and <stdint.h>.
13378         (__llroundf): Avoid conversions to and from long long int, and
13379         subtractions, where those might raise spurious exceptions.
13380
13381 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
13382
13383         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
13384         INLINE_SYSCALL_ERROR_RETURN_VALUE.
13385         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
13386         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
13387         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
13388         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
13389         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
13390         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
13391         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
13392         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13393         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13394         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
13395         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
13396         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13397         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
13398         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
13399         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
13400         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
13401         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
13402         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
13403         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
13404         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
13405         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
13406         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
13407         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
13408         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
13409         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
13410         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
13411         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13412         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
13413         (__xstat64_conv): Likewise.
13414         (__xstat32_conv): Likewise.
13415
13416 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
13417
13418         * sysdeps/unix/sysv/linux/sysdep.h: New file.
13419         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
13420         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
13421         <sysdeps/unix/sysv/linux/sysdep.h>.
13422         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
13423         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
13424         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
13425         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
13426         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
13427         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
13428         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
13429         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
13430         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
13431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13433         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13434         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13435         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
13436         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13437         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13438         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
13439         (sysdep-dl-routines): Add sysdep.
13440         [$(subdir) == nptl] (libpthread-routines): Likewise.
13441         [$(subdir) == rt] (librt-routines): Likewise.
13442         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
13443         PIC when branching to SYSCALL_ERROR_LABEL.
13444         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
13445         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
13446         <sysdeps/unix/sysv/linux/sysdep.h>.
13447         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
13448         (SYSCALL_ERROR_ERRNO): Removed.
13449         (SYSCALL_ERROR_HANDLER): Changed to empty.
13450         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
13451         (__syscall_error): New prototype.
13452         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
13453         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
13454
13455 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
13456
13457         [BZ #19124]
13458         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
13459         (_dl_runtime_resolve_avx512): Make it a hidden alias of
13460         _dl_runtime_resolve_avx.
13461         (_dl_runtime_profile_avx512): Make it a hidden alias of
13462         _dl_runtime_profile_avx.
13463
13464 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
13465
13466         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
13467         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
13468         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
13469         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
13470
13471         [BZ #16422]
13472         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
13473         New configure test.
13474         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
13475         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
13476         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
13477         <math_private.h> and <stdint.h>.
13478         (__llrint): Avoid conversions to long long int where those might
13479         raise spurious exceptions.
13480         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
13481         <math_private.h> and <stdint.h>.
13482         (__llrintf): Avoid conversions to long long int where those might
13483         raise spurious exceptions.
13484
13485 2015-10-12  Andreas Schwab  <schwab@suse.de>
13486
13487         [BZ #18969]
13488         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
13489         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
13490         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
13491         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
13492         $(gen-locales).
13493         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
13494         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
13495         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
13496         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
13497         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
13498         $(gen-locales).
13499         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
13500         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
13501         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
13502         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
13503         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
13504         ($(objpfx)tst-ftell-active-handler.out)
13505         ($(objpfx)tst-ftell-append.out)
13506         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
13507         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
13508         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
13509         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
13510         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
13511         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
13512         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
13513         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
13514         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
13515         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
13516         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
13517         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
13518         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
13519         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
13520         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
13521         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
13522         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
13523         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
13524         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
13525         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
13526         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
13527         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
13528         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
13529         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
13530         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
13531         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
13532         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
13533         $(gen-locales).
13534         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
13535         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
13536         $(gen-locales).
13537         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
13538         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
13539         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
13540         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
13541         $(gen-locales).
13542         * libio/tst_wprintf2.c (main): Use explicit locale.
13543         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
13544
13545 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13546
13547         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
13548         __msg_sig_post.
13549         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
13550
13551 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
13552
13553         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
13554         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13555
13556         * sysdeps/arm/libm-test-ulps: Regenerated.
13557
13558         [BZ #15470]
13559         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
13560
13561         [BZ #16399]
13562         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
13563         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
13564         and <fix-fp-int-convert-overflow.h>.
13565         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
13566         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13567         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
13568         and <fix-fp-int-convert-overflow.h>.
13569         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
13570         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13571         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
13572         <fix-fp-int-convert-overflow.h>.
13573         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
13574         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13575         * sysdeps/ieee754/dbl-64/s_lround.c: Include
13576         <fix-fp-int-convert-overflow.h>.
13577         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
13578         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13579         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
13580         and <fix-fp-int-convert-overflow.h>.
13581         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
13582         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13583         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
13584         <limits.h> and <fix-fp-int-convert-overflow.h>.
13585         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
13586         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13587         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
13588         and <fix-fp-int-convert-overflow.h>.
13589         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
13590         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13591         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
13592         and <fix-fp-int-convert-overflow.h>.
13593         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
13594         FIX_DBL_LLONG_CONVERT_OVERFLOW.
13595         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
13596
13597 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
13598
13599         [BZ #18589]
13600         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
13601         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
13602         $(gen-locales).
13603
13604 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13605             Phil Blundell <pb@pbcl.net>
13606
13607         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
13608         * nptl/tst-cancel26.c: New file.
13609         * nptl/tst-cancel27.c: Likewise.
13610
13611 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
13612
13613         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
13614         __ILP32__ isn't defined.
13615         (lrint): Likewise.
13616         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
13617         (lrintf): Likewise.
13618         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
13619         (lrintl): Likewise.
13620         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
13621         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
13622         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
13623
13624 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13625
13626         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
13627         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
13628
13629         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
13630         file.
13631         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
13632         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
13633
13634 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
13635
13636         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
13637         configure test.
13638         * sysdeps/i386/configure: Regenerated.
13639         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
13640         configure test.
13641         * sysdeps/x86_64/configure: Regenerated.
13642         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
13643         Make code unconditional.
13644
13645         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
13646         test.
13647         * sysdeps/i386/configure: Regenerated.
13648         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
13649         test.
13650         * sysdeps/x86_64/configure: Regenerated.
13651         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
13652         Make code unconditional.
13653         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
13654         Likewise.
13655         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
13656         Likewise.
13657         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13658         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
13659         code unconditional.
13660         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13661         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
13662         code unconditional.
13663         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13664         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
13665         code unconditional.
13666         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
13667         code unconditional.
13668         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13669         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
13670         code unconditional.
13671         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13672         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
13673         code unconditional.
13674         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13675         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
13676         code unconditional.
13677         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13678         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
13679         code unconditional.
13680         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
13681         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
13682
13683         [BZ #19095]
13684         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
13685         mantissa to long int before shifting left.
13686
13687 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
13688
13689         [BZ #19094]
13690         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
13691         <limits.h>.
13692         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13693         when result overflows but exception would not result from cast.
13694         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
13695         <limits.h>.
13696         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13697         when result overflows but exception would not result from cast.
13698         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
13699         <limits.h>.
13700         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13701         when result overflows but exception would not result from cast.
13702         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
13703         <limits.h>.
13704         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13705         when result overflows but exception would not result from cast.
13706         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
13707         <limits.h>.
13708         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
13709         when result overflows but exception would not result from cast.
13710         * math/libm-test.inc (lrint_test_data): Add more tests.
13711         (llrint_test_data): Likewise.
13712
13713 2015-10-08  Roland McGrath  <roland@hack.frob.com>
13714
13715         [BZ #18872]
13716         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
13717         Move out from under [$(run-built-tests) = yes] conditional.
13718         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
13719         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
13720
13721 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
13722
13723         [BZ #18589]
13724         * string/Makefile (tests): Add bug-strcoll2.
13725         (LOCALES): Add cs_CZ.UTF-8.
13726         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
13727
13728         [BZ #18589]
13729         * string/bug-strcoll2.c: New file.
13730         * locale/categories.def: Revert commit
13731         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
13732         * locale/langinfo.h: Likewise.
13733         * locale/localeinfo.h: Likewise.
13734         * locale/C-collate.c: Likewise.
13735         * locale/programs/ld-collate.c (collate_output): Likewise.
13736         * string/strcoll_l.c (STRDIFF): Likewise.
13737         (STRCOLL): Likewise.
13738         * wcsmbs/wcscoll_l.c: Likewise.
13739
13740 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
13741
13742         * math/libm-test.inc (lround_test_data): Do not expect the absence
13743         of "inexact" for some tests with non-integer arguments.
13744         (llround_test_data): Likewise.
13745
13746         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
13747         test.
13748         (libc_cv_cc_sse2avx): Likewise.
13749         * sysdeps/i386/configure: Regenerated.
13750         * sysdeps/i386/i686/multiarch/Makefile
13751         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
13752         [$(subdir) = math].
13753         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
13754         code unconditional.
13755         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
13756         Likewise.
13757         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
13758         Likewise.
13759         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
13760         Likewise.
13761         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
13762         test.
13763         (libc_cv_cc_sse2avx): Likewise.
13764         * sysdeps/x86_64/configure: Regenerated.
13765         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
13766         unconditional.
13767         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
13768         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
13769         unconditional.
13770         (_dl_runtime_profile)
13771         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
13772         conditional code.
13773         * sysdeps/x86_64/fpu/multiarch/Makefile
13774         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
13775         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
13776         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
13777         * sysdeps/x86_64/fpu/multiarch/e_exp.c
13778         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
13779         * sysdeps/x86_64/fpu/multiarch/e_log.c
13780         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
13781         * sysdeps/x86_64/fpu/multiarch/s_atan.c
13782         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
13783         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
13784         Likewise.
13785         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
13786         Likewise.
13787         * sysdeps/x86_64/fpu/multiarch/s_sin.c
13788         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
13789         * sysdeps/x86_64/fpu/multiarch/s_tan.c
13790         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
13791         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
13792         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
13793         (HAVE_SSE2AVX_SUPPORT): Likewise.
13794
13795 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
13796
13797         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
13798         instead of #pragma optimize.
13799
13800 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
13801
13802         [BZ #17195]
13803         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
13804         as is similarly done in systrim and _int_free already.
13805
13806 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13807
13808         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
13809
13810 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
13811
13812         [BZ #19088]
13813         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
13814         <limits.h>.
13815         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
13816         overflows but exception would not result from cast.
13817         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
13818         and <limits.h>.
13819         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
13820         overflows but exception would not result from cast.
13821         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
13822         <limits.h>.
13823         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
13824         overflows but exception would not result from cast.
13825         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
13826         <limits.h>.
13827         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
13828         overflows but exception would not result from cast.
13829         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
13830         <limits.h>.
13831         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
13832         overflows but exception would not result from cast.
13833         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
13834         <limits.h>.
13835         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
13836         overflows but exception would not result from cast.
13837         * math/libm-test.inc (lround_test_data): Add more tests.
13838         (llround_test_data): Likewise.
13839
13840 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
13841
13842         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
13843         (CFLAGS-ialloc.c): Ditto.
13844         (CFLAGS-scheck.c): Ditto.
13845
13846 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
13847
13848         [BZ #19086]
13849         * manual/filesys.texi (Storage Allocation): Fix argument order for
13850         posix_fallocate64.
13851
13852 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
13853
13854         [BZ #19085]
13855         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
13856         exponent below 48 inside case for non-overflowing exponent.
13857         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
13858
13859 2015-10-07  Florian Weimer  <fweimer@redhat.com>
13860
13861         * iconvdata/cp737.h (from_idx): Add const.
13862         * iconvdata/cp775.h (from_idx): Likewise.
13863
13864 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
13865
13866         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
13867         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
13868         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
13869
13870         [BZ #19079]
13871         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
13872         file, conditioned on [!_LP64].
13873         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
13874         [!_LP64] (__lround): Do not define as function or alias.
13875         [!_LP64] (lround): Likewise.
13876         [!_LP64] (__lroundl): Likewise.
13877         [!_LP64] (lroundl): Likewise.
13878         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
13879         macro.
13880         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
13881         Likewise.
13882
13883 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
13884
13885         * math/libm-test.inc (lrint_test_data): Add more tests.
13886         (llrint_test_data): Likewise.
13887         (lround_test_data): Likewise.
13888         (llround_test_data): Likewise.
13889
13890         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
13891         (llrint_test_data): Add tests used for lrint.
13892
13893         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
13894         test.
13895         * sysdeps/i386/configure: Regenerated.
13896         * sysdeps/i386/i686/multiarch/Makefile
13897         [$(config-cflags-sse4) = yes]: Make code unconditional.
13898         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
13899         Likewise.
13900         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
13901         Likewise.
13902         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
13903         test.
13904         * sysdeps/x86_64/configure: Regenerated.
13905         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
13906         Make code unconditional.
13907         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
13908         Likewise.
13909         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
13910         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
13911
13912         * scripts/rpm2dynsym.sh: Remove file.
13913
13914 2015-10-06  Florian Weimer  <fweimer@redhat.com>
13915
13916         * configure.ac (libc_cv_cxx_thread_local): Define.
13917         * configure: Regenerate.
13918         * config.make.in (have-cxx-thread_local): Define.
13919         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
13920         (LDLIBS-tst-thread_local1): Define.
13921         (tests): Add tst-thread_local1.
13922         [have-cxx-thread_local != yes] (tests-unsupported): Add
13923         tst-thread_local1.
13924         * nptl/tst-thread_local1.cc: New file.
13925
13926 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
13927
13928         [BZ #19078]
13929         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
13930         (u_thres): Likewise.
13931         (__expl): Determine whether to call __kernel_standard_l based on
13932         value of result, not argument.
13933
13934         * math/libm-test.inc (scalb_test_data): Add more expectations for
13935         the "inexact" exception.
13936
13937         [BZ #19077]
13938         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
13939         0.0L for argument 1.0L.
13940
13941         [BZ #19076]
13942         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
13943         constant 0.0L when computing infinite result.
13944
13945 2015-10-06  Florian Weimer  <fweimer@redhat.com>
13946
13947         [BZ #10432]
13948         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
13949         malloc_usable_size.
13950
13951 2015-10-06  Florian Weimer  <fweimer@redhat.com>
13952
13953         [BZ #19018]
13954         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
13955         Mangle function pointer before storing it.
13956         (__call_tls_dtors): Demangle function pointer before calling it.
13957
13958 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13959
13960         [BZ #19012]
13961         * iconv/gconv_db.c (gen_steps): Check for additional errors.
13962         Clean up on failure.
13963
13964 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
13965
13966         [BZ #19071]
13967         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
13968         long int variable to store possibly incremented high part of
13969         mantissa.
13970         * math/libm-test.inc (lround_test_data): Add tests used for
13971         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
13972         for tests requiring 64-bit long.  Do not condition tests on
13973         [TEST_FLOAT] unnecessarily.
13974         (llround_test_data): Add tests used for lround.  Add another
13975         expectation for the "inexact" exception.  Do not condition tests
13976         on [TEST_FLOAT] unnecessarily.
13977
13978         [BZ #887]
13979         [BZ #19049]
13980         [BZ #19050]
13981         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
13982         * sysdeps/ieee754/dbl-64/e_log10.c: Include
13983         <fix-int-fp-convert-zero.h>.
13984         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
13985         * sysdeps/ieee754/dbl-64/e_log2.c: Include
13986         <fix-int-fp-convert-zero.h>.
13987         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
13988         * sysdeps/ieee754/dbl-64/s_erf.c: Include
13989         <fix-int-fp-convert-zero.h>.
13990         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
13991         * sysdeps/ieee754/dbl-64/s_logb.c: Include
13992         <fix-int-fp-convert-zero.h>.
13993         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
13994         * sysdeps/ieee754/flt-32/e_log10f.c: Include
13995         <fix-int-fp-convert-zero.h>.
13996         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
13997         * sysdeps/ieee754/flt-32/e_log2f.c: Include
13998         <fix-int-fp-convert-zero.h>.
13999         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14000         * sysdeps/ieee754/flt-32/s_erff.c: Include
14001         <fix-int-fp-convert-zero.h>.
14002         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14003         * sysdeps/ieee754/flt-32/s_logbf.c: Include
14004         <fix-int-fp-convert-zero.h>.
14005         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14006         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
14007         <fix-int-fp-convert-zero.h>.
14008         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14009         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
14010         <fix-int-fp-convert-zero.h>.
14011         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
14012         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
14013         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
14014         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
14015         file.
14016         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
14017
14018 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
14019
14020         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14021
14022 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
14023
14024         [BZ #19059]
14025         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
14026         overflowing computation.
14027         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
14028         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
14029         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
14030         Likewise.
14031         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
14032         Likewise.
14033         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
14034         Likewise.
14035         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14036         Likewise.
14037         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
14038         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
14039         Likewise.
14040         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
14041         Likewise.
14042         * math/libm-test.inc (nexttoward_test_data): Add more tests.
14043
14044         * nss/rewrite_field.c (__nss_rewrite_field): Use
14045         internal_function.
14046         * nss/valid_field.c (__nss_valid_field): Likewise.
14047         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
14048
14049 2015-10-02  Florian Weimer  <fweimer@redhat.com>
14050
14051         [BZ #18724]
14052         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
14053         (__nss_invalid_field_characters, __nss_valid_field)
14054         (__nss_valid_list_field, __nss_rewrite_field): Declare.
14055         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
14056         tst-field.c: New file.
14057         * nss/Makefile (routines): Add valid_field, rewrite_field.
14058         (tests-static): Define unconditionally.
14059         (tests): Include tests-static.
14060         [build-static-nss] (tests-static): Use append.
14061         [build-static-nss] (tests): Remove modification.
14062         * nss/getent.c (print_group): Call putgrent.  Report error.
14063         (print_gshadow): Call putsgent.  Report error.
14064         (print_passwd): Call putpwent.  Report error.
14065         (print_shadow): Call putspent.  Report error.
14066         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
14067         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
14068         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
14069         name, password, directory, shell fields for valid syntax.  Rewrite
14070         GECOS field to match syntax.
14071         * pwd/Makefile (tests): Add tst-putpwent.
14072         * pwd/tst-putpwent.c: New file.
14073         * grp/putgrent.c (putgrent): Convert to ISO function definition.
14074         Check grName, grpasswd, gr_mem fields for valid syntax.
14075         Change loop variable i to size_t.
14076         * grp/Makefile (tests): Add tst-putgrent.
14077         * grp/tst-putgrent.c: New file.
14078         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
14079         valid syntax.
14080         * shadow/Makefile (tests): Add tst-putspent.
14081         * shadow/tst-putspent.c: New file.
14082         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
14083         sg_mem fields for valid syntax.
14084         * gshadow/Makefile (tests): Add tst-putsgent.
14085         * gshadow/tst-putsgent.c: New file.
14086
14087 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14088
14089         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
14090         assembly instructions.
14091
14092 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14093
14094         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
14095         prefix from operands.
14096
14097 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
14098
14099         [BZ #16347]
14100         [BZ #19046]
14101         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
14102         <libc-internal.h>.
14103         (MAXLGM): Do not use diagnostic control macros.
14104         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
14105         threshold for ldbl-128ibm.
14106         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
14107         instead of multiplying by log then subtracting.
14108         * math/auto-libm-test-in: Add more tests of lgamma.
14109         * math/auto-libm-test-out: Regenerated.
14110
14111         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
14112         (TYPE_HEX_DIG): Likewise.
14113         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
14114         precisions when printing floating-point numbers.
14115         (check_float_internal): Likewise.
14116
14117 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
14118
14119         [BZ #16620]
14120         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
14121         of log (10) rounded downward to 48 bits.
14122         (log10_low): Use corresponding low part of log (10).
14123
14124         [BZ #19032]
14125         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
14126         compute result as (x - x) / (x - x) not as 0 / 0.
14127         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
14128         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
14129
14130         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
14131         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
14132         and expm1.
14133         * math/auto-libm-test-out: Regenerated.
14134         * math/libm-test.inc (acos_test_data): Add more tests.
14135         (asin_test_data): Likewise.
14136         (asinh_test_data): Likewise.
14137         (atan_test_data): Likewise.
14138         (atanh_test_data): Likewise.
14139         (atan2_test_data): Likewise.
14140         (cbrt_test_data): Likewise.
14141         (ceil_test_data): Likewise.
14142         (copysign_test_data): Likewise.
14143         (cos_test_data): Likewise.
14144         (cosh_test_data): Likewise.
14145         (erf_test_data): Likewise.
14146         (erfc_test_data): Likewise.
14147         (exp_test_data): Likewise.
14148         (exp10_test_data): Likewise.
14149         (exp2_test_data): Likewise.
14150         (expm1_test_data): Likewise.
14151         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14152
14153 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
14154
14155         [BZ #19006]
14156         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
14157         to ...
14158         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
14159         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
14160         to ...
14161         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
14162         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
14163         to ...
14164         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
14165         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
14166         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
14167         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
14168         to ...
14169         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
14170         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
14171         Moved to ...
14172         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
14173         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
14174         Moved to ...
14175         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
14176         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
14177         to ...
14178         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
14179         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
14180         Moved to ...
14181         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
14182         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
14183         to ...
14184         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
14185         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
14186         Removed.
14187         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
14188         Likewise.
14189         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
14190         Likewise.
14191         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
14192         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
14193         Likewise.
14194         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
14195         Likewise.
14196         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
14197         Likewise.
14198         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
14199         Likewise.
14200         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
14201         Likewise.
14202         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
14203         Likewise.
14204         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
14205         Likewise.
14206         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
14207         Likewise.
14208         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
14209         Likewise.
14210         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
14211         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
14212         Likewise.
14213         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
14214         Likewise.
14215         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
14216         Likewise.
14217         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
14218         Likewise.
14219         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
14220         Likewise.
14221         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
14222         Replace ../i486/pthread_cond_timedwait.S with
14223         ../pthread_cond_timedwait.S.
14224
14225 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
14226
14227         * math/libm-test.inc (acos_test_data): Refine expectations for
14228         errno and "inexact" exceptions.
14229         (acosh_test_data): Likewise.
14230         (asin_test_data): Likewise.
14231         (asinh_test_data): Likewise.
14232         (atan_test_data): Likewise.
14233         (atanh_test_data): Likewise.
14234         (atan2_test_data): Likewise.
14235         (cbrt_test_data): Likewise.
14236         (ceil_test_data): Likewise.
14237         (copysign_test_data): Likewise.
14238         (cosh_test_data): Likewise.
14239         (erf_test_data): Likewise.
14240         (erfc_test_data): Likewise.
14241         (exp_test_data): Likewise.
14242         (exp10_test_data): Likewise.
14243         (exp2_test_data): Likewise.
14244         (expm1_test_data): Likewise.
14245         (fabs_test_data): Likewise.
14246         (floor_test_data): Likewise.
14247         (fma_test_data): Likewise.
14248         (fmax_test_data): Likewise.
14249         (fmin_test_data): Likewise.
14250         (fmod_test_data): Likewise.
14251         (fpclassify_test_data): Likewise.
14252         (frexp_test_data): Likewise.
14253         (hypot_test_data): Likewise.
14254         (ilogb_test_data): Likewise.
14255         (isgreater_test_data): Likewise.
14256         (isgreaterequal_test_data): Likewise.
14257         (isinf_test_data): Likewise.
14258         (isless_test_data): Likewise.
14259         (islessequal_test_data): Likewise.
14260         (islessgreater_test_data): Likewise.
14261         (isnan_test_data): Likewise.
14262         (isnormal_test_data): Likewise.
14263         (issignaling_test_data): Likewise.
14264         (isunordered_test_data): Likewise.
14265         (j0_test_data): Likewise.
14266         (j1_test_data): Likewise.
14267         (jn_test_data): Likewise.
14268         (lgamma_test_data): Likewise.
14269         (lrint_test_data): Likewise.
14270         (llrint_test_data): Likewise.
14271         (log_test_data): Likewise.
14272         (log10_test_data): Likewise.
14273         (log1p_test_data): Likewise.
14274         (log2_test_data): Likewise.
14275         (logb_test_data): Likewise.
14276         (lround_test_data): Likewise.
14277         (llround_test_data): Likewise.
14278         (modf_test_data): Likewise.
14279         (nearbyint_test_data): Likewise.
14280         (nextafter_test_data): Likewise.
14281         (nexttoward_test_data): Likewise.
14282         (pow_test_data): Likewise.
14283         (remainder_test_data): Likewise.
14284         (remquo_test_data): Likewise.
14285         (rint_test_data): Likewise.
14286         (round_test_data): Likewise.
14287         (signbit_test_data): Likewise.
14288         (sinh_test_data): Likewise.
14289         (sqrt_test_data): Likewise.
14290         (tanh_test_data): Likewise.
14291         (tgamma_test_data): Likewise.
14292         (trunc_test_data): Likewise.
14293         (y0_test_data): Likewise.
14294         (y1_test_data): Likewise.
14295         (yn_test_data): Likewise.
14296         (significand_test_data): Likewise.
14297
14298 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
14299
14300         * manual/filesys.texi (Storage Allocation): Document that
14301         posix_fallocate emulation fails when fd is open with O_WRONLY.
14302
14303 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
14304
14305         [BZ #19016]
14306         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
14307         allow more cases with X^2 + Y^2 >= 0.5.
14308         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
14309         normal element in sum instead of special-casing based on values of
14310         arguments.
14311         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
14312         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
14313         -1 as normal element in sum instead of special-casing based on
14314         values of arguments.
14315         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
14316         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
14317         (__x2y2m1): Update comment.
14318         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
14319         as normal element in sum instead of special-casing based on values
14320         of arguments.
14321         * math/s_clog.c (__clog): Handle more cases using log1p without
14322         hypot.
14323         * math/s_clog10.c (__clog10): Likewise.
14324         * math/s_clog10f.c (__clog10f): Likewise.
14325         * math/s_clog10l.c (__clog10l): Likewise.
14326         * math/s_clogf.c (__clogf): Likewise.
14327         * math/s_clogl.c (__clogl): Likewise.
14328         * math/auto-libm-test-in: Add more tests of clog and clog10.
14329         * math/auto-libm-test-out: Regenerated.
14330         * sysdeps/i386/fpu/libm-test-ulps: Update.
14331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14332
14333 2015-09-28  Martin Sebor  <msebor@redhat.com>
14334
14335         [BZ #18969]
14336         * string/Makefile (LOCALES): Define.
14337         (gen-locales.mk): Include.
14338         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
14339         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
14340         * string/tst-strxfrm2.c (do_test): Print the name of the locale
14341         on setlocale failure.
14342
14343 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
14344
14345         [BZ #18985]
14346         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
14347         (__strftime_internal): Likewise.
14348         * time/tst-strftime.c (do_bz18985): New test.
14349         (do_test): Call it.
14350
14351 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
14352
14353         [BZ #18956]
14354         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
14355         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
14356         extracting high part.
14357         * math/auto-libm-test-in: Add another test of pow.
14358         * math/auto-libm-test-out: Regenerated.
14359         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14360
14361 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
14362
14363         [BZ #18825]
14364         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
14365         New macro.
14366         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
14367         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
14368         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
14369         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
14370         DBL_NARROW_EVAL, reloading the PIC register as needed.
14371         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
14372         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
14373         FLT_NARROW_EVAL.  Use separate return path for case when first
14374         argument is NaN.
14375         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
14376         DEFINE_LDBL_MIN.
14377         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
14378         PIC register.
14379         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
14380         math_check_force_underflow_nonneg.
14381         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
14382         underflow for subnormal result.
14383         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14384         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
14385         math_check_force_underflow_nonneg.
14386         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
14387         math_check_force_underflow.
14388         * sysdeps/x86_64/fpu/x86_64-math-asm.h
14389         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
14390         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
14391         DEFINE_LDBL_MIN.
14392         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
14393         * math/auto-libm-test-in: Add more tests of pow.
14394         * math/auto-libm-test-out: Regenerated.
14395
14396 2015-09-25  Florian Weimer  <fweimer@redhat.com>
14397
14398         * nss/bug17079.c (init_test_items): Add diagnostic for
14399         inconsistent entries.
14400         (test_buffer_size): Skip inconsistent entries.
14401
14402 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
14403
14404         [BZ #13304]
14405         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
14406         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
14407         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
14408
14409         [BZ #13304]
14410         * sysdeps/microblaze/s_fma.c: New file.
14411         * sysdeps/microblaze/s_fmaf.c: Likewise.
14412         * sysdeps/microblaze/sfp-machine.h: Likewise.
14413
14414 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
14415
14416         [BZ #17250]
14417         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
14418         member.
14419
14420 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
14421
14422         [BZ #18803]
14423         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
14424         (MO): New macro.
14425         (__ieee754_hypot) [PIC]: Load PIC register.
14426         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
14427         DBL_NARROW_EVAL.
14428         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
14429         math_check_force_underflow_nonneg in case where result might be
14430         tiny.
14431         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
14432         Likewise.
14433         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
14434         Likewise.
14435         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14436         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14437         * math/auto-libm-test-in: Add more tests of hypot.
14438         * math/auto-libm-test-out: Regenerated.
14439
14440 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
14441
14442         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
14443
14444 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
14445
14446         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
14447         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
14448         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
14449         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
14450         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
14451         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
14452         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
14453
14454         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
14455         LOAD_PIC_REG.
14456
14457         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
14458         (FLT_CHECK_FORCE_UFLOW): Likewise.
14459         (DBL_CHECK_FORCE_UFLOW): Likewise.
14460         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
14461         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
14462         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
14463         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
14464         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
14465         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
14466         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
14467         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
14468         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
14469         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14470         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
14471         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
14472         (flt_min): Replace with use of DEFINE_FLT_MIN.
14473         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
14474         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
14475         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14476         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
14477         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
14478         (flt_min): Replace with use of DEFINE_FLT_MIN.
14479         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
14480         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
14481         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14482         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
14483         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
14484         (flt_min): Replace with use of DEFINE_FLT_MIN.
14485         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
14486         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
14487         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
14488         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
14489         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
14490         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
14491         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
14492         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
14493         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14494         (__atan): Use DBL_CHECK_FORCE_UFLOW.
14495         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
14496         (flt_min): Replace with use of DEFINE_FLT_MIN.
14497         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
14498         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
14499         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14500         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
14501         main computation.
14502         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
14503         (flt_min): Replace with use of DEFINE_FLT_MIN.
14504         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
14505         main computation.
14506         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
14507         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14508         (MO): New macro.
14509         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
14510         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
14511         (flt_min): Replace with use of DEFINE_FLT_MIN.
14512         (MO): New macro.
14513         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
14514         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
14515         (__log1pl): Use MO.
14516
14517         [BZ #19003]
14518         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
14519         $(config-cflags-nofma).
14520
14521 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14522
14523         * sysdeps/aarch64/libm-test-ulps: Regenerated.
14524
14525 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
14526
14527         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
14528         (TWO127): Likewise.
14529
14530         * sysdeps/generic/math_private.h (fabs_tg): New macro.
14531         (min_of_type): Likewise.
14532         (math_check_force_underflow): Likewise.
14533         (math_check_force_underflow_nonneg): Likewise.
14534         (math_check_force_underflow_complex): Likewise.
14535         * math/e_exp2l.c (__ieee754_exp2l): Use
14536         math_check_force_underflow_nonneg.
14537         * math/k_casinh.c (__kernel_casinh): Likewise.
14538         * math/k_casinhf.c (__kernel_casinhf): Likewise.
14539         * math/k_casinhl.c (__kernel_casinhl): Likewise.
14540         * math/s_catan.c (__catan): Use
14541         math_check_force_underflow_complex.
14542         * math/s_catanf.c (__catanf): Likewise.
14543         * math/s_catanh.c (__catanh): Likewise.
14544         * math/s_catanhf.c (__catanhf): Likewise.
14545         * math/s_catanhl.c (__catanhl): Likewise.
14546         * math/s_catanl.c (__catanl): Likewise.
14547         * math/s_ccosh.c (__ccosh): Likewise.
14548         * math/s_ccoshf.c (__ccoshf): Likewise.
14549         * math/s_ccoshl.c (__ccoshl): Likewise.
14550         * math/s_cexp.c (__cexp): Likewise.
14551         * math/s_cexpf.c (__cexpf): Likewise.
14552         * math/s_cexpl.c (__cexpl): Likewise.
14553         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
14554         * math/s_clog10.c (__clog10): Likewise.
14555         * math/s_clog10f.c (__clog10f): Likewise.
14556         * math/s_clog10l.c (__clog10l): Likewise.
14557         * math/s_clogf.c (__clogf): Likewise.
14558         * math/s_clogl.c (__clogl): Likewise.
14559         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
14560         * math/s_csinf.c (__csinf): Likewise.
14561         * math/s_csinh.c (__csinh): Likewise.
14562         * math/s_csinhf.c (__csinhf): Likewise.
14563         * math/s_csinhl.c (__csinhl): Likewise.
14564         * math/s_csinl.c (__csinl): Likewise.
14565         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
14566         * math/s_csqrtf.c (__csqrtf): Likewise.
14567         * math/s_csqrtl.c (__csqrtl): Likewise.
14568         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
14569         * math/s_ctanf.c (__ctanf): Likewise.
14570         * math/s_ctanh.c (__ctanh): Likewise.
14571         * math/s_ctanhf.c (__ctanhf): Likewise.
14572         * math/s_ctanhl.c (__ctanhl): Likewise.
14573         * math/s_ctanl.c (__ctanl): Likewise.
14574         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
14575         instead of volatile.
14576         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
14577         math_check_force_underflow.
14578         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
14579         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
14580         volatile when forcing underflow.
14581         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
14582         math_check_force_underflow_nonneg.
14583         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
14584         Likewise.
14585         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
14586         math_check_force_underflow.
14587         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14588         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
14589         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14590         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
14591         math_check_force_underflow_nonneg.
14592         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
14593         math_check_force_underflow.
14594         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
14595         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
14596         instead of volatile.
14597         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
14598         math_check_force_underflow.
14599         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
14600         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
14601         math_check_force_underflow_nonneg.
14602         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
14603         math_check_force_underflow.
14604         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14605         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
14606         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
14607         math_check_force_underflow_nonneg.
14608         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
14609         Likewise.
14610         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
14611         math_check_force_underflow.
14612         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14613         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
14614         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
14615         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
14616         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14617         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
14618         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
14619         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
14620         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
14621         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
14622         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14623         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
14624         Likewise.
14625         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
14626         math_check_force_underflow_nonneg.
14627         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
14628         Likewise.
14629         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
14630         math_check_force_underflow.
14631         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14632         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
14633         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
14634         Likewise.
14635         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
14636         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
14637         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
14638         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
14639         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
14640         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
14641         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
14642         instead of volatile.
14643         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
14644         math_check_force_underflow.
14645         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
14646         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
14647         math_check_force_underflow.
14648         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
14649         Likewise.
14650         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
14651         Use math_check_force_underflow_nonneg.
14652         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
14653         math_check_force_underflow.
14654         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
14655         Likewise.
14656         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
14657         Likewise.
14658         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
14659         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
14660         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
14661         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
14662         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
14663         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
14664         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14665         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
14666         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
14667         math_check_force_underflow_nonneg.
14668         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
14669         math_check_force_underflow.
14670         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14671         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
14672         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
14673         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
14674         math_check_force_underflow_nonneg.
14675         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
14676         math_check_force_underflow.
14677         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
14678         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
14679         instead of volatile.
14680         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
14681         math_check_force_underflow.
14682
14683         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
14684         * stdlib/strtod_l.c: Include <math_private.h>.
14685         (overflow_value): Use math_narrow_eval.
14686         (underflow_value): Likewise.
14687         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
14688         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
14689         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14690         (__ieee754_gamma_r): Likewise.
14691         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
14692         Likewise.
14693         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
14694         Likewise.
14695         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
14696         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
14697         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
14698         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
14699         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14700         (__ieee754_gammaf_r): Likewise.
14701         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
14702         Likewise.
14703         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
14704         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
14705         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
14706         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
14707         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
14708         volatile.
14709         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
14710         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
14711         math_narrow_eval.
14712         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
14713         Likewise.
14714         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14715         Likewise.
14716         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
14717         Likewise.
14718         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
14719         volatile.
14720         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
14721         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
14722         math_narrow_eval.
14723         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
14724         Likewise.
14725         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
14726         Likewise.
14727
14728 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
14729
14730         * nptl/Versions: Remove ignored symbols.
14731
14732 2015-09-22  Florian Weimer  <fweimer@redhat.com>
14733
14734         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
14735         * nss/Makefile (tests): Update.
14736
14737 2015-09-22  Florian Weimer  <fweimer@redhat.com>
14738
14739         * nss/bug18287.c: New file.
14740         * nss/Makefile (tests): Add bug18287.
14741
14742 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14743
14744         * mach/Versions (__mach_host_self_): Add symbol.
14745
14746 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14747
14748         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
14749         vm_page_size.
14750
14751 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14752
14753         Really fix sysdeps/i386/fpu/s_scalbn.S build
14754
14755         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
14756         (libc: GLIBC_2_22): Remove unused version set.
14757
14758 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
14759
14760         * config.make.in (enable-timezone-tools): New variable.
14761         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
14762         (enable_timezone_tools): Export to generated files.
14763         * configure: Regenerate.
14764         * INSTALL: Regenerate.
14765         * manual/install.texi (--disable-timezone-tools): Document new flag.
14766         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
14767         ifeq ($(enable-timezone-tools),yes) check.
14768
14769 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
14770
14771         * timezone/Makefile: Revert previous change.
14772
14773         [BZ #18980]
14774         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
14775         (DEFINE_DBL_MIN): Likewise.
14776         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
14777         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
14778         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
14779         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
14780         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
14781         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14782         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
14783         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
14784         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
14785         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14786         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
14787         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
14788         (flt_min): Replace with use of DEFINE_FLT_MIN.
14789         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
14790         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
14791         (dbl_min): Replace with use of DEFINE_DBL_MIN.
14792         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
14793         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
14794         (flt_min): Replace with use of DEFINE_FLT_MIN.
14795         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
14796         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
14797         (flt_min): Replace with use of DEFINE_FLT_MIN.
14798         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
14799         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
14800         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
14801         (__ieee754_hypot): Use DBL_NARROW_EVAL.
14802         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
14803         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
14804         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
14805         (__ieee754_pow): Use DBL_NARROW_EVAL.
14806         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
14807         (__ieee754_powf): Use FLT_NARROW_EVAL.
14808         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
14809         (__ieee754_expf_sse2): Convert double-precision result to single
14810         precision.
14811         * sysdeps/i386/fpu/libm-test-ulps: Update.
14812
14813 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14814
14815         * timezone/Makefile: Ignore unused variable errors due to private.h
14816         (time_t_min) and (time_t_max).
14817         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
14818         Likewise.
14819
14820 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
14821
14822         [BZ #18981]
14823         * sysdeps/i386/fpu/i386-math-asm.h: New file.
14824         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
14825         (__ieee754_scalb): Use DBL_NARROW_EVAL.
14826         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
14827         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
14828         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
14829         (__scalbn): Use DBL_NARROW_EVAL.
14830         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
14831         (__scalbnf): Use FLT_NARROW_EVAL.
14832
14833 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14834
14835         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
14836         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
14837         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
14838         * stdio-common/printf_fp.c (___printf_fp):
14839         Use signbit to get the sign. Use isinf macro to allow inlining.
14840         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
14841         * stdio-common/printf_size.c (__printf_size): Likewise.
14842
14843 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
14844
14845         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
14846
14847 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
14848
14849         [BZ #18980]
14850         * sysdeps/generic/math_private.h: Include <float.h>.
14851         (math_narrow_eval): New macro.
14852         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14853         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
14854         math_narrow_eval on overflowing return value.
14855         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
14856         Likewise.
14857         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
14858         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
14859         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
14860         Likewise.
14861         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
14862
14863 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14864
14865         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
14866         * math/Makefile: Remove isinf_ns.c.
14867         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
14868         * math/multc3.c (__multc3): Likewise.
14869         * math/s_casin.c (__casin): Likewise.
14870         * math/s_casinf.c (__casinf): Likewise.
14871         * math/s_casinl.c (__casinl): Likewise.
14872         * math/s_cproj.c (__cproj): Likewise.
14873         * math/s_cprojf.c (__cprojf): Likewise.
14874         * math/s_cprojl.c (__cprofl): Likewise.
14875         * math/s_ctan.c (__ctan): Likewise.
14876         * math/s_ctanf.c (__ctanf): Likewise.
14877         * math/s_ctanh.c (__ctanh): Likewise.
14878         * math/s_ctanhf.c (__ctanhf): Likewise.
14879         * math/s_ctanhl.c (__ctanhl): Likewise.
14880         * math/s_ctanl.c (__ctanl): Likewise.
14881         * math/w_fmod.c (__fmod): Likewise.
14882         * math/w_fmodf.c (__fmodf): Likewise.
14883         * math/w_fmodl.c (_fmodl): Likewise.
14884         * math/w_remainder.c (__remainder): Likewise.
14885         * math/w_remainderf.c (__remainderf): Likewise.
14886         * math/w_remainderl.c (__remainderl): Likewise.
14887         * math/w_scalb.c (__scalb): Likewise.
14888         * math/w_scalbf.c (__scalbf): Likewise.
14889         * math/w_scalbl.c (__scalbl): Likewise.
14890         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
14891         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
14892         with isinf.
14893         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
14894         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
14895         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
14896         __isinf_nsf with isinf.
14897         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
14898         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
14899         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
14900         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
14901         with isinf.
14902         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
14903         __isinf_nsl with isinf.
14904         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
14905         with isinf.
14906         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
14907         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
14908         __isinf_nsl with isinf.
14909         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
14910         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
14911         with isinf.
14912
14913 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14914
14915         * resolv/base64.c (rcsid): Remove unused static.
14916         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
14917         static.  (tqpi1): Likewise.
14918         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
14919         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
14920         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
14921         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
14922         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
14923         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
14924         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
14925         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
14926         Likewise.
14927
14928 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
14929
14930         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
14931         <nptl/pthreadP.h>.
14932         (_longjmp_unwind): Use __libc_ptf_call.
14933         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
14934
14935 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
14936
14937         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
14938         * sysdeps/arm/__longjmp.S: Likewise.
14939
14940 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14941
14942         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
14943         Use __builtin_signbit.
14944         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
14945         Use __builtin_signbitf.
14946         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
14947         Use __builtin_signbitl.
14948         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
14949         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
14950
14951 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14952
14953         [BZ #15367]
14954         [BZ #17441]
14955
14956         * math/Makefile: Build test-snan.c with -fsignaling-nans.
14957         * math/math.h (fpclassify): Use __builtin_fpclassify when
14958         available.  (signbit): Use __builtin_signbit(f/l).
14959         (isfinite): Use__builtin_isfinite.  (isnormal): Use
14960         __builtin_isnormal.  (isnan): Use __builtin_isnan.
14961         (isinf): Use __builtin_isinf_sign.
14962
14963 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
14964
14965         * benchtests/Makefile: Add bench-math-inlines, link with libm.
14966         * benchtests/bench-math-inlines.c: New benchmark.
14967         * benchtests/bench-util.h: New file.
14968         * benchtests/bench-util.c: New file.
14969         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
14970
14971 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
14972
14973         * elf/tst-dlmopen1.c: Define TEST_SO.
14974         (do_test): Use TEST_SO.
14975
14976         * elf/dl-load.c: Include libc-internal.h.
14977         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
14978
14979 2015-09-18  Vincent Bernat  <vincent@bernat.im>
14980
14981         [BZ #17887]
14982         * time/strptime_l.c (__strptime_internal): Make %z accept
14983         [+-]HH:MM time zones.
14984
14985 2015-09-18  Vincent Bernat  <vincent@bernat.im>
14986
14987         [BZ #17886]
14988         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
14989         valid time zone.
14990
14991 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
14992
14993         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
14994         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
14995         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14996         (__ASSUME_FDATASYNC): Delete.
14997
14998 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
14999
15000         * conform/linknamespace.pl: Require weak undefined symbols to be
15001         in the standard namespace.
15002         (%strong_syms): Rename to %seen_syms.
15003         (%strong_seen): Rename to %seen_where.
15004
15005 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
15006
15007         [BZ #18970]
15008         * misc/error.c (error): Replace pthread_setcancelstate with
15009         __pthread_setcancelstate.
15010         (error_at_line): Likewise.
15011         * posix/wordexp.c (parse_comm): Likewise.
15012         * stdlib/fmtmsg.c (fmtmsg): Likewise.
15013         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
15014         (__pthread_setcancelstate): This.
15015         (pthread_setcancelstate): Add an alias.
15016         * nptl/nptl-init.c (pthread_functions): Replace
15017         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
15018         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
15019         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
15020         hidden_proto.
15021         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
15022         it with hidden_def.
15023         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
15024         (pthread_setcancelstate): Renamed to ...
15025         (__pthread_setcancelstate): This.
15026         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
15027         __libc_ptf_call with __pthread_setcancelstate.
15028
15029 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
15030             Andreas Schwab  <schwab@suse.de>
15031
15032         [BZ #17118]
15033         * math/s_ctan.c (__ctan): Determine sign of zero real part of
15034         result when imaginary part of argument is infinite using sine and
15035         cosine.
15036         * math/s_ctanf.c (__ctanf): Likewise.
15037         * math/s_ctanl.c (__ctanl): Likewise.
15038         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
15039         of result when real part of argument is infinite using sine and
15040         cosine.
15041         * math/s_ctanhf.c (__ctanhf): Likewise.
15042         * math/s_ctanhl.c (__ctanhl): Likewise.
15043         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
15044         (ctanh_test_data): Add more tests of ctanh.
15045
15046 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
15047
15048         [BZ #15384]
15049         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
15050         bit-mask as in subtraction.
15051         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
15052         Likewise.
15053         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
15054         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
15055         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
15056
15057         [BZ #18951]
15058         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
15059         underflow exception for small results.
15060         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
15061         Likewise.
15062         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
15063         Likewise.
15064         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
15065         Likewise.
15066         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
15067         Likewise.
15068         * math/auto-libm-test-in: Add more tests of tgamma.
15069         * math/auto-libm-test-out: Regenerated.
15070
15071 2015-09-17  Andreas Schwab  <schwab@suse.de>
15072
15073         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
15074
15075 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
15076
15077         [BZ #18977]
15078         * math/bits/mathcalls.h
15079         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
15080         not declare.
15081         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
15082         Likewise.
15083         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
15084         Likewise.
15085         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
15086         Likewise.
15087         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
15088         Likewise.
15089         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
15090         Likewise.
15091         * conform/data/math.h-data
15092         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
15093         function.
15094         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
15095         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
15096         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
15097         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
15098         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
15099         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
15100         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
15101         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
15102         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
15103         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
15104         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
15105
15106         [BZ #6803]
15107         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
15108         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
15109         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
15110         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
15111         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
15112         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
15113         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
15114         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
15115         [NO_LONG_DOUBLE] (scalbnl): Likewise.
15116         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
15117         Likewise.
15118         [NO_LONG_DOUBLE] (scalbnl): Likewise.
15119         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
15120         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
15121         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
15122         long_double_symbol calls.
15123         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
15124         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
15125         strong alias of __ldexpl.
15126         (scalbnl): Define using long_double_symbol.
15127         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
15128         Remove alias.
15129         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
15130         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
15131         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
15132         (scalbln_test_data): Add more errno expectations.
15133
15134 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
15135
15136         Cache the host port like we cache the task port.  This way we do not
15137         need to call the kernel just to get the port.  Furthermore, we no
15138         longer increase the reference count on every invocation of
15139         `mach_host_self'.
15140
15141         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
15142         Protect declarations against the macro expansion.
15143         * mach/mach_init.c (__mach_host_self_): New variable.
15144         (mach_init): Initialize `__mach_host_self_'.
15145         * mach/mach_init.h (__mach_host_self_): New declaration.
15146         (__mach_host_self, mach_host_self): New macros.
15147         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
15148         Release reference.
15149
15150 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
15151
15152         [BZ #4404]
15153         * po/de.po: Update from Translation Project.
15154
15155         [BZ #16415]
15156         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
15157         (__expm1l): Remove code to handle positive infinity and overflow.
15158         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
15159         variable.
15160         (__expm1l): Remove code to handle positive infinity and overflow.
15161
15162 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15163             Paul Pluzhnikov  <ppluzhnikov@google.com>
15164
15165         [BZ #18872]
15166         * stdio-common/Makefile (tst-printf-bz18872): New test.
15167         (tst-printf-bz18872-mem.out): Likewise.
15168         * stdio-common/tst-printf-bz18872.sh: Generate new test.
15169         * stdio-common/vfprintf.c: Fix memory leaks.
15170
15171 2015-09-16  Andreas Schwab  <schwab@suse.de>
15172
15173         [BZ #17244]
15174         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
15175         Remove extra va_start/va_end calls.
15176
15177         [BZ #17243]
15178         * posix/execl.c (execl): Add missing va_end.
15179         * posix/execle.c (execle): Likewise.
15180         * posix/execlp.c (execlp): Likewise.
15181
15182 2015-09-15  Roland McGrath  <roland@hack.frob.com>
15183
15184         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
15185         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
15186
15187 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
15188
15189         [BZ #18967]
15190         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
15191         undefine around includes of <bits/mathcalls.h>.
15192         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
15193         not declare function.
15194         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
15195         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
15196         (scalb): Likewise.
15197         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
15198         not define macro.
15199         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
15200         variable.
15201         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
15202         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
15203         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
15204
15205         [BZ #18857]
15206         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
15207         return non-finite argument without doing ordered comparisons on
15208         it.
15209
15210         [BZ #16296]
15211         * math/fenv.h (fegetround): Use __attribute_pure__.
15212         * include/fenv.h (__fegetround): Likewise.
15213
15214         [BZ #18595]
15215         * math/s_ctan.c (__ctan): Force underflow exception for results
15216         whose real or imaginary part has small absolute value.
15217         * math/s_ctanf.c (__ctanf): Likewise.
15218         * math/s_ctanh.c (__ctanh): Likewise.
15219         * math/s_ctanhf.c (__ctanhf): Likewise.
15220         * math/s_ctanhl.c (__ctanhl): Likewise.
15221         * math/s_ctanl.c (__ctanl): Likewise.
15222         * math/auto-libm-test-in: Do not allow missing underflow for ctan
15223         and ctanh.  Add more tests of ctan and ctanh.
15224
15225         [BZ #15918]
15226         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
15227         handling of cases where one argument is an infinity.
15228
15229         [BZ #18875]
15230         [BZ #18966]
15231         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
15232         (MO): New macro.
15233         (__ieee754_exp10): For small results, force underflow exception
15234         and remove excess range and precision from return value.
15235         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
15236         (MO): New macro.
15237         (__ieee754_exp10f): For small results, force underflow exception
15238         and remove excess range and precision from return value.
15239         * math/auto-libm-test-in: Add more tests of exp10.
15240         * math/auto-libm-test-out: Regenerated.
15241
15242 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
15243
15244         [BZ #18875]
15245         [BZ #18961]
15246         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
15247         (MO): New macro.
15248         (__ieee754_exp): For small results, force underflow exception and
15249         remove excess range and precision from return value.
15250         (__exp_finite): Likewise.
15251         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
15252         (MO): New macro.
15253         (__ieee754_expf): For small results, force underflow exception and
15254         remove excess range and precision from return value.
15255         (__expf_finite): Likewise.
15256         * math/auto-libm-test-in: Add more tests of exp.
15257         * math/auto-libm-test-out: Regenerated.
15258
15259         [BZ #16521]
15260         [BZ #18875]
15261         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
15262         small results.
15263         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
15264         (MO): New macro.
15265         (__ieee754_exp2): For small results, force underflow exception and
15266         remove excess range and precision from return value.
15267         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
15268         (MO): New macro.
15269         (__ieee754_exp2f): For small results, force underflow exception
15270         and remove excess range and precision from return value.
15271         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
15272         (MO): New macro.
15273         (__ieee754_exp2l): Force underflow exception for small results.
15274         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
15275         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15276         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
15277         (MO): New macro.
15278         (__ieee754_exp2l): Force underflow exception for small results.
15279         * math/auto-libm-test-in: Add more tests or exp2.
15280         * math/auto-libm-test-out: Regenerated.
15281
15282 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
15283
15284         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
15285
15286         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
15287         /dev/null.
15288
15289 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15290
15291         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
15292         io fs process)): Drop spurious backslash.
15293
15294 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
15295
15296         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
15297         Use sysinfo system call instead of parsing /proc/meminfo.
15298         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
15299         Likewise.
15300
15301 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
15302
15303         [BZ #16985]
15304         * programs/localedef.c (main): Display argv[remaining] when
15305         output_path is NULL.
15306
15307 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
15308
15309         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
15310         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
15311         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
15312         tanh.
15313         * math/auto-libm-test-out: Regenerated.
15314         * sysdeps/i386/fpu/libm-test-ulps: Update.
15315         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
15316         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15318
15319 2015-09-11  Roland McGrath  <roland@hack.frob.com>
15320
15321         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
15322         Use 'override' keyword to freeze the value here, preventing
15323         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
15324
15325 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
15326
15327         [BZ #14912]
15328         * sysdeps/aarch64/bits/atomic.h: Move to ...
15329         * sysdeps/aarch64/atomic-machine.h: ...here.
15330         (_AARCH64_BITS_ATOMIC_H): Rename macro to
15331         _AARCH64_ATOMIC_MACHINE_H.
15332         * sysdeps/alpha/bits/atomic.h: Move to ...
15333         * sysdeps/alpha/atomic-machine.h: ...here.
15334         * sysdeps/arm/bits/atomic.h: Move to ...
15335         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
15336         * bits/atomic.h: Move to ...
15337         * sysdeps/generic/atomic-machine.h: ...here.
15338         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15339         * sysdeps/i386/bits/atomic.h: Move to ...
15340         * sysdeps/i386/atomic-machine.h: ...here.
15341         * sysdeps/ia64/bits/atomic.h: Move to ...
15342         * sysdeps/ia64/atomic-machine.h: ...here.
15343         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
15344         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
15345         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15346         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
15347         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
15348         * sysdeps/microblaze/bits/atomic.h: Move to ...
15349         * sysdeps/microblaze/atomic-machine.h: ...here.
15350         * sysdeps/mips/bits/atomic.h: Move to ...
15351         * sysdeps/mips/atomic-machine.h: ...here.
15352         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
15353         * sysdeps/powerpc/bits/atomic.h: Move to ...
15354         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
15355         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
15356         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
15357         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
15358         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
15359         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
15360         <atomic-machine.h> instead of <bits/atomic.h>.
15361         * sysdeps/s390/bits/atomic.h: Move to ...
15362         * sysdeps/s390/atomic-machine.h: ...here.
15363         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
15364         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
15365         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15366         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
15367         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
15368         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
15369         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
15370         * sysdeps/tile/bits/atomic.h: Move to ...
15371         * sysdeps/tile/atomic-machine.h: ...here.
15372         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
15373         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
15374         <sysdeps/tile/atomic-machine.h> instead of
15375         <sysdeps/tile/bits/atomic.h>.
15376         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15377         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
15378         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
15379         <sysdeps/tile/atomic-machine.h> instead of
15380         <sysdeps/tile/bits/atomic.h>.
15381         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15382         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
15383         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
15384         <sysdeps/arm/atomic-machine.h> instead of
15385         <sysdeps/arm/bits/atomic.h>.
15386         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
15387         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
15388         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15389         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
15390         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
15391         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
15392         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
15393         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
15394         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
15395         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
15396         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
15397         * sysdeps/x86_64/bits/atomic.h: Move to ...
15398         * sysdeps/x86_64/atomic-machine.h: ...here.
15399         * include/atomic.h: Include <atomic-machine.h> instead of
15400         <bits/atomic.h>.
15401
15402         * sysdeps/mips/mips32/libm-test-ulps: Update.
15403         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15404
15405         [BZ #18952]
15406         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
15407         not convert non-integer negative arguments to int to determine the
15408         value of signgam.
15409         * math/auto-libm-test-in: Add more tests of lgamma.
15410         * math/auto-libm-test-out: Regenerated.
15411
15412         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
15413         cosh, csqrt, erfc, expm1 and lgamma.
15414         * math/auto-libm-test-out: Regenerated.
15415         * sysdeps/i386/fpu/libm-test-ulps: Update.
15416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15417
15418 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
15419
15420         [BZ #2542]
15421         [BZ #2543]
15422         [BZ #2558]
15423         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
15424         __lgamma_neg for arguments from -28.0 to -2.0.
15425         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
15426         __lgamma_negf for arguments from -15.0 to -2.0.
15427         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
15428         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
15429         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
15430         Call __lgamma_negl for arguments from -33.0 to -2.0.
15431         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
15432         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
15433         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
15434         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
15435         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
15436         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
15437         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
15438         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
15439         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
15440         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
15441         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
15442         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
15443         (__lgamma_neg): Likewise.
15444         (__lgamma_negl): Likewise.
15445         (__lgamma_product): Likewise.
15446         (__lgamma_productl): Likewise.
15447         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
15448         * math/auto-libm-test-in: Add more tests of lgamma.
15449         * math/auto-libm-test-out: Regenerated.
15450         * sysdeps/i386/fpu/libm-test-ulps: Update.
15451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15452
15453 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
15454
15455         [BZ #18675]
15456         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
15457
15458 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
15459
15460         [BZ #14912]
15461         * bits/libc-lock.h: Move to ...
15462         * sysdeps/generic/libc-lock.h: ...here.
15463         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
15464         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
15465         * sysdeps/mach/hurd/libc-lock.h: ...here.
15466         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
15467         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
15468         * sysdeps/mach/bits/libc-lock.h: Move to ...
15469         * sysdeps/mach/libc-lock.h: ...here.
15470         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
15471         * sysdeps/nptl/bits/libc-lock.h: Move to ...
15472         * sysdeps/nptl/libc-lock.h: ...here.
15473         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
15474         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
15475         * sysdeps/nptl/libc-lockP.h: ...here.
15476         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
15477         * crypt/crypt_util.c: Include <libc-lock.h> instead of
15478         <bits/libc-lock.h>.
15479         * dirent/scandir-tail.c: Likewise.
15480         * dlfcn/dlerror.c: Likewise.
15481         * elf/dl-close.c: Likewise.
15482         * elf/dl-iteratephdr.c: Likewise.
15483         * elf/dl-lookup.c: Likewise.
15484         * elf/dl-open.c: Likewise.
15485         * elf/dl-support.c: Likewise.
15486         * elf/dl-writev.h: Likewise.
15487         * elf/rtld.c: Likewise.
15488         * grp/fgetgrent.c: Likewise.
15489         * gshadow/fgetsgent.c: Likewise.
15490         * gshadow/sgetsgent.c: Likewise.
15491         * iconv/gconv_conf.c: Likewise.
15492         * iconv/gconv_db.c: Likewise.
15493         * iconv/gconv_dl.c: Likewise.
15494         * iconv/gconv_int.h: Likewise.
15495         * iconv/gconv_trans.c: Likewise.
15496         * include/link.h: Likewise.
15497         * inet/getnameinfo.c: Likewise.
15498         * inet/getnetgrent.c: Likewise.
15499         * inet/getnetgrent_r.c: Likewise.
15500         * intl/bindtextdom.c: Likewise.
15501         * intl/dcigettext.c: Likewise.
15502         * intl/finddomain.c: Likewise.
15503         * intl/gettextP.h: Likewise.
15504         * intl/loadmsgcat.c: Likewise.
15505         * intl/localealias.c: Likewise.
15506         * intl/textdomain.c: Likewise.
15507         * libidn/idn-stub.c: Likewise.
15508         * libio/libioP.h: Likewise.
15509         * locale/duplocale.c: Likewise.
15510         * locale/freelocale.c: Likewise.
15511         * locale/newlocale.c: Likewise.
15512         * locale/setlocale.c: Likewise.
15513         * login/getutent_r.c: Likewise.
15514         * login/getutid_r.c: Likewise.
15515         * login/getutline_r.c: Likewise.
15516         * login/utmp-private.h: Likewise.
15517         * login/utmpname.c: Likewise.
15518         * malloc/mtrace.c: Likewise.
15519         * misc/efgcvt.c: Likewise.
15520         * misc/error.c: Likewise.
15521         * misc/fstab.c: Likewise.
15522         * misc/getpass.c: Likewise.
15523         * misc/mntent.c: Likewise.
15524         * misc/syslog.c: Likewise.
15525         * nis/nis_call.c: Likewise.
15526         * nis/nis_callback.c: Likewise.
15527         * nis/nss-default.c: Likewise.
15528         * nis/nss_compat/compat-grp.c: Likewise.
15529         * nis/nss_compat/compat-initgroups.c: Likewise.
15530         * nis/nss_compat/compat-pwd.c: Likewise.
15531         * nis/nss_compat/compat-spwd.c: Likewise.
15532         * nis/nss_nis/nis-alias.c: Likewise.
15533         * nis/nss_nis/nis-ethers.c: Likewise.
15534         * nis/nss_nis/nis-grp.c: Likewise.
15535         * nis/nss_nis/nis-hosts.c: Likewise.
15536         * nis/nss_nis/nis-network.c: Likewise.
15537         * nis/nss_nis/nis-proto.c: Likewise.
15538         * nis/nss_nis/nis-pwd.c: Likewise.
15539         * nis/nss_nis/nis-rpc.c: Likewise.
15540         * nis/nss_nis/nis-service.c: Likewise.
15541         * nis/nss_nis/nis-spwd.c: Likewise.
15542         * nis/nss_nisplus/nisplus-alias.c: Likewise.
15543         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
15544         * nis/nss_nisplus/nisplus-grp.c: Likewise.
15545         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
15546         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
15547         * nis/nss_nisplus/nisplus-network.c: Likewise.
15548         * nis/nss_nisplus/nisplus-proto.c: Likewise.
15549         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
15550         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
15551         * nis/nss_nisplus/nisplus-service.c: Likewise.
15552         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
15553         * nis/ypclnt.c: Likewise.
15554         * nptl/libc_pthread_init.c: Likewise.
15555         * nss/getXXbyYY.c: Likewise.
15556         * nss/getXXent.c: Likewise.
15557         * nss/getXXent_r.c: Likewise.
15558         * nss/nss_db/db-XXX.c: Likewise.
15559         * nss/nss_db/db-netgrp.c: Likewise.
15560         * nss/nss_db/nss_db.h: Likewise.
15561         * nss/nss_files/files-XXX.c: Likewise.
15562         * nss/nss_files/files-alias.c: Likewise.
15563         * nss/nsswitch.c: Likewise.
15564         * posix/regex_internal.h: Likewise.
15565         * posix/wordexp.c: Likewise.
15566         * pwd/fgetpwent.c: Likewise.
15567         * resolv/res_hconf.c: Likewise.
15568         * resolv/res_libc.c: Likewise.
15569         * shadow/fgetspent.c: Likewise.
15570         * shadow/lckpwdf.c: Likewise.
15571         * shadow/sgetspent.c: Likewise.
15572         * socket/opensock.c: Likewise.
15573         * stdio-common/reg-modifier.c: Likewise.
15574         * stdio-common/reg-printf.c: Likewise.
15575         * stdio-common/reg-type.c: Likewise.
15576         * stdio-common/vfprintf.c: Likewise.
15577         * stdio-common/vfscanf.c: Likewise.
15578         * stdlib/abort.c: Likewise.
15579         * stdlib/cxa_atexit.c: Likewise.
15580         * stdlib/fmtmsg.c: Likewise.
15581         * stdlib/random.c: Likewise.
15582         * stdlib/setenv.c: Likewise.
15583         * string/strsignal.c: Likewise.
15584         * sunrpc/auth_none.c: Likewise.
15585         * sunrpc/bindrsvprt.c: Likewise.
15586         * sunrpc/create_xid.c: Likewise.
15587         * sunrpc/key_call.c: Likewise.
15588         * sunrpc/rpc_thread.c: Likewise.
15589         * sysdeps/arm/backtrace.c: Likewise.
15590         * sysdeps/generic/ldsodefs.h: Likewise.
15591         * sysdeps/generic/stdio-lock.h: Likewise.
15592         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
15593         * sysdeps/i386/backtrace.c: Likewise.
15594         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
15595         * sysdeps/m68k/backtrace.c: Likewise.
15596         * sysdeps/mach/hurd/cthreads.c: Likewise.
15597         * sysdeps/mach/hurd/dirstream.h: Likewise.
15598         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
15599         * sysdeps/nptl/malloc-machine.h: Likewise.
15600         * sysdeps/nptl/stdio-lock.h: Likewise.
15601         * sysdeps/posix/dirstream.h: Likewise.
15602         * sysdeps/posix/getaddrinfo.c: Likewise.
15603         * sysdeps/posix/system.c: Likewise.
15604         * sysdeps/pthread/aio_suspend.c: Likewise.
15605         * sysdeps/s390/s390-32/backtrace.c: Likewise.
15606         * sysdeps/s390/s390-64/backtrace.c: Likewise.
15607         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
15608         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
15609         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
15610         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
15611         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
15612         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
15613         * sysdeps/unix/sysv/linux/system.c: Likewise.
15614         * sysdeps/x86_64/backtrace.c: Likewise.
15615         * time/alt_digit.c: Likewise.
15616         * time/era.c: Likewise.
15617         * time/tzset.c: Likewise.
15618         * wcsmbs/wcsmbsload.c: Likewise.
15619         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
15620         instead of <bits/libc-lock.h> in comment.
15621
15622 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
15623
15624         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
15625         Only use .set mips2 if the current ISA is below mips2.
15626         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
15627         Likewise.
15628         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
15629         mips32r2 if the current ISA is below mips32r2.
15630         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
15631         (TLS_IE): Updated to use the TLD_RDHWR macro.
15632         (TLS_LE): Likewise.
15633         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
15634         __ASSEMBLER__ condition.
15635
15636 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15637
15638         Fix parallel build of before-compile targets.
15639
15640         * sysdeps/mach/Makefile ($(patsubst
15641         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
15642         mach-before-compile target.
15643         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
15644         io fs process)): Move rule to dedicated hurd-before-compile target.
15645
15646 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15647
15648         Fix rules generating headers in hurd/ and mach/ when initial make call
15649         has subdir= explicitly set.
15650
15651         * sysdeps/mach/Makefile ($(patsubst
15652         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
15653         calling $(MAKE).
15654         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
15655         io fs process)): Force subdir to hurd when calling $(MAKE).
15656         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
15657         subdir to mach when calling $(MAKE).
15658
15659 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
15660
15661         Check sysheaders when looking for Mach and Hurd headers
15662
15663         * sysdeps/mach/configure.ac: Add sysheaders check.
15664         * sysdeps/mach/configure: Regenerate.
15665         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
15666         * sysdeps/mach/hurd/configure: Regenerate.
15667
15668 2015-09-04  Roland McGrath  <roland@hack.frob.com>
15669
15670         [BZ #18921]
15671         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
15672         Fix inverted sense of test of 'o_directory_works' value.
15673         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
15674         Bernhard Voelker <mail@bernhard-voelker.de>.
15675
15676 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
15677
15678         [BZ #14912]
15679         * bits/linkmap.h: Move to ...
15680         * sysdeps/generic/linkmap.h: ...here.
15681         * sysdeps/aarch64/bits/linkmap.h: Move to ...
15682         * sysdeps/aarch64/linkmap.h: ...here.
15683         * sysdeps/arm/bits/linkmap.h: Move to ...
15684         * sysdeps/arm/linkmap.h: ...here.
15685         * sysdeps/hppa/bits/linkmap.h: Move to ...
15686         * sysdeps/hppa/linkmap.h: ...here.
15687         * sysdeps/ia64/bits/linkmap.h: Move to ...
15688         * sysdeps/ia64/linkmap.h: ...here.
15689         * sysdeps/mips/bits/linkmap.h: Move to ...
15690         * sysdeps/mips/linkmap.h: ...here.
15691         * sysdeps/s390/bits/linkmap.h: Move to ...
15692         * sysdeps/s390/linkmap.h: ...here.
15693         * sysdeps/sh/bits/linkmap.h: Move to ...
15694         * sysdeps/sh/linkmap.h: ...here.
15695         * sysdeps/x86/bits/linkmap.h: Move to ...
15696         * sysdeps/x86/linkmap.h: ...here.
15697         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
15698
15699 2015-09-04  Andreas Schwab  <schwab@suse.de>
15700
15701         [BZ #18635]
15702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
15703         (__makecontext): Terminate FDE before return label.
15704         (__novec_makecontext): Likewise.
15705
15706 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
15707
15708         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
15709         first member of struct sv in syscall macro.
15710
15711 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
15712
15713         [BZ #14912]
15714         * bits/stdio-lock.h: Move to ...
15715         * sysdeps/generic/stdio-lock.h: ...here.
15716         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
15717         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
15718         * sysdeps/nptl/stdio-lock.h: ...here.
15719         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
15720         * include/libio.h: Include <stdio-lock.h> instead of
15721         <bits/stdio-lock.h>.
15722         * sysdeps/nptl/fork.c: Likewise.
15723         * sysdeps/pthread/flockfile.c: Likewise.
15724         * sysdeps/pthread/ftrylockfile.c: Likewise.
15725         * sysdeps/pthread/funlockfile.c: Likewise.
15726
15727         [BZ #14912]
15728         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
15729         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
15730         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
15731         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
15732         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
15733         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
15734         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
15735
15736 2015-09-03  Roland McGrath  <roland@hack.frob.com>
15737
15738         * elf/Makefile (test-xfail-tst-protected1a): New variable.
15739         (test-xfail-tst-protected1b): New variable.
15740
15741 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
15742
15743         [BZ #14912]
15744         * bits/libc-tsd.h: Move to ...
15745         * sysdeps/generic/libc-tsd.h: ...here.
15746         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
15747         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
15748         * sysdeps/mach/hurd/libc-tsd.h: ...here.
15749         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
15750         * include/ctype.h: Include <libc-tsd.h> instead of
15751         <bits/libc-tsd.h>.
15752         * include/rpc/rpc.h: Likewise.
15753         * locale/localeinfo.h: Likewise.
15754         * sunrpc/rpc_thread.c: Likewise.
15755         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
15756         * sysdeps/nptl/malloc-machine.h: Likewise.
15757
15758         * Makefile (headers): Remove bits/libc-lock.h.
15759         * libio/Makefile (headers): Remove bits/stdio-lock.h.
15760
15761         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
15762         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
15763         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
15764         <bits/stdio-lock.h>.
15765         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
15766         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
15767
15768 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
15769
15770         [BZ #18757]
15771         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
15772         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
15773         BZ #18757.
15774
15775 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
15776
15777         * malloc/mtrace.pl: Filter out NULL entries.
15778
15779 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
15780
15781         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
15782         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
15783         macro.
15784
15785         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
15786         (TCP_CC_INFO): Likewise.
15787         (TCP_SAVE_SYN): Likewise.
15788         (TCP_SAVED_SYN): Likewise.
15789
15790 2015-08-31  Brett Neumeier <brett@neumeier.us>
15791
15792         [BZ #18870]
15793         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
15794
15795 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15796
15797         [BZ #18873]
15798         Fix broken overflow check in posix_fallocate
15799         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
15800         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
15801         Fix parenthesization typo.
15802
15803 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
15804
15805         [BZ #18887]
15806         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
15807         tst-mntent-blank-passno.
15808         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
15809         * misc/tst-mntent-blank-corrupt.c: New test.
15810         * misc/tst-mntent-blank-passno.c: New test ripped from ...
15811         * misc/tst-mntent.c (do_test): ... here.
15812
15813 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
15814
15815         [BZ #4404]
15816         * po/de.po: Fix SIGALRM typo.
15817
15818 2015-08-28  James Perkins  <james@loowit.net>
15819
15820         * time/tst-strptime2.c (tests): Replace short list of test
15821         strings for strptime %z specifier with code which exhaustively
15822         tests every combination of sign and 0 to 5 digits. Tests for
15823         rejection of invalid strings.
15824
15825 2015-08-28  James Perkins  <james@loowit.net>
15826
15827         [BZ #16141]
15828         * time/strptime_l.c (__strptime_internal): Fix %z minutes
15829         calculation, removing incorrect decimal time rounding, so that
15830         all minute values result in a valid seconds value.
15831         * time/strptime_l.c (__strptime_internal): Extend %z time zone
15832         offset range limits to UTC-99:59 through UTC+99:59 to parse
15833         current and historical use cases.
15834         * time/tst-strptime2.c (tests): Modify and add tests for the
15835         strptime %z input field descriptor, specifically conversion of
15836         minutes to seconds and validating an offset range of -9959 to
15837         +9959.
15838
15839 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15840             Dmitry V. Levin  <ldv@altlinux.org>
15841
15842         [BZ #18877]
15843         * posix/Makefile (tests): Add tst-mmap-offset.
15844         * posix/tst-mmap.c: New file.
15845         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
15846         offset calculation for negative values.
15847
15848 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15849
15850         * sysdeps/i386/init-arch.h: New file.
15851         * sysdeps/i386/i586/init-arch.h: Likewise.
15852         * sysdeps/i386/i686/init-arch.h: Likewise.
15853         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
15854         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
15855         * sysdeps/x86/cpu-features.h (bit_I586): New.
15856         (bit_I686): Likewise.
15857         (bit_CX8): Likewise.
15858         (bit_CMOV): Likewise.
15859         (index_CX8): Likewise.
15860         (index_CMOV): Likewise.
15861         (index_I586): Likewise.
15862         (index_I686): Likewise.
15863         (reg_CX8): Likewise.
15864         (reg_CMOV): Likewise.
15865         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
15866         available at compile-time.
15867         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
15868         available at compile-time.
15869         * sysdeps/x86/init-arch.h (USE_I586): New macro.
15870         (USE_I686): Likewise.
15871
15872 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15873
15874         * sysdeps/i386/bcopy.S: New file.
15875         * sysdeps/i386/bzero.S: Likewise.
15876         * sysdeps/i386/memcpy.S: Likewise.
15877         * sysdeps/i386/memmove.S: Likewise.
15878         * sysdeps/i386/mempcpy.S: Likewise.
15879         * sysdeps/i386/memset.S: Likewise.
15880         * sysdeps/i386/bzero.c: Removed.
15881         * sysdeps/i386/memset.c: Likewise.
15882         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
15883         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
15884         * sysdeps/i386/i586/memset_chk.S: Likewise.
15885         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
15886         * sysdeps/i386/memcpy_chk.S: Here.
15887         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
15888         * sysdeps/i386/memmove_chk.S: Here.
15889         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
15890         * sysdeps/i386/mempcpy_chk.S: Likewise.
15891         * sysdeps/i386/i686/memset_chk.S: Moved to ...
15892         * sysdeps/i386/memset_chk.S: Likewise.
15893
15894 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
15895
15896         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
15897         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
15898         file, move DIAG_POP_NEEDS_COMMENT to end of file.
15899         * soft-fp/fmadf4.c: Ditto.
15900         * soft-fp/fmatf4.c: Ditto.
15901
15902 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15903
15904         * sysdeps/i386/i586/Implies: Removed.
15905         * sysdeps/i386/i686/Implies: Likewise.
15906
15907 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15908
15909         * sysdeps/i386/i486/strlen.S: Moved to ...
15910         * sysdeps/i386/strlen.S: Here.
15911
15912 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15913
15914         * sysdeps/i386/i486/strcat.S: Moved to ...
15915         * sysdeps/i386/strcat.S: Here.
15916
15917 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15918
15919         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
15920         * sysdeps/i386/pthread_spin_trylock.S: Here.
15921         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
15922         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
15923
15924 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15925
15926         * sysdeps/i386/i486/string-inlines.c: Moved to ...
15927         * sysdeps/i386/string-inlines.c: Here.
15928
15929 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15930
15931         * sysdeps/i386/i486/htonl.S: Moved ...
15932         * sysdeps/i386/htonl.S: here.
15933
15934 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15935
15936         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
15937         * sysdeps/i386/bits/atomic.h: Here.
15938
15939 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15940
15941         * sysdeps/i386/i486/Versions: Removed.
15942
15943 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
15944
15945         [BZ #2898]
15946         * misc/mktemp.c: Add mkdtemp to the link_warning message.
15947         Based on patch by Aurelien Jarno.
15948
15949 2015-08-26  Stan Shebs  <stanshebs@google.com>
15950
15951         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
15952         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
15953
15954 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
15955
15956         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
15957         * sysdeps/powerpc/dl-procinfo.c:
15958         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
15959         feature so it shows when LD_SHOW_AUXV=1.
15960
15961 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15962
15963         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
15964         (__arch_compare_and_exchange_val_32_acq): Remove and use common
15965         definition.  ISA 2.07B no longer requires full sync.
15966
15967 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
15968
15969         [BZ #18863]
15970         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
15971         (si_call_addr): Define.
15972         (si_syscall): Define.
15973         (si_arch): Define.
15974
15975 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
15976
15977         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
15978         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
15979         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
15980         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
15981         (__memset_zero_constant_len_parameter): New.
15982         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
15983         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
15984         (__memset_zero_constant_len_parameter): Don't define if
15985         __memset_chk or USE_AS_BZERO are defined.
15986
15987         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
15988         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
15989         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
15990
15991         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
15992         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
15993         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
15994         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
15995         comments.
15996         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
15997         -mno-mmx for $(all-rtld-routines).
15998         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
15999         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
16000         i386.
16001
16002 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
16003
16004         * sysdeps/generic/unwind.h
16005         (_Unwind_Word): Use __mode__(__unwind_word__)
16006         instead of __mode__(__word__).
16007         (_Unwind_Sword): Likewise.
16008
16009         * sysdeps/s390/s390-64/utf8-utf16-z9.c
16010         (MAX_NEEDED_INPUT): New define.
16011         (MAX_NEEDED_OUTPUT): New define.
16012
16013         * NEWS: New item for IBM z13 string optimizations.
16014
16015         * sysdeps/s390/multiarch/memrchr-c.c: New File.
16016         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
16017         * sysdeps/s390/multiarch/memrchr.c: Likewise.
16018         * sysdeps/s390/multiarch/Makefile
16019         (sysdep_routines): Add memrchr functions.
16020         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16021         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
16022
16023         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
16024         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
16025         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
16026         * sysdeps/s390/multiarch/Makefile
16027         (sysdep_routines): Add wmemcmp functions.
16028         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16029         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
16030         * benchtests/bench-wmemcmp.c: New File.
16031         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
16032
16033         * sysdeps/s390/multiarch/wmemset-c.c: New File.
16034         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
16035         * sysdeps/s390/multiarch/wmemset.c: Likewise.
16036         * sysdeps/s390/multiarch/Makefile
16037         (sysdep_routines): Add wmemset functions.
16038         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16039         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
16040         * wcsmbs/wmemset.c: Use WMEMSET if defined.
16041         * string/test-memset.c: Add wmemset support.
16042         * wcsmbs/test-wmemset.c: New File.
16043         * wcsmbs/Makefile (strop-tests): Add wmemset.
16044         * benchtests/bench-memset.c: Add wmemset support.
16045         * benchtests/bench-wmemset.c: New File.
16046         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
16047
16048         * sysdeps/s390/multiarch/memccpy-c.c: New File.
16049         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
16050         * sysdeps/s390/multiarch/memccpy.c: Likewise.
16051         * sysdeps/s390/multiarch/Makefile
16052         (sysdep_routines): Add memccpy functions.
16053         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16054         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
16055         * string/memccpy.c: Use MEMCCPY if defined.
16056
16057         * sysdeps/s390/multiarch/memchr-vx.S: New File.
16058         * sysdeps/s390/multiarch/memchr.c: Likewise.
16059         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
16060         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
16061         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
16062         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
16063         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
16064         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
16065         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
16066         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
16067         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
16068         and rawmemchr functions.
16069         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
16070         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
16071         and wmemchr.
16072         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
16073         * string/test-memchr.c: Add wmemchr support.
16074         * wcsmbs/test-wmemchr.c: New File.
16075         * wcsmbs/Makefile (strop-tests): Add wmemchr.
16076         * benchtests/bench-memchr.c: Add wmemchr support.
16077         * benchtests/bench-wmemchr.c: New File.
16078         * benchtests/Makefile (wcsmbs-bench): wmemchr.
16079
16080         * sysdeps/s390/multiarch/strcspn-c.c: New File.
16081         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
16082         * sysdeps/s390/multiarch/strcspn.c: Likewise.
16083         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
16084         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
16085         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
16086         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
16087         wcscspn functions.
16088         * sysdeps/s390/multiarch/ifunc-impl-list.c
16089         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
16090         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
16091         * string/test-strcspn.c: Add wcscspn support.
16092         * wcsmbs/test-wcscspn.c: New File.
16093         * wcsmbs/Makefile (strop-tests): Add wcscspn.
16094         * benchtests/bench-strcspn.c: Add wcscspn support.
16095         * benchtests/bench-wcscspn.c: New File.
16096         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
16097
16098         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
16099         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
16100         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
16101         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
16102         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
16103         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
16104         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
16105         wcspbrk functions.
16106         * sysdeps/s390/multiarch/ifunc-impl-list.c
16107         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
16108         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
16109         * string/test-strpbrk.c: Add wcspbrk support.
16110         * wcsmbs/test-wcspbrk.c: New File.
16111         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
16112         * benchtests/bench-strpbrk.c: Add wcspbrk support.
16113         * benchtests/bench-wcspbrk.c: New File.
16114         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
16115
16116         * sysdeps/s390/multiarch/strspn-c.c: New File.
16117         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
16118         * sysdeps/s390/multiarch/strspn.c: Likewise.
16119         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
16120         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
16121         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
16122         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
16123         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
16124         wcsspn functions.
16125         * sysdeps/s390/multiarch/ifunc-impl-list.c
16126         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
16127         * string/test-strspn.c: Add wcsspn support.
16128         * wcsmbs/test-wcsspn.c: New File.
16129         * wcsmbs/Makefile (strop-tests): Add wcsspn.
16130         * benchtests/bench-strspn.c: Add wcsspn support.
16131         * benchtests/bench-wcsspn.c: New File.
16132         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
16133
16134         * sysdeps/s390/multiarch/strrchr-c.c: New File.
16135         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
16136         * sysdeps/s390/multiarch/strrchr.c: Likewise.
16137         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
16138         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
16139         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
16140         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
16141         wcsrchr functions.
16142         * sysdeps/s390/multiarch/ifunc-impl-list.c
16143         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
16144         * benchtests/bench-wcsrchr.c: New File.
16145         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
16146
16147         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
16148         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
16149         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
16150         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
16151         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
16152         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
16153         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
16154         wcschrnul functions.
16155         * sysdeps/s390/multiarch/ifunc-impl-list.c
16156         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
16157         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
16158         * string/test-strchr.c: Add wcschrnul support.
16159         * wcsmbs/test-wcschrnul.c: New File.
16160         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
16161         * benchtests/bench-strchr.c: Add wcschrnul support.
16162         * benchtests/bench-wcschrnul.c: New File.
16163         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
16164
16165         * sysdeps/s390/multiarch/strchr-c.c: New File.
16166         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
16167         * sysdeps/s390/multiarch/strchr.c: Likewise.
16168         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
16169         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
16170         * sysdeps/s390/multiarch/wcschr.c: Likewise.
16171         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
16172         wcschr functions.
16173         * sysdeps/s390/multiarch/ifunc-impl-list.c
16174         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
16175         * string/strchr.c (STRCHR): Define and use macro.
16176         * benchtests/bench-wcschr.c: New File.
16177         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
16178
16179         * sysdeps/s390/multiarch/strncmp-c.c: New File.
16180         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
16181         * sysdeps/s390/multiarch/strncmp.c: Likewise.
16182         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
16183         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
16184         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
16185         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
16186         wcsncmp functions.
16187         * sysdeps/s390/multiarch/ifunc-impl-list.c
16188         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
16189         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
16190         * benchtests/bench-strncmp.c: Add wcsncmp support.
16191         * benchtests/bench-wcsncmp.c: New File.
16192         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
16193
16194         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
16195         * sysdeps/s390/multiarch/strcmp.c: Likewise.
16196         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
16197         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
16198         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
16199         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
16200         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
16201         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
16202         wcscmp functions.
16203         * sysdeps/s390/multiarch/ifunc-impl-list.c
16204         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
16205         * string/strcmp.c (STRCMP): Define and use macro.
16206         * benchtests/bench-wcscmp.c: New File.
16207         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
16208         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
16209         instead of _HAVE_STRING_ARCH_memchr.
16210
16211         * sysdeps/s390/multiarch/strncat-c.c: New File.
16212         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
16213         * sysdeps/s390/multiarch/strncat.c: Likewise.
16214         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
16215         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
16216         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
16217         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
16218         wcsncat functions.
16219         * sysdeps/s390/multiarch/ifunc-impl-list.c
16220         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
16221         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
16222         * string/test-strncat.c: Add wcsncat support.
16223         * wcsmbs/test-wcsncat.c: New File.
16224         * wcsmbs/Makefile (strop-tests): Add wcsncat.
16225         * benchtests/bench-strncat.c: Add wcsncat support.
16226         * benchtests/bench-wcsncat.c: New File.
16227         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
16228
16229         * sysdeps/s390/multiarch/strcat-c.c: New File.
16230         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
16231         * sysdeps/s390/multiarch/strcat.c: Likewise.
16232         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
16233         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
16234         * sysdeps/s390/multiarch/wcscat.c: Likewise.
16235         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
16236         wcscat functions.
16237         * sysdeps/s390/multiarch/ifunc-impl-list.c
16238         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
16239         * string/strcat.c (STRCAT): Define and use macro.
16240         * wcsmbs/wcscat.c: Use WCSCAT if defined.
16241         * string/test-strcat.c: Add wcscat support.
16242         * wcsmbs/test-wcscat.c: New File.
16243         * wcsmbs/Makefile (strop-tests): Add wcscat.
16244         * benchtests/bench-strcat.c: Add wcscat support.
16245         * benchtests/bench-wcscat.c: New File.
16246         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
16247
16248         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
16249         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
16250         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
16251         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
16252         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
16253         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
16254         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
16255         wcpncpy functions.
16256         * sysdeps/s390/multiarch/ifunc-impl-list.c
16257         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
16258         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
16259         * string/test-stpncpy.c: Add wcpncpy support.
16260         * wcsmbs/test-wcpncpy.c: New File.
16261         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
16262         * benchtests/bench-stpncpy.c: Add wcpncpy support.
16263         * benchtests/bench-wcpncpy.c: New File.
16264         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
16265
16266         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
16267         * sysdeps/s390/multiarch/strncpy.c: Likewise.
16268         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
16269         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
16270         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
16271         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
16272         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
16273         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
16274         wcsncpy functions.
16275         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
16276         * sysdeps/s390/multiarch/ifunc-impl-list.c
16277         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
16278         * string/test-strncpy.c: Add wcsncpy support.
16279         * wcsmbs/test-wcsncpy.c: New File.
16280         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
16281         * benchtests/bench-strncpy.c: Add wcsncpy support.
16282         * benchtests/bench-wcsncpy.c: New File.
16283         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
16284
16285         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
16286         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
16287         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
16288         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
16289         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
16290         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
16291         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
16292         wcpcpy functions.
16293         * string/stpcpy.c: Use STPCPY if defined.
16294         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
16295         * sysdeps/s390/multiarch/ifunc-impl-list.c
16296         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
16297         * string/test-stpcpy.c: Add wcpcpy support.
16298         * wcsmbs/test-wcpcpy.c: New File.
16299         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
16300         * benchtests/bench-stpcpy.c: Add wcpcpy support.
16301         * benchtests/bench-wcpcpy.c: New File.
16302         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
16303
16304         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
16305         * sysdeps/s390/multiarch/strcpy.c: Likewise.
16306         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
16307         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
16308         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
16309         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
16310         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
16311         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
16312         wcscpy functions.
16313         * sysdeps/s390/multiarch/ifunc-impl-list.c
16314         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
16315         * benchtests/bench-wcscpy.c: New File.
16316         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
16317
16318         * sysdeps/s390/multiarch/strnlen-c.c: New File.
16319         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
16320         * sysdeps/s390/multiarch/strnlen.c: Likewise.
16321         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
16322         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
16323         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
16324         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
16325         wcsnlen functions.
16326         * sysdeps/s390/multiarch/ifunc-impl-list.c
16327         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
16328         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
16329         * string/test-strnlen.c: Add wcsnlen support.
16330         * wcsmbs/test-wcsnlen.c: New File.
16331         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
16332         * benchtests/bench-strnlen.c: Add wcsnlen support.
16333         * benchtests/bench-wcsnlen.c: New File.
16334         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
16335
16336         * sysdeps/s390/multiarch/Makefile: New File.
16337         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
16338         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
16339         * sysdeps/s390/multiarch/strlen.c: Likewise.
16340         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
16341         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
16342         * sysdeps/s390/multiarch/wcslen.c: Likewise.
16343         * string/strlen.c (STRLEN): Define and use macro.
16344         * sysdeps/s390/multiarch/ifunc-impl-list.c
16345         (IFUNC_VX_IMPL): New macro function.
16346         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
16347         * benchtests/Makefile (wcsmbs-bench): New variable.
16348         (string-bench-all): Added wcsmbs-bench.
16349         * benchtests/bench-wcslen.c: New File.
16350
16351         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
16352         s390_vx_libc_ifunc2): New macro function.
16353
16354         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
16355         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
16356         assembler support.
16357         * sysdeps/s390/configure: Regenerated.
16358
16359         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
16360         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
16361
16362         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
16363         * sysdeps/s390/dl-procinfo.h: Add vector capability.
16364         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
16365
16366         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
16367         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
16368         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
16369         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
16370         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
16371         (memcmp, bcmp): Use __memcmp_default as alias source.
16372         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
16373         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
16374         Rename to __memcmp_default.
16375         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
16376         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
16377         (memcpy): Use __memcpy_default as alias source.
16378         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
16379         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
16380         Rename to __memcpy_default.
16381         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
16382         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
16383         (memset): Use __memset_default as alias source.
16384         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
16385         * sysdeps/s390/s390-32/memset.S (__memset_g5):
16386         Rename to __memset_default.
16387         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
16388         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
16389         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
16390         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
16391         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
16392         (memcmp, bcmp): Use __memcmp_default as alias source.
16393         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
16394         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
16395         Rename to __memcmp_default.
16396         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
16397         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
16398         (memcpy): Use __memcpy_default as alias source.
16399         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
16400         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
16401         Rename to __memcpy_default.
16402         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
16403         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
16404         (memset): Use __memset_default as alias source.
16405         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
16406         * sysdeps/s390/s390-64/memset.S (__memset_z900):
16407         Rename to __memset_default.
16408         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
16409         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
16410
16411         [BZ #18610]
16412         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
16413         __ieee_instruction_pointer to __unused.
16414         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
16415         __ieee_instruction_pointer.
16416         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
16417         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
16418         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
16419         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
16420         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
16421         Mark dxc-field as reserved.
16422
16423 2015-08-25  Roland McGrath  <roland@hack.frob.com>
16424
16425         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
16426         if the weak reference is not null.
16427
16428 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16429
16430         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
16431
16432         [BZ #11214]
16433         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
16434
16435 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16436
16437         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
16438         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
16439         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
16440         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
16441         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
16442         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
16443         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
16444         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
16445         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
16446         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
16447         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
16448         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
16449         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
16450         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
16451         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
16452         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
16453         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
16454         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
16455
16456 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16457
16458         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
16459         register other than r0 for tabort, it has special meaning.
16460         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
16461         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
16462         transaction before starting syscall.
16463
16464 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16465
16466         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
16467
16468 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16469
16470         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
16471
16472         * sysdeps/x86_64/rtld-memcmp.c: Removed.
16473         * sysdeps/x86_64/rtld-memset.S: Likewise.
16474         * sysdeps/x86_64/rtld-strchr.S: Likewise.
16475         * sysdeps/x86_64/rtld-strlen.S: Likewise.
16476         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
16477         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
16478
16479         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
16480
16481 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
16482
16483         * debug/strcpy_chk.c: Improve performance.
16484         * debug/stpcpy_chk.c: Likewise.
16485         * sysdeps/x86_64/strcpy_chk.S: Remove.
16486         * sysdeps/x86_64/stpcpy_chk.S: Remove.
16487
16488         [BZ #18240]
16489         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
16490
16491 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16492
16493         [BZ #15128]
16494         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
16495         ifuncmain8.
16496         (modules-names): Add ifuncmod8.
16497         ($(objpfx)ifuncmain8): New rule.
16498         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
16499         <cpuid.h>.
16500         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
16501         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
16502         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
16503         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
16504         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
16505         * sysdeps/x86_64/dl-trampoline.h: Likewise.
16506         * sysdeps/x86_64/ifuncmain8.c: New file.
16507         * sysdeps/x86_64/ifuncmod8.c: Likewise.
16508         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
16509         Removed.
16510         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
16511         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
16512         Change rtld_savespace_sse to __glibc_unused2.
16513         (RTLD_CHECK_FOREIGN_CALL): Removed.
16514         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
16515         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
16516         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
16517
16518 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
16519
16520         * sysdeps/aarch64/bzero.S (__bzero): Remove.
16521
16522 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
16523
16524         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
16525         Unconditionally set __fpcr to avoid uninialized warning.
16526         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
16527
16528 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
16529
16530         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
16531         is corrupt.
16532
16533         * malloc/arena.c (arena_get2): Drop unused argument.
16534         (arena_lock): Adjust.
16535         (arena_get_retry): Likewise.
16536
16537 2015-08-24  Andreas Schwab  <schwab@suse.de>
16538
16539         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
16540         Don't define.
16541         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16542         (__ASSUME_IPC64): Don't undef.
16543         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
16544         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
16545         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
16546         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
16547         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
16548         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
16549         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
16550         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
16551         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
16552         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
16553         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
16554         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
16555         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
16556         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
16557         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
16558         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
16559         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
16560         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
16561         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
16562         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
16563         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
16564
16565 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
16566
16567         * manual/Makefile (install): Only build manual when perl is available.
16568
16569 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16570
16571         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
16572         '#undef memcpy' by '#undef memchr'.
16573
16574 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16575
16576         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
16577         memchr not point to the internal __GI_memchr implementation.
16578
16579 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
16580
16581         * timezone/Makefile (CFLAGS-zdump.c): Remove
16582         -Wno-strict-prototypes.
16583         (CFLAGS-zic.c): Likewise.
16584         (CFLAGS-ialloc.c): Likewise.
16585         (CFLAGS-scheck.c): Likewise.
16586
16587         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
16588         -Wno-error=undef.
16589
16590 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16591
16592         * i386/i686/multiarch/strcasestr-c.c: Removed.
16593         * x86_64/multiarch/strcasestr.c: Likewise.
16594         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
16595         Remove strcasestr.
16596
16597 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
16598
16599         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
16600
16601         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
16602         variables for high and low parts before possibly modifying them.
16603
16604 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16605
16606         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
16607         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
16608         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
16609         of "multiarch/init-arch.h".
16610         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
16611         * sysdeps/x86/init-arch.h: This.
16612
16613 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16614
16615         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
16616         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
16617
16618 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
16619
16620         [BZ #17787]
16621         * manual/macros.texi: Add twoexp macro.
16622         * manual/filesys.texi: Fix exponents.
16623         * manual/llio.texi: Likewise.
16624         * manual/stdio.texi: Likewise.
16625
16626 2015-08-20  Florian Weimer  <fweimer@redhat.com>
16627
16628         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
16629         incorrect use.
16630
16631 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
16632
16633         [BZ #18370]
16634         * math/s_csqrt.c (__csqrt): Force underflow exception for results
16635         whose real or imaginary part has small absolute value.
16636         * math/s_csqrtf.c (__csqrtf): Likewise.
16637         * math/s_csqrtl.c (__csqrtl): Likewise.
16638         * math/auto-libm-test-in: Add more tests of csqrt.
16639         * math/auto-libm-test-out: Regenerated.
16640         * sysdeps/i386/fpu/libm-test-ulps: Update.
16641
16642 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16643
16644         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
16645         __ppc_set_ppr_very_low): New functions.
16646         * manual/platform.texi: Add documentation about
16647         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
16648
16649 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
16650
16651         * string/stpncpy.c (stpncpy): Improve performance using
16652         __strnlen/memcpy/memset.
16653
16654 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16655
16656         [BZ #18796]
16657         * scripts/test-installation.pl: Don't add -lmvec to build options if
16658         libmvec wasn't built.
16659
16660 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
16661
16662         [BZ #14341]
16663         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
16664         case when there is a gap between DT_REL and DT_JMPREL sections.
16665         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
16666         (LDFLAGS-tst-split-dynreloc): New.
16667         (tst-split-dynreloc-ENV): Likewise.
16668         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
16669         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
16670
16671 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
16672
16673         [BZ #18822]
16674         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
16675         attribute_hidden.
16676         (__xstat64_conv): Likewise.
16677         (__xstat32_conv): Likewise.
16678
16679 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
16680
16681         [BZ #18822]
16682         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
16683         Don't load %ebx when calling __setcontext.  Call __setcontext
16684         with HIDDEN_JUMPTARGET.
16685         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
16686         libc_hidden_def.
16687
16688 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
16689
16690         * sysdeps/i386/i686/Makefile
16691         [$(subdir) == string] (sysdep_routines): Moved to ...
16692         * sysdeps/i386/Makefile: Here.
16693         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
16694         * sysdeps/i386/cacheinfo.c: Here.
16695         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
16696         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
16697         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
16698         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
16699
16700 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
16701
16702         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
16703         __i586__ is defined.
16704         (HAS_I686): Defined to 1 if __i686__ is defined.
16705
16706 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
16707
16708         * elf/Makefile [$(have-z-execstack) = yes]
16709         (CPPFLAGS-tst-execstack.c): New variable.
16710
16711         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
16712         conditional to [defined UTMPX || _HAVE_UT_TYPE].
16713         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
16714         UTMPX || _HAVE_UT_TV].
16715         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
16716         UTMPX || _HAVE_UT_TV - 0].
16717
16718 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
16719
16720         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
16721         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
16722         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
16723
16724 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16725
16726         * sysdeps/powerpc/dl-procinfo.c:
16727         (_dl_powerpc_cap_flags): Added missing strings for some
16728         hwcap features.
16729         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
16730
16731 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16732
16733         Port the 0x7efe...feff pattern to GCC 6.
16734         See Steve Ellcey's bug report in:
16735         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
16736         * string/memrchr.c (MEMRCHR):
16737         * string/rawmemchr.c (RAWMEMCHR):
16738         * string/strchr.c (strchr):
16739         * string/strchrnul.c (STRCHRNUL):
16740         Rewrite code to avoid issues with signed shift overflow.
16741
16742 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
16743
16744         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
16745         whether cpuid is available only if HAS_CPUID is 0.
16746         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
16747         (HAS_I586): Likewise.
16748         (HAS_I686): Likewise.
16749
16750 2015-08-18  Zack Weinberg  <zackw@panix.com>
16751
16752         * misc/Versions (libc): Add GLIBC_2.23.
16753
16754 2015-08-18  Alan Modra  <amodra@gmail.com>
16755
16756         [BZ #18421]
16757         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
16758         .Lp__global.
16759         (_start): Load %dp via .Lp__global.
16760         [!SHARED]: Use .section .rodata.
16761
16762 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
16763
16764         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
16765         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
16766
16767 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
16768
16769         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
16770         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
16771
16772 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
16773
16774         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
16775         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
16776
16777 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
16778
16779         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
16780         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
16781
16782 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
16783
16784         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
16785         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
16786
16787 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
16788
16789         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
16790         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
16791
16792 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
16793
16794         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
16795
16796 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
16797
16798         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
16799         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
16800         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16801         (__ASSUME_LWS_CAS): Delete.
16802
16803 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
16804
16805         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
16806         * sysdeps/hppa/configure: Regenerated.
16807         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
16808         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
16809         * sysdeps/hppa/nptl/tls.h: Likewise.
16810
16811 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
16812
16813         [BZ #18823]
16814         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
16815         for scaling up small arguments.
16816         * math/s_csqrtf.c (__csqrtf): Likewise.
16817         * math/s_csqrtl.c (__csqrtl): Likewise.
16818         * math/auto-libm-test-in: Add more tests of csqrt.
16819         * math/auto-libm-test-out: Regenerated.
16820
16821 2015-08-17  Andreas Schwab  <schwab@suse.de>
16822
16823         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
16824         version set GLIBC_2.19.
16825
16826 2015-08-16  Zack Weinberg  <zackw@panix.com>
16827
16828         [BZ #18681]
16829         * misc/regexp.h: This interface is no longer supported.
16830         Remove all contents, leaving only an #error directive.
16831         * misc/regexp.c (loc1, loc2, locs, step, advance):
16832         Demote to compatibility symbols.
16833
16834 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
16835
16836         [BZ #18084]
16837         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
16838         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
16839         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
16840         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
16841         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
16842         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
16843         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
16844         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
16845         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
16846
16847 2015-08-15  Zack Weinberg  <zackw@panix.com>
16848
16849         [BZ #18795]
16850         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
16851         buffer length is known to be too large, not if it's known to be
16852         small enough.
16853         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
16854         overflow at runtime, involving a length parameter, twice: once
16855         with a compile-time constant length parameter, once without.
16856
16857 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
16858
16859         [BZ #18824]
16860         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
16861         scaling x * y up instead of down.
16862         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16863         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16864         * math/auto-libm-test-in: Add more tests of fma.
16865         * math/auto-libm-test-out: Regenerated.
16866
16867 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
16868
16869         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16870
16871 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
16872
16873         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
16874         unnecessary movq.
16875         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
16876         Likewise.
16877
16878 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
16879
16880         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
16881         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
16882         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
16883         and tgamma.
16884         * math/auto-libm-test-out: Regenerated.
16885         * sysdeps/i386/fpu/libm-test-ulps: Update.
16886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16887
16888         [BZ #16520]
16889         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
16890         (__tanh): Force underflow exception for arguments with small
16891         absolute value.
16892         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
16893         (__tanhf): Force underflow exception for arguments with small
16894         absolute value.
16895         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
16896         (__tanhl): Force underflow exception for arguments with small
16897         absolute value.
16898         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
16899         (__tanhl): Force underflow exception for arguments with small
16900         absolute value.
16901         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
16902         (__tanhl): Force underflow exception for arguments with small
16903         absolute value.
16904         * math/auto-libm-test-in: Add more tests of tanh.
16905         * math/auto-libm-test-out: Regenerated.
16906         * sysdeps/i386/fpu/libm-test-ulps: Update.
16907
16908 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
16909
16910         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
16911         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
16912
16913 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
16914
16915         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
16916         <cpuid.h>.
16917
16918 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
16919
16920         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
16921         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
16922
16923 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
16924
16925         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
16926         Remove $(objpfx)init-arch.o.
16927         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
16928         init-arch.
16929         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
16930         (INIT_ARCH_EXT): Defined as empty.
16931         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
16932         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
16933         __init_cpu_features call.  Replace HAS_XXX with
16934         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
16935         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
16936         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
16937         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
16938         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
16939         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
16940         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
16941         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
16942         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
16943         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
16944         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
16945         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
16946         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
16947         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
16948         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
16949         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
16950         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
16951         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
16952         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
16953         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
16954         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
16955         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
16956         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
16957         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
16958         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
16959         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
16960         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
16961         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
16962         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
16963         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
16964         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
16965         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
16966         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
16967         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
16968         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
16969         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
16970
16971 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
16972
16973         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
16974         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
16975         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
16976         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
16977         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
16978         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
16979         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
16980         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
16981         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
16982         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
16983         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
16984         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
16985         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
16986         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
16987         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
16988         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
16989         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
16990         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
16991         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
16992         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
16993         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
16994         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
16995         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
16996         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
16997         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
16998         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
16999         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
17000         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
17001         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
17002         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
17003         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
17004         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
17005         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
17006         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
17007         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
17008         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
17009         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
17010         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
17011         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
17012         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
17013         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
17014         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
17015         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
17016
17017 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
17018
17019         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
17020         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
17021         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
17022         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
17023         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
17024         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
17025         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
17026         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
17027         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
17028         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
17029         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
17030         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
17031         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
17032         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
17033         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
17034         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
17035         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
17036         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
17037         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
17038         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
17039         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
17040         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
17041         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
17042         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
17043         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17044         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
17045         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
17046         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
17047         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
17048         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
17049         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
17050         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
17051         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
17052         * sysdeps/x86_64/multiarch/memset.S: Likewise.
17053         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
17054         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
17055         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
17056         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
17057         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
17058         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
17059         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
17060         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
17061         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
17062
17063 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
17064
17065         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
17066         (dl_platform_init): Call init_cpu_features.
17067         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
17068         * sysdeps/i386/i686/cacheinfo.c
17069         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
17070         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
17071         * sysdeps/i386/i686/multiarch/Versions: Removed.
17072         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
17073         Removed.
17074         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
17075         * sysdeps/unix/sysv/linux/x86/Makefile
17076         (libpthread-sysdep_routines): Remove init-arch.
17077         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
17078         <sysdeps/x86_64/dl-procinfo.c> instead of
17079         sysdeps/generic/dl-procinfo.c>.
17080         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
17081         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
17082         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
17083         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
17084         [$(subdir) == elf] (tests-static): Add
17085         tst-get-cpu-features-static.
17086         * sysdeps/x86/Versions: New file.
17087         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
17088         * sysdeps/x86/cpu-features.c: Likewise.
17089         * sysdeps/x86/cpu-features.h: Likewise.
17090         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
17091         * sysdeps/x86/libc-start.c: Likewise.
17092         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
17093         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
17094         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
17095         * sysdeps/x86_64/dl-procinfo.c: Likewise.
17096         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
17097         Assume USE_MULTIARCH is defined and don't check it.
17098         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
17099         (is_amd): Likewise.
17100         (max_cpuid): Likewise.
17101         (intel_check_word): Likewise.
17102         (__cache_sysconf): Don't call __init_cpu_features.
17103         (__x86_preferred_memory_instruction): Removed.
17104         (init_cacheinfo): Don't call __init_cpu_features. Replace
17105         __cpu_features with GLRO(dl_x86_cpu_features).
17106         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
17107         (dl_platform_init): Call init_cpu_features.
17108         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
17109         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
17110         * sysdeps/x86_64/multiarch/Versions: Removed.
17111         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
17112         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
17113         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
17114         Removed.
17115         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
17116
17117 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
17118
17119         [BZ #18820]
17120         * libio/Makefile (test-fmemopen-mem): New test.
17121         * libio/test-fmemopen.c (do_bz18820): New test.
17122         * libio/fmemopen.c (__fmemopen): Fix memory leak.
17123         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
17124
17125 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
17126
17127         [BZ #16734]
17128         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
17129         (FREE_BUF): Delete.
17130         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
17131         * libio/genops.c (_IO_setb): Use malloc and free directly.
17132         (_IO_default_doallocate, _IO_default_finish): Likewise.
17133         ( _IO_unbuffer_all): Likewise.
17134         ( libc_freeres_fn): Likewise.
17135         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
17136         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
17137         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
17138         (_IO_wdefault_doallocate): Likewise.
17139
17140 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
17141
17142         [BZ #18086]
17143         * sysdeps/posix/nice.c (nice): Restore old errno.
17144         * posix/tst-nice.c (do_test): Add test for BZ #18086.
17145
17146 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
17147
17148         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
17149
17150 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17151
17152         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
17153         __bcopy and add a weak_alias to bcopy.
17154         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
17155         for static build.
17156
17157         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
17158         cleanup macro usage.
17159         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
17160         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
17161         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
17162         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
17163         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
17164         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
17165         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
17166         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
17167         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
17168         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
17169         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
17170         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
17171         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
17172         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
17173         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
17174         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
17175         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
17176         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
17177         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
17178
17179         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
17180         libc_hidden_def.
17181         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
17182
17183         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
17184         (sysdep_routines): Add strstr-ppc64.
17185         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
17186
17187 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
17188
17189         [BZ #18778]
17190         * elf/Makefile (tests): Add Add tst-nodelete2.
17191         (modules-names): Add tst-nodelete2mod.
17192         (tst-nodelete2mod.so-no-z-defs): New.
17193         ($(objpfx)tst-nodelete2): Likewise.
17194         ($(objpfx)tst-nodelete2.out): Likewise.
17195         (LDFLAGS-tst-nodelete2): Likewise.
17196         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
17197         out of loop through all loaded libraries.
17198         * elf/tst-nodelete2.c: New file.
17199         * elf/tst-nodelete2mod.c: Likewise.
17200         * elf/tst-znodelete-zlib.cc: Delete.
17201
17202 2015-08-11  Andreas Schwab  <schwab@suse.de>
17203
17204         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
17205         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
17206         (__openat64_nocancel): Likewise.
17207
17208 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
17209
17210         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
17211         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
17212         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
17213         * math/auto-libm-test-out: Regenerated.
17214         * sysdeps/i386/fpu/libm-test-ulps: Update.
17215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17216
17217 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
17218
17219         [BZ #18790]
17220         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
17221         threshold for returning +/- 1.
17222         * math/auto-libm-test-in: Add more tests of tanh.
17223         * math/auto-libm-test-out: Regenerated.
17224         * sysdeps/i386/fpu/libm-test-ulps: Update.
17225
17226 2015-08-10  Andreas Schwab  <schwab@suse.de>
17227
17228         [BZ #18781]
17229         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
17230         MORE_OFLAGS to oflag.
17231         * io/test-lfs.c (do_test): Test openat64.
17232
17233 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
17234
17235         [BZ #18789]
17236         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
17237         smaller threshold for returning the argument.
17238         * math/auto-libm-test-in: Add more tests of sinh.
17239         * math/auto-libm-test-out: Regenerated.
17240         * sysdeps/i386/fpu/libm-test-ulps: Update.
17241
17242 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
17243
17244         [BZ #18674]
17245         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
17246         break.
17247
17248 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
17249
17250         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
17251         (generated): Don't add $(addprefix z.,$(tzfiles)).
17252
17253 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
17254
17255         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
17256         * scripts/sysd-rules.awk: Likewise.
17257
17258 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
17259
17260         * iconvdata/tst-tables.sh: Change echo -n to printf.
17261         * nss/db-Makefile: Likewise.
17262         * posix/tst-getconf.sh: Likewise.
17263         * stdio-common/tst-unbputc.sh: Likewise.
17264
17265 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
17266
17267         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
17268         MADV_*_PAGES defines behind this feature check.
17269
17270 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
17271
17272         [BZ #18480]
17273         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
17274         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
17275         Define.
17276         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
17277         LOAD_REGS_5, LOAD_REGS_6): Update.
17278         (INTERNAL_SYSCALL): Update using new LOAD defines.
17279         (INTERNAL_SYSCALL_NCS): Likewise.
17280         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
17281
17282 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
17283
17284         [BZ #16734]
17285         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
17286
17287 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
17288
17289         [BZ #17905]
17290         * catgets/Makefile (tst-catgets-mem): New test.
17291         * catgets/catgets.c (catopen): Don't use unbounded alloca.
17292         * catgets/open_catalog.c (__open_catalog): Likewise.
17293         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
17294
17295 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
17296
17297         [BZ #18787]
17298         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
17299         clobber registers.
17300         (atomic_compare_and_exchange_val_acq): Use register asms to assign
17301         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
17302         Cast return to __typeof (oldval).
17303
17304 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
17305
17306         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
17307         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
17308         and delete sys/syscall.h include.
17309
17310 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
17311
17312         [BZ #16517]
17313         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
17314         (tan): Force underflow exception for arguments with small absolute
17315         value.
17316         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
17317         (__kernel_tanf): Force underflow exception for arguments with
17318         small absolute value.
17319         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
17320         (__kernel_tanl): Force underflow exception for arguments with
17321         small absolute value.
17322         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
17323         (__kernel_tanl): Force underflow exception for arguments with
17324         small absolute value.
17325         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
17326         (__kernel_tanl): Force underflow exception for arguments with
17327         small absolute value.
17328         * math/auto-libm-test-in: Add more tests of tan.
17329         * math/auto-libm-test-out: Regenerated.
17330
17331 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17332
17333         Fix sysdeps/i386/fpu/s_scalbn.S build
17334
17335         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
17336
17337 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
17338
17339         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
17340
17341 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17342
17343         Fix gcrt0.o compilation
17344
17345         When static-start-installed-name is different from
17346         start-installed-name, we must not use the shared objects.
17347
17348         * csu/Makefile
17349         (extra-objs): Add gmon-start.o when building shared library and
17350         $(static-start-installed-name) is different from
17351         $(start-installed-name).
17352         $(objpfx)g$(static-start-installed-name): When building shared
17353         library and $(static-start-installed-name) is different from
17354         $(static-start-installed-name), revert to non-shared rule,
17355         i.e. using $(objpfx)% and gmon-start.o.
17356
17357 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
17358
17359         [BZ #16519]
17360         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
17361         (__ieee754_sinh): Force underflow exception for arguments with
17362         small absolute value.
17363         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
17364         (__ieee754_sinhf): Force underflow exception for arguments with
17365         small absolute value.
17366         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
17367         (__ieee754_sinhl): Force underflow exception for arguments with
17368         small absolute value.
17369         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
17370         (__ieee754_sinhl): Force underflow exception for arguments with
17371         small absolute value.
17372         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
17373         (__ieee754_sinhl): Force underflow exception for arguments with
17374         small absolute value.
17375         * math/auto-libm-test-in: Add more tests of sinh.
17376         * math/auto-libm-test-out: Regenerated.
17377         * sysdeps/i386/fpu/libm-test-ulps: Update.
17378
17379 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17380
17381         * libio/oldfileops.c: Include unistd.h.
17382
17383 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
17384
17385         * stdlib/isomac.c: Include ctype.h.
17386
17387 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
17388
17389         * dirent/tst-seekdir.c (main): Converted to ...
17390         (do_test): ... this.
17391         (TEST_FUNCTION): New macro.
17392         Include test-skeleton.c.
17393         * elf/tst-dlmodcount.c (main): Converted to ...
17394         (do_test): ... this.
17395         (TEST_FUNCTION): New macro.
17396         Include test-skeleton.c.
17397         * elf/tst-order-main.c (main): Converted to ...
17398         (do_test): ... this.
17399         (TEST_FUNCTION): New macro.
17400         Include test-skeleton.c.
17401         * elf/tst-pie2.c (main): Converted to ...
17402         (do_test): ... this.
17403         (TEST_FUNCTION): New macro.
17404         Include test-skeleton.c.
17405         * inet/tst-ether_aton.c (main): Converted to ...
17406         (do_test): ... this.
17407         (TEST_FUNCTION): New macro.
17408         Include test-skeleton.c.
17409         * misc/tst-mntent.c (main): Converted to ...
17410         (do_test): ... this.
17411         (TEST_FUNCTION): New macro.
17412         Include test-skeleton.c.
17413         * misc/tst-tsearch.c (main): Converted to ...
17414         (do_test): ... this.
17415         (TEST_FUNCTION): New macro.
17416         Include test-skeleton.c.
17417         * posix/tst-regexloc.c (main): Converted to ...
17418         (do_test): ... this.
17419         (TEST_FUNCTION): New macro.
17420         Include test-skeleton.c.
17421         * resolv/tst-aton.c (main): Converted to ...
17422         (do_test): ... this.
17423         (TEST_FUNCTION): New macro.
17424         Include test-skeleton.c.
17425         * stdio-common/test-fwrite.c (main): Converted to ...
17426         (do_test): ... this.
17427         (TEST_FUNCTION): New macro.
17428         Include test-skeleton.c.
17429         * stdio-common/tst-ferror.c (main): Converted to ...
17430         (do_test): ... this.
17431         (TEST_FUNCTION): New macro.
17432         Include test-skeleton.c.
17433         * stdio-common/tst-printf.c (main): Converted to ...
17434         (do_test): ... this.
17435         (TEST_FUNCTION): New macro.
17436         Include test-skeleton.c.
17437         * stdio-common/tst-printfsz.c (main): Converted to ...
17438         (do_test): ... this.
17439         (TEST_FUNCTION): New macro.
17440         Include test-skeleton.c.
17441         * stdlib/tst-strtod.c (main): Converted to ...
17442         (do_test): ... this.
17443         (TEST_FUNCTION): New macro.
17444         Include test-skeleton.c.
17445         * string/tst-strlen.c (main): Converted to ...
17446         (do_test): ... this.
17447         (TEST_FUNCTION): New macro.
17448         Include test-skeleton.c.
17449         * string/tst-svc.c (main): Converted to ...
17450         (do_test): ... this.
17451         (TEST_FUNCTION): New macro.
17452         Include test-skeleton.c.
17453         * time/tst-strptime.c (main): Converted to ...
17454         (do_test): ... this.
17455         (TEST_FUNCTION): New macro.
17456         Include test-skeleton.c.
17457         * timezone/tst-timezone.c (main): Converted to ...
17458         (do_test): ... this.
17459         (TEST_FUNCTION): New macro.
17460         Include test-skeleton.c.
17461
17462 2015-08-05  Zack Weinberg  <zackw@panix.com>
17463
17464         * misc/regexp.h: Update comments.
17465
17466 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
17467
17468         [BZ #18635]
17469         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
17470         before return label.
17471
17472 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17473
17474         [BZ #18661]
17475         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
17476         when calling __errno_location.
17477         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
17478         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
17479
17480 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17481
17482         [BZ #18661]
17483         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
17484         (__lll_timedwait_tid): Align stack to 16 bytes when calling
17485         __gettimeofday.
17486
17487 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17488
17489         [BZ #18661]
17490         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
17491         (__start_context): Don't use pop to restore %rdi so that stack
17492         is aligned to 16 bytes when calling __setcontext.
17493
17494 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17495
17496         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
17497         only for libc.
17498         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
17499
17500 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17501
17502         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
17503         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
17504         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
17505
17506 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17507
17508         * string/memccpy.c (memccpy):
17509         Improve performance by using memchr/memcpy/__mempcpy.
17510
17511 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17512
17513         * string/strncpy.c (strncpy):
17514         Improve performance by using __strnlen/memcpy.
17515
17516 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17517
17518         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
17519         Optimize to avoid an unnecessary FPCR read.
17520
17521 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
17522
17523         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
17524         Optimize to reduce FPCR/FPSR accesses.
17525
17526 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
17527
17528         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
17529         dead->data[category] != NULL.
17530
17531 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
17532
17533         [BZ #18647]
17534         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
17535         and |x| close to 1, use absolute value of x when computing log.
17536         * math/auto-libm-test-in: Add more tests of pow.
17537         * math/auto-libm-test-out: Regenerated.
17538
17539 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17540
17541         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
17542         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
17543         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
17544
17545 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
17546
17547         [BZ #18525]
17548         * locales/km_KH: Remove timezone definition.
17549         * locales/lo_LA: Likewise.
17550         * locales/my_MM: Likewise.
17551         * locales/nan_TW@latin: Likewise.
17552         * locales/th_TH: Likewise.
17553         * locales/uk_UA: Likewise.
17554
17555 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
17556
17557         [BZ #18265]
17558         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
17559         (wcsncat): Likewise.
17560         (wcscmp): Likewise.
17561         (wcsncmp): Likewise.
17562
17563 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
17564
17565         * test-skeleton.c (usage): New function.
17566         (main): Call usage when opt is '?'.
17567
17568 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
17569
17570         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
17571         before first use.
17572
17573 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
17574
17575         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
17576         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
17577         in there too.
17578
17579 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
17580
17581         * version.h (RELEASE): Set to "development".
17582         (VERSION): Set to "2.22.90"
17583
17584         * version.h (RELEASE): Set to "stable".
17585         (VERSION): Set to "2.22"
17586         * include/features.h (__GLIBC_MINOR__): Set to 22.
17587
17588 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
17589
17590         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
17591         Restructure macro to avoid "value computed is not used" warning.
17592         (atomic_compare_and_exchange_val_acq): Likewise.
17593
17594 2015-08-04  Andreas Schwab  <schwab@suse.de>
17595
17596         [BZ #18635]
17597         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
17598         ret.
17599         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
17600
17601 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
17602
17603         * po/pl.po: Updated translation.
17604         * po/uk.po: Likewise.
17605         * po/fi.po: Likewise.
17606         * po/ko.po: Likewise.
17607         * po/ru.po: Likewise.
17608         * po/vi.po: Likewise.
17609
17610 2015-07-31  Zack Weinberg  <zackw@panix.com>
17611
17612         [BZ #18681]
17613         * regexp.h: Add unconditional #warning stating that this header
17614         will be removed soon.  Revise banner comment to match.
17615         (compile): Consistently use ERROR instead of RETURN to report
17616         errors (partial fix for bz#18681).
17617         * regexp.c: Don't include regexp.h. Remove some unnecessary
17618         declarations.
17619
17620 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
17621
17622         * po/libc.pot: Regenerated.
17623
17624 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
17625
17626         [BZ #18740]
17627         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
17628         float-vlen4-arch-ext-cflags): Removed.
17629         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
17630         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
17631
17632 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
17633
17634         [BZ #14113]
17635         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
17636         aligned to __aligned__.
17637         (pthread_cond_t, pthread_rwlock_t): Likewise.
17638
17639 2015-07-30  Torvald Riegel  <triegel@redhat.com>
17640
17641         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
17642
17643 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
17644
17645         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
17646         (struct sigaction): Change sa_flags from a long to an int, and add
17647         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
17648
17649 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
17650
17651         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
17652         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
17653         sysdeps/generic/sysdep.h include.
17654         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
17655         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
17656         sysdeps/hppa/sysdep.h.
17657         (ENTRY, PSEUDO): Undefine before defining.
17658
17659 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
17660
17661         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
17662         from scratch to use INTERNAL_SYSCALL.
17663
17664 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17665
17666         [BZ #18078]
17667         * scripts/check-localplt.awk: Support alternate relocations.
17668         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
17669         sections.
17670         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
17671         malloc entries with + REL R_386_GLOB_DAT.
17672         * sysdeps/x86_64/localplt.data: New file.
17673
17674 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
17675
17676         [BZ #18731]
17677         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
17678         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17679         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
17680
17681 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
17682
17683         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
17684
17685 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
17686
17687         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
17688         directly in terms of __sync_fetch_and_add and delete (int) cast.
17689
17690 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
17691
17692         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
17693         the -D_ASM_IA64_CURRENT_H flag.
17694
17695 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
17696
17697         [BZ #18641]
17698         * pwd/pwd.h (putpwent): Delete __nonnull markings.
17699
17700 2015-07-27  Andreas Schwab  <schwab@suse.de>
17701
17702         * conform/conformtest.pl (checknamespace): Filter out string
17703         literals while tokenizing.
17704
17705 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
17706
17707         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
17708         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
17709         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
17710
17711 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
17712
17713         * nptl/tst-join7mod.c: Add #include <string.h>.
17714
17715 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
17716
17717         * sysdeps/nios2/libm-test-ulps: Update.
17718
17719 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
17720
17721         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
17722         Fix order of arguments to the rt_sigprocmask syscall.
17723         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
17724         Likewise.
17725
17726 2015-07-24  Roland McGrath  <roland@hack.frob.com>
17727
17728         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
17729
17730 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
17731
17732         [BZ #18457]
17733         * nptl/Makefile (tests): New test case tst-join7.
17734         (modules-names): New test case module tst-join7mod.
17735         * nptl/tst-join7.c: New file.
17736         * nptl/tst-join7mod.c: New file.
17737         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
17738         all translation units in libc.so, libpthread.so and rtld.
17739
17740 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17741
17742         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17743
17744 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
17745
17746         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
17747         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
17748         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
17749         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
17750         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
17751         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
17752         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
17753         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
17754         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
17755         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
17756         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
17757         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
17758         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
17759         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
17760         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
17761         implementation.
17762
17763 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17764
17765         [BZ #17711]
17766         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
17767         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
17768         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
17769         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
17770         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
17771         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
17772
17773 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
17774
17775         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
17776         instead of just saying load lock in the comments.
17777
17778 2015-07-23  Roland McGrath  <roland@hack.frob.com>
17779
17780         * sysdeps/unix/Subdirs: Moved ...
17781         * sysdeps/posix/Subdirs: ... here.
17782         * login/pty.h (struct termios, struct winsize): Add forward decls.
17783         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
17784         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
17785         * sysdeps/arm/nacl/libc.abilist: Updated.
17786         * sysdeps/nacl/libutil.abilist: New file.
17787
17788         * bits/signum.h: Update comments to mention 1003.1-2013 too.
17789         (SIGWINCH): New macro.
17790
17791         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
17792         * sysdeps/arm/nacl/libc.abilist: Add it.
17793
17794 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
17795
17796         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
17797
17798 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
17799
17800         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
17801         Swap __glibc_reserved0 and sa_flags order.
17802
17803 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
17804
17805         [BZ #18657]
17806         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
17807         are pending TLS destructor calls.
17808         * include/link.h (struct link_map): Add concurrency note for
17809         L_TLS_DTOR_COUNT.
17810         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
17811         Don't touch the link map flag.  Atomically increment
17812         l_tls_dtor_count.
17813         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
17814         Avoid taking the load lock and don't touch the link map flag.
17815         * stdlib/tst-tls-atexit-nodelete.c: New test case.
17816         * stdlib/Makefile (tests): Use it.
17817         * stdlib/tst-tls-atexit.c (do_test): dlopen
17818         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
17819         to allow tst-tls-atexit-nodelete test case to use it.
17820
17821 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
17822
17823         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
17824         to bits/types.h.
17825         (msgqnum_t): New typedef.
17826         (msglen_t): Likewise.
17827         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
17828         and msg_qbytes type to msglen_t.
17829
17830 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
17831
17832         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
17833         pad0 to __glibc_reserved0.
17834         (struct stat64): Likewise.
17835
17836 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
17837
17838         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
17839         Change sa_flags from a long to an int and add __glibc_reserved0 before
17840         it for padding.
17841
17842 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
17843
17844         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
17845         anonymous by deleting "siginfo" name.
17846
17847 2015-07-21  Roland McGrath  <roland@hack.frob.com>
17848
17849         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
17850         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
17851         rather than __nacl_irt_filename.
17852         * sysdeps/nacl/xstat.c (__xstat): Likewise.
17853
17854         * NEWS: New item for arm-nacl port.
17855         * sysdeps/arm/nacl/libc.abilist: New file.
17856         * sysdeps/nacl/ld.abilist: New file.
17857         * sysdeps/nacl/libBrokenLocale.abilist: New file.
17858         * sysdeps/nacl/libanl.abilist: New file.
17859         * sysdeps/nacl/libcrypt.abilist: New file.
17860         * sysdeps/nacl/libdl.abilist: New file.
17861         * sysdeps/nacl/libm.abilist: New file.
17862         * sysdeps/nacl/libpthread.abilist: New file.
17863         * sysdeps/nacl/libresolv.abilist: New file.
17864         * sysdeps/nacl/librt.abilist: New file.
17865
17866 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
17867
17868         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
17869         __startcontext to initialize the new context.
17870         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
17871         up CFI directive to forbid further backtracing.
17872
17873 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
17874
17875         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
17876         reference.
17877         * charmaps/ANSI_X3.4-1968: Likewise.
17878         * charmaps/BS_4730: Likewise.
17879         * charmaps/BS_VIEWDATA: Likewise.
17880         * charmaps/CP1250: Likewise.
17881         * charmaps/CP1251: Likewise.
17882         * charmaps/CP1252: Likewise.
17883         * charmaps/CP1253: Likewise.
17884         * charmaps/CP1254: Likewise.
17885         * charmaps/CP1255: Likewise.
17886         * charmaps/CP1256: Likewise.
17887         * charmaps/CSN_369103: Likewise.
17888         * charmaps/EBCDIC-DK-NO: Likewise.
17889         * charmaps/GB_1988-80: Likewise.
17890         * charmaps/GREEK-CCITT: Likewise.
17891         * charmaps/GREEK7: Likewise.
17892         * charmaps/INIS-8: Likewise.
17893         * charmaps/ISIRI-3342: Likewise.
17894         * charmaps/ISO_2033-1983: Likewise.
17895         * charmaps/ISO_5427-EXT: Likewise.
17896         * locales/POSIX: Likewise.
17897         * locales/ar_SA: Likewise.
17898         * locales/be_BY: Likewise.
17899         * locales/be_BY@latin: Likewise.
17900         * locales/ca_ES: Likewise.
17901         * locales/cs_CZ: Likewise.
17902         * locales/da_DK: Likewise.
17903         * locales/de_BE: Likewise.
17904         * locales/de_CH: Likewise.
17905         * locales/de_LU: Likewise.
17906         * locales/en_AU: Likewise.
17907         * locales/en_BW: Likewise.
17908         * locales/en_CA: Likewise.
17909         * locales/en_DK: Likewise.
17910         * locales/en_GB: Likewise.
17911         * locales/en_IE: Likewise.
17912         * locales/en_NZ: Likewise.
17913         * locales/en_ZA: Likewise.
17914         * locales/en_ZW: Likewise.
17915         * locales/es_AR: Likewise.
17916         * locales/es_BO: Likewise.
17917         * locales/es_CL: Likewise.
17918         * locales/es_CO: Likewise.
17919         * locales/es_DO: Likewise.
17920         * locales/es_EC: Likewise.
17921         * locales/es_ES: Likewise.
17922         * locales/es_HN: Likewise.
17923         * locales/es_MX: Likewise.
17924         * locales/es_PA: Likewise.
17925         * locales/es_PE: Likewise.
17926         * locales/es_PY: Likewise.
17927         * locales/es_SV: Likewise.
17928         * locales/es_US: Likewise.
17929         * locales/es_UY: Likewise.
17930         * locales/es_VE: Likewise.
17931         * locales/et_EE: Likewise.
17932         * locales/fa_IR: Likewise.
17933         * locales/fo_FO: Likewise.
17934         * locales/fr_CA: Likewise.
17935         * locales/fr_CH: Likewise.
17936         * locales/gv_GB: Likewise.
17937         * locales/he_IL: Likewise.
17938         * locales/hr_HR: Likewise.
17939         * locales/id_ID: Likewise.
17940         * locales/is_IS: Likewise.
17941         * locales/it_CH: Likewise.
17942         * locales/iw_IL: Likewise.
17943         * locales/kl_GL: Likewise.
17944         * locales/ko_KR: Likewise.
17945         * locales/kw_GB: Likewise.
17946         * locales/lg_UG: Likewise.
17947         * locales/lt_LT: Likewise.
17948         * locales/lv_LV: Likewise.
17949         * locales/mi_NZ: Likewise.
17950         * locales/nhn_MX: Likewise.
17951         * locales/nl_BE: Likewise.
17952         * locales/pl_PL: Likewise.
17953         * locales/sk_SK: Likewise.
17954         * locales/sl_SI: Likewise.
17955         * locales/sv_FI: Likewise.
17956         * locales/tl_PH: Likewise.
17957         * locales/tr_TR: Likewise.
17958         * locales/vi_VN: Likewise.
17959
17960 2015-07-21  Khem Raj  <raj.khem@gmail.com>
17961
17962         [BZ #17475]
17963         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
17964         of tu_IN and bh_IN.
17965
17966 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
17967
17968         [BZ #18694]
17969         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
17970         bits/wordsize.h.
17971         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
17972
17973 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17974
17975         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
17976         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
17977         (spawn_thread): New function.
17978         (load): Rename to reg_dtor_and_close.  Move dlopen to...
17979         (do_test): ... here.  Use IS_LOADED to test for its
17980         availability.
17981
17982 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
17983
17984         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
17985
17986 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
17987
17988         [BZ #18696]
17989         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
17990         si_addr_bnd.
17991         (si_lower): New.
17992         (si_upper): Likewise.
17993
17994 2015-07-16  David S. Miller  <davem@davemloft.net>
17995
17996         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
17997
17998 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17999
18000         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
18001         buffer.
18002         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
18003         fail output information.
18004
18005 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18006
18007         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
18008         and strstr-ppc64..
18009         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
18010         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
18011         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
18012         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
18013         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
18014
18015 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
18016
18017         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
18018         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
18019         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
18020         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
18021
18022 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
18023
18024         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
18025         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
18026         rtld_hidden_proto.
18027         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
18028
18029 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
18030
18031         * tst-nodelete-opened.c (do_test): Add comment to clarify how
18032         the test can fail.
18033
18034         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
18035
18036         [BZ #18676]
18037         * elf/tst-nodelete-opened.c: New test case.
18038         * elf/tst-nodelete-opened-lib.c: New test case module.
18039         * elf/Makefile (tests, modules-names): Use them.
18040         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
18041         early.
18042
18043 2015-07-15  David S. Miller  <davem@davemloft.net>
18044
18045         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
18046         futex-intenal.h
18047         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
18048         * sysdeps/sparc/sparc64/Makefile: Likewise.
18049         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
18050         Remove space from macro define.
18051         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
18052
18053 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
18054
18055         [BZ #17475]
18056         * locale/iso-639.def: Update Bhili and Tulu language codes as
18057         per iso639-3.
18058
18059 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
18060
18061         * elf/tst-leaks1.c (main): Converted to ...
18062         (do_test): ... this.
18063         (TEST_FUNCTION): New macro.
18064         Include test-skeleton.c.
18065         * localedata/tst-langinfo.c (main): Converted to ...
18066         (do_test): ... this.
18067         (TEST_FUNCTION): New macro.
18068         Include test-skeleton.c.
18069         * math/test-fpucw.c (main): Converted to ...
18070         (do_test): ... this.
18071         (TEST_FUNCTION): New macro.
18072         Include test-skeleton.c.
18073         * math/test-tgmath.c (main): Converted to ...
18074         (do_test): ... this.
18075         (TEST_FUNCTION): New macro.
18076         Include test-skeleton.c.
18077         * math/test-tgmath2.c (main): Converted to ...
18078         (do_test): ... this.
18079         (TEST_FUNCTION): New macro.
18080         Include test-skeleton.c.
18081         * setjmp/tst-setjmp.c (main): Converted to ...
18082         (do_test): ... this.
18083         (TEST_FUNCTION): New macro.
18084         Include test-skeleton.c.
18085         * stdio-common/tst-sscanf.c (main): Converted to ...
18086         (do_test): ... this.
18087         (TEST_FUNCTION): New macro.
18088         Include test-skeleton.c.
18089         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
18090         (do_test): ... this.
18091         (TEST_FUNCTION): New macro.
18092         Include test-skeleton.c.
18093
18094         * elf/tst-audit9.c (main): Converted to ...
18095         (do_test): ... this.
18096         (TEST_FUNCTION): New macro.
18097         Include test-skeleton.c.
18098
18099 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
18100
18101         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
18102
18103 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18104
18105         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
18106         New variable.
18107
18108 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18109
18110         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18111
18112 2015-07-14  Roland McGrath  <roland@hack.frob.com>
18113
18114         * sysdeps/generic/dl-fileid.h: New file.
18115         * sysdeps/posix/dl-fileid.h: New file.
18116         * sysdeps/nacl/dl-fileid.h: New file.
18117         * include/link.h: Include <dl-fileid.h>.
18118         (struct link_map): Replace l_dev and l_ino with l_file_id.
18119         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
18120         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
18121         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
18122
18123 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
18124
18125         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
18126
18127 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18128
18129         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
18130         Add iff $CXX is set.
18131         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
18132         Likewise.
18133         (tst-nodelete-zmodiff): Likewise.
18134         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
18135
18136 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
18137
18138         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
18139
18140 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
18141
18142         * sysdeps/aarch64/fpu/math_private.h
18143         (define math_opt_barrier): Add AArch64 version.
18144         (math_force_eval): Likewise.
18145
18146 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
18147
18148         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
18149
18150 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
18151
18152         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
18153         %ld with %jd and cast to intmax_t.
18154         (do_test_length_zero): Likewise.
18155
18156 2015-07-10  Roland McGrath  <roland@hack.frob.com>
18157
18158         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
18159
18160 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
18161
18162         * sysdeps/tile/libm-test-ulps: Regenerated.
18163
18164         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
18165         Comment out the whole function, not just its body.
18166
18167 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18168
18169         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
18170         locks.
18171
18172         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
18173
18174 2015-07-10  Torvald Riegel  <triegel@redhat.com>
18175
18176         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
18177         (sem_assume_only_signals_cause_futex_EINTR): Remove.
18178
18179 2015-07-10  Torvald Riegel  <triegel@redhat.com>
18180
18181         * sysdeps/nptl/futex-internal.h: New file.
18182         * sysdeps/nacl/futex-internal.h: New file.
18183         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
18184         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
18185         error checking.
18186         (setxid_unmark_thread): Likewise.
18187         (__nptl_setxid): Likewise.
18188         (__wait_lookup_done): Likewise.
18189         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
18190         * nptl/nptl-init.c (sighandler_setxid): Likewise.
18191         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
18192         * nptl/pthread_once.c (clear_once_control): Likewise.
18193         (__pthread_once_slow): Likewise.
18194         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
18195         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
18196         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
18197         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
18198         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
18199         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
18200         Likewise.
18201         (__pthread_rwlock_rdlock): Likewise.
18202         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
18203         Likewise.
18204         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
18205         Likewise.
18206         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
18207         Likewise.
18208         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
18209         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
18210         Likewise.
18211         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
18212         __ASSUME_PRIVATE_FUTEX check.
18213         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
18214         Check that shared futexes are supported.
18215         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
18216         wrappers with error checking.
18217         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
18218         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
18219         * nptl/pthread_barrierattr_setpshared.c
18220         (pthread_barrierattr_setpshared): Check that shared futexes are
18221         supported.
18222         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
18223         Likewise.
18224         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
18225         Likewise.
18226         * nptl/sem_init.c (futex_private_if_supported): Remove.
18227         (__new_sem_init): Adapt and check that shared futexes are supported.
18228         * nptl/sem_open.c (sem_open): Likewise.
18229         * nptl/sem_post.c (futex_wake): Remove.
18230         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
18231         (do_futex_wait): Use futex wrappers with error checking.
18232         * nptl/sem_wait.c: Include lowlevellock.h.
18233         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
18234         Use futex_supports_pshared.
18235         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
18236         Use futex wrappers with error checking.
18237         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
18238         Likewise.
18239         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
18240         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
18241         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
18242         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
18243         (futex_wake): Likewise.
18244         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
18245         (do_futex_wait): Use futex wrappers with error checking.
18246         (__new_sem_wait_slow): Update EINTR handling.
18247         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
18248
18249 2015-07-09  Martin Sebor  <msebor@redhat.com>
18250
18251         [BZ #18435]
18252         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
18253         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
18254         * nptl/Makefile (test-xfail-tst-once5): Define.
18255
18256 2015-07-09  Roland McGrath  <roland@hack.frob.com>
18257
18258         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
18259         * elf/dl-minimal.c: For readability, reorder some definitions and
18260         introduce more page breaks.  Include <stdio.h>.
18261         (__libc_fatal): New function.
18262
18263         * include/unistd.h: Add rtld_hidden_proto for _exit.
18264         * posix/_exit.c: Add rtld_hidden_def.
18265         * sysdeps/mach/hurd/_exit.c: Likewise.
18266         * sysdeps/nacl/_exit.c: Likewise.
18267         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
18268         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
18269
18270 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18271
18272         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
18273         bndmov encoding with zero displacement.
18274
18275 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
18276             H.J. Lu  <hongjiu.lu@intel.com>
18277
18278         [BZ #18134]
18279         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
18280         * sysdeps/i386/configure: Regenerated.
18281         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
18282         (_dl_runtime_profile): Save and restore Intel MPX return bound
18283         registers when calling _dl_call_pltexit.  Add
18284         PRESERVE_BND_REGS_PREFIX before return.
18285         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
18286         (LRV_BND1_OFFSET): Likewise.
18287         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
18288         lrv_bnd1.
18289         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
18290         typo in bndmov encoding.
18291         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
18292         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
18293         branch instructions to preserve bounds.
18294
18295 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18296
18297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
18298         [GLIBC_2.22]: Add fmemopen.
18299
18300 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18301
18302         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
18303         returns an error, also try to use host port from __mach_host_self for
18304         the __vm_wire call.
18305         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
18306
18307 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18308
18309         [BZ #18400]
18310         [BZ #18648]
18311         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
18312         Fix pr_uid and pr_gid members.
18313         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
18314         definition to elf_greg_t.
18315
18316 2015-07-08  Roland McGrath  <roland@hack.frob.com>
18317
18318         [BZ #18383]
18319         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
18320         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
18321         * sysdeps/arm/configure: Regenerated.
18322         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
18323         (test-xfail-tst-tlsalign-static): Variable removed.
18324
18325         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
18326         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
18327         rather than explicit 'ln -s'.
18328
18329         * resolv/rpc/netdb.h: New file.
18330         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
18331
18332 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18333
18334         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
18335         length buffers.
18336         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
18337         test-skeleton.c.
18338
18339         [BZ #6544]
18340         [BZ #11216]
18341         [BZ #12836]
18342         [BZ #13151]
18343         [BZ #13152]
18344         [BZ #14292]
18345         * include/stdio.h (fmemopen): Remove hidden prototype.
18346         (__fmemopen): Add new hidden prototype.
18347         * libio/Makefile: Add oldfmemopen object.
18348         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
18349         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
18350         compliance.
18351         * libio/oldfmemopen.c: New file: old fmemopen implementation for
18352         symbol compatibility.
18353         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
18354         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
18355         fmemopen.
18356         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
18357         on append and read mode.
18358         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
18359         fmemopen.
18360         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
18361         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
18362         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
18363         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
18364         Likewise.
18365         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
18366         [GLIBC_2.22]: Likewise.
18367         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
18368         Likewise.
18369         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
18370         Likewise.
18371         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
18372         [GLIBC_2.22]: Likewise.
18373         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
18374         [GLIBC_2.22]: Likewise.
18375         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
18376         [GLIBC_2.22]: Likewise.
18377         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
18378         [GLIBC_2.22]: Likewise.
18379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
18380         [GLIBC_2.22]: Likewise.
18381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
18382         [GLIBC_2.22]: Likewise.
18383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
18384         [GLIBC_2.22]: Likewise.
18385         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
18386         Likewise.
18387         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
18388         Likewise.
18389         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
18390         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
18391         [GLIBC_2.22]: Likewise.
18392         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
18393         [GLIBC_2.22]: Likewise.
18394         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
18395         [GLIBC_2.22]: Likewise.
18396         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
18397         [GLIBC_2.22]: Likewise.
18398         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
18399         Likewise.
18400         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
18401         Likewise.
18402         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
18403         Likewise.
18404         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
18405         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
18406
18407 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
18408
18409         [BZ #18643]
18410         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
18411         IPV6_PATHMTU, and IPV6_DONTFRAG.
18412
18413 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
18414
18415         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
18416         and _IO_UNBUFFERED.
18417         * libio/oldfileops.c: Likewise.
18418         * libio/wfileops.c: Likewise.
18419
18420 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
18421
18422         * nscd/selinux.c: Delete selinux/flask.h include.
18423
18424 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
18425
18426         [BZ #18641]
18427         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
18428         (putpwent): Likewise.
18429         (getpwnam): Likewise.
18430         (getpwent_r): Likewise.
18431         (getpwuid_r): Likewise.
18432         (getpwnam_r): Likewise.
18433         (fgetpwent_r): Likewise.
18434
18435 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
18436
18437         [BZ #18557]
18438         * inet/rcmd.c (__validuser2_sa): Check user first to
18439         short-circuit host check.
18440
18441 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
18442             Mikhail Ilin  <m.ilin@samsung.com>
18443
18444         [BZ #17833]
18445         * elf/Makefile (tests): Add tst-nodelete.
18446         (modules-names): Add tst-nodelete-uniquemod.
18447         (tst-nodelete-uniquemod.so-no-z-defs): New.
18448         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
18449         (tst-nodelete-zmod.so-no-z-defs): Likewise.
18450         ($(objpfx)tst-nodelete): Likewise.
18451         ($(objpfx)tst-nodelete.out): Likewise.
18452         (LDFLAGS-tst-nodelete): Likewise.
18453         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
18454         * elf/dl-close.c (_dl_close_worker): Add a parameter to
18455         implement forced object deletion.
18456         (_dl_close): Pass false to _dl_close_worker.
18457         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
18458         * elf/tst-nodelete.cc: New file.
18459         * elf/tst-nodeletelib.cc: Likewise.
18460         * elf/tst-znodeletelib.cc: Likewise.
18461         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
18462
18463 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
18464
18465         [BZ #18508]
18466         * stdlib/Makefile ($(objpfx)tst-makecontext3):
18467         Depend on $(libdl).
18468         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
18469         is not called infinitely times.
18470         (backtrace_helper): New function.
18471         (trace_arg): New struct.
18472         (st1): Enlarge stack size.
18473         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
18474         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
18475         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
18476         Likewise.
18477
18478 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
18479
18480         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18481
18482 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
18483
18484         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
18485         Include sys/types.h instead of bits/types.h.
18486         Remove inclusion of bits/wordsize.h.
18487
18488 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
18489
18490         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
18491         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
18492         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
18493         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
18494         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
18495         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
18496
18497 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
18498
18499         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
18500         link-defines.sym.
18501         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
18502         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
18503         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
18504         and LR_SIZE.
18505         * sysdeps/i386/link-defines.sym: New file.
18506
18507 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
18508
18509         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
18510         (modules-names): Add tst-auditmod3a tst-auditmod3b.
18511         ($(objpfx)tst-audit3): New rule.
18512         ($(objpfx)tst-audit3.out): Likewise.
18513         * sysdeps/i386/tst-audit3.c: New file.
18514         * sysdeps/i386/tst-audit3.h: Likewise.
18515         * sysdeps/i386/tst-auditmod3a.c: Likewise.
18516         * sysdeps/i386/tst-auditmod3b.c: Likewise.
18517
18518 2015-07-07  Torvald Riegel  <triegel@redhat.com>
18519
18520         [BZ #18633]
18521         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
18522         pointer in C code.
18523         (__strcat_c): Likewise.
18524         (__strcat_g): Likewise.
18525
18526 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
18527
18528         [BZ #18592]
18529         * misc/sbrk.c: Set errno to ENOMEM on overflow.
18530
18531 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
18532
18533         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
18534         New function.  (__ieee754_sqrtf): New function.
18535         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
18536         New function.
18537         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
18538         New function.
18539
18540 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
18541
18542         * sysdeps/ieee754/support.c: Remove unused file.
18543
18544 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18545
18546         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
18547         registers instead of d ones so the layout is kernel abi compatible.
18548         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
18549         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
18550         Likewise.
18551
18552 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18553
18554         * sysdeps/aarch64/libm-test-ulps: Regenerated.
18555
18556 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
18557
18558         [BZ #18619]
18559         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
18560         and return argument in case of subnormal argument.
18561
18562 2015-07-01  Martin Sebor  <msebor@redhat.com>
18563
18564         [BZ #18435]
18565         * nptl/Makefile: Add tst-once5.cc.
18566         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
18567         Remove macro redefinitions.
18568         * nptl/tst-once5.cc: New test.
18569
18570 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
18571
18572         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
18573
18574         * sysdeps/arm/libm-test-ulps: Regenerated.
18575
18576         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
18577         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18578
18579 2015-06-30  Torvald Riegel  <triegel@redhat.com>
18580
18581         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
18582         lll_lock_wait_private and lll_futex_wake probes.
18583
18584         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
18585         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
18586         Likewise.
18587         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
18588         atomic_spin_nop.
18589         * sysdeps/x86_64/bits/atomic.h: Likewise.
18590         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
18591         to atomic_spin_nop and move ...
18592         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
18593         ... here and ...
18594         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
18595         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
18596         atomic_spin_nop instead of BUSY_WAIT_NOP.
18597         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
18598         Likewise.
18599         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
18600         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
18601         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
18602         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
18603         instead of atomic_delay.
18604
18605 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
18606
18607         [BZ #18613]
18608         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
18609         X_ADJ not X when adjusting exponent.
18610         (__ieee754_gamma_r): Do intermediate computations in
18611         round-to-nearest then adjust overflowing and underflowing results
18612         as needed.
18613         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
18614         of X_ADJ not X when adjusting exponent.
18615         (__ieee754_gammaf_r): Do intermediate computations in
18616         round-to-nearest then adjust overflowing and underflowing results
18617         as needed.
18618         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
18619         log of X_ADJ not X when adjusting exponent.
18620         (__ieee754_gammal_r): Do intermediate computations in
18621         round-to-nearest then adjust overflowing and underflowing results
18622         as needed.  Use 1.0L not 1.0f as numerator of division.
18623         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
18624         log of X_ADJ not X when adjusting exponent.
18625         (__ieee754_gammal_r): Do intermediate computations in
18626         round-to-nearest then adjust overflowing and underflowing results
18627         as needed.  Use 1.0L not 1.0f as numerator of division.
18628         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
18629         of X_ADJ not X when adjusting exponent.
18630         (__ieee754_gammal_r): Do intermediate computations in
18631         round-to-nearest then adjust overflowing and underflowing results
18632         as needed.  Use 1.0L not 1.0f as numerator of division.
18633         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
18634         to auto-libm-test-in.
18635         (tgamma_test): Use ALL_RM_TEST.
18636         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
18637         tests of tgamma with spurious-overflow.
18638         * math/auto-libm-test-out: Regenerated.
18639         * math/gen-libm-have-vector-test.sh: Do not check for START.
18640         * sysdeps/i386/fpu/libm-test-ulps: Update.
18641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18642
18643         [BZ #18612]
18644         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
18645         arguments, just return 0.5 times the argument, with underflow
18646         forced as needed.
18647         * math/auto-libm-test-in: Add more tests of j1.
18648         * math/auto-libm-test-out: Regenerated.
18649
18650         [BZ #16559]
18651         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
18652         (__ieee754_j1): Force underflow exception for small results.
18653         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
18654         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
18655         (__ieee754_j1f): Force underflow exception for small results.
18656         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
18657         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
18658         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
18659         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
18660         (__ieee754_j1l): Force underflow exception for small results.
18661         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
18662         * math/auto-libm-test-in: Add more tests of j1 and jn.
18663         * math/auto-libm-test-out: Regenerated.
18664
18665         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
18666         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
18667         (PF_MPLS): Likewise.
18668         (AF_IB): Likewise.
18669         (AF_MPLS): Likewise.
18670         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
18671         value and macro.
18672         (MS_RMT_MASK): Include MS_LAZYTIME.
18673
18674 2015-06-26  Mel Gorman  <mgorman@suse.de>
18675
18676         [BZ #18502]
18677         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
18678         already minimal.
18679
18680 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
18681
18682         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
18683         (DT_MIPS_NUM): Update.
18684         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
18685         DT_MIPS_RLD_MAP_REL.
18686
18687 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
18688
18689         [BZ #16559]
18690         [BZ #18602]
18691         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
18692         round-to-nearest internally then recompute results that
18693         underflowed to zero in the original rounding mode.
18694         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
18695         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
18696         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
18697         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
18698         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
18699         * sysdeps/i386/fpu/libm-test-ulps: Update.
18700         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18701
18702 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
18703
18704         * NEWS: Fixed description of link with vector math library.
18705
18706 2015-06-25  Andreas Schwab  <schwab@suse.de>
18707
18708         [BZ #18549]
18709         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
18710         * libio/test-fmemopen.c (do_test): Add test for it.
18711
18712 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18713
18714         [BZ #17841]
18715         * Makeconfig (no-pie-ldflag): New.
18716         (+link): Set to $(+link-pie) if default to PIE.
18717         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
18718         * config.make.in (build-pie-default): New.
18719         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
18720         is default.  AC_SUBST.
18721         * configure: Regenerated.
18722         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
18723
18724 2015-06-24  Roland McGrath  <roland@hack.frob.com>
18725
18726         * nptl/descr.h (struct pthread): Change type of field setxid_futex
18727         to 'unsigned int'.
18728
18729         * resolv/gai_misc.h (struct waitlist): Change type of field
18730         counterp to 'volatile unsigned int *'.
18731         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
18732         FUTEXADDR and OLDVAL.
18733         * resolv/getaddrinfo_a.c (getaddrinfo_a):
18734         Give local variable TOTAL type 'volatile unsigned int'.
18735         (struct async_waitlist): Change type of field counter to 'unsigned int'.
18736         * resolv/gai_suspend.c (gai_suspend):
18737         Give local variable CNTR type 'unsigned int'.
18738
18739         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
18740         counterp to 'volatile unsigned int *'.
18741         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
18742         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
18743         (aio_suspend): Give local variable CNTR type 'unsigned int'.
18744         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
18745         Give local variable TOTAL type 'volatile unsigned int'.
18746         (struct async_waitlist): Change type of field counter to 'unsigned int'.
18747
18748 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18749
18750         [BZ #18383]
18751         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
18752         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
18753         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
18754         comment for i386/x86-64.
18755         (test-xfail-tst-tlsalign-extern-static): Removed.
18756
18757 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
18758
18759         * math/test-double.h: New file.
18760         * math/test-float.h: Likewise.
18761         * math/test-ldouble.h: Likewise.
18762         * math/test-math-inline.h: Likewise.
18763         * math/test-math-no-inline.h: Likewise.
18764         * math/test-math-scalar.h: Likewise.
18765         * math/test-math-vector.h: Likewise.
18766         * math/test-vec-loop.h: Remove file.  Contents moved into
18767         test-math-vector.h.
18768         * math/libm-test.inc (MATHCONST): Do not document macro.
18769         * math/test-double.c: Include test-double.h, test-math-no-inline.h
18770         and test-math-scalar.h.
18771         (FUNC): Remove macro.
18772         (FUNC_TEST): Likewise.
18773         (FLOAT): Likewise.
18774         (MATHCONST): Likewise.
18775         (PRINTF_EXPR): Likewise.
18776         (PRINTF_XEXPR): Likewise.
18777         (PRINTF_NEXPR): Likewise.
18778         (TEST_DOUBLE): Likewise.
18779         (TEST_MATHVEC): Likewise.
18780         (__NO_MATH_INLINES): Likewise.
18781         * math/test-float.c: Include test-float.h, test-math-no-inline.h
18782         and test-math-scalar.h.
18783         (FUNC): Remove macro.
18784         (FUNC_TEST): Likewise.
18785         (FLOAT): Likewise.
18786         (MATHCONST): Likewise.
18787         (PRINTF_EXPR): Likewise.
18788         (PRINTF_XEXPR): Likewise.
18789         (PRINTF_NEXPR): Likewise.
18790         (TEST_FLOAT): Likewise.
18791         (TEST_MATHVEC): Likewise.
18792         (__NO_MATH_INLINES): Likewise.
18793         * math/test-idouble.c: Include test-double.h, test-math-inline.h
18794         and test-math-scalar.h.
18795         (FUNC): Remove macro.
18796         (FUNC_TEST): Likewise.
18797         (FLOAT): Likewise.
18798         (MATHCONST): Likewise.
18799         (PRINTF_EXPR): Likewise.
18800         (PRINTF_XEXPR): Likewise.
18801         (PRINTF_NEXPR): Likewise.
18802         (TEST_DOUBLE): Likewise.
18803         (TEST_MATHVEC): Likewise.
18804         (TEST_INLINE): Likewise.
18805         (__NO_MATH_INLINES): Likewise.
18806         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
18807         test-math-scalar.h.
18808         (FUNC): Remove macro.
18809         (FUNC_TEST): Likewise.
18810         (FLOAT): Likewise.
18811         (MATHCONST): Likewise.
18812         (PRINTF_EXPR): Likewise.
18813         (PRINTF_XEXPR): Likewise.
18814         (PRINTF_NEXPR): Likewise.
18815         (TEST_FLOAT): Likewise.
18816         (TEST_MATHVEC): Likewise.
18817         (TEST_INLINE): Likewise.
18818         (__NO_MATH_INLINES): Likewise.
18819         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
18820         and test-math-scalar.h.
18821         (FUNC): Remove macro.
18822         (FUNC_TEST): Likewise.
18823         (FLOAT): Likewise.
18824         (MATHCONST): Likewise.
18825         (PRINTF_EXPR): Likewise.
18826         (PRINTF_XEXPR): Likewise.
18827         (PRINTF_NEXPR): Likewise.
18828         (TEST_LDOUBLE): Likewise.
18829         (TEST_MATHVEC): Likewise.
18830         (TEST_INLINE): Likewise.
18831         (__NO_MATH_INLINES): Likewise.
18832         * math/test-ldouble.c: Include test-ldouble.h,
18833         test-math-no-inline.h and test-math-scalar.h.
18834         (FUNC): Remove macro.
18835         (FUNC_TEST): Likewise.
18836         (FLOAT): Likewise.
18837         (MATHCONST): Likewise.
18838         (PRINTF_EXPR): Likewise.
18839         (PRINTF_XEXPR): Likewise.
18840         (PRINTF_NEXPR): Likewise.
18841         (TEST_LDOUBLE): Likewise.
18842         (TEST_MATHVEC): Likewise.
18843         (__NO_MATH_INLINES): Likewise.
18844         * math/test-double-vlen2.h: Include test-double.h,
18845         test-math-no-inline.h and test-math-vector.h.
18846         (FLOAT): Remove macro.
18847         (FUNC): Likewise.
18848         (MATHCONST): Likewise.
18849         (PRINTF_EXPR): Likewise.
18850         (PRINTF_XEXPR): Likewise.
18851         (PRINTF_NEXPR): Likewise.
18852         (TEST_DOUBLE): Likewise.
18853         (TEST_MATHVEC): Likewise.
18854         (__NO_MATH_INLINES): Likewise.
18855         (CNCT): Likewise.
18856         (CONCAT): Likewise.
18857         (WRAPPER_NAME): Likewise.
18858         (WRAPPER_DECL): Likewise.
18859         (WRAPPER_DECL_ff): Likewise.
18860         (WRAPPER_DECL_fFF): Likewise.
18861         (VECTOR_WRAPPER): Likewise.
18862         (VECTOR_WRAPPER_ff): Likewise.
18863         (VECTOR_WRAPPER_fFF): Likewise.
18864         (VEC_LEN): New macro.
18865         * math/test-double-vlen4.h: Include test-double.h,
18866         test-math-no-inline.h and test-math-vector.h.
18867         (FLOAT): Remove macro.
18868         (FUNC): Likewise.
18869         (MATHCONST): Likewise.
18870         (PRINTF_EXPR): Likewise.
18871         (PRINTF_XEXPR): Likewise.
18872         (PRINTF_NEXPR): Likewise.
18873         (TEST_DOUBLE): Likewise.
18874         (TEST_MATHVEC): Likewise.
18875         (__NO_MATH_INLINES): Likewise.
18876         (CNCT): Likewise.
18877         (CONCAT): Likewise.
18878         (WRAPPER_NAME): Likewise.
18879         (WRAPPER_DECL): Likewise.
18880         (WRAPPER_DECL_ff): Likewise.
18881         (WRAPPER_DECL_fFF): Likewise.
18882         (VECTOR_WRAPPER): Likewise.
18883         (VECTOR_WRAPPER_ff): Likewise.
18884         (VECTOR_WRAPPER_fFF): Likewise.
18885         (VEC_LEN): New macro.
18886         * math/test-double-vlen8.h: Include test-double.h,
18887         test-math-no-inline.h and test-math-vector.h.
18888         (FLOAT): Remove macro.
18889         (FUNC): Likewise.
18890         (MATHCONST): Likewise.
18891         (PRINTF_EXPR): Likewise.
18892         (PRINTF_XEXPR): Likewise.
18893         (PRINTF_NEXPR): Likewise.
18894         (TEST_DOUBLE): Likewise.
18895         (TEST_MATHVEC): Likewise.
18896         (__NO_MATH_INLINES): Likewise.
18897         (CNCT): Likewise.
18898         (CONCAT): Likewise.
18899         (WRAPPER_NAME): Likewise.
18900         (WRAPPER_DECL): Likewise.
18901         (WRAPPER_DECL_ff): Likewise.
18902         (WRAPPER_DECL_fFF): Likewise.
18903         (VECTOR_WRAPPER): Likewise.
18904         (VECTOR_WRAPPER_ff): Likewise.
18905         (VECTOR_WRAPPER_fFF): Likewise.
18906         (VEC_LEN): New macro.
18907         * math/test-float-vlen4.h: Include test-float.h,
18908         test-math-no-inline.h and test-math-vector.h.
18909         (FLOAT): Remove macro.
18910         (FUNC): Likewise.
18911         (MATHCONST): Likewise.
18912         (PRINTF_EXPR): Likewise.
18913         (PRINTF_XEXPR): Likewise.
18914         (PRINTF_NEXPR): Likewise.
18915         (TEST_FLOAT): Likewise.
18916         (TEST_MATHVEC): Likewise.
18917         (__NO_MATH_INLINES): Likewise.
18918         (CNCT): Likewise.
18919         (CONCAT): Likewise.
18920         (WRAPPER_NAME): Likewise.
18921         (WRAPPER_DECL): Likewise.
18922         (WRAPPER_DECL_ff): Likewise.
18923         (WRAPPER_DECL_fFF): Likewise.
18924         (VECTOR_WRAPPER): Likewise.
18925         (VECTOR_WRAPPER_ff): Likewise.
18926         (VECTOR_WRAPPER_fFF): Likewise.
18927         (VEC_LEN): New macro.
18928         * math/test-float-vlen8.h: Include test-float.h,
18929         test-math-no-inline.h and test-math-vector.h.
18930         (FLOAT): Remove macro.
18931         (FUNC): Likewise.
18932         (MATHCONST): Likewise.
18933         (PRINTF_EXPR): Likewise.
18934         (PRINTF_XEXPR): Likewise.
18935         (PRINTF_NEXPR): Likewise.
18936         (TEST_FLOAT): Likewise.
18937         (TEST_MATHVEC): Likewise.
18938         (__NO_MATH_INLINES): Likewise.
18939         (CNCT): Likewise.
18940         (CONCAT): Likewise.
18941         (WRAPPER_NAME): Likewise.
18942         (WRAPPER_DECL): Likewise.
18943         (WRAPPER_DECL_ff): Likewise.
18944         (WRAPPER_DECL_fFF): Likewise.
18945         (VECTOR_WRAPPER): Likewise.
18946         (VECTOR_WRAPPER_ff): Likewise.
18947         (VECTOR_WRAPPER_fFF): Likewise.
18948         (VEC_LEN): New macro.
18949         * math/test-float-vlen16.h: Include test-float.h,
18950         test-math-no-inline.h and test-math-vector.h.
18951         (FLOAT): Remove macro.
18952         (FUNC): Likewise.
18953         (MATHCONST): Likewise.
18954         (PRINTF_EXPR): Likewise.
18955         (PRINTF_XEXPR): Likewise.
18956         (PRINTF_NEXPR): Likewise.
18957         (TEST_FLOAT): Likewise.
18958         (TEST_MATHVEC): Likewise.
18959         (__NO_MATH_INLINES): Likewise.
18960         (CNCT): Likewise.
18961         (CONCAT): Likewise.
18962         (WRAPPER_NAME): Likewise.
18963         (WRAPPER_DECL): Likewise.
18964         (WRAPPER_DECL_ff): Likewise.
18965         (WRAPPER_DECL_fFF): Likewise.
18966         (VECTOR_WRAPPER): Likewise.
18967         (VECTOR_WRAPPER_ff): Likewise.
18968         (VECTOR_WRAPPER_fFF): Likewise.
18969         (VEC_LEN): New macro.
18970         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
18971         test-vec-loop.h.
18972         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
18973         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
18974         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
18975         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
18976         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
18977         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
18978         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
18979
18980 2015-06-24  Roland McGrath  <roland@hack.frob.com>
18981
18982         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
18983         (__getlogin_r): ... this.
18984
18985 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
18986
18987         [BZ #18594]
18988         * math/s_ccosh.c (__ccosh): Compare with least normal value
18989         instead of comparing class with FP_SUBNORMAL.
18990         * math/s_ccoshf.c (__ccoshf): Likewise.
18991         * math/s_ccoshl.c (__ccoshl): Likewise.
18992         * math/s_cexp.c (__cexp): Likewise.
18993         * math/s_cexpf.c (__cexpf): Likewise.
18994         * math/s_cexpl.c (__cexpl): Likewise.
18995         * math/s_csin.c (__csin): Likewise.
18996         * math/s_csinf.c (__csinf): Likewise.
18997         * math/s_csinh.c (__csinh): Likewise.
18998         * math/s_csinhf.c (__csinhf): Likewise.
18999         * math/s_csinhl.c (__csinhl): Likewise.
19000         * math/s_csinl.c (__csinl): Likewise.
19001         * math/s_ctan.c (__ctan): Likewise.
19002         * math/s_ctanf.c (__ctanf): Likewise.
19003         * math/s_ctanh.c (__ctanh): Likewise.
19004         * math/s_ctanhf.c (__ctanhf): Likewise.
19005         * math/s_ctanhl.c (__ctanhl): Likewise.
19006         * math/s_ctanl.c (__ctanl): Likewise.
19007         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
19008         csin, csinh, ctan and ctanh.
19009         * math/auto-libm-test-out: Regenerated.
19010         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
19011         * sysdeps/i386/fpu/libm-test-ulps: Update.
19012         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19013
19014 2015-06-24  Roland McGrath  <roland@hack.frob.com>
19015
19016         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
19017         return value is wrong, print the expected value too.
19018
19019 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19020
19021         [BZ #18585]
19022         * elf/readlib.c (is_gdb_python_file): New.
19023         (process_file): Don't issue errors on filenames with -gdb.py
19024         suffix.
19025
19026 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
19027
19028         * math/auto-libm-test-in: Add more tests of csin and csinh.
19029         * math/auto-libm-test-out: Regenerated.
19030         * math/libm-test.inc (csin_test_data): Remove tests moved to
19031         auto-libm-test-in.
19032         (csinh_test_data): Likewise.
19033
19034         [BZ #18593]
19035         * math/s_csin.c (__csin): Negate before rather than after possibly
19036         overflowing multiplication.
19037         * math/s_csinf.c (__csinf): Likewise.
19038         * math/s_csinh.c (__csinh): Likewise.
19039         * math/s_csinhf.c (__csinhf): Likewise.
19040         * math/s_csinhl.c (__csinhl): Likewise.
19041         * math/s_csinl.c (__csinl): Likewise.
19042         * math/auto-libm-test-in: Add some tests of csin and csinh.
19043         * math/auto-libm-test-out: Regenerated.
19044         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
19045         (csinh_test_data): Likewise.
19046         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19047
19048         [BZ #18586]
19049         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
19050         underflow exception for small results.
19051
19052 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
19053
19054         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
19055         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
19056         variable and included header.
19057         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
19058         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
19059         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
19060         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
19061         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
19062         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
19063         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
19064         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
19065         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
19066         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
19067         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
19068         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
19069         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
19070         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
19071         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
19072         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
19073
19074 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
19075
19076         [BZ #16526]
19077         [BZ #16538]
19078         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
19079         (__sin): Force underflow exception for arguments with small
19080         absolute value.
19081         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
19082         (__kernel_sinf): Force underflow exception for arguments with
19083         small absolute value.
19084         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
19085         (__kernel_sincosl): Force underflow exception for arguments with
19086         small absolute value.
19087         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
19088         (__kernel_sinl): Force underflow exception for arguments with
19089         small absolute value.
19090         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
19091         (__kernel_sincosl): Force underflow exception for arguments with
19092         small absolute value.
19093         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
19094         (__kernel_sinl): Force underflow exception for arguments with
19095         small absolute value.
19096         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
19097         (__kernel_sinl): Force underflow exception for arguments with
19098         small absolute value.
19099         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
19100         (__kernel_sinf): Force underflow exception for arguments with
19101         small absolute value.
19102         * math/auto-libm-test-in: Add more tests of sin and sincos.
19103         * math/auto-libm-test-out: Regenerated.
19104
19105         [BZ #18245]
19106         [BZ #18583]
19107         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
19108         (__kernel_standard_l): Use feholdexcept and fesetenv around
19109         conversion to double instead of special-casing overflow and
19110         underflow.
19111         * math/libm-test.inc (fmod_test_data): Add more tests.
19112         (remainder_test_data): Likewise.
19113         (sqrt_test_data): Likewise.
19114
19115 2015-06-23  Torvald Riegel  <triegel@redhat.com>
19116
19117         [BZ #17403]
19118         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
19119         atomic_read_barrier, atomic_write_barrier): Define.
19120         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
19121         atomic_read_barrier, atomic_write_barrier): Define.
19122
19123 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
19124
19125         * math/Makefile [$(PERL) != no]
19126         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
19127         dependency on libm-test.stmp below the inclusion of Rules.
19128
19129 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
19130
19131         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
19132         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
19133         and included header.
19134         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
19135         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
19136         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
19137         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
19138         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
19139         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
19140         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
19141         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
19142         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
19143         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
19144         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
19145         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
19146         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
19147         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
19148         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
19149         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
19150         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
19151         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
19152         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
19153
19154 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
19155
19156         [BZ #18371]
19157         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
19158         intermediate but not final result might underflow.
19159         * math/s_csqrtf.c (__csqrtf): Likewise.
19160         * math/s_csqrtl.c (__csqrtl): Likewise.
19161         * math/auto-libm-test-in: Add more tests of csqrt.
19162         * math/auto-libm-test-out: Regenerated.
19163         * sysdeps/i386/fpu/libm-test-ulps: Update.
19164
19165         [BZ #18219]
19166         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
19167         threshold on absolute value of exponent for which scaling is used.
19168         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
19169         * math/auto-libm-test-in: Add more tests of exp2.
19170         * math/auto-libm-test-out: Regenerated.
19171
19172 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
19173
19174         [BZ #17977]
19175         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
19176         when initializing interface list, based on the bug analysis
19177         and the patch proposed by Eric Newton.
19178         * resolv/tst-res_hconf_reorder.c: New test.
19179         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
19180         tst-res_hconf_reorder.
19181         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
19182         and $(shared-thread-library).
19183         (tst-res_hconf_reorder-ENV): New variable.
19184
19185         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
19186         in comment.
19187
19188 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
19189
19190         [BZ #16353]
19191         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
19192         (__expm1): Force underflow exception for arguments with small
19193         absolute value.
19194         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
19195         (__expm1f): Force underflow exception for arguments with small
19196         absolute value.
19197         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
19198         (__expm1): Force underflow exception for arguments with small
19199         absolute value.
19200         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
19201         (__expm1f): Force underflow exception for arguments with small
19202         absolute value.
19203         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
19204         Check for small arguments before calling __expm1.
19205         * math/auto-libm-test-in: Do not mark underflow exceptions as
19206         possibly missing for bug 16353.
19207         * math/auto-libm-test-out: Regenerated.
19208
19209 2015-06-22  Andreas Schwab  <schwab@suse.de>
19210
19211         [BZ #18513]
19212         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
19213         PTR queries.
19214
19215 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
19216
19217         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
19218
19219         * string/strcoll_l.c: Remove unused struct element idxnow.
19220
19221 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
19222
19223         [BZ #18569]
19224         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
19225         underflow and return argument in case of subnormal argument.
19226         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
19227         Likewise.
19228         * math/auto-libm-test-in: Add more tests of expm1.
19229         * math/auto-libm-test-out: Regenerated.
19230
19231         [BZ #16361]
19232         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
19233         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
19234         tiny results.
19235         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
19236         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
19237         tiny results.
19238         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
19239         mark underflow exceptions as possibly missing for bug 16361.
19240         * math/auto-libm-test-out: Regenerated.
19241
19242 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
19243
19244         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
19245         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
19246         Remove variable.
19247         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
19248         (test-xfail-XOPEN2K8/utmpx.h/conform).
19249
19250         * conform/conformtest.pl ($xerrors): New variable.
19251         (note_error): New function.
19252         (compiletest): New argument $xfail.  Use not_error.
19253         (runtest): Likewise.
19254         (top level): Handle xfail- lines.  Update calls to compiletest and
19255         runtest.  Handle xfail- and optional- in headers listed with
19256         allow-header.
19257         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
19258         (O_EXEC): Likewise.
19259         (O_SEARCH): Likewise.
19260         * conform/data/stropts.h-data (ioctl): Likewise.
19261         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
19262         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
19263         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
19264         (msghdr.msg_controllen): Likewise.
19265         (cmsghdr.cmsg_len): Likewise.
19266         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
19267         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
19268         variable.
19269         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
19270         (test-xfail-XPG4/stropts.h/conform): Likewise.
19271         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
19272         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
19273         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
19274         (test-xfail-UNIX98/stropts.h/conform): Likewise.
19275         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
19276         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
19277         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
19278         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
19279         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
19280         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
19281         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
19282         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
19283         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
19284         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
19285         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
19286         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
19287         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
19288         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
19289         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
19290
19291 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19292
19293         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
19294         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
19295         definitions for proper unfolding of __MATHDECL_VEC.
19296
19297 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19298
19299         * benchtests/bench-strcoll.c:
19300         Include string.h.
19301         (main): Remove unused variable res.
19302
19303 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19304
19305         * timezone/Makefile (%/UTC %/Universal):
19306         Generate test-result files for UTC and Universal.
19307
19308 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19309
19310         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19311
19312 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
19313
19314         [BZ #16350]
19315         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
19316         for arguments with small absolute value.
19317         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
19318         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
19319         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
19320         (__asinh): Force underflow exception for arguments with small
19321         absolute value.
19322         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
19323         (__asinhf): Force underflow exception for arguments with small
19324         absolute value.
19325         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
19326         (__asinhl): Force underflow exception for arguments with small
19327         absolute value.
19328         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
19329         (__asinhl): Force underflow exception for arguments with small
19330         absolute value.
19331         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
19332         (__asinhl): Force underflow exception for arguments with small
19333         absolute value.
19334         * math/auto-libm-test-in: Do not mark underflow exceptions as
19335         possibly missing for bug 16350.
19336         * math/auto-libm-test-out: Regenerated.
19337
19338         * include/bits/ipc.h: Remove file.
19339         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
19340         variable.
19341         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
19342         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
19343         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
19344         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
19345         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
19346         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
19347         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
19348         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
19349         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
19350
19351         * math/auto-libm-test-in: Remove spurious underflow allowance for
19352         tests of cexp.
19353         * math/auto-libm-test-out: Regenerated.
19354
19355         [BZ #18558]
19356         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
19357         unconditional definition.
19358         (MCAST_BLOCK_SOURCE): Likewise.
19359         (MCAST_UNBLOCK_SOURCE): Likewise.
19360         (MCAST_LEAVE_GROUP): Likewise.
19361         (MCAST_JOIN_SOURCE_GROUP): Likewise.
19362         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
19363         (MCAST_MSFILTER): Likewise.
19364         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
19365         Remove variable.
19366         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
19367         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
19368         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
19369         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
19370         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
19371
19372 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
19373
19374         * NEWS: Mention addition of x86_64 vector sincosf.
19375         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
19376         * math/test-float-vlen4.h: Likewise.
19377         * math/test-float-vlen8.h: Likewise.
19378         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19379         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
19380         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19381         * sysdeps/x86_64/fpu/Versions: New versions added.
19382         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19383         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
19384         Added build of SSE, AVX2 and AVX512 IFUNC versions.
19385         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
19386         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
19387         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
19388         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
19389         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
19390         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
19391         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
19392         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
19393         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
19394         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
19395         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
19396         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
19397         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
19398         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
19399         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
19400         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
19401         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
19402         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
19403         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
19404         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
19405         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
19406
19407         * NEWS: Mention addition of x86_64 vector sincos.
19408         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
19409         * math/math.h (__MATHDECL_VEC): New macro.
19410         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
19411         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
19412         declaration under condition.
19413         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
19414         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
19415         TEST_VEC_LOOP change.
19416         * math/test-double-vlen4.h: Likewise.
19417         * math/test-double-vlen8.h: Likewise.
19418         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
19419         * math/test-float-vlen4.h: Likewise.
19420         * math/test-float-vlen8.h: Likewise.
19421         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19422         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
19423         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19424         * sysdeps/x86_64/fpu/Versions: New versions added.
19425         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19426         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
19427         Added build of SSE, AVX2 and AVX512 IFUNC versions.
19428         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
19429         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
19430         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
19431         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
19432         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
19433         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
19434         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
19435         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
19436         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
19437         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
19438         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
19439         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
19440         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
19441         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
19442         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
19443         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
19444         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
19445         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
19446         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
19447         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
19448         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
19449
19450         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19451         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
19452         redirections for powf.
19453         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19454         * sysdeps/x86_64/fpu/Versions: New versions added.
19455         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19456         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
19457         Added build of SSE, AVX2 and AVX512 IFUNC versions.
19458         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
19459         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
19460         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
19461         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
19462         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
19463         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
19464         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
19465         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
19466         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
19467         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
19468         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
19469         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
19470         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
19471         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
19472         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
19473         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
19474         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
19475         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
19476         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
19477         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
19478         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
19479         * math/test-float-vlen16.h: Fixed 2 argument macro.
19480         * math/test-float-vlen4.h: Likewise.
19481         * math/test-float-vlen8.h: Likewise.
19482         * NEWS: Mention addition of x86_64 vector powf.
19483
19484 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
19485
19486         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19487         and redefine.
19488         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19489         and redefine.
19490         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
19491         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
19492         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
19493
19494         [BZ #18553]
19495         * resource/getpriority.c (getpriority): Rename to __getpriority
19496         and define as weak alias of __getpriority.
19497         * resource/setpriority.c (setpriority): Rename to __setpriority
19498         and define as weak alias of __setpriority.
19499         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
19500         __getpriority and define as weak alias of __getpriority.
19501         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
19502         __setpriority and define as weak alias of __setpriority.
19503         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
19504         strong name.
19505         (setpriority): Use __setpriority as strong name.
19506         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
19507         __getpriority and define as weak alias of __getpriority.
19508         * include/sys/resource.h (__getpriority): Declare.  Use
19509         libc_hidden_proto.
19510         (__setpriority): Likewise.
19511         (getpriority): Don't use libc_hidden_proto.
19512         (setpriority): Likewise.
19513         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
19514         getpriority.  Call __setpriority instead of setpriority.
19515         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
19516         Remove variable.
19517
19518         [BZ #18547]
19519         * misc/getttyent.c (getttynam): Rename to __getttynam and define
19520         as weak alias of __getttynam.  Use prototype function definition.
19521         Call __setttyent, __getttyent and __endttyent instead of
19522         setttyent, getttyent and endttyent.
19523         (getttyent): Rename to __getttyent and define as weak alias of
19524         __getttyent.  Call __setttyent instead of setttyent.  Call
19525         __fgets_unlocked instead of fgets_unlocked.
19526         (setttyent): Rename to __setttyent and define as weak alias of
19527         __setttyent.
19528         (endttyent): Rename to __endttyent and define as weak alias of
19529         __endttyent.
19530         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
19531         (__setttyent): Likewise.
19532         (__endttyent): Likewise.
19533         (getttyent): Don't use libc_hidden_proto.
19534         (setttyent): Likewise.
19535         (endttyent): Likewise.
19536         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
19537         __endttyent instead of setttyent, getttyent and endttyent.
19538         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
19539         Remove variable.
19540
19541         [BZ #18546]
19542         * socket/recv.c (__recv): Use libc_hidden_def.
19543         * socket/socket.c (__socket): Likewise.
19544         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
19545         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
19546         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
19547         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
19548         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
19549         libc_hidden_def.
19550         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
19551         libc_hidden_weak.
19552         * include/sys/socket.h (__socket): Do not use attribute_hidden.
19553         Use libc_hidden_proto.
19554         (__recv): Likewise.
19555         * socket/Versions (libc): Export __recv and __socket at version
19556         GLIBC_PRIVATE.
19557         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
19558         instead of recv.
19559         (init_mq_netlink): Call __socket instead of socket.
19560         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
19561         Remove variable.
19562
19563         [BZ #18545]
19564         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
19565         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
19566         hidden_weak.
19567         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
19568         define as alias of __mq_timedsend.  Use hidden_weak.
19569         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
19570         __mq_timedsend as strong name.
19571         (mq_timedreceive): Use __mq_timedreceive as strong name.
19572         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
19573         (__mq_timedreceive): Likewise.
19574         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
19575         __mq_timedreceive instead of mq_timedreceive.
19576         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
19577         instead of mq_timedsend.
19578         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
19579         Remove variable.
19580
19581         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
19582         hidden_def and hidden_weak instead of libc_hidden_def and
19583         libc_hidden_weak.
19584         (top level): Refer to hidden_def in comment.
19585         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
19586         macro.  Use it instead of libc_hidden_def.
19587         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
19588         specify __GI_* name explicitly.
19589         (mq_timedreceive): Likewise.
19590         (mq_setattr): Likewise.
19591
19592         [BZ #18544]
19593         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
19594         __pthread_barrier_init and define as weak alias of
19595         __pthread_barrier_init.
19596         * sysdeps/sparc/nptl/pthread_barrier_init.c
19597         (pthread_barrier_init): Likewise.
19598         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
19599         __pthread_barrier_wait and define as weak alias of
19600         __pthread_barrier_wait.
19601         * sysdeps/sparc/nptl/pthread_barrier_wait.c
19602         (pthread_barrier_wait): Likewise.
19603         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
19604         (pthread_barrier_wait): Likewise.
19605         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
19606         (pthread_barrier_wait): Likewise.
19607         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
19608         (pthread_barrier_wait): Likewise.
19609         * nptl/Versions (libpthread): Export __pthread_barrier_init and
19610         __pthread_barrier_wait at version GLIBC_PRIVATE.
19611         * include/pthread.h (__pthread_barrier_init): Declare.
19612         (__pthread_barrier_wait): Likewise.
19613         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
19614         Call __pthread_barrier_wait instead of pthread_barrier_wait.
19615         (helper_thread): Likewise.
19616         (init_mq_netlink): Call __pthread_barrier_init instead of
19617         pthread_barrier_init.
19618
19619         [BZ #18542]
19620         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
19621         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
19622         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
19623         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
19624         vswscanf.
19625         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
19626         Remove variable.
19627
19628         [BZ #18540]
19629         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
19630         strong alias of _IO_fflush.  Use libc_hidden_def.
19631         * libio/iofflush_u.c (fflush_unlocked): Rename to
19632         __fflush_unlocked and define as weak alias of __fflush_unlocked.
19633         Use libc_hidden_weak.
19634         * include/stdio.h (__fflush_unlocked): Declare.  Use
19635         libc_hidden_proto.
19636         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
19637         fflush_unlocked.
19638         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
19639         Remove variable.
19640
19641         [BZ #18539]
19642         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
19643         define as weak alias of __addseverity.
19644         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
19645         Remove variable.
19646         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
19647         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
19648         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
19649
19650         [BZ #18536]
19651         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
19652         (__tfind): Likewise.
19653         (__tdelete): Likewise.
19654         (__twalk): Likewise.
19655         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
19656         __twalk to GLIBC_PRIVATE.
19657         * include/search.h (__tsearch): Use libc_hidden_proto.
19658         (__tfind): Likewise.
19659         (__tdelete): Likewise.
19660         (__twalk): Likewise.
19661         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
19662         Call __tdelete instead of tdelete.
19663         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
19664         tfind.  Call __tsearch instead of tsearch.
19665         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
19666         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
19667         Remove variable.
19668         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
19669
19670         [BZ #18534]
19671         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
19672         (dprintf): Define as a weak alias of __dprintf, not a strong
19673         alias.
19674         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
19675         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
19676         dprintf.
19677         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
19678         Remove variable.
19679         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
19680         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
19681
19682         [BZ #18533]
19683         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
19684         not a strong alias.
19685         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
19686         Remove variable.
19687
19688         [BZ #18532]
19689         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
19690         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
19691         (in6addr_loopback): Rename to __in6addr_loopback and define as
19692         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
19693         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
19694         libc_hidden_proto.
19695         (__in6addr_any): Likewise.
19696         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
19697         in6addr_any.
19698         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
19699         variable.
19700         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
19701
19702 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
19703
19704         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
19705         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
19706         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
19707         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
19708         redirections for pow.
19709         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19710         * sysdeps/x86_64/fpu/Versions: New versions added.
19711         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19712         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
19713         build of SSE, AVX2 and AVX512 IFUNC versions.
19714         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
19715         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
19716         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
19717         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
19718         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
19719         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
19720         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
19721         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
19722         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
19723         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
19724         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
19725         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
19726         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
19727         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
19728         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
19729         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
19730         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
19731         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
19732         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
19733         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
19734         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
19735         * NEWS: Mention addition of x86_64 vector pow.
19736
19737         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19738         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
19739         redirections for expf.
19740         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19741         * sysdeps/x86_64/fpu/Versions: New versions added.
19742         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19743         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
19744         build of SSE, AVX2 and AVX512 IFUNC versions.
19745         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
19746         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
19747         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
19748         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
19749         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
19750         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
19751         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
19752         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
19753         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
19754         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
19755         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
19756         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
19757         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
19758         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
19759         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
19760         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
19761         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
19762         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
19763         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
19764         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
19765         * NEWS: Mention addition of x86_64 vector expf.
19766
19767         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
19768         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
19769         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
19770         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
19771         redirections for exp.
19772         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19773         * sysdeps/x86_64/fpu/Versions: New versions added.
19774         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19775         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
19776         build of SSE, AVX2 and AVX512 IFUNC versions.
19777         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
19778         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
19779         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
19780         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
19781         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
19782         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
19783         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
19784         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
19785         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
19786         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
19787         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
19788         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
19789         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
19790         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
19791         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
19792         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
19793         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
19794         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
19795         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
19796         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
19797         * NEWS: Mention addition of x86_64 vector exp.
19798
19799         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19800         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
19801         redirections for logf.
19802         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19803         * sysdeps/x86_64/fpu/Versions: New versions added.
19804         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19805         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
19806         build of SSE, AVX2 and AVX512 IFUNC versions.
19807         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
19808         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
19809         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
19810         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
19811         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
19812         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
19813         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
19814         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
19815         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
19816         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
19817         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
19818         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
19819         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
19820         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
19821         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
19822         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
19823         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
19824         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
19825         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
19826         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
19827         * NEWS: Mention addition of x86_64 vector logf.
19828
19829         * bits/libm-simd-decl-stubs.h: Added stubs for log.
19830         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
19831         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
19832         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
19833         redirections for log.
19834         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19835         * sysdeps/x86_64/fpu/Versions: New versions added.
19836         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19837         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
19838         build of SSE, AVX2 and AVX512 IFUNC versions.
19839         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
19840         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
19841         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
19842         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
19843         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
19844         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
19845         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
19846         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
19847         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
19848         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
19849         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
19850         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
19851         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
19852         test.
19853         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
19854         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
19855         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
19856         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
19857         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
19858         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
19859         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
19860         * NEWS: Mention addition of x86_64 vector log.
19861
19862 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19863
19864         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
19865         cfi_adjust_cfa_offset argument.
19866         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
19867         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
19868
19869         [BZ #18034]
19870         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
19871         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
19872         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
19873         ordering using ldar.
19874         (_dl_tlsdesc_dynamic): Likewise.
19875         (_dl_tlsdesc_return_lazy): Likewise.
19876         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
19877         relaxed atomics instead of volatile and synchronize with release store.
19878         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
19879         volatile.
19880         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
19881
19882 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
19883
19884         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
19885         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
19886         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
19887         * sysdeps/x86_64/fpu/Versions: New versions added.
19888         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19889         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
19890         build of SSE, AVX2 and AVX512 IFUNC versions.
19891         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
19892         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
19893         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
19894         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
19895         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
19896         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
19897         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
19898         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
19899         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
19900         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
19901         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
19902         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
19903         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
19904         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
19905         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
19906         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
19907         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
19908         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
19909         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
19910         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
19911         * NEWS: Mention addition of x86_64 vector sinf.
19912
19913 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
19914
19915         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
19916         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
19917         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
19918         Remove variable.
19919         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
19920         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
19921
19922 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
19923
19924         [BZ #18530]
19925         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
19926         strong alias of _IO_fputs.  Use libc_hidden_def.
19927         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
19928         and define as weak alias of __fputs_unlocked.  Use
19929         libc_hidden_weak.
19930         * include/stdio.h (__fputs_unlocked): Declare.  Use
19931         libc_hidden_proto.
19932         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
19933         fputs_unlocked.
19934
19935         [BZ #18529]
19936         * resolv/netdb.h [__USE_POSIX]: Change condition to
19937         [__USE_XOPEN2K].
19938         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
19939         not expect.
19940         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
19941         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
19942         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
19943         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
19944         [XPG4 || UNIX98] (AI_ALL): Likewise.
19945         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
19946         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
19947         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
19948         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
19949         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
19950         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
19951         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
19952         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
19953         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
19954         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
19955         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
19956         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
19957         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
19958         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
19959         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
19960         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
19961         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
19962         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
19963         [XPG4 || UNIX98] (gai_strerror): Likewise.
19964         [XPG4 || UNIX98] (getaddrinfo): Likewise.
19965         [XPG4 || UNIX98] (getnameinfo): Likewise.
19966
19967         [BZ #18528]
19968         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
19969         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
19970         __USE_XOPEN2K8].
19971         (getgrent): Likewise.
19972         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
19973         expect.
19974         [XPG3 || POSIX2008] (endgrent): Likewise.
19975         [XPG3] (setgrent): Likewise.
19976         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
19977         variable.
19978         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
19979
19980         [BZ #18527]
19981         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
19982         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
19983         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
19984         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
19985         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
19986         * include/unistd.h (__getlogin_r): Declare.  Use
19987         libc_hidden_proto.
19988         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
19989         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
19990         variable.
19991         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
19992         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
19993         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
19994
19995 2015-06-12  Martin Sebor  <msebor@redhat.com>
19996
19997         [BZ #18512]
19998         * Makerules (check-install-supported): New target.
19999         (install): Add check-install-supported as a dependency.
20000         * manual/install.texi (Installing the C Library): Document
20001         that overriding prefix and exec_prefix is not supported.
20002         Mention DESTDIR.
20003         * INSTALL: Regenerate from the above.
20004
20005 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
20006
20007         [BZ #18519]
20008         * posix/Versions (libc): Export __libc_pread at version
20009         GLIBC_PRIVATE.
20010         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
20011         instead of pread.
20012         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
20013         variable.
20014
20015         [BZ #18522]
20016         * misc/efgcvt_r.c
20017         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
20018         (cvt_symbol): Use weak_alias instead of strong_alias.
20019         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
20020         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
20021         Remove variable.
20022         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
20023         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
20024
20025         [BZ #18520]
20026         * inet/herrno.c (h_errno): Rename to __h_errno.
20027         (__libc_h_errno): Define as alias of __h_errno not h_errno.
20028         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
20029         to __h_errno instead of h_errno.
20030         * nptl/herrno.c (h_errno): Rename to __h_errno.
20031         (__h_errno_location): Refer to __h_errno not h_errno.
20032         * resolv/Versions (h_errno): Rename to __h_errno.
20033         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
20034         Remove variable.
20035         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
20036
20037 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
20038
20039         * configure.ac: More strict check for AVX512 assembler support.
20040         * configure: Regenerated.
20041
20042         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
20043         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
20044         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
20045         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
20046         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
20047         * sysdeps/x86_64/fpu/Versions: New versions added.
20048         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20049         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
20050         Added build of SSE, AVX2 and AVX512 IFUNC versions.
20051         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
20052         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
20053         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
20054         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
20055         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
20056         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
20057         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
20058         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
20059         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
20060         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
20061         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
20062         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
20063         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
20064         test.
20065         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
20066         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
20067         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
20068         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
20069         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20070         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
20071         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
20072         * NEWS: Mention addition of x86_64 vector sin.
20073
20074 2015-06-11  Florian Weimer  <fweimer@redhat.com>
20075
20076         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
20077         comment.
20078
20079 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
20080
20081         [BZ #18479]
20082         * nptl/pt-interp.c: New file.
20083         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
20084         Add pt-interp.
20085         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
20086         $(common-objpfx)runtime-linker.h.
20087
20088 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
20089
20090         * Makeconfig (+interp): Remove unused variable.
20091         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
20092         only.  Depend on $(common-objpfx)runtime-linker.h instead of
20093         $(elf-objpfx)runtime-linker.h.
20094         ($(elf-objpfx)runtime-linker.h): Rename to
20095         $(common-objpfx)runtime-linker.h and move ...
20096         * Makerules [$(build-shared) = yes]: ... here.
20097         * elf/interp.c: Include <runtime-linker.h> instead of
20098         <elf/runtime-linker.h>.
20099
20100 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20101
20102         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
20103         (__gettimeofday_syscall): Remove vsyscall fallback.
20104         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
20105         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
20106         Add syscall fallback function.
20107         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
20108         if vDSO is not present.
20109         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
20110         fallback function.
20111         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
20112         present.
20113         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
20114         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
20115
20116 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
20117
20118         [BZ #18497]
20119         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
20120         of wcscmp.
20121         (wcscmp): Define as weak alias of WCSCMP.
20122         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
20123         wcscoll.
20124         (USE_HIDDEN_DEF): Define.
20125         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
20126         __wcscoll.  Don't use libc_hidden_weak.
20127         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
20128         wcscmp.
20129         * sysdeps/i386/i686/multiarch/wcscmp-c.c
20130         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
20131         __GI_wcscmp.
20132         (weak_alias): Undefine and redefine.
20133         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
20134         __wcscmp and define as weak alias of __wcscmp.
20135         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
20136         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
20137         (__wcscoll): Likewise.
20138         (wcscmp): Don't use libc_hidden_proto.
20139         (wcscoll): Likewise.
20140         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
20141         wcscoll.
20142         * posix/regexec.c (check_node_accept_bytes): Likewise.
20143         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
20144         variable.
20145         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
20146         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
20147
20148         [BZ #18507]
20149         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
20150         __fstatvfs and define as weak alias of __fstatvfs.  Use
20151         libc_hidden_weak.
20152         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
20153         and define as weak alias of __statvfs.  Use libc_hidden_weak.
20154         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
20155         Define as alias of __fstatvfs, not fstatvfs.
20156         (fstatvfs64): Likewise.
20157         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
20158         Define as alias of __statvfs, not statvfs.
20159         (statvfs64): Likewise.
20160         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
20161         Remove variable.
20162
20163 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20164
20165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20166         (HAVE_GETCPU_VSYSCALL): Define.
20167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
20168         (HAVE_GETCPU_VSYSCALL): Likewise.
20169         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
20170         * sysdeps/unix/sysv/linux/sched_getcpu.c
20171         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
20172         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
20173         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
20174         prototype.
20175         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20176         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
20177         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
20178         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
20179         Define.
20180         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
20181         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20182         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
20183         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20184
20185 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
20186
20187         * sysdeps/x86_64/fpu/Makefile: New file.
20188         * sysdeps/x86_64/fpu/Versions: New file.
20189         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
20190         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
20191         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
20192         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
20193         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
20194         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
20195         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
20196         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
20197         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
20198         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
20199         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
20200         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
20201         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
20202         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
20203         Added build of SSE, AVX2 and AVX512 IFUNC versions.
20204         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
20205         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
20206         * sysdeps/x86_64/configure.ac: Options for libmvec build.
20207         * sysdeps/x86_64/configure: Regenerated.
20208         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
20209         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
20210         * manual/install.texi (Configuring and compiling): Document
20211         --disable-mathvec.
20212         * INSTALL: Regenerated.
20213         * NEWS: Mention addition of libmvec and x86_64 vector cos.
20214
20215         * math/Makefile: Added rules for vector tests.
20216         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
20217         declaration under condition.
20218         * math/test-double-vlen2.h: New file.
20219         * math/test-double-vlen4.h: New file.
20220         * math/test-double-vlen8.h: New file.
20221         * math/test-vec-loop.h: Added initialization macro.
20222         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
20223         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
20224         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
20225         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
20226         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
20227         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
20228         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
20229         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
20230         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
20231         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
20232         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
20233
20234         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
20235         * sysdeps/x86_64/fpu/Versions: New versions added.
20236         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
20237         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
20238         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
20239         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
20240         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
20241         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
20242         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
20243         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
20244         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
20245         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
20246         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
20247         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
20248         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
20249         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
20250         Added build of SSE, AVX2 and AVX512 IFUNC versions.
20251         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
20252         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
20253         * NEWS: Mention addition of x86_64 vector cosf.
20254
20255         * math/Makefile: Added CFLAGS for new tests.
20256         * math/test-float-vlen16.h: New file.
20257         * math/test-float-vlen4.h: New file.
20258         * math/test-float-vlen8.h: New file.
20259         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
20260         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
20261         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20262         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
20263         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
20264         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
20265         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
20266         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
20267         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
20268         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
20269         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
20270
20271 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
20272
20273         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
20274         * locale/programs/ld-ctype.c: Likewise.
20275
20276 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
20277
20278         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
20279         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
20280         bit_ZMM16_31_state): New macro.
20281         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20282         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
20283
20284 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
20285
20286         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
20287
20288 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
20289
20290         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
20291
20292 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
20293
20294         [BZ #18498]
20295         * libio/memstream.c (open_memstream): Rename to __open_memstream
20296         and define as weak alias of __open_memstream.
20297         * include/stdio.h (__open_memstream): Declare.  Use
20298         libc_hidden_proto.
20299         (open_memstream): Don't use libc_hidden_proto.
20300         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
20301         open_memstream.
20302         * posix/getopt.c (_getopt_internal_r): Likewise.
20303         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
20304         variable.
20305         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
20306         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
20307         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
20308
20309         [BZ #18496]
20310         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
20311         instead of wcrtomb.
20312
20313         [BZ #18483]
20314         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
20315         [__USE_XOPEN2K8].  Remove redundant #endif.
20316         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
20317         Remove redundant #if.
20318         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
20319         Remove variable.
20320         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
20321         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
20322
20323         [BZ #18495]
20324         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
20325         (__iswlower): Likewise.
20326         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
20327         (__iswlower): Likewise.
20328         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
20329         instead of towlower.
20330         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
20331         instead of iswlower.  Call __towupper instead of towupper.
20332         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
20333         instead of iswalnum.
20334
20335 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20336
20337         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
20338         errors to stderr.
20339
20340 2015-06-05  Florian Weimer  <fweimer@redhat.com>
20341
20342         [BZ #15661]
20343         [BZ #17322]
20344         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
20345         Check for overflow properly.  Check for O_APPEND.  Ignore large
20346         file system block sizes.  Add comments about problems.
20347         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
20348         * manual/filesys.texi (Storage Allocation): New node.
20349
20350 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20351
20352         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
20353         cancellable syscalls.
20354         (SYS_ify): Add guard to no redefine it.
20355         (INLINE_SYSCALL): Likewise.
20356         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
20357         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
20358         SYSCALL_CANCEL instead.
20359         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
20360         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
20361         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
20362         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
20363         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
20364         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
20365         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
20366         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
20367         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20368         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20369         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
20370         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
20371         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
20372         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
20373         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
20374         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
20375         Likewise.
20376         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
20377         (__libc_pread64): Likewise.
20378         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
20379         (__libc_preadv): Likewise.
20380         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
20381         (__libc_readv64): Likewise.
20382         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
20383         (__libc_pwrite): Likewise.
20384         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
20385         (__libc_pwrite64): Likewise.
20386         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
20387         (__libc_pwritev): Likewise.
20388         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
20389         (__libc_pwritev64): Likewise.
20390         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
20391         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
20392         (sync_file_range): Likewise.
20393         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
20394         Likewise.
20395         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
20396         Likewise.
20397         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
20398         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
20399         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
20400         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
20401         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
20402         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
20403         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20404         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
20405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
20406         Likewise.
20407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
20408         (__libc_read64): Likewise.
20409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
20410         Likewise.
20411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
20412         Likewise.
20413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
20414         Likewise.
20415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
20416         Likewise.
20417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
20418         (__libc_pread64): Likewise.
20419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
20420         Likewise.
20421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
20422         (__libc_pwrite64): Likewise.
20423         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
20424         (sync_file_range): Likewise.
20425         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
20426         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
20427         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
20428         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
20429         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
20430         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
20431         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
20432         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
20433         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
20434         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
20435         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
20436         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
20437         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
20438         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
20439         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
20440         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
20441         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
20442         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
20443         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
20444         Likewise.
20445         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
20446         Likewise.
20447         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
20448         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
20449         Likewise.
20450         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
20451         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
20452         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
20453         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
20454         Likewise.
20455         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
20456         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
20457         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
20458         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
20459         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
20460
20461 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
20462
20463         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
20464         Include dl-vdso.
20465         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
20466         Use VDSO routines for gettimeofday, clock_gettime if
20467         available.
20468         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
20469         Declare VDSO symbols.
20470         * sysdeps/unix/sysv/linux/arm/sysdep.h:
20471         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
20472         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
20473         * sysdeps/unix/sysv/linux/arm/Versions: Add
20474         __vdso_clock_gettime.
20475
20476 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20477
20478         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
20479         be an inline implementation regardless of library is built within.
20480         (open_not_cancel_2): Likewise.
20481         (__read_nocancel): Likewise.
20482         (__write_nocancel): Likewise.
20483         (openat_not_cancel): Likewise.
20484         (openat_not_cancel_3): Likewise.
20485         (openat64_not_cancel): Likewise.
20486         (openat64_not_cancel_3): Likewise.
20487         (__close_nocancel): Likewise.
20488         (pause_not_cancel): Likewise.
20489         (nanosleep_not_cancel): Likewise.
20490         (sigsuspend_not_cancel): Likewise.
20491
20492 2015-06-04  Torvald Riegel  <triegel@redhat.com>
20493
20494         [BZ #14958]
20495         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
20496         wake-up.
20497         (__pthread_rwlock_rdlock_slow): Likewise.
20498         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
20499         Likewise.
20500         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
20501         Likewise.
20502         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
20503         * nptl/tst-rwlock16.c: New file.
20504         * nptl/Makefile (tests): Add new test.
20505
20506 2015-06-04  Torvald Riegel  <triegel@redhat.com>
20507
20508         [BZ #18324]
20509         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
20510         missing wake-up of readers.
20511         * nptl/tst-rwlock15.c: New file.
20512         * nptl/Makefile (tests): Add new test.
20513
20514 2015-06-03  Roland McGrath  <roland@hack.frob.com>
20515
20516         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
20517         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
20518         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
20519         and __nacl_supply_interface_rtld.
20520         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
20521         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
20522         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
20523         Add __nacl_supply_interface_rtld.
20524         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
20525
20526 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
20527
20528         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
20529         isfinite.
20530         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
20531         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
20532
20533 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
20534
20535         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
20536         __signbit* with standard C99 macros.
20537         * math/e_exp10l.c: Likewise.
20538         * math/e_exp2l.c: Likewise.
20539         * math/e_scalb.c: Likewise.
20540         * math/e_scalbf.c: Likewise.
20541         * math/e_scalbl.c: Likewise.
20542         * math/s_ldexp.c: Likewise.
20543         * math/s_ldexpf.c: Likewise.
20544         * math/s_ldexpl.c: Likewise.
20545         * math/w_atan2.c: Likewise.
20546         * math/w_atan2f.c: Likewise.
20547         * math/w_atan2l.c: Likewise.
20548         * math/w_cosh.c: Likewise.
20549         * math/w_coshf.c: Likewise.
20550         * math/w_coshl.c: Likewise.
20551         * math/w_exp10.c: Likewise.
20552         * math/w_exp10f.c: Likewise.
20553         * math/w_exp10l.c: Likewise.
20554         * math/w_exp2.c: Likewise.
20555         * math/w_exp2f.c: Likewise.
20556         * math/w_exp2l.c: Likewise.
20557         * math/w_fmod.c: Likewise.
20558         * math/w_fmodf.c: Likewise.
20559         * math/w_fmodl.c: Likewise.
20560         * math/w_hypot.c: Likewise.
20561         * math/w_hypotf.c: Likewise.
20562         * math/w_hypotl.c: Likewise.
20563         * math/w_jnl.c: Likewise.
20564         * math/w_lgamma.c: Likewise.
20565         * math/w_lgamma_r.c: Likewise.
20566         * math/w_lgammaf.c: Likewise.
20567         * math/w_lgammaf_r.c: Likewise.
20568         * math/w_lgammal.c: Likewise.
20569         * math/w_lgammal_r.c: Likewise.
20570         * math/w_pow.c: Likewise.
20571         * math/w_powf.c: Likewise.
20572         * math/w_powl.c: Likewise.
20573         * math/w_remainder.c: Likewise.
20574         * math/w_remainderf.c: Likewise.
20575         * math/w_remainderl.c: Likewise.
20576         * math/w_scalb.c: Likewise.
20577         * math/w_scalbf.c: Likewise.
20578         * math/w_scalbl.c: Likewise.
20579         * math/w_scalbln.c: Likewise.
20580         * math/w_scalblnf.c: Likewise.
20581         * math/w_scalblnl.c: Likewise.
20582         * math/w_sinh.c: Likewise.
20583         * math/w_sinhf.c: Likewise.
20584         * math/w_sinhl.c: Likewise.
20585         * math/w_tgamma.c: Likewise.
20586         * math/w_tgammaf.c: Likewise.
20587         * math/w_tgammal.c: Likewise.
20588         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20589         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
20590         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
20591         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
20592         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
20593         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20594         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20595         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
20596         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
20597         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
20598         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20599         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
20600         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
20601         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
20602         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
20603         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
20604         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
20605         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
20606         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20607         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20608         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20609         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
20610         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
20611         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20612         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
20613         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
20614         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
20615         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
20616         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
20617         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20618         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
20619         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
20620         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
20621         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
20622         * stdio-common/printf_fp.c: Likewise.
20623         * stdio-common/printf_fphex.c: Likewise.
20624         * stdio-common/printf_size.c: Likewise.
20625
20626 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
20627
20628         [BZ #18470]
20629         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
20630         strnlen.
20631         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
20632         Remove variable.
20633         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
20634         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
20635         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
20636         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
20637         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
20638         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
20639         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
20640         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
20641         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
20642         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
20643
20644         [BZ #18468]
20645         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
20646         weak alias of __wmemchr.  Use libc_hidden_weak.
20647         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
20648         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
20649         instead of wmemchr.
20650
20651 2015-06-02  Roland McGrath  <roland@hack.frob.com>
20652
20653         [BZ #18383]
20654         * elf/tst-tlsalign-extern.c: New file.
20655         * elf/tst-tlsalign-extern-static.c: New file.
20656         * elf/tst-tlsalign-vars.c: New file.
20657         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
20658         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
20659         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
20660         ($(objpfx)tst-tlsalign-extern-static): Likewise.
20661         (test-xfail-tst-tlsalign-extern-static): New variable.
20662
20663 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
20664
20665         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
20666         Use variable name _sc_err instead of err.
20667         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
20668         instead of ret.
20669         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
20670         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
20671         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
20672         (INLINE_SYSCALL): Likewise.
20673
20674         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
20675         * include/string.h (__strnlen): Use libc_hidden_proto.
20676         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
20677         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
20678         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
20679         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
20680         (libc_hidden_def): Undefine and redefine.
20681         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
20682         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
20683         __GI_strnlen.
20684         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
20685         libc_hidden_def.
20686         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
20687
20688         [BZ #18469]
20689         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
20690         weak alias of __towlower.  Use libc_hidden_weak.
20691         (towupper): Rename to __towupper and define as weak alias of
20692         __towupper.  Use libc_hidden_weak.
20693         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
20694         (__towupper): Likewise.
20695         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
20696         __towlower instead of towlower.
20697
20698 2015-06-02  Roland McGrath  <roland@hack.frob.com>
20699
20700         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
20701         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
20702
20703 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20704
20705         * sysdeps/aarch64/libm-test-ulps: Update.
20706
20707 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20708
20709         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
20710         Define.
20711         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
20712         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
20713         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
20714         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
20715         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
20716         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
20717         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
20718
20719 2015-06-01  Martin Sebor  <msebor@redhat.com>
20720
20721         [BZ #18116]
20722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
20723         (__setcontext): Use extended four-operand version of mtsf whenever
20724         possible.
20725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
20726         (__novec_swapcontext): Likewise.
20727
20728 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20729
20730         * benchtests/scripts/compare_bench.py: New file.
20731         * benchtests/scripts/import_bench.py (mean): New function.
20732         (split_list): Likewise.
20733         (do_for_all_timings): Likewise.
20734         (compress_timings): Likewise.
20735
20736         * benchtests/scripts/import_bench.py: New file.
20737         * benchtests/scripts/validate_benchout.py: Import import_bench
20738         instead of jsonschema.
20739         (validate_bench): Remove function.
20740         (main): Use import_bench.
20741
20742 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
20743
20744         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
20745         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
20746
20747 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20748
20749         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20750
20751 2015-05-28  Roland McGrath  <roland@hack.frob.com>
20752
20753         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
20754         set THREAD_SELF->tid to a magic value and futex-wake it.
20755         Pass its address to the thread_exit system call.
20756         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
20757         bit is clear.
20758         * sysdeps/nacl/lowlevellock.h: New file.
20759         * sysdeps/nacl/lll_timedwait_tid.c: New file.
20760
20761         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
20762         Add TIMEOUT to current time, don't subtract it.
20763
20764 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
20765
20766         [BZ #2981]
20767         [BZ #18422]
20768         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
20769         ($(objpfx)tst-audit2.out): Also depend on
20770         $(objpfx)tst-auditmod9b.so.
20771         * elf/tst-audit2.c: Include <dlfcn.h>.
20772         (calloc_called): New.
20773         (calloc): Allow to be called more than once.
20774         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
20775
20776 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
20777
20778         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
20779         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
20780
20781 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
20782
20783         * stdlib/monetary.h: Fix comment.
20784
20785 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
20786
20787         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
20788         Avoid using variables in #defines that might cause shadowing.
20789         (INTERNAL_VSYSCALL_CALL): Likewise.
20790
20791 2015-05-26  Roland McGrath  <roland@hack.frob.com>
20792
20793         * sysdeps/nacl/lll_timedlock_wait.c: New file.
20794
20795         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
20796         * nptl/lll_timedlock_wait.c: ... to this new file.
20797         * nptl/Makefile (libpthread-routines): Add it.
20798         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
20799         * nptl/lll_timedwait_tid.c: ... to this new file.
20800         * nptl/Makefile (libpthread-routines): Add it.
20801         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
20802         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
20803         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
20804         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
20805         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
20806         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
20807         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
20808         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
20809         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
20810         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
20811
20812 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20813
20814         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
20815         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
20816         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
20817         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
20818         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
20819         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
20820         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
20821         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20822         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
20823         * sysdeps/unix/sysv/linux/tile/sysdep.h
20824         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
20825         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
20826         using vDSO syscall macro.
20827
20828 2015-05-26  Andriy Rysin  <arysin@gmail.com>
20829
20830         [BZ #17293]
20831         * uk_UA: Fix sorting order for Ukrainian locale
20832
20833 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
20834
20835         * stdlib/monetary.h: Fix comment.
20836
20837 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20838
20839         [BZ #18234]
20840         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
20841         st_mtim and st_ctim members.
20842         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
20843         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
20844         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
20845         (struct stat64): Likewise.
20846         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
20847         (struct stat64): Likewise.
20848         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
20849         (struct stat64): Likewise.
20850
20851 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20852
20853         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
20854         Define and include sysdep-vdso.h.
20855         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
20856         Likewise.
20857         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
20858         Likewise.
20859         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
20860         Define with VDSO_SYMBOL and use PTR_MANGLE.
20861         (__vdso_clock_gettime): Likewise.
20862         (__vdso_clock_getres): Likewise.
20863         (_libc_vdso_platform_setup): Likewise.
20864         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20865         Likewise.
20866         (_libc_vdso_platform_setup): Likewise.
20867         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
20868         Likewise.
20869         (__vdso_clock_gettime): Likewise.
20870         (__vdso_clock_getres): Likewise.
20871         (__vdso_get_tbfreq): Likewise.
20872         (__vdso_getcpu): Likewise.
20873         (__vdso_time): Likewise.
20874         (__vdso_sigtramp_rt64): Likewise.
20875         (__vdso_signtramp32): Likewise.
20876         (__vdso_sigtramp_rt32): Likewise.
20877         (_libc_vdso_platform_setup): Likewise.
20878         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
20879         Likewise.
20880         (__vdso_clock_gettime): Likewise.
20881         (__vdso_clock_getres): Likewise.
20882         (_libc_vdso_platform_setup): Likewise.
20883         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
20884         Likewise.
20885         (__vdso_clock_gettime): Likewise.
20886         (_libc_vdso_platform_setup): Likewise.
20887         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
20888         Likewise.
20889         (__vdso_getcpu): Likewise.
20890         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
20891         Use VDSO_SYMBOL macro to define.
20892         (__vdso_clock_gettime): Likewise.
20893         (__vdso_clock_getres): Likewise.
20894         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
20895         Likewise.
20896         (__vdso_clock_gettime): Likewise.
20897         (__vdso_clock_getres): Likewise.
20898         (__vdso_get_tbfreq): Likewise.
20899         (__vdso_getcpu): Likewise.
20900         (__vdso_time): Likewise.
20901         (__vdso_sigtramp_rt64): Likewise.
20902         (__vdso_signtramp32): Likewise.
20903         (__vdso_sigtramp_rt32): Likewise.
20904         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
20905         Likewise.
20906         (__vdso_clock_gettime): Likewise.
20907         (__vdso_clock_getres): Likewise.
20908         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
20909         Likewise.
20910         (__vdso_clock_gettime): Likewise.
20911         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20912         Likewise.
20913         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
20914         macro.
20915         (INTERNAL_VSYSCALL): Likewise.
20916         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
20917         Remove macro.
20918         (INTERNAL_VSYSCALL): Likewise.
20919         (INTERNAL_VSYSCALL_NCS): Likewise.
20920         (INTERNAL_VSYSCALL_CALL): New macro.
20921         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
20922         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
20923         Likewise.
20924         (INTERNAL_VSYSCALL): Likewise.
20925         (INTERNAL_VSYSCALL_NCS): Likewise.
20926         (INTERNAL_VSYSCALL_CALL): New macro.
20927         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
20928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20929         (INLINE_VSYSCALL): Remove macro.
20930         (INTERNAL_VSYSCALL): Remove macro.
20931         (INTERNAL_VSYSCALL_NCS): Remove macro.
20932         (INTERNAL_VSYSCALL_CALL): New macro.
20933         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
20934         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
20935         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
20936         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
20937         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
20938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
20939         (INLINE_VSYSCALL): Remove macro.
20940         (INTERNAL_VSYSCALL): Likewise.
20941         (INTERNAL_VSYSCALL_NCS): Likewise.
20942         (INTERNAL_VSYSCALL_CALL): New macro.
20943         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
20944         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
20945         PTR_DEMANGLE on vDSO pointer.
20946         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
20947         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
20948         macro.
20949         (INTERNAL_SYSCALL): Likewise.
20950         (INTERNAL_VSYSCALL_NCS): Remove macro.
20951         (INTERNAL_VSYSCALL_CALL): New macro.
20952         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
20953         Remove macro.
20954         (INTERNAL_VSYSCALL): Likewise.
20955         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
20956         sysdep-vdso.h instead of libc-vdso.h.
20957         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
20958         definition.
20959         (INLINE_VSYSCALL): Likewise.
20960         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
20961         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
20962         definition.
20963         (INLINE_VSYSCALL): Likewise.
20964         (INTERNAL_VSYSCALL): Likewise.
20965         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
20966         * sysdeps/unix/sysv/linux/timespec_get.c
20967         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
20968         (timespec_get): Use ANSI prototype.
20969         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
20970         and definition for Linux.
20971
20972 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
20973
20974         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
20975         * include/libc-symbols.h: libmvec_hidden_* macro series added.
20976
20977 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
20978
20979         [BZ #2981]
20980         [BZ #18410]
20981         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
20982         for missing DT_PLTRELSZ.
20983
20984 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20985
20986         Remove obsolete aliases that broke 'locale -a'
20987         [BZ #18412]
20988         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
20989         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
20990         breaking some applications that use 'locale -a' output.
20991         Change the encoding of this file from Latin-1 to ASCII to avoid
20992         other potential problems with people grepping this file.
20993
20994 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20995
20996         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
20997         -fasynchronous-unwind-tables.
20998         (CFLAGS-sendto.c): Likewise.
20999         (CFLAGS-sendmsg.c): Likewise.
21000         (CFLAGS-connect.c): Likewise.
21001         (CFLAGS-recvmsg.c): Likewise.
21002         (CFLAGS-recvfrom.c): Likewise.
21003         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
21004         (SOCKETCALL): New macro: non-cancellable socketcall.
21005         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
21006         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
21007         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
21008         * sysdeps/unix/sysv/linux/accept.c: New file.
21009         * sysdeps/unix/sysv/linux/bind.c: Likewise.
21010         * sysdeps/unix/sysv/linux/connect.c: Likewise.
21011         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
21012         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
21013         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
21014         * sysdeps/unix/sysv/linux/listen.c: Likewise.
21015         * sysdeps/unix/sysv/linux/recv.c: Likewise.
21016         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
21017         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
21018         * sysdeps/unix/sysv/linux/send.c: Likewise.
21019         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
21020         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
21021         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
21022         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
21023         * sysdeps/unix/sysv/linux/socket.c: Likewise.
21024         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
21025         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
21026         prototype.
21027         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
21028         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
21029         instead of __internal_xxx function.
21030         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
21031         prototype.
21032         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
21033         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
21034         instead of __internal_xxx function.
21035         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
21036         prototype.
21037         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
21038         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
21039         instead of __internal_xxx function.
21040         * sysdeps/unix/sysv/linux/accept.S: Remove file.
21041         * sysdeps/unix/sysv/linux/bind.S: Likewise.
21042         * sysdeps/unix/sysv/linux/connect.S: Likewise.
21043         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
21044         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
21045         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
21046         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
21047         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
21048         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
21049         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
21050         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
21051         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21052         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
21053         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
21054         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
21055         * sysdeps/unix/sysv/linux/listen.S: Likewise.
21056         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
21057         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
21058         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
21059         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
21060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
21061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
21062         * sysdeps/unix/sysv/linux/recv.S: Likewise.
21063         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
21064         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
21065         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
21066         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
21067         * sysdeps/unix/sysv/linux/send.S: Likewise.
21068         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
21069         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
21070         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
21071         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
21072         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
21073         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
21074         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
21075         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
21076         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
21077         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
21078         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
21079         socketcall is implemented in GLIBC.
21080
21081 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
21082
21083         * soft-fp/fmadf4.c: Include <libc-internal.h>.
21084         (__fma): Ignore uninitialized warnings around packing.
21085         * soft-fp/fmasf4.c: Include <libc-internal.h>.
21086         (__fmaf): Ignore uninitialized warnings around packing.
21087         * soft-fp/fmatf4.c: Include <libc-internal.h>.
21088         (__fmal): Ignore uninitialized warnings around packing.
21089
21090         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
21091         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
21092         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
21093         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
21094
21095         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
21096         switch statement into default case.
21097         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
21098
21099         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
21100         a conditional in forcing "inexact".
21101         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
21102         Likewise.
21103
21104 2015-05-22  Roland McGrath  <roland@hack.frob.com>
21105
21106         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
21107         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
21108         for each INTERNAL_SYSCALL use.
21109
21110 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
21111
21112         [BZ #438]
21113         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
21114         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
21115         variable.
21116
21117         [BZ #18444]
21118         * string/basename.c (basename): Rename to __basename and define as
21119         weak alias of __basename.  Use libc_hidden_weak.
21120         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
21121         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
21122         __basename instead of basename.
21123         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
21124         Remove variable.
21125         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
21126
21127 2015-05-18  Florian Weimer  <fweimer@redhat.com>
21128
21129         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
21130         (_IO_JUMPS_FILE_plus): New.
21131         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
21132         _IO_CAST_FIELD_ACCESS.
21133         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
21134         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
21135         * libio/freopen.c (freopen): Likewise.
21136         * libio/freopen64.c (freopen64): Likewise.
21137         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
21138         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
21139         * libio/iofwide.c (_IO_fwide): Likewise.
21140         * libio/memstream.c (open_memstream): Likewise.
21141         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21142         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
21143         * libio/oldiopopen.c (_IO_old_popen): Likewise.
21144
21145 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
21146
21147         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
21148         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
21149         NADJ.
21150         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
21151         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
21152         NADJ.
21153         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
21154         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
21155         NADJ.
21156
21157         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
21158         (p == 4) case.
21159
21160         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
21161         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
21162         Remove variable.
21163         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
21164         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
21165         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
21166
21167 2015-05-21  Florian Weimer  <fweimer@redhat.com>
21168
21169         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
21170         Adjust jump table label generation macros.
21171
21172 2015-05-21  Florian Weimer  <fweimer@redhat.com>
21173
21174         * stdio-common/vfprintf.c (vfprintf): Move local variables
21175         args_malloced, specs, specs_malloced, and the code after
21176         do_positional to the printf_positional function.
21177         (printf_positional): New function.
21178
21179 2015-05-21  Florian Weimer  <fweimer@redhat.com>
21180
21181         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
21182         function.
21183         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
21184         STEP4_TABLE, process_arg): Move macro definitions
21185         out of the vfprintf function.  (Cosmetic change only.)
21186
21187 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
21188
21189         * benchtests/Makefile (stdio-common-bench): Define.
21190         (benchset): Add stdio-common-bench.
21191         * sprintf-inputs: New file.
21192         * sprintf-source.c: New file.
21193
21194 2015-05-21  Andreas Schwab  <schwab@suse.de>
21195
21196         [BZ #13028]
21197         [BZ #17053]
21198         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
21199         of struct __res_state.
21200         * resolv/res_send.c (__libc_res_nsend): Likewise.
21201         (get_nsaddr): New function.
21202         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
21203         statp directly.
21204
21205 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
21206
21207         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
21208         -D_POSIX_C_SOURCE=199506L.
21209
21210         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
21211
21212         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
21213         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
21214         Do not mention otherwise.
21215         [POSIX] (_XOPEN_VERSION): Do not expect.
21216         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
21217         [POSIX] (_POSIX2_C_BIND): Likewise.
21218         [POSIX] (_POSIX2_VERSION): Likewise.
21219         [POSIX] (_XOPEN_XPG2): Likewise.
21220         [POSIX] (_XOPEN_XPG3): Likewise.
21221         [POSIX] (_XOPEN_XPG4): Likewise.
21222         [POSIX] (_XOPEN_UNIX): Likewise.
21223         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
21224         [POSIX] (_POSIX_BARRIERS): Likewise.
21225         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
21226         [POSIX] (_POSIX_CPUTIME): Likewise.
21227         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
21228         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
21229         [POSIX] (_POSIX_SHELL): Likewise.
21230         [POSIX] (_POSIX_SPAWN): Likewise.
21231         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
21232         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
21233         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
21234         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
21235         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
21236         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
21237         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
21238         [POSIX] (_XBS5_LP64_OFF64): Likewise.
21239         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
21240         [POSIX] (_POSIX_TIMEOUTS): Likewise.
21241         [POSIX] (_POSIX2_PBS): Likewise.
21242         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
21243         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
21244         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
21245         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
21246         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
21247         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
21248         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
21249         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
21250         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
21251         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
21252         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
21253         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
21254         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
21255         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
21256         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
21257         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
21258         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
21259         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
21260         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
21261         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
21262         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
21263         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
21264         [POSIX] (_SC_2_C_BIND): Likewise.
21265         [POSIX] (_SC_2_C_VERSION): Likewise.
21266         [POSIX] (_SC_2_PBS): Likewise.
21267         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
21268         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
21269         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
21270         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
21271         [POSIX] (_SC_2_PBS_TRACK): Likewise.
21272         [POSIX] (_SC_ATEXIT_MAX): Likewise.
21273         [POSIX] (_SC_BARRIERS): Likewise.
21274         [POSIX] (_SC_BASE): Likewise.
21275         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
21276         [POSIX] (_SC_DEVICE_IO): Likewise.
21277         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
21278         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
21279         [POSIX] (_SC_FD_MGMT): Likewise.
21280         [POSIX] (_SC_FIFO): Likewise.
21281         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
21282         [POSIX] (_SC_FILE_LOCKING): Likewise.
21283         [POSIX] (_SC_FILE_SYSTEM): Likewise.
21284         [POSIX] (_SC_IOV_MAX): Likewise.
21285         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
21286         [POSIX] (_SC_NETWORKING): Likewise.
21287         [POSIX] (_SC_PAGE_SIZE): Likewise.
21288         [POSIX] (_SC_PASS_MAX): Likewise.
21289         [POSIX] (_SC_PIPE): Likewise.
21290         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
21291         [POSIX] (_SC_REGEXP): Likewise.
21292         [POSIX] (_SC_SHELL): Likewise.
21293         [POSIX] (_SC_SIGNALS): Likewise.
21294         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
21295         [POSIX] (_SC_SPIN_LOCKS): Likewise.
21296         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
21297         [POSIX] (_SC_USER_GROUPS): Likewise.
21298         [POSIX] (_SC_USER_GROUPS_R): Likewise.
21299         [POSIX] (_SC_STREAMS): Likewise.
21300         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
21301         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
21302         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
21303         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
21304         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
21305         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
21306         [POSIX] (_PC_FILESIZEBITS): Likewise.
21307         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
21308         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
21309         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
21310         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
21311         [POSIX] (uid_t): Likewise.
21312         [POSIX] (gid_t): Likewise.
21313         [POSIX] (off_t): Likewise.
21314         [POSIX] (pid_t): Likewise.
21315         [POSIX] (cuserid): Allow.
21316         (_SC_2_CHAR_TERM): Require constant.
21317         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
21318         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
21319         variable.
21320
21321 2015-05-20  Roland McGrath  <roland@hack.frob.com>
21322
21323         * sysdeps/nacl/pthread-pids.h: New file.
21324         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
21325         (create_thread): Use __nacl_get_tid to initialize PD->tid.
21326
21327         * nptl/pthread-pids.h: New file.
21328         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
21329         * nptl/nptl-init.c: Include <pthread-pids.h>.
21330         (__pthread_initialize_minimal_internal):
21331         Call __pthread_initialize_pids instead of set_tid_address syscall.
21332
21333         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
21334         * sysdeps/posix/usleep.c: ... here.
21335
21336 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21337
21338         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
21339         call_pselect6 object.
21340         [$(subdir) = io]: Remove call_sync_file_range object.
21341         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
21342         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
21343         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
21344         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
21345
21346 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
21347
21348         * math/s_cproj.c: Add include "math_private.h".
21349         * math/s_cprojf.c: Likewise.
21350         * math/s_cprojl.c: Likewise.
21351
21352 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
21353
21354         [BZ #18244]
21355         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
21356         high mantissa bit when testing whether P is a NaN.
21357         * math/libm-test.inc (remainder_test_data): Add more tests.
21358         (remquo_test_data): Likewise.
21359
21360         [BZ #18049]
21361         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
21362         below -32, return the argument, with underflow if subnormal.
21363         * math/auto-libm-test-in: Add more tests of atanh.
21364         * math/auto-libm-test-out: Regenerated.
21365
21366 2015-05-19  Roland McGrath  <roland@hack.frob.com>
21367
21368         [BZ #18434]
21369         * nptl/tst-sem15.c: New file.
21370         * nptl/Makefile (tests): Add it.
21371         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
21372         s/<</>>/ to fix typo in EOVERFLOW check.
21373         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
21374
21375 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21376
21377         * manual/strings.texi (envz_remove): Fix typo in safety
21378         annotations.
21379
21380 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21381             Steve Ellcey  <sellcey@imgtec.com>
21382
21383         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
21384         in order to avoid strict alias warnings.
21385         (iruserok_af): Ditto for ra.
21386
21387 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
21388
21389         [BZ #17581]
21390         * malloc/hooks.c
21391         (magicbyte): Convert to a function and avoid returning 0x01.
21392         (mem2mem_check): Avoid using a length byte equal to the magic byte.
21393         (mem2chunk_check): Fix unsigned comparisons to zero.
21394         Hoist defs of sz and magic.
21395
21396 2015-05-19  Richard Henderson  <rth@redhat.com>
21397
21398         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
21399
21400         * sysdeps/alpha/fpu/libm-test-ulps: Update.
21401
21402 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21403
21404         [BZ #16159]
21405         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
21406         * malloc/arena.c (arena_lock): Check if arena is corrupt.
21407         (reused_arena): Find a non-corrupt arena.
21408         (heap_trim): Pass arena to unlink.
21409         * malloc/hooks.c (malloc_check_get_size): Pass arena to
21410         malloc_printerr.
21411         (top_check): Likewise.
21412         (free_check): Likewise.
21413         (realloc_check): Likewise.
21414         * malloc/malloc.c (malloc_printerr): Add arena argument.
21415         (unlink): Likewise.
21416         (munmap_chunk): Adjust.
21417         (ARENA_CORRUPTION_BIT): New macro.
21418         (arena_is_corrupt): Likewise.
21419         (set_arena_corrupt): Likewise.
21420         (sysmalloc): Use mmap if there are no usable arenas.
21421         (_int_malloc): Likewise.
21422         (__libc_malloc): Don't fail if arena_get returns NULL.
21423         (_mid_memalign): Likewise.
21424         (__libc_calloc): Likewise.
21425         (__libc_realloc): Adjust for additional argument to
21426         malloc_printerr.
21427         (_int_free): Likewise.
21428         (malloc_consolidate): Likewise.
21429         (_int_realloc): Likewise.
21430         (_int_memalign): Don't touch corrupt arenas.
21431         * malloc/tst-malloc-backtrace.c: New test case.
21432
21433         * Makefile (summarize-tests): Fix return value on success.
21434
21435         * manual/string.texi (Envz Functions): Add envz_remove.
21436
21437 2015-05-18  Roland McGrath  <roland@hack.frob.com>
21438
21439         * sysdeps/posix/opendir.c: Include <stdbool.h>.
21440         (invalid_name): New function, broken out of ...
21441         (__opendirat): ... here.  Call it.
21442         (need_isdir_precheck): New function, broken out of ...
21443         (__opendirat): ... here.  Call it.
21444         Use __fxstatat64, not __xstatat64.
21445         (opendir_oflags): New function, broken out of ...
21446         (__opendirat): ... here.  Call it.
21447         (opendir_tail): New function, broken out of ...
21448         (__opendirat): ... here.  Call it.
21449         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
21450         opendir_tail, rather than punting to __opendirat.
21451         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
21452
21453 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21454
21455         * .gitignore: Ignore generated *.pyc.
21456
21457 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
21458
21459         * include/stdio.h: Define __need_wint_t.
21460         * test-skeleton.c: Avoid `for' loop initial declaration.
21461         * nptl/tst-initializers1.c: Use test-skeleton.c.
21462
21463 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21464
21465         [BZ #18418]
21466         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
21467
21468 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
21469
21470         [BZ #16352]
21471         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
21472         (__ieee754_atanh): Force underflow exception for results with
21473         small absolute value.
21474         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
21475         (__ieee754_atanhf): Force underflow exception for results with
21476         small absolute value.
21477         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
21478         (__ieee754_atanh): Force underflow exception for results with
21479         small absolute value.
21480         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
21481         (__ieee754_atanhf): Force underflow exception for results with
21482         small absolute value.
21483         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
21484         (__ieee754_atanhl): Force underflow exception for results with
21485         small absolute value.
21486         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
21487         (__ieee754_atanhl): Force underflow exception for results with
21488         small absolute value.
21489         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
21490         (__ieee754_atanhl): Force underflow exception for results with
21491         small absolute value.
21492         * math/auto-libm-test-in: Do not allow missing underflow
21493         exceptions from atanh.
21494         * math/auto-libm-test-out: Regenerated.
21495
21496         [BZ #18221]
21497         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
21498         2**-28 as threshold for returning x or +/- 1/x.
21499         * math/auto-libm-test-in: Add more tests of tan.
21500         * math/auto-libm-test-out: Regenerated.
21501
21502         [BZ #18220]
21503         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
21504         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
21505         * math/auto-libm-test-in: Add another test of lgamma.
21506         * math/auto-libm-test-out: Regenerated.
21507
21508 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
21509
21510         * stdio-common/printf_fp.c (___printf_fp): Use abs.
21511         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
21512         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
21513         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
21514         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
21515         (ADD2A): Use fabs.  (SUB2A): Use fabs.
21516         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
21517         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
21518         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
21519         (log1): Use fabs.  (my_log2): Use fabs.
21520         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
21521         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
21522         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
21523         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
21524         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
21525         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
21526         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
21527         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
21528         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
21529         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
21530         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
21531
21532 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
21533
21534         [BZ #18217]
21535         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
21536         as threshold for returning 1 - x.
21537         * math/auto-libm-test-in: Add more tests of erfc.
21538         * math/auto-libm-test-out: Regenerated.
21539
21540 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
21541
21542         [BZ #18196]
21543         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
21544         threshold for large arguments.
21545         * math/auto-libm-test-in: Add another test of atan.
21546         * math/auto-libm-test-out: Regenerated.
21547
21548         [BZ #16339]
21549         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
21550         (__log1p): Force underflow exception for results with small
21551         absolute value.
21552         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
21553         (__log1pf): Force underflow exception for results with small
21554         absolute value.
21555         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
21556         (__log1p): Force underflow exception for results with small
21557         absolute value.
21558         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
21559         (__log1pf): Force underflow exception for results with small
21560         absolute value.
21561         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
21562         (__log1pl): Force underflow exception for results with small
21563         absolute value.
21564         * math/auto-libm-test-in: Do not allow missing underflow
21565         exceptions from log1p.
21566         * math/auto-libm-test-out: Regenerated.
21567
21568 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
21569             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21570
21571         [BZ #16704]
21572         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
21573
21574 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
21575
21576         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
21577         (libmvec): New variable.
21578         * configure.ac: Added option for mathvec build.
21579         * configure: Regenerated.
21580         * mathvec/Depend: New file.
21581         * mathvec/Makefile: New file.
21582         * shlib-versions: Added libmvec.
21583         * math/Makefile: Added rule for libm.so installation.
21584
21585         * bits/math-vector.h: New file.
21586         * bits/libm-simd-decl-stubs.h: New header.
21587         * math/Makefile (headers): Added new header
21588         libm-simd-decl-stubs.h.
21589         * math/math.h (__MATHCALL_VEC): New macro.
21590
21591         * math/gen-libm-have-vector-test.sh: Script generates series of macros
21592         for conditions in testing functions.
21593         * math/Makefile: Added call of libm-have-vector-test.sh.
21594         * math/libm-test.inc (HAVE_VECTOR): New macros.
21595
21596         * math/libm-test.inc: START refactored.
21597         * math/test-double.c (TEST_MATHVEC): Add define.
21598         * math/test-float.c: Likewise.
21599         * math/test-idouble.c: Likewise.
21600         * math/test-ifloat.c: Likewise.
21601         * math/test-ildoubl.c: Likewise.
21602         * math/test-ldouble.c: Likewise.
21603         * sysdeps/generic/math-tests-arch.h
21604         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
21605         architecture check.
21606
21607         * math/test-double.c (FUNC_TEST): New macro.
21608         * math/test-float.c: Likewise.
21609         * math/test-idouble.c: Likewise.
21610         * math/test-ifloat.c: Likewise.
21611         * math/test-ildoubl.c: Likewise.
21612         * math/test-ldouble.c: Likewise.
21613         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
21614
21615 2015-05-13  Roland McGrath  <roland@hack.frob.com>
21616
21617         * sysdeps/nacl/fdopendir.c: New file.
21618
21619         * dirent/scandir-tail.c: New file.
21620         * dirent/scandir64-tail.c: New file.
21621         * dirent/Makefile (routines): Add them.
21622         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
21623         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
21624         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
21625         [!SCANDIR] (SCANDIR_TAIL): New macro.
21626         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
21627         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
21628         (SCANDIRAT): Macro removed.
21629         (SCANDIR_TAIL): New macro.
21630         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
21631         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
21632         (SCANDIRAT): Just call __opendirat and __scandir_tail.
21633         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
21634         (READDIR): Macro removed.
21635         (SCANDIR_TAIL): New macro.
21636         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
21637         (SCANDIR_TAIL): New macro.
21638
21639         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
21640         * dirent/scandir-cancel.c: ... to this new file.
21641         * dirent/Makefile (routines): Add it.
21642         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
21643         * sysdeps/unix/sysv/linux/i386/scandir64.c
21644         (SKIP_SCANDIR_CANCEL): Macro removed.
21645         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
21646
21647         * dirent/tst-scandir.c: New file.
21648         * dirent/tst-scandir64.c: New file.
21649         * dirent/Makefile (tests): Add them.
21650
21651 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
21652
21653         [BZ #18409]
21654         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
21655
21656 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21657
21658         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
21659         list.
21660
21661 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
21662
21663         * benchtests/bench-strcoll.c: New benchmark.
21664         * benchtests/Makefile: Generate locales and run benchmark.
21665         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
21666         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
21667         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
21668         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
21669         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
21670         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
21671         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
21672         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
21673         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
21674         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
21675         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
21676         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
21677         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
21678         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
21679         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
21680         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
21681         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
21682         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
21683         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
21684         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
21685         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
21686         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
21687         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
21688         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
21689
21690 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
21691
21692         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
21693         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
21694
21695 2015-05-12  Roland McGrath  <roland@hack.frob.com>
21696
21697         * posix/uname-values.h: New file.
21698         * posix/uname.c: Include that instead of <config-name.h>.
21699         * sysdeps/nacl/uname-values.h: New file.
21700         * sysdeps/arm/nacl/uname-values.h: New file.
21701
21702 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
21703
21704         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
21705         splitting into fields.
21706
21707 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
21708
21709         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
21710         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
21711         * locale/localeinfo.h: Add enum collation_encoding_type.
21712         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
21713         * programs/ld-collate.c (collate_output): Add encoding type info.
21714         * string/strcoll_l.c (STRDIFF): New function.
21715         * (STRCOLL): Use STRDIFF to skip over equal prefix.
21716         * wcsmbs/wcscoll_l.c: Define STRDIFF.
21717
21718 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
21719
21720         [BZ #18397]
21721         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
21722         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
21723         <fpu_control.h> instead of <math/fpu_control.c>.
21724         * sysdeps/mips/mips32/fpu/Makefile: New file.
21725
21726 2015-05-11  Andreas Schwab  <schwab@suse.de>
21727
21728         [BZ #18007]
21729         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
21730         nss_endgrent.
21731         (_nss_compat_endgrent): Call nss_endgrent.
21732         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
21733         nss_endpwent.
21734         (_nss_compat_endpwent): Call nss_endpwent.
21735         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
21736         needent, call nss_setspent only if non-zero.
21737         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
21738         (internal_endspent): Don't call nss_endspent.
21739         (_nss_compat_endspent): Call nss_endspent.
21740         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
21741         Remove.  All uses removed.
21742         (internal_setent): Remove parameter stayopen, add parameter
21743         stream.  Use it instead of global variable.
21744         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
21745         (internal_endent, internal_getent): Add parameter stream.  Use it
21746         instead of global variable.
21747         (CONCAT(_nss_files_end,ENTNAME))
21748         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
21749         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
21750         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
21751         uses removed.
21752         (internal_setent, internal_endent): Add parameter stream.  Use it
21753         instead of global variable.
21754         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
21755         stream.
21756         (get_next_alias): Add parameter stream.
21757         (_nss_files_getaliasent_r): Pass global stream.
21758         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
21759         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
21760         (_nss_files_gethostbyname4_r): Pass local stream to
21761         internal_setent, internal_getent and internal_endent.  Remove
21762         locking.
21763
21764 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
21765
21766         * tst-strfmon1.c (tests): Update expected currency symbol.
21767
21768 2015-05-08  Roland McGrath  <roland@hack.frob.com>
21769
21770         * sysdeps/nacl/gethostname.c: New file.
21771
21772 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
21773
21774         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
21775         and sinh.
21776         * math/auto-libm-test-out: Regenerated.
21777         * sysdeps/i386/fpu/libm-test-ulps: Update.
21778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21779
21780 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
21781
21782         [BZ #18125]
21783         * stdlib/tst-setcontext3.c: New file.
21784         * stdlib/tst-setcontext3.sh: New file.
21785         * stdlib/Makefile (tests): Add tst-setcontext3.
21786         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
21787         to verify test program created output file.
21788         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
21789         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
21790         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
21791         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
21792
21793 2015-05-06  Roland McGrath  <roland@hack.frob.com>
21794
21795         [BZ #18383]
21796         * elf/tst-tlsalign.c: New file.
21797         * elf/tst-tlsalign-static.c: New file.
21798         * elf/tst-tlsalign-lib.c: New file.
21799         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
21800         (tests-static): Add tst-tlsalign-static.
21801         (modules-names): Add tst-tlsalign-lib.
21802         (test-xfail-tst-tlsalign): New variable.
21803         (test-xfail-tst-tlsalign-static): New variable.
21804
21805         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
21806         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
21807
21808 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
21809
21810         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
21811         csqrt, erfc, sin and sincos.
21812         * math/auto-libm-test-out: Regenerated.
21813         * sysdeps/i386/fpu/libm-test-ulps: Update.
21814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21815
21816 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21817
21818         * sysdeps/aarch64/libm-test-ulps: Update.
21819
21820 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
21821
21822         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
21823         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
21824         * math/auto-libm-test-out: Regenerated.
21825         * sysdeps/i386/fpu/libm-test-ulps: Update.
21826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21827
21828 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
21829
21830         [BZ #18265]
21831         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
21832         (wcsncpy): Likewise.
21833
21834 2015-05-05  Florian Weimer  <fweimer@redhat.com>
21835
21836         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
21837         Assume __ASSUME_FALLOCATE is always true.
21838         * sysdeps/unix/sysv/linux/posix_fallocate64.c
21839         (__posix_fallocate64_l64): Likweise.
21840         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
21841         (posix_fallocate): Likewise.
21842         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
21843         (__posix_fallocate64_l64): Likewise.
21844         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21845         [!__ASSUME_FALLOCATE]: Add comment.
21846
21847 2015-05-05  Florian Weimer  <fweimer@redhat.com>
21848
21849         * sysdeps/unix/sysv/linux/i386/Makefile
21850         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
21851         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
21852         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
21853         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
21854         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
21855         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
21856         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
21857
21858 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
21859
21860         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
21861         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
21862         tgamma.
21863         * math/auto-libm-test-out: Regenerated.
21864         * sysdeps/i386/fpu/libm-test-ulps: Update.
21865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21866
21867 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
21868
21869         * math/auto-libm-test-in: Add more tests of tgamma.
21870         * math/auto-libm-test-out: Regenerated.
21871         * sysdeps/i386/fpu/libm-test-ulps: Update.
21872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21873
21874         * math/auto-libm-test-in: Add more tests of tanh.
21875         * math/auto-libm-test-out: Regenerated.
21876         * sysdeps/i386/fpu/libm-test-ulps: Update.
21877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21878
21879         * math/auto-libm-test-in: Add more tests of tan.
21880         * math/auto-libm-test-out: Regenerated.
21881         * sysdeps/i386/fpu/libm-test-ulps: Update.
21882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21883
21884         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
21885         * math/auto-libm-test-out: Regenerated.
21886         * sysdeps/i386/fpu/libm-test-ulps: Update.
21887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21888
21889         * math/auto-libm-test-in: Add another test of pow.
21890         * math/auto-libm-test-out: Regenerated.
21891         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21892
21893         * math/auto-libm-test-in: Add more tests of lgamma.
21894         * math/auto-libm-test-out: Regenerated.
21895         * sysdeps/i386/fpu/libm-test-ulps: Update.
21896         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21897
21898         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
21899         log1p.
21900         * math/auto-libm-test-out: Regenerated.
21901         * sysdeps/i386/fpu/libm-test-ulps: Update.
21902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21903
21904 2015-05-01  Mark Wielaard  <mjw@redhat.com>
21905
21906         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
21907         Elf64_Chdr structs and ELFCOMPRESS constants.
21908
21909 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
21910
21911         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
21912         expm1.
21913         * math/auto-libm-test-out: Regenerated.
21914         * sysdeps/i386/fpu/libm-test-ulps: Update.
21915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21916
21917         * math/auto-libm-test-in: Add more tests of erf and erfc.
21918         * math/auto-libm-test-out: Regenerated.
21919         * sysdeps/i386/fpu/libm-test-ulps: Update.
21920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21921
21922 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21923
21924         * config.h.in (HAVE_AARCH64_BE): Add.
21925
21926 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
21927
21928         * math/auto-libm-test-in: Add more tests of csqrt.
21929         * math/auto-libm-test-out: Regenerated.
21930         * sysdeps/i386/fpu/libm-test-ulps: Update.
21931         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21932
21933         * math/auto-libm-test-in: Add more tests of cosh and sinh.
21934         * math/auto-libm-test-out: Regenerated.
21935         * sysdeps/i386/fpu/libm-test-ulps: Update.
21936         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21937
21938         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
21939
21940 2015-04-29  Roland McGrath  <roland@hack.frob.com>
21941
21942         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
21943         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
21944
21945         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
21946         (euidaccess, eaccess): Define as weak aliases.
21947
21948         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
21949         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
21950         but __suseconds_t is often 'long int' so some sources assume that
21951         type is being used (e.g. they use %ld to print tv_usec).
21952
21953 2015-04-29  Florian Weimer  <fweimer@redhat.com>
21954
21955         [BZ #18007]
21956         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
21957         (CVE-2014-8121)
21958         * nss/tst-nss-getpwent.c: New file.
21959         * nss/Makefile (tests): Add new test.
21960
21961 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
21962
21963         [BZ #18346]
21964         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
21965         exponents less than 48 as cases where high part of mantissa needs
21966         examining to determine whether argument is integral.
21967         * math/libm-test.inc (round_test_data): Add more tests.
21968
21969 2015-04-28  Mark Wielaard  <mjw@redhat.com>
21970
21971         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
21972
21973 2015-04-27  David S. Miller  <davem@davemloft.net>
21974
21975         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
21976         __tls_get_addr.
21977         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
21978
21979 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
21980
21981         [BZ#18333]
21982         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
21983
21984 2015-04-27  Florian Weimer  <fweimer@redhat.com>
21985
21986         [BZ#18333]
21987         * time/tzset.c (parse_tzname): Return error on memory allocation
21988         failure.
21989         * test-skeleton.c (struct temp_name_list): Change type of name
21990         member to non-const.
21991         (add_temp_file): Create a copy of the file name.
21992         (delete_temp_files): Deallocate memory.
21993         (create_temp_file): Add comment.
21994
21995 2015-04-24  Florian Weimer  <fweimer@redhat.com>
21996
21997         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
21998         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
21999
22000 2015-04-24  Roland McGrath  <roland@hack.frob.com>
22001
22002         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
22003         * sysdeps/arm/configure: Regenerated.
22004
22005 2015-04-24  Florian Weimer  <fweimer@redhat.com>
22006
22007         [BZ #17715]
22008         * time/tzfile.c (__tzfile_read): Check for large values of
22009         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
22010         * time/tzset.c (__tzstring_len): New function, based on the old
22011         __tzstring function.
22012         (__tzstring): Call __tzstring_len.
22013         (parse_tzname): New helper function extracted from
22014         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
22015         the input string.
22016         (parse_offset): New helper function extracted from
22017         __tzset_parse_tz.  Replace switch with fallthrough with
22018         initialization before sscanf.
22019         (parse_rule): Likewise.
22020         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
22021         new-style function definition.
22022         * timezone/Makefile (tests): Add tst-tzset.
22023         (tst-tzset.out): Dependencies on time zone files.
22024         (tst-tzset-ENV): Set TZDIR.
22025         (testdata/XT%): Copy crafted time zone files.
22026         * timezone/README: Mention crafted time zone files.
22027         * timezone/testdata/XT1, timezone/testdata/XT2,
22028         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
22029         files.
22030         * timezone/tst-tzset.c: New test.
22031
22032 2015-04-24  Florian Weimer  <fweimer@redhat.com>
22033
22034         * Makeconfig (+gccwarn): Remove -Winline.
22035
22036 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
22037
22038         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
22039
22040 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
22041
22042         * NEWS: Mention sysconf() cache information support for s390.
22043         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
22044
22045 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
22046
22047         * math/k_casinh.c (__kernel_casinh): Use __copysign.
22048         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
22049         (__nearbyint): Likewise.
22050         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
22051         (copysignl): Likewise.
22052
22053 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
22054
22055         [BZ #18287]
22056         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
22057         based on padding.  (CVE-2015-1781)
22058
22059 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22060
22061         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
22062         libc-vdso.h.
22063         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
22064         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
22065         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
22066         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
22067         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
22068         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
22069         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
22070         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
22071         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
22072         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
22073         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
22074         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
22075         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
22076         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
22077         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
22078         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
22079         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
22080         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
22081         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
22082         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
22083         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
22084         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
22085         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
22086
22087 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
22088
22089         * stdlib/setenv.c (__add_to_environ):
22090         Dump core quickly if setenv (..., NULL, ...) is called.
22091         This time, do it the right way, and pacify GCC with a pragma.
22092
22093 2015-04-17  Roland McGrath  <roland@hack.frob.com>
22094
22095         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
22096         IMAP->l_prev cannot be null, and #if out the code for the contrary
22097         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
22098         believe that NS (&_dl_ns[NSID]) could point outside the array.
22099
22100         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
22101         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
22102         before using NSID as an index.
22103
22104 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
22105
22106         [BZ #17825]
22107         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
22108         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
22109         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
22110
22111 2015-04-17  Roland McGrath  <roland@hack.frob.com>
22112
22113         Add preliminary port to Google Native Client on ARM.
22114         * abi-tags (.*-.*-nacl.*): New entry.
22115         * sysdeps/arm/nacl: New directory.
22116         * sysdeps/nacl: New directory.
22117
22118 2015-04-16  David S. Miller  <davem@davemloft.net>
22119
22120         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
22121         lowlevellock-futex.h
22122
22123 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
22124
22125         * sysdeps/tile/configure.ac: New file.
22126         * sysdeps/tile/configure: Regenerated.
22127
22128 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22129
22130         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
22131         conditionals for weak_alias and libc_hidden_weak.
22132         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
22133         libc_hidden_weak and weak_alias.
22134         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
22135         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
22136         and weak_alias for static one.
22137
22138 2015-04-15  David S. Miller  <davem@davemloft.net>
22139
22140         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
22141
22142 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
22143
22144         [BZ #18206]
22145         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
22146           Use signed comparision instead of substraction to avoid
22147           overflow bug.
22148         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
22149           Take the sign of ret.
22150         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
22151           Do not expect precise return values. Only the sign matters.
22152         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
22153         * wcsmbs/test-wcsncmp.c: New File.
22154         * string/test-strncmp.c: Add wcsncmp support.
22155
22156 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
22157
22158         [BZ #6792]
22159         * math/w_log1p.c: New file.
22160         * math/w_log1pf.c: Likewise.
22161         * math/w_log1pl.c: Likewise.
22162         * math/Makefile (libm-calls): Add w_log1p.
22163         * math/s_log1pl.c (log1pl): Remove weak_alias.
22164         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
22165         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
22166         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
22167         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
22168         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
22169         [NO_LONG_DOUBLE] (log1pl): Likewise.
22170         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
22171         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
22172         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
22173         (log1p): Remove long_double_symbol.
22174         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
22175         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
22176         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
22177         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
22178         remove weak_alias for corresponding log1p function.
22179         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
22180         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
22181         * sysdeps/ia64/fpu/w_log1p.c: New file.
22182         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
22183         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
22184         * math/libm-test.inc (log1p_test_data): Add errno expectations.
22185
22186 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
22187
22188         [BZ #18247]
22189         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
22190         decimal exponent by 1.
22191         * stdlib/tst-strtod-round-data: Add more tests.
22192         * stdlib/tst-strtod-round.c (tests): Regenerated.
22193
22194 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
22195
22196         * math/auto-libm-test-in: Add more tests of clog and clog10.
22197         * math/auto-libm-test-out: Regenerated.
22198         * sysdeps/i386/fpu/libm-test-ulps: Update.
22199         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22200
22201 2015-04-09  Roland McGrath  <roland@hack.frob.com>
22202
22203         * Makeconfig (module-cppflags): Exclude all .v.i files.
22204         (skip-module-cppflags): Variable removed.
22205
22206         * configure.ac (libc_config_ok): Initialize before reading
22207         preconfigure scripts, not after.
22208         * configure: Regenerated.
22209
22210         * test-skeleton.c (TIMEOUT): Move #define to top level.
22211         (main): Grok environment variable TEST_DIRECT.  If set, print
22212         test expectation details into that file and then behave as if
22213         given --direct.
22214
22215 2015-04-09  Florian Weimer  <fweimer@redhat.com>
22216
22217         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
22218         warning on 32-bit.
22219
22220 2015-04-08  David S. Miller  <davem@davemloft.net>
22221
22222         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22223
22224 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
22225
22226         * math/auto-libm-test-in: Add more tests of atanh.
22227         * math/auto-libm-test-out: Regenerated.
22228         * sysdeps/i386/fpu/libm-test-ulps: Update.
22229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22230
22231         * math/auto-libm-test-in: Add more tests of atan.
22232         * math/auto-libm-test-out: Regenerated.
22233         * sysdeps/i386/fpu/libm-test-ulps: Update.
22234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22235
22236 2015-04-08  Florian Weimer  <fweimer@redhat.com>
22237
22238         * elf/pldd.c (main): Rewrite to use struct
22239         scratch_buffer instead of extend_alloca.
22240         * elf/pldd-xx.c (find_maps): Likewise.
22241         * grp/initgroups.c: Include <scratch_buffer.h> instead of
22242         <alloca.h>.
22243         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
22244         scratch_buffer instead of extend_alloca.
22245         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
22246         grp/compat-initgroups.c.
22247         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
22248         Rewrite to use struct scratch_buffer instead of extend_alloca.
22249         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
22250         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
22251
22252 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
22253
22254         * math/auto-libm-test-in: Add more tests of cbrt.
22255         * math/auto-libm-test-out: Regenerated.
22256         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22257
22258         * math/auto-libm-test-in: Add more tests of cabs.
22259         * math/auto-libm-test-out: Regenerated.
22260         * sysdeps/i386/fpu/libm-test-ulps: Update.
22261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22262
22263         [BZ #18210]
22264         [BZ #18211]
22265         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
22266         (__ieee754_atan2): Set FE_TONEAREST mode for internal
22267         computations.
22268         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
22269         clog10.
22270         * math/auto-libm-test-out: Regenerated.
22271         * sysdeps/i386/fpu/libm-test-ulps: Update.
22272         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22273
22274         [BZ #18197]
22275         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
22276         (atan): Set FE_TONEAREST mode for internal computations.
22277         * math/auto-libm-test-in: Add more tests of atan.
22278         * math/auto-libm-test-out: Regenerated.
22279
22280 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
22281
22282         [BZ #17930]
22283         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
22284
22285 2015-04-07  Florian Weimer  <fweimer@redhat.com>
22286
22287         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
22288
22289 2015-04-07  Florian Weimer  <fweimer@redhat.com>
22290
22291         * include/scratch_buffer.h: New file.
22292         * malloc/scratch_buffer_grow.c: Likewise.
22293         * malloc/scratch_buffer_grow_preserve.c: Likewise.
22294         * malloc/scratch_buffer_set_array_size.c: Likewise.
22295         * malloc/tst-scratch_buffer.c: Likewise.
22296         * malloc/Makefile (routines): Add scratch_buffer_grow.
22297         (tests): Add test case.
22298         * malloc/Versions (GLIBC_PRIVATE): Export
22299         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
22300         __libc_scratch_buffer_set_array_size.
22301
22302 2015-04-06  Richard Henderson  <rth@redhat.com>
22303
22304         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
22305         * sysdeps/alpha/fpu/libm-test-ulps: Update.
22306
22307         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
22308         unsigned int before printing.
22309
22310 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22311
22312         [BZ #17596]
22313         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
22314         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
22315
22316 2015-04-02  Florian Weimer  <fweimer@redhat.com>
22317
22318         * include/libc-internal.h (libc_max_align_t): Define.
22319
22320 2015-04-02  Andreas Schwab  <schwab@suse.de>
22321
22322         [BZ #16850]
22323         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
22324
22325 2015-04-02  Mel Gorman  <mgorman@suse.de>
22326
22327         [BZ #17195]
22328         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
22329         as well as the main arena.
22330
22331 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
22332
22333         [BZ #18185]
22334         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
22335         sharing L2 cache to 2 for Silvermont/Knights Landing.
22336
22337 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
22338
22339         [BZ #17711]
22340         * config.make.in (have-protected-data): New.
22341         * configure.ac: Check linker support for protected data symbol.
22342         * configure: Regenerated.
22343         * elf/Makefile (modules-names): Add tst-protected1moda and
22344         tst-protected1modb if $(have-protected-data) is yes.
22345         (tests): Add tst-protected1a and tst-protected1b if
22346         $(have-protected-data) is yes.
22347         ($(objpfx)tst-protected1a): New.
22348         ($(objpfx)tst-protected1b): Likewise.
22349         (tst-protected1modb.so-no-z-defs): Likewise.
22350         * elf/tst-protected1a.c: New file.
22351         * elf/tst-protected1b.c: Likewise.
22352         * elf/tst-protected1mod.h: Likewise.
22353         * elf/tst-protected1moda.c: Likewise.
22354         * elf/tst-protected1modb.c: Likewise.
22355
22356 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
22357
22358         [BZ #17711]
22359         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
22360         indicates it is called from do_lookup_x on relocation against
22361         protected data, skip the data definion in the executable from
22362         copy reloc.
22363         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
22364         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
22365         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
22366         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
22367         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
22368         otherwise to 0.
22369         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
22370         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
22371         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
22372         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
22373         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
22374         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
22375
22376 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
22377
22378         * sysdeps/nptl/pthread.h: Remove duplicate definition of
22379         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
22380
22381 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
22382
22383         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
22384         THREAD_SETMEM_NC.
22385         * sysdeps/x86_64/nptl/tls.h: Ditto.
22386
22387 2015-03-27  Roland McGrath  <roland@hack.frob.com>
22388
22389         * dlfcn/tststatic.c (main): Converted to ...
22390         (do_test): ... this.
22391         (TEST_FUNCTION): New macro.
22392         Include test-skeleton.c.
22393
22394 2015-03-26  Alan Modra  <amodra@gmail.com>
22395
22396         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
22397         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
22398         zero for undefined weak.
22399         (elf_machine_plt_conflict): Similarly.
22400
22401 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
22402
22403         * math/auto-libm-test-in: Add more tests of acosh, asinh and
22404         atanh.
22405         * math/auto-libm-test-out: Regenerated.
22406         * sysdeps/i386/fpu/libm-test-ulps: Update.
22407         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22408
22409         * math/auto-libm-test-in: Add another test of asin.
22410         * math/auto-libm-test-out: Regenerated.
22411         * sysdeps/i386/fpu/libm-test-ulps: Update.
22412         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22413
22414         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
22415         Remove macro.
22416         (LLL_EBX_REG): Likewise.
22417         (LLL_ENTER_KERNEL): Likewise.
22418
22419         * math/auto-libm-test-in: Add more tests of asin.
22420         * math/auto-libm-test-out: Regenerated.
22421         * sysdeps/i386/fpu/libm-test-ulps: Update.
22422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22423
22424         [BZ #18138]
22425         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
22426         libc_do_syscall_args): New structure.
22427         (INTERNAL_SYSCALL_MAIN_0): New macro.
22428         (INTERNAL_SYSCALL_MAIN_1): Likewise.
22429         (INTERNAL_SYSCALL_MAIN_2): Likewise.
22430         (INTERNAL_SYSCALL_MAIN_3): Likewise.
22431         (INTERNAL_SYSCALL_MAIN_4): Likewise.
22432         (INTERNAL_SYSCALL_MAIN_5): Likewise.
22433         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
22434         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
22435         Replace conditional definitions by conditional definitions of ....
22436         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
22437         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
22438         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
22439         (libpthread-sysdep_routines): Add libc-do-syscall.
22440         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
22441         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
22442         to __NR_futex not 240.
22443
22444 2015-03-25  Alan Modra  <amodra@gmail.com>
22445
22446         * NEWS: Advertise TLS optimization.
22447         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
22448         (DT_PPC_NUM): Increment.
22449         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
22450         (CHECK_STATIC_TLS): Use here.
22451         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
22452         TLS descriptors.
22453         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
22454         * sysdeps/powerpc/dl-tls.c: New file.
22455         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
22456         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
22457         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
22458         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
22459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
22460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
22461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
22462
22463 2015-03-25  Alan Modra  <amodra@gmail.com>
22464
22465         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
22466         for overlapping .opd entries" to "support...".
22467         * sysdeps/powerpc/powerpc64/configure: Regenerate
22468
22469 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
22470
22471         * math/auto-libm-test-in: Add more tests of acos.
22472         * math/auto-libm-test-out: Regenerated.
22473         * sysdeps/i386/fpu/libm-test-ulps: Update.
22474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22475
22476         * math/auto-libm-test-in: Add more tests of expm1.
22477         * math/auto-libm-test-out: Regenerated.
22478         * sysdeps/i386/fpu/libm-test-ulps: Update.
22479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22480
22481 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
22482
22483         * math/auto-libm-test-in: Add more tests of cosh and sinh.
22484         * math/auto-libm-test-out: Regenerated.
22485         * sysdeps/i386/fpu/libm-test-ulps: Update.
22486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22487
22488         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
22489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22490
22491         * math/auto-libm-test-in: Add more tests of log2.
22492         * math/auto-libm-test-out: Regenerated.
22493         * sysdeps/i386/fpu/libm-test-ulps: Update.
22494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22495
22496 2015-03-23  Roland McGrath  <roland@hack.frob.com>
22497
22498         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
22499         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
22500         _IO_IS_APPENDING bit in READ_WRITE instead.
22501
22502 2015-03-23  Florian Weimer  <fweimer@redhat.com>
22503
22504         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
22505         (__determine_cpumask_size): Replace extend_alloca with a
22506         variable-length array.  Do not treat res == 0 as an error.
22507
22508 2015-03-23  Florian Weimer  <fweimer@redhat.com>
22509
22510         [BZ #18100]
22511         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
22512         and integer overflow.
22513         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
22514         (main): Add integer overflow tests.
22515         * manual/pattern.texi (Calling Wordexp): Document additional use
22516         for WRDE_SYNTAX.
22517
22518 2015-03-23  Alan Modra  <amodra@gmail.com>
22519
22520         * config.h.in: Remove HAVE_ASM_PPC_REL16.
22521         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
22522         and false branch of conditional.
22523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
22524         Likewise.
22525
22526 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
22527
22528         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
22529         libc-modules.h
22530         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
22531         unused declaration of _hurd_intr_rpc_msg_in_trap.
22532         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
22533         defined instead of whether it is non-zero.
22534         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
22535         input constraint instead of both input and output constraint.  Use ecx
22536         clobber instead of %ecx.
22537         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
22538         mutex_unlock): Use a statement expression instead of an expression list.
22539         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
22540         type to vm_size_t instead of vm_address_t.
22541         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
22542         defined instead of whether it is non-zero.
22543         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
22544         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
22545         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
22546         comparisons with mapaddr.
22547         * nscd/nscd-client.h: Include <time.h>.
22548         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
22549         9th parameter to __vm_region instead of int.
22550         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
22551         * scripts/check-local-headers.sh (exclude): Add device/,
22552         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
22553         cthreads.h.
22554
22555 2015-03-19  Roland McGrath  <roland@hack.frob.com>
22556
22557         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
22558         to account for alignment padding.
22559         * sysdeps/arm/memmove.S: Likewise.
22560
22561 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
22562
22563         * sysdeps/unix/sysv/linux/generic/README: New file.
22564
22565 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
22566
22567         [BZ #18138]
22568         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
22569         (futex_abstimed_wait)
22570         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
22571         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
22572         of lll_futex_timed_wait.
22573
22574 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
22575
22576         [BZ #17542]
22577         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
22578
22579 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
22580
22581         [BZ #17090]
22582         [BZ #17620]
22583         [BZ #17621]
22584         [BZ #17628]
22585         * NEWS: Update.
22586         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
22587         entries with Static TLS too.  Skip entries past the end of the
22588         allocated DTV, from Alan Modra.
22589         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
22590         Static TLS DTV entry set up from...
22591         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
22592         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
22593         * nptl/allocatestack.c (init_one_static_tls): ... and here...
22594         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
22595         for Static TLS.
22596         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
22597         that the slot we find is associated with the given map before
22598         using its generation count.
22599         * nptl_db/db_info.c: Include ldsodefs.h.
22600         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
22601         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
22602         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
22603         (link_map::l_tls_offset): New struct field.
22604         (dtv_t::counter): Likewise.
22605         (rtld_global): New struct.
22606         (_rtld_global): New rtld variable.
22607         (dl_tls_dtv_slotinfo_list): New rtld global field.
22608         (dtv_slotinfo_list): New struct.
22609         (dtv_slotinfo): Likewise.
22610         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
22611         (td_lookup): Rename to...
22612         (td_mod_lookup): ... this.  Use new mod parameter instead of
22613         LIBPTHREAD_SO.
22614         * nptl_db/td_thr_tlsbase.c: Include link.h.
22615         (dtv_slotinfo_list, dtv_slotinfo): New functions.
22616         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
22617         addresses even if the DTV is out of date or missing them.
22618         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
22619         index zero-length arrays.
22620         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
22621         (td_lookup): Make it a macro implemented in terms of...
22622         (td_mod_lookup): ... this declaration.
22623         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
22624         (DB_MAIN_VARIABLE): Likewise.
22625
22626 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22627
22628         [BZ #18134]
22629         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
22630
22631 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
22632
22633         * stdlib/setenv.c (__add_to_environ): Revert previous change.
22634
22635 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
22636
22637         [BZ #18128]
22638         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
22639         (atomic_add, atomic_increment_and_test)
22640         (atomic_decrement_and_test): Fix 64-bit arithmetic.
22641
22642 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
22643
22644         * stdlib/setenv.c (__add_to_environ):
22645         Dump core quickly if setenv (..., NULL, ...) is called.
22646
22647 2015-03-13  Roland McGrath  <roland@hack.frob.com>
22648
22649         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
22650         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
22651         all the necessary asm magic in one place.
22652         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
22653         using those.
22654
22655 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
22656
22657         [BZ #14906]
22658         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
22659         traced file mtime. Use consistent log message.
22660         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
22661         (register_traced_file): Call install_watches. Always set mtime.
22662         (invalidate_cache): Iterate over all trace files. Call install_watches.
22663         (inotify_check_files): Don't inline. Handle watching parent
22664         directories and configuration file movement in and out.
22665         (handle_inotify_events): New function.
22666         (main_loop_poll): Call handle_inotify_events.
22667         (main_loop_epoll): Likewise.
22668         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
22669         (struct traced_file): Use array of inotify fds. Add parent directory,
22670         and basename.
22671         (struct database_dyn): Remove unused file_mtime.
22672         (init_traced_file): New inline function.
22673         (define_traced_file): New macro.
22674         * nss/nss_db/db-init.c: Use define_traced_file.
22675         (_nss_db_init): Use init_traced_file.
22676         * nss/nss_files/files-init.c: Use define_traced_file.
22677         (_nss_files_init): Use init_traced_file.
22678
22679 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
22680
22681         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
22682         [_LIBC]: Do not include <stdlib.h>.
22683         [!_LIBC] (abort): Remove declaration.
22684         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
22685         _FP_STATIC_ASSERT instead of conditionally calling abort.
22686         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
22687         (_FP_EXTEND_CNAN): Likewise.
22688         (FP_TRUNC): Likewise.
22689         (__FP_CLZ): Likewise.
22690         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
22691
22692 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
22693
22694         * manual/string.texi (XPG basename): Fix prototype.
22695
22696 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22697
22698         [BZ #18080]
22699         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
22700         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
22701         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
22702         (__setcontext): Likewise.
22703         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
22704         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
22705         Call rt_sigprocmask syscall one time to set new signal mask
22706         and retrieve the current signal mask instead of two calls.
22707         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
22708         (__swapcontext): Likewise.
22709         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
22710         * stdlib/tst-setcontext2.c: New file.
22711
22712 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22713
22714         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
22715
22716 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
22717
22718         [BZ #18093]
22719         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
22720         the wrong size.
22721
22722 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
22723
22724         [BZ #18043]
22725         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
22726
22727 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
22728
22729         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
22730         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
22731         Remove define.
22732         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
22733         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
22734         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
22735         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
22736         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
22737         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
22738         define.
22739         * nptl_db/td_symbol_list.c (td_lookup): Remove
22740         HAVE_ASM_GLOBAL_DOT_NAME code.
22741         * sysdeps/powerpc/powerpc64/configure.ac: Remove
22742         HAVE_ASM_GLOBAL_DOT_NAME check.
22743         * sysdeps/powerpc/powerpc64/configure: Regenerate.
22744         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
22745         (DOT_LABEL): Remove define.
22746         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
22747         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
22748         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
22749         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
22750         (__TLS_GET_ADDR): Likewise.
22751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
22752         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
22753
22754 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
22755
22756         [BZ #18111]
22757         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
22758         (_FPU_SETCW): Initialize cw from fpsr before storing.
22759         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
22760         (fesetexceptflag): Rewrite using fpu_control.h.
22761         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
22762
22763 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
22764
22765         [BZ #18110]
22766         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
22767         asms.
22768         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
22769
22770 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
22771
22772         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
22773         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
22774         abort.
22775         (_FP_FMA): Likewise.
22776         (_FP_DIV): Likewise.
22777
22778 2015-03-10  Roland McGrath  <roland@hack.frob.com>
22779
22780         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
22781         with 0 in that case.
22782         * Makefile (summarize-tests): New canned sequence, factored out of
22783         commands for targets tests and xtests.  Display summary lines that
22784         don't start with PASS: or XFAIL: rather than ones that do start with
22785         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
22786         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
22787         do start with ERROR: or FAIL:.
22788         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
22789         (except for [$(build-shared) = yes]).
22790         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
22791         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
22792         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
22793         * nptl/Makefile: Revert 2015-03-04 changes.
22794         [$(CXX) empty] (tests-unsupported): New variable.
22795         * debug/Makefile: Likewise.
22796
22797         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
22798         gnulib file.  Replace __attribute with __attribute__ throughout.
22799
22800 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
22801
22802         * sysdeps/hppa/fpu/libm-test-ulps: Update.
22803
22804 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
22805
22806         [BZ #18104]
22807         * math/auto-libm-test-in: Add another test of pow.
22808         * math/auto-libm-test-out: Regenerated.
22809
22810 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22811
22812         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
22813         $(config-cflags-nofma).
22814
22815 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
22816
22817         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
22818         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
22819         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
22820         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
22821         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
22822         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
22823         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
22824         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
22825         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
22826         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
22827         Add comment on closing #endif.
22828
22829 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
22830
22831         * posix/wordexp.c (CHAR_IN_SET): New macro.
22832         (parse_param): Use it.
22833
22834 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22835
22836         * sysdeps/powerpc/fpu/libm-test-ulps: update.
22837
22838 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
22839
22840         [BZ #18043]
22841         * posix/wordexp.c (parse_param): Fix buffer overflow.
22842         * posix/wordexp-test.c (test_case): Add test case.
22843
22844 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
22845
22846         [BZ #18042]
22847         * posix/wordexp.c (parse_backtick): Fix off-by-one.
22848         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
22849
22850 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
22851
22852         [BZ #18043]
22853         * posix/wordexp-test.c (test_case): Add test for BZ #18043
22854         (do_bz18043): Delete.
22855         (at_page_end): New.
22856         (testit): Refactor to have words at the edge of unreadable page.
22857
22858 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
22859
22860         [BZ #16734]
22861         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
22862         Cleanup read-only streams as well.
22863         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
22864
22865 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22866
22867         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
22868         <bits/libc-lockP.h>
22869
22870 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
22871
22872         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
22873         on [__KERNEL__].
22874         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
22875         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
22876         * soft-fp/op-common.h (_FP_DECL): Likewise.
22877
22878 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
22879
22880         * elf/ifuncdep2.c (global): Replace
22881         __attribute__((visibility("protected"))) with
22882         asm (".protected global").
22883         * elf/ifuncmod1.c (global): Likewise.
22884         * elf/ifuncmod5.c (global): Likewise.
22885
22886 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
22887
22888         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
22889         <asm/sfp-machine.h> instead of <sfp-machine.h>.
22890
22891 2015-03-06  Roland McGrath  <roland@hack.frob.com>
22892
22893         * manual/install.texi (Configuring and compiling):
22894         Document test-wrapper-env-only.
22895         * INSTALL: Regenerated.
22896
22897 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
22898
22899         [BZ #18043]
22900         * posix/wordexp.c (parse_param): Fix buffer overflow.
22901         * posix/wordexp-test.c (do_bz18043): Add test case.
22902
22903 2015-03-06  Vincent Bernat  <vincent@bernat.im>
22904
22905         * time/tst-strptime2.c (do_test): Ensure failing tests are
22906         reported correctly.
22907         * time/tst-strptime3.c (do_test): Likewise.
22908
22909 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
22910
22911         Fix aio_error thread-safety.
22912         * sysdeps/pthread/aio_error.c: New file
22913         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
22914         synchronization.
22915
22916 2015-03-06  Florian Weimer  <fweimer@redhat.com>
22917
22918         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
22919         (group_number, vfprintf): Use it.
22920         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
22921         (JUMP, REF): Use it.
22922         (WORK_BUFFER_SIZE): New enum constant.
22923         (process_arg, vfprintf): Use it.
22924
22925 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
22926
22927         * manual/errno.texi (Error Messages): Complete example function
22928         by adding missing #define.
22929         (program_invocation_name): Add statement indicating GNU
22930         extension and reference which header file declares the variable.
22931         (program_invocation_short_name): Likewise.
22932
22933 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
22934
22935         * manual/errno.texi (Error Messages): Delete strerror ISO C89
22936         compatibility note.
22937
22938 2015-03-05  Roland McGrath  <roland@hack.frob.com>
22939
22940         * Makeconfig (test-wrapper-env-only): New variable.
22941         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
22942         then use that with $(test-wrapper-env-only) rather than using
22943         $(test-wrapper-env) $(run-program-env) $($*-ENV).
22944
22945 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
22946
22947         [BZ #18082]
22948         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
22949         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
22950         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
22951         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
22952         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
22953         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
22954         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
22955         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
22956         Likewise.
22957         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
22958         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
22959         Likewise.
22960         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
22961         Likewise.
22962         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
22963         Likewise.
22964         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
22965         Likewise.
22966         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
22967         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
22968         Likewise.
22969         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
22970         Likewise.
22971         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
22972         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
22973
22974 2015-03-04  Roland McGrath  <roland@hack.frob.com>
22975
22976         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
22977         (ETH_ALEN): New macro.
22978         (struct ether_addr): Use it for length of ether_addr_octet.
22979
22980         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
22981         (setdb): Don't call __nss_configure_lookup for "rpc".
22982         (do_test): Don't call test_rpc.
22983         (output_rpcent, test_rpc): Functions moved ...
22984         * sunrpc/test-rpcent.c: ... to this new file.
22985         * sunrpc/Makefile (tests): Add it.
22986
22987         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
22988         __xpg_sigpause.
22989         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
22990         * nptl/tst-signal6.c: Likewise.
22991         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
22992         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
22993
22994         * configure.ac (libc_cv_cxx_link_ok): New check.
22995         Reset CXX to empty if it fails to link.
22996         * configure: Regenerated.
22997         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
22998         bug-atexit3-lib only if $(CXX) is nonempty.
22999         * nptl/Makefile (tests): Likewise for tst-cancel24.
23000         (tests, tests-static): Likewise for tst-cancel24-static.
23001         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
23002         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
23003         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
23004         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
23005
23006 2015-03-04  Andreas Schwab  <schwab@suse.de>
23007
23008         [BZ #17631]
23009         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
23010         for non-GCC compilers.
23011         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
23012         Likewise.
23013
23014 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
23015
23016         [BZ #17776]
23017         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
23018         integer before bitwise and assembly operations.
23019         (feclearexcept): Likewise.
23020         * math/test-fenvinline.c: New file.
23021         * math/Makefile: Add test-fenvinline test.
23022
23023 2015-03-03  Alan Modra  <amodra@gmail.com>
23024
23025         [BZ #16512]
23026         * scripts/localplt.awk: Strip off symbol version.
23027         * NEWS: Mention bug fix.
23028
23029 2015-03-02  Roland McGrath  <roland@hack.frob.com>
23030
23031         * sysdeps/pthread/timer_routines.c
23032         (timer_free_list, thread_free_list, thread_active_list): Make static.
23033
23034 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
23035
23036         [BZ #17779]
23037         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
23038         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
23039         Undefine.
23040         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
23041         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
23042         Likewise.
23043         * sysdeps/unix/sysv/linux/sh/kernel-features.h
23044         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
23045         Likewise.
23046
23047 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
23048
23049         [BZ #18036]
23050         * posix/fnmatch_loop.c (END): Detect invalid pattern.
23051         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
23052
23053 2015-03-02  Andreas Schwab  <schwab@suse.de>
23054
23055         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
23056         variable name.
23057
23058 2015-03-02  Florian Weimer  <fweimer@redhat.com>
23059
23060         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
23061         Return error status.
23062
23063 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
23064
23065         [BZ #15969]
23066         * locale/findlocale.c (_nl_find_locale): Introduce const
23067         version of loc_name and drop unsafe type casts.
23068
23069 2015-02-27  Roland McGrath  <roland@hack.frob.com>
23070
23071         * dlfcn/tststatic2.c (main): Converted to ...
23072         (do_test): ... this.
23073         (TEST_FUNCTION): New macro.
23074         Include test-skeleton.c.
23075
23076 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23077
23078         [BZ #17711]
23079         * elf/Makefile (tests): Add vismain only if PIE is enabled.
23080         (tests-pie): Add vismain.
23081         (CFLAGS-vismain.c): New.
23082         * elf/vismain.c: Add comments for PIE requirement.
23083
23084 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
23085
23086         [BZ #18046]
23087         [BZ #18047]
23088         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
23089         0x1p-56L as threshold for just returning the argument.
23090         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
23091         0x1p-32L as threshold for just returning the argument.
23092         * math/auto-libm-test-in: Add more tests of atanh.
23093         * math/auto-libm-test-out: Regenerated.
23094         * sysdeps/i386/fpu/libm-test-ulps: Update.
23095         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
23096
23097 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
23098
23099         * string/bcopy.c (bcopy): Call memmove for performance.
23100
23101 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
23102
23103         * string/bzero.c (__bzero): Call memset for performance.
23104
23105 2015-02-27  John David Anglin  <dave.anglin@bell.net>
23106
23107         [BZ #18068]
23108         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
23109         to 00100000.
23110
23111 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
23112
23113         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
23114
23115 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
23116
23117         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
23118         (__kernel_standard): Use CSTR macro when setting exc.name.
23119         * sysdeps/ieee754/Makefile [$(subdir) = math]
23120         (CFLAGS-k_standard.c): Remove variable.
23121
23122         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
23123         setting p and q from "else if" to "else".
23124         (qzero): Likewise.
23125         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
23126         (qone): Likewise.
23127         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
23128         (qzerof): Likewise.
23129         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
23130         (qonef): Likewise.
23131         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
23132         (qzero): Likewise.
23133         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
23134         (qone): Likewise.
23135
23136         [BZ #18038]
23137         [BZ #18039]
23138         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
23139         return pi/2 for arguments below 0x1p-113L.
23140         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
23141         return pi/2 for arguments below 0x1p-106L.
23142         * math/auto-libm-test-in: Add more tests of acos.
23143         * math/auto-libm-test-out: Regenerated.
23144
23145         [BZ #16351]
23146         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
23147         (MO): New macro.
23148         (__ieee754_asin): Force underflow exception for results with small
23149         absolute value.
23150         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
23151         (MO): New macro.
23152         (__ieee754_asinf): Force underflow exception for results with
23153         small absolute value.
23154         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
23155         (__ieee754_asin): Force underflow exception for results with small
23156         absolute value.
23157         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
23158         (__ieee754_asinf): Force underflow exception for results with
23159         small absolute value.
23160         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
23161         (__ieee754_asinl): Force underflow exception for results with
23162         small absolute value.
23163         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
23164         (__ieee754_asinl): Force underflow exception for results with
23165         small absolute value.
23166         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
23167         (__ieee754_asinl): Force underflow exception for results with
23168         small absolute value.
23169         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
23170         Include <math.h>.
23171         * math/auto-libm-test-in: Do not mark underflow exceptions as
23172         possibly missing for bug 16351.
23173         * math/auto-libm-test-out: Regenerated.
23174
23175         [BZ #18030]
23176         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
23177         of power of 2 down when low part has opposite sign.
23178         * math/libm-test.inc (logb_test_data): Add more tests.
23179
23180 2015-02-26  Andreas Schwab  <schwab@suse.de>
23181
23182         [BZ #18032]
23183         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
23184         over collating symbol inside a bracket expression.  Minor cleanup.
23185         * posix/tst-fnmatch3.c (do_test): Add test case.
23186
23187 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
23188
23189         [BZ #18029]
23190         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
23191         Adjust exponent of power of 2 down when low part has opposite
23192         sign.
23193         * math/libm-test.inc (ilogb_test_data): Add more tests.
23194
23195 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
23196
23197         [BZ #15969]
23198         * locale/findlocale.c (_nl_find_locale): Fix constness error in
23199         the previous change.
23200
23201         [BZ #15969]
23202         * locale/findlocale.c (_nl_find_locale): Retry archive search
23203         after alias expansion.
23204
23205 2015-02-25  Roland McGrath  <roland@hack.frob.com>
23206
23207         * iconv/tst-iconv3.c (main): Converted to ...
23208         (do_test): ... this.
23209         (TEST_FUNCTION): New macro.
23210         Include test-skeleton.c.
23211
23212         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
23213         (convert): Make function static.
23214         (test_unalign): Likewise.  Add const to argument pointee types.
23215         (main): Replace with static function do_test.
23216         Print "Succeeded." only if RET is zero.
23217         (TEST_FUNCTION): New macro.
23218         Include test-skeleton.c.
23219
23220         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
23221         returns a null pointer.
23222
23223 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23224
23225         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
23226         to __memcpy_ppc only for static builds.
23227
23228 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
23229
23230         [BZ #18020]
23231         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
23232         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
23233         * math/auto-libm-test-in: Add more tests of asinh.
23234         * math/auto-libm-test-out: Regenerated.
23235         * sysdeps/i386/fpu/libm-test-ulps: Update.
23236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23237
23238 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
23239
23240         [BZ #15850]
23241         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
23242         and ip6_mtuinfo definitions here.
23243         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
23244         in this define too.  Update comment.
23245
23246 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
23247
23248         * elf/sprof.c (load_shobj): Tweak error message to match others.
23249
23250 2015-02-24  Kevin Easton  <kevin@guarana.org>
23251
23252         [BZ #16145] (partial fix)
23253         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
23254         to reduce lock contention.
23255
23256 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
23257
23258         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
23259         (struct timex): Update time comment.
23260         (ADJ_SETOFFSET): Define.
23261
23262 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
23263
23264         [BZ #18019]
23265         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
23266         2**56 not 2**28 as threshold for log (2x) formula.
23267         * math/auto-libm-test-in: Add more tests of acosh.
23268         * math/auto-libm-test-out: Regenerated.
23269         * sysdeps/i386/fpu/libm-test-ulps: Update.
23270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23271
23272 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
23273
23274         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
23275         parenthesis around the buf assignment.
23276         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
23277
23278 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
23279
23280         [BZ #16783]
23281         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
23282         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
23283         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
23284         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
23285         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
23286         * math/libm-test.inc (scalb_test_data): Add more tests.
23287
23288 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
23289
23290         [BZ #17916]
23291         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
23292         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
23293
23294 2015-02-24  Eric Rannaud  <e@nanocritical.com>
23295
23296         [BZ #17523]
23297         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
23298         * io/bits/fcntl2.h (open): Use it.
23299         (openat): Likewise.
23300         * io/open.c (__libc_open): Likewise.
23301         * io/open64.c (__libc_open64): Likewise.
23302         * io/open64_2.c (__open64_2): Likewise.
23303         * io/open_2.c (__open_2): Likewise.
23304         * io/openat.c (__openat): Likewise.
23305         * io/openat64.c (__openat64): Likewise.
23306         * io/openat64_2.c (__openat64_2): Likewise.
23307         * io/openat_2.c (__openat_2): Likewise.
23308         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
23309         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
23310         * sysdeps/posix/open64.c (__libc_open64): Likewise.
23311         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
23312         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
23313         (__open_nocancel): Likewise.
23314         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
23315         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
23316         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
23317
23318 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23319
23320         [BZ #14841]
23321         * resolv/gethnamaddr.c (getanswer): Skip logging if
23322         RES_USE_DNSSEC is set.
23323         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
23324
23325 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
23326
23327         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
23328
23329 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
23330
23331         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
23332         201304L, for Unicode 7.
23333
23334 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
23335
23336         [BZ #17836]
23337         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
23338         shared library.  Add gmon-start.os otherwise.
23339         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
23340         $(objpfx)gmon-start.os if builing shared library.
23341         ($(objpfx)g$(static-start-installed-name)): Likewise.
23342
23343 2015-02-23  Andreas Schwab  <schwab@suse.de>
23344
23345         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
23346
23347 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23348
23349         [BZ #17269]
23350         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
23351         (enlarge_userbuf): Likewise.
23352
23353 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
23354
23355         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
23356         * math/atest-exp.c (TIMEOUT): Adjust to 200.
23357         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
23358         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
23359
23360 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
23361
23362         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
23363         expression inside statement expression.
23364
23365 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
23366
23367         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
23368         <sysdeps/nptl/lowlevellock.h> and remove macros and
23369         functions that are now defined there.
23370         (SYS_futex): Remove.
23371         (lll_compare_and_swap): Remove.
23372         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
23373
23374 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
23375
23376         [BZ #17999]
23377         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
23378         instead of scandirat.
23379         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
23380         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
23381         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
23382         __scandirat.
23383         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
23384         (__scandirat): Declare.  Use libc_hidden_proto.
23385         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
23386         Remove variable.
23387         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
23388
23389 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
23390
23391         [BZ #15319]
23392         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
23393         (MO): New macro.
23394         (__ieee754_atan2): For results with small absolute value, force
23395         underflow exception and remove excess range and precision from
23396         return value.
23397         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
23398         (MO): New macro.
23399         (__ieee754_atan2f): For results with small absolute value, force
23400         underflow exception and remove excess range and precision from
23401         return value.
23402         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
23403         (MO): New macro.
23404         (__atan): For results with small absolute value, force underflow
23405         exception and remove excess range and precision from return value.
23406         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
23407         (MO): New macro.
23408         (__atanf): For results with small absolute value, force underflow
23409         exception and remove excess range and precision from return value.
23410         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
23411         <math.h>.
23412         (__ieee754_atan2): Force underflow exception for results with
23413         small absolute value.
23414         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
23415         <math_private.h>.
23416         (atan): Force underflow exception for results with small absolute
23417         value.
23418         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
23419         (__atanf): Force underflow exception for results with small
23420         absolute value.
23421         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
23422         <math.h>.
23423         (__atanl): Force underflow exception for results with small
23424         absolute value.
23425         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
23426         (__atanl): Force underflow exception for results with small
23427         absolute value.
23428         * sysdeps/x86/fpu/bits/mathinline.h
23429         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
23430         (__ieee754_atan2): Only define inline for long double.
23431         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
23432         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
23433         * math/auto-libm-test-in: Do not mark underflow exceptions as
23434         possibly missing for bug 15319.  Add more tests of atan2.
23435         * math/auto-libm-test-out: Regenerated.
23436         * math/libm-test.inc (casin_test_data): Do not mark underflow
23437         exceptions as possibly missing for bug 15319.
23438         (casinh_test_data): Likewise.
23439         * sysdeps/i386/fpu/libm-test-ulps: Update.
23440
23441 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
23442
23443         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
23444         * sysdeps/mips/bits/endian.h: Fix comments.
23445
23446 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
23447
23448         [BZ #17996]
23449         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
23450         (hdestroy_r): Likewise.
23451         (hsearch_r): Likewise.
23452         (__hcreate_r): Declare and use libc_hidden_proto.
23453         (__hdestroy_r): Likewise.
23454         (__hsearch_r): Likewise.
23455         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
23456         (hcreate): Call __hcreate_r instead of hcreate_r.
23457         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
23458         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
23459         as weak alias of __hcreate_r.
23460         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
23461         __hdestroy_r.
23462         (hsearch_r): Rename to __hsearch_r and define as weak alias of
23463         __hsearch_r.
23464         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
23465         Remove variable.
23466         (test-xfail-XPG4/search.h/linknamespace): Likewise.
23467         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
23468         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
23469         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
23470
23471 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
23472
23473         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
23474         arena_lock into a single arena_get.
23475
23476 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
23477
23478         * dl-reloc.c: Inlucde libc-internal.h.
23479         (_dl_try_allocate_static_tls): Call ALIGN_UP.
23480         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
23481         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
23482         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
23483         (grow_heap): Likewise.
23484         * malloc/malloc.c: Include libc-internal.h.
23485         (do_check_malloc): Call powerof2.
23486         (sysmalloc): Use pagesize. Call ALIGN_UP.
23487         (systrim): Use pagesize.
23488         (mremap_chunk): Use pagesize. Call ALIGN_UP.
23489         (__libc_valloc): Use pagesize.
23490         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
23491
23492 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
23493
23494         [BZ #17991]
23495         * include/sys/resource.h (__getrlimit64): Declare.  Use
23496         libc_hidden_proto.
23497         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
23498         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
23499         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
23500         getrlimit64.
23501         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
23502         __getrlimit64.
23503         [!getrlimit64] (getrlimit64): Define as weak alias of
23504         __getrlimit64.  Use libc_hidden_weak.
23505         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
23506         using __getrlimit64 not __new_getrlimit64.
23507         (__GI_getrlimit64): Likewise.
23508         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
23509         Likewise.
23510         (__GI_getrlimit64): Likewise.
23511         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
23512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
23513         (getrlimit): Add __getrlimit64 alias.
23514         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
23515         Likewise.
23516         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
23517         Remove variable.
23518         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
23519         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
23520
23521 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
23522
23523         * libio/fileops.c: Add missing sys/mman.h
23524         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
23525
23526 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
23527
23528         * manual/math.texi (Errors in Math Functions): Clarify goals
23529         regarding inexact and underflow exceptions.
23530
23531 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
23532
23533         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
23534         * sysdeps/mips/memset.S: Ditto.
23535
23536 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
23537
23538         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
23539
23540 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23541
23542         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
23543         (__v1longjmp): Remove versioned symbol.
23544         (__v1siglongjmp): Remove alias and versioned symbol.
23545         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
23546         (__v2siglongjmp): Likewise.
23547
23548 2015-02-16  Torvald Riegel  <triegel@redhat.com>
23549
23550         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
23551
23552 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
23553
23554         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
23555
23556 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
23557
23558         [BZ #17987]
23559         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
23560         zero result does not depend on the sign resulting from
23561         subtraction.
23562         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
23563         Likewise.
23564         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
23565         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
23566         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
23567         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
23568         * math/libm-test.inc (remquo_test_data): Add more tests.
23569
23570 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23571
23572         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
23573         Problem reported by J William Piggott.
23574
23575 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
23576
23577         [BZ #17978]
23578         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
23579         products 4 * y and 2 * y where those would overflow.
23580         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
23581         Likewise.
23582         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
23583         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
23584         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
23585         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
23586         * math/libm-test.inc (remquo_test_data): Add more tests.
23587
23588         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
23589
23590         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
23591         [defined _COMPILING_NEWLIB].
23592         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
23593         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
23594
23595         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
23596         [!defined __mips_isa_rev || __mips_isa_rev < 6].
23597
23598 2015-02-16  Torvald Riegel  <triegel@redhat.com>
23599
23600         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
23601         acquired.
23602
23603 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
23604
23605         [BZ #17792]
23606         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
23607         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
23608         HOST_STACK_END_ADDR): Likewise.
23609
23610 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
23611
23612         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
23613         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
23614         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
23615
23616 2015-02-13  Roland McGrath  <roland@hack.frob.com>
23617
23618         * sysdeps/generic/c++-types.data: New file.
23619         * sysdeps/generic/ld.abilist: New file.
23620         * sysdeps/generic/libBrokenLocale.abilist: New file.
23621         * sysdeps/generic/libanl.abilist: New file.
23622         * sysdeps/generic/libc.abilist: New file.
23623         * sysdeps/generic/libcrypt.abilist: New file.
23624         * sysdeps/generic/libdl.abilist: New file.
23625         * sysdeps/generic/libm.abilist: New file.
23626         * sysdeps/generic/libpthread.abilist: New file.
23627         * sysdeps/generic/libresolv.abilist: New file.
23628         * sysdeps/generic/librt.abilist: New file.
23629
23630 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
23631
23632         [BZ #17569]
23633         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
23634         Compute absolute value of x as modified by fmod, not original
23635         value of x.
23636         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
23637         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
23638         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
23639         RUN_TEST_ffI_f1_mod8.
23640         (remquo_test_data): Add more tests.
23641
23642 2015-02-13  Roland McGrath  <roland@hack.frob.com>
23643
23644         * sysdeps/init_array/pt-crti.S: New file.
23645
23646 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
23647
23648         [BZ #17967]
23649         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
23650         __builtin_fmaf instead of relying on contraction of a * b + c.
23651
23652 2015-02-12  J William Piggott  <elseifthen@gmx.com>
23653
23654         [BZ #17969]
23655         * manual/time.texi: correct the zoneinfo path in the TZ Variable
23656         node.
23657
23658 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
23659
23660         [BZ #17964]
23661         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
23662         __builtin_fma instead of relying on contraction of a * b + c.
23663
23664 2015-02-12  Roland McGrath  <roland@hack.frob.com>
23665
23666         * Makeconfig (ASFLAGS): Add -Werror=undef.
23667         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
23668         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
23669         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
23670
23671         * Makeconfig (after-link): New variable.
23672         (+link-pie, +link-pie-tests): Use it.
23673         (+link-static, +link-static-tests): Likewise.
23674         (+link, +link-tests): Likewise.
23675         * Makerules (build-module, build-module-asneeded): Likewise.
23676         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
23677         Likewise.
23678         * elf/Makefile ($(objpfx)ld.so): Likewise.
23679
23680 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
23681
23682         [BZ #17965]
23683         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
23684         both struct timeval and struct timespec.
23685
23686 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
23687
23688         [BZ #16560]
23689         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
23690         and redefine.
23691         (__ieee754_exp2l): Do not multiply small fractional parts by
23692         M_LN2l.
23693         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
23694         small argument.
23695         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
23696         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
23697         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
23698         * math/auto-libm-test-in: Add more tests of exp2.
23699         * math/auto-libm-test-out: Regenerated.
23700
23701 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23702
23703         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
23704         unaligned path.
23705
23706 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23707
23708         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
23709         little endian.
23710
23711 2015-02-12  Andreas Schwab  <schwab@suse.de>
23712
23713         [BZ #15790]
23714         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
23715         Filter out elision flags from value returned in kind.
23716         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
23717         * nptl/tst-pthread-mutexattr.c: New file.
23718
23719 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23720
23721         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
23722         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
23723         into gnu-gnu, and update comment to refer to abi-tags.
23724
23725 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
23726
23727         [BZ #15467]
23728         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
23729         (__sincos): Set errno to EDOM for infinite argument.
23730         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
23731         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
23732         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
23733         (__sincosl): Set errno to EDOM for infinite argument.
23734         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
23735         (__sincosl): Set errno to EDOM for infinite argument.
23736         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
23737         (__sincosl): Set errno to EDOM for infinite argument.
23738         * math/libm-test.inc (sincos_test_data): Test errno setting.
23739
23740 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
23741
23742         * string/strxfrm_l.c: Remove #define STRCMP.
23743         * string/strcoll_l.c: Remove #define STRLEN.
23744         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
23745         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
23746
23747 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
23748
23749         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
23750         * sysdeps/mips/mips32/sfp-machine.h: ... here.
23751         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
23752         * sysdeps/mips/mips64/Makefile: ... here.
23753         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
23754         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
23755         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
23756         * sysdeps/mips/mips64/sfp-machine.h: ... here.
23757         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
23758         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
23759         * sysdeps/mips/mips64/n64/Implies: Likewise.
23760
23761 2015-02-10  Roland McGrath  <roland@hack.frob.com>
23762
23763         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
23764         <sys/time.h>, <string.h>, and <errno.h>.
23765         (dest_offset, dest_address, value, zero): Remove unused variables.
23766         (ldouble): Remove typedef.
23767         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
23768         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
23769         1).  Fix code style.
23770         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
23771         (check): Function removed.
23772         (CHECK): New macro.
23773         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
23774         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
23775         Don't call set_sigaction_FP and remove_sigaction_FP here.
23776         (ldouble_test): Just use 'long double' as macro argument, no need for
23777         the 'ldouble' typedef.
23778         (do_test): Set up SIGFPE handler at start, using plain signal rather
23779         than sigaction.  Fix code style.
23780
23781 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
23782
23783         [BZ #17949]
23784         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
23785         jump label.
23786
23787 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
23788
23789         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
23790         * sysdeps/powerpc/powerpc32/configure: Regenerated.
23791
23792         * sysdeps/powerpc/configure.ac: Remove file.
23793         * sysdeps/powerpc/configure: Likewise.
23794
23795         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
23796         [sysdep_routines]: Remove wordcopy-power6 object.
23797         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
23798         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
23799         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
23800         (__memmove_ppc32): Likewise.
23801         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
23802         file.
23803         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
23804         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
23805         Remove preprocessor.
23806
23807         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
23808         [sysdep_routines]: Remove wide chars objects.
23809         [wcsmbs]: New rule for wide char objects.
23810
23811         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23812         Remove wordcopy-power6 obejct.
23813         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
23814         Use local call for wordcopy and memcpy symbols.
23815         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
23816         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
23817         implementation for loader.
23818         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
23819
23820         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23821         Remove wordcopy-power7 object.
23822         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
23823         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
23824         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
23825         (_wordcopy_fwd_dest_aligned): Likewise.
23826         (_wordcopy_bwd_aligned): Likewise.
23827         (_wordcopy_bwd_dest_aligned): Likewise.
23828
23829         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
23830         Rewrite to call __memmove_ppc instead of include default
23831         implementation.
23832
23833         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23834         Remove wide chars objects.
23835         [wcsmbs]: New rule for wide char objects.
23836
23837 2015-02-09  Andreas Schwab  <schwab@suse.de>
23838
23839         [BZ #17912]
23840         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
23841         in terms of __O_DIRECTORY.
23842
23843 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23844
23845         * time/getdate.c: Include <stdbool.h>.
23846         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
23847         call PTR_MANGLE.
23848         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
23849         PTR_DEMANGLE.
23850
23851 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23852
23853         Add ersatz _Static_assert on older C hosts
23854         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
23855         pre-C11 C platform that is not known to support _Static_assert.
23856
23857 2015-02-07  Richard Braun  <rbraun@sceen.net>
23858
23859         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
23860         sigstate.
23861         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
23862
23863 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23864
23865         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
23866         priority against unexistent AIO_PRIO_DELTA_MAX.
23867         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
23868         instead of int.
23869         * misc/fchflags.c (fchflags): Likewise.
23870         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
23871         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
23872         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
23873         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
23874         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
23875         Declare macros.
23876         [__USE_MISC] (chflags, fchflags): Declare functions.
23877         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
23878         EINVAL when nfds is greater than FD_SETSIZE.
23879         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
23880         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
23881         45.
23882         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
23883         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
23884         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
23885         MACH_RCV_TIMED_OUT.
23886         * hurd/hurd/signal.h (_hurd_self_sigstate,
23887         _hurd_critical_section_lock, _hurd_critical_section_unlock):
23888         Explicit casts from void *.
23889         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
23890         * abi-tags: Rename gnu-gnu os into gnu.
23891
23892         [BZ #4719]
23893         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
23894         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
23895         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
23896         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
23897         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
23898         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
23899
23900         [BZ #17944]
23901         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
23902         duplicates ADDR->sun_path with sockaddr LEN limitation.
23903         * sysdeps/mach/hurd/connect.c: Include <string.h>
23904         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
23905         * sysdeps/mach/hurd/sendmsg.c: Likewise.
23906         * sysdeps/mach/hurd/sendto.c: Likewise.
23907         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
23908         implementing it by hand.
23909
23910 2015-02-06  Roland McGrath  <roland@hack.frob.com>
23911
23912         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
23913         Use sfi_breg on ldr.
23914         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
23915         Likewise.
23916
23917         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
23918         it's defined.
23919         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
23920         Test SIGSETXID only if it's defined.
23921
23922         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
23923
23924         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
23925         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
23926
23927         * nptl/tst-align2.c: Moved ...
23928         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
23929         * nptl/Makefile (tests): Remove tst-align2.
23930         * sysdeps/unix/sysv/linux/Makefile
23931         [$(subdir) = nptl] (tests): Add tst-align-clone.
23932         * nptl/tst-getpid1.c: Moved ...
23933         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
23934         * nptl/tst-getpid2.c: Moved ...
23935         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
23936         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
23937         * sysdeps/unix/sysv/linux/Makefile
23938         [$(subdir) = nptl] (tests): ... here.
23939         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
23940         * sysdeps/unix/sysv/linux/Makefile
23941         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
23942
23943         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
23944         Drop trailing \n from perror argument.  Use return rather than exit.
23945
23946         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
23947         on [SA_SIGINFO].
23948         * nptl/tst-cancel21.c (do_test): Likewise.
23949         * debug/tst-backtrace6.c: Include <signal.h> first thing.
23950         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
23951         [!SA_SIGINFO]: Make it a stub test.
23952
23953         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
23954         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
23955
23956         * posix/tst-getlogin.c: Move to ...
23957         * login/tst-getlogin.c: ... here.
23958         * posix/Makefile (tests): Move tst-getlogin to ...
23959         * login/Makefile (tests): ... here.
23960
23961         * libio/tst-atime.c (do_test): Move local variables SV and E
23962         inside [ST_NOATIME] conditional.
23963
23964         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
23965
23966         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
23967
23968         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
23969         (wait_code): New function replaces macro.
23970         Call nanosleep rather than syscall.
23971
23972         * nptl/pt-system.c: Rewritten.  Put everything under
23973         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
23974         Use IFUNC to redirect when possible.
23975
23976         * nptl/pt-longjmp.c: Rewritten.  Put everything under
23977         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
23978         Use IFUNC to redirect when possible.
23979
23980         * nptl/pt-fork.c: Rewritten.  Put everything under
23981         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
23982         Use IFUNC to redirect when possible.
23983         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
23984
23985         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
23986         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
23987         unconditionally nowadays.  This included the only reference to
23988         __vdso_clock_gettime that appears outside libc proper.
23989         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
23990         Remove version set (containing only __vdso_clock_gettime).
23991         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
23992         Add attribute_hidden.
23993         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
23994         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
23995         libc_hidden_data_def.
23996         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
23997         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
23998
23999         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
24000         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
24001         setrpcent, and getrpcport to ...
24002         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
24003         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
24004         getrpcbynumber_r, and getrpcent_r to ...
24005         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
24006         * inet/getrpcbyname.c: Moved ...
24007         * sunrpc/getrpcbyname.c: ... here.
24008         * inet/getrpcbyname_r.c: Moved ...
24009         * sunrpc/getrpcbyname_r.c: ... here.
24010         * inet/getrpcbynumber.c: Moved ...
24011         * sunrpc/getrpcbynumber.c: ... here.
24012         * inet/getrpcbynumber_r.c: Moved ...
24013         * sunrpc/getrpcbynumber_r.c: ... here.
24014         * inet/getrpcent.c: Moved ...
24015         * sunrpc/getrpcent.c: ... here.
24016         * inet/getrpcent_r.c: Moved ...
24017         * sunrpc/getrpcent_r.c: ... here.
24018         * inet/Makefile (routines): Move those to ...
24019         * sunrpc/Makefile (routines): ... here.
24020         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
24021         the $(subdirs) list.
24022         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
24023         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
24024         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
24025         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
24026
24027         * elf/Makefile (routines): Include $(all-dl-routines), not just
24028         $(dl-routines).
24029         (rtld-routines): Likewise.  Use = rather than :=.
24030         * sysdeps/aarch64/Makefile [$(subdir) = elf]
24031         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
24032         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
24033         * sysdeps/arm/Makefile: Likewise.
24034         * sysdeps/i386/Makefile: Likewise.
24035         * sysdeps/x86_64/Makefile: Likewise.
24036         * sysdeps/hppa/Makefile [$(subdir) = elf]
24037         (sysdep_routines, sysdep-rtld-routines): Don't add
24038         $(sysdep-dl-routines) to these.
24039         * sysdeps/ia64/Makefile: Likewise.
24040         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
24041         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
24042         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
24043         Don't add dl-static to these; sysdep-dl-routines alone is enough.
24044         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
24045         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
24046         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
24047         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
24048         * sysdeps/powerpc/Makefile [$(subdir) = elf]
24049         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
24050         these; sysdep-dl-routines alone is enough.
24051
24052 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
24053
24054         [BZ #17932]
24055         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
24056         where multiplication results in zero and third argument is finite
24057         and nonzero.
24058         * math/auto-libm-test-in: Add more tests of fma.
24059         * math/auto-libm-test-out: Regenerated.
24060
24061         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
24062         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
24063         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
24064         (_FP_CMP_EQ): Likewise.
24065         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
24066
24067         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
24068         extra argument CHECK_NAN.  Redefine as wrapper around
24069         _FP_EXTEND_CNAN.
24070
24071 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
24072
24073         * version.h (RELEASE): Set to "stable".
24074         (VERSION): Set to "2.21"
24075         * include/features.h (__GLIBC_MINOR__): Set to 21.
24076
24077         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
24078
24079 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24080             Paul Eggert  <eggert@cs.ucla.edu>
24081
24082         [BZ #16618]
24083         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
24084         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
24085         size in bytes. Store needed elements in wpmax. Use needed size
24086         in bytes for extend_alloca.
24087
24088 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
24089
24090         * manual/install.texi: Latest tested versions are GCC 4.9.2,
24091         binutls 2.25, and texinfo 5.2.
24092         * INSTALL: Regenerate.
24093         * sysdeps/nios2/configure: Regenerate.
24094         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
24095         * manual/contrib.texi: Update.
24096         * po/be.po: Update.
24097         * po/bg.po: Update.
24098         * po/ca.po: Update.
24099         * po/cs.po: Update.
24100         * po/da.po: Update.
24101         * po/de.po: Update.
24102         * po/el.po: Update.
24103         * po/eo.po: Update.
24104         * po/es.po: Update.
24105         * po/fi.po: Update.
24106         * po/fr.po: Update.
24107         * po/gl.po: Update.
24108         * po/hr.po: Update.
24109         * po/hu.po: Update.
24110         * po/ia.po: Update.
24111         * po/id.po: Update.
24112         * po/it.po: Update.
24113         * po/ja.po: Update.
24114         * po/ko.po: Update.
24115         * po/lt.po: Update.
24116         * po/nb.po: Update.
24117         * po/nl.po: Update.
24118         * po/pl.po: Update.
24119         * po/pt_BR.po: Update.
24120         * po/ru.po: Update.
24121         * po/rw.po: Update.
24122         * po/sk.po: Update.
24123         * po/sl.po: Update.
24124         * po/sv.po: Update.
24125         * po/tr.po: Update.
24126         * po/uk.po: Update.
24127         * po/vi.po: Update.
24128         * po/zh_CN.po: Update.
24129         * po/zh_TW.po: Update.
24130
24131         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
24132         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
24133         * sysdeps/hppa/dl-irel.h: Remove #warning.
24134         * sysdeps/hppa/entry.h: Provide prototype for
24135         __canonicalize_funcptr_for_compare and cast argument.
24136         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
24137         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
24138         * sysdeps/hppa/sotruss-lib.c: New file.
24139         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
24140         (atomic_compare_and_exchange_val_acq): Use __typeof__.
24141         (atomic_compare_and_exchange_bool_acq): Likewise.
24142         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
24143         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
24144
24145         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
24146         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
24147         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
24148
24149 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
24150
24151         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
24152         called function in non-PIC case.
24153
24154 2015-01-31  David S. Miller  <davem@davemloft.net>
24155
24156         * sysdeps/sparc/sparc32/bits/atomic.h
24157         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
24158         unlock not after it.
24159         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
24160         volatile register usage warnings from the compiler.
24161
24162         * sysdeps/sparc/nptl/sem_init.c: Delete.
24163         * sysdeps/sparc/nptl/sem_post.c: Delete.
24164         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
24165         * sysdeps/sparc/nptl/sem_wait.c: Delete.
24166         * sysdeps/sparc/sparc32/sem_init.c: New file.
24167         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
24168         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
24169         padding explicitly initialized.
24170         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
24171         padding for in-semaphore spinlock.
24172         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
24173         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
24174         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
24175         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
24176         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
24177         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
24178         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
24179         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
24180         version.
24181         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
24182         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
24183
24184 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
24185
24186         [BZ #17801]
24187         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24188         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
24189         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
24190         New.
24191         (index_AVX_Fast_Unaligned_Load): Likewise.
24192         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
24193         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
24194         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
24195         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
24196         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
24197         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
24198         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
24199         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
24200         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
24201
24202 2015-01-29  Andreas Schwab  <schwab@suse.de>
24203
24204         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
24205
24206 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
24207
24208         [BZ #17892]
24209         * nscd/nscd_stat.c (send_stats): Initialize DATA.
24210
24211 2015-01-28  Martin Sebor  <msebor@redhat.com>
24212
24213         * math/README.libm-test: Clarify. Add "How to read the test output."
24214
24215 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
24216
24217         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
24218         Define to 0.
24219
24220 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
24221
24222         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
24223         (__HAVE_64B_ATOMICS): Define to 0.
24224
24225 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
24226
24227         [BZ #17885]
24228         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
24229         value to set as new flag.
24230
24231         [BZ #16576]
24232         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
24233         and use _ARCH_PPCSQ instead.
24234         (__ieee754_sqrt): Likewise.
24235         (__ieee754_sqrtf): Likewise.
24236         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
24237         _ARCH_PPCSQ is defined.
24238         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
24239         fsqrt instruction.
24240         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
24241         _ARCH_PPCSQ is defined.
24242         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
24243         fsqrts instruction.
24244         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
24245
24246 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24247
24248         * iconv/loop.c: Suppress array out of bound warning caused by GCC
24249         bug (GCC BZ #64739).
24250
24251 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
24252
24253         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
24254         Mark _retval as used.
24255         (lll_futex_wake_unlock): Likewise.
24256         (lll_futex_timed_wait_requeue_pi): Likewise.
24257
24258         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24259         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
24260         register variables.
24261
24262         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
24263         libm_hidden_def.
24264
24265         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
24266         (__bswap_64): Mark as __always_inline.
24267
24268 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
24269
24270         [BZ #15378]
24271         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
24272         when none of the search directories exist.
24273
24274 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
24275
24276         [BZ #17869]
24277         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
24278         power8 in .machine directive.
24279
24280         [BZ #17868]
24281         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
24282         set dependency from opd value.
24283
24284 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
24285
24286         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24287         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
24288         architecture.
24289
24290 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
24291
24292         [BZ #17870]
24293         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
24294         with uint64_t.
24295         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
24296         (uint64_t) 1.
24297         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
24298         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
24299         Replace 1UL with (uint64_t) 1.
24300         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
24301         int with uint64_t.
24302
24303 2015-01-23  Roland McGrath  <roland@hack.frob.com>
24304
24305         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
24306         (if_freenameindex): Likewise.
24307
24308         * resource/getrlimit64.c: Add missing libc_hidden_def.
24309
24310 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
24311
24312         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
24313         __label__.
24314         (_FP_FMA): Likewise.
24315         (_FP_TO_INT_ROUND): Likewise.
24316         (_FP_FROM_INT): Likewise.
24317
24318 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24319
24320         [BZ #16418]
24321         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
24322         Make code racy and cancel safe.
24323
24324 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
24325
24326         * sysdeps/arm/unwind-resume.h: Fix copyright year.
24327         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
24328         attribution.
24329
24330         * pwd/tst-getpw.c: Rewrite.
24331
24332         [BZ #17702]
24333         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
24334         (modules-names): Add moddummy1 and moddummy2.
24335         ($(objpfx)tst-rec-dlopen): Define.
24336         * dlfcn/moddummy1.c: New file.
24337         * dlfcn/moddummy2.c: New file.
24338         * dlfcn/tst-rec-dlopen.c: New file.
24339         * elf/dl-cache.c (_dl_load_cache_lookup):
24340         Return char*. Copy result with alloca/strcpy/strdup.
24341         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
24342         returns char*. Free cached. If not saving realname
24343         free cached.
24344         * elf/dl-open.c (dl_open_worker): Do not assert that
24345         _r_debug->r_state is RT_CONSISTENT.
24346         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
24347         returns char*.
24348
24349 2015-01-21  Torvald Riegel  <triegel@redhat.com>
24350             Carlos O'Donell  <carlos@redhat.com>
24351
24352         [BZ #12674]
24353         * nptl/sem_waitcommon.c: New file.
24354         * nptl/sem_wait.c: Include sem_waitcommon.c.
24355         (__sem_wait_cleanup, do_futex_wait): Remove.
24356         (__new_sem_wait): Adapt.
24357         (__new_sem_trywait): New function.
24358         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
24359         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
24360         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
24361         (sem_timedwait): Adapt.
24362         * nptl/sem_post.c (__new_sem_post): Adapt.
24363         (futex_wake): New function.
24364         (__old_sem_post): Add release MO fence.
24365         * nptl/sem_open.c (sem_open): Adapt.
24366         * nptl/sem_init.c (__new_sem_init): Adapt.
24367         (futex_private_if_supported): New function.
24368         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
24369         (__old_sem_getvalue): Add using previous code.
24370         * sysdeps/nptl/internaltypes.h: Adapt.
24371         * nptl/tst-sem13.c (do_test): Adapt.
24372         * nptl/tst-sem11.c (main): Adapt.
24373         * nptl/sem_trywait.c: Remove.
24374         * nptl/DESIGN-sem.txt: Remove.
24375         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
24376         (gen-as-const-headers): Remove structsem.sym.
24377         * nptl/structsem.sym: Remove.
24378         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
24379         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
24380         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
24381         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
24382         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
24383         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
24384         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
24385         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
24386         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
24387         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
24388         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
24389         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
24390         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
24391         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
24392         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
24393         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
24394         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
24395         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
24396         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
24397         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
24398         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
24399         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
24400
24401 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
24402
24403         * INSTALL: Regenerated.
24404
24405         * po/libc.pot: Regenerated.
24406
24407 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
24408             Sandra Loosemore  <sandra@codesourcery.com>
24409             Andrew Jenner  <andrew@codesourcery.com>
24410             Joseph Myers  <joseph@codesourcery.com>
24411             Nathan Sidwell  <nathan@codesourcery.com>
24412
24413         * NEWS: Mention new Nios II port.
24414         * sysdeps/nios2/Implies: New file.
24415         * sysdeps/nios2/Makefile: New file.
24416         * sysdeps/nios2/Subdirs: New file.
24417         * sysdeps/nios2/Versions: New file.
24418         * sysdeps/nios2/__longjmp.S: New file.
24419         * sysdeps/nios2/abort-instr.h: New file.
24420         * sysdeps/nios2/backtrace.c: New file.
24421         * sysdeps/nios2/bits/endian.h: New file.
24422         * sysdeps/nios2/bits/fenv.h: New file.
24423         * sysdeps/nios2/bits/link.h: New file.
24424         * sysdeps/nios2/bits/setjmp.h: New file.
24425         * sysdeps/nios2/bsd-_setjmp.S: New file.
24426         * sysdeps/nios2/bsd-setjmp.S: New file.
24427         * sysdeps/nios2/configure: New generated file.
24428         * sysdeps/nios2/configure.ac: New file.
24429         * sysdeps/nios2/crti.S: New file.
24430         * sysdeps/nios2/crtn.S: New file.
24431         * sysdeps/nios2/dl-init.c: New file.
24432         * sysdeps/nios2/dl-machine.h: New file.
24433         * sysdeps/nios2/dl-sysdep.h: New file.
24434         * sysdeps/nios2/dl-tls.h: New file.
24435         * sysdeps/nios2/dl-trampoline.S: New file.
24436         * sysdeps/nios2/gccframe.h: New file.
24437         * sysdeps/nios2/gmp-mparam.h: New file.
24438         * sysdeps/nios2/jmpbuf-offsets.h: New file.
24439         * sysdeps/nios2/jmpbuf-unwind.h: New file.
24440         * sysdeps/nios2/ldsodefs.h: New file.
24441         * sysdeps/nios2/libc-tls.c: New file.
24442         * sysdeps/nios2/libm-test-ulps: New file.
24443         * sysdeps/nios2/machine-gmon.h: New file.
24444         * sysdeps/nios2/math-tests.h: New file.
24445         * sysdeps/nios2/math_private.h: New file.
24446         * sysdeps/nios2/memusage.h: New file.
24447         * sysdeps/nios2/nptl/Makefile: New file.
24448         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
24449         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
24450         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
24451         * sysdeps/nios2/nptl/pthreaddef.h: New file.
24452         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
24453         * sysdeps/nios2/nptl/tls.h: New file.
24454         * sysdeps/nios2/preconfigure: New file.
24455         * sysdeps/nios2/s_fma.c: New file.
24456         * sysdeps/nios2/s_fmaf.c: New file.
24457         * sysdeps/nios2/setjmp.S: New file.
24458         * sysdeps/nios2/sfp-machine.h: New file.
24459         * sysdeps/nios2/sotruss-lib.c: New file.
24460         * sysdeps/nios2/stackguard-macros.h: New file.
24461         * sysdeps/nios2/stackinfo.h: New file.
24462         * sysdeps/nios2/start.S: New file.
24463         * sysdeps/nios2/sysdep.h: New file.
24464         * sysdeps/nios2/tls-macros.h: New file.
24465         * sysdeps/nios2/tst-audit.h: New file.
24466         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
24467         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
24468         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
24469         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
24470         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
24471         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
24472         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
24473         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
24474         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
24475         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
24476         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
24477         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
24478         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
24479         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
24480         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
24481         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
24482         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
24483         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
24484         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
24485         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
24486         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
24487         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
24488         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
24489         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
24490         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
24491         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
24492         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
24493         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
24494         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
24495         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
24496         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
24497         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
24498         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
24499         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
24500         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
24501         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
24502         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
24503         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
24504         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
24505         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
24506         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
24507         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
24508         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
24509         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
24510
24511 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
24512
24513         [BZ #17844]
24514         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
24515         (getutent): Use weak_alias in non SHARED case
24516         and default_symbol_version in SHARED case.
24517         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
24518         (getutent_r, pututline): Likewise.
24519         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
24520         (getutid): Likewise.
24521         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
24522         (getutid_r): Likewise.
24523         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
24524         (getutline): Likewise.
24525         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
24526         (getutline_r): Likewise.
24527         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
24528         (updwtmp): Likewise.
24529
24530 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
24531
24532         [BZ #17848]
24533         * sysdeps/s390/s390-32/memcmp.S
24534         (memcmp_g5): Rename to __memcmp_g5.
24535         * sysdeps/s390/s390-32/memcpy.S
24536         (memcpy_g5): Rename to __memcpy_g5.
24537         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24538         (memcpy_mvcle) Rename to __memcpy_mvcle.
24539         * sysdeps/s390/s390-32/memset.S
24540         (memset_g5): Rename to __memset_g5.
24541         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
24542         (IFUNC_RESOLVE): Prefix ifunc-resolve function
24543         and use prefixed functions.
24544         * sysdeps/s390/s390-32/multiarch/memcmp.S
24545         (memcmp_z196): Rename to __memcmp_z196.
24546         (memcmp_z10): Rename to __memcmp_z10.
24547         (memcmp): Set alias to __memcmp_g5.
24548         (bcmp): Set alias to __memcmp_g5.
24549         * sysdeps/s390/s390-32/multiarch/memcpy.S
24550         (memcpy_z196): Rename to __memcpy_z196.
24551         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24552         (memcpy_z10): Rename to __memcpy_z10.
24553         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24554         (memcpy): Set alias to __memcpy_g5.
24555         * sysdeps/s390/s390-32/multiarch/memset.S
24556         (memset_z196): Rename to __memset_z196.
24557         Jump to __memset_mvcle instead of memset_mvcle.
24558         (memset_z10): Rename to __memset_z10.
24559         Jump to __memset_mvcle instead of memset_mvcle.
24560         (memset_mvcle) Rename to __memset_mvcle.
24561         (memset): Set alias to __memset_g5.
24562         * sysdeps/s390/s390-64/memcmp.S
24563         (memcmp_z900): Rename to __memcmp_z900.
24564         * sysdeps/s390/s390-64/memcpy.S
24565         (memcpy_z900): Rename to __memcpy_z900.
24566         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24567         (memcpy_mvcle) Rename to __memcpy_mvcle.
24568         * sysdeps/s390/s390-64/memset.S
24569         (memset_z900): Rename to __memset_z900.
24570         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
24571         (IFUNC_RESOLVE): Prefix ifunc-resolve function
24572         and use prefixed functions.
24573         * sysdeps/s390/s390-64/multiarch/memcmp.S
24574         (memcmp_z196): Rename to __memcmp_z196.
24575         (memcmp_z10): Rename to __memcmp_z10.
24576         (memcmp): Set alias to __memcmp_z900.
24577         (bcmp): Set alias to __memcmp_z900.
24578         * sysdeps/s390/s390-64/multiarch/memcpy.S
24579         (memcpy_z196): Rename to __memcpy_z196.
24580         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24581         (memcpy_z10): Rename to __memcpy_z10.
24582         Jump to __memcpy_mvcle instead of memcpy_mvcle.
24583         (memcpy): Set alias to __memcpy_z900.
24584         * sysdeps/s390/s390-64/multiarch/memset.S
24585         (memset_z196): Rename to __memset_z196.
24586         Jump to __memset_mvcle instead of memset_mvcle.
24587         (memset_z10): Rename to __memset_z10.
24588         Jump to __memset_mvcle instead of memset_mvcle.
24589         (memset_mvcle) Rename to __memset_mvcle.
24590         (memset): Set alias to __memset_z900.
24591
24592 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
24593
24594         [BZ #17748]
24595         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
24596         __fesetenv instead of fesetenv.
24597
24598 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
24599
24600         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
24601         macro.
24602
24603 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24604
24605         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
24606         regression on LE.
24607
24608         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
24609         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
24610         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
24611         strncmp-power8 object.
24612         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24613         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
24614         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
24615         * NEWS: Update.
24616
24617 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
24618             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24619
24620         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
24621         trailing byte check.
24622
24623 2015-01-13  David S. Miller  <davem@davemloft.net>
24624
24625         * include/signal.h (__sigreturn): Guard with __USE_MISC.
24626
24627 2015-01-13  Roland McGrath  <roland@hack.frob.com>
24628
24629         * login/logout.c (logout): Use memset rather than bzero.
24630         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
24631         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
24632         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
24633         (_gethtbyaddr): Likewise.
24634         * locale/programs/simple-hash.c (bcopy): Macro removed.
24635
24636 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24637
24638         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24639         Add strcmp-power8 object.
24640         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24641         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
24642         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
24643         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
24644         __strcmp_power8 implementation.
24645         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
24646         * NEWS: Update.
24647
24648         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
24649         Add strncpy-power8 and stpncpy-power8 objects.
24650         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24651         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
24652         implementations.
24653         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
24654         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
24655         __stpncpy_power8 implementation.
24656         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
24657         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
24658         __strncpy_power8 implementation.
24659         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
24660         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
24661         * NEWS: Update.
24662
24663         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
24664         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
24665         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
24666
24667         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
24668         strncat-power8 object.
24669         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
24670         __strcat_power8 implementation.
24671         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24672         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
24673         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
24674         optimized strcat for power8.
24675
24676         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
24677         strcpy-power8 and stpcpy-power8 objects.
24678         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
24679         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
24680         implementations.
24681         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
24682         multiarch stpcpy implementation for POWER8.
24683         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
24684         multiarch strcpy implementation for POWER8.
24685         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
24686         __strcpy_power8 function.
24687         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
24688         stpcpy for POWER8.
24689         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
24690         strcpy for POWER8.
24691         * NEWS: Update.
24692
24693 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
24694
24695         [BZ #16009]
24696         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
24697         weights and rules. Use do_xfrm_cached if data fits in cache,
24698         do_xfrm otherwise.  Moved former main loop to...
24699         * (do_xfrm_cached): New function.
24700         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
24701         find_idx, find_position and stack_push.
24702         * (find_idx): New function.
24703         * (find_position): Likewise.
24704         * localedata/sort-test.sh: Added test run for do_xfrm.
24705         * localedata/xfrm-test.c (main): Added command line option
24706         -nocache to run the test with strings that are too large for
24707         the STRXFRM cache.
24708
24709 2015-01-13  Torvald Riegel  <triegel@redhat.com>
24710
24711         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
24712         variable to lll_futex_wake call, not the value itself.
24713
24714 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
24715
24716         [BZ #17803]
24717         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
24718         twom64.  Adjust value to 0x1p-64L.
24719         (__scalblnl): Only return standard underflowing result for K <=
24720         -64 not K <= -63; adjust exponent for underflowing result by 64
24721         not 63.
24722         * math/libm-test.inc (scalbn_test_data): Add more tests.
24723         (scalbln_test_data): Likewise.
24724
24725         [BZ #17834]
24726         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
24727         0x1p63L.
24728         (__scalblnl): Get new exponent of adjusted subnormal value from ES
24729         not HX.
24730         * math/libm-test.inc (scalbn_test_data): Add more tests.
24731         (scalbln_test_data): Likewise.
24732
24733 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24734             Stefani Seibold  <stefani@seibold.net>
24735
24736         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
24737         (sysdep_routines): Add dl-vdso here, ...
24738         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
24739         (sysdep_routines): ... not here.
24740         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
24741         fallback when vDSO is not presented.
24742         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
24743         Define with libc_hidden_proto/libc_hidden_data_def definitions.
24744         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
24745         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
24746         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
24747         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
24748         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
24749         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
24750         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
24751         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
24752         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
24753         fallback configurable symbol when vDSO is not available.
24754         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
24755         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
24756         be able to redefine fallback symbol when vDSO is not available.
24757         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
24758         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
24759
24760 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24761
24762         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
24763         (TLS_INIT_TP): Add tm_capable initialization.
24764         (TLS_DEFINE_INIT_TP): Likewise.
24765         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
24766         TCB.
24767         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
24768         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
24769         calculation.
24770         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
24771         transactoion is lock elision is built and TCB tm_capable is set.
24772         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
24773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24774         (INTERNAL_SYSCALL_NCS): Likewise.
24775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24776         (INTERNAL_SYSCALL_NCS): Likewise.
24777         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
24778
24779         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
24780         for powerpc.
24781         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
24782         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
24783         and remove it for 32 bits case.
24784         [pthread_rwlock_t] (__rwelision): New field for lock elision.
24785         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
24786         initialization.
24787         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
24788         Disable lock elision with rdlocks if elision is not available.
24789
24790         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
24791         (sysdep_routines): Add lock elision objects.
24792         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
24793         [pthread_mutex_t] (__spins): Rework to add lock elision field.
24794         [pthread_mutex_t] (__elision): Add field.
24795         [__PTHREAD_SPINS]: Adjust to init lock elision field.
24796         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
24797         elision definitions for powerpc.
24798         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
24799         implementation of lock elision for powerpc.
24800         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
24801         implementation of timed lock elision for powerpc.
24802         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
24803         implementation of trylock with lock elision for powerpc.
24804         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
24805         implementaion of unlock for lock elision for powerpc.
24806         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
24807         automatic enable lock elision for mutexes.
24808         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
24809         transaction execution definitions for powerpc.
24810         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
24811         definitions.
24812         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
24813         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
24814         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
24815         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
24816         * NEWS: Update.
24817
24818 2015-01-09  Roland McGrath  <roland@hack.frob.com>
24819
24820         * sysdeps/posix/shm-directory.c: Use <> rather than ""
24821         for #include of <shm-directory.h>.
24822
24823 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
24824
24825         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
24826         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
24827
24828 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
24829
24830         [BZ #17791]
24831         * NEWS: Mention bug fix.
24832         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
24833         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
24834         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
24835
24836 2015-01-09  Torvald Riegel <triegel@redhat.com>
24837
24838         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
24839
24840 2015-01-09  Torvald Riegel <triegel@redhat.com>
24841
24842         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
24843
24844 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
24845
24846         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
24847         pointer and cast to uintptr_t.
24848
24849 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
24850
24851         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
24852         removed.
24853         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
24854
24855 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
24856
24857         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
24858         of 0.
24859
24860 2015-01-08  Roland McGrath  <roland@hack.frob.com>
24861
24862         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
24863         <nptl/pthreadP.h> instead.
24864         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
24865
24866         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
24867         already defined.
24868         [__SIGRTMIN] (init): Function removed.
24869         [__SIGRTMIN] (initialized): Variable removed.
24870         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
24871         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
24872         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
24873         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
24874         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
24875         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
24876         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
24877         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
24878         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
24879         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
24880         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
24881         * sysdeps/nptl/allocrtsig.c: New file.
24882         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
24883         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
24884         * sysdeps/generic/testrtsig.h: File removed.
24885
24886         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
24887         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
24888
24889         * nptl/nptl-init.c (pthread_functions): Conditionalize
24890         .ptr__nptl_setxid initialization on [SIGSETXID].
24891
24892         * sysdeps/nptl/sys/procfs.h: New file.
24893         * nptl_db/Makefile (headers): Add it.
24894         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
24895
24896         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
24897         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
24898         * nptl/pthread_attr_setaffinity.c: Include it.
24899         * nptl/pthread_setattr_default_np.c: Likewise.
24900         * nptl/check-cpuset.h: New file.
24901
24902 2015-01-08  Richard Henderson  <rth@redhat.com>
24903
24904         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
24905         (CFLAGS-tst-execstack-prog.c): Likewise.
24906         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
24907
24908 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
24909             Sandra Loosemore  <sandra@codesourcery.com>
24910             Andrew Jenner  <andrew@codesourcery.com>
24911             Joseph Myers  <joseph@codesourcery.com>
24912             Nathan Sidwell  <nathan@codesourcery.com>
24913
24914         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
24915         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
24916         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
24917         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
24918         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
24919         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
24920         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
24921         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
24922         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
24923         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
24924         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
24925         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
24926         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
24927         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
24928         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
24929         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
24930         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
24931
24932 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24933
24934         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
24935         timespec struct member in syscall macro.
24936         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
24937         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
24938         first timeval struct member in syscall macro.
24939         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
24940
24941 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
24942
24943         [BZ #17748]
24944         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
24945         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
24946         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
24947         __feupdateenv and define as weak alias of __feupdateenv.  Use
24948         libm_hidden_weak.
24949         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
24950         libm_hidden_def.
24951         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
24952         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
24953         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
24954         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
24955         libm_hidden_def.
24956         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
24957         __feupdateenv and define as weak alias of __feupdateenv.  Use
24958         libm_hidden_weak.
24959         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
24960         libm_hidden_def.
24961         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
24962         __feupdateenv and define as weak alias of __feupdateenv.  Use
24963         libm_hidden_weak.
24964         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
24965         libm_hidden_def.
24966         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
24967         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
24968         (__feupdateenv): Likewise.
24969         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
24970         __feupdateenv and define as weak alias of __feupdateenv.  Use
24971         libm_hidden_weak.
24972         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
24973         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
24974         libm_hidden_def.
24975         * sysdeps/tile/math_private.h (__feupdateenv): New inline
24976         function.
24977         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
24978         libm_hidden_def.
24979         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
24980         __feupdateenv instead of feupdateenv.
24981         (default_libc_feupdateenv_test): Likewise.
24982         (libc_feresetround_ctx): Likewise.
24983
24984 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24985
24986         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
24987         prototype.
24988
24989 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
24990
24991         * posix/regcomp.c (parse_bracket_exp): Initialize type to
24992         COLL_SYM in a couple of places to avoid uninitialized variable
24993         wanings on tilegx gcc 4.8.2.
24994
24995 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
24996
24997         * sysdeps/aarch64/strcpy.S: New file.
24998         * sysdeps/aarch64/stpcpy.S: New file.
24999         * NEWS: Updated.
25000
25001 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
25002
25003         * sysdeps/aarch64/strrchr.S: New file.
25004         * NEWS: Updated.
25005
25006 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
25007
25008         [BZ #17658]
25009         * stdlib/setenv.c: Fix memory leak when setting large,
25010         duplicate string.
25011
25012 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
25013
25014         [BZ #17273]
25015         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
25016         and tabs from buffer before parsing fstab entry.
25017         * misc/tst-mntent.c (main): Add test for mount entry with
25018         trailing spaces and tabs.
25019
25020 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
25021
25022         [BZ #17748]
25023         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
25024         * math/fesetround.c (fesetround): Rename to __fesetround and
25025         define as weak alias of __fesetround.  Use libm_hidden_weak.
25026         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
25027         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
25028         * sysdeps/arm/fesetround.c (fesetround): Likewise.
25029         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
25030         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
25031         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
25032         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
25033         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
25034         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
25035         __fesetround_inline.
25036         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
25037         __fesetround_inline instead of __fesetround.
25038         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
25039         __fesetround and define as weak alias of __fesetround.  Use
25040         libm_hidden_weak.  Call __fesetround_inline instead of
25041         __fesetround.
25042         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
25043         __fesetround and define as weak alias of __fesetround.  Use
25044         libm_hidden_weak.
25045         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
25046         Likewise.
25047         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
25048         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
25049         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
25050         * sysdeps/tile/math_private.h (__fesetround): New inline function.
25051         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
25052         __fesetround and define as weak alias of __fesetround.  Use
25053         libm_hidden_weak.
25054         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
25055         __fesetround instead of fesetround.
25056         (default_libc_feholdexcept_setround): Likewise.
25057         (libc_feholdsetround_ctx): Likewise.
25058         (libc_feholdsetround_noex_ctx): Likewise.
25059
25060         [BZ #17748]
25061         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
25062         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
25063         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
25064         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
25065         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
25066         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
25067         define as weak alias of __fesetenv.  Use libm_hidden_weak.
25068         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
25069         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
25070         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
25071         define as weak alias of __fesetenv.  Use libm_hidden_weak.
25072         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
25073         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
25074         define as weak alias of __fesetenv.  Use libm_hidden_weak.
25075         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
25076         libm_hidden_def.
25077         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
25078         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
25079         Likewise.
25080         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
25081         define as weak alias of __fesetenv.  Use libm_hidden_weak.
25082         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
25083         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
25084         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
25085         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
25086         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
25087         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
25088         __fesetenv instead of fesetenv.
25089         (libc_feresetround_noex_ctx): Likewise.
25090         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
25091         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
25092         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
25093         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
25094         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
25095         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
25096         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
25097         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
25098         (__feupdateenv): Likewise.
25099         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
25100         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
25101         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
25102         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
25103
25104 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
25105
25106         [BZ #17806]
25107         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
25108         addresses have been freed.
25109
25110 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
25111
25112         * resolv/res_init.c (__res_vinit): Improve comments about nserv
25113         and nservall.
25114
25115 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
25116
25117         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
25118         Clean up check_pf allocation pattern. addresses
25119
25120 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25121
25122         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
25123         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
25124         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
25125         * nptl/pthread_exit.c (__pthread_exit): Likewise.
25126         * nptl/pthread_join.c (pthread_join): Likewise.
25127         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
25128         * sysdeps/posix/waitid.c (__waitid): Likewise.
25129         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
25130         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
25131         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
25132         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
25133         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
25134         Likewise.
25135         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
25136         (__libc_pread64): Likewise.
25137         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
25138         (__libc_pwrite): Likewise.
25139         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
25140         (__libc_pwrite64): Likewsie.
25141         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
25142         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
25143         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
25144         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
25145         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
25146         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
25147         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
25148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
25149         Likewise.
25150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
25151         (__libc_pread64): Likewise.
25152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
25153         Likewise.
25154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
25155         (__libc_pwrite64): Likewise.
25156         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
25157         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
25158         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
25159         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
25160         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
25161         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
25162         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
25163         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
25164         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
25165         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
25166         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
25167         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
25168         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
25169         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
25170         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25171         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
25172         Likewise.
25173
25174 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25175
25176         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
25177         (CFLAGS-test-double.c): Likewise.
25178         (CFLAGS-test-ldouble.c): Likewise.
25179         (CPPFLAGS-test-ifloat.c): Likewise.
25180         (CPPFLAGS-test-idouble.c): Likewise.
25181         (CPPFLAGS-test-ildoubl.c): Likewise.
25182         (CFLAGS-test-test-fenv.c): Remove variable.
25183         (CFLAGS-test-misc.c): Likewise.
25184
25185 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
25186
25187         [BZ #17797]
25188         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
25189         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
25190         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
25191         CLOCKS_PER_SEC == 1000000.
25192         * time/clocktest.c (main): Replace %ld with %jd and cast to
25193         intmax_t.
25194
25195 2015-01-05  Roland McGrath  <roland@hack.frob.com>
25196
25197         * sysdeps/generic/unwind-resume.h: New file.
25198         * sysdeps/gnu/unwind-resume.c: Include it.
25199         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
25200         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
25201         argument list.
25202         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
25203         global rather than static.
25204         (_Unwind_Resume): Update user.
25205         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
25206         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
25207         rather than static.  Add __attribute__ ((cold)).
25208         (_Unwind_Resume, __gcc_personality_v0): Update callers.
25209         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
25210         * sysdeps/arm/arm-unwind-resume.S: New file.
25211         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
25212         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
25213         * sysdeps/arm/Makefile [$(subdir) = csu]
25214         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
25215         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
25216         Add rt-arm-unwind-resume.
25217         [$(subdir) = nptl]
25218         (libpthread-sysdep_routines, libpthread-shared-only-routines):
25219         Add pt-arm-unwind-resume.
25220         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
25221         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
25222
25223 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
25224
25225         [BZ #17748]
25226         * include/fenv.h (__feholdexcept): Declare.  Use
25227         libm_hidden_proto.
25228         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
25229         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
25230         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
25231         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
25232         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
25233         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
25234         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
25235         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
25236         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
25237         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
25238         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
25239         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
25240         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
25241         (feholdexcept): Likewise.
25242         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25243         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
25244         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
25245         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
25246         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
25247         __feholdexcept instead of feholdexcept.
25248         (default_libc_feholdexcept_setround): Likewise.
25249
25250 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
25251
25252         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
25253         to avoid using stl/str to align destination.
25254
25255 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
25256
25257         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
25258
25259 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
25260
25261         [BZ #17796]
25262         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
25263         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
25264         Define as weak alias not strong alias.
25265
25266 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
25267
25268         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
25269         bltzal with addiupc.
25270         (RTLD_START): Ditto.
25271
25272 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
25273
25274         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
25275         for __vdso_* functions in declarations.
25276         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
25277         definitions.
25278         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
25279         INTERNAL_VSYSCALL): Use struct return types to check for error.
25280
25281         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
25282         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
25283         function with cast from llround().
25284         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
25285         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
25286         Define.
25287
25288 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
25289
25290         [BZ #17793]
25291         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
25292         Define as weak alias not strong alias.
25293
25294         [BZ #17635]
25295         * ctype/ctype-c99.c: New file.  isblank implementation moved from
25296         ...
25297         * ctype/ctype-extn.c: ... here.
25298         (__isblank_l): Move to ...
25299         * ctype/ctype-c99_l.c: ... here.  New file.
25300         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
25301         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
25302         Remove variable.
25303         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25304         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25305         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25306         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25307         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25308
25309         [BZ #17777]
25310         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
25311         (posix_fadvise64): Define as weak alias not strong alias.
25312         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
25313         (posix_fallocate64): Likewise.
25314         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
25315         Remove variable.
25316         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25317         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25318         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25319         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25320         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25321
25322 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
25323
25324         [BZ #16191]
25325         * NEWS: Mention bug fix.
25326         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
25327         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
25328         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
25329         (HOST_STACK_END_ADDR): Likewise.
25330
25331 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
25332
25333         [BZ #17748]
25334         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
25335         * math/fegetround.c (fegetround): Rename to __fegetround and
25336         define as weak alias of __fegetround.  Use libm_hidden_weak.
25337         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
25338         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
25339         * sysdeps/arm/fegetround.c (fegetround): Likewise.
25340         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
25341         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
25342         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
25343         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
25344         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
25345         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
25346         Undefine after rather than before function definition; use
25347         parentheses around function name in definition.
25348         (__fegetround): Also undefine macro after function definition.
25349         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
25350         __fegetround and define as weak alias of __fegetround.  Use
25351         libm_hidden_weak.  Do not undefine as macro.
25352         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
25353         Likewise.
25354         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
25355         __fegetround and define as weak alias of __fegetround.  Use
25356         libm_hidden_weak.
25357         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
25358         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
25359         * sysdeps/tile/math_private.h (__fegetround): New inline function.
25360         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
25361         __fegetround and define as weak alias of __fegetround.  Use
25362         libm_hidden_weak.
25363         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
25364         __fegetround instead of fegetround.
25365
25366         [BZ #17782]
25367         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
25368         Condition macro definition on [__USE_MISC].
25369
25370         [BZ #17781]
25371         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
25372         (struct sigaction): Change type of sa_flags field to int.
25373
25374         [BZ #17780]
25375         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
25376         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
25377         __glibc_reserved0.
25378
25379         * nptl/version.c (banner): Use single year in copyright notice.
25380
25381         * NEWS: Update copyright dates.
25382         * catgets/gencat.c (print_version): Likewise.
25383         * csu/version.c (banner): Likewise.
25384         * debug/catchsegv.sh: Likewise.
25385         * debug/pcprofiledump.c (print_version): Likewise.
25386         * debug/xtrace.sh (do_version): Likewise.
25387         * elf/ldconfig.c (print_version): Likewise.
25388         * elf/ldd.bash.in: Likewise.
25389         * elf/pldd.c (print_version): Likewise.
25390         * elf/sotruss.sh: Likewise.
25391         * elf/sprof.c (print_version): Likewise.
25392         * iconv/iconv_prog.c (print_version): Likewise.
25393         * iconv/iconvconfig.c (print_version): Likewise.
25394         * locale/programs/locale.c (print_version): Likewise.
25395         * locale/programs/localedef.c (print_version): Likewise.
25396         * login/programs/pt_chown.c (print_version): Likewise.
25397         * malloc/memusage.sh (do_version): Likewise.
25398         * malloc/memusagestat.c (print_version): Likewise.
25399         * malloc/mtrace.pl: Likewise.
25400         * manual/libc.texinfo: Likewise.
25401         * nptl/version.c (banner): Likewise.
25402         * nscd/nscd.c (print_version): Likewise.
25403         * nss/getent.c (print_version): Likewise.
25404         * nss/makedb.c (print_version): Likewise.
25405         * posix/getconf.c (main): Likewise.
25406         * scripts/test-installation.pl: Likewise.
25407         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
25408
25409 2015-01-02  Will Newton  <will.newton@linaro.org>
25410
25411         * sysdeps/arm/armv7/configure: Removed.
25412         * sysdeps/arm/armv7/configure.ac: Likewise.
25413
25414 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
25415
25416         * All files with FSF copyright notices: Update copyright dates
25417         using scripts/update-copyrights.
25418         * intl/plural.c: Regenerated.
25419         * locale/programs/charmap-kw.h: Likewise.
25420         * locale/programs/locfile-kw.h: Likewise.
25421
25422 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
25423
25424         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
25425
25426 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
25427
25428         [BZ #17748]
25429         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
25430         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
25431         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
25432         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
25433         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
25434         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
25435         define as weak alias of __fegetenv.  Use libm_hidden_weak.
25436         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
25437         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
25438         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
25439         define as weak alias of __fegetenv.  Use libm_hidden_weak.
25440         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
25441         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
25442         define as weak alias of __fegetenv.  Use libm_hidden_weak.
25443         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
25444         libm_hidden_def.
25445         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
25446         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
25447         Likewise.
25448         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
25449         define as weak alias of __fegetenv.  Use libm_hidden_weak.
25450         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
25451         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
25452         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
25453         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
25454         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
25455         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
25456         __fegetenv instead of fegetenv.
25457         (libc_feholdsetround_noex_ctx): Likewise.
25458
25459 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25460
25461         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
25462         (Elf_MIPS_ABIFlags_v0): New structure.
25463         (EF_MIPS_FP64): Define.
25464         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
25465         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
25466         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
25467         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
25468         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
25469         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
25470         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
25471         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
25472         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
25473         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
25474         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
25475         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
25476         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
25477         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
25478         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
25479         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
25480         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
25481         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
25482         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
25483         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
25484         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
25485         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
25486         field.
25487         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
25488         EF_MIPS_FP64.
25489         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
25490         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
25491         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
25492         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
25493         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
25494         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
25495         * sysdeps/mips/tst-abi-interlink.c: Likewise.
25496         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
25497         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
25498         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
25499         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
25500         record the current FP ABI extension.
25501         (mips-mode-switch): Define to show if kernel headers support mode
25502         switching.
25503         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
25504         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
25505         supported SYSV ABI version to 3.
25506         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
25507         feature.
25508
25509 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25510             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25511
25512         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
25513         path.
25514         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
25515
25516 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
25517
25518         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
25519         __fegetround and redefine to call __fegetround.  Remove condition
25520         on [!__NO_MATH_INLINES].
25521         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
25522         function.
25523         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
25524         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
25525         Remove macro.
25526         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
25527         instead of <fenv_libc.h>.
25528         (__llrintl): Call fegetround instead of __fegetround.
25529         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
25530         instead of <fenv_libc.h>.
25531         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
25532         (__lrintl): Call fegetround instead of __fegetround.
25533         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
25534         instead of <fenv_libc.h>.
25535         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
25536         (__rintl): Call fegetround instead of __fegetround.
25537
25538 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
25539
25540         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
25541         arrays.
25542
25543 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
25544
25545         [BZ #17775]
25546         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
25547         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
25548         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
25549
25550 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
25551
25552         * sysdeps/i386/tls-macros.h: Include <features.h>.
25553         (TLS_LE): Use non-PIC version for GCC >= 5.0.
25554         (TLS_IE): Likewise.
25555         (TLS_LD): Likewise.
25556         (TLS_GD): Likewise.
25557         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
25558         define for GCC >= 5.0.
25559
25560 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
25561
25562         * math/test-fenv.c (test_single_exception, set_single_exc,
25563         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
25564         feexcp_mask_test, feenable_test, fe_single_test): Add
25565         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
25566         case where they are not used.
25567         * math/libm-test.inc: Likewise.
25568         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
25569         unused in the absence of FP rounding/exception support.
25570         * stdio-common/tst-printf-round.c: Likewise.
25571         * stdlib/tst-strtod-round.c: Likewise.
25572         * stdlib/tst-strtod-underflow.c: Likewise.
25573
25574 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
25575
25576         [BZ #17723]
25577         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
25578         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
25579         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
25580         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
25581         libm_hidden_weak.
25582         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
25583         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
25584         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
25585         libm_hidden_def.
25586         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
25587         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
25588         libm_hidden_weak.
25589         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
25590         Likewise.
25591         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
25592         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
25593         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
25594         libm_hidden_weak.
25595         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
25596         libm_hidden_def.
25597         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
25598         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
25599         (__feraiseexcept): Likewise.
25600         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
25601         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
25602         libm_hidden_weak.
25603         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
25604         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
25605         libm_hidden_def.
25606         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
25607         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
25608         Use libm_hidden_def.
25609         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
25610         libm_hidden_def.
25611         (feraiseexcept): Define as weak not strong alias.  Use
25612         libm_hidden_weak.
25613         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
25614         New inline function.  Factored out of ...
25615         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
25616         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
25617         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
25618         feraiseexcept.
25619         * math/w_acos.c (__acos): Likewise.
25620         * math/w_asin.c (__asin): Likewise.
25621         * math/w_ilogb.c (__ilogb): Likewise.
25622         * math/w_j0.c (y0): Likewise.
25623         * math/w_j1.c (y1): Likewise.
25624         * math/w_jn.c (yn): Likewise.
25625         * math/w_log.c (__log): Likewise.
25626         * math/w_log10.c (__log10): Likewise.
25627         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
25628         * sysdeps/aarch64/fpu/math_private.h
25629         (libc_feupdateenv_test_aarch64): Likewise.
25630         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
25631         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
25632         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
25633         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
25634         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
25635         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
25636         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
25637         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
25638         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
25639         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
25640
25641 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
25642
25643         [BZ #17732]
25644         * io/test-utime.c (main): Replace %ld with %jd and cast to
25645         intmax_t.
25646         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
25647         * nptl/tst-mutex5.c: Include <stdint.h>.
25648         (do_test): Replace %ld with %jd and cast to intmax_t.
25649         * posix/tst-regex.c (run_test): Likewise.
25650         (run_test_backwards): Likewise.
25651         * rt/tst-clock.c: Include <stdint.h>.
25652         (clock_test): Replace %ld with %jd and cast to intmax_t.
25653         * rt/tst-cpuclock1.c: Include <stdint.h>.
25654         (do_test): Replace %lu with %ju and cast to uintmax_t.
25655         * rt/tst-cpuclock2.c: Include <stdint.h>.
25656         (do_test): Replace %lu with %ju and cast to uintmax_t.
25657         * rt/tst-mqueue1.c: Include <stdint.h>.
25658         (check_attrs): Replace %ld with %jd and cast to intmax_t.
25659         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
25660         intmax_t.
25661         * rt/tst-mqueue4.c (do_test): Likewise.
25662         * rt/tst-timer4.c: Include <stdint.h>.
25663         (check_ts): Replace %ld with %jd and cast to intmax_t.
25664         (do_test): Likewise.
25665         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
25666         and cast to intmax_t.
25667         * sysdeps/pthread/tst-timer.c (main): Likewise.
25668         * time/clocktest.c (main): Likewise.
25669         * time/tst-posixtz.c (do_test): Likewise.
25670         * timezone/tst-timezone.c (main): Likewise.
25671
25672 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
25673             H.J. Lu  <hongjiu.lu@intel.com>
25674
25675         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
25676         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
25677         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
25678         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
25679         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
25680         version if bit_Fast_Unaligned_Load is set.
25681         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
25682         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
25683         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
25684         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
25685         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
25686         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
25687         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25688         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
25689         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
25690         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
25691         to 4.
25692         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
25693         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
25694         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
25695         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
25696
25697 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
25698
25699         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
25700         instead of #if to avoid a Wundef warning.
25701         * stdlib/tst-limits.c (do_test): Likewise.
25702
25703         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
25704         parallel other exception macros.
25705         (fegetenv): Convert from macro to extern inline so that it applies
25706         retroactively to inline functions already seen by the compiler.
25707         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
25708
25709         * posix/Makefile (before-compile): Use $(objpfx) for
25710         posix-conf-vars-def.h.
25711
25712 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
25713
25714         * posix/getconf.c (main): Use size_t for type of I.
25715         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
25716         NSPEC.
25717
25718         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
25719         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
25720         * posix/posix-envs.def: Likewise.
25721         * sysdeps/posix/sysconf.c: Likewise.
25722         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
25723         (specs): Remove array.
25724         * scripts/gen-posix-conf-vars.awk: Support generation of specs
25725         array.
25726
25727         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
25728         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
25729         (__sysconf): Use CONF_IS_* macros.
25730
25731         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
25732         ($(objpfx)posix-conf-vars-def.h): New target.
25733         * posix/posix-conf-vars.list: New file.
25734         * posix/posix-conf-vars.h: New file.
25735         * posix/confstr.c: Include posix-conf-vars.h.
25736         (confstr): Use CONF_IS_* macros.
25737         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
25738         CONF_IS_* macros.
25739         * scripts/gen-posix-conf-vars.awk: New file.
25740
25741 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
25742
25743         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
25744         fegetround): Add no-op macros to avoid linknamespace issues.
25745
25746         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
25747         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
25748
25749         * sysdeps/unix/sysv/linux/tile/sysdep.h
25750         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
25751         assembly-specific section to avoid a redefinition warning.
25752
25753         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
25754         long before casting to pointer to avoid a cast warning.
25755
25756 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
25757
25758         * sysdeps/tile/tilegx/Implies: New file.
25759
25760 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
25761
25762         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
25763
25764 2014-12-23  Florian Weimer  <fweimer@redhat.com>
25765
25766         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
25767
25768 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
25769
25770         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
25771         not define.
25772         * sysdeps/unix/sysv/linux/utimes.c: Do not include
25773         <kernel-features.h>.
25774         (__utimes) [__NR_utimes]: Make code unconditional.
25775         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
25776         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
25777         (__ASSUME_UTIMES): Do not undefine.
25778         * sysdeps/unix/sysv/linux/tile/kernel-features.h
25779         (__ASSUME_UTIMES): Likewise.
25780         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
25781         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
25782         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
25783         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
25784
25785 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
25786
25787         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
25788
25789 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
25790
25791         [BZ #17747]
25792         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
25793         alias to weak alias for j0l, y0l.
25794         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
25795         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
25796
25797         [BZ #17746]
25798         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
25799         conversion.
25800
25801 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
25802
25803         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
25804         to zero if not already defined.
25805
25806 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
25807
25808         [BZ #17724]
25809         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
25810         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
25811         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
25812         (char *) casts added.
25813         * sysdeps/ieee754/k_standardf.c: New file.
25814         * sysdeps/ieee754/k_standardl.c: Likewise.
25815         * math/Makefile (libm-support): Remove k_standard.
25816         (libm-calls): Add k_standard.
25817
25818 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
25819
25820         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25821         Optimize to avoid an unnecessary FPCR read.
25822
25823 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
25824
25825         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
25826         Optimize to reduce FPCR/FPSR accesses.
25827
25828 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
25829
25830         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
25831         Call libc_fetestexcept_aarch64.
25832
25833 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
25834
25835         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
25836         Call libc_fesetround_aarch64.
25837
25838 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
25839
25840         [BZ #17733]
25841         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
25842         (__bind): Do not define as weak alias.
25843         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
25844         define.
25845         (__getsockname): Do not define as weak alias.
25846
25847 2014-12-22  Will Newton  <will.newton@linaro.org>
25848
25849         * manual/install.texi: Document that we require bison 2.7
25850         or above.
25851         * INSTALL: Regenerate.
25852         * configure.ac: Use AC_CHECK_PROG_VER instead of
25853         AC_PATH_PROG when checking for bison and check for
25854         version 2.7 or above.
25855         * configure: Regenerate.
25856
25857 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
25858
25859         [BZ #17745]
25860         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
25861         * sysdeps/tile/ffsll.c (ffsll): To here.
25862
25863         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
25864
25865 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
25866
25867         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
25868         if not defined.
25869         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
25870         definition.
25871         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
25872         hidden ___tls_get_addr.
25873         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
25874         hidden __tls_get_addr.
25875         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
25876         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
25877         Likewise.
25878
25879 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
25880
25881         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
25882         _dl_init call.
25883
25884 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
25885
25886         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
25887         from "call _dl_init@PLT".
25888         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
25889
25890 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
25891
25892         * manual/search.texi: (Array Sort Function): Clarify stable sorting
25893         guarantees.
25894
25895 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
25896
25897         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
25898
25899 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
25900
25901         [BZ #17744]
25902         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
25903         strnlen.
25904
25905 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
25906
25907         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
25908         of multu on MIPSr6.
25909         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
25910         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
25911         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
25912         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
25913         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
25914
25915 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
25916
25917         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
25918         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
25919         (PTR_SUBU): Use subu for mips32r6/mips64r6.
25920         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
25921         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
25922         mips32r6/mips64r6.
25923         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
25924
25925 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
25926
25927         * string/strncat.c (STRNCAT): Simplify implementation.
25928
25929 2014-12-19  David S. Miller  <davem@davemloft.net>
25930
25931         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
25932         access the quad as both a long double and as a series of 4 words.
25933
25934         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
25935         link_map->l_info array access.
25936
25937 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
25938
25939         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
25940
25941         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
25942         * math/atest-exp2.c (TIMEOUT): Likewise.
25943         * math/atest-sincos.c (TIMEOUT): Likewise.
25944
25945 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
25946
25947         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
25948         -Wno-error with -fno-builtin-lround.
25949
25950 2014-12-19  Torvald Riegel  <triegel@redhat.com>
25951
25952         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
25953         Contains futex constants and functions moved over from ...
25954         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
25955         <lowlevellock-futex.h>.
25956         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
25957         (lll_timedwait_tid): Add comments and parentheses around macro
25958         arguments.
25959
25960 2014-12-19  Torvald Riegel  <triegel@redhat.com>
25961
25962         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
25963         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
25964         (__lll_private_flag): Remove.
25965         (lll_futex_wait): Likewise.
25966         (lll_futex_timed_wait): Likewise.
25967         (lll_futex_wake): Likewise.
25968         (lll_futex_requeue): Likewise.
25969         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
25970         (__lll_timedwait_tid): Spell out argument names.
25971         (lll_timedwait_tid): Add comments and parentheses around macro
25972         arguments.
25973         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
25974         LLL_SHARED and LLL_PRIVATE usable from assembly code.
25975
25976 2014-12-19  Torvald Riegel  <triegel@redhat.com>
25977
25978         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
25979         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
25980         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
25981         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
25982         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
25983         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
25984         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
25985         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
25986         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
25987         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
25988         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
25989         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
25990         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
25991         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
25992         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
25993         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
25994         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
25995         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
25996         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
25997
25998 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
25999
26000         * sysdeps/x86_64/x32/Makefile: New file.
26001
26002 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
26003
26004         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
26005         1L with (mp_limb_t) 1.
26006
26007 2014-12-17  Roland McGrath  <roland@hack.frob.com>
26008
26009         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
26010         * nptl/libc_pthread_init.c: ... here.
26011         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
26012         * nptl/register-atfork.c: ... here.
26013
26014         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
26015         Use pthread_sigmask rather than INTERNAL_SYSCALL.
26016         Use assert_perror to check its return value.
26017         (__gai_create_helper_thread): Likewise.
26018
26019         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
26020
26021         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
26022
26023 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
26024
26025         [BZ #17725]
26026         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
26027         __profil_counter.
26028         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
26029         Likewise.
26030         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
26031         Likewise.
26032         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
26033         Likewise.
26034         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
26035         (profil_counter): Likewise.
26036         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
26037         (profil_counter): Likewise.
26038         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
26039         Likewise.
26040         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
26041         Likewise.
26042         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
26043         (profil_counter): Likewise.
26044         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
26045         Likewise.
26046         [!__profil_counter] (profil_counter): Define as weak alias of
26047         __profil_counter.
26048         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
26049         (profil_counter): Rename to __profil_counter.
26050         [!__profil_counter] (profil_counter): Define as weak alias of
26051         __profil_counter.
26052         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
26053         (profil_counter): Rename to __profil_counter.
26054         [!__profil_counter] (profil_counter): Define as weak alias of
26055         __profil_counter.
26056         * sysdeps/posix/profil.c: Update comment referring to
26057         profil_counter.
26058         (__profil): Use __profil_counter instead of profil_counter.
26059         * sysdeps/posix/sprofil.c (profil_counter): Rename to
26060         __profil_counter.  Use __profil_counter_ushort and
26061         __profil_counter_uint in definitions.
26062         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
26063         instead of profil_counter_uint and profil_counter_ushort.
26064
26065         [BZ #17722]
26066         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
26067         define as weak alias of __inet_makeaddr.
26068         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
26069         as weak alias of __inet_addr.
26070         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
26071         as weak alias of __inet_pton.  Use libc_hidden_weak.
26072         * include/arpa/inet.h (__inet_pton): Declare.  Use
26073         libc_hidden_proto.
26074         (inet_makeaddr): Don't use libc_hidden_proto.
26075         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
26076         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
26077         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
26078         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
26079         Remove variable.
26080         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
26081         (test-xfail-POSIX/time.h/linknamespace): Likewise.
26082
26083 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
26084
26085         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
26086
26087 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26088
26089         * stdio-common/bug-vfprintf-nargs.c (do_test):
26090         Cast value to intptr_t to avoid format warning
26091         for usage with PRIdPTR printing macro.
26092
26093 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26094
26095         * libio/tst-widetext.c (do_test):
26096         Use format type %td instead of %Zd for ptrdiff_t
26097         in order to avoid format warning.
26098
26099 2014-12-17  Andreas Schwab  <schwab@suse.de>
26100
26101         * nscd/mem.c (gc): Add size_t cast to match printf format.
26102
26103 2014-12-16  Roland McGrath  <roland@hack.frob.com>
26104
26105         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
26106         (init): Apply PTR_MANGLE to pointers before storing them.
26107         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
26108         before using them.
26109
26110 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
26111
26112         [BZ #17719]
26113         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
26114         define as weak alias of __memrchr.
26115         (__memrchr): Do not define as strong alias of memrchr.
26116         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
26117         Remove variable.
26118         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
26119         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
26120         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
26121
26122         [BZ #17717]
26123         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
26124         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
26125         (if_indextoname): Rename to __if_indextoname and define as weak
26126         alias of __if_indextoname.  Use libc_hidden_weak.
26127         (if_freenameindex): Rename to __if_freenameindex and define as
26128         weak alias of __if_freenameindex.
26129         (if_nameindex): Rename to __if_nameindex and define as weak alias
26130         of __if_nameindex.
26131         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
26132         __if_nametoindex and define as weak alias of __if_nametoindex.
26133         Use libc_hidden_weak.
26134         (if_freenameindex): Rename to __if_freenameindex and define as
26135         weak alias of __if_freenameindex.
26136         (if_nameindex): Rename to __if_nameindex and define as weak alias
26137         of __if_nameindex.
26138         (if_indextoname): Rename to __if_indextoname and define as weak
26139         alias of __if_indextoname.  Use libc_hidden_weak.
26140         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
26141         __if_nametoindex and define as weak alias of __if_nametoindex.
26142         Use libc_hidden_weak.
26143         (if_freenameindex): Rename to __if_freenameindex and define as
26144         weak alias of __if_freenameindex.  Use libc_hidden_weak.
26145         (if_nameindex_netlink): Use __if_freenameindex instead of
26146         if_freenameindex.
26147         (if_nameindex): Rename to __if_nameindex and define as weak alias
26148         of __if_nameindex.  Use libc_hidden_weak.
26149         (if_indextoname): Rename to __if_indextoname and define as weak
26150         alias of __if_indextoname.  Use libc_hidden_weak.
26151         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
26152         libc_hidden_proto.
26153         [!_ISOMAC] (__if_freenameindex): Likewise.
26154         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
26155         if_nametoindex.
26156         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
26157         variable.
26158         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
26159         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
26160         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
26161         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
26162         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
26163         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
26164         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
26165
26166         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
26167         Remove variable.
26168         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
26169         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
26170
26171 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26172
26173         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
26174         subscript above bounds'
26175
26176         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
26177         bounds.
26178
26179 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
26180
26181         * libio/tst-fopenloc.c: Use test-skeleton.c.
26182
26183         * stdlib/tst-bsearch.c: Use test-skeleton.c.
26184         (entry): Rename to ITEM.
26185         (do_test, comp): Adjust.
26186
26187         * stdio-common/tst-fseek.c: Use test-skeleton.c.
26188
26189 2014-12-16  Torvald Riegel  <triegel@redhat.com>
26190
26191         * string/tester.c: Include <libc-internal.h>.
26192         (test_memset): Ignore -Wmemset-transposed-args.
26193
26194 2014-12-16  Torvald Riegel  <triegel@redhat.com>
26195
26196         * misc/tst-mntent2.c (do_test): Fix warning.
26197
26198 2014-12-16  Torvald Riegel  <triegel@redhat.com>
26199
26200         * elf/tst-unique4lib.cc(a): Mark as used.
26201
26202 2014-12-16  Florian Weimer  <fweimer@redhat.com>
26203
26204         [BZ #17630]
26205         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
26206         names.
26207
26208 2014-12-16  Allan McRae  <allan@archlinux.org>
26209
26210         * stdio-common/Makefile (tests): Re-add bug26.
26211
26212 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
26213
26214         [BZ #17657]
26215         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
26216         static array.
26217
26218 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
26219
26220         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
26221         (__lll_lock_wait): Likewise.
26222         (__lll_timedlock_wait): Likewise.
26223         (__lll_timedwait_tid): Likewise.
26224         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
26225         (__lll_robust_timedlock_wait): Likewise.
26226         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
26227         (lll_cond_trylock): Likewise.
26228         (__lll_lock): Likewise.
26229         (__lll_robust_lock): Likewise.
26230         (__lll_cond_lock): Likewise.
26231         (lll_robust_cond_lock): Likewise.
26232         (__lll_timedlock): Likewise.
26233         (__lll_robust_timedlock): Likewise.
26234         (__lll_unlock): Likewise.
26235         (__lll_robust_unlock): Likewise.
26236         (lll_wait_tid): Likewise.
26237         (lll_timedwait_tid): Likewise.
26238
26239 2014-12-15  Torvald Riegel  <triegel@redhat.com>
26240
26241         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
26242
26243 2014-12-15  Torvald Riegel  <triegel@redhat.com>
26244
26245         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
26246
26247 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
26248
26249         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
26250         * stdio-common/tst-sprintf.c: Likewise.
26251
26252 2014-12-15  Torvald Riegel  <triegel@redhat.com>
26253
26254         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
26255
26256 2014-12-15  Jeff Law  <law@redhat.com>
26257
26258         [BZ #16617]
26259         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
26260         on the heap.  (CVE-2012-3406)
26261         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
26262         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
26263         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
26264
26265 2014-12-15  Will Newton  <will.newton@linaro.org>
26266
26267         * manual/install.texi: Bump required version of texinfo
26268         to 4.7 from 4.5.
26269         * INSTALL: Regenerated.
26270         * configure.ac: Check for makeinfo version 4.7 and above.
26271         * configure: Regenerated.
26272
26273 2014-12-12  Roland McGrath  <roland@hack.frob.com>
26274
26275         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
26276         PREFIX, string constant to insert between directory and name.
26277         * sysdeps/posix/shm_open.c: Update caller.
26278         * sysdeps/posix/shm_unlink.c: Likewise.
26279         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
26280         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
26281         (SEM_SHM_PREFIX): New macro.
26282         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
26283         [$(have-thread-library) = no].
26284         * nptl/Makefile (libpthread-routines): Add shm-directory.
26285         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
26286         * sysdeps/nptl/shm-directory.h: New file.
26287         * sysdeps/posix/shm-directory.c
26288         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
26289         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
26290         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
26291         INTERNAL_SYSCALL.
26292         (__where_is_shmfs): Function removed.
26293         (mountpoint, defaultmount, defaultdir, __namedsem_once):
26294         Variables removed.
26295         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
26296         Use SHM_GET_NAME.
26297         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
26298
26299         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
26300         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
26301         unconditional for use inside libpthread.
26302         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
26303
26304 2014-12-12  Roland McGrath  <roland@hack.frob.com>
26305
26306         * nptl/pthread_getaffinity.c: New file.
26307         * nptl/pthread_setaffinity.c: New file.
26308         * nptl/pthread_getname.c: New file.
26309         * nptl/pthread_setname.c: New file.
26310
26311         * nptl/pthread_create.c (START_THREAD_DEFN)
26312         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
26313
26314 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
26315             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26316
26317         * resolv/res_send.c (send_vc): Disable warning resplen may
26318         be used uninitialized.
26319
26320 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
26321
26322         * nptl/tst-mutex6.c
26323         (ATTR_NULL): New define checks ATTR against NULL.
26324         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
26325         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
26326
26327 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
26328
26329         [BZ #17581]
26330         * malloc/hooks.c
26331         (mem2mem_check): Revert my previous change.
26332         (malloc_check_get_size): Revert my previous change.
26333         (mem2chunk_check): Revert my previous change.
26334
26335 2014-12-11  Roland McGrath  <roland@hack.frob.com>
26336
26337         * sysdeps/posix/shm-directory.c: New file.
26338         * sysdeps/posix/shm-directory.h: New file.
26339         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
26340         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
26341         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
26342         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
26343         Transmute EPERM to EACCES.
26344         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
26345         from ...
26346         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
26347         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
26348
26349 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
26350
26351         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
26352         pointer and cast to uintptr_t.
26353         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
26354         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
26355         Add cast to avoid warning.
26356         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
26357
26358 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
26359
26360         * nptl/semaphore.h: Move to ...
26361         * sysdeps/pthread/semaphore.h: ... here.
26362         * Makefile (installed-headers): Change nptl/semaphore.h to
26363         sysdeps/pthread/semaphore.h.
26364
26365 2014-12-11  Roland McGrath  <roland@hack.frob.com>
26366
26367         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
26368         generated error format strings.
26369
26370         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
26371         -Wformat-extra-args warnings for scanf formats.
26372         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
26373         test of zero-length format (duh).
26374         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
26375         corner-case scanf format test.
26376         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
26377         generated fprintf format string.
26378         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
26379         corner-case sprintf format tests.
26380         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
26381         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
26382         -Wformat-extra-args warnings throughout.
26383         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
26384         (CFLAGS-scanf4.c): Likewise.
26385         (CFLAGS-scanf7.c): Likewise.
26386         (CFLAGS-tst-sprintf.c): Likewise.
26387         (CFLAGS-tst-printf.c): Likewise.
26388         (CFLAGS-tst-printfsz.c): Likewise.
26389
26390 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
26391
26392         * include/cpio.h: New file.
26393         * include/fmtmsg.h: Likewise.
26394
26395         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
26396         corresponding format argument to size_t.
26397         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
26398         arguments.
26399         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
26400         corresponding format argument to size_t.
26401         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
26402         arguments.
26403         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
26404         corresponding format argument to size_t.
26405         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
26406         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
26407         (CFLAGS-tst-mbswcs2.c): Likewise.
26408         (CFLAGS-tst-mbswcs3.c): Likewise.
26409         (CFLAGS-tst-mbswcs4.c): Likewise.
26410         (CFLAGS-tst-mbswcs5.c): Likewise.
26411         (CFLAGS-tst-trans.c): Likewise.
26412
26413 2014-12-11  Roland McGrath  <roland@hack.frob.com>
26414
26415         * posix/regexbug1.c (main): Use "%s" format with regerror results,
26416         rather than assuming they won't contain any '%'s.
26417
26418 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
26419
26420         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
26421         inhibit_loop_to_libcall to avoid recursive calls.
26422         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
26423         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
26424
26425 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
26426
26427         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
26428         prototype.
26429
26430 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
26431
26432         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
26433         integer value instead of boolean.
26434
26435 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
26436
26437         * malloc/malloc.c: Fix powerof2 check.
26438
26439 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
26440
26441         * locale/programs/locfile.h (maybe_swap_uint32):
26442         Remove inline and add unused attribute.
26443
26444 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
26445
26446         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
26447         Truncating assembler expression to a .long expression.
26448
26449 2014-12-11  Andreas Schwab  <schwab@suse.de>
26450
26451         * elf/rtld.c (struct map_args): Constify str member.
26452         (do_preload): Constify fname argument.
26453
26454 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26455
26456         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
26457         constants definition.
26458
26459 2014-12-11  Andreas Schwab  <schwab@suse.de>
26460
26461         [BZ #16657]
26462         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
26463         FORCE_ELISION instead of DO_ELISION.
26464         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
26465         Remove.
26466         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
26467         Likewise.
26468
26469         * iconvdata/gconv-modules: Remove duplicate entry.
26470
26471 2014-12-11  Will Newton  <will.newton@linaro.org>
26472
26473         Merge gettext 0.19.3 into intl/.
26474
26475         This involves a number of cosmetic changes to comments
26476         and ANSI function definitions and prototypes throughout
26477         all the files. The gettext copyright header is used but
26478         with the date ranges taken from the glibc copy.
26479
26480         * NEWS: Add gettext merge to 2.21.
26481         * intl/bindtextdom.c: Switch to gettext copyright.
26482         Use ANSI definitions and prototypes.
26483         Use gl_* locking primitives rather than __libc_* ones.
26484         Use __builtin_expect rather than __glibc_likely/unlikely.
26485         * intl/dcgettext.c: Switch to gettext copyright.
26486         Use ANSI definitions and prototypes.
26487         * intl/dcigettext.c: Switch to gettext copyright.
26488         Use ANSI definitions and prototypes.
26489         (INTDIV0_RAISES_SIGFPE): New define.
26490         Use gl_* locking primitives rather than __libc_* ones.
26491         Include eval-plural.h instead of plural-eval.c.
26492         Use __builtin_expect rather than __glibc_likely/unlikely.
26493         * intl/dcngettext.c: Switch to gettext copyright.
26494         Use ANSI definitions and prototypes.
26495         * intl/dgettext.c: Likewise.
26496         * intl/dngettext.c: Likewise.
26497         * intl/plural-eval.c: Renamed to...
26498         * intl/eval-plural.h: ...this.
26499         * intl/explodename.c: Switch to gettext copyright.
26500         Use ANSI definitions and prototypes.
26501         (_nl_explode_name): Use strchr instead of __rawmemchr.
26502         * intl/finddomain.c: Switch to gettext copyright.
26503         Use ANSI definitions and prototypes.
26504         Use gl_* locking primitives rather than __libc_* ones.
26505         (_nl_find_domain): Use malloc rather than alloca for
26506         allocation of temporary locale name.
26507         * intl/gettext.c: Switch to gettext copyright.
26508         Use ANSI definitions and prototypes.
26509         * intl/gettextP.h: Switch to gettext copyright.
26510         Use ANSI definitions and prototypes.
26511         Use gl_* locking primitives rather than __libc_* ones.
26512         * intl/gmo.h: Switch to gettext copyright.
26513         (struct sysdep_string): Move struct segment_pair outside of
26514         struct definition.
26515         * intl/hash-string.c: Use ANSI definitions and prototypes.
26516         * intl/hash-string.h: Switch to gettext copyright.
26517         Use ANSI definitions and prototypes.
26518         * intl/l10nflist.c: Switch to gettext copyright.
26519         Use ANSI definitions and prototypes.
26520         (_nl_normalize_codeset): Avoid integer overflow.
26521         * intl/loadinfo.h: Switch to gettext copyright.
26522         Use ANSI definitions and prototypes.
26523         (LIBINTL_DLL_EXPORTED): New define.
26524         (PATH_SEPARATOR): New define.
26525         * intl/loadmsgcat.c: Switch to gettext copyright.
26526         * intl/localealias.c: Switch to gettext copyright.
26527         Use ANSI definitions and prototypes.
26528         (_nl_expand_alias): Use PATH_SEPARATOR.
26529         * intl/ngettext.c: Switch to gettext copyright.
26530         Use ANSI definitions and prototypes.
26531         * intl/plural-exp.c: Likewise.
26532         * intl/plural-exp.h: Switch to gettext copyright.
26533         Use ANSI definitions and prototypes.
26534         (struct expression): Move definition of enum operator outside
26535         of struct definition.
26536         * intl/plural.c: Regenerate.
26537         * intl/plural.y: Switch to gettext copyright.
26538         Use ANSI definitions and prototypes.
26539         Port to bison 3.0.
26540         * intl/textdomain.c: Switch to gettext copyright.
26541         Use ANSI definitions and prototypes.
26542         Use gl_* locking primitives rather than __libc_* ones.
26543
26544 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
26545
26546         * debug/warning-nop.c: Add used atrribute.
26547
26548 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
26549
26550         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
26551
26552         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
26553         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
26554         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
26555
26556 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
26557             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26558
26559         [BZ #17634]
26560         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
26561         Undefine after defining function.  Define as weak alias of
26562         __wcschr.  Use libc_hidden_weak.
26563         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
26564         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
26565         (libc_hidden_def): Also define __GI___wcschr alias.
26566         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
26567         __wcschr and define as weak alias of __wcschr.
26568         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
26569         __wcschr.
26570         [!WCSCHR] (DEFAULT_WCSCHR): Define.
26571         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
26572         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
26573         libc_hidden_weak.  Do not use libc_hidden_def.
26574         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
26575         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
26576         __GI___wcschr alias.
26577         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
26578         [IS_IN (libc)] (wcschr): Define as macro expanding to
26579         __redirect_wcschr.
26580         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
26581         [IS_IN (libc)] (__wcschr_power6): Likewise.
26582         [IS_IN (libc)] (__wcschr_power7): Likewise.
26583         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
26584         instead of wcschr.
26585         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
26586         __libc_wcschr.
26587         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
26588         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
26589         __wcschr and define as weak alias of __wcschr.  Use
26590         libc_hidden_builtin_def.
26591         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
26592         as weak alias of __wcschr.  Use libc_hidden_weak.
26593         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
26594         wcschr.
26595         * time/era.c (_nl_init_era_entries): Likewise.
26596         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
26597         variable.
26598         (test-xfail-XPG3/time.h/linknamespace): Likewise.
26599         (test-xfail-XPG4/time.h/linknamespace): Likewise.
26600
26601 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
26602
26603         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
26604         format for long int variable.
26605
26606 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
26607
26608         [BZ #10672]
26609         * manual/search.texi: (Array Sort Function): Remove claim how to make
26610         qsort stable.
26611
26612 2014-12-10  Andreas Schwab  <schwab@suse.de>
26613
26614         [BZ #12847]
26615         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
26616         user-controlled locks.
26617
26618 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
26619
26620         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
26621         register.
26622
26623 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
26624
26625         * configure.ac (--disable-werror): New configure option.
26626         (enable_werror): New AC_SUBST.
26627         * configure: Regenerated.
26628         * config.make.in (enable-werror): New variable.
26629         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
26630         -Wno-error=undef.
26631         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
26632         * manual/install.texi (Configuring and compiling): Document
26633         --disable-werror.
26634         * INSTALL: Regenerated.
26635         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
26636         (CFLAGS-tst-chk2.c): Likewise.
26637         (CFLAGS-tst-chk3.c): Likewise.
26638         (CFLAGS-tst-chk4.cc): Likewise.
26639         (CFLAGS-tst-chk5.cc): Likewise.
26640         (CFLAGS-tst-chk6.cc): Likewise.
26641         (CFLAGS-tst-lfschk1.c): Likewise.
26642         (CFLAGS-tst-lfschk2.c): Likewise.
26643         (CFLAGS-tst-lfschk3.c): Likewise.
26644         (CFLAGS-tst-lfschk4.cc): Likewise.
26645         (CFLAGS-tst-lfschk5.cc): Likewise.
26646         (CFLAGS-tst-lfschk6.cc): Likewise.
26647
26648         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
26649         (main): Disable -Wdeprecated-declarations around calls to
26650         register_printf_function.
26651
26652         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
26653         (do_test): Disable -Wdiv-by-zero around some calls to
26654         fwrite_unlocked and fread_unlocked.
26655
26656         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
26657         (DIAG_POP_NEEDS_COMMENT): Likewise.
26658         (_DIAG_STR1): Likewise.
26659         (_DIAG_STR): Likewise.
26660         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
26661         * stdio-common/bug21.c: Include <libc-internal.h>.
26662         (do_test): Disable -Wformat around call to sscanf.
26663         * stdio-common/scanf14.c: Include <libc-internal.h>.
26664         (main): Disable -Wformat around some calls to scanf functions.
26665
26666 2014-12-09  Torvald Riegel  <triegel@redhat.com>
26667
26668         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
26669
26670 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26671
26672         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
26673         stack variable alignment.
26674
26675 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
26676
26677         [BZ #17682]
26678         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
26679         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
26680         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
26681         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
26682         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
26683         __getrlimit instead of getrlimit.
26684         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
26685         __gettimeofday instead of gettimeofday.
26686         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
26687         Likewise.
26688         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
26689         Likewise.
26690         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
26691         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
26692         Remove variable.
26693         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
26694         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
26695
26696 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26697
26698         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
26699         for wide-character tests.
26700
26701 2014-12-04  Roland McGrath  <roland@hack.frob.com>
26702
26703         * io/openat64.c: #include <libc-internal.h>
26704         (__openat64): Prototypify.  Use ignore_value on MODE.
26705         * io/openat.c: Likewise.
26706         * misc/reboot.c: #include <libc-internal.h>
26707         (reboot): Prototypify.  Use ignore_value on HOWTO.
26708         * misc/ptrace.c: #include <libc-internal.h>
26709         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
26710
26711 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
26712
26713         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
26714         XPG4, UNIX98 and XOPEN2K.
26715         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
26716         Remove variable.
26717         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
26718
26719 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
26720
26721         * libio/fileops.c: Use ISO C style for function definitions.
26722         * libio/iofopen.c: Likewise.
26723         * libio/wfileops.c: Likewise.
26724
26725         [BZ #17653]
26726         * libio/fileops.c (_IO_new_file_underflow): Unset cached
26727         offset on EOF.
26728         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
26729         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
26730         (fgets_func): Function pointer to fgets and fgetws.
26731         (do_ftell_test): Add test to verify ftell value after read
26732         EOF.
26733         (do_test): Set fgets_func.
26734
26735         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
26736         O_TRUNC flag for w and w+ modes.
26737         (do_rewind_test): Likewise.
26738         (do_ftell_test): Likewise.
26739         (do_write_test): Likewise.
26740
26741         [BZ #17647]
26742         * libio/fileops.c (do_ftell): Seek only when there are
26743         unflushed writes.
26744         * libio/wfileops.c (do_ftell_wide): Likewise.
26745         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
26746         test case.
26747         (do_one_test): Call it.
26748
26749 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
26750
26751         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
26752         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
26753         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
26754         Remove variable.
26755         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
26756         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
26757         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
26758
26759 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
26760
26761         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
26762         Remove variable.
26763         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
26764
26765         [BZ #17668]
26766         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
26767         as weak alias of __getifaddrs.  Use libc_hidden_weak.
26768         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
26769         __freeifaddrs.  Use libc_hidden_weak.
26770         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
26771         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
26772         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
26773         __freeifaddrs.  Use libc_hidden_weak.
26774         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
26775         __getifaddrs and define as weak alias of __getifaddrs.  Use
26776         libc_hidden_weak.
26777         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
26778         __freeifaddrs.  Use libc_hidden_weak.
26779         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
26780         Remove variable.
26781         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
26782         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
26783
26784 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
26785
26786         [BZ #17601]
26787         * sysdeps/mips/start.S (__start): Use indirect jump to call
26788         __libc_start_main.
26789
26790 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
26791
26792         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
26793
26794         * nptl/tst-mutex1.c: Include <stdbool.h>.
26795         [!ATTR] (ATTR_NULL): New macro.
26796         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
26797         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
26798         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
26799
26800         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
26801         to char *.
26802
26803         [BZ #17665]
26804         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
26805         Change conditional to [__USE_MISC].
26806
26807         [BZ #17664]
26808         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
26809         fgets_unlocked.
26810         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
26811         __fgets_unlocked.
26812         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
26813         fgets_unlocked.
26814         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
26815         Remove variable.
26816         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
26817         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
26818         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
26819         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
26820         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
26821         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
26822         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
26823         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
26824         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
26825
26826         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
26827
26828 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26829
26830         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26831         Remove strpbrk objects.
26832         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26833         (__libc_ifunc_impl_list): Remove strpbrk implementation.
26834         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
26835         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
26836         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
26837         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
26838
26839         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26840         Remove strcspn objects.
26841         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26842         (__libc_ifunc_impl_list): Remove strcspn implementation.
26843         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
26844         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
26845         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
26846         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
26847
26848         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26849         Remove strspn objetcs.
26850         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26851         (__libc_ifunc_impl_list): Remove strspn implementation.
26852         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
26853         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
26854         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
26855         * sysdeps/powerpc/powerpc64/strspn.S: New file.
26856
26857 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
26858
26859         [BZ #17581]
26860         * malloc/hooks.c
26861         (mem2mem_check): Add a terminator to the chain of checking blocks.
26862         (malloc_check_get_size): Use it here.
26863         (mem2chunk_check): Ditto.
26864
26865 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26866
26867         * sysdeps/powerpc/powerpc64/strtok.S: New file.
26868         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
26869
26870 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
26871
26872         * bits/ioctl-types.h: Indent preprocessor directives correctly.
26873
26874         * nptl/nptl-init.c: Include libc-internal.h.
26875         (__pthread_initialize_minimal_internal): Use ROUND_UP.
26876
26877         * elf/ldconfig.c (search_dir): Expand comment.
26878
26879 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
26880
26881         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
26882         variable.
26883         (linknamespace-symlist-stdlibs-tests): Likewise.
26884         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
26885         instead of $(objpfx)symlist-stdlibs.
26886         (linknamespace-libs-isoc): New variable.
26887         (linknamespace-libs): Use $(linknamespace-libs-isoc).
26888         (linknamespace-libs-ISO): New variable.
26889         (linknamespace-libs-ISO99): Likewise.
26890         (linknamespace-libs-ISO11): Likewise.
26891         (linknamespace-libs-XPG3): Likewise.
26892         (linknamespace-libs-XPG4): Likewise.
26893         (linknamespace-libs-POSIX): Likewise.
26894         (linknamespace-libs-UNIX98): Likewise.
26895         (linknamespace-libs-XOPEN2K): Likewise.
26896         (linknamespace-libs-POSIX2008): Likewise.
26897         (linknamespace-libs-XOPEN2K8): Likewise.
26898         ($(objpfx)symlist-stdlibs): Replace by
26899         $(linknamespace-symlist-stdlibs-tests).  Use
26900         $(linknamespace-libs-$*) as set of libraries.
26901         ($(linknamespace-header-tests)): Update dependencies.  Use
26902         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
26903         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
26904         * conform/linknamespace.pl: Remove comment about considering
26905         definitions of symbols from irrelevant libraries.
26906
26907 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
26908
26909         [BZ #13862]
26910         * elf/dl-tls.c: Include <atomic.h>.
26911         (oom): Remove #ifdef SHARED/#endif.
26912         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
26913         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
26914         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
26915         big enough.
26916         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
26917         * nptl/Makefile (tests): Add tst-stack4.
26918         (modules-names): Add tst-stack4mod.
26919         ($(objpfx)tst-stack4): New.
26920         (tst-stack4mod.sos): Likewise.
26921         ($(objpfx)tst-stack4.out): Likewise.
26922         ($(tst-stack4mod.sos)): Likewise.
26923         (clean): Likewise.
26924         * nptl/tst-stack4.c: New file.
26925         * nptl/tst-stack4mod.c: Likewise.
26926
26927 2014-11-27  J. Brown  <jb999@gmx.de>
26928
26929         * sysdeps/x86/bits/string.h: Add recent CPUs.
26930
26931 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
26932
26933         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
26934         sigblock.
26935
26936         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
26937         feof.
26938
26939         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
26940         variable.
26941
26942 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
26943
26944         * nscd/connections.c: Include libc-internal.h because of macro
26945         usage ignore_value.
26946
26947 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
26948
26949         * string/bits/string3.h (__warn_memset_zero_len): Don't
26950         declare for gcc newer than 5.0.
26951         (memset): Don't test for zero-length __LEN for gcc newer than
26952         5.0.
26953
26954 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
26955
26956         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
26957         size_t for %zu format.
26958
26959         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
26960         difference, not %ju.
26961
26962 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
26963
26964         * include/libc-internal.h (ignore_value): New macro.
26965         * nscd/connections.c (restart): Wrap calls to setuid and setgid
26966         with ignore_value.
26967
26968         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
26969         definition.
26970
26971         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
26972         pthread_cleanup_push to void *.
26973
26974         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
26975         Undefine.
26976
26977         [BZ #16619]
26978         [BZ #16740]
26979         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
26980         instead of 1L << 52.
26981
26982         * libio/bug-rewind.c (do_test): Check fwscanf return values.
26983         * libio/bug-rewind2.c (do_test): Likewise.
26984
26985         * debug/test-stpcpy_chk-ifunc.c: Remove file.
26986         * debug/test-strcpy_chk-ifunc.c: Likewise.
26987         * wcsmbs/test-wcschr-ifunc.c: Likewise.
26988         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26989         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26990         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26991         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26992         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26993         * Rules [$(multi-arch) = no] (tests): Do not filter out
26994         $(tests-ifunc).
26995         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
26996         * debug/Makefile (tests-ifunc): Remove variable.
26997         (tests): Do not add $(tests-ifunc).
26998         * wcsmbs/Makefile (tests-ifunc): Remove variable.
26999         (tests): Do not add $(tests-ifunc).
27000         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
27001         [TEST_IFUNC]: Remove conditionals.
27002         * string/test-string.h (TEST_IFUNC): Remove macro.
27003         [TEST_IFUNC]: Remove conditionals.
27004
27005         * string/test-strchr.c [!WIDE] (L): New macro.
27006         [WIDE] (L): Likewise.
27007         (check1): Use CHAR instead of char.  Use L on string and character
27008         constants.
27009
27010 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
27011
27012         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
27013         tests.
27014         * sysdeps/powerpc/bits/atomic.h
27015         (__arch_atomic_exchange_and_add_32_acq): Add definition.
27016         (__arch_atomic_exchange_and_add_32_rel): Likewise.
27017         (atomic_exchange_and_add_acq): Likewise.
27018         (atomic_exchange_and_add_rel): Likewise.
27019         * sysdeps/powerpc/powerpc32/bits/atomic.h
27020         (__arch_atomic_exchange_and_add_64_acq): Add definition.
27021         (__arch_atomic_exchange_and_add_64_rel): Likewise.
27022         * sysdeps/powerpc/powerpc64/bits/atomic.h
27023         (__arch_atomic_exchange_and_add_64_acq): Add definition.
27024         (__arch_atomic_exchange_and_add_64_rel): Likewise.
27025
27026 2014-11-26  Torvald Riegel  <triegel@redhat.com>
27027
27028         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
27029         Change synchronization of __sched_fifo_min_prio and
27030         __sched_fifo_max_prio.
27031         * nptl/pthread_mutexattr_getprioceiling.c
27032         (pthread_mutexattr_getprioceiling): Likewise.
27033         * nptl/pthread_mutexattr_setprioceiling.c
27034         (pthread_mutexattr_setprioceiling): Likewise.
27035         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
27036         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
27037         Likewise.
27038
27039 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
27040
27041         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
27042         void.
27043
27044 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
27045
27046         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
27047         third argument const.
27048
27049 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27050
27051         fnmatch: work around GCC compiler warning bug with uninit var
27052         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
27053         This works around a bug with x86-64 GCC 4.9.2 and earlier
27054         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
27055         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
27056         used uninitialized in this function [-Wmaybe-uninitialized]".
27057
27058 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
27059
27060         * posix/bug-regex31.c (main): Return RES not 0.
27061
27062 2014-11-25  Anton Blanchard <anton@samba.org>
27063
27064         * sysdeps/powerpc/bits/atomic.h
27065         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
27066
27067 2014-11-24  Sterling Augustine  <saugustine@google.com>
27068
27069         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
27070
27071 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
27072
27073         [BZ #17608]
27074         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
27075
27076 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
27077
27078         [BZ #17633]
27079         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
27080         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
27081         variable.
27082         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
27083         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
27084
27085 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
27086
27087         * string/strncpy.c (strncpy): Improve performance by using memset.
27088
27089 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
27090
27091         * string/strcpy.c (strcpy):
27092         Improve performance by using strlen and memcpy.
27093
27094 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
27095
27096         * string/strcoll_l.c (get_next_seq): __always_inline.
27097         * string/strcoll_l.c (do_compare): __always_inline.
27098
27099 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27100
27101         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
27102         defined.
27103         * include/mqueue.h: Likewise.
27104         * include/stdlib.h: Likewise.
27105
27106         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
27107         (get_null_defines): Adjust.
27108         * sunrpc/Makefile: Adjust comment.
27109         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
27110         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
27111         (CFLAGS-interp.c): Likewise.
27112         (CFLAGS-ldconfig.c): Likewise.
27113         (CPPFLAGS-.os): Likewise.
27114         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
27115         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
27116         * extra-modules.mk (extra-modules.mk): Likewise.
27117         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
27118         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
27119         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
27120         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
27121         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
27122         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
27123         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
27124         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
27125         * iconvdata/Makefile (CPPFLAGS): Likewise.
27126         (cpp-srcs-left): Add libof for all iconvdata routines.
27127         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
27128         * include/assert.h: Likewise.
27129         * include/ctype.h: Likewise.
27130         * include/errno.h: Likewise.
27131         * include/libc-symbols.h: Likewise.
27132         * include/math.h: Likewise.
27133         * include/netdb.h: Likewise.
27134         * include/resolv.h: Likewise.
27135         * include/stdio.h: Likewise.
27136         * include/stdlib.h: Likewise.
27137         * include/string.h: Likewise.
27138         * include/sys/stat.h: Likewise.
27139         * include/wctype.h: Likewise.
27140         * intl/l10nflist.c: Likewise.
27141         * libidn/idn-stub.c: Likewise.
27142         * libio/libioP.h: Likewise.
27143         * nptl/libc_multiple_threads.c: Likewise.
27144         * nptl/pthreadP.h: Likewise.
27145         * posix/regex_internal.h: Likewise.
27146         * resolv/res_hconf.c: Likewise.
27147         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
27148         * sysdeps/arm/memmove.S: Likewise.
27149         * sysdeps/arm/sysdep.h: Likewise.
27150         * sysdeps/generic/_itoa.h: Likewise.
27151         * sysdeps/generic/symbol-hacks.h: Likewise.
27152         * sysdeps/gnu/errlist.awk: Likewise.
27153         * sysdeps/gnu/errlist.c: Likewise.
27154         * sysdeps/i386/i586/memcpy.S: Likewise.
27155         * sysdeps/i386/i586/memset.S: Likewise.
27156         * sysdeps/i386/i686/memcpy.S: Likewise.
27157         * sysdeps/i386/i686/memmove.S: Likewise.
27158         * sysdeps/i386/i686/mempcpy.S: Likewise.
27159         * sysdeps/i386/i686/memset.S: Likewise.
27160         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
27161         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27162         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
27163         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
27164         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27165         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
27166         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
27167         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27168         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
27169         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27170         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27171         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27172         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27173         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27174         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27175         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27176         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
27177         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
27178         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
27179         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27180         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
27181         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
27182         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27183         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27184         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27185         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
27186         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
27187         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27188         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
27189         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
27190         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27191         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
27192         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
27193         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27194         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
27195         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
27196         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27197         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27198         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
27199         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
27200         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27201         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27202         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
27203         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
27204         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27205         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27206         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
27207         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
27208         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27209         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
27210         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27211         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
27212         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
27213         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27214         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
27215         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
27216         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27217         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
27218         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
27219         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27220         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
27221         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27222         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
27223         * sysdeps/nptl/bits/libc-lock.h: Likewise.
27224         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
27225         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
27226         * sysdeps/posix/closedir.c: Likewise.
27227         * sysdeps/posix/opendir.c: Likewise.
27228         * sysdeps/posix/readdir.c: Likewise.
27229         * sysdeps/posix/rewinddir.c: Likewise.
27230         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
27231         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
27232         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
27233         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
27234         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
27235         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
27236         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
27237         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
27238         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
27239         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
27240         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
27241         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
27242         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
27243         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
27244         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
27245         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
27246         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
27247         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
27248         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
27249         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
27250         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
27251         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
27252         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
27253         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
27254         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
27255         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
27256         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
27257         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
27258         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
27259         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
27260         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
27261         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
27262         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
27263         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
27264         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
27265         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
27266         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
27267         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
27268         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
27269         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
27270         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
27271         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
27272         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
27273         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
27274         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
27275         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
27276         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
27277         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
27278         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
27279         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
27280         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
27281         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
27282         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
27283         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
27284         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
27285         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
27286         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
27287         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
27288         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
27289         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
27290         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
27291         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
27292         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
27293         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
27294         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
27295         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
27296         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
27297         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
27298         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
27299         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
27300         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
27301         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
27302         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
27303         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
27304         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
27305         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
27306         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
27307         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
27308         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
27309         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
27310         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
27311         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
27312         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
27313         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
27314         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
27315         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
27316         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
27317         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
27318         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
27319         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
27320         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
27321         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
27322         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
27323         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27324         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27325         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
27326         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27327         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27328         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
27329         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
27330         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27331         * sysdeps/unix/alpha/sysdep.S: Likewise.
27332         * sysdeps/unix/alpha/sysdep.h: Likewise.
27333         * sysdeps/unix/make-syscalls.sh: Likewise.
27334         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
27335         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27336         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27337         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
27338         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27339         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
27340         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
27341         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27342         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
27343         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
27344         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27345         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
27346         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27347         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
27348         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
27349         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
27350         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27351         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
27352         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
27353         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
27354         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
27355         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27356         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
27357         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
27358         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27359         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
27360         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
27362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
27363         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
27364         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27365         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27366         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
27367         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27368         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
27369         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27370         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
27371         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27372         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
27373         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
27374         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27375         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27376         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27377         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
27378         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27379         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
27380         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27381         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
27382         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
27383         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27384         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27385         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27386         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27387         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
27388         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
27389         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27390         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27391         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27392         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
27393         * sysdeps/x86_64/memcpy.S: Likewise.
27394         * sysdeps/x86_64/memmove.c: Likewise.
27395         * sysdeps/x86_64/memset.S: Likewise.
27396         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
27397         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
27398         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
27399         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
27400         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
27401         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
27402         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
27403         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27404         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27405         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27406         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27407         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27408         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
27409         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27410         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27411         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
27412         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
27413         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27414         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
27415         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27416         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
27417         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27418         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
27419         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
27420         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27421         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27422         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27423         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
27424         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
27425         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27426         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
27427         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27428         * sysdeps/x86_64/strcmp.S: Likewise.
27429
27430         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
27431
27432         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
27433         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
27434         * elf/rtld-Rules: Likewise.
27435         * elf/setup-vdso.h: Likewise.
27436         * include/assert.h: Likewise.
27437         * include/bits/stdlib-float.h: Likewise.
27438         * include/errno.h: Likewise.
27439         * include/sys/stat.h: Likewise.
27440         * include/unistd.h: Likewise.
27441         * sysdeps/aarch64/setjmp.S: Likewise.
27442         * sysdeps/alpha/setjmp.S: Likewise.
27443         * sysdeps/arm/__longjmp.S: Likewise.
27444         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
27445         * sysdeps/arm/setjmp.S: Likewise.
27446         * sysdeps/arm/sysdep.h: Likewise.
27447         * sysdeps/generic/_itoa.h: Likewise.
27448         * sysdeps/generic/dl-sysdep.h: Likewise.
27449         * sysdeps/generic/ldsodefs.h: Likewise.
27450         * sysdeps/i386/dl-tls.h: Likewise.
27451         * sysdeps/i386/setjmp.S: Likewise.
27452         * sysdeps/m68k/setjmp.c: Likewise.
27453         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
27454         * sysdeps/mach/hurd/opendir.c: Likewise.
27455         * sysdeps/posix/getcwd.c: Likewise.
27456         * sysdeps/posix/opendir.c: Likewise.
27457         * sysdeps/posix/profil.c: Likewise.
27458         * sysdeps/powerpc/dl-procinfo.h: Likewise.
27459         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
27460         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
27461         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
27462         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27463         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
27464         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27465         * sysdeps/s390/dl-tls.h: Likewise.
27466         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27467         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27468         * sysdeps/sh/sh3/setjmp.S: Likewise.
27469         * sysdeps/sh/sh4/setjmp.S: Likewise.
27470         * sysdeps/unix/alpha/sysdep.h: Likewise.
27471         * sysdeps/unix/arm/sysdep.S: Likewise.
27472         * sysdeps/unix/i386/sysdep.S: Likewise.
27473         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27474         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
27475         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27476         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27477         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27478         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
27479         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27480         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27481         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
27482         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
27483         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
27484         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27485         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27488         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27489         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27490         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27491         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27492         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27493         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27494         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27495         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27496         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27497         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27498         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27499         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27500         * sysdeps/unix/x86_64/sysdep.S: Likewise.
27501         * sysdeps/x86_64/setjmp.S: Likewise.
27502
27503         * include/math.h: Use IS_IN instead of IS_IN_libm.
27504         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
27505         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
27506         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
27507         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
27508         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
27509         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
27510         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
27511         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
27512         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
27513         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
27514         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
27515         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
27516         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
27517         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
27518         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
27519         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
27520         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27521         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
27522         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27523         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
27524         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
27525         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
27526         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
27527         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
27528         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
27529         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
27530         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
27531         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27532         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27533         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
27534         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
27535         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
27536         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
27537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
27538         Likewise.
27539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
27540         Likewise.
27541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
27542         Likewise.
27543         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
27544         Likewise.
27545         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
27546         Likewise.
27547         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
27548         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
27549         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
27550         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
27551         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
27552         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
27553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
27554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
27555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
27556         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
27557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
27558         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
27559         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
27560         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
27561         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
27562         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
27563         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
27564         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
27565         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
27566         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
27567         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
27568         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
27569         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
27570         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
27571         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
27572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
27573         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
27574
27575         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
27576         * nptl/pthreadP.h: Likewise.
27577         * nptl_db/structs.def: Likewise.
27578         * sysdeps/arm/sysdep.h: Likewise.
27579         * sysdeps/nptl/bits/libc-lock.h: Likewise.
27580         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
27581         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
27582         * sysdeps/unix/alpha/sysdep.h: 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/arm/sysdep-cancel.h: Likewise.
27587         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
27588         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
27589         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27590         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
27591         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27592         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
27593         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
27594         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
27595         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27596         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
27597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
27598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
27599         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27600         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27601         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27602         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
27603         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
27604         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27605         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27606         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
27607         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
27608         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27609
27610         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
27611         * nptl/pthreadP.h: Likewise.
27612         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
27613         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27614         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27615         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
27616         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
27617         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
27618         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27619         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
27620         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
27621         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
27622         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27623         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
27624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
27625         Likewise.
27626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
27627         Likewise.
27628         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27629         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27630         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27631         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
27632         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
27633         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27634         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
27635         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27636
27637         * dlfcn/dladdr.c: Use IS_IN.
27638         * dlfcn/dladdr1.c: Likewise.
27639         * dlfcn/dlclose.c: Likewise.
27640         * dlfcn/dlerror.c: Likewise.
27641         * dlfcn/dlinfo.c: Likewise.
27642         * dlfcn/dlmopen.c: Likewise.
27643         * dlfcn/dlopen.c: Likewise.
27644         * dlfcn/dlsym.c: Likewise.
27645         * dlfcn/dlvsym.c: Likewise.
27646
27647         * include/ifaddrs.h: Use IS_IN.
27648         * inet/check_pf.c: Likewise.
27649         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
27650         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
27651
27652         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
27653         IS_IN_ldconfig.
27654         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
27655         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
27656
27657         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
27658         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
27659         IS_IN (libc).
27660
27661         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
27662
27663         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
27664         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
27665         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
27666         * include/libc-symbols.h (IS_IN_LIB): New macro.
27667         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
27668         * include/netdb.h: Likewise.
27669         * include/stap-probe.h: Remove all uses of IN_LIB.
27670
27671         * Makeconfig (module-cppflags-real): Define MODULE_NAME
27672         instead of IN_MODULE.
27673         * include/libc-symbols.h (IN_MODULE): Define using
27674         MODULE_NAME.
27675         (PASTE_NAME, PASTE_NAME1): New macros.
27676         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
27677         of IN_LIB.
27678         (STAP_PROBE_ASM): Likewise.
27679
27680 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27681
27682         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
27683         __mach_init in dlopened libc.
27684
27685 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
27686
27687         * sysdeps/arm/preconfigure.ac: Delete EABI check.
27688         * sysdeps/arm/preconfigure: Regenerate.
27689
27690 2014-11-21  Roland McGrath  <roland@hack.frob.com>
27691
27692         * nptl/pthread_create.c (__pthread_create_2_1): Set
27693         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
27694         when copying values from IATTR into PD.
27695
27696 2014-11-21  Will Newton  <will.newton@linaro.org>
27697             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
27698
27699         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
27700         Refactor inline-asm.  Also add comment.
27701
27702         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
27703         ElfW macro instead of hardcoded Elf64 types.
27704         (la_aarch64_gnu_pltenter): Likewise.
27705         * sysdeps/aarch64/dl-machine.h
27706         (elf_machine_runtime_setup): Use ElfW(Addr).
27707
27708         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
27709         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
27710         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
27711         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
27712         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
27713         (R_AARCH64_TLS_DTPMOD64): Rename to ..
27714         (R_AARCH64_TLS_DTPMOD): This.
27715         (R_AARCH64_TLS_DTPREL64): Rename to ...
27716         (R_AARCH64_TLS_DTPREL): This.
27717         (R_AARCH64_TLS_TPREL64): Rename to ...
27718         (R_AARCH64_TLS_TPREL): This.
27719         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
27720         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
27721         R_AARCH64_TLS_TPREL64.
27722         (elf_machine_rela): Likewise.
27723
27724 2014-11-21  Torvald Riegel  <triegel@redhat.com>
27725
27726         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
27727         by setting it to 0.  64b atomics are not supported currently.
27728
27729 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
27730
27731         [BZ #16469]
27732         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
27733         search domain names.
27734
27735 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
27736
27737         [BZ #16469]
27738         * NEWS: Update.
27739         * resolv/res_query.c (__libc_res_nquerydomain): Retain
27740         trailing dot.
27741         * posix/tst-getaddrinfo5.c: New.
27742         * posix/Makefile (tests): Add it.
27743
27744 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
27745
27746         [BZ #14498]
27747         * NEWS: Fixed.
27748         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
27749         after parsing line but before break_if_match.
27750         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
27751         if there is a protocol mismatch.
27752
27753 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
27754
27755         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
27756         because the potential race is on the user-supplied stream.
27757
27758 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
27759
27760         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
27761         string literal if not passed a buffer.
27762         * manual/job.texi (ctermid): Update reasoning, note deviation
27763         from posix, suggest mtasurace when not passed a buffer, for
27764         future non-preliminary safety notes.
27765
27766 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
27767
27768         * manual/users.texi (cuserid): Fix MT-Safety note for the case
27769         of not passing it a buffer.
27770         Reported by Peng Haitao.
27771
27772 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
27773
27774         * manual/Makefile ($(objpfx)stamp-summary): Require
27775         check-safety.sh to pass.
27776         * manual/check-safety.sh: Wish for verification that every
27777         @deftypefn and @deftypefun is followed by a @safety remark.
27778
27779 2014-11-20  Roland McGrath  <roland@hack.frob.com>
27780
27781         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
27782
27783         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
27784         PTHREAD_CANCEL_ASYNCHRONOUS.
27785         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
27786         send SIGCANCEL.
27787
27788         * nptl/default-sched.h: New file.
27789         * sysdeps/unix/sysv/linux/default-sched.h: New file.
27790         * nptl/pthread_create.c: Include it.
27791         (__pthread_create_2_1): Use collect_default_sched instead of making
27792         Linux syscalls here directly.
27793
27794 2014-11-20  Torvald Riegel  <triegel@redhat.com>
27795
27796         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
27797         __pthread_once): Use C11 atomics.
27798
27799 2014-11-20  Torvald Riegel  <triegel@redhat.com>
27800
27801         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
27802
27803 2014-11-20  Torvald Riegel  <triegel@redhat.com>
27804
27805         * include/atomic.h (__atomic_link_error, __atomic_check_size,
27806         atomic_thread_fence_acquire, atomic_thread_fence_release,
27807         atomic_thread_fence_seq_cst, atomic_load_relaxed,
27808         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
27809         atomic_compare_exchange_weak_relaxed,
27810         atomic_compare_exchange_weak_acquire,
27811         atomic_compare_exchange_weak_release,
27812         atomic_exchange_acquire, atomic_exchange_release,
27813         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
27814         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
27815         atomic_fetch_and_acquire,
27816         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
27817
27818 2014-11-20  Torvald Riegel  <triegel@redhat.com>
27819
27820         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
27821         USE_ATOMIC_COMPILER_BUILTINS): Define.
27822         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
27823         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27824         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
27825         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27826         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
27827         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27828         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
27829         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27830         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
27831         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27832         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
27833         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27834         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
27835         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27836         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
27837         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27838         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
27839         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27840         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
27841         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27842         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
27843         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27844         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
27845         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27846         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
27847         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27848         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
27849         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27850         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
27851         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27852         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
27853         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27854         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
27855         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27856         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
27857         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27858         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
27859         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27860         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
27861         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
27862
27863 2014-11-19  Roland McGrath  <roland@hack.frob.com>
27864
27865         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
27866         the sched_priority value here.  It was already checked when the user
27867         called pthread_attr_setschedparam.
27868
27869         * nptl/tst-bad-schedattr.c: New file.
27870         * nptl/Makefile (tests): Add it.
27871
27872 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
27873             Florian Weimer  <fweimer@redhat.com>
27874             Joseph Myers  <joseph@codesourcery.com>
27875             Adam Conrad  <adconrad@0c3.net>
27876             Andreas Schwab  <schwab@suse.de>
27877             Brooks  <bmoses@google.com>
27878
27879         [BZ #17625]
27880         * wordexp-test.c (__dso_handle): Add prototype.
27881         (__register_atfork): Likewise.
27882         (__app_register_atfork): New function.
27883         (registered_forks): New global.
27884         (register_fork): New function.
27885         (test_case): Add 3 new tests for WRDE_CMDSUB.
27886         (main): Call __app_register_atfork.
27887         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
27888         fork count is non-zero fail the test.
27889         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
27890         is set.
27891         (parse_dollars): Remove check for WRDE_NOCMD.
27892         (parse_dquote): Likewise.
27893
27894 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
27895
27896         * Makeconfig (built-modules): List non-library modules to be
27897         built.
27898         (module-cppflags): Include libc-modules.h for
27899         everything except shlib-versions.v.i.
27900         (CPPFLAGS): Use it.
27901         (before-compile): Add libc-modules.h.
27902         ($(common-objpfx)libc-modules.h,
27903         $(common-objpfx)libc-modules.stmp): New targets.
27904         (common-generated): Add libc-modules.h and libc-modules.stmp.
27905         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
27906         * include/libc-symbols.h: Don't include libc-modules.h.
27907         * include/libc-modules.h: Remove file.
27908         * scripts/gen-libc-modules.awk: New script to generate
27909         libc-modules.h.
27910         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
27911         Depend on libc-modules.stmp.
27912
27913         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
27914
27915         * Makeconfig (in-module): Get value of libof set for the
27916         translation unit.
27917         (CPPFLAGS): Use $(in-module).
27918         * Makerules: Don't suffix routine names for nonlib.
27919         * include/libc-modules.h: New file.
27920         * include/libc-symbols.h: Include libc-modules.h
27921         (IS_IN): New macro to replace IS_IN_* macros.
27922         * elf/Makefile: Set libof-* for each routine.
27923         * elf/rtld-Rules: Likewise.
27924         * extra-modules.mk: Likewise.
27925         * iconv/Makefile: Likewise.
27926         * iconvdata/Makefile: Likewise.
27927         * locale/Makefile: Likewise.
27928         * malloc/Makefile: Likewise.
27929         * nss/Makefile: Likewise.
27930         * sysdeps/gnu/Makefile: Likewise.
27931         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
27932         * sysdeps/unix/sysv/linux/Makefile: Likewise.
27933         * sysdeps/s390/s390-64/Makefile: Likewise.
27934         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
27935         CPPFLAGS for nscd instead of nonlib.
27936
27937 2014-11-18  Roland McGrath  <roland@hack.frob.com>
27938
27939         * nptl/createthread.c: New file.
27940
27941         * nptl/createthread.c: Moved ...
27942         * sysdeps/unix/sysv/linux/createthread.c: ... here.
27943
27944         * nptl/createthread.c: Add proper top-line comment.
27945         (do_clone): Folded into ...
27946         (create_thread): ... here.  Take new arguments STOPPED_START and
27947         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
27948         increment __nptl_threads, do event-reporting logic, do
27949         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
27950         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
27951         resource cleanup if sched_setaffinity or sched_setscheduler fails,
27952         just send SIGCANCEL.
27953         * nptl/pthread_create.c: Forward-declare create_thread before
27954         including createthread.c.
27955         (start_thread): Use new macro START_THREAD_DEFN to replace defining
27956         declaration, and new macro START_THREAD_SELF to replace argument.
27957         Remove return statement.
27958         (report_thread_creation): New function.
27959         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
27960         synchronization logic, and __nptl_nthreads increment here, around
27961         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
27962         PD->parent_cancelhandling here, before create_thread.  When
27963         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
27964         __deallocate_stack, and ENOMEM translation here.
27965
27966 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
27967
27968         [BZ #17616]
27969         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
27970         (mptwo): Rename to __mptwo.
27971         (__inv): Use __mptwo instead of mptwo.
27972         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
27973         (mptwo): Rename to __mptwo.
27974         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
27975         of mpone and __mptwo instead of mptwo.
27976         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
27977         instead of mpone.
27978         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
27979         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
27980         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
27981         of mpone and __mptwo instead of mptwo.
27982         (__mpranred): Use __mpone instead of mpone.
27983         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
27984         variable.
27985         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
27986         (test-xfail-ISO99/math.h/linknamespace): Likewise.
27987         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
27988         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
27989         (test-xfail-ISO11/math.h/linknamespace): Likewise.
27990         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
27991         (test-xfail-XPG3/math.h/linknamespace): Likewise.
27992         (test-xfail-XPG4/math.h/linknamespace): Likewise.
27993         (test-xfail-POSIX/math.h/linknamespace): Likewise.
27994         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
27995         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
27996         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
27997         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
27998         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
27999         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
28000         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
28001         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
28002         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
28003         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
28004
28005 2014-11-18  Tom de Vries  <tom@codesoucery.com>
28006
28007         * manual/signal.texi (Primitives Interrupted by Signals): In section,
28008         replace BSD Handler xref with BSD Signal Handling.
28009
28010 2014-11-17  Richard Henderson  <rth@redhat.com>
28011
28012         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
28013         (_FP_PACK_RAW_2): Remove.
28014         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
28015         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
28016         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
28017         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
28018         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
28019         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
28020         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
28021         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
28022         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
28023         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
28024         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
28025         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
28026         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
28027         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
28028         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
28029         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
28030
28031 2014-11-14  Roland McGrath  <roland@hack.frob.com>
28032
28033         * signal/signal.h [__USE_MISC]
28034         (struct sigvec): Remove type.
28035         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
28036         (sigvec): Remove declaration.
28037         * sysdeps/posix/sigvec.c: Moved ...
28038         * signal/sigvec.c: ... here, replacing old file.
28039         (struct sigvec): New type, copied from old signal.h definition.
28040         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
28041         (__sigvec): Convert definition to prototype.
28042         (sigvec): Replace weak_alias with compat_symbol.
28043         * signal/Versions (libc: GLIBC_2.21): New version set.
28044         * include/signal.h: Remove __sigvec declaration.
28045         * sysdeps/unix/bsd/sigvec.c: Remove file.
28046         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
28047         * manual/signal.texi (BSD Handler): Remove subsection.
28048         Move siginterrupt up to ...
28049         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
28050         (Blocking in BSD): Fold subsection into its parent.
28051         * NEWS: Mention sigvec removal.
28052
28053 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
28054
28055         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
28056         (DLA_FMS): Make definition conditional only on [__FMA4__].
28057         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
28058         definition.
28059
28060         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
28061         Make definition conditional only on [PROF].
28062         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
28063         definition.
28064         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
28065         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
28066
28067         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
28068         !__GNUC__].
28069         * include/signal.h (__sigpause): Move declaration above call to
28070         libc_hidden_proto.
28071         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
28072         variable.
28073         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
28074         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
28075
28076 2014-11-14  David S. Miller  <davem@davemloft.net>
28077
28078         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
28079         Define before including <string/memcpy.c> and <string/mempcpy.c>.
28080
28081 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
28082
28083         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
28084         * configure: Regenerated.
28085         * manual/install.texi (Tools for Compilation): Document a
28086         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
28087         compiler verified to work.
28088         * INSTALL: Regenerated.
28089
28090         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
28091         redeclare with asm name.
28092         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
28093         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
28094         including <string.h>.
28095         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
28096         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
28097         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
28098         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
28099         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
28100         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
28101         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
28102
28103 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
28104
28105         * stdlib/strtol.c (__strtol): Use prototype definition.
28106
28107         [BZ #17594]
28108         * stdlib/strtol.c (SYM__): New macro.
28109         (SYM__1): Likewise.
28110         (__strtol): Likewise.
28111         (strtol): Rename to __strtol and define as weak alias of
28112         __strtol.  Use libc_hidden_weak.
28113
28114 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
28115
28116         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
28117         Use numbered labels in inline assembly.
28118
28119 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
28120
28121         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
28122         Add setjmp LIBC_PROBE.
28123         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
28124         Likewise.
28125         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
28126         Add longjmp, longjmp_target LIBC_PROBE.
28127         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
28128         Likewise.
28129
28130 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
28131
28132         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
28133         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
28134         to get rid of unused variable warning.
28135
28136 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
28137
28138         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
28139         Check for unwind_backtrace ==  NULL only in SHARED case.
28140         (__backchain_backtrace): Compile only in SHARED case.
28141         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
28142         Likewise.
28143         (__backchain_backtrace): Declare as static.
28144
28145 2014-11-12  Roland McGrath  <roland@hack.frob.com>
28146
28147         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
28148         (__libc_multiple_threads_ptr): Variable moved ...
28149         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
28150
28151 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
28152
28153         * conform/GlibcConform.pm: New file.
28154         * conform/conformtest.pl: Use GlibcConform module.
28155         * conform/linknamespace.pl: New file.
28156         * conform/list-header-symbols.pl: Likewise.
28157         * conform/Makefile (linknamespace-symlists-base): New variable.
28158         (linknamespace-symlists-tests): Likewise.
28159         (linknamespace-header-base): Likewise.
28160         (linknamespace-header-tests): Likewise.
28161         (tests-special): Add new tests.
28162         ($(linknamespace-symlists-tests)): New rule.
28163         (linknamespace-libs): New variable.
28164         ($(objpfx)symlist-stdlibs): New rule.
28165         ($(linknamespace-header-tests)): Likewise.
28166         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
28167         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
28168         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
28169         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
28170         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
28171         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
28172         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
28173         (test-xfail-ISO/math.h/linknamespace): Likewise.
28174         (test-xfail-ISO/signal.h/linknamespace): Likewise.
28175         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
28176         (test-xfail-ISO/time.h/linknamespace): Likewise.
28177         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
28178         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
28179         (test-xfail-ISO99/math.h/linknamespace): Likewise.
28180         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
28181         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
28182         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
28183         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
28184         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
28185         (test-xfail-ISO11/math.h/linknamespace): Likewise.
28186         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
28187         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
28188         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
28189         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
28190         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
28191         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
28192         (test-xfail-XPG3/math.h/linknamespace): Likewise.
28193         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
28194         (test-xfail-XPG3/search.h/linknamespace): Likewise.
28195         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
28196         (test-xfail-XPG3/time.h/linknamespace): Likewise.
28197         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
28198         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
28199         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
28200         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
28201         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
28202         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
28203         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
28204         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
28205         (test-xfail-XPG4/math.h/linknamespace): Likewise.
28206         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
28207         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
28208         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
28209         (test-xfail-XPG4/search.h/linknamespace): Likewise.
28210         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
28211         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
28212         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
28213         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
28214         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
28215         (test-xfail-XPG4/time.h/linknamespace): Likewise.
28216         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
28217         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
28218         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
28219         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
28220         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
28221         (test-xfail-POSIX/math.h/linknamespace): Likewise.
28222         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
28223         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
28224         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
28225         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
28226         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
28227         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
28228         (test-xfail-POSIX/time.h/linknamespace): Likewise.
28229         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
28230         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
28231         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
28232         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
28233         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
28234         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
28235         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
28236         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
28237         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
28238         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
28239         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
28240         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
28241         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
28242         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
28243         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
28244         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
28245         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
28246         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
28247         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
28248         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
28249         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
28250         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
28251         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
28252         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
28253         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
28254         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
28255         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
28256         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
28257         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
28258         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
28259         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
28260         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
28261         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
28262         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
28263         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
28264         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
28265         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
28266         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
28267         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
28268         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
28269         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
28270         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
28271         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
28272         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
28273         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
28274         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
28275         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
28276         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
28277         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
28278         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
28279         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
28280         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
28281         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
28282         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
28283         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
28284         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
28285         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
28286         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
28287         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
28288         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
28289         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
28290         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
28291         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
28292         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
28293         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
28294         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
28295         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
28296         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
28297         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
28298         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
28299         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
28300         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
28301         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
28302         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
28303         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
28304         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
28305         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
28306         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
28307         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
28308         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
28309         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
28310         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
28311         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
28312         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
28313         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
28314         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
28315         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
28316         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
28317         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
28318         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
28319         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
28320         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
28321         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
28322         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
28323         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
28324         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
28325         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
28326         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
28327
28328         [BZ #17589]
28329         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
28330         of fgets_unlocked.
28331
28332         [BZ #17585]
28333         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
28334         (memmem): Rename to __memmem and define as weak alias of
28335         __memmem.  Use libc_hidden_weak.
28336         (__memmem): Use libc_hidden_def.
28337         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
28338         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
28339         memmem.
28340
28341         [BZ #17582]
28342         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
28343         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
28344         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
28345         and define as weak alias of __fgets_unlocked.  Use
28346         libc_hidden_weak.
28347         (__fgets_unlocked): Use libc_hidden_def.
28348         * include/stdio.h (__fgets_unlocked): Declare.  Use
28349         libc_hidden_proto.
28350         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
28351         __fgets_unlocked instead of fgets_unlocked.
28352         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
28353         (GET_NPROCS_CONF_PARSER): Likewise.
28354         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
28355         (GET_NPROCS_CONF_PARSER): Likewise.
28356
28357         [BZ #17574]
28358         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
28359         weak alias of __wmemset.  Use libc_hidden_weak.
28360         (__wmemset): Use libc_hidden_def.
28361         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
28362         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
28363         of wmemset.
28364
28365         [BZ #17573]
28366         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
28367         with asm name __mempcpy.
28368         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
28369
28370         [BZ #17572]
28371         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
28372         and define as weak alias of __rawmemchr.
28373         (__rawmemchr): Do not define as strong alias of rawmemchr.
28374
28375         [BZ #17571]
28376         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
28377         alias of __qsort_r.
28378         (qsort): Call __qsort_r instead of qsort_r.
28379         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
28380         (__qsort_r): Declare.  Call libc_hidden_proto.
28381         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
28382         instead of qsort_r.
28383         * nscd/gai.c (__qsort_r): Define to qsort_r.
28384         * posix/tst-rfc3484.c (__qsort_r): Likewise.
28385         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
28386         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
28387
28388         [BZ #17570]
28389         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
28390         define as weak alias of __malloc_info.
28391
28392         [BZ #17584]
28393         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
28394         as weak alias of __rewinddir.  Don't use libc_hidden_def.
28395         (__rewinddir): Use libc_hidden_def.
28396         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
28397         as weak alias of __rewinddir.  Don't use libc_hidden_def.
28398         (__rewinddir): Use libc_hidden_def.
28399         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
28400         weak alias of __rewinddir.  Don't use libc_hidden_def.
28401         (__rewinddir): Use libc_hidden_def.
28402         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
28403         (__rewinddir): Use libc_hidden_proto.
28404         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
28405         rewinddir.
28406         (__getcwd): Use __rewinddir instead of rewinddir.
28407
28408         [BZ #17583]
28409         * libio/fileno.c (fileno): Rename to __fileno and define as weak
28410         alias of __fileno.  Use libc_hidden_weak.
28411         (__fileno): Use libc_hidden_def.
28412         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
28413         * libio/ftello.c (ftello): Rename to __ftello and define as weak
28414         alias of __ftello.
28415         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
28416         __ftello.
28417         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
28418         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
28419         libc_hidden_def.
28420         (fread_unlocked): Don't use libc_hidden_ver.
28421         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
28422         and define as weak alias of __fread_unlocked.  Don't use
28423         libc_hidden_def.
28424         (__fread_unlocked): Use libc_hidden_def.
28425         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
28426         (ftello): Don't use libc_hidden_proto.
28427         (__ftello): Declare.  Use libc_hidden_proto.
28428         (fread_unlocked): Don't use libc_hidden_proto.
28429         (__fread_unlocked): Declare.  Use libc_hidden_proto.
28430         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
28431         and __ftello instead of fileno, fread_unlocked and ftello.
28432
28433 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
28434
28435         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
28436         GOT12.
28437         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
28438         Likewise.
28439         (_dl_start_user): Likewise.
28440         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
28441
28442 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
28443             Siddhesh Poyarekar  <siddhesh@redhat.com>
28444
28445         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
28446         Move argv and envp down instead of moving argc up.
28447         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
28448
28449 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
28450
28451         [BZ #17506]
28452         * test-skeleton.c (main): Return successful if one of
28453         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
28454         * string/tst-strcoll-overflow.c: Define expected status.
28455
28456 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
28457
28458         [BZ #17475]
28459         * locale/iso-639.def: Define Bhili and Tulu language codes.
28460
28461 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
28462
28463         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
28464
28465 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
28466
28467         [BZ #17555]
28468         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
28469
28470 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
28471
28472         * configure.ac: Updated check of minimal required version to
28473         2.22.
28474         * manual/install.texi (Tools for Compilation): Updated version
28475         number.
28476         * configure: Regenerated.
28477         * INSTALL: Likewise.
28478
28479 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
28480
28481         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
28482         __tls_get_addr.
28483
28484 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
28485
28486         * include/sys/wait.h (__libc_waitpid): Remove declaration.
28487         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
28488         (__waitpid): Don't define as alias.  Use libc_hidden_def not
28489         libc_hidden_weak.
28490         (waitpid): Define as alias of __waitpid.
28491         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
28492         __waitpid.
28493         (__waitpid): Don't define as alias.  Use libc_hidden_def not
28494         libc_hidden_weak.
28495         (waitpid): Define as alias of __waitpid.
28496         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
28497         __libc_waitpid alias.
28498         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
28499         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
28500         Likewise.
28501         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
28502         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
28503         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
28504         alias.
28505         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
28506         __waitpid.
28507         (__waitpid): Don't define as alias.  Use libc_hidden_def not
28508         libc_hidden_weak.
28509         (waitpid): Define as alias of __waitpid.
28510
28511 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
28512
28513         * manual/llio.texi: Add comment that write safety has been
28514         fixed in Linux.
28515
28516         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
28517         (localplt-build-dso): Add elf/ld.so.
28518         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
28519         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
28520         and free for ld.so.
28521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
28522         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
28523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
28524         Likewise.
28525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
28526         Likewise.
28527         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
28528         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
28529         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
28530         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
28531         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
28532         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
28533         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
28534         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
28535         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
28536         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
28537         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
28538
28539 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
28540
28541         [BZ #14132]
28542         * include/libc-symbols.h (INTUSE): Remove macro.
28543         (INTDEF): Likewise.
28544         (INTVARDEF): Likewise.
28545         (_INTVARDEF): Likewise.
28546         (INTDEF2): Likewise.
28547         (INTVARDEF2): Likewise.
28548         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
28549         rtld_hidden_def instead of INTVARDEF.
28550         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
28551         (_dl_starting_up_internal): Remove declaration.
28552         (_dl_starting_up): Use rtld_hidden_proto.
28553         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
28554         declaration.
28555         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
28556         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
28557         _dl_starting_up.
28558         * elf/dl-writev.h (_dl_writev): Likewise.
28559         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
28560         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
28561         _dl_starting_up_internal.
28562
28563 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28564
28565         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
28566         test-skeleton.c.
28567
28568 2014-11-05  Will Newton  <will.newton@linaro.org>
28569
28570         * benchtests/Makefile: (bench-malloc): Add malloc thread
28571         scalability benchmark.
28572         * benchtests/bench-malloc-threads.c: New file.
28573
28574 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
28575
28576         * sysdeps/aarch64/strchrnul.S: New file.
28577
28578 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28579
28580         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
28581         definition.
28582         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
28583         Likwise.
28584         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
28585         Likewise.
28586         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
28587         Likewise.
28588         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
28589         Likewise.
28590         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
28591         Likewise.
28592
28593 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
28594
28595         * catgets/test-gencat.c: Use test-skeleton.c.
28596         * catgets/tst-catgets.c: Likewise.
28597         * csu/tst-empty.c: Likewise.
28598         * elf/tst-audit2.c: Likewise.
28599         * elf/tst-global1.c: Likewise.
28600         * elf/tst-pathopt.c: Likewise.
28601         * elf/tst-piemod1.c: Likewise.
28602         * elf/tst-tls10.c: Likewise.
28603         * elf/tst-tls11.c: Likewise.
28604         * elf/tst-tls12.c: Likewise.
28605         * gnulib/tst-gcc.c: Likewise.
28606         * iconvdata/tst-e2big.c: Likewise.
28607         * iconvdata/tst-loading.c: Likewise.
28608         * iconv/tst-iconv1.c: Likewise.
28609         * iconv/tst-iconv2.c: Likewise.
28610         * inet/test-inet6_opt.c: Likewise.
28611         * inet/tst-gethnm.c: Likewise.
28612         * inet/tst-network.c: Likewise.
28613         * inet/tst-ntoa.c: Likewise.
28614         * intl/tst-codeset.c: Likewise.
28615         * intl/tst-gettext2.c: Likewise.
28616         * intl/tst-gettext3.c: Likewise.
28617         * intl/tst-ngettext.c: Likewise.
28618         * intl/tst-translit.c: Likewise.
28619         * io/test-stat.c: Likewise.
28620         * libio/test-fmemopen.c: Likewise.
28621         * libio/tst-freopen.c: Likewise.
28622         * libio/tst-sscanf.c: Likewise.
28623         * libio/tst-ungetwc1.c: Likewise.
28624         * libio/tst-ungetwc2.c: Likewise.
28625         * libio/tst-widetext.c: Likewise.
28626         * localedata/tst-ctype.c: Likewise.
28627         * localedata/tst-digits.c: Likewise.
28628         * localedata/tst-leaks.c: Likewise.
28629         * localedata/tst-mbswcs1.c: Likewise.
28630         * localedata/tst-mbswcs2.c: Likewise.
28631         * localedata/tst-mbswcs3.c: Likewise.
28632         * localedata/tst-mbswcs4.c: Likewise.
28633         * localedata/tst-mbswcs5.c: Likewise.
28634         * localedata/tst-setlocale.c: Likewise.
28635         * localedata/tst-trans.c: Likewise.
28636         * localedata/tst-wctype.c: Likewise.
28637         * localedata/tst-xlocale1.c: Likewise.
28638         * login/tst-grantpt.c: Likewise.
28639         * malloc/tst-calloc.c: Likewise.
28640         * malloc/tst-malloc.c: Likewise.
28641         * malloc/tst-mallocstate.c: Likewise.
28642         * malloc/tst-mcheck.c: Likewise.
28643         * malloc/tst-mtrace.c: Likewise.
28644         * malloc/tst-obstack.c: Likewise.
28645         * math/atest-exp2.c: Likewise.
28646         * math/atest-exp.c: Likewise.
28647         * math/atest-sincos.c: Likewise.
28648         * math/test-matherr.c: Likewise.
28649         * math/test-misc.c: Likewise.
28650         * math/test-powl.c: Likewise.
28651         * math/tst-definitions.c: Likewise.
28652         * misc/tst-dirname.c: Likewise.
28653         * misc/tst-efgcvt.c: Likewise.
28654         * misc/tst-fdset.c: Likewise.
28655         * misc/tst-hsearch.c: Likewise.
28656         * misc/tst-mntent2.c: Likewise.
28657         * nptl/tst-sem7.c: Likewise.
28658         * nptl/tst-sem8.c: Likewise.
28659         * nptl/tst-sem9.c: Likewise.
28660         * nss/test-netdb.c: Likewise.
28661         * posix/tst-fnmatch.c: Likewise.
28662         * posix/tst-getlogin.c: Likewise.
28663         * posix/tst-gnuglob.c: Likewise.
28664         * posix/tst-mmap.c: Likewise.
28665         * pwd/tst-getpw.c: Likewise.
28666         * resolv/tst-inet_ntop.c: Likewise.
28667         * rt/tst-timer.c: Likewise.
28668         * stdio-common/test-fseek.c: Likewise.
28669         * stdio-common/test-popen.c: Likewise.
28670         * stdio-common/test-vfprintf.c: Likewise.
28671         * stdio-common/tst-cookie.c: Likewise.
28672         * stdio-common/tst-fileno.c: Likewise.
28673         * stdio-common/tst-gets.c: Likewise.
28674         * stdio-common/tst-obprintf.c: Likewise.
28675         * stdio-common/tst-perror.c: Likewise.
28676         * stdio-common/tst-sprintf2.c: Likewise.
28677         * stdio-common/tst-sprintf3.c: Likewise.
28678         * stdio-common/tst-sprintf.c: Likewise.
28679         * stdio-common/tst-swprintf.c: Likewise.
28680         * stdio-common/tst-tmpnam.c: Likewise.
28681         * stdio-common/tst-unbputc.c: Likewise.
28682         * stdio-common/tst-wc-printf.c: Likewise.
28683         * stdlib/tst-environ.c: Likewise.
28684         * stdlib/tst-fmtmsg.c: Likewise.
28685         * stdlib/tst-limits.c: Likewise.
28686         * stdlib/tst-rand48-2.c: Likewise.
28687         * stdlib/tst-rand48.c: Likewise.
28688         * stdlib/tst-random2.c: Likewise.
28689         * stdlib/tst-random.c: Likewise.
28690         * stdlib/tst-strtol.c: Likewise.
28691         * stdlib/tst-strtoll.c: Likewise.
28692         * stdlib/tst-tls-atexit.c: Likewise.
28693         * stdlib/tst-xpg-basename.c: Likewise.
28694         * string/test-ffs.c: Likewise.
28695         * string/tst-bswap.c: Likewise.
28696         * string/tst-inlcall.c: Likewise.
28697         * string/tst-strtok.c: Likewise.
28698         * string/tst-strxfrm.c: Likewise.
28699         * sysdeps/x86_64/tst-audit10.c: Likewise.
28700         * sysdeps/x86_64/tst-audit3.c: Likewise.
28701         * sysdeps/x86_64/tst-audit4.c: Likewise.
28702         * sysdeps/x86_64/tst-audit5.c: Likewise.
28703         * time/tst-ftime_l.c: Likewise.
28704         * time/tst-getdate.c: Likewise.
28705         * time/tst-mktime3.c: Likewise.
28706         * time/tst-mktime.c: Likewise.
28707         * time/tst-posixtz.c: Likewise.
28708         * time/tst-strptime2.c: Likewise.
28709         * time/tst-strptime3.c: Likewise.
28710         * wcsmbs/tst-btowc.c: Likewise.
28711         * wcsmbs/tst-mbrtowc.c: Likewise.
28712         * wcsmbs/tst-mbsrtowcs.c: Likewise.
28713         * wcsmbs/tst-wchar-h.c: Likewise.
28714         * wcsmbs/tst-wcpncpy.c: Likewise.
28715         * wcsmbs/tst-wcrtomb.c: Likewise.
28716         * wcsmbs/tst-wcsnlen.c: Likewise.
28717         * wcsmbs/tst-wcstof.c: Likewise.
28718
28719 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
28720
28721         [BZ #14132]
28722         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
28723         INTDEF.
28724         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
28725         declaration.
28726         (_dl_mcount): Use rtld_hidden_proto.
28727         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
28728         _dl_mcount.
28729         * elf/rtld.c (_rtld_global_ro): Likewise.
28730
28731         [BZ #14132]
28732         * elf/dl-init.c (_dl_init): Don't use INTDEF.
28733         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
28734         of _dl_init_internal.
28735         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
28736         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
28737         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
28738         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
28739         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
28740         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
28741         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
28742         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
28743         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
28744         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
28745         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
28746         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
28747         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
28748         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
28749         * sysdeps/tile/dl-start.S (_start): Likewise.
28750         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
28751         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
28752
28753         [BZ #14132]
28754         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
28755         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
28756         (rtld_progname): Make macro definition unconditional.
28757         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
28758         INTDEF.
28759         (dlmopen_doit): Do not use INTUSE with _dl_argv.
28760         (dl_main): Likewise.
28761         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
28762         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
28763         instead of _dl_argv_internal.
28764         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
28765         __GI__dl_argv instead of INTUSE(_dl_argv).
28766         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
28767         __GI__dl_argv instead of _dl_argv_internal.
28768
28769         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
28770         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
28771         macro.
28772         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
28773         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
28774         New macro.
28775         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
28776         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
28777         macro.
28778         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
28779         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
28780
28781 2014-11-04  Andreas Schwab  <schwab@suse.de>
28782
28783         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
28784
28785 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28786
28787         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
28788         mtvsrd instruction in binary form.
28789
28790 2014-11-03  Andreas Schwab  <schwab@suse.de>
28791
28792         [BZ #17522]
28793         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
28794         for less than MB_LEN_MAX use a local buffer of that size.
28795         * libio/tst-fputws.c: New file.
28796         * libio/Makefile (tests): Add tst-fputws.
28797
28798 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
28799
28800         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
28801         the size of the fpu_fr.fpu_dregs[] array.
28802
28803 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
28804
28805         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
28806         (__nanosleep): Do not define as alias.
28807         (nanosleep): Define as alias of __nanosleep.
28808         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
28809         __libc_nanosleep name.
28810
28811 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
28812
28813         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
28814         install.texi in comment.
28815
28816 2014-10-31  Torvald Riegel  <triegel@redhat.com>
28817
28818         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
28819         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
28820         ... add here and use lwsync or sync ...
28821         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
28822         ... and add here using lwsync.
28823
28824 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
28825
28826         * elf/dl-machine-reject-phdr.h: New file.
28827         * elf/dl-load.c: #include that.
28828         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
28829         if that returned true.
28830
28831 2014-10-31  Roland McGrath  <roland@hack.frob.com>
28832
28833         [BZ #17496]
28834         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
28835         gen-as-const-headers chunk.  Add a big scare comment after the last
28836         safe place to touch before-compile.
28837
28838 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
28839
28840         * manual/install.texi (Tools for Compilation): Update autoconf
28841         version requirements.
28842         * INSTALL: Regenerated.
28843
28844         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
28845         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
28846         (__libc_pselect): Likewise.
28847
28848         [BZ #14138]
28849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
28850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
28851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
28852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
28853
28854 2014-10-31  Torvald Riegel  <triegel@redhat.com>
28855
28856         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
28857         correct barrier instruction.
28858         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
28859         Likewise.
28860         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
28861         Likewise.
28862
28863 2014-10-30  Roland McGrath  <roland@hack.frob.com>
28864
28865         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
28866         after defining inlines.  Instead, just use parens to defeat macro
28867         expansion of __isctype in its declaration.
28868
28869 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
28870
28871         * include/sys/uio.h (__libc_readv): Remove declaration.
28872         (__libc_writev): Likewise.
28873         * misc/readv.c (__libc_readv): Rename to __readv.
28874         (__readv): Do not define as alias.
28875         (readv): Define as alias of __readv.
28876         * misc/writev.c (__libc_writev): Rename to __writev.
28877         (__writev): Do not define as alias.
28878         (writev): Define as alias of __writev.
28879         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
28880         (__readv): Do not define as alias.
28881         (readv): Define unconditionally as alias of __readv.
28882         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
28883         (__writev): Do not define as alias.
28884         (writev): Define unconditionally as alias of __writev.
28885         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
28886         name.
28887         (writev): Do not define __libc_writev name.
28888
28889 2014-10-30  Roland McGrath  <roland@hack.frob.com>
28890
28891         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
28892         (convert_charseq): New function, broken out of ...
28893         (use_from_charmap): ... here.  Call it.
28894         (use_to_charmap): Use convert_charseq and free instead of duplicating
28895         its code with a variable-length stack struct.
28896
28897 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
28898
28899         * include/fcntl.h (__libc_creat): Remove declaration.
28900         * io/creat.c (__libc_creat): Rename to creat.
28901         (creat): Do not define as alias.
28902         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
28903         of creat instead of __libc_creat.
28904         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
28905         to creat.
28906         (creat): Do not define as alias.
28907         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
28908         __libc_creat.
28909         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
28910         __libc_creat name.
28911         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
28912         Likewise.
28913
28914 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
28915
28916         * manual/llio.texi: Add comments discussing why write() may be
28917         considered MT-unsafe on Linux.
28918
28919 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
28920
28921         * dl-load.c (local_strdup): Remove.
28922         (expand_dynamic_string_token): Use __strdup.
28923         (decompose_rpath): Likewise.
28924         (_dl_map_object): Likewise.
28925
28926 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
28927
28928         [BZ #14132]
28929         * sysdeps/generic/unwind-dw2-fde.c
28930         (__register_frame_info_bases_internal): Do not declare.
28931         (__register_frame_info_table_bases_internal): Likewise.
28932         (__deregister_frame_info_bases_internal): Likewise.
28933         (__register_frame_info_bases): Declare and use hidden_proto before
28934         definition.  Use hidden_def instead of INTDEF.
28935         (__register_frame_info_table_bases): Likewise.
28936         (__deregister_frame_info_bases): Likewise.
28937         (__register_frame_info): Do not use INTUSE.
28938         (__register_frame): Likewise.
28939         (__register_frame_info_table): Likewise.
28940         (__register_frame_table): Likewise.
28941         (__deregister_frame_info): Likewise.
28942         (__deregister_frame): Likewise.
28943
28944 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
28945
28946         * sysdeps/unix/sysv/linux/arm/kernel-features.h
28947         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
28948         not undefine.
28949         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
28950         Likewise.
28951         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
28952         Likewise.
28953
28954 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
28955
28956         [BZ #14138]
28957         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
28958         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
28959         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
28960         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
28961         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
28962         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
28963         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
28964         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
28965         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
28966         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
28967         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
28968         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
28969         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
28970         syscall.
28971         (setfsuid): Likewise.
28972         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
28973         (setfsuid): Likewise.
28974         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
28975         (setfsuid): Likewise.
28976         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
28977         Likewise.
28978         (setfsuid): Likewise.
28979         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
28980         (setfsuid): Likewise.
28981         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
28982         Likewise.
28983         (setfsuid): Likewise.
28984
28985 2014-10-27  Andreas Schwab  <schwab@suse.de>
28986
28987         [BZ #17501]
28988         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
28989         check for Slow_SSE4_2 feature bit.
28990         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
28991         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
28992         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
28993         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
28994
28995 2014-10-24  Roland McGrath  <roland@hack.frob.com>
28996
28997         * configure.ac: Validate compiler version with a empirical test of
28998         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
28999         $CC -v output.
29000         * configure: Regenerated.
29001
29002         * inet/htons.c (htons): Prototypify.
29003         * inet/htonl.c (htonl): Likewise.
29004
29005 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29006
29007         * string/strncat.c (strncat): Improve performance by using strlen.
29008
29009 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29010
29011         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
29012
29013 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29014
29015         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
29016         Call libc_fetestexcept_aarch64.
29017
29018 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29019
29020         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
29021         Call libc_feholdexcept_aarch64.
29022
29023 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29024
29025         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
29026         Call get_rounding_mode.
29027
29028 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29029
29030         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
29031         Simplify logic.
29032
29033 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
29034
29035         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
29036         Simplify logic.
29037
29038 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
29039
29040         [BZ #14138]
29041         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
29042         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
29043         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
29044         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
29045         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
29046         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
29047         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
29048         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
29049         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
29050         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
29051         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
29052         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
29053         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
29054         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
29055         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
29056         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
29057         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
29058         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
29059         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
29060         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
29061         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
29062         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
29063         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
29064         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
29065         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
29066         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
29067         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
29068         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
29069         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
29070         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
29071         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
29072         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
29073         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
29074         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
29075         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
29076         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
29077         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
29078         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
29079         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
29080         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
29081         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
29082         syscall.
29083         (geteuid): Likewise.
29084         (getgid): Likewise.
29085         (getuid): Likewise.
29086         (getresgid): Likewise.
29087         (getresuid): Likewise.
29088         (getgroups): Likewise.
29089         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
29090         (geteuid): Likewise.
29091         (getgid): Likewise.
29092         (getuid): Likewise.
29093         (getresgid): Likewise.
29094         (getresuid): Likewise.
29095         (getgroups): Likewise.
29096         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
29097         (geteuid): Likewise.
29098         (getgid): Likewise.
29099         (getuid): Likewise.
29100         (getresgid): Likewise.
29101         (getresuid): Likewise.
29102         (getgroups): Likewise.
29103         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
29104         Likewise.
29105         (geteuid): Likewise.
29106         (getgid): Likewise.
29107         (getuid): Likewise.
29108         (getresgid): Likewise.
29109         (getresuid): Likewise.
29110         (getgroups): Likewise.
29111         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
29112         (geteuid): Likewise.
29113         (getgid): Likewise.
29114         (getuid): Likewise.
29115         (getresgid): Likewise.
29116         (getresuid): Likewise.
29117         (getgroups): Likewise.
29118         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
29119         Likewise.
29120         (geteuid): Likewise.
29121         (getgid): Likewise.
29122         (getuid): Likewise.
29123         (getgroups): Likewise.
29124
29125         [BZ #14138]
29126         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
29127         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
29128         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
29129         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
29130         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
29131         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
29132         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
29133         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
29134         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
29135         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
29136         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
29137         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
29138         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
29139         __chown.
29140         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
29141         (lchown): Likewise.
29142         (fchown): Likewise.
29143         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
29144         Likewise.
29145         (lchown): Likewise.
29146         (fchown): Likewise.
29147         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
29148         (lchown): Likewise.
29149         (fchown): Likewise.
29150         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
29151         Likewise.
29152         (lchown): Likewise.
29153         (fchown): Likewise.
29154
29155 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
29156
29157         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
29158         Simplify logic.
29159
29160 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
29161
29162         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
29163         Cleanup logic.
29164
29165 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
29166
29167         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
29168         Remove unused include.
29169
29170 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
29171
29172         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
29173         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
29174         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
29175         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
29176
29177 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
29178             Helge Deller <deller@gmx.de>
29179
29180         [BZ #17508]
29181         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
29182         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
29183         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
29184
29185 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
29186
29187         [BZ #14132]
29188         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
29189         Remove macro definition.
29190         (__ashrdi3_v_glibc20): Likewise.
29191         (__lshrdi3_v_glibc20): Likewise.
29192         (__cmpdi2_v_glibc20): Likewise.
29193         (__ucmpdi2_v_glibc20): Likewise.
29194         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
29195         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
29196         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
29197         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
29198         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
29199         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
29200
29201 2014-10-22  Roland McGrath  <roland@hack.frob.com>
29202
29203         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
29204         old GNU extension [0] syntax.
29205         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
29206         alloca rather than an array member with variable length.
29207         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
29208         * nscd/nscd.c (invalidate_db): New function, broken out of ...
29209         (parse_opt): ... here.  Likewise use alloca there.
29210         Validate the -i argument before checking for rootness.
29211         (send_shutdown): New function, broken out of ...
29212         (parse_opt): ... here.
29213
29214 2014-10-22  Roland McGrath  <roland@hack.frob.com>
29215
29216         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
29217         macro to get at the _rt_local_ro field.
29218         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
29219         ([PIC] case) or _dl_hwcap ([!PIC] case).
29220         * sysdeps/arm/setjmp.S: Likewise.
29221
29222         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
29223         * sysdeps/arm/configure.ac: New check to define it.
29224         * sysdeps/arm/configure: Regenerated.
29225         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
29226         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
29227         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
29228         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
29229         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
29230         Use move/movt pair instead of a load.
29231         (LDST_GLOBAL): Macro removed.
29232         (LDR_GLOBAL): New macro replaces it.
29233         (LDR_HIDDEN): New macro.
29234         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
29235         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
29236
29237         * setjmp/tst-setjmp-static.c: New file.
29238         * setjmp/Makefile (tests): Add it.
29239         (tests-static): New variable.
29240
29241 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
29242
29243         [BZ #17485]
29244         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
29245
29246 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
29247
29248         [BZ #14132]
29249         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
29250
29251 2014-10-21  Roland McGrath  <roland@hack.frob.com>
29252
29253         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
29254
29255 2014-10-20  Roland McGrath  <roland@hack.frob.com>
29256
29257         * io/fts.c (dirent_not_directory): New function.
29258         (fts_build): Call it.
29259
29260 2014-10-20  Roland McGrath  <roland@hack.frob.com>
29261
29262         * nptl/version.c (__nptl_main): Use normal __write rather than
29263         INTERNAL_SYSCALL.
29264         (banner): Update copyright years.
29265
29266         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
29267         gettimeofday.
29268         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
29269         * nptl/pthread_cond_timedwait.c: Likewise.
29270         * nptl/pthread_mutex_timedlock.c: Likewise.
29271         * nptl/sem_timedwait.c: Likewise.
29272
29273         * sysdeps/nptl/bits/libc-lock.h
29274         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
29275         (__libc_lock_init_recursive): Return void, not 0.
29276         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
29277         (__libc_rwlock_init): Likewise.
29278         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
29279
29280 2014-10-20  Torvald Riegel  <triegel@redhat.com>
29281
29282         [BZ #15215]
29283         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
29284         (__pthread_once_slow): ... here.
29285         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
29286         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
29287
29288 2014-10-20  Torvald Riegel  <triegel@redhat.com>
29289
29290         [BZ #15215]
29291         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
29292         __PTHREAD_ONCE_FORK_GEN_INCR): New.
29293         * sysdeps/nptl/fork.c (__libc_fork): Use them.
29294         * nptl/pthread_once.c (__pthread_once): Likewise.
29295         Update comments.
29296
29297 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
29298
29299         [BZ #14138]
29300         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
29301         name.
29302         (writev): Use __libc_writev as strong name.
29303         * sysdeps/unix/sysv/linux/readv.c: Remove file.
29304         * sysdeps/unix/sysv/linux/writev.c: Likewise.
29305
29306 2014-10-17  Roland McGrath  <roland@hack.frob.com>
29307
29308         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
29309
29310         * sysdeps/i386/nptl/tls.h
29311         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
29312         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
29313         New macros.
29314         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
29315         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
29316         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
29317         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
29318         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
29319         Call CHECK_THREAD_SYSINFO instead of doing an assert.
29320
29321         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
29322         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
29323         on [__NR_futex].
29324         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
29325         broken out of ...
29326         (__pthread_mutex_init): ... here.  Call it.
29327         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
29328         Conditionalize PI cases on [__NR_futex].
29329         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
29330         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
29331         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
29332
29333         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
29334         conditional on [SIGSETXID].
29335         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
29336         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
29337         is defined.  Likewise for SIGSETXID.
29338         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
29339         Conditionalize definitions on [SIGSETXID].
29340         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
29341         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
29342         unblocking on [SIGCANCEL].
29343
29344         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
29345         [__NR_set_robust_list].
29346
29347 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
29348
29349         * string/strcoll_l.c (get_next_seq): Fix up formatting.
29350         (do_compare): Likewise.
29351
29352 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
29353
29354         [BZ #15884]
29355         * string/strcoll_l.c: Don't include stdio.h.
29356         (coll_seq): Remove members idxarr and rulearr.
29357         (get_next_seq_cached): Remove function.
29358         (get_next_seq): Likewise.
29359         (get_next_seq_nocache): Rename to get_next_seq.
29360         (do_compare): Remove function.
29361         (do_compare_nocache): Rename to do_compare.
29362         (STRCOLL): Remove weight and rules cache.
29363
29364 2014-10-16  Roland McGrath  <roland@hack.frob.com>
29365
29366         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
29367         * sysdeps/arm/sfp-machine.h: ... to here.
29368         * sysdeps/arm/Implies: Remove arm/soft-fp.
29369
29370 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
29371
29372         * conform/data/sys/utsname.h-data (*_t): Allow.
29373         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
29374         [POSIX] (WEXITED): Do not expect constant.
29375         [POSIX] (WSTOPPED): Likewise.
29376         [POSIX] (WNOHANG): Likewise.
29377         [POSIX] (WNOWAIT): Likewise.
29378         [POSIX] (siginfo_t): Do not expect type or elements.
29379         [POSIX] (pid_t): Do not expect type.
29380         [POSIX] (signal.h): Do not allow header.
29381         [POSIX] (sys/resource.h): Likewise.
29382         [POSIX] (si_*): Do not allow pattern.
29383         [POSIX] (W*): Likewise.
29384         [POSIX] (P_*): Likewise.
29385         [POSIX] (BUS_*): Likewise.
29386         [POSIX] (CLD_*): Likewise.
29387         [POSIX] (FPE_*): Likewise.
29388         [POSIX] (ILL_*): Likewise.
29389         [POSIX] (POLL_*): Likewise.
29390         [POSIX] (SEGV_*): Likewise.
29391         [POSIX] (SI_*): Likewise.
29392         [POSIX] (TRAP_*): Likewise.
29393         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
29394         variable.
29395
29396 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
29397
29398         [BZ #12926]
29399         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
29400         infinite loop when __recvmsg returns 0.
29401
29402 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
29403
29404         * CANCEL-FCT-WAIVE: Remove file.
29405         * CANCEL-FILE-WAIVE: Likewise.
29406
29407         [BZ #14132]
29408         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
29409         instead of INTVARDEF.
29410         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
29411         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
29412         rtld_hidden_data_def instead of INTVARDEF.
29413         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
29414         * elf/dl-deps.c (expand_dst): Likewise.
29415         * elf/dl-load.c (_dl_dst_count): Likewise.
29416         (_dl_dst_substitute): Likewise.
29417         (decompose_rpath): Likewise.
29418         (_dl_init_paths): Likewise.
29419         (open_path): Likewise.
29420         (_dl_map_object): Likewise.
29421         * elf/rtld.c (dl_main): Likewise.
29422         (process_dl_audit): Likewise.
29423         (process_envvars): Likewise.
29424         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
29425         Remove declaration.
29426         (__libc_enable_secure): Use rtld_hidden_proto.
29427
29428 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
29429
29430         * elf/dl-load.c
29431         (add_path): New function broken out of _dl_rtld_di_serinfo.
29432         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
29433
29434 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
29435
29436         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
29437         parentheses around macro arguments.
29438         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
29439         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
29440         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
29441         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
29442         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
29443         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
29444         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
29445         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
29446         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
29447         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
29448         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
29449         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
29450         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
29451         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
29452         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
29453         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
29454         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
29455         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
29456         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
29457         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
29458         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
29459         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
29460         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
29461         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
29462         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
29463         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
29464         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
29465         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
29466         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
29467         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
29468         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
29469         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
29470         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
29471         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
29472         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
29473         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
29474         Likewise.
29475         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
29476         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
29477         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
29478         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
29479         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
29480         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
29481         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
29482         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
29483         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
29484         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
29485         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
29486         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
29487         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
29488         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
29489         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
29490         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
29491         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
29492         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
29493         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
29494         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
29495         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
29496         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
29497         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
29498         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
29499         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
29500         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
29501         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
29502         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
29503         (_FP_FRAC_SRS_1): Likewise.
29504         (_FP_FRAC_CLZ_1): Likewise.
29505         (_FP_MUL_MEAT_1_imm): Likewise.
29506         (_FP_MUL_MEAT_1_wide): Likewise.
29507         (_FP_MUL_MEAT_1_hard): Likewise.
29508         (_FP_SQRT_MEAT_1): Likewise.
29509         (_FP_FRAC_ASSEMBLE_1): Likewise.
29510         (_FP_FRAC_DISASSEMBLE_1): Likewise.
29511         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
29512         (__FP_CLZ_2): Likewise.
29513         (_FP_MUL_MEAT_2_wide): Likewise.
29514         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
29515         (_FP_MUL_MEAT_2_gmp): Likewise.
29516         (_FP_MUL_MEAT_2_120_240_double): Likewise.
29517         (_FP_SQRT_MEAT_2): Likewise.
29518         (_FP_FRAC_ASSEMBLE_2): Likewise.
29519         (_FP_FRAC_DISASSEMBLE_2): Likewise.
29520         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
29521         (_FP_FRAC_CLZ_4): Likewise.
29522         (_FP_MUL_MEAT_4_wide): Likewise.
29523         (_FP_MUL_MEAT_4_gmp): Likewise.
29524         (_FP_SQRT_MEAT_4): Likewise.
29525         (_FP_FRAC_ASSEMBLE_4): Likewise.
29526         (_FP_FRAC_DISASSEMBLE_4): Likewise.
29527         * soft-fp/op-common.h (_FP_CMP): Likewise.
29528         (_FP_CMP_EQ): Likewise.
29529         (_FP_CMP_UNORD): Likewise.
29530         (_FP_TO_INT): Likewise.
29531         (_FP_FROM_INT): Likewise.
29532         [!__FP_CLZ] (__FP_CLZ): Likewise.
29533         (_FP_DIV_HELP_imm): Likewise.
29534         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
29535         Likewise.
29536         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
29537         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
29538         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
29539         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
29540         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
29541         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
29542         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
29543         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
29544         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
29545         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
29546         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
29547         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
29548         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
29549         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
29550         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
29551         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
29552         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
29553         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
29554         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
29555         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
29556         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
29557         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
29558         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
29559         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
29560         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
29561         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
29562         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
29563         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
29564         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
29565         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
29566         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
29567         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
29568         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
29569         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
29570         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
29571         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
29572         (FP_UNPACK_RAW_SP): Likewise.
29573         (FP_PACK_RAW_S): Likewise.
29574         (FP_PACK_RAW_SP): Likewise.
29575         (FP_UNPACK_S): Likewise.
29576         (FP_UNPACK_SP): Likewise.
29577         (FP_UNPACK_SEMIRAW_S): Likewise.
29578         (FP_UNPACK_SEMIRAW_SP): Likewise.
29579         (FP_PACK_S): Likewise.
29580         (FP_PACK_SP): Likewise.
29581         (FP_PACK_SEMIRAW_S): Likewise.
29582         (FP_PACK_SEMIRAW_SP): Likewise.
29583         (_FP_SQRT_MEAT_S): Likewise.
29584         (FP_CMP_S): Likewise.
29585         (FP_CMP_EQ_S): Likewise.
29586         (FP_CMP_UNORD_S): Likewise.
29587         (FP_TO_INT_S): Likewise.
29588         (FP_FROM_INT_S): Likewise.
29589
29590         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
29591
29592         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
29593         (FP_EX_INVALID_IMZ): Likewise.
29594         (FP_EX_INVALID_IMZ_FMA): Likewise.
29595         (FP_EX_INVALID_ISI): Likewise.
29596         (FP_EX_INVALID_ZDZ): Likewise.
29597         (FP_EX_INVALID_IDI): Likewise.
29598         (FP_EX_INVALID_SQRT): Likewise.
29599         (FP_EX_INVALID_CVI): Likewise.
29600         (FP_EX_INVALID_VC): Likewise.
29601         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
29602         "invalid" exceptions.
29603         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
29604         (_FP_ADD_INTERNAL): Likewise.
29605         (_FP_MUL): Likewise.
29606         (_FP_FMA): Likewise.
29607         (_FP_DIV): Likewise.
29608         (_FP_CMP_CHECK_NAN): Likewise.
29609         (_FP_SQRT): Likewise.
29610         (_FP_TO_INT): Likewise.
29611         (FP_EXTEND): Likewise.
29612
29613 2014-10-09  Allan McRae  <allan@archlinux.org>
29614
29615         * po/fr.po: Update French translation from translation project.
29616
29617 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
29618
29619         [BZ #14132]
29620         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
29621         of INTDEF.
29622         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
29623         (__cxa_atexit): Use libc_hidden_proto.
29624         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
29625
29626         [BZ #14132]
29627         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
29628         declaration.
29629         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
29630         [!_ISOMAC] (__iswspace_l_internal): Likewise.
29631         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
29632         [!_ISOMAC] (__iswctype_internal): Likewise.
29633         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
29634         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
29635         alias.
29636         (fcntl): Remove __fcntl_internal alias.
29637         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
29638         __connect_internal alias.
29639         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
29640         Likewise.
29641
29642         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
29643         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
29644         FP_DENORM_ZERO.
29645         (_FP_CHECK_FLUSH_ZERO): New macro.
29646         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
29647         (_FP_CMP): Likewise.
29648         (_FP_CMP_EQ): Likewise.
29649         (_FP_TO_INT): Do not set inexact for subnormal arguments if
29650         FP_DENORM_ZERO.
29651         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
29652         (FP_TRUNC): Likewise.
29653
29654         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
29655         treated as invalid conversion, not as normal exponent.
29656
29657         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
29658         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
29659         (_FP_CMP_EQ): Likewise.
29660         (_FP_CMP_UNORD): Likewise.
29661         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
29662         (FP_CMP_EQ_D): Likewise.
29663         (FP_CMP_UNORD_D): Likewise.
29664         * soft-fp/extended.h (FP_CMP_E): Likewise.
29665         (FP_CMP_EQ_E): Likewise.
29666         (FP_CMP_UNORD_E): Likewise.
29667         * soft-fp/quad.h (FP_CMP_Q): Likewise.
29668         (FP_CMP_EQ_Q): Likewise.
29669         (FP_CMP_UNORD_Q): Likewise.
29670         * soft-fp/single.h (FP_CMP_S): Likewise.
29671         (FP_CMP_EQ_S): Likewise.
29672         (FP_CMP_UNORD_S): Likewise.
29673         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
29674         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
29675         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
29676         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
29677         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
29678         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
29679         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
29680         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
29681         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
29682         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
29683         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
29684         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
29685         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
29686         to FP_CMP_Q.
29687         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
29688         FP_CMP_Q.
29689         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
29690         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
29691         FP_CMP_EQ_Q.
29692         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
29693         FP_CMP_Q.
29694         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
29695         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
29696         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
29697         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
29698         FP_CMP_EQ_Q.
29699         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
29700         FP_CMP_Q.
29701         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
29702         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
29703         FP_CMP_EQ_Q.
29704         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
29705         FP_CMP_Q.
29706         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
29707         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
29708         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
29709         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
29710         FP_CMP_EQ_Q.
29711
29712         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
29713         a subnormal result, set the underflow exception if trapping on
29714         underflow is enabled.
29715         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
29716         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
29717         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
29718         redefine to 0.
29719         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
29720         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
29721         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
29722         * soft-fp/extendxftf2.c (__extendxftf2): Use
29723         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
29724
29725         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
29726         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
29727         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
29728         FP_HANDLE_EXCEPTIONS.
29729         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
29730         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
29731         FP_HANDLE_EXCEPTIONS.
29732         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
29733         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
29734         FP_HANDLE_EXCEPTIONS.
29735         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
29736         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
29737         FP_HANDLE_EXCEPTIONS.
29738
29739 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
29740
29741         [BZ #14132]
29742         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
29743         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
29744         use INTUSE.
29745         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
29746         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
29747         Remove alias.
29748         (__adjtimex): Define using libc_hidden_ver.
29749         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
29750         Remove declaration.
29751         (ntp_gettime): Call __adjtimex directly.
29752         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
29753         Remove declaration.
29754         (ntp_gettimex): Call __adjtimex directly.
29755         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
29756         __adjtimex_internal alias.
29757
29758 2014-10-08  Roland McGrath  <roland@hack.frob.com>
29759
29760         [BZ #17460]
29761         * nscd/nscd.c (more_help): Rewrite list of tables collection
29762         using xstrdup and asprintf.
29763
29764         * nscd/nscd_conf.c: Remove local xstrdup declaration.
29765
29766 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
29767             Roland McGrath  <roland@hack.frob.com>
29768
29769         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
29770         (do_lookup_unique): ... local function 'enter' here; update callers.
29771
29772 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
29773
29774         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
29775         compat_symbol calls on [SHARED].
29776         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
29777         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
29778         Remove.
29779         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
29780         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
29781         (oldsetrlimit): Remove.
29782         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
29783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
29784         (lchown): New syscall entry.
29785         (oldsetrlimit): Remove.
29786         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
29787         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
29788         (oldsetrlimit): Remove.
29789         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
29790
29791         [BZ #14138]
29792         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
29793         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
29794         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
29795         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
29796         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29797         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
29798         (fchown): Likewise.
29799         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
29800         (fchown): Likewise.
29801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
29802         Likewise.
29803
29804 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29805
29806         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
29807         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
29808         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
29809         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
29810         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
29811         Likewise.
29812         (__old_sem_post): Likewise.
29813
29814 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
29815
29816         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
29817         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
29818         HAVE_CLOCK_GETTIME_VSYSCALL macros.
29819         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
29820         Use INLINE_VSYSCALL macro.
29821         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
29822         __vdso_clock_gettime.
29823         * sysdeps/unix/sysv/linux/tile/init-first.c
29824         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
29825         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
29826         __vdso_clock_gettime.
29827
29828         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
29829         to set up frame more cleanly.
29830
29831         * sysdeps/tile/memcmp.c: New file.
29832
29833         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
29834
29835         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
29836         * sysdeps/tile/tilegx/strcasestr.c: New file.
29837         * sysdeps/tile/tilegx/strnlen.c: New file.
29838         * sysdeps/tile/tilegx/strstr.c: New file.
29839
29840         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
29841
29842 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
29843
29844         * nptl/tst-setuid3.c: Write errors to stdout.
29845
29846 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
29847
29848         * elf/dl-deps.c
29849         (preload): New functions broken out of _dl_map_object_deps.
29850         (_dl_map_object_deps):  Remove a nested function. Update call sites.
29851
29852 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
29853
29854         [BZ #14138]
29855         * sysdeps/unix/sysv/linux/execve.c: Remove file.
29856         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
29857
29858 2014-10-01  Steve Ellcey  <sellcey@mips.com>
29859
29860         * sysdeps/mips/strcmp.S: New.
29861
29862 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
29863
29864         [BZ #14138]
29865         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
29866         (linkat): Likewise.
29867         (mkdirat): Likewise.
29868         (readlinkat): Likewise.
29869         (renameat): Likewise.
29870         (symlinkat): Likewise.
29871         (unlinkat): Likewise.
29872         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
29873         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
29874         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
29875         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
29876         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
29877         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
29878         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
29879
29880 2014-09-30  Will Newton  <will.newton@linaro.org>
29881
29882         * math/math.h: Define long double math functions if
29883         _LIBC_TEST is defined.
29884         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
29885
29886         * localedata/Makefile: Move assignment to tests-special
29887         into an ifdef testing run-built-tests.
29888         * timezone/Makefile: Likewise.
29889
29890 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
29891
29892         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
29893         with $(BASH) not $(SHELL).
29894
29895 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
29896             Matthew LeGendre  <legendre1@llnl.gov>
29897
29898         [BZ #17411]
29899         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
29900         l_reloc_result.
29901
29902 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
29903
29904         * stdio-common/printf_fp.c
29905         (hack_digit): New function, broken out of ...
29906         (__printf_fp): ... local function here.  Update call sites.
29907         hack_digit now takes an additional parameter that is a pointer
29908         to a struct of the referenced locals.  Those locals moved inside
29909         the struct and references updated.
29910
29911 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29912
29913         * aclocal.m4: Require autoconf 2.69.
29914         * configure: Regenerated.
29915         * sysdeps/aarch64/configure: Likewise.
29916         * sysdeps/alpha/configure: Likewise.
29917         * sysdeps/arm/armv7/configure: Likewise.
29918         * sysdeps/arm/configure: Likewise.
29919         * sysdeps/ia64/configure: Likewise.
29920         * sysdeps/mach/configure: Likewise.
29921         * sysdeps/mips/configure: Likewise.
29922         * sysdeps/s390/configure: Likewise.
29923         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
29924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
29925
29926         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
29927         file.
29928         * sysdeps/ia64/configure.ac: Likewise.
29929
29930 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
29931
29932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
29933         specify symbol version for ld.so.  Do not include entry for
29934         libpthread.
29935         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
29936         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
29937         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
29938
29939         [BZ #14171]
29940         * Makeconfig [$(build-shared) = yes]
29941         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
29942         makefiles.
29943         [$(build-shared) = yes && $(soversions.mk-done) = t]
29944         ($(common-objpfx)gnu/lib-names.h): Remove rule.
29945         [$(build-shared) = yes && $(soversions.mk-done) = t]
29946         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
29947         to Makerules.
29948         [$(build-shared) = yes && $(soversions.mk-done) = t]
29949         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
29950         here.
29951         [$(build-shared) = yes && $(soversions.mk-done) = t]
29952         (common-generated): Don't append gnu/lib-names.h and
29953         gnu/lib-names.stmp here.
29954         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
29955         (lib-names-h-abi): New variable.
29956         [$(build-shared) = yes && $(soversions.mk-done) = t]
29957         (lib-names-stmp-abi): Likewise.
29958         [$(build-shared) = yes && $(soversions.mk-done) = t &&
29959         abi-variants] (before-compile): Append
29960         $(common-objpfx)$(lib-names-h-abi).
29961         [$(build-shared) = yes && $(soversions.mk-done) = t &&
29962         abi-variants] (common-generated): Append gnu/lib-names.h.
29963         [$(build-shared) = yes && $(soversions.mk-done) = t &&
29964         abi-variants] (install-others-nosubdir): Depend on
29965         $(inst_includedir)/$(lib-names-h-abi).
29966         [$(build-shared) = yes && $(soversions.mk-done) = t &&
29967         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
29968         [$(build-shared) = yes && $(soversions.mk-done) = t]
29969         ($(common-objpfx)$(lib-names-h-abi)): New rule.
29970         [$(build-shared) = yes && $(soversions.mk-done) = t]
29971         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
29972         [$(build-shared) = yes && $(soversions.mk-done) = t]
29973         (common-generated): Append $(lib-names-h-abi) and
29974         $(lib-names-stmp-abi).
29975         * scripts/lib-names.awk: Do not handle multi being set.
29976         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
29977         Remove variable.
29978         (abi-lp64_be-ld-soname): Likewise.
29979         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
29980         Likewise.
29981         (abi-hard-ld-soname): Likewise.
29982         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
29983         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
29984         Remove variable.
29985         (abi-o32_hard-ld-soname): Likewise.
29986         (abi-o32_soft_2008-ld-soname): Likewise.
29987         (abi-o32_hard_2008-ld-soname): Likewise.
29988         (abi-n32_soft-ld-soname): Likewise.
29989         (abi-n32_hard-ld-soname): Likewise.
29990         (abi-n32_soft_2008-ld-soname): Likewise.
29991         (abi-n32_hard_2008-ld-soname): Likewise.
29992         (abi-n64_soft-ld-soname): Likewise.
29993         (abi-n64_hard-ld-soname): Likewise.
29994         (abi-n64_soft_2008-ld-soname): Likewise.
29995         (abi-n64_hard_2008-ld-soname): Likewise.
29996         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
29997         Likewise.
29998         (abi-64-v2-ld-soname): Likewise.
29999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
30000         ld.so entries.
30001         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
30002         variable.
30003         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
30004         entry.
30005         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
30006         variable.
30007         (abi-64-ld-soname): Likewise.
30008         (abi-x32-ld-soname): Likewise.
30009         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
30010         entry.
30011         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
30012
30013 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
30014
30015         [BZ #14138]
30016         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
30017         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
30018         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
30019         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
30020         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
30021         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
30022         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
30023         syscall entry for GLIBC_2.2 symbol version.
30024         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
30025         Likewise.
30026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
30027         (setrlimit): Likewise.
30028         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
30029         Likewise.
30030
30031 2014-09-23  Will Newton  <will.newton@linaro.org>
30032
30033         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
30034         _LINUX_ARM_SYSDEP_H include guard too.
30035         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
30036         define.
30037
30038 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
30039
30040         * sysdeps/unix/sysv/linux/eventfd.c:
30041         Make first argument unsigned.
30042         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
30043         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
30044
30045 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
30046
30047         [BZ #16852]
30048         * socket/recvmmsg.c (recvmmsg): Drop const argument.
30049         * socket/sys/socket.h: Likewise.
30050         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
30051
30052 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30053
30054         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
30055
30056 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
30057
30058         * time/tst-ftime.c: New test.
30059         * time/Makefile (tests): Add tst-ftime.
30060
30061 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
30062
30063         * soft-fp/extended.h: Fix comment formatting.
30064         * soft-fp/op-1.h: Likewise.
30065         * soft-fp/op-2.h: Likewise.
30066         * soft-fp/op-4.h: Likewise.
30067         * soft-fp/op-8.h: Likewise.
30068         * soft-fp/op-common.h: Likewise.
30069         * soft-fp/soft-fp.h: Likewise.
30070
30071         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
30072
30073 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
30074
30075         [BZ #6652]
30076         * Makeconfig (soversions-default-setname): Remove variable.
30077         ($(common-objpfx)soversions.i): Don't pass default_setname to
30078         soversions.awk.
30079         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
30080         oldest_abi to abi-versions.awk.
30081         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
30082         * config.make.in (oldest-abi): Remove variable.
30083         * configure.ac (--enable-oldest-abi): Remove configure option.
30084         * configure: Regenerated.
30085         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
30086         text.
30087         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
30088         * scripts/soversions.awk: Do not handle default_setname variable.
30089         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
30090         variable.
30091         * sysdeps/mach/hurd/configure: Regenerated.
30092         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
30093         variable.
30094         * sysdeps/unix/sysv/linux/configure: Regenerated.
30095
30096 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
30097
30098         * elf/Makefile (CFLAGS-interp.c): Remove.
30099         ($(elf-objpfx)runtime-linker.h): Generate header with linker
30100         path string.
30101         * elf/interp.c: Include generated runtime-linker.h
30102
30103         * Makerules (lib%.so): Don't include $(+interp) in
30104         prerequisites.
30105         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
30106         * dlfcn/eval.c: Remove file.
30107
30108         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
30109         macros.
30110
30111         [BZ #17266]
30112         * misc/sys/cdefs.h: Define __extern_always_inline for clang
30113         4.2 and newer.
30114
30115         [BZ #17370]
30116         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
30117
30118 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
30119             Jakub Jelinek  <jakub@redhat.com>
30120
30121         [BZ #17266]
30122         * libio/stdio.h: Check definition of __fortify_function
30123         instead of __extern_always_inline to include bits/stdio2.h.
30124         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
30125         check if __extern_always_inline is defined.
30126         [__USE_MISC || __USE_XOPEN]: Likewise.
30127         [__USE_ISOC99] Likewise.
30128         * misc/sys/cdefs.h (__fortify_function): Define only if
30129         __extern_always_inline is defined.
30130         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
30131         __extern_always_inline and __extern_inline only for g++-4.3
30132         and newer or a compatible gcc.
30133
30134 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
30135
30136         [BZ #17371]
30137         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
30138         last change to handle zero prefix length.
30139
30140 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
30141
30142         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
30143         _SC_REGEX_VERSION.
30144
30145         * posix/getconf.c (vars): Add _POSIX_IPV6 and
30146         _POSIX_RAW_SOCKETS.
30147
30148 2014-09-13  Allan McRae  <allan@archlinux.org>
30149
30150         * po/ru.po: Update Russian translation from translation project.
30151
30152 2014-09-12  Roland McGrath  <roland@hack.frob.com>
30153
30154         * locale/programs/locale.c (show_locale_vars): Inline local function
30155         into its sole call site.  Clean up some style nits.
30156         (print_item): New function, broken out of ...
30157         (show_info): ... local function here.  Clean up style nits.
30158
30159         * locale/programs/ld-ctype.c (set_one_default): New function, broken
30160         out of ...
30161         (set_class_defaults): ... local function set_default here.
30162         Define set_default as a macro locally to pass constant parameters.
30163         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
30164         rather than a shared local.
30165
30166         * stdlib/rpmatch.c (try): New function, broken out of ...
30167         (rpmatch): ... local function here.  Also, prototypify definition.
30168
30169 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
30170
30171         * scripts/soversions.awk: Do not handle configuration names.
30172         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
30173         vendor and os variables to soversions.awk.
30174         * configure.ac: Do not modify gnu-* host_os.
30175         * configure: Regenerated
30176         * shlib-versions: Remove first column with configuration names.
30177         * nptl/shlib-versions: Likewise.
30178         * nptl_db/shlib-versions: Likewise.
30179         * sysdeps/hppa/shlib-versions: Likewise.
30180         * sysdeps/m68k/shlib-versions: Likewise.
30181         * sysdeps/mach/hurd/shlib-versions: Likewise.
30182         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
30183         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
30184         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
30185         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
30186         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
30187         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
30188         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
30189         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
30190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
30191         Likewise.
30192         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
30193         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
30194         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
30195         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
30196         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
30197         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
30198         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
30199         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
30200
30201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
30202         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
30203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
30204         Regenerated.
30205         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
30206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
30207         Condition symbol version definitions on [HAVE_ELFV2_ABI].
30208
30209         * shlib-versions: Remove OS-specific entries.  Moved to files in
30210         sysdeps.
30211         * sysdeps/mach/hurd/shlib-versions: New file.
30212         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
30213
30214         * nptl/shlib-versions: Remove architecture-specific entries.
30215         Moved to files in sysdeps.
30216         * shlib-versions: Likewise.
30217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
30218         file.
30219         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
30220         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
30221         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
30222         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
30223
30224         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
30225         (UDP_NO_CHECK6_RX): Likewise.
30226
30227 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
30228
30229         * sysdeps/posix/sysconf.c (__sysconf): Spell
30230         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
30231
30232 2014-08-12  Florian Weimer  <fweimer@redhat.com>
30233
30234         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
30235         loading.
30236         * iconv/Versions (__gconv_transliterate): Export for use from
30237         gconv modules.
30238         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
30239         (struct __gconv_trans_data, __gconv_trans_fct,
30240         __gconv_trans_context_fct, __gconv_trans_query_fct,
30241         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
30242         definitions.
30243         (struct __gconv_step_data): Remove __trans member.
30244         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
30245         longer hidden.  Remove unused trans_data argument.
30246         * iconv/gconv_int.h (struct trans_struct): Remove definition.
30247         (__gconv_translit_find): Remove declaration.
30248         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
30249         prototype.
30250         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
30251         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
30252         trans_data argument.  Add hidden definition.
30253         (__gconv_translit_find): Remove.
30254         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
30255         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
30256         * iconv/skeleton.c: Remove transliteration initialization.
30257         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
30258         __gconv_step_data initialization.
30259         * libio/iofwide.c (__libio_translit_): Remove.
30260         (_IO_fwide): Adjust struct __gconv_step_data initialization.
30261         * wcsmbs/btowc.c (__btowc): Likewise.
30262         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
30263         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
30264         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
30265         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
30266         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
30267         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
30268         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
30269         * wcsmbs/wctob.c (wctob): Likewise.
30270
30271 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
30272
30273         [BZ #16194]
30274         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
30275         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
30276         register usage.
30277         * sysdeps/x86/Makefile: Adjust.
30278
30279 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
30280             Roland McGrath  <roland@hack.frob.com>
30281
30282         * locale/weight.h: Add include guard.
30283         (findidx): Make static rather than auto; take new parameters
30284         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
30285         * locale/weightwc.h: Likewise.
30286         * posix/fnmatch_loop.c
30287         (FCT): Change type of EXTRA from int32_t to wint_t.
30288         Don't include either header inside the function.
30289         Call FINDIDX rather than findidx, and pass new arguments.
30290         #undef FINDIDX at the end of the file.
30291         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
30292         FINDIDX before including fnmatch_loop.c for the non-wide version.
30293         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
30294         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
30295         for the wide version.
30296         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
30297         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
30298         Pass new arguments to findidx.
30299         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
30300         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
30301         Don't #include it inside the function.  Pass new arguments to findidx.
30302         * posix/regex_internal.h
30303         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
30304         (re_string_elem_size_at): Don't #include it inside the function.
30305         Pass new arguments to findidx.
30306         * string/strcoll_l.c: #include WEIGHT_H at top level.
30307         (get_next_seq): Don't #include it inside the function.
30308         Pass new arguments to findidx.
30309         (get_next_seq_nocache): Likewise.
30310         * string/strxfrm_l.c: #include WEIGHT_H at top level.
30311         (STRXFRM): Don't #include it inside the function.
30312         Pass new arguments to findidx.
30313
30314 2014-09-11  Florian Weimer  <fweimer@redhat.com>
30315
30316         [BZ #17344]
30317         * malloc/malloc.c (unlink): Turn asserts into a call to
30318         malloc_printerr.
30319
30320 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
30321
30322         [BZ #17370]
30323         * libio/wfileops (do_ftell_wide): Free OUT.
30324
30325 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
30326
30327         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
30328
30329 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
30330
30331         [BZ #17363]
30332         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
30333         group if the current group is empty.
30334
30335 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30336
30337         * benchtests/bench-memset.c (test_main): Add more test from size
30338         from 32 to 512 bytes.
30339         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30340         Add POWER8 memset object.
30341         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30342         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
30343         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
30344         implementation.
30345         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
30346         Likewise.
30347         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
30348         multiarch POWER8 memset optimization.
30349         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
30350         POWER8 memset optimization.
30351
30352         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30353         Remove bzero multiarch objects.
30354         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
30355         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
30356         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
30357         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
30358         Remove define.
30359         [__bzero]: Redefine to specific name.
30360         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
30361         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
30362         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
30363         define.
30364         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
30365         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
30366
30367 2014-09-10  Florian Weimer  <fweimer@redhat.com>
30368
30369         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
30370         warnings into errors.
30371
30372         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
30373         __cxa_thread_atexit_impl prototype.
30374
30375 2014-09-09  Steve Ellcey  <sellcey@mips.com>
30376
30377         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
30378         Fix capitalization of error message.
30379
30380 2014-09-09  Steve Ellcey  <sellcey@mips.com>
30381
30382         * sysdeps/mips/preconfigure: Modify ABI tests.
30383
30384 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
30385
30386         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
30387
30388 2014-09-07  Roland McGrath  <roland@hack.frob.com>
30389             Carlos O'Donell  <carlos@systemhalted.org>
30390
30391         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
30392         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
30393         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
30394         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
30395         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
30396         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
30397         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
30398         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
30399         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
30400         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
30401         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
30402         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
30403         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
30404         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
30405         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
30406         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
30407         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
30408         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
30409         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
30410         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
30411         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
30412         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
30413         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
30414         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
30415         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
30416         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
30417         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
30418         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
30419         Deconditionalize the code that was previously under [RESET_PID].
30420         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
30421         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
30422         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
30423         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
30424         include sysdep.h.
30425
30426 2014-09-08  Allan McRae  <allan@archlinux.org>
30427
30428         * version.h (RELEASE): Set to "development".
30429         (VERSION): Set to "2.20.90"
30430
30431 2014-09-07  Allan McRae  <allan@archlinux.org
30432
30433         * version.h (RELEASE): Set to "stable".
30434         (VERSION): Set to "2.20"
30435         * include/features.h (__GLIBC_MINOR__): Set to 20.
30436
30437         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
30438         Liebler.
30439
30440         * po/ko.po: Update Korean translation from translation project.
30441
30442 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
30443
30444         [BZ #17354]
30445         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
30446         macro for handling signed relocations.
30447
30448 2014-09-03  Florian Weimer  <fweimer@redhat.com>
30449
30450         [BZ #17325]
30451         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
30452         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
30453         assert.
30454         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
30455         * iconvdata/ibm935.c (BODY): Likewise.
30456         * iconvdata/ibm937.c (BODY): Likewise.
30457         * iconvdata/ibm939.c (BODY): Likewise.
30458         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
30459         assert.
30460         * iconvdata/Makefile (iconv-test.out): Pass module list to test
30461         script.
30462         * iconvdata/run-iconv-test.sh: New test loop for checking for
30463         decoder crashers.
30464
30465 2014-09-02  Khem Raj  <raj.khem@gmail.com>
30466
30467         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
30468         libm_hidden_ver.
30469
30470 2014-09-01  Allan McRae  <allan@archlinux.org>
30471
30472         * po/eo.po: Update Esperanto translation from translation project.
30473
30474         * po/ca.po: Update Catalan translation from translation project.
30475
30476 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30477
30478         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
30479         __proc_dostop call.
30480
30481 2014-08-27  Mark Wielaard  <mjw@redhat.com>
30482
30483         [BZ #17319]
30484         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
30485         to call set_thread_area instead of hand written asm.
30486         (__NR_set_thread_area): Removed define.
30487         (TLS_FLAG_WRITABLE): Likewise.
30488         (__ASSUME_SET_THREAD_AREA): Remove check.
30489         (TLS_EBX_ARG): Remove define.
30490         (TLS_LOAD_EBX): Likewise.
30491
30492 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30493
30494         Simplify atomicity of socket creation in bind.
30495
30496         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
30497         looking up the name after linking the file.
30498
30499 2014-08-27  Allan McRae  <allan@archlinux.org>
30500
30501         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
30502
30503 2014-08-26  Florian Weimer  <fweimer@redhat.com>
30504
30505         [BZ #17187]
30506         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
30507         trans_compare, open_translit, __gconv_translit_find):
30508         Remove module loading code.
30509
30510 2014-08-26  Allan McRae  <allan@archlinux.org>
30511
30512         * po/vi.po: Update Vietnamese translation from translation project.
30513
30514         * po/uk.po: Update Ukrainian translation from translation project.
30515
30516         * po/fr.po: Update French translation from translation project.
30517
30518         * po/ru.po: Update Russian translation from translation project.
30519
30520         * po/pl.po: Update Polish translation from translation project.
30521
30522         * po/cs.po: Update Czech translation from translation project.
30523
30524         * po/de.po: Update German translation from translation project.
30525
30526         * po/bg.po: Update Bulgarian translation from translation project.
30527
30528         * po/sv.po: Update Sweedish translation from translation project.
30529
30530         * po/nl.po: Update Dutch translation from translation project.
30531
30532         * po/es.po: Update Spanish translation from translation project.
30533
30534 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
30535
30536         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
30537
30538         * catgets/Makefile (CPPFLAGS-gencat): Remove.
30539         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
30540         (CPPFLAGS-iconvconfig): Likewise.
30541         * timezone/Makefile (CPPFLAGS-zic): Likewise.
30542
30543         * include/libc-symbols.h: Remove unnecessary check for
30544         NOT_IN_libc.
30545         * nptl/pthreadP.h: Likewise.
30546         * sysdeps/aarch64/setjmp.S: Likewise.
30547         * sysdeps/alpha/setjmp.S: Likewise.
30548         * sysdeps/arm/sysdep.h: Likewise.
30549         * sysdeps/i386/setjmp.S: Likewise.
30550         * sysdeps/m68k/setjmp.c: Likewise.
30551         * sysdeps/posix/getcwd.c: Likewise.
30552         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
30553         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
30554         * sysdeps/s390/s390-32/setjmp.S: Likewise.
30555         * sysdeps/s390/s390-64/setjmp.S: Likewise.
30556         * sysdeps/sh/sh3/setjmp.S: Likewise.
30557         * sysdeps/sh/sh4/setjmp.S: Likewise.
30558         * sysdeps/unix/alpha/sysdep.h: Likewise.
30559         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30560         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30561         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
30562         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30565         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30566         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30567         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30568         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30569         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30570         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30571         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30572         * sysdeps/x86_64/setjmp.S: Likewise.
30573
30574 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
30575
30576         [BZ #17263]
30577         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
30578         <stdint.h>.
30579         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
30580         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
30581
30582 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
30583
30584         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
30585
30586         [BZ #17262]
30587         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
30588         and __x86_64__ when disabling x87 inline functions.
30589
30590 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
30591
30592         [BZ #17259]
30593         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
30594         asm statement with __cpuid_count.
30595
30596 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
30597
30598         * configure.ac: Change __ehdr_start code to dereference the struct.
30599         Run readelf on the output to look for relocations.
30600         * configure: Regenerated.
30601
30602 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
30603
30604         [BZ #17261]
30605         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
30606         value to 0.
30607         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
30608
30609 2014-08-12  Roland McGrath  <roland@hack.frob.com>
30610
30611         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
30612
30613 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
30614
30615         [BZ #16892]
30616         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
30617         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
30618
30619 2014-08-12  Sean Anderson  <seanga2@gmail.com>
30620
30621         * malloc/malloc.c: Fix typo in comment.
30622
30623 2014-08-09  Allan McRae  <allan@archlinux.org>
30624
30625         * Regenerate libc.po.
30626
30627 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
30628
30629         * intl/tst-gettext2.sh: Check every lang file for creation.
30630
30631 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
30632
30633         * sysdeps/aarch64/fpu/math_private.h
30634         (libc_feholdsetround_noex_aarch64_ctx): New function.
30635
30636 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
30637
30638         * sysdeps/arm/armv6/strcpy.S (strcpy):
30639         Fix performance issue in misaligned cases.
30640
30641 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30642
30643         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
30644         Move definition from termios.h.
30645         (struct termio): Likewise.
30646         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
30647         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
30648         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
30649         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
30650         Likewise.
30651         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
30652         Move definition to ioctl-types.h
30653         (struct termio): Likewise.
30654         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
30655         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
30656         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
30657         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
30658         Likewise.
30659
30660 2014-08-05  Richard Henderson  <rth@redhat.com>
30661
30662         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
30663         exceptions.
30664         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
30665         Add fraiseexcpt.
30666         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
30667         Use __feraiseexcept.
30668         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
30669         Protect libm symbols with IS_IN_libm.
30670
30671         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
30672
30673 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
30674
30675         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
30676
30677 2014-08-04  Will Newton  <will.newton@linaro.org>
30678
30679         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
30680         file.
30681
30682 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
30683
30684         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
30685         variants for each function.
30686
30687 2014-08-04  Roland McGrath  <roland@hack.frob.com>
30688
30689         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
30690         appended ...
30691         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
30692         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
30693         appended ...
30694         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
30695         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
30696         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
30697         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
30698         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
30699         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
30700         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
30701         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
30702         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
30703         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
30704         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
30705         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
30706         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
30707         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
30708         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
30709         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
30710         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
30711         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
30712         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
30713         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
30714         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
30715         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
30716         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
30717         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
30718         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
30719         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
30720         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
30721         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
30722         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
30723         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
30724         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
30725         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
30726         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
30727         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
30728         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
30729         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
30730         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
30731         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
30732         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
30733         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
30734         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
30735         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
30736         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
30737         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
30738         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
30739         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
30740         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
30741         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
30742         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
30743         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
30744         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
30745         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
30746         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
30747         Update #include.
30748         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
30749         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
30750
30751 2014-08-04  Roland McGrath  <roland@hack.frob.com>
30752
30753         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
30754         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
30755         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
30756         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
30757         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
30758         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
30759
30760 2014-08-04  Roland McGrath  <roland@hack.frob.com>
30761
30762         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
30763         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
30764         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30765         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
30766
30767 2014-08-04  Roland McGrath  <roland@hack.frob.com>
30768
30769         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
30770         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
30771         (__libc_vfork): Define function under this name.
30772         (__vfork): Define as an alias.
30773         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
30774         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
30775
30776 2014-08-04  Roland McGrath  <roland@hack.frob.com>
30777
30778         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
30779         that was previously under [RESET_PID].
30780         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
30781
30782 2014-08-04  Andreas Schwab  <schwab@suse.de>
30783
30784         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
30785
30786 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
30787
30788         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
30789         (main): Likewise.
30790
30791 2014-08-01  Roland McGrath  <roland@hack.frob.com>
30792
30793         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
30794
30795 2014-08-01  Richard Henderon  <rth@redhat.com>
30796
30797         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
30798         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
30799         typo in exact zero test.
30800         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
30801         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
30802         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
30803
30804 2014-08-01  Roland McGrath  <roland@hack.frob.com>
30805
30806         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
30807         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
30808         * sysdeps/arm/sysdep.h: ... here.
30809         [!__ASSEMBLER__]: Include <stdint.h>.
30810
30811 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30812
30813         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
30814         (HAVE_WCTYPE_H): Likewise.
30815         (HAVE_ISWCTYPE): Likewise.
30816         (ENABLE_NLS): Likewise.
30817         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
30818         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
30819
30820         * posix/regex_internal.c: Check if DEBUG is defined and is
30821         set.
30822
30823         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
30824         (HAVE_MBSRTOWCS): Likewise.
30825         * posix/fnmatch.c: Include string.h unconditionally.
30826
30827 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
30828
30829         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
30830         reversal.
30831
30832 2014-07-31  Roland McGrath  <roland@hack.frob.com>
30833
30834         * sysdeps/generic/safe-fatal.h: New file.
30835         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
30836         * nptl/forward.c: Include it.
30837         (__pthread_unwind): Use __safe_fatal as default action, rather
30838         than a bogus use of INTERNAL_SYSCALL that could never work.
30839
30840         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
30841         * configure.ac (libc_cv_builtin_trap): New test.
30842         * configure: Regenerated.
30843         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
30844         (ABORT_INSTRUCTION): Define using __builtin_trap.
30845
30846         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
30847         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
30848         * sysdeps/nptl/nptl-signals.h: New file.
30849         * nptl/pthreadP.h: Include <nptl-signals.h>.
30850
30851 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
30852
30853         * sysdeps/s390/s390-64/utf16-utf32-z9.c
30854         (ONE_DIRECTION): Define.
30855         * sysdeps/s390/s390-64/utf8-utf16-z9.c
30856         (ONE_DIRECTION): Define.
30857         * sysdeps/s390/s390-64/utf8-utf32-z9.c
30858         (ONE_DIRECTION): Define.
30859
30860 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
30861
30862         * sysdeps/s390/Makefile: Delete file.
30863         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
30864         * sysdeps/s390/__longjmp.c: Delete file.
30865         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
30866         Remove fields __flags and __reserved.
30867         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
30868         and add versioning.
30869         * sysdeps/s390/rtld-__longjmp.c: Delete file.
30870         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
30871         * sysdeps/s390/rtld-setjmp.S: Likewise.
30872         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
30873         * sysdeps/s390/s390-32/__longjmp.c: ... here.
30874         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
30875         * sysdeps/s390/s390-32/setjmp.S: ... here.
30876         Add versioning.
30877         (__sigsetjmp): Remove setting __flags field.
30878         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
30879         * sysdeps/s390/s390-64/__longjmp.c: ... here.
30880         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
30881         * sysdeps/s390/s390-64/setjmp.S: ... here.
30882         Add versioning.
30883         (__sigsetjmp): Remove setting __flags field.
30884         * sysdeps/s390/setjmp.S: Delete file.
30885         * sysdeps/s390/sigjmp.c: Likewise.
30886         * sysdeps/s390/v1-longjmp.c: Likewise.
30887         * sysdeps/s390/v1-setjmp.h: Likewise.
30888         * sysdeps/s390/v1-sigjmp.c: Likewise.
30889         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
30890         Remove v1-longjmp_chk.
30891         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
30892         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
30893         Include debug/longjmp_chk.c and add versioning.
30894         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
30895         Include nptl/pt-longjmp.c and add versioning.
30896         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
30897         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
30898         Include __longjmp.c.
30899         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
30900         Move to ...
30901         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
30902         (__getcontext): Remove setting __flags field.
30903         Add versioning.
30904         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
30905         Don't restore upper high grps.
30906         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
30907         Likewise.
30908         (__swapcontext): Remove setting uc_flags field.
30909         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
30910         Delete file.
30911         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
30912         Include __longjmp.c.
30913         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
30914         Move to ...
30915         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
30916         (__getcontext): Remove setting __flags field.
30917         Add versioning.
30918         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
30919         (__swapcontext): Remove setting uc_flags field.
30920         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
30921         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
30922         Remove fields uc_high_gprs and __reserved.
30923         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
30924         New file with reverted content.
30925         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
30926         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
30927         Regenerated.
30928         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
30929         Regenerated.
30930
30931 2014-07-31  Andreas Schwab  <schwab@suse.de>
30932
30933         * config.h.in (HAVE_IFUNC): Define to 0.
30934         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
30935         definedness.
30936
30937 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
30938
30939         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30940         memmove-avx-unaligned, memcpy-avx-unaligned and
30941         mempcpy-avx-unaligned.
30942         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30943         Add tests for AVX memcpy functions.
30944         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
30945         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
30946         memcpy_chk.
30947         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
30948         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
30949         memmove_chk.
30950         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
30951         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
30952         mempcpy_chk.
30953         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
30954         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
30955         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
30956
30957 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30958
30959         [BZ #17213]
30960         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
30961         powerpc64le.
30962
30963 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
30964
30965         [BZ #16839]
30966         * manual/llio.texi: Add section about open file description locks.
30967         * manual/examples/ofdlocks.c: Example of open file description
30968         lock usage.
30969         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
30970         F_OFD_SETLK, and F_OFD_SETLKW.
30971
30972 2014-07-23  Allan McRae  <allan@archlinux.org>
30973
30974         * po/es.po: Update Spanish translation from translation project.
30975
30976 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
30977
30978         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
30979
30980 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
30981
30982         [BZ #17078]
30983         * sysdeps/arm/dl-machine.h (elf_machine_rela)
30984         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
30985         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
30986
30987 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
30988
30989         [BZ #17088]
30990         * math/fesetenv.c (__fesetenv)
30991         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
30992         * math/feupdateenv.c (__feupdateenv)
30993         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
30994
30995         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
30996         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
30997         (__ASSUME_SOCKETCALL): Do not define.
30998
30999         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
31000         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
31001         (__ASSUME_SOCKETCALL): Do not define.
31002         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
31003         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
31004         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
31005         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
31006         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
31007         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
31008         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31009         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31010
31011         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
31012         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
31013         (__ASSUME_SOCKETCALL): Do not define.
31014         (__ASSUME_IPC64): Define unconditionally.
31015         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
31016         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
31017         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
31018         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
31019         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
31020         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31021         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
31022         Likewise.
31023
31024         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
31025         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
31026         (__ASSUME_SOCKETCALL): Do not define.
31027         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
31028         (__ASSUME_FUTEX_LOCK_PI): Likewise.
31029         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
31030         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
31031         (__ASSUME_REQUEUE_PI): Define unconditionally.
31032         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
31033         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
31034         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31035         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
31036         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31037         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31038
31039         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
31040         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
31041         (__ASSUME_SOCKETCALL): Do not define.
31042         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
31043         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
31044         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31045         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
31046         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31047         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
31048
31049         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
31050         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
31051         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
31052         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
31053         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
31054         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
31055         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
31056         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
31057         (__ASSUME_GETCPU_SYSCALL): Likewise.
31058
31059         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
31060         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
31061         cases for individual architectures.
31062         * sysdeps/gnu/configure: Regenerated.
31063         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
31064         LIBC_SLIBDIR_RTLDDIR.
31065         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
31066         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
31067         LIBC_SLIBDIR_RTLDDIR.
31068         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
31069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
31070         LIBC_SLIBDIR_RTLDDIR.
31071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
31072         Regenerated.
31073         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
31074         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
31075         file.
31076         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
31077         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
31078         file.
31079         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
31080         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
31081         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
31082         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
31083
31084         * sysdeps/aarch64/shlib-versions: Move to ...
31085         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
31086         * sysdeps/alpha/shlib-versions: Move to ...
31087         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
31088         * sysdeps/arm/shlib-versions: Move to ...
31089         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
31090         * sysdeps/hppa/shlib-versions: Move all contents except for
31091         libgcc_s entry to ...
31092         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
31093         entry from ...
31094         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
31095         * sysdeps/ia64/shlib-versions: Move to ...
31096         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
31097         entry from ...
31098         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
31099         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
31100         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
31101         * sysdeps/microblaze/shlib-versions: Move to ...
31102         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
31103         * sysdeps/mips/shlib-versions: Move to ...
31104         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
31105         entry from ...
31106         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
31107         * sysdeps/tile/shlib-versions: Move to ...
31108         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
31109         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
31110         from ...
31111         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
31112         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
31113         entry from ...
31114         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
31115
31116 2014-07-17  Will Newton  <will.newton@linaro.org>
31117
31118         * sysdeps/arm/bits/atomic.h
31119         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
31120         (__arch_compare_and_exchange_bool_16_int): Likewise.
31121         (__arch_compare_and_exchange_bool_64_int): Likewise.
31122
31123         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
31124         into an #else block.
31125
31126 2014-07-16  Roland McGrath  <roland@hack.frob.com>
31127
31128         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
31129         just Linux configurations.  Test empirically that the compiler sets
31130         __ARM_EABI__, rather than using the tuple to decide.
31131         * sysdeps/arm/preconfigure: Regenerated.
31132         * sysdeps/unix/sysv/linux/arm/configure: File removed.
31133         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
31134         contents appended ...
31135         * sysdeps/arm/configure.ac: ... here.
31136         * sysdeps/arm/configure: Regenerated.
31137
31138 2014-07-15  Roland McGrath  <roland@hack.frob.com>
31139
31140         * nptl/pthread_kill.c: New file.
31141         * nptl/pthread_sigmask.c: New file.
31142         * nptl/pthread_sigqueue.c: New file.
31143
31144         * sysdeps/nptl/lowlevellock.h: New file.
31145         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
31146         * sysdeps/nptl/lowlevellock-futex.h: New file.
31147
31148         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
31149         Remove dead declarations.
31150
31151 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
31152
31153         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
31154         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
31155         config-cflags-avx2.
31156         * sysdeps/x86_64/configure.ac: Likewise.
31157         * sysdeps/i386/configure: Regenerated.
31158         * sysdeps/x86_64/configure: Likewise.
31159         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31160         memset-avx2 only if config-cflags-avx2 is yes.
31161         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
31162         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
31163         defined.
31164         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
31165         only if HAVE_AVX2_SUPPORT is defined.
31166         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
31167
31168 2014-07-14  Alan Modra  <amodra@gmail.com>
31169
31170         [BZ #17153]
31171         * elf/elf.h (DT_PPC64_NUM): Correct value.
31172         * NEWS: Add to fixed bug list.
31173
31174 2014-07-13  Jim Meyering  <meyering@fb.com>
31175
31176         [BZ 17150]
31177         regex: don't deref NULL upon heap allocation failure
31178         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
31179         failure in one more place.
31180         To trigger the segfault, configure grep -with-included-regex,
31181         build it, and run these commands:
31182         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
31183
31184 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
31185
31186         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31187
31188 2014-07-11  Richard Henderson  <rth@redhat.com>
31189
31190         * sysdeps/aarch64/libm-test-ulps: Update.
31191
31192 2014-07-10  Florian Weimer  <fweimer@redhat.com>
31193
31194         [BZ #17135]
31195         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
31196         * nptl/allocatestack.c (__nptl_setxid_error): New function.
31197         (__nptl_setxid): Initialize error member.  Call
31198         __nptl_setxid_error.
31199         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
31200         * nptl/descr.h (struct xid_command): Add error member.
31201         * nptl/tst-setuid3.c: New file.
31202         * nptl/Makefile (tests): Add it.
31203
31204 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31205
31206         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
31207         New define.
31208         (__lll_trylock): Use __lll_base_trylock.
31209         (__lll_cond_trylock): Likewise.
31210
31211 2014-07-10  Roland McGrath  <roland@hack.frob.com>
31212
31213         * nptl/pthread_create.c (start_thread): Use atomic_or and
31214         lll_futex_wake directly rather than lll_robust_dead.
31215         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
31216         (lll_robust_dead): Macro removed.
31217         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
31218         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
31219         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
31220         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
31221         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
31222         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
31223         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
31224         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
31225         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
31226         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
31227         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
31228         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
31229         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
31230         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
31231         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
31232
31233         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
31234         Use atomic_compare_and_exchange_val_acq directly rather than
31235         lll_robust_trylock.
31236         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
31237         (__lll_robust_trylock, lll_robust_trylock): Removed.
31238         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
31239         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
31240         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
31241         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
31242         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
31243         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
31244         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
31245         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
31246         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
31247         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
31248         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
31249         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
31250         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
31251         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
31252
31253 2014-07-02  Florian Weimer  <fweimer@redhat.com>
31254
31255         * manual/locale.texi (Locale Names): New section documenting
31256         locale name syntax.  Adjust menu and node chaining accordingly.
31257         (Choosing Locale): Reference Locale Names, Locale Categories.
31258         Mention setting LC_ALL=C.  Reflect that name syntax is now
31259         documented.
31260         (Locale Categories): New section title.  Reference Locale Names.
31261         LC_ALL is an environment variable, but not a category.
31262         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
31263         description, now in Locale Name.  Reference that section.  Locale
31264         name syntax is now documented.
31265
31266 2014-07-02  Florian Weimer  <fweimer@redhat.com>
31267
31268         [BZ #17137]
31269         * locale/findlocale.c (name_present, valid_locale_name): New
31270         functions.
31271         (_nl_find_locale): Use the loc_name variable to store name
31272         candidates.  Call name_present and valid_locale_name to check and
31273         validate locale names.  Return an error if the locale is invalid.
31274
31275 2014-07-02  Florian Weimer  <fweimer@redhat.com>
31276
31277         * locale/setlocale.c (setlocale): Use strdup for allocating
31278         composite name copy.
31279
31280 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31281
31282         Sync up with gnulib.
31283         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
31284         [!_LIBC && ENABLE_NLS]: Include gettext.h.
31285         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
31286         and _GL_ARG_NONNULL.
31287         [USE_UNLOCKED_IO]: Include unlocked-io.h.
31288         [!_LIBC]: Include code for Windows and Cygwin.
31289         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
31290         Include prototype for int strerror_r.
31291         [!_LIBC] (is_open): New function.
31292         (flush_stdout): New function.
31293         (print_errno_message): Use it.
31294         (error): Likewise.
31295         (error_at_line): Likewise.
31296         (error_tail) Add function attribute macros.  Use
31297         __builtin_expect.
31298
31299         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
31300
31301         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
31302
31303         * io/ftw.c: Include sys/param.h unconditionally.
31304
31305         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
31306
31307         [BZ #17125]
31308         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
31309         libc_freeres_ptr.
31310         (freecache): New function to free CACHE on exit.
31311
31312         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
31313         initialization.
31314
31315 2014-07-09  David S. Miller  <davem@davemloft.net>
31316
31317         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31318
31319         * sysdeps/sparc/nptl/internaltypes.h: Delete.
31320         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
31321         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
31322         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
31323         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
31324         * sysdeps/sparc/nptl/sem_init.c: Likewise.
31325         * sysdeps/sparc/nptl/sem_post.c: Likewise.
31326         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
31327         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
31328         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
31329         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
31330         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
31331         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
31332
31333 2014-07-09  Andreas Schwab  <schwab@suse.de>
31334
31335         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
31336         output.
31337         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
31338         (do_test): Likewise.
31339
31340         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
31341
31342 2014-07-09  Will Newton  <will.newton@linaro.org>
31343
31344         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
31345         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
31346         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31347         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31348         * sysdeps/hppa/start.S (_start): Likewise.
31349
31350 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
31351
31352         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
31353
31354         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
31355         defined.
31356
31357 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
31358
31359         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
31360         after checking that it is non-NULL.
31361
31362         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
31363
31364 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31365
31366         * sysdeps/powerpc/memmove.c: Remove file.
31367         * sysdeps/powerpc/powerpc32/power4/memcopy.h
31368         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
31369         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
31370         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
31371         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
31372         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
31373         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
31374         string memmove instead of removed powerpc one.
31375
31376         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
31377         [weak_alias]: Fix compiler warning due trailing data.
31378         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
31379         [weak_alias]: Likewise.
31380         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
31381         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
31382
31383         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
31384         (__libc_ifunc_impl_list): Add memmove functions.
31385
31386 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
31387
31388         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
31389         Remove code.
31390         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
31391         Likewise.
31392         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
31393         Likewise.
31394         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
31395         Likewise.
31396         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
31397         Likewise.
31398         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
31399         Likewise.
31400         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
31401         Likewise.
31402         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
31403         Likewise.
31404         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
31405         Likewise.
31406         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
31407         Likewise.
31408         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
31409         Likewise.
31410         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
31411         Likewise.
31412         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
31413         Likewise.
31414         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
31415         Likewise.
31416         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
31417         Likewise.
31418         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
31419         Likewise.
31420         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
31421         Likewise.
31422
31423 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31424
31425         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
31426         to avoid alignment traps in non-cacheable memory.
31427         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
31428
31429         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
31430         multiarch objects.
31431         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
31432         file: multiarch power7 memmove.
31433         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
31434         multiarch default memmove.
31435         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
31436         multiarch memove for powerpc32/power4.
31437
31438         * string/bcopy.c: Use full path to include memmove.c.
31439         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
31440         multiarch objects.
31441         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
31442         bcopy for powerpc64.
31443         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
31444         bcopy for powerpc64.
31445         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
31446         and memmove implementations.
31447         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
31448         optimized multiarch memmove for POWER7/powerpc64.
31449         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
31450         default multiarch memmove for powerpc64.
31451         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
31452         multiarch for powerpc64.
31453         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
31454         for POWER7/powerpc64.
31455         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
31456         memmove for POWER7/powerpc64.
31457
31458         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
31459         glibc default one.
31460
31461         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
31462         __ELF_NATIVE_CLASS equal to 64.
31463
31464 2014-07-07  Roland McGrath  <roland@hack.frob.com>
31465
31466         * sysdeps/nptl/lowlevellock.h: File removed.
31467
31468         * NEWS: NPTL is no longer an add-on!
31469         * nptl/internaltypes.h: Moved ...
31470         * sysdeps/nptl/internaltypes.h: ... here.
31471         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
31472         * sysdeps/nptl/fork.c: Likewise.
31473         * sysdeps/nptl/gai_misc.h: Likewise.
31474         * sysdeps/nptl/librt-cancellation.c: Likewise.
31475         * sysdeps/nptl/jmp-unwind.c: Likewise.
31476         * sysdeps/nptl/setxid.h: Likewise.
31477         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
31478         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
31479         * sysdeps/unix/sysv/linux/arm/Implies: New file.
31480         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
31481         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
31482         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
31483         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
31484         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
31485         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
31486         * sysdeps/unix/sysv/linux/mips/Implies: New file.
31487         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
31488         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
31489         * sysdeps/unix/sysv/linux/sh/Implies: New file.
31490         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
31491         * sysdeps/unix/sysv/linux/tile/Implies: New file.
31492         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
31493         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
31494         * nptl/Makeconfig: Moved ...
31495         * sysdeps/nptl/Makeconfig: ... here.
31496         * nptl/configure: File removed.
31497         * nptl/ANNOUNCE: File removed.
31498         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
31499         * sysdeps/unix/sysv/linux/configure: Regenerated.
31500
31501         * nptl/Makefile (routines): Add libc_pthread_init,
31502         libc_multiple_threads, register-atfork and unregister-atfork.
31503         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
31504         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
31505         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
31506         pthread-pi-defines.sym, structsem.sym.
31507         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
31508         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
31509         [$(subdir) = nptl] (tests): Add tst-setgetname.
31510         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
31511         * sysdeps/unix/sysv/linux/sigaction.c: Just include
31512         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
31513         [!LIBC_SIGACTION]: Remove aliases.
31514         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
31515         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
31516         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
31517         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
31518         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
31519         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
31520         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31521         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31522         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
31523         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
31524         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
31525         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
31526         __libc_allocate_rtsig_private.
31527         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
31528         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
31529         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
31530         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
31531         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
31532         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
31533         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
31534         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
31535         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
31536         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
31537         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
31538         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
31539         * nptl/internaltypes.h: ... here.
31540         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
31541         * sysdeps/nptl/jmp-unwind.c: ... here.
31542         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
31543         * nptl/libc-lowlevellock.c: ... here.
31544         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
31545         * nptl/libc_multiple_threads.c: ... here.
31546         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
31547         * nptl/libc_pthread_init.c: ... here.
31548         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
31549         * nptl/lowlevelbarrier.sym: ... here.
31550         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
31551         * nptl/lowlevelcond.sym: ... here.
31552         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
31553         * nptl/lowlevellock.c: ... here.
31554         * nptl/lowlevellock.h: Moved ...
31555         * sysdeps/nptl/lowlevellock.h: ... here.
31556         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
31557         * nptl/lowlevelrobustlock.c: ... here.
31558         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
31559         * nptl/lowlevelrobustlock.sym: ... here.
31560         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
31561         * nptl/lowlevelrwlock.sym: ... here.
31562         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
31563         * nptl/pt-fork.c: ... here.
31564         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
31565         * nptl/pthread-pi-defines.sym: ... here.
31566         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
31567         * nptl/pthread_attr_getaffinity.c: ... here.
31568         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
31569         * nptl/pthread_attr_setaffinity.c: ... here.
31570         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
31571         * nptl/pthread_mutex_cond_lock.c: ... here.
31572         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
31573         Update #include.
31574         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
31575         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
31576         * nptl/pthread_once.c: ... here, replacing old file.
31577         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
31578         * nptl/pthread_yield.c: ... here.
31579         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
31580         * nptl/register-atfork.c: ... here.
31581         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
31582         * nptl/sem_post.c: ... here.
31583         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
31584         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
31585         * nptl/sem_timedwait.c: ... here.
31586         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
31587         * nptl/sem_trywait.c: ... here.
31588         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
31589         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
31590         * nptl/sem_wait.c: ... here.
31591         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
31592         * nptl/structsem.sym: ... here.
31593         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
31594         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
31595         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
31596         * nptl/unregister-atfork.c: ... here.
31597         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
31598         * nptl/unwindbuf.sym: ... here.
31599         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
31600         * sysdeps/nptl/fork.c: ... here.
31601         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
31602         * sysdeps/nptl/fork.h: ... here.
31603         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
31604         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
31605         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
31606         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
31607         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
31608         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
31609         * sysdeps/unix/sysv/linux/getpid.c: ... here.
31610         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
31611         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
31612         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
31613         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
31614         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
31615         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
31616         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
31617         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
31618         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
31619         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
31620         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
31621         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
31622         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
31623         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
31624         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
31625         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
31626         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
31627         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
31628         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
31629         * sysdeps/unix/sysv/linux/raise.c: ... here.
31630         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
31631         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
31632         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
31633         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
31634         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
31635         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
31636         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
31637         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
31638         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
31639         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
31640         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
31641         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
31642         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
31643         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
31644         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
31645
31646 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
31647
31648         * sysdeps/generic/memcopy.h: Add comment for
31649         MEMCPY_OK_FOR_FWD_MEMMOVE.
31650
31651 2014-07-04  Will Newton  <will.newton@linaro.org>
31652
31653         * string/memchr.c: Merge from gnulib.
31654         [_LIBC]: Remove conditionals.
31655         (__ptr_t): Remove define.
31656         (LONG_MAX_32_BITS): Likewise.
31657         (LONG_MAX): Likewise.
31658         (MEMCHR): Use ANSI prototype and optimize algorithm.
31659
31660         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
31661
31662 2014-07-03  Roland McGrath  <roland@hack.frob.com>
31663
31664         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
31665         (lll_futex_timed_wait_bitset): Fix syscall argument count.
31666
31667         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
31668         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
31669         in a bare environment with no <stdlib.h> installed.
31670         * sysdeps/nptl/configure: Regenerated.
31671
31672         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
31673
31674         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
31675         AC_EGREP_CPP for kernel header checks, so they only succeed if
31676         including <linux/version.h> actually works right.
31677         * sysdeps/unix/sysv/linux/configure: Regenerated.
31678
31679         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
31680         value so it's not diagnosed as unused.
31681
31682         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
31683         thing) with "ifeq ($(subdir),rt)".
31684
31685 2014-07-03  Richard Henderson  <rth@redhat.com>
31686
31687         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
31688         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
31689         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
31690
31691         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
31692         (math_force_eval): New.
31693
31694         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
31695         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
31696
31697         * sysdeps/alpha/fpu/s_round.c: Remove file.
31698         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
31699
31700         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
31701         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
31702         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
31703         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
31704         (_dl_start, print_statistics): Likewise.
31705         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
31706         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
31707
31708         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31709         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31710         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31711         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31712         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
31713         (HP_SMALL_TIMING_AVAIL): Define.
31714         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31715         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
31716         (HP_SMALL_TIMING_AVAIL): Define.
31717         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31718         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
31719
31720         * sysdeps/aarch64/hp-timing.h: New file.
31721
31722         * sysdeps/generic/hp-timing.h: Remove dead comment.
31723         * sysdeps/generic/hp-timing-common.h: New file.
31724         * sysdeps/alpha/hp-timing.h: Include it.
31725         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
31726         * sysdeps/i386/i686/hp-timing.h: Likewise.
31727         * sysdeps/ia64/hp-timing.h: Likewise.
31728         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
31729         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
31730         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
31731         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
31732         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
31733         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
31734         (hp_timing_t): New.
31735
31736         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
31737         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
31738         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
31739         * elf/rtld.c (_dl_start_final): Likewise.
31740         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
31741         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31742         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31743         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31744         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31745         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
31746         (HP_TIMING_DIFF_INIT): Remove.
31747         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31748         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
31749         (HP_TIMING_DIFF_INIT): Remove.
31750         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
31751         * sysdeps/i386/i686/hp-timing.c: Remove file.
31752         * sysdeps/x86_64/hp-timing.c: Remove file.
31753         * sysdeps/ia64/hp-timing.c: Remove file.
31754         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
31755         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
31756         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
31757         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
31758
31759         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
31760         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
31761         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
31762         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
31763         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
31764         (HP_TIMING_ACCUM): Remove.
31765         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
31766         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
31767         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
31768
31769         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
31770         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
31771         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
31772         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
31773         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
31774         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
31775         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
31776         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
31777
31778         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
31779
31780 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
31781
31782         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
31783
31784 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31785
31786         Sync up with gettext.
31787         * intl/loadmsgcat.c: Define O_BINARY if not defined.
31788         [_MSC_VER]: Include malloc.h
31789         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
31790         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
31791         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
31792         TEMP_FAILURE_RETRY.  Cast return of alloca.
31793         [!_LIBC] Call gl_rwlock_init.
31794         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
31795
31796 2014-07-02  Roland McGrath  <roland@hack.frob.com>
31797
31798         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
31799         before checking its value.
31800
31801 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31802
31803         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
31804
31805         * debug/memcpy_chk.c: Don't include pagecopy.h.
31806         * debug/mempcpy_chk.c: Likewise.
31807         * string/memcpy.c: Likewise.
31808         * string/memmove.c: Likewise.
31809         * sysdeps/powerpc/memmove.c: Likewise.
31810         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
31811         definition of PAGE_COPY_FWD_MAYBE here...
31812         * sysdeps/generic/pagecopy.h: ... from here.
31813         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
31814
31815 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31816             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31817
31818         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
31819         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
31820         optimizations.
31821         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31822         (__libc_ifunc_impl_list): Likewise.
31823         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
31824         multiarch strcat for PPC64.
31825         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
31826         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
31827
31828 2014-07-02  Roland McGrath  <roland@hack.frob.com>
31829
31830         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
31831
31832 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31833
31834         * intl/loadmsgcat.c: Remove declaration of
31835         get_sysdep_segment_value.
31836         (get_sysdep_segment_value): Use ISO C style.
31837         (_nl_load_domain): Use ISO C style.  Get rid of redundant
31838         semicolon.  Fix typo and formatting in comment.
31839         (_nl_unload_domain): Use ISO C style.
31840
31841         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
31842
31843 2014-07-02  Will Newton  <will.newton@linaro.org>
31844
31845         * malloc/obstack.c: Merge from gnulib master.
31846         [HAVE_CONFIG_H]: Remove conditional code.
31847         [!_LIBC]: Include config.h.
31848         [!ELIDE_CODE]: Don't include inttypes.h, include
31849         stdint.h unconditionally.
31850         (print_and_abort): Mark as _Noreturn.
31851         (_obstack_allocated_p): Mark as __attribute_pure__.
31852         (obstack_free): Rename to __obstack_free.
31853         [!__attribute__]: Remove conditional code.
31854         * malloc/obstack.h: Merge from gnulib master.
31855         [__cplusplus]: Move conditional down.
31856         [!__attribute_pure__]: Define __attribute_pure__ here
31857         if it is not already defined.
31858         (_obstack_memory_used): Mark as __attribute_pure__.
31859         [!__obstack_free]: Define as obstack_free.
31860         [__GNUC__]: Remove check for ancient NeXT gcc.
31861
31862 2014-07-02  Will Newton  <will.newton@linaro.org>
31863             Paul Eggert  <eggert@cs.ucla.edu>
31864
31865         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
31866
31867 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31868
31869         * resolv/gethnamaddr.c: Add comment warning that the file is
31870         not maintained.
31871
31872 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
31873
31874         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
31875         entries.
31876
31877         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
31878         entry for aio_cancel and aio_cancel64.
31879         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
31880         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
31881         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
31882         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
31883         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
31884         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
31885         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
31886         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
31887         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
31888         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
31889         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
31890         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
31891         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
31892
31893 2014-07-01  Roland McGrath  <roland@hack.frob.com>
31894
31895         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
31896         * nptl/pthread_mutex_lock.c: Likewise.
31897         * nptl/pthread_mutex_timedlock.c: Likewise.
31898         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
31899
31900 2014-07-01  Richard henderson  <rth@redhat.com>
31901
31902         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
31903         (__isnan, __isnanl): Remove.
31904         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
31905
31906         * sysdeps/alpha/fpu/libm-test-ulps: Update.
31907
31908 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
31909
31910         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31911
31912 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31913
31914         * resolv/nss_dns/dns-host.c (getanswer_r)
31915         [MULTI_PTRS_ARE_ALIASES]: Remove code.
31916
31917 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
31918
31919         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
31920         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
31921         undefine.
31922         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
31923         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
31924
31925 2014-07-01  Roland McGrath <roland@hack.frob.com>
31926
31927         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
31928         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
31929
31930         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
31931         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
31932
31933         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
31934         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
31935         ... here.
31936         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
31937         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
31938
31939         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
31940         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
31941         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
31942         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
31943
31944         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
31945         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
31946         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
31947         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
31948         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
31949         Moved ...
31950         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
31951         ... here.
31952         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
31953         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
31954         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
31955         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
31956         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
31957         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
31958         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
31959         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
31960         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
31961         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
31962         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
31963         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
31964         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
31965         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
31966         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
31967         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
31968         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
31969         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
31970         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
31971         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
31972         ... here.
31973         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
31974         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
31975         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
31976         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
31977         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
31978         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
31979         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
31980         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
31981
31982 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
31983
31984         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
31985         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
31986         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
31987         Add sysdep.
31988
31989 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31990
31991         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31992
31993 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
31994
31995         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
31996         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31997
31998         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
31999
32000         * sysdeps/arm/libm-test-ulps: Regenerated.
32001
32002 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
32003             Roland McGrath <roland@hack.frob.com>
32004
32005         * test-skeleton.c (signal_handler): Kill the whole process group
32006         before killing the child individually.
32007         (main): Report any failure on `setpgid'.
32008
32009 2014-06-30  Roland McGrath  <roland@hack.frob.com>
32010
32011         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
32012         from _TLS_H to _ARM_NPTL_TLS_H.
32013         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
32014         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
32015
32016 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
32017
32018         [BZ #16539]
32019         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
32020         (__expm1l): Return argument unchanged when small but not
32021         subnormal.
32022
32023         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
32024         include macro name.
32025         (_FP_UNPACK_RAW_1_P): Likewise.
32026         (_FP_PACK_RAW_1): Likewise.
32027         (_FP_PACK_RAW_1_P): Likewise.
32028         (_FP_MUL_MEAT_1_wide): Likewise.
32029         (_FP_MUL_MEAT_DW_1_hard): Likewise.
32030         (_FP_MUL_MEAT_1_hard): Likewise.
32031         (_FP_DIV_MEAT_1_imm): Likewise.
32032         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
32033         (_FP_DIV_MEAT_1_udiv): Likewise.
32034         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
32035         (_FP_UNPACK_RAW_2): Likewise.
32036         (_FP_UNPACK_RAW_2_P): Likewise.
32037         (_FP_PACK_RAW_2): Likewise.
32038         (_FP_PACK_RAW_2_P): Likewise.
32039         (_FP_MUL_MEAT_DW_2_wide): Likewise.
32040         (_FP_MUL_MEAT_2_wide): Likewise.
32041         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
32042         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
32043         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
32044         (_FP_MUL_MEAT_2_gmp): Likewise.
32045         (_FP_DIV_MEAT_2_udiv): Likewise.
32046         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
32047         (_FP_FRAC_SRL_4): Likewise.
32048         (_FP_FRAC_SRST_4): Likewise.
32049         (_FP_FRAC_SRS_4): Likewise.
32050         (_FP_UNPACK_RAW_4): Likewise.
32051         (_FP_UNPACK_RAW_4_P): Likewise.
32052         (_FP_PACK_RAW_4): Likewise.
32053         (_FP_PACK_RAW_4_P): Likewise.
32054         (_FP_MUL_MEAT_DW_4_wide): Likewise.
32055         (_FP_MUL_MEAT_4_wide): Likewise.
32056         (_FP_MUL_MEAT_4_gmp): Likewise.
32057         (umul_ppppmnnn): Likewise.
32058         (_FP_DIV_MEAT_4_udiv): Likewise.
32059         (__FP_FRAC_ADD_4): Likewise.
32060         (__FP_FRAC_SUB_3): Likewise.
32061         (__FP_FRAC_SUB_4): Likewise.
32062         (__FP_FRAC_DEC_3): Likewise.
32063         (__FP_FRAC_DEC_4): Likewise.
32064         (__FP_FRAC_ADDI_4): Likewise.
32065         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
32066         (_FP_FRAC_SRL_8): Likewise.
32067         (_FP_FRAC_SRS_8): Likewise.
32068
32069         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
32070         include macro name.
32071         (FP_UNPACK_RAW_EP): Likewise.
32072         (FP_PACK_RAW_E): Likewise.
32073         (FP_PACK_RAW_EP): Likewise.
32074         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
32075         (_FP_ISSIGNAN): Likewise.
32076         (_FP_ADD_INTERNAL): Likewise.
32077         (_FP_FMA): Likewise.
32078         (_FP_CMP): Likewise.
32079         (_FP_SQRT): Likewise.
32080         (_FP_TO_INT): Likewise.
32081         (_FP_FROM_INT): Likewise.
32082         (FP_EXTEND): Likewise.
32083         (_FP_DIV_MEAT_N_loop): Likewise.
32084
32085 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
32086
32087         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
32088         throughout.
32089
32090 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
32091
32092         [BZ #17097]
32093         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
32094         result with correct sign in case of exponents that produce
32095         overflow except for X very close to 1.
32096
32097 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
32098
32099         mktime: merge #if/#ifdef usage from glibc
32100         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
32101         as that works with both Glibc's and Gnulib's style.
32102         See thread starting at Siddhesh Poyarekar's bug report at:
32103         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
32104
32105 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
32106
32107         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
32108         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
32109         * sysdeps/tile/tilegx/memmove.c: Remove file.
32110
32111 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
32112
32113         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
32114         abi-name definition.
32115         * scripts/soversions.awk: Do not handle or generate ABI lines.
32116         * shlib-versions: Remove ABI entries.
32117         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
32118         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
32119
32120 2014-06-27  Roland McGrath  <roland@hack.frob.com>
32121
32122         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
32123         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
32124         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
32125         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
32126         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
32127         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
32128         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
32129         Moved ...
32130         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
32131         ... here.
32132         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
32133         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
32134         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
32135         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
32136         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
32137         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
32138         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
32139         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
32140         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
32141         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
32142         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
32143         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
32144         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
32145         Moved ...
32146         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
32147         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
32148         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
32149         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
32150         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
32151         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
32152         Moved ...
32153         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
32154         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
32155         Moved ...
32156         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
32157         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
32158         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
32159         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
32160         Moved ...
32161         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
32162         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
32163         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
32164         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
32165         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
32166         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
32167         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
32168         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
32169         Moved ...
32170         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
32171         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
32172         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
32173         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
32174         Moved ...
32175         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
32176         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
32177         Moved ...
32178         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
32179         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
32180         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
32181         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
32182         Moved ...
32183         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
32184         ... here.
32185         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
32186         Identical file removed.
32187         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
32188         Moved ...
32189         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
32190         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
32191         Identical file removed.
32192         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
32193         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
32194         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
32195         Moved ...
32196         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
32197         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
32198         Identical file removed.
32199         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
32200         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
32201         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
32202         Identical file removed.
32203         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
32204         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
32205         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
32206         Identical file removed.
32207         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
32208         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
32209         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
32210         Identical file removed.
32211         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
32212         Moved ...
32213         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
32214         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
32215         Identical file removed.
32216         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
32217         Moved ...
32218         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
32219         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
32220         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
32221         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
32222         Identical file removed.
32223         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
32224         Moved ...
32225         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
32226         ... here.
32227         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
32228         Identical file removed.
32229         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
32230         Moved ...
32231         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
32232         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
32233         Identical file removed.
32234         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
32235         Moved ...
32236         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
32237         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
32238         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
32239         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
32240         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
32241         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
32242         Moved ...
32243         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
32244         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
32245         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
32246
32247         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
32248         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
32249         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
32250         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
32251         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
32252
32253 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
32254
32255         [BZ #17092]
32256         * nscd/nscd.c (monitor_child): Return exit status of child
32257         instead of return value from wait syscall.
32258
32259 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
32260
32261         * configure.ac (libc_commonpagesize): Remove variable.
32262         (libc_relro_required): Likewise.
32263         (libc_cv_z_relro): Remove configure test.
32264         * configure: Regenerated.
32265         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
32266         variable.
32267         (libc_relro_required): Likewise.
32268         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
32269         (libc_relro_required): Likewise.
32270         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
32271         (libc_relro_required): Likewise.
32272         * sysdeps/arm/preconfigure: Regenerated.
32273         * sysdeps/ia64/preconfigure: Remove file.
32274         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
32275         variable.
32276         (libc_relro_required): Likewise.
32277
32278         [BZ #16561]
32279         [BZ #16562]
32280         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
32281         (__ieee754_yn): Set FE_TONEAREST mode internally and then
32282         recompute overflowing results in original rounding mode.
32283         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
32284         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
32285         recompute overflowing results in original rounding mode.
32286         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
32287         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
32288         recompute overflowing results in original rounding mode.
32289         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
32290         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
32291         recompute overflowing results in original rounding mode.
32292         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
32293         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
32294         recompute overflowing results in original rounding mode.
32295         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
32296         (libc_feholdsetround_ctx): New macro.
32297         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
32298         * sysdeps/i386/fpu/libm-test-ulps: Update.
32299         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
32300
32301 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
32302
32303         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
32304         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
32305         corresponding .cpsetup call.
32306
32307 2014-06-26  Roland McGrath  <roland@hack.frob.com>
32308
32309         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
32310         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
32311         * sysdeps/arm/Makefile [$(subdir) = csu]
32312         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
32313         (static-only-routines): Add aeabi_read_tp here.
32314         (shared-only-routines): Add libc-aeabi_read_tp here.
32315         (CFLAGS-libc-start.c): Add -fexceptions here.
32316         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
32317         (sysdep_routines, static-only-routines, shared-only-routines):
32318         Don't add to these here.
32319         (CFLAGS-libc-start.c): Likewise.
32320
32321         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
32322         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
32323         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
32324         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
32325         * sysdeps/arm/Makefile [$(subdir) = rt]
32326         (librt-sysdep_routines, librt-shared-only-routines):
32327         Append rt-aeabi_unwind_cpp_pr1 here.
32328         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
32329         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
32330         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
32331         (libpthread-sysdep_routines, libpthread-shared-only-routines):
32332         Append nptl-aeabi_unwind_cpp_pr1 here.
32333         (tests): Filter out tst-cleanupx4 here.
32334         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
32335         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
32336         Don't do those here.
32337
32338 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
32339
32340         * scripts/list-sources.sh: Do not handle ports specially.
32341
32342 2014-06-26  Roland McGrath  <roland@hack.frob.com>
32343
32344         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
32345         * sysdeps/arm/feupdateenv.c: Likewise.
32346
32347         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
32348
32349 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
32350
32351         * manual/texinfo.tex: Update to version 2014-05-05.10 with
32352         trailing whitespace removed.
32353         * scripts/config.guess: Update to version 2014-03-23.
32354         * scripts/config.sub: Update to version 2014-05-01
32355         * scripts/install-sh: Update to version 2013-12-25.23.
32356         * scripts/move-if-change: Update from gnulib.
32357
32358 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32359
32360         * debug/memmove_chk.c: Remove pagecopy.h include.
32361
32362 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
32363
32364         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
32365         identical to gnulib mktime.
32366
32367 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
32368
32369         * configure.ac: Do not test for machine being rs6000.  Do not test
32370         for powerpc*-*soft.
32371         * configure: Regenerated.
32372
32373         [BZ #11505]
32374         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
32375         test.
32376         * configure: Regenerated.
32377         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
32378         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
32379         Remove configure test.
32380         * sysdeps/arm/configure: Regenerated.
32381         * sysdeps/nptl/configure.ac: Do not check
32382         libc_cv_asm_cfi_directives.
32383         * sysdeps/nptl/configure: Regenerated.
32384         * sysdeps/x86_64/nptl/configure.ac: Remove file.
32385         * sysdeps/x86_64/nptl/configure: Remove generated file.
32386         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
32387         unconditional.
32388         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
32389
32390 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32391
32392         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
32393         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
32394         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
32395         it is defined.
32396
32397         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
32398         instead of whether it is defined.
32399         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
32400         * sysdeps/hppa/dl-machine.h: Likewise.
32401         * sysdeps/ia64/dl-machine.h: Likewise.
32402         * sysdeps/m68k/dl-machine.h: Likewise.
32403         * sysdeps/microblaze/dl-machine.h: Likewise.
32404         * sysdeps/mips/dl-machine.: Likewise.
32405         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
32406         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
32407         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
32408         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
32409         * sysdeps/sh/dl-machine.h: Likewise.
32410         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
32411         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
32412         * sysdeps/tile/dl-machine.h: Likewise.
32413         * sysdeps/x86_64/dl-machine.h: Likewise.
32414
32415         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
32416         code.
32417         (verify_persistent_db): Likewise.
32418
32419 2014-06-26  Roland McGrath  <roland@hack.frob.com>
32420
32421         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
32422         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
32423         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
32424         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
32425         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
32426         Moved ...
32427         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
32428         ... here.
32429         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
32430         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
32431         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
32432         Identical file removed.
32433         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
32434         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
32435         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
32436         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
32437         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
32438         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
32439         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
32440         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
32441         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
32442         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
32443         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
32444         Moved ...
32445         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
32446         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
32447         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
32448         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
32449         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
32450         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
32451         Moved ...
32452         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
32453         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
32454         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
32455         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
32456         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
32457         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
32458         Identical file removed.
32459         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
32460         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
32461         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
32462         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
32463         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
32464         Moved ...
32465         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
32466         ... here.
32467         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
32468         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
32469         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
32470         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
32471         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
32472         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
32473         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
32474         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
32475         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
32476         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
32477         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
32478         Moved ...
32479         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
32480         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
32481         Moved ...
32482         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
32483         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
32484         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
32485         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
32486         Moved ...
32487         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
32488         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
32489         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
32490
32491         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
32492         folded into ...
32493         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
32494         * sysdeps/unix/sysv/linux/s390/Versions
32495         (libpthread: GLIBC_2.19): New version set.
32496         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
32497         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
32498         (librt: GLIBC_2.3.3): New version set.
32499         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
32500         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
32501         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
32502         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
32503         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
32504         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
32505         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
32506         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
32507         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
32508         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
32509         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
32510         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
32511         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
32512         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
32513         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
32514         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
32515         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
32516         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
32517         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
32518         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
32519         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
32520         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
32521         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
32522         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
32523         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
32524         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
32525         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
32526         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
32527         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
32528         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
32529         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
32530         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
32531         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
32532         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
32533         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
32534         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
32535         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
32536         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
32537         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
32538         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
32539         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
32540         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
32541         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
32542         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
32543         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
32544
32545         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
32546         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
32547         (__libc_vfork): Define the function under this name.
32548         [!NOT_IN_libc] (__vfork): Make this an alias.
32549         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
32550         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
32551         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
32552         (__libc_vfork): Define the function under this name.
32553         [!NOT_IN_libc] (__vfork): Make this an alias.
32554         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
32555         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
32556         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
32557         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
32558         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
32559         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
32560
32561         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
32562         code that was previously under [RESET_PID].
32563         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
32564         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
32565         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
32566
32567         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
32568         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
32569         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
32570         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
32571         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
32572         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
32573         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
32574         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
32575         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
32576         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
32577         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
32578         Moved ...
32579         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
32580         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
32581         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
32582         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
32583         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
32584         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
32585         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
32586         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
32587         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
32588         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
32589         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
32590         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
32591         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
32592         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
32593         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
32594         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
32595         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
32596         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
32597         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
32598         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
32599         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
32600         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
32601         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
32602         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
32603         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
32604         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
32605         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
32606         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
32607         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
32608
32609 2014-06-25  Roland McGrath  <roland@hack.frob.com>
32610
32611         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
32612         that was previously under [RESET_PID].
32613         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
32614
32615 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
32616
32617         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
32618         not undefine and redefine.
32619         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
32620         [O_CLOEXEC]: Make code unconditional.
32621         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
32622         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
32623         <kernel-features.h>.
32624         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
32625         conditional variable definition.
32626         (shm_open) [O_CLOEXEC]: Make code unconditional.
32627         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
32628         code.
32629
32630         * configure.ac (USE_REGPARMS): Don't define here.
32631         * configure: Regenerated.
32632         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
32633         * sysdeps/i386/configure: Regenerated.
32634
32635         * nptl/createthread.c: Don't include kernel-features.h.
32636         * nptl/pthread_cancel.c: Likewise.
32637         * nptl/pthread_condattr_setclock.c: Likewise.
32638         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
32639         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
32640         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
32641         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
32642         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
32643         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
32644         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
32645         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
32646         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
32647         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
32648         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
32649         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
32650         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
32651         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
32652         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
32653         * nscd/gai.c: Likewise.
32654         * nss/nss_db/db-open.c: Likewise.
32655         * sysdeps/generic/ldsodefs.h: Likewise.
32656         * sysdeps/sh/nptl/tls.h: Likewise.
32657         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
32658         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
32659         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
32660         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
32661         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
32662         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
32663         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
32664         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
32665         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
32666         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
32667         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
32668         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
32669         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
32670         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
32671         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
32672         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
32673         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
32674         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
32675         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
32676         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
32677         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
32678         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
32679         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
32680         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
32681         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
32682         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
32683         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
32684         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
32685         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
32686         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
32687         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
32688         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
32689         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
32690         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
32691         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
32692         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
32693         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
32694         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
32695         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
32696         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
32697         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
32698         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
32699         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
32700         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
32701         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
32702         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
32703         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
32704         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
32705         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
32706         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
32707         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
32708         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
32709         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
32710         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
32711         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
32712         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
32713         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
32714         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
32715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
32716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
32717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
32718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
32719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
32720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
32721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
32722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
32723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
32724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
32725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
32726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
32727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
32728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
32729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
32730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
32735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
32736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
32737         * sysdeps/unix/sysv/linux/pread.c: Likewise.
32738         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
32739         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
32740         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
32741         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
32742         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
32743         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
32744         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
32745         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
32746         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
32747         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
32748         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
32749         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
32750         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
32751         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
32752         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
32753         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
32754         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
32755         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
32756         * sysdeps/unix/sysv/linux/system.c: Likewise.
32757         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
32758         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
32759         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
32760         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
32761         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
32762         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
32763         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
32764
32765         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
32766         * configure: Regenerated.
32767         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
32768
32769         * configure.ac (base_machine): Do not set specially for particular
32770         machines here.
32771         * configure: Regenerated.
32772         * sysdeps/powerpc/preconfigure: Move machine and base_machine
32773         settings from configure.ac.
32774         * sysdeps/i386/preconfigure: New file.
32775         * sysdeps/s390/preconfigure: Likewise.
32776         * sysdeps/sh/preconfigure: Likewise.
32777         * sysdeps/sparc/preconfigure: Likewise.
32778
32779 2014-06-25  Roland McGrath  <roland@hack.frob.com>
32780
32781         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
32782         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
32783         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
32784         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
32785         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
32786         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
32787         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
32788         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
32789         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
32790         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
32791         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
32792         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
32793         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
32794         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
32795         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
32796         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
32797         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
32798         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
32799         * sysdeps/sparc/sparc64/Makefile: ... appended here.
32800
32801         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
32802         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
32803         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
32804         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
32805         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
32806         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
32807         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
32808         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
32809         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
32810         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
32811         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
32812         * sysdeps/sparc/sparc32/sem_post.c: ... here.
32813         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
32814         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
32815         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
32816         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
32817         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
32818         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
32819         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
32820         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
32821         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
32822         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
32823         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
32824         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
32825         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
32826         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
32827         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
32828         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
32829         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
32830         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
32831         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
32832         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
32833         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
32834         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
32835         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
32836         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
32837         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
32838         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
32839
32840         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
32841         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
32842         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
32843         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
32844         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
32845         Moved ...
32846         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
32847         ... here.
32848         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
32849         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
32850         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
32851         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
32852         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
32853         Moved ...
32854         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
32855         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
32856         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
32857         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
32858         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
32859         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
32860         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
32861         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
32862         Moved ...
32863         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
32864         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
32865         Moved ...
32866         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
32867         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
32868         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
32869         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
32870         Moved ...
32871         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
32872         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
32873         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
32874         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
32875         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
32876         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
32877         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
32878         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
32879         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
32880         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
32881         Moved ...
32882         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
32883         ... here.
32884         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
32885         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
32886         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
32887         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
32888         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
32889         Moved ...
32890         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
32891         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
32892         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
32893         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
32894         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
32895         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
32896         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
32897         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
32898         Moved ...
32899         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
32900         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
32901         Moved ...
32902         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
32903         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
32904         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
32905         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
32906         Moved ...
32907         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
32908         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
32909         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
32910         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
32911         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
32912
32913 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
32914
32915         * timezone/checktab.awk: Update from tzcode 2014e.
32916         * timezone/private.h: Likewise.
32917         * timezone/tzfile.h: Likewise.
32918         * timezone/zdump.c: Likewise.
32919         * timezone/zic.c: Likewise.
32920
32921         * sysdeps/unix/sysv/linux/kernel-features.h
32922         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
32923         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
32924         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
32925         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
32926         Remove conditional code.
32927
32928 2014-06-25  Will Newton  <will.newton@linaro.org>
32929
32930         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
32931         (_dl_arm_cap_flags): Add HWCAP2 values.
32932         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
32933         (_DL_HWCAP_COUNT): Increase to 37.
32934         (_DL_HWCAP_LAST): New define.
32935         (_DL_HWCAP2_LAST): New define.
32936         (_dl_procinfo): Add support for printing
32937         AT_HWCAP2 entries.
32938         (_dl_string_hwcap): Use _dl_hwcap_string.
32939
32940 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32941
32942         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32943
32944 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
32945
32946         * README: Do not mention ports directory.
32947
32948         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
32949         Remove macro.
32950         * sysdeps/unix/sysv/linux/futimes.c: Do not include
32951         <kernel-features.h>.
32952         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
32953         conditional variable definition.
32954         (__futimes): Update comment.
32955         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
32956         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
32957
32958         [BZ #16560]
32959         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
32960         arguments close to 0.
32961         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
32962         Likewise.
32963         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
32964         Likewise.
32965         * math/auto-libm-test-in: Add more tests of exp10.
32966         * math/auto-libm-test-out: Regenerated.
32967         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32968
32969         * sysdeps/unix/sysv/linux/kernel-features.h
32970         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
32971         * sysdeps/unix/sysv/linux/readv.c: Do not include
32972         <kernel-features.h>.
32973         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
32974         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
32975         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
32976         unconditional.
32977         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
32978         conditional code.
32979         * sysdeps/unix/sysv/linux/writev.c: Do not include
32980         <kernel-features.h>.
32981         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
32982         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
32983         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
32984         unconditional.
32985         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
32986         conditional code.
32987
32988 2014-06-25  Will Newton  <will.newton@linaro.org>
32989
32990         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
32991         comment changes throughout the file.  Remove checks
32992         for HAVE_*_H definitions that are not required.
32993         (__gen_tempname): Call abort if an unknown kind value is
32994         passed.
32995
32996 2014-06-25  Andreas Schwab  <schwab@suse.de>
32997
32998         [BZ #17086]
32999         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
33000         scalbln, scalblnf, scalblnl in libc.
33001
33002 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
33003
33004         [BZ #17086]
33005         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
33006         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
33007         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
33008
33009 2014-06-24  Roland McGrath  <roland@hack.frob.com>
33010
33011         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
33012         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
33013         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
33014         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
33015         Update #include.
33016         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
33017         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
33018         Update #include.
33019         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
33020         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
33021         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
33022         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
33023         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
33024         * sysdeps/x86/bits/pthreadtypes.h: ... here.
33025         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
33026         * sysdeps/x86/bits/semaphore.h: ... here.
33027         * sysdeps/x86/nptl/elide.h: Moved ...
33028         * sysdeps/x86/elide.h: ... here.
33029         * sysdeps/x86_64/nptl/Implies: File removed.
33030         * sysdeps/i386/nptl/Implies: File removed.
33031
33032 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
33033
33034         [BZ #16539]
33035         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
33036         return the argument for normal arguments with exponent below -64.
33037         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
33038         Likewise.
33039         * math/auto-libm-test-in: Add another test of expm1.
33040         * math/auto-libm-test-out: Regenerated.
33041
33042         [BZ #16287]
33043         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
33044         calling __erfcl for arguments at least 16.
33045         * math/auto-libm-test-in: Add more tests of erf.
33046         * math/auto-libm-test-out: Regenerated.
33047
33048         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
33049         individual architectures.
33050         * sysdeps/unix/sysv/linux/configure: Regenerated.
33051         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
33052         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
33053         * sysdeps/unix/sysv/linux/powerpc/configure.ac
33054         (ldd_rewrite_script): Define variable.
33055         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
33056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
33057         file.
33058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
33059         generated file.
33060         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
33061         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
33062         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
33063         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
33064         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
33065         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
33066         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
33067         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
33068
33069 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
33070
33071         [BZ #17084]
33072         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
33073         Rename member __data.d to __data.__elision_data.
33074
33075 2014-06-24  Wilco  <wdijkstr@arm.com>
33076
33077         * NEWS: Add 16918 to fixed bug list.
33078
33079 2014-06-24  Wilco  <wdijkstr@arm.com>
33080
33081         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
33082
33083 2014-06-24  Wilco  <wdijkstr@arm.com>
33084
33085         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
33086         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
33087         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
33088         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
33089         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
33090         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
33091         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
33092         Use _FPU_MASK_RM.
33093
33094 2014-06-24  Wilco  <wdijkstr@arm.com>
33095
33096         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
33097
33098 2014-06-24  Wilco  <wdijkstr@arm.com>
33099
33100         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
33101         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
33102         * sysdeps/arm/fesetround.c (fesetround): Remove space.
33103         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
33104
33105 2014-06-24  Wilco  <wdijkstr@arm.com>
33106
33107         [BZ #16918]
33108         * sysdeps/arm/feupdateenv.c (feupdateenv):
33109         Rewrite to reduce FPSCR accesses and fix return value.
33110
33111 2014-06-24  Wilco  <wdijkstr@arm.com>
33112
33113         * sysdeps/arm/fclrexcpt.c (feclearexcept):
33114         Optimize to avoid unnecessary FPSCR writes.
33115         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
33116         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
33117         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
33118         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
33119
33120 2014-06-24  Wilco  <wdijkstr@arm.com>
33121
33122         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
33123         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
33124         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
33125         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
33126         Call libc_fetestexcept_vfp.
33127         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
33128         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
33129         __SOFTFP__ ifdef so that they can be built for softfp.
33130
33131 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
33132
33133         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
33134         argument type signed char.
33135
33136         * Makerules (check-abi): Dump diff of symlist if the test
33137         fails.
33138
33139 2014-06-23  Roland McGrath  <roland@hack.frob.com>
33140
33141         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
33142         using abort.
33143
33144         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
33145         Remove unused variable ST.
33146
33147 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
33148
33149         [BZ #16354]
33150         [BZ #17061]
33151         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
33152         small arguments before calling __expm1.
33153         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
33154         small arguments before calling __expm1f.
33155         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
33156         small arguments before calling __expm1l.
33157         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
33158         Likewise.
33159         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33160         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
33161         spurious underflow for some cosh tests.
33162         * math/auto-libm-test-out: Regenerated.
33163         * sysdeps/i386/fpu/libm-test-ulps: Update.
33164
33165         [BZ #17050]
33166         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
33167         (__ieee754_y1): Set errno if return value overflows.
33168         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
33169         (__ieee754_y1f): Set errno if return value overflows.
33170         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
33171         (__ieee754_y1l): Set errno if return value overflows.
33172         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
33173         (__ieee754_y1l): Set errno if return value overflows.
33174         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
33175         * math/auto-libm-test-out: Regenerated.
33176
33177         * math/gen-auto-libm-tests.c: Document use of
33178         ignore-zero-inf-sign.
33179         (input_flag_type): Add value flag_ignore_zero_inf_sign.
33180         (input_flags): Add ignore-zero-inf-sign.
33181         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
33182         * math/gen-libm-test.pl (generate_testfile): Handle
33183         ignore-zero-inf-sign.
33184         * math/auto-libm-test-in: Mark some cpow tests with
33185         ignore-zero-inf-sign and some with xfail-rounding.
33186         * math/auto-libm-test-out: Regenerated.
33187         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
33188         * sysdeps/i386/fpu/libm-test-ulps: Update.
33189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33190
33191         [BZ #16315]
33192         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
33193         overflowing or underflowing operations take place with sign of
33194         result.
33195         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
33196         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
33197         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
33198         (__ieee754_pow): Recompute overflowing and underflowing results in
33199         original rounding mode.
33200         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
33201         (__powl_helper): Allow negative argument X and scale negated value
33202         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
33203         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
33204         overflowing or underflowing operations take place with sign of
33205         result.
33206         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
33207         Include <math.h>.
33208         * math/auto-libm-test-in: Add more tests of pow.
33209         * math/auto-libm-test-out: Regenerated.
33210         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
33211         (pow_tonearest_test_data): Remove.
33212         (pow_test_tonearest): Likewise.
33213         (pow_towardzero_test_data): Likewise.
33214         (pow_test_towardzero): Likewise.
33215         (pow_downward_test_data): Likewise.
33216         (pow_test_downward): Likewise.
33217         (pow_upward_test_data): Likewise.
33218         (pow_test_upward): Likewise.
33219         (main): Don't call removed functions.
33220         * sysdeps/i386/fpu/libm-test-ulps: Update.
33221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33222
33223 2014-06-23  Roland McGrath  <roland@hack.frob.com>
33224
33225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
33226         Moved ...
33227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
33228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
33229         Moved ...
33230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
33231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
33232         Moved ...
33233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
33234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
33235         Moved ...
33236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
33237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
33238         File removed.
33239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
33240         File removed.
33241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
33242         File removed.
33243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
33244         File removed.
33245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
33246         File removed.
33247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
33248         File removed.
33249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
33250         File removed.
33251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
33252         File removed.
33253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
33254         File removed.
33255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
33256         File removed.
33257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
33258         File removed.
33259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
33260         File removed.
33261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
33262         Moved ...
33263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
33264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
33265         Moved ...
33266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
33267         ... here.
33268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
33269         Moved ...
33270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
33271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
33272         Moved ...
33273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
33274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
33275         Moved ...
33276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
33277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
33278         Moved ...
33279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
33280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
33281         Moved ...
33282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
33283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
33284         Moved ...
33285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
33286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
33287         Moved ...
33288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
33289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
33290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
33291         ... here.
33292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
33293         Moved ...
33294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
33295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
33296         Moved ...
33297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
33298         ... here.
33299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
33300         Moved ...
33301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
33302         ... here.
33303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
33304         Moved ...
33305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
33306         ... here.
33307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
33308         Moved ...
33309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
33310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
33311         Moved ...
33312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
33313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
33314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
33315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
33316         Moved ...
33317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
33318         ... here.
33319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
33320         Moved ...
33321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
33322         ... here.
33323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
33324         Moved ...
33325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
33326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
33327         Moved ...
33328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
33329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
33330         Moved ...
33331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
33332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
33333         Moved ...
33334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
33335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
33336         Moved ...
33337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
33338         ... here.
33339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
33340         Moved ...
33341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
33342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
33343         Moved ...
33344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
33345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
33346         Moved ...
33347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
33348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
33349         Moved ...
33350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
33351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
33352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
33353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
33354         Moved ...
33355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
33356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
33357         Moved ...
33358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
33359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
33360         Moved ...
33361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
33362         ... here.
33363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
33364         Moved ...
33365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
33366         ... here.
33367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
33368         Moved ...
33369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
33370         ... here.
33371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
33372         Moved ...
33373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
33374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
33375         Moved ...
33376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
33377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
33378         Moved ...
33379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
33380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
33381         Moved ...
33382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
33383         ... here.
33384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
33385         Moved ...
33386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
33387         ... here.
33388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
33389         Moved ...
33390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
33391         ... here.
33392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
33393         Moved ...
33394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
33395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
33396         Moved ...
33397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
33398
33399 2014-06-23  Will Newton  <will.newton@linaro.org>
33400             Wilco  <wdijkstr@arm.com>
33401
33402         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
33403         implementation.  Include get-rounding-mode.h.
33404         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
33405         [!libc_feholdsetround_noex_ctx]: Define
33406         libc_feholdsetround_noex_ctx.
33407         [!libc_feholdsetround_noexf_ctx]: Define
33408         libc_feholdsetround_noexf_ctx.
33409         [!libc_feholdsetround_noexl_ctx]: Define
33410         libc_feholdsetround_noexl_ctx.
33411         (libc_feholdsetround_ctx): New function.
33412         (libc_feresetround_ctx): New function.
33413         (libc_feholdsetround_noex_ctx): New function.
33414         (libc_feresetround_noex_ctx): New function.
33415
33416 2014-06-23  Roland McGrath  <roland@hack.frob.com>
33417
33418         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
33419         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
33420         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
33421         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
33422         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
33423         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
33424
33425         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
33426         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
33427         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
33428         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
33429         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
33430         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
33431         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
33432         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
33433         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
33434         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
33435         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
33436         Moved ...
33437         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
33438         ... here.
33439         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
33440         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
33441         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
33442         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
33443         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
33444         Moved ...
33445         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
33446         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
33447         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
33448         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
33449         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
33450         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
33451         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
33452         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
33453         Moved ...
33454         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
33455         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
33456         Moved ...
33457         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
33458         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
33459         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
33460         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
33461         Moved ...
33462         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
33463         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
33464         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
33465         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
33466         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
33467         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
33468         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
33469         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
33470         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
33471         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
33472         Moved ...
33473         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
33474         ... here.
33475         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
33476         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
33477         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
33478         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
33479         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
33480         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
33481         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
33482         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
33483         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
33484         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
33485         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
33486         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
33487         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
33488         Moved ...
33489         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
33490         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
33491         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
33492         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
33493         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
33494         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
33495         Moved ...
33496         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
33497         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
33498         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
33499         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
33500         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
33501
33502         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
33503         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
33504         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
33505         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
33506         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
33507         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
33508         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
33509         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
33510         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
33511         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
33512         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
33513         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
33514         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
33515         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
33516         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
33517         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
33518         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
33519         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
33520         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
33521         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
33522         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
33523         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
33524         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
33525         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
33526         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
33527         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
33528         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
33529         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
33530
33531 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
33532
33533         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33534         (FALLOC_FL_COLLAPSE_RANGE): New macro.
33535         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
33536         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
33537         (IPV6_PMTUDISC_INTERFACE): Likewise.
33538         (IPV6_PMTUDISC_OMIT): Likewise.
33539
33540 2014-06-23  Andreas Schwab  <schwab@suse.de>
33541
33542         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
33543         Remove unused errout label.
33544
33545 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33546
33547         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
33548         macro: hardware supports Vector Crypto instructions.
33549
33550 2014-06-23  Will Newton  <will.newton@linaro.org>
33551
33552         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
33553         rather than __builtin_expect.
33554
33555         * elf/dl-lookup.c (undefined_msg): Remove variable.
33556         (_dl_lookup_symbol_x): Replace undefined_msg with string
33557         literal.
33558
33559         * elf/dl-lookup.c (do_lookup_unique): New function.
33560         (do_lookup_x): Move STB_GNU_UNIQUE handling code
33561         to a separate function.
33562
33563 2014-06-23  Andreas Schwab  <schwab@suse.de>
33564
33565         [BZ #17079]
33566         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
33567         before reading the next line.
33568
33569 2014-06-23  Will Newton  <will.newton@linaro.org>
33570
33571         * test-skeleton.c (signal_handler): Use printf and %m
33572         rather than perror.  Use printf rather than fprintf to
33573         stderr.  Use puts rather than fputs to stderr.
33574         (main): Likewise.
33575
33576 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
33577
33578         * nscd/nscd.c (thread_info_t): Remove typedef.
33579         (thread_info): Remove variable.
33580
33581 2014-06-21  Allan McRae  <allan@archlinux.org>
33582
33583         * NEWS: Mention CVE-2014-4043.
33584
33585 2014-06-20  Roland McGrath  <roland@hack.frob.com>
33586
33587         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
33588         * nptl/smp.h: ... here.
33589
33590         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
33591
33592         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
33593         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
33594         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
33595         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
33596
33597         * nptl/allocatestack.c: Include <stack-aliasing.h>.
33598         * nptl/stack-aliasing.h: New file.
33599         * sysdeps/i386/i686/stack-aliasing.h: New file.
33600         * sysdeps/i386/i686/nptl/Makefile: File removed.
33601         * sysdeps/x86_64/stack-aliasing.h: New file.
33602         * sysdeps/x86_64/nptl/Makefile
33603         (CFLAGS-pthread_create.c): Variable removed.
33604
33605         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
33606         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
33607         old file.
33608         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
33609         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
33610         old file.
33611
33612 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
33613
33614         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33615         (__ASSUME_SIGFRAME_V2): Remove macro.
33616         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
33617         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
33618         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
33619         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
33620         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
33621         Declare as function.  Remove conditional macro definitions.
33622         (__default_rt_sa_restorer): Likewise.
33623         (__default_sa_restorer_v1): Remove declaration.
33624         (__default_sa_restorer_v2): Likewise.
33625         (__default_rt_sa_restorer_v1): Likewise.
33626         (__default_rt_sa_restorer_v2): Likewise.
33627         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
33628         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
33629         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
33630
33631 2014-06-20  Roland McGrath  <roland@hack.frob.com>
33632
33633         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
33634         (libpthread-routines): Add sysdep.
33635         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
33636         * sysdeps/unix/sysv/linux/sparc/Versions
33637         (libpthread: GLIBC_2.3.3): New version set.
33638         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
33639         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
33640         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
33641         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
33642         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
33643         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
33644         Moved ...
33645         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
33646         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
33647         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
33648         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
33649         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
33650         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
33651         * sysdeps/sparc/nptl/sem_init.c: ... here.
33652         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
33653         * sysdeps/sparc/nptl/sem_post.c: ... here.
33654         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
33655         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
33656         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
33657         * sysdeps/sparc/nptl/sem_wait.c: ... here.
33658         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
33659         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
33660         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
33661         (libpthread-routines): Add cpu_relax.
33662         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
33663         File removed.
33664         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
33665         (librt: GLIBC_2.3.3): New version set.
33666         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
33667         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
33668         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
33669         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
33670         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
33671         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
33672         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
33673         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
33674         Moved ...
33675         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
33676         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
33677         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
33678         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
33679         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
33680         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
33681         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
33682         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
33683         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
33684         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
33685         Moved ...
33686         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
33687         Update #include.
33688         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
33689         Moved ...
33690         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
33691         Update #include.
33692         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
33693         Moved ...
33694         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
33695         Update #include.
33696         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
33697         Moved ...
33698         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
33699         Update #include.
33700         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
33701         Moved ...
33702         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
33703         Update #include.
33704         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
33705         Moved ...
33706         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
33707         Update #include.
33708         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
33709         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
33710         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
33711         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
33712         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
33713         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
33714         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
33715         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
33716         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
33717         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
33718         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33719         Moved ...
33720         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
33721         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
33722         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
33723         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
33724         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
33725
33726 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
33727
33728         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
33729         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
33730         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
33731         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
33732         * nscd/nscd.c: Likewise.
33733         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
33734         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
33735         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
33736         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
33737
33738         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
33739         <kernel-features.h>.
33740         (init_mq_netlink): Remove conditional have_sock_cloexec
33741         definitions.  Remove code conditional on have_sock_cloexec < 0.
33742         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
33743         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
33744         * sysdeps/unix/sysv/linux/opensock.c: Do not include
33745         <kernel-features.h>.
33746         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
33747         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
33748
33749 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
33750
33751         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
33752         Add tests for memset_chk and memset.
33753
33754         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
33755         with AVX2_Usable.
33756
33757 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
33758
33759         [BZ #16046]
33760         * elf/tst-dl-iter-static.c: New file.
33761         * elf/Makefile (tests-static): Add tst-dl-iter-static.
33762
33763         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
33764         error.
33765
33766 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
33767
33768         * sysdeps/unix/sysv/linux/kernel-features.h
33769         (__ASSUME_F_GETOWN_EX): Remove macro.
33770         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
33771         <kernel-features.h>.
33772         (miss_F_GETOWN_EX): Remove variable or macro.
33773         (do_fcntl): Do not check miss_F_GETOWN_EX.
33774         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
33775
33776         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
33777         Remove macro.
33778         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
33779         [!__ASSUME_AT_RANDOM]: Remove conditional code.
33780         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
33781
33782         * sysdeps/unix/sysv/linux/kernel-features.h
33783         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
33784         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
33785         [ADJ_OFFSET_SS_READ]: Make code unconditional.
33786         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
33787
33788 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
33789
33790         [BZ #17075]
33791         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
33792         Fix calculation of the symbol's value.
33793         * sysdeps/arm/tst-armtlsdescloc.c: New file.
33794         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
33795         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
33796         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
33797         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
33798         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
33799         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
33800         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
33801         (modules-names): Add `tst-armtlsdescmod',
33802         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
33803         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
33804         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
33805         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
33806         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
33807         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
33808         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
33809         ($(objpfx)tst-armtlsdescloc): New dependency.
33810         ($(objpfx)tst-armtlsdescextnow): Likewise.
33811         ($(objpfx)tst-armtlsdescextlazy): Likewise.
33812         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
33813         TLS scheme support.
33814         * sysdeps/arm/configure: Regenerate.
33815
33816 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
33817
33818         * include/fcntl.h (__atfct_seterrno): Remove prototype.
33819         (__atfct_seterrno_2): Likewise.
33820         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
33821         <kernel-features.h>.
33822         (__ASSUME_ATFCTS): Do not undefine and redefine.
33823         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
33824         (__have_atfcts): Remove conditional definition.
33825         (__fxstatat([__NR_fstatat64]: Make code unconditional.
33826         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
33827         unreachable if [__ASSUME_ATFCTS].
33828         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
33829         not undefine and redefine.
33830         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
33831         <kernel-features.h>.
33832         (faccessat) [__NR_faccessat]: Make code unconditional.
33833         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
33834         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
33835         <kernel-features.h>.
33836         (fchmodat) [__NR_fchmodat]: Make code unconditional.
33837         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
33838         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
33839         <kernel-features.h>.
33840         (fchownat) [__NR_fchownat]: Make code unconditional.
33841         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
33842         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
33843         <kernel-features.h>.
33844         (futimesat) [__NR_futimesat]: Make code unconditional.
33845         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
33846         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
33847         <kernel-features.h>.
33848         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
33849         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
33850         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
33851         <kernel-features.h>.
33852         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
33853         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
33854         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
33855         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
33856         <kernel-features.h>.
33857         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
33858         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
33859         * sysdeps/unix/sysv/linux/linkat.c: Do not include
33860         <kernel-features.h>.
33861         (linkat) [__NR_linkat]: Make code unconditional.
33862         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
33863         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
33864         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
33865         <kernel-features.h>.
33866         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
33867         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
33868         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
33869         <kernel-features.h>.
33870         (mkdirat) [__NR_mkdirat]: Make code unconditional.
33871         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
33872         * sysdeps/unix/sysv/linux/openat.c: Do not include
33873         <kernel-features.h>.
33874         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
33875         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
33876         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
33877         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
33878         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
33879         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
33880         <kernel-features.h>.
33881         (readlinkat) [__NR_readlinkat]: Make code unconditional.
33882         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
33883         result of INLINE_SYSCALL directly, not via int variable.
33884         * sysdeps/unix/sysv/linux/renameat.c: Do not include
33885         <kernel-features.h>.
33886         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
33887         (renameat) [__NR_renameat]: Make code unconditional.
33888         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
33889         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
33890         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
33891         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
33892         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
33893         (__ASSUME_ATFCTS): Do not undefine and redefine.
33894         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
33895         <kernel-features.h>.
33896         (symlinkat) [__NR_symlinkat]: Make code unconditional.
33897         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
33898         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
33899         <kernel-features.h>.
33900         (unlinkat) [__NR_unlinkat]: Make code unconditional.
33901         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
33902         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
33903         (__ASSUME_ATFCTS): Do not undefine and redefine.
33904         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
33905         <kernel-features.h>.
33906         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
33907         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
33908         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
33909         <kernel-features.h>.
33910         (__xmknodat) [__NR_mknodat]: Make code unconditional.
33911         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
33912
33913 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
33914
33915         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
33916
33917 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
33918
33919         [BZ #17069]
33920         * posix/regcomp.c (parse_reg_exp): Deallocate partially
33921         constructed tree before returning error.
33922         * posix/bug-regexp36.c: Expand test case.
33923
33924 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
33925
33926         [BZ #6803]
33927         * math/libm-test.inc (scalbln_test_date):
33928         Add errno expectations.
33929         * math/w_scalblnf.c: New File.
33930         Add wrapper which checks for setting errno to ERANGE.
33931         Add weak_alias for corresponding scalbln function.
33932         * math/w_scalbln.c: Likewise.
33933         * math/w_scalblnl.c: Likewise.
33934         * math/Makefile (libm-calls): Add w_scalbln.
33935         * sysdeps/ieee754/flt-32/s_scalblnf.c:
33936         Remove weak_alias for corresponding scalbln function.
33937         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
33938         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
33939         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
33940         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
33941         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
33942         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
33943         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
33944         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
33945         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
33946         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
33947         Remove long_double_symbol for scalblnl function in libm, libc.
33948         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
33949         Add wrapper which checks for setting errno to ERANGE.
33950         Add long_double_symbol for scalblnl function in libm, libc.
33951         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
33952         Remove long_double_symbol for scalblnl in libm.
33953         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
33954         Add wrapper which checks for setting errno to ERANGE.
33955         Add long_double_symbol for scalblnl function in libm.
33956         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
33957         Do not use wrapper because of own implementation.
33958
33959 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
33960
33961         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
33962         3 bytes for __pad1 for x32.
33963         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
33964
33965 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
33966             H.J. Lu  <hongjiu.lu@intel.com>
33967
33968         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
33969         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
33970         * sysdeps/x86_64/multiarch/memset.S: Likewise.
33971         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
33972         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
33973
33974 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
33975
33976         [BZ #17069]
33977         * posix/regcomp.c (parse_expression): Deallocate partially
33978         constructed tree before returning error.
33979         * posix/Makefile.c (tests): Add bug-regex36.
33980         (generated): Add bug-regex36.mtrace.
33981         (tests-special): Add $(objpfx)bug-regex36-mem.out
33982         (bug-regex36-ENV): New variable.
33983         ($(objpfx)bug-regex36-mem.out): New rule.
33984         * posix/bug-regex36.c: New file.
33985
33986 2014-06-19  Will Newton  <will.newton@linaro.org>
33987
33988         * malloc/malloc.c (systrim): If extra is zero then return
33989         early.
33990
33991 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
33992
33993         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
33994
33995 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
33996
33997         * sysdeps/aarch64/strchr.S: New file.
33998
33999 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
34000
34001         [BZ #17022]
34002         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
34003         from arguments -2 or below.
34004         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34005         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
34006
34007 2014-06-18  Andreas Schwab  <schwab@suse.de>
34008
34009         [BZ #17062]
34010         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
34011         of a bracket expr not to run off the end of the string.
34012         * posix/Makefile (tests): Add tst-fnmatch3.
34013         * posix/tst-fnmatch3.c: New file.
34014
34015 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
34016
34017         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
34018         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
34019         [$(cross-compiling) = no]: Likewise.
34020         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
34021         [$(cross-compiling) = no]: Likewise.
34022
34023 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
34024
34025         [BZ #17031]
34026         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
34027         double, adjusted for any remainder from the high double.
34028         * math/libm-test.inc (nearbyint): Add tests.
34029         (rint): Likewise.
34030
34031 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34032
34033         * nptl/sysdeps/powerpc/Makefile: Moved ...
34034         * sysdeps/powerpc/nptl/Makefile: ... here.
34035         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
34036         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
34037         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
34038         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
34039         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
34040         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
34041         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
34042         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
34043         * nptl/sysdeps/powerpc/tls.h: Moved ...
34044         * sysdeps/powerpc/nptl/tls.h: ... here.
34045
34046 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
34047
34048         [BZ #16681]
34049         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
34050         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
34051         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
34052         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
34053         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
34054         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
34055         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
34056         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
34057         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
34058
34059 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
34060
34061         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
34062
34063 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
34064
34065         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
34066         defined operator.
34067
34068         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
34069         $TIMEOUTFACTOR.
34070
34071 2014-06-16  Florian Weimer  <fweimer@redhat.com>
34072
34073         [BZ #17058]
34074         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
34075         non-executed part of the test.
34076
34077 2014-06-16  Andreas Schwab  <schwab@suse.de>
34078
34079         * string/bits/string2.h (strdup, strndup): Update feature guard.
34080
34081 2014-06-14  David S. Miller  <davem@davemloft.net>
34082
34083         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34084
34085 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
34086
34087         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
34088         that was previously under [RESET_PID].
34089         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
34090
34091         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
34092         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
34093         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
34094         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
34095         (__libc_vfork): New strong alias.
34096         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
34097
34098 2014-06-14 Andi Kleen  <ak@linux.intel.com>
34099
34100         * sysdeps/generic/elide.h: New file.
34101
34102 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
34103
34104         * Makefile (installed-headers): Adjust path of pthread.h header.
34105
34106 2014-06-13  Roland McGrath  <roland@hack.frob.com>
34107
34108         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
34109         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
34110         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
34111         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
34112
34113         * nptl/sysdeps/s390/Makefile: Moved ...
34114         * sysdeps/s390/nptl/Makefile: ... here.
34115         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
34116         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
34117         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
34118         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
34119         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
34120         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
34121         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
34122         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
34123         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
34124         * sysdeps/s390/nptl/pthreaddef.h: ... here.
34125         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
34126         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
34127         * nptl/sysdeps/s390/tls.h: Moved ...
34128         * sysdeps/s390/nptl/tls.h: ... here.
34129
34130         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
34131         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
34132
34133 2014-06-13  David S. Miller  <davem@davemloft.net>
34134
34135         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
34136         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
34137         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
34138         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
34139         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
34140         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
34141         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
34142         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
34143         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
34144         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
34145         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
34146         Remove RESET_PID cpp guards.
34147         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
34148         Remove RESET_PID cpp guards.
34149         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
34150
34151 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
34152
34153         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
34154         __sp to uintptr_t.
34155
34156 2014-06-13  Andi Kleen  <ak@linux.intel.com>
34157
34158         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
34159         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
34160         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
34161         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
34162         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
34163         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
34164         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
34165         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
34166         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
34167         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
34168         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
34169         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
34170         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
34171         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
34172         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
34173         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
34174         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
34175         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
34176         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
34177         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
34178
34179         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
34180         (pthread_rwlock_rdlock): Add elision.
34181         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
34182         (pthread_rwlock_wrlock): Add elision.
34183         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
34184         (pthread_rwlock_trywrlock): Add elision.
34185         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
34186         (pthread_rwlock_tryrdlock): Add elision.
34187         * nptl/pthread_rwlock_unlock.c: Include elide.h.
34188         (pthread_rwlock_tryrdlock): Add elision unlock.
34189         * nptl/sysdeps/pthread/pthread.h:
34190         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
34191         (PTHREAD_RWLOCK_INITIALIZER,
34192         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
34193         Handle new elision field.
34194         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
34195         * sysdeps/arm/nptl/bits/pthreadtypes.h
34196         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34197         * sysdeps/sh/nptl/bits/pthreadtypes.h
34198         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34199         * sysdeps/tile/nptl/bits/pthreadtypes.h
34200         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34201         * sysdeps/a/nptl/bits/pthreadtypes.h
34202         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34203         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34204         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34205         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34206         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34207         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
34208         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34209         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34210         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34211         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34212         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34213         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34214         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34215         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34216         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34217         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
34218         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34219         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
34220         (elision_init): Set try_xbegin to zero when no RTM.
34221         * sysdeps/x86/nptl/bits/pthreadtypes.h
34222         (pthread_rwlock_t): Change __pad1 to __rwelision.
34223         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
34224
34225 2014-06-13  Andi Kleen  <ak@linux.intel.com>
34226
34227         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
34228         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
34229         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
34230         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
34231
34232 2014-06-13  Meador Inge  <meadori@codesourcery.com>
34233
34234         [BZ #16996]
34235         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
34236         that the cached result has been set before returning it.
34237
34238 2014-06-12  Roland McGrath  <roland@hack.frob.com>
34239
34240         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
34241         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
34242         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
34243         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
34244         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
34245         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
34246
34247         * nptl/sysdeps/sparc/Makefile: Moved ...
34248         * sysdeps/sparc/nptl/Makefile: ... here.
34249         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
34250         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
34251         * nptl/sysdeps/sparc/tls.h: Moved ...
34252         * sysdeps/sparc/nptl/tls.h: ... here.
34253         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
34254         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
34255         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
34256         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
34257         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
34258         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
34259         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
34260         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
34261         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
34262         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
34263         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
34264         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
34265         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
34266         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
34267         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
34268         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
34269         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
34270         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
34271         Update #include.
34272         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
34273         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
34274         Update #include.
34275         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
34276         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
34277         Update #include.
34278         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
34279         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
34280         Update #include.
34281
34282         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
34283
34284         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
34285         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
34286
34287         * sysdeps/pthread/posix-timer.h: Include <list.h>.
34288         (struct list_links): Type removed.
34289         (struct thread_node, struct timer_node): Replace struct list_links
34290         with struct list_head.
34291         (list_unlink_ip): Likewise.
34292         * sysdeps/pthread/timer_routines.c
34293         (timer_free_list, thread_free_list, thread_active_list): Likewise.
34294         (list_append, list_insbefore): Likewise.
34295         (list_init): Function removed.
34296         (thread_init, init_module): Use INIT_LIST_HEAD instead.
34297         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
34298         * sysdeps/pthread/Makefile: ... here, new file.
34299
34300         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
34301         * sysdeps/nptl/Implies: ... here.
34302         * sysdeps/unix/sysv/linux/Implies: Add nptl.
34303         * nptl/sysdeps/pthread/list.h: Moved ...
34304         * include/list.h: ... here.
34305         * nptl/sysdeps/pthread/createthread.c: Moved ...
34306         * nptl/createthread.c: ... here.
34307         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
34308         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
34309         * nptl/pt-longjmp.c: ... here.
34310         * nptl/sysdeps/pthread/Makefile: Moved ...
34311         * sysdeps/nptl/Makefile: ... here.
34312         * nptl/sysdeps/pthread/Subdirs: Moved ...
34313         * sysdeps/nptl/Subdirs: ... here.
34314         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
34315         * sysdeps/nptl/aio_misc.h: ... here.
34316         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
34317         * sysdeps/nptl/bits/libc-lock.h: ... here.
34318         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
34319         * sysdeps/nptl/bits/libc-lockP.h: ... here.
34320         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
34321         * sysdeps/nptl/bits/stdio-lock.h: ... here.
34322         * nptl/sysdeps/pthread/configure: Moved ...
34323         * sysdeps/nptl/configure: ... here.
34324         * nptl/sysdeps/pthread/configure.ac: Moved ...
34325         * sysdeps/nptl/configure.ac: ... here.
34326         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
34327         * sysdeps/nptl/gai_misc.h: ... here.
34328         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
34329         * sysdeps/nptl/librt-cancellation.c: ... here.
34330         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
34331         * sysdeps/nptl/malloc-machine.h: ... here.
34332         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
34333         * sysdeps/nptl/pthread-functions.h: ... here.
34334         * nptl/sysdeps/pthread/pthread.h: Moved ...
34335         * sysdeps/nptl/pthread.h: ... here.
34336         * nptl/sysdeps/pthread/setxid.h: Moved ...
34337         * sysdeps/nptl/setxid.h: ... here.
34338         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
34339         * sysdeps/nptl/sigfillset.c: ... here.
34340         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
34341         * sysdeps/nptl/tcb-offsets.h: ... here.
34342         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
34343         * sysdeps/nptl/tst-mqueue8x.c: ... here.
34344         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
34345         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
34346         * nptl/sysdeps/pthread/allocalim.h: Moved ...
34347         * sysdeps/pthread/allocalim.h: ... here.
34348         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
34349         * sysdeps/pthread/bits/sigthread.h: ... here.
34350         * nptl/sysdeps/pthread/flockfile.c: Moved ...
34351         * sysdeps/pthread/flockfile.c: ... here.
34352         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
34353         * sysdeps/pthread/ftrylockfile.c: ... here.
34354         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
34355         * sysdeps/pthread/funlockfile.c: ... here.
34356         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
34357         * sysdeps/pthread/posix-timer.h: ... here.
34358         * nptl/sysdeps/pthread/timer_create.c: Moved ...
34359         * sysdeps/pthread/timer_create.c: ... here.
34360         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
34361         * sysdeps/pthread/timer_delete.c: ... here.
34362         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
34363         * sysdeps/pthread/timer_getoverr.c: ... here.
34364         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
34365         * sysdeps/pthread/timer_gettime.c: ... here.
34366         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
34367         * sysdeps/pthread/timer_routines.c: ... here.
34368         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
34369         * sysdeps/pthread/timer_settime.c: ... here.
34370         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
34371         * sysdeps/pthread/tst-timer.c: ... here.
34372         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
34373         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
34374
34375         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
34376         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
34377
34378         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
34379         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
34380         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
34381         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
34382         Update #include target.
34383         * nptl/sysdeps/i386/i686/Makefile: Moved ...
34384         * sysdeps/i386/i686/nptl/Makefile: ... here.
34385         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
34386         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
34387         Update #include target.
34388         * nptl/sysdeps/i386/i686/tls.h: Moved ...
34389         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
34390         * nptl/sysdeps/i386/Makefile: Moved ...
34391         * sysdeps/i386/nptl/Makefile: ... here.
34392         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
34393         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
34394         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
34395         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
34396         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
34397         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
34398         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
34399         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
34400         * sysdeps/i386/nptl/pthreaddef.h: ... here.
34401         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
34402         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
34403         * nptl/sysdeps/i386/tls.h: Moved ...
34404         * sysdeps/i386/nptl/tls.h: ... here.
34405
34406         * sysdeps/sh/Makefile [$(subdir) = csu]
34407         (gen-as-const-headers): Add tcb-offsets.sym.
34408         * nptl/sysdeps/sh/Makefile: File removed.
34409         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
34410         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
34411         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
34412         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
34413         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
34414         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
34415         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
34416         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
34417         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
34418         * sysdeps/sh/nptl/pthreaddef.h: ... here.
34419         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
34420         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
34421         * nptl/sysdeps/sh/tls.h: Moved ...
34422         * sysdeps/sh/nptl/tls.h: ... here.
34423         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
34424         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
34425         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
34426         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
34427         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
34428         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
34429         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
34430         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
34431         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
34432         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
34433         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
34434         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
34435         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
34436         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
34437         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
34438         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
34439         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
34440         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
34441         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
34442         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
34443         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
34444         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
34445         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
34446         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
34447         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
34448         Moved ...
34449         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
34450         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
34451         Moved ...
34452         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
34453         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
34454         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
34455         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
34456         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
34457         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
34458         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
34459         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
34460         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
34461         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
34462         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
34463         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
34464         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
34465         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
34466         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
34467         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
34468         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
34469         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
34470         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
34471
34472 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
34473
34474         * posix/spawn_faction_addopen.c: Include string.h.
34475
34476 2014-06-11  Roland McGrath  <roland@hack.frob.com>
34477
34478         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
34479         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
34480         * nptl/sysdeps/x86_64/Makefile: Moved ...
34481         * sysdeps/x86_64/nptl/Makefile: ... here.
34482         * nptl/sysdeps/x86_64/configure: Moved ...
34483         * sysdeps/x86_64/nptl/configure: ... here.
34484         * nptl/sysdeps/x86_64/configure.ac: Moved ...
34485         * sysdeps/x86_64/nptl/configure.ac: ... here.
34486         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
34487         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
34488         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
34489         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
34490         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
34491         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
34492         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
34493         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
34494         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
34495         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
34496         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
34497         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
34498         * nptl/sysdeps/x86_64/tls.h: Moved ...
34499         * sysdeps/x86_64/nptl/tls.h: ... here.
34500         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
34501         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
34502         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
34503         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
34504
34505         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
34506
34507 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34508
34509         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34510
34511 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
34512
34513         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
34514         type.
34515         [POSIX] (off_t): Likewise.
34516         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
34517         [POSIX] (S_ISBLK): Require macro.
34518         [POSIX] (S_ISCHR): Likewise.
34519         [POSIX] (S_ISDIR): Likewise.
34520         [POSIX] (S_ISFIFO): Likewise.
34521         [POSIX] (S_ISREG): Likewise.
34522         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
34523         optional-macro.
34524         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
34525         type.
34526         [POSIX] (time_t): Likewise.
34527         [POSIX] (timer_t): Likewise.
34528
34529 2014-06-11  Florian Weimer  <fweimer@redhat.com>
34530
34531         [BZ #17048]
34532         * posix/spawn_int.h (struct __spawn_action): Make the path string
34533         non-const to support deallocation.
34534         * posix/spawn_faction_addopen.c
34535         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
34536         * posix/spawn_faction_destroy.c
34537         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
34538         path in all spawn_do_open actions.
34539         * posix/tst-spawn.c (do_test): Exercise the copy operation in
34540         posix_spawn_file_actions_addopen.
34541
34542 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
34543
34544         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
34545         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
34546         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
34547         conditional code always true.
34548         (__libc_vfork): New alias.
34549
34550 2014-06-11  Roland McGrath  <roland@hack.frob.com>
34551
34552         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34553         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
34554
34555         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
34556
34557         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34558         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
34559
34560         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
34561         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
34562
34563         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34564         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
34565
34566 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34567
34568         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
34569         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
34570         multiarch strcmp for PPC64.
34571         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
34572         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
34573         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
34574         multiarch optimizations.
34575         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34576         (__libc_ifunc_impl_list): Likewise.
34577
34578 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
34579
34580         * benchtests/scripts/validate_benchout.py: New script.
34581         * benchtests/Makefile (bench-func): Call it.
34582         * benchtests/scripts/benchout.schema.json: New file.
34583
34584 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
34585
34586         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
34587         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
34588         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
34589         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
34590         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
34591         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
34592         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
34593         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
34594         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
34595         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
34596         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
34597         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
34598         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
34599         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
34600         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
34601         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
34602         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
34603         Moved ...
34604         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
34605         ... here.
34606         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
34607         Moved ...
34608         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
34609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
34610         Moved ...
34611         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
34612         ... here.
34613         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
34614         Moved ...
34615         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
34616         ... here.
34617         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
34618         Moved ...
34619         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
34620         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
34621         Moved ...
34622         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
34623         ... here.
34624         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
34625         Moved ...
34626         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
34627         ... here.
34628         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
34629         Moved ...
34630         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
34631         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
34632         Moved ...
34633         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
34634         ... here.
34635         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
34636         Moved ...
34637         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
34638         ... here.
34639         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
34640         Moved ...
34641         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
34642         ... here.
34643         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
34644         Moved ...
34645         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
34646         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
34647         Moved ...
34648         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
34649         ... here.
34650         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
34651         Moved ...
34652         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
34653         ... here.
34654         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
34655         Moved ...
34656         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
34657         ... here.
34658         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
34659         Moved ...
34660         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
34661         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
34662         Moved ...
34663         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
34664         ... here.
34665         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
34666         Moved ...
34667         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
34668         ... here.
34669         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
34670         Moved ...
34671         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
34672         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
34673         Moved ...
34674         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
34675         ... here.
34676         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
34677         Moved ...
34678         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
34679         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
34680         Moved ...
34681         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
34682         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
34683         Moved ...
34684         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
34685         ... here.
34686         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
34687         Moved ...
34688         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
34689         ... here.
34690         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
34691         Moved ...
34692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
34693         ... here.
34694         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
34695         Moved ...
34696         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
34697         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
34698         Moved ...
34699         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
34700         ... here.
34701         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
34702         Moved ...
34703         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
34704         ... here.
34705         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
34706         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
34707         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
34708         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
34709         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
34710         Moved ...
34711         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
34712         ... here.
34713         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
34714         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
34715         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
34716         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
34717         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
34718         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
34719         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
34720         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
34721         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
34722         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
34723         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
34724         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
34725         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
34726         Moved ...
34727         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
34728         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
34729         Moved ...
34730         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
34731         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
34732         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
34733         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
34734         Moved ...
34735         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
34736         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
34737         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
34738         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
34739         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
34740         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
34741         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
34742
34743 2014-06-10  Wilco  <wdijkstr@arm.com>
34744
34745         * math/test-fenv-return.c: New file.
34746         * math/Makefile: Add new test test-fenv-return.
34747
34748 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
34749
34750         [BZ #17042]
34751         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
34752         when x - 1 is zero.
34753         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
34754         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
34755         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
34756         0.0L for an argument of 1.0L.
34757         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
34758         Likewise.
34759         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
34760         value when x - 1 is zero.
34761         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
34762         * sysdeps/i386/fpu/libm-test-ulps: Update.
34763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34764
34765 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
34766
34767         [BZ #15119]
34768         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
34769
34770 2014-06-09  Roland McGrath  <roland@hack.frob.com>
34771
34772         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
34773         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
34774
34775 2014-06-09  Roland McGrath  <roland@hack.frob.com>
34776
34777         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34778         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
34779
34780         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34781         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
34782
34783         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34784         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
34785
34786         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34787         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
34788
34789         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
34790         if not already defined.
34791         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
34792         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
34793         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
34794         (TLS_INIT_TP): Use it.
34795         (TLS_DEFINE_INIT_TP): New macro.
34796         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
34797
34798 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
34799
34800         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
34801         constant.
34802         [POSIX] (IXANY): Likewise.
34803         [POSIX] (OLCUC): Likewise.
34804         [POSIX || POSIX2008] (CBAUD): Do not allow.
34805         [POSIX || POSIX2008] (DEFECHO): Likewise.
34806         [POSIX || POSIX2008] (ECHOCTL): Likewise.
34807         [POSIX || POSIX2008] (ECHOKE): Likewise.
34808         [POSIX || POSIX2008] (ECHOPRT): Likewise.
34809         [POSIX || POSIX2008] (EXTA): Likewise.
34810         [POSIX || POSIX2008] (EXTB): Likewise.
34811         [POSIX || POSIX2008] (FLUSHO): Likewise.
34812         [POSIX || POSIX2008] (LOBLK): Likewise.
34813         [POSIX || POSIX2008] (PENDIN): Likewise.
34814         [POSIX || POSIX2008] (SWTCH): Likewise.
34815         [POSIX || POSIX2008] (VDISCARD): Likewise.
34816         [POSIX || POSIX2008] (VDSUSP): Likewise.
34817         [POSIX || POSIX2008] (VLNEXT): Likewise.
34818         [POSIX || POSIX2008] (VREPRINT): Likewise.
34819         [POSIX || POSIX2008] (VSTATUS): Likewise.
34820         [POSIX || POSIX2008] (VWERASE): Likewise.
34821         (B*): Change to B[0123456789]*.
34822         * conform/data/time.h-data [POSIX || UNIX98]
34823         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
34824         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
34825         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
34826         [POSIX] (tm_*): Do not allow.
34827
34828 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
34829
34830         * Makefile (install): Don't set LANGUAGE.
34831         * Makefile.in (install): Likewise.
34832         * assert/Makefile (test-assert-ENV): Remove variable.
34833         (test-assert-perr-ENV): Likewise.
34834         * elf/Makefile (neededtest4-ENV): Likewise.
34835         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
34836         [$(cross-compiling) = no]: Don't set LANGUAGE.
34837         * io/ftwtest-sh (LANG): Remove variable.
34838         * libio/Makefile (tst-widetext-ENV): Likewise.
34839         * manual/install.texi (Running make install): Don't refer to
34840         environment settings for make install.
34841         * INSTALL: Regenerated.
34842         * nptl/tst-tls6.sh: Don't set LANG.
34843         * posix/globtest.sh (LANG): Remove variable.
34844         * string/Makefile (tester-ENV): Likewise.
34845         (inl-tester-ENV): Likewise.
34846         (noinl-tester-ENV): Likewise.
34847         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
34848         [$(cross-compiling) = no]: Don't set LANGUAGE.
34849         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
34850         without explicit environment settings.
34851
34852 2014-06-06  Roland McGrath  <roland@hack.frob.com>
34853
34854         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
34855         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
34856         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
34857         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
34858
34859 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
34860
34861         * crypt/crypt-private.h [DOS]: Add some includes taken from the
34862         other files in the crypt directory.
34863         * crypt/crypt.c: Remove duplicate includes.
34864         * crypt/crypt-entry.c: Likewise.
34865         * crypt/crypt_util.c: Likewise.
34866
34867 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
34868
34869         * Makeconfig (run-program-env): New variable.
34870         (run-program-prefix-before-env): Likewise.
34871         (run-program-prefix-after-env): Likewise.
34872         (run-program-prefix): Define in terms of new variables.
34873         (built-program-cmd-before-env): New variable.
34874         (built-program-cmd-after-env): Likewise.
34875         (built-program-cmd): Define in terms of new variables.
34876         (test-program-prefix-before-env): New variable.
34877         (test-program-prefix-after-env): Likewise.
34878         (test-program-prefix): Define in terms of new variables.
34879         (test-program-cmd-before-env): New variable.
34880         (test-program-cmd-after-env): Likewise.
34881         (test-program-cmd): Define in terms of new variables.
34882         * Rules (make-test-out): Use $(run-program-env).
34883         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
34884         (help): Do not mention environment variables.  Mention
34885         --timeoutfactor option.
34886         (timeoutfactor): New variable.
34887         (blacklist_exports): Remove function.
34888         (exports): Remove variable.
34889         (command): Do not include ${exports}.
34890         * manual/install.texi (Configuring and compiling): Do not mention
34891         test wrappers preserving environment variables.  Mention that last
34892         assignment to a variable must take precedence.
34893         * INSTALL: Regenerated.
34894         * benchtests/Makefile (run-bench): Use $(run-program-env).
34895         * catgets/Makefile ($(objpfx)test1.cat): Use
34896         $(built-program-cmd-before-env), $(run-program-env) and
34897         $(built-program-cmd-after-env).
34898         ($(objpfx)test2.cat): Do not specify environment variables
34899         explicitly.
34900         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
34901         $(run-program-env) and $(built-program-cmd-after-env).
34902         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
34903         $(run-program-env) and $(test-program-cmd-after-env).
34904         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
34905         explicitly.
34906         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
34907         run_program_env and test_program_cmd_after_env arguments.
34908         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
34909         * elf/tst-pathopt.sh: Use run_program_env argument.
34910         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
34911         $(test-wrapper-env) and $(run-program-env).
34912         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
34913         run_program_env arguments.
34914         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
34915         * intl/Makefile ($(objpfx)tst-gettext.out): Use
34916         $(test-program-prefix-before-env), $(run-program-env) and
34917         $(test-program-prefix-after-env).
34918         ($(objpfx)tst-gettext2.out): Likewise.
34919         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
34920         run_program_env and test_program_prefix_after_env arguments.
34921         * intl/tst-gettext2.sh: Likewise.
34922         * intl/tst-gettext4.sh: Do not set environment variables
34923         explicitly.
34924         * intl/tst-gettext6.sh: Likewise.
34925         * intl/tst-translit.sh: Likewise.
34926         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
34927         $(test-program-prefix-before-env), $(run-program-env) and
34928         $(test-program-prefix-after-env).
34929         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
34930         run_program_env and test_program_prefix_after_env arguments.
34931         * math/Makefile (run-regen-ulps): Use $(run-program-env).
34932         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
34933         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
34934         explicitly with each use of ${test_wrapper_env}.
34935         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
34936         $(test-program-prefix-before-env), $(run-program-env) and
34937         $(test-program-prefix-after-env).
34938         * posix/tst-getconf.sh: Do not set environment variables
34939         explicitly.
34940         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
34941         run_program_env and test_program_prefix_after_env arguments.
34942         * stdio-common/tst-printf.sh: Do not set environment variables
34943         explicitly.
34944         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
34945         $(test-program-prefix-before-env), $(run-program-env) and
34946         $(test-program-prefix-after-env).
34947         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
34948         run_program_env and test_program_prefix_after_env arguments.
34949         Split $test calls into $test_pre and $test.
34950         * timezone/Makefile (build-testdata): Use
34951         $(built-program-cmd-before-env), $(run-program-env) and
34952         $(built-program-cmd-after-env).
34953
34954 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34955
34956         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
34957         strlen for non SHARED builds.
34958
34959 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
34960
34961         * nptl/allocatestack.c (check_list): Inlined function...
34962         (__reclaim_stacks): ... here.
34963
34964 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
34965
34966         [BZ #15698]
34967         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
34968         memory overrun.
34969
34970 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
34971
34972         * Rules (make-test-out): Include
34973         LOCPATH=$(common-objpfx)localedata in default environment.
34974         * debug/Makefile (tst-chk1-ENV): Remove variable.
34975         (tst-chk2-ENV): Likewise.
34976         (tst-chk3-ENV): Likewise.
34977         (tst-chk4-ENV): Likewise.
34978         (tst-chk5-ENV): Likewise.
34979         (tst-chk6-ENV): Likewise.
34980         (tst-lfschk1-ENV): Likewise.
34981         (tst-lfschk2-ENV): Likewise.
34982         (tst-lfschk3-ENV): Likewise.
34983         (tst-lfschk4-ENV): Likewise.
34984         (tst-lfschk5-ENV): Likewise.
34985         (tst-lfschk6-ENV): Likewise.
34986         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
34987         (tst-iconv7-ENV): Likewise.
34988         * intl/Makefile (LOCPATH-ENV): Likewise.
34989         (tst-codeset-ENV): Likewise.
34990         (tst-gettext3-ENV): Likewise.
34991         (tst-gettext5-ENV): Likewise.
34992         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
34993         (tst-fopenloc-ENV): Likewise.
34994         (tst-fgetws-ENV): Remove variable.
34995         (tst-ungetwc1-ENV): Likewise.
34996         (tst-ungetwc2-ENV): Likewise.
34997         (bug-ungetwc2-ENV): Likewise.
34998         (tst-swscanf-ENV): Likewise.
34999         (bug-ftell-ENV): Likewise.
35000         (tst-fgetwc-ENV): Likewise.
35001         (tst-fseek-ENV): Likewise.
35002         (tst-ftell-partial-wide-ENV): Likewise.
35003         (tst-ftell-active-handler-ENV): Likewise.
35004         (tst-ftell-append-ENV): Likewise.
35005         * posix/Makefile (tst-fnmatch-ENV): Likewise.
35006         (tst-regexloc-ENV): Likewise.
35007         (bug-regex1-ENV): Likewise.
35008         (tst-regex-ENV): Likewise.
35009         (tst-regex2-ENV): Likewise.
35010         (bug-regex5-ENV): Likewise.
35011         (bug-regex6-ENV): Likewise.
35012         (bug-regex17-ENV): Likewise.
35013         (bug-regex18-ENV): Likewise.
35014         (bug-regex19-ENV): Likewise.
35015         (bug-regex20-ENV): Likewise.
35016         (bug-regex22-ENV): Likewise.
35017         (bug-regex23-ENV): Likewise.
35018         (bug-regex25-ENV): Likewise.
35019         (bug-regex26-ENV): Likewise.
35020         (bug-regex30-ENV): Likewise.
35021         (bug-regex32-ENV): Likewise.
35022         (bug-regex33-ENV): Likewise.
35023         (bug-regex34-ENV): Likewise.
35024         (bug-regex35-ENV): Likewise.
35025         (tst-rxspencer-ENV): Likewise.
35026         (tst-rxspencer-no-utf8-ENV): Likewise.
35027         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
35028         (tst-sscanf-ENV): Likewise.
35029         (tst-swprintf-ENV): Likewise.
35030         (tst-swscanf-ENV): Likewise.
35031         (test-vfprintf-ENV): Likewise.
35032         (scanf13-ENV): Likewise.
35033         (bug14-ENV): Likewise.
35034         (tst-grouping-ENV): Likewise.
35035         * stdlib/Makefile (tst-strtod-ENV): Likewise.
35036         (tst-strtod3-ENV): Likewise.
35037         (tst-strtod4-ENV): Likewise.
35038         (tst-strtod5-ENV): Likewise.
35039         (testmb2-ENV): Likewise./
35040         * string/Makefile (tst-strxfrm-ENV): Likewise.
35041         (tst-strxfrm2-ENV): Likewise.
35042         (bug-strcoll1-ENV): Likewise.
35043         (test-strcasecmp-ENV): Likewise.
35044         (test-strncasecmp-ENV): Likewise.
35045         * time/Makefile (tst-strptime-ENV): Likewise.
35046         (tst-ftime_l-ENV): Likewise.
35047         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
35048         (tst-mbrtowc-ENV): Likewise.
35049         (tst-wcrtomb-ENV): Likewise.
35050         (tst-mbrtowc2-ENV): Likewise.
35051         (tst-c16c32-1-ENV): Likewise.
35052         (tst-mbsnrtowcs-ENV): Likewise.
35053
35054 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
35055
35056         * manual/resource.texi (How to get information about the memory
35057         subsystem?): Fix typo.
35058         Reported by Peon de la Parra Ivan <peon@keba.com>
35059
35060 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
35061
35062         [BZ #16882]
35063         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
35064         (pthread_spin_lock): Branch out of spin loop to proper location.
35065         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
35066         (pthread_spin_lock): Likewise.
35067
35068         * nptl/tst-spin4.c: New test.
35069         * nptl/Makefile (tests): Add tst-spin4.
35070
35071 2014-06-03  Andreas Schwab  <schwab@suse.de>
35072
35073         [BZ #15946]
35074         * resolv/res_send.c (send_dg): Reload file descriptor after
35075         calling reopen.
35076
35077 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
35078
35079         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
35080
35081 2014-06-03  Richard Henderson  <rth@redhat.com>
35082
35083         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
35084         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
35085         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
35086         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
35087         in the SAVE_PID block.
35088         (__libc_vfork): New alias.
35089         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
35090
35091         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
35092         child in registers, not on the stack.  Remove RESET_PID conditionals.
35093         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
35094
35095 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35096
35097         * sysdeps/aarch64/libm-test-ulps: Regenerate.
35098
35099 2014-06-03  Wilco  <wdijkstr@arm.com>
35100
35101         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
35102         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
35103         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
35104         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
35105         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
35106         Likewise.
35107
35108 2014-06-03  Wilco  <wdijkstr@arm.com>
35109
35110         * sysdeps/aarch64/fpu/math_private.h
35111         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
35112         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
35113         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
35114         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
35115         Fix declarations.
35116
35117 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
35118
35119         * crypt/crypt-private.h: Include ufc-crypt.h.
35120         (__b64_from_24bit): Declare extern.
35121         * crypt/crypt_util.c(__b64_from_24bit): New function.
35122         (b64t): New static const variable.
35123         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
35124         (b64t): Remove variable.
35125         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
35126         * crypt/sha256-crypt.c: Include crypt-private.h.
35127         (b64t): Remove variable.
35128         (__sha256_crypt_r): Remove b64_from_24bit and replace
35129         with __b64_from_24bit.
35130         * crypt/sha512-crypt.c: Likewise.
35131
35132 2014-06-02  Roland McGrath  <roland@hack.frob.com>
35133
35134         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
35135         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
35136         Label the code __libc_vfork rather than __vfork.
35137         [!NOT_IN_libc] (vfork): Define as weak alias.
35138         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
35139         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
35140         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
35141
35142 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35143
35144         * malloc/malloc.c (malloc_info): Fix format specifier for
35145         n_mmaps.
35146
35147 2014-06-02  Wilco  <wdijkstr@arm.com>
35148
35149         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
35150         FPCR write.
35151
35152 2014-06-02  Wilco  <wdijkstr@arm.com>
35153
35154         [BZ #17009]
35155         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
35156         Rewrite to reduce FPCR/FPSR accesses.
35157
35158 2014-06-01  David S. Miller  <davem@davemloft.net>
35159
35160         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35161
35162 2014-05-31  David S. Miller  <davem@davemloft.net>
35163
35164         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
35165         to occur in round to nearest mode when |x| >= 2.0
35166
35167 2014-05-30  Richard Henderson  <rth@twiddle.net>
35168
35169         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
35170         (PSEUDO_RET_NOERRNO): Remove.
35171         (ret): Don't redefine.
35172         (ret_NOERRNO): Define in terms of ret.
35173         (ret_ERRVAL): Likewise.
35174
35175         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
35176         use of PSEUDO_RET; perform the error check directly.
35177
35178 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
35179
35180         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
35181         with __int128_t.
35182
35183 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
35184
35185         * malloc/malloc (malloc_info): Fix formatting.
35186
35187 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
35188             Roland McGrath  <roland@hack.frob.com>
35189
35190         * malloc/malloc (malloc_info): Also print mmapped statistics.
35191
35192 2014-05-30  Roland McGrath  <roland@hack.frob.com>
35193
35194         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
35195         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
35196
35197 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
35198
35199         * malloc/malloc.c (malloc_info): Inline mi_arena.
35200
35201 2014-05-29  Richard Henderson  <rth@twiddle.net>
35202
35203         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
35204         Remove comma before expanding ASM_ARGS_##nr.
35205         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
35206         Make _x0 a strict output; make _x8 a strict input; adjust expansion
35207         of ASM_ARGS_##nr.
35208         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
35209         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
35210         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
35211         (ASM_ARGS_1): Add leading comma.
35212
35213         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
35214         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
35215         to __errno_location.
35216         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
35217         Remove the expected plt for __errno_location.
35218
35219         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
35220         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
35221         call to __read_tp.
35222
35223         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
35224         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
35225         it and break it down.
35226         (DOCARGS_0, DOCARGS_1): Do nothing.
35227         (DOCARGS_2): Update to store into the new stack frame.
35228         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
35229         (UNDOCARGS_1): Update to restore from the new stack frame.
35230         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
35231         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
35232
35233         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
35234         (SINGLE_THREAD_P): New parameter for result regno.
35235         (PSEUDO): Update to match; use cbz instead of beq.
35236
35237         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
35238         Use ENTRY to define the _nocancel entry point.  Share the syscall
35239         and syscall error check paths with the cancel path.
35240         (PSEUDO_END): New.
35241
35242         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
35243         whitespace; tabs before and after asm mnemonics.
35244
35245 2014-05-29  Eric Wong  <normalperson@yhbt.net>
35246
35247         [BZ #15132]
35248         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35249         Call fstat64 or stat64 internally, depending on arguments passed.
35250         Replace stat buffer argument with file descriptor argument.
35251         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
35252         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
35253         Pass fd to __internal_statvfs instead of calling fstat64.
35254         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
35255         Pass fd to __internal_statvfs64 instead of calling fstat64.
35256         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
35257         Pass -1 to __internal_statvfs instead of calling stat64.
35258         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
35259         Pass -1 to __internal_statvfs64 instead of calling stat64.
35260
35261 2014-05-28  Roland McGrath  <roland@hack.frob.com>
35262
35263         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
35264         that was previously under [RESET_PID].
35265         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
35266
35267         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
35268         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
35269
35270 2014-05-27  Roland McGrath  <roland@hack.frob.com>
35271
35272         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
35273
35274         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
35275         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
35276
35277 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
35278
35279         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
35280
35281 2014-05-27  Andreas Schwab  <schwab@suse.de>
35282
35283         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
35284         TLS_INIT_TP macro.
35285         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
35286         * elf/rtld.c (init_tls, dl_main): Likewise.
35287         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
35288         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
35289         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
35290         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
35291         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
35292         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
35293         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
35294         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
35295         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
35296         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
35297         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
35298         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
35299         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
35300         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
35301         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
35302         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
35303         * sysdeps/generic/tls.h: Update description.
35304
35305 2014-05-27  Will Newton  <will.newton@linaro.org>
35306
35307         [BZ #16990]
35308         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
35309         and restore r2 rather than just restoring.
35310
35311 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
35312
35313         [BZ #16724]
35314         * libio/tst-ftell-append.c: New test case.
35315         * libio/Makefile (tests): Add test case.
35316         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
35317         append mode.
35318         * libio/wfileops.c (do_ftell_wide): Likewise.
35319
35320 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35321
35322         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35323
35324         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
35325         ...
35326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
35327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
35328         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
35329         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
35330         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
35331         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
35332         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
35333         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
35334         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
35335         Moved ...
35336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
35337         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
35338         Moved ...
35339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
35340         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
35341         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
35342         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
35343         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
35344         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
35345         ...
35346         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
35347         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
35348         Moved ...
35349         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
35350         here.
35351         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
35352         ...
35353         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
35354         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
35355         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
35356
35357         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
35358         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
35359         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
35360         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
35361
35362         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
35363         merge into ...
35364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
35365         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
35366         ...
35367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
35368         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
35369         ...
35370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
35371         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
35372         Moved ...
35373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
35374         here.
35375         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
35376         Moved ...
35377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
35378         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
35379         Moved ...
35380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
35381
35382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
35383         conditional [RESET_PID].
35384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
35385         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
35386         removed.
35387         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
35388         removed.
35389
35390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
35391         <tcb-offsets.h>.
35392         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
35393         (__libc_vfork): New strong alias.
35394         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
35395         removed.
35396         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
35397         Removed.
35398
35399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
35400         <tcb-offsets.h>.
35401         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
35402         (__libc_vfork): New strong alias.
35403         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
35404         removed.
35405         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
35406         removed.
35407
35408 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
35409
35410         * malloc/malloc.c (mi_arena): New function.
35411         (malloc_info): Remove nested function mi_arena. Call non-nosted
35412         function mi_arena.
35413
35414 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35415
35416         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
35417         by insrwi.
35418         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
35419         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
35420         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
35421         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
35422         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
35423         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
35424         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
35425
35426 2014-05-26  Andreas Schwab  <schwab@suse.de>
35427
35428         [BZ #16984]
35429         * locale/programs/repertoire.c (repertoire_read): Add slash
35430         between I18NPATH element and file name.
35431         * locale/programs/locfile.c (locfile_read): Likewise.
35432
35433 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
35434
35435         * nptl/pthread_mutexattr_settype.c
35436         (__pthread_mutexattr_settype):
35437         Disable lock elision for PTHREAD_MUTEX_NORMAL.
35438
35439 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
35440
35441         * nptl/tst-mutex5 (do_test):
35442         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
35443
35444 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35445
35446         * benchtests/README: Document 'init' directive.
35447         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
35448         BENCH_INIT.
35449         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
35450         (parse_file): Recognize 'init' directive.
35451
35452 2014-05-26  Kyle McMartin  <kyle@redhat.com>
35453
35454         [BZ #16796]
35455         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
35456         alignment of struct pthread.
35457
35458 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35459
35460         [BZ #16878]
35461         * nscd/netgroupcache.c (addgetnetgrentX): Look for
35462         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
35463         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
35464         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
35465
35466 2014-05-25  Richard Henderson  <rth@twiddle.net>
35467
35468         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
35469         (SINGLE_THREAD_P_PIC): Remove.
35470         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
35471         (SINGLE_THREAD_P_PIC): Remove.
35472
35473         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
35474         branch to syscall error ...
35475         (PSEUDO): ... here.
35476         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
35477         from __local_syscall_error to .Lsyscall_error.
35478         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
35479         (SYSCALL_ERROR): Update label name.
35480
35481         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
35482         Do not use DOARGS/UNDOARGS.
35483         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
35484         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
35485         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
35486         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
35487         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
35488
35489         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
35490         block comment.
35491
35492         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
35493         define if !NOT_IN_libc.
35494         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
35495         define with non-default symbol versions.
35496
35497 2014-05-23  Richard Henderson  <rth@twiddle.net>
35498
35499         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
35500         (vfork, __vfork): Define via compat_symbol.
35501
35502         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
35503         [!HAVE_IFUNC] (vfork_compat): Remove.
35504         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
35505
35506 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
35507
35508         [BZ #16978]
35509         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
35510         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
35511         variable.
35512
35513 2014-05-23  Richard Henderson  <rth@twiddle.net>
35514
35515         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
35516         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
35517         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
35518         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
35519
35520         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
35521         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
35522         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
35523         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
35524         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
35525         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
35526         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
35527         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
35528         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
35529         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
35530         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
35531         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
35532         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
35533         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
35534         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
35535         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
35536         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
35537         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
35538         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
35539         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
35540         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
35541         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
35542         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
35543         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
35544         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
35545         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
35546         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
35547         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
35548         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
35549         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
35550         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
35551         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
35552         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
35553         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
35554         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
35555         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
35556         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
35557         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
35558         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
35559         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
35560         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
35561         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
35562         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
35563         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
35564         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
35565         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
35566         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
35567         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
35568         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
35569         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
35570         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
35571         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
35572         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
35573         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
35574         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
35575         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
35576
35577         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
35578         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
35579         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
35580         before exiting on error.
35581         (__libc_vfork): New strong alias.
35582         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
35583         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
35584
35585         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
35586         that was previously under [RESET_PID].
35587         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
35588
35589         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
35590
35591 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
35592
35593         [BZ #16977]
35594         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
35595         value when x - 1 is zero.
35596         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
35597         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
35598         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
35599         0.0L for an argument of 1.0L.
35600         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
35601         Likewise.
35602         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
35603         value when x - 1 is zero.
35604         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
35605         * sysdeps/i386/fpu/libm-test-ulps: Update.
35606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35607
35608 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
35609
35610         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
35611         alphasort and versionsort.
35612
35613 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35614
35615         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
35616         macro.
35617         [copysignf]: Likewise.
35618
35619 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
35620
35621         * crypt/md5-crypt.c: Fix formatting.
35622
35623 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
35624
35625         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
35626         (b64_from_24bit): New function.
35627
35628 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35629
35630         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
35631         libc_hidden_builtin_def to ifunc.
35632         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
35633         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
35634
35635 2014-05-21  Roland McGrath  <roland@hack.frob.com>
35636
35637         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
35638         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
35639
35640 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
35641
35642         * nscd/Depend (linuxthreads): Remove.
35643         (nptl): Add.
35644         * resolv/Depend (linuxthreads): Remove.
35645         * rt/Depend (linuxthreads): Remove.
35646
35647         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
35648         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
35649         $(common-objpfx)elf/.
35650         (link-libc-before-gnulib): Likewise.
35651         (elfobjdir): Remove variable.
35652         * Makefile (install): Use $(elf-objpfx) instead of
35653         $(common-objpfx)elf/.
35654         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
35655         $(elfobjdir)/.
35656         (link-libc-deps): Likewise.
35657         ($(common-objpfx)libc.so): Likewise.
35658         ($(common-objpfx)linkobj/libc.so): Likewise.
35659         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
35660         instead of $(common-objpfx)elf/.
35661         (symbolic-link-list): Likewise.
35662         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
35663         [$(cross-compiling) = no]: Likewise.
35664         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
35665         $(elfobjdir)/.
35666         (static-gnulib-arch): Likewise.
35667         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
35668         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
35669         $(common-objpfx)elf/.
35670
35671 2014-05-21  Richard Henderson  <rth@redhat.com>
35672
35673         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
35674         (SINGLE_THREAD_P): Use the correct width load.  Fold
35675         into the ldr offset.
35676
35677         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
35678         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
35679
35680 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
35681
35682         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
35683         (libgcc_s_resume): Use __attribute_used__.
35684         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
35685         Likewise.
35686
35687 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35688
35689         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
35690         optimization when used with float constants.
35691
35692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35693
35694 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
35695
35696         [BZ #16915]
35697         * locale/nl_langinfo_l.c: Make direct reference to every
35698         _nl_current_CATEGORY symbol.
35699         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
35700         (tests-static): Add tst-langinfo-static.
35701         (tests-special): Add tst-langinfo-static.out.
35702         ($(objpfx)tst-langinfo.out): Redirect output.
35703         ($(objpfx)tst-langinfo-static.out): New.
35704         * localedata/tst-langinfo.sh: Send output to stdout.
35705         * localedata/tst-langinfo-static.c: New file.
35706
35707         [BZ #16965]
35708         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
35709         when the shift amount is modulo the limb size.
35710
35711 2014-05-20  Richard Henderson  <rth@redhat.com>
35712
35713         [BZ #16967]
35714         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
35715         Change type of sa_flags from unsigned int to int.
35716
35717         [BZ #16966]
35718         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
35719
35720         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
35721
35722 2014-05-20  Will Newton  <will.newton@linaro.org>
35723
35724         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
35725         Test the return value of the system call in the nocancel case.
35726
35727 2014-05-20  Will Newton  <will.newton@linaro.org>
35728             Yvan Roux  <yvan.roux@linaro.org>
35729
35730         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
35731         #include of asm/ptrace.h.
35732         (PTRACE_GET_THREAD_AREA): Remove #undef.
35733         (PTRACE_GETHBPREGS): Likewise.
35734         (PTRACE_SETHBPREGS): Likewise.
35735         (struct user_regs_struct): New structure.
35736         (struct user_fpsimd_struct): New structure.
35737         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
35738         #include of asm/ptrace.h and second #include of sys/user.h.
35739         (PTRACE_GET_THREAD_AREA): Remove #undef.
35740         (PTRACE_GETHBPREGS): Likewise.
35741         (PTRACE_SETHBPREGS): Likewise.
35742         (ELF_NGREG): Use new struct user_regs_struct.
35743         (elf_fpregset_t): Use new struct user_fpsimd_struct.
35744
35745 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35746
35747         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
35748         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
35749
35750 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
35751
35752         [BZ #16958]
35753         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
35754         membar to avoid block loads/stores to overlap previous stores.
35755
35756 2014-05-17  Richard Henderson  <rth@redhat.com>
35757
35758         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
35759         Create the __##syscall_name##_nocancel entry point.
35760         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
35761         Remove; let the sysdep-cancel.h code create it.
35762
35763 2014-05-17  David S. Miller  <davem@davemloft.net>
35764
35765         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
35766         Protect with __USE_GNU.
35767         (TIOCSET_TEMPT): Likewise.
35768         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
35769         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
35770         these are already provided in bits/ioctl-types.h
35771
35772 2014-05-16  Roland McGrath  <roland@hack.frob.com>
35773
35774         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
35775         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
35776
35777         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
35778         Use wait4 regardless of [__NR_waitpid].
35779
35780 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
35781
35782         PR libgcc/60166
35783         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
35784         (_FP_NANSIGN_Q): Set the quiet bit.
35785
35786 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
35787
35788         * benchtests/Makefile
35789         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
35790         not $(common-objpfx)math/libm.so.
35791         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
35792         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
35793         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
35794         $(common-objpfx)dlfcn/libdl.so.
35795         ($(objpfx)tst-audit8): Depend on $(libm), not
35796         $(common-objpfx)math/libm.so.
35797         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
35798         not $(common-objpfx)dlfcn/libdl.so.
35799         * math/Makefile
35800         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
35801         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
35802         [$(build-shared) = yes].
35803         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
35804         $(common-objpfx)nptl/libpthread.so.
35805         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
35806         $(common-objpfx)math/libm.so$(libm.so-version) or
35807         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
35808         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
35809         $(common-objpfx)dlfcn/libdl.so.
35810         * setjmp/Makefile (link-libm): Remove variable.
35811         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
35812         * stdio-common/Makefile (link-libm): Remove variable.
35813         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
35814         * stdlib/Makefile (link-libm): Remove variable.
35815         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
35816         ($(objpfx)tst-strtod-round): Likewise.
35817         ($(objpfx)tst-tininess): Likewise.
35818         ($(objpfx)tst-strtod-underflow): Likewise.
35819         ($(objpfx)tst-strtod6): Likewise.
35820         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
35821         $(libdl), not $(common-objpfx)nptl/libpthread.so and
35822         $(common-objpfx)dlfcn/libdl.so.
35823
35824 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35825
35826         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
35827         BSD terminal modes definitions.
35828
35829 2014-05-16  Roland McGrath  <roland@hack.frob.com>
35830
35831         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
35832         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
35833
35834         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
35835         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
35836         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
35837         Don't do #include_next.
35838         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
35839         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
35840         Don't do #include_next.
35841         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
35842         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
35843         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
35844         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
35845
35846 2014-05-16  Allan McRae  <allan@archlinux.org>
35847
35848         * po/sv.po: Update Swedish translation from translation project.
35849
35850         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
35851         in sed expression.
35852
35853 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
35854
35855         [BZ #16917]
35856         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
35857         errno if the TIOCGPTN ioctl fails with an error different than
35858         EINVAL.
35859         * login/tst-ptsname.c: New file.
35860         * login/Makefile (tests): Add tst-ptsname.
35861
35862         [BZ #16943]
35863         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
35864         and prlimit64.
35865
35866 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
35867
35868         [BZ #16849]
35869         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
35870         herrno to return EAI_AGAIN.
35871
35872 2014-05-14  Roland McGrath  <roland@hack.frob.com>
35873
35874         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
35875         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
35876         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
35877         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
35878         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
35879         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
35880         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
35881         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
35882         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
35883         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
35884         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
35885         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
35886         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
35887         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
35888         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
35889         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
35890         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
35891         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
35892         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
35893         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
35894         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
35895         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
35896         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
35897         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
35898         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
35899         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
35900         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
35901         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
35902         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
35903         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
35904         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
35905         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
35906         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
35907         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
35908         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
35909         Moved ...
35910         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
35911         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
35912         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
35913         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
35914         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
35915         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
35916         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
35917         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
35918         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
35919         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
35920         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
35921         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
35922         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
35923         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
35924         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
35925         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
35926         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
35927         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
35928         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
35929         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
35930         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
35931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
35932         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
35933         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
35934         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
35935         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
35936         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
35937         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
35938         Moved ...
35939         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
35940         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
35941         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
35942         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
35943         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
35944         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
35945         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
35946         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
35947         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
35948         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
35949         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
35950         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
35951         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
35952         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
35953         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
35954         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
35955         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
35956         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
35957         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
35958         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
35959         Moved ...
35960         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
35961         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
35962         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
35963
35964         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
35965         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
35966         (libpthread-sysdep_routines): Add elision-related stuff here instead.
35967         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
35968         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
35969         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
35970         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
35971         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
35972         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
35973         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
35974         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
35975         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
35976         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
35977         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
35978         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
35979         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
35980         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
35981         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
35982         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
35983         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
35984         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
35985         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
35986         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
35987         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
35988         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
35989         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
35990         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
35991         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
35992         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
35993         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
35994         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
35995
35996         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
35997         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
35998
35999         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
36000         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
36001         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
36002         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
36003         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
36004         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
36005         Moved ...
36006         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
36007         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
36008         Moved ...
36009         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
36010         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
36011         Moved ...
36012         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
36013         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
36014         Moved ...
36015         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
36016         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
36017         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
36018         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
36019         Moved ...
36020         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
36021         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
36022         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
36023         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
36024         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
36025         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
36026         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
36027         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
36028         Moved ...
36029         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
36030         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
36031         Moved ...
36032         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
36033         ... here.
36034         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
36035         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
36036         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
36037         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
36038         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
36039         Moved ...
36040         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
36041         ... here.
36042         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
36043         Moved ...
36044         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
36045         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
36046         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
36047         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
36048         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
36049         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
36050         Moved ...
36051         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
36052         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
36053         Moved ...
36054         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
36055         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
36056         Moved ...
36057         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
36058         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
36059         Moved ...
36060         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
36061         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
36062         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
36063         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
36064         Moved ...
36065         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
36066         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
36067         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
36068         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
36069         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
36070         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
36071         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
36072         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
36073         Moved ...
36074         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
36075         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
36076         Moved ...
36077         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
36078         ... here.
36079         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
36080         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
36081         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
36082         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
36083         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
36084         Moved ...
36085         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
36086         ... here.
36087         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
36088         Moved ...
36089         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
36090         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
36091         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
36092         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
36093         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
36094         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
36095         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
36096         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
36097         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
36098         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
36099         Moved ...
36100         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
36101         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
36102         Moved ...
36103         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
36104         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
36105         Moved ...
36106         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
36107         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
36108         Moved ...
36109         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
36110         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
36111         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
36112         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
36113         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
36114         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
36115         Moved ...
36116         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
36117         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
36118         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
36119         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
36120         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
36121         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
36122         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
36123         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
36124         Moved ...
36125         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
36126         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
36127         Moved ...
36128         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
36129         ... here.
36130         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
36131         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
36132         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
36133         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
36134         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
36135         Moved ...
36136         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
36137         ... here.
36138         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
36139         Moved ...
36140         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
36141         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
36142         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
36143         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
36144         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
36145         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
36146         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
36147         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
36148         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
36149         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
36150         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
36151
36152         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
36153         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
36154
36155         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
36156         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
36157
36158         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
36159         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
36160         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
36161         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
36162         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
36163         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
36164         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
36165         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
36166         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
36167         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
36168         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
36169         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
36170         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
36171         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
36172         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
36173         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
36174         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
36175         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
36176         Moved ...
36177         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
36178         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
36179         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
36180         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
36181         Moved ...
36182         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
36183         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
36184         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
36185         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
36186         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
36187         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
36188         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
36189         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
36190         Moved ...
36191         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
36192         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
36193         Moved ...
36194         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
36195         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
36196         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
36197         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
36198         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
36199         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
36200         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
36201         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
36202         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
36203         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
36204         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
36205         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
36206         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
36207         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
36208         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
36209         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
36210         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
36211
36212         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
36213         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
36214         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
36215         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
36216         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
36217
36218         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
36219         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
36220         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
36221         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
36222         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
36223         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
36224         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
36225         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
36226         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
36227         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
36228
36229         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
36230         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
36231
36232         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
36233         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
36234         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
36235         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
36236         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
36237         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
36238         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
36239         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
36240         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
36241         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
36242         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
36243         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
36244         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
36245         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
36246         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
36247         Update #include.
36248         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
36249         Likewise.
36250         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
36251         Likewise.
36252         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
36253         Likewise.
36254         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
36255         Likewise.
36256         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
36257         Likewise.
36258         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
36259         Likewise.
36260         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
36261         Likewise.
36262         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
36263         Likewise.
36264         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
36265         Likewise.
36266         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
36267         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
36268         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
36269         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
36270         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
36271         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
36272         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
36273         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
36274         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
36275         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
36276         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
36277         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
36278         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
36279         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
36280         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
36281
36282         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
36283         that was previously under [RESET_PID].
36284         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
36285         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
36286         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
36287
36288         * sysdeps/i386/nptl/Implies: New file.
36289         * sysdeps/x86_64/nptl/Implies: New file.
36290         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
36291         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
36292         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
36293         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
36294
36295         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
36296         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
36297         (__libc_vfork): New strong alias.
36298         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
36299         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
36300
36301         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
36302         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
36303         (__libc_vfork): New strong alias.
36304         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
36305         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
36306
36307         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
36308         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
36309         (__libc_vfork): New strong alias.
36310         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
36311         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
36312         * nptl/pt-vfork.c: New file.
36313         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
36314         (libpthread: GLIBC_2.20): New version set (empty).
36315
36316 2014-05-14  Will Newton  <will.newton@linaro.org>
36317
36318         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
36319         rather than #if.
36320
36321 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
36322
36323         [BZ #16564]
36324         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
36325         arguments with exponent 65 or above.
36326         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
36327         arguments 0x1p113L or above.
36328         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
36329         to arguments 0x1p107L or above.
36330         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
36331         positive arguments with exponent 65 or above.
36332         * math/auto-libm-test-in: Add more tests of log1p.
36333         * math/auto-libm-test-out: Regenerated.
36334
36335         [BZ #16928]
36336         * math/s_cacos.c (__cacos): Ensure zero real part of result from
36337         non-finite arguments is +0.
36338         * math/s_cacosf.c (__cacosf): Likewise.
36339         * math/s_cacosl.c (__cacosl): Likewise.
36340         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
36341         * sysdeps/i386/fpu/libm-test-ulps: Update.
36342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36343
36344         [BZ #16927]
36345         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
36346         value.
36347         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
36348         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
36349         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
36350         for explicit high bit of mantissa when testing for argument equal
36351         to 1.
36352         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
36353         * sysdeps/i386/fpu/libm-test-ulps: Update.
36354         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36355
36356         [BZ #16516]
36357         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
36358         (__erf): Scale by 16 instead of 8 in potentially underflowing
36359         case.  Ensure exception if result actually underflows.
36360         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
36361         (__erff): Scale by 16 instead of 8 in potentially underflowing
36362         case.  Ensure exception if result actually underflows.
36363         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
36364         (efx8): Remove variable.
36365         (__erfl): Scale by 16 instead of 8 in potentially underflowing
36366         case.  Ensure exception if result actually underflows.
36367         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
36368         (efx8): Remove variable.
36369         (__erfl): Scale by 16 instead of 8 in potentially underflowing
36370         case.  Ensure exception if result actually underflows.
36371         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
36372         (efx8): Remove variable.
36373         (__erfl): Scale by 16 instead of 8 in potentially underflowing
36374         case.  Ensure exception if result actually underflows.
36375         * math/auto-libm-test-in: Add more tests of erf.
36376         * math/auto-libm-test-out: Regenerated.
36377
36378 2014-05-14  Andreas Schwab  <schwab@suse.de>
36379
36380         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
36381         Remove code conditionalized on USE___THREAD.
36382
36383         * config.h.in (HAVE_PT_CHOWN): Define as 0.
36384         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
36385         not definedness.
36386
36387 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
36388
36389         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
36390         Define unconditionally.
36391         (__ASSUME_O_CLOEXEC): Likewise.
36392         (__ASSUME_SOCK_CLOEXEC): Likewise.
36393         (__ASSUME_IN_NONBLOCK): Likewise.
36394         (__ASSUME_PIPE2): Likewise.
36395         (__ASSUME_EVENTFD2): Likewise.
36396         (__ASSUME_SIGNALFD4): Likewise.
36397         (__ASSUME_DUP3): Likewise.
36398         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36399         (__ASSUME_DUP3): Do not define.
36400         (__ASSUME_EVENTFD2): Likewise.
36401         (__ASSUME_IN_NONBLOCK): Likewise.
36402         (__ASSUME_O_CLOEXEC): Likewise.
36403         (__ASSUME_PIPE2): Likewise.
36404         (__ASSUME_SIGNALFD4): Likewise.
36405         (__ASSUME_SOCK_CLOEXEC): Likewise.
36406         (__ASSUME_UTIMES): Undefine.
36407         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36408         (__ASSUME_UTIMES): Do not define.
36409         (__ASSUME_O_CLOEXEC): Likewise.
36410         (__ASSUME_SOCK_CLOEXEC): Likewise.
36411         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
36412         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
36413         0x020621].
36414         (__ASSUME_PIPE2): Likewise.
36415         (__ASSUME_EVENTFD2): Likewise.
36416         (__ASSUME_SIGNALFD4): Likewise.
36417         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
36418         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
36419         Do not define.
36420         (__ASSUME_EVENTFD2): Likewise.
36421         (__ASSUME_SIGNALFD4): Likewise.
36422         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
36423         (__ASSUME_32BITUIDS): Likewise.
36424         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
36425         (__ASSUME_IPC64): Likewise.
36426         (__ASSUME_ST_INO_64_BIT): Likewise.
36427         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
36428         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
36429         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36430         (__ASSUME_UTIMES): Do not define.
36431         (__ASSUME_PSELECT): Likewise.
36432         (__ASSUME_PPOLL): Likewise.
36433         (__ASSUME_O_CLOEXEC): Likewise.
36434         (__ASSUME_SOCK_CLOEXEC): Likewise.
36435         (__ASSUME_IN_NONBLOCK): Likewise.
36436         (__ASSUME_PIPE2): Likewise.
36437         (__ASSUME_EVENTFD2): Likewise.
36438         (__ASSUME_SIGNALFD4): Likewise.
36439         (__ASSUME_DUP3): Likewise.
36440         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
36441         (__ASSUME_UTIMES): Likewise.
36442         (__ASSUME_O_CLOEXEC): Likewise.
36443         (__ASSUME_SOCK_CLOEXEC): Likewise.
36444         (__ASSUME_IN_NONBLOCK): Likewise.
36445         (__ASSUME_PIPE2): Likewise.
36446         (__ASSUME_EVENTFD2): Likewise.
36447         (__ASSUME_SIGNALFD4): Likewise.
36448         (__ASSUME_DUP3): Likewise.
36449         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36450         (__ASSUME_UTIMES): Likewise.
36451         (__ASSUME_O_CLOEXEC): Likewise.
36452         (__ASSUME_SOCK_CLOEXEC): Likewise.
36453         (__ASSUME_IN_NONBLOCK): Likewise.
36454         (__ASSUME_PIPE2): Likewise.
36455         (__ASSUME_EVENTFD2): Likewise.
36456         (__ASSUME_SIGNALFD4): Likewise.
36457         (__ASSUME_DUP3): Likewise.
36458         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
36459         Likewise.
36460         (__ASSUME_UTIMES): Likewise.
36461         (__ASSUME_EVENTFD2): Likewise.
36462         (__ASSUME_SIGNALFD4): Likewise.
36463         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36464         (__ASSUME_O_CLOEXEC): Likewise.
36465         (__ASSUME_SOCK_CLOEXEC): Likewise.
36466         (__ASSUME_IN_NONBLOCK): Likewise.
36467         (__ASSUME_PIPE2): Likewise.
36468         (__ASSUME_EVENTFD2): Likewise.
36469         (__ASSUME_SIGNALFD4): Likewise.
36470         (__ASSUME_DUP3): Likewise.
36471         (__ASSUME_UTIMES): Undefine.
36472
36473         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
36474         feclearexcept.  Remove symbol versioning code.
36475         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
36476         symbol versioning code.
36477         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
36478         symbol versioning code.
36479         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
36480         feupdateenv.  Remove symbol versioning code.
36481         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
36482         fegetexceptflag.  Remove symbol versioning code.
36483         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
36484         fesetexceptflag.  Remove symbol versioning code.
36485         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
36486         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
36487         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
36488         (__posix_fadvise64_l32): Remove prototype.
36489         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
36490         code.
36491
36492 2014-05-13  Roland McGrath  <roland@hack.frob.com>
36493
36494         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
36495         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
36496         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
36497         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
36498
36499 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
36500
36501         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
36502         current working directory
36503
36504 2014-05-13  Roland McGrath  <roland@hack.frob.com>
36505
36506         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
36507         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
36508         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
36509         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
36510         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
36511         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
36512         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
36513         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
36514         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
36515         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
36516         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
36517         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
36518         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
36519         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
36520         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
36521         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
36522         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
36523         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
36524         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
36525         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
36526         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
36527         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
36528         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
36529         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
36530         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
36531         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
36532         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
36533         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
36534         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
36535         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
36536         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
36537         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
36538         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
36539         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
36540         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
36541         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
36542         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
36543         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
36544         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
36545         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
36546         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
36547         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
36548
36549         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
36550         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
36551
36552         * sysdeps/unix/sysv/linux/arm/Makefile
36553         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
36554         Add rt-aeabi_unwind_cpp_pr1.
36555         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
36556         Add nptl-aeabi_unwind_cpp_pr1.
36557         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
36558         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
36559         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
36560         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
36561         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
36562         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
36563
36564         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
36565         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
36566         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
36567         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
36568
36569         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
36570         Deconditionalize the code that was previously under [RESET_PID].
36571         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
36572
36573         * sysdeps/generic/exit-thread.h: New file.
36574         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
36575         * include/unistd.h (__exit_thread): Remove declaration.
36576         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
36577         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
36578         * csu/libc-start.c: Include <exit-thread.h>.
36579         (LIBC_START_MAIN): Pass no argument to __exit_thread.
36580         * nptl/pthread_create.c: Include <exit-thread.h>.
36581         (start_thread): Call __exit_thread in place of __exit_thread_inline.
36582         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
36583         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
36584         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
36585         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
36586         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
36587         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
36588         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
36589         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
36590         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
36591         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
36592         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
36593         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
36594         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
36595         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
36596         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
36597         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
36598
36599 2014-05-13  Andreas Schwab  <schwab@suse.de>
36600
36601         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
36602
36603 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
36604
36605         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
36606         (__ASSUME_UTIMES): Do not condition on kernel version.
36607         (__ASSUME_PSELECT): Define unconditionally.
36608         (__ASSUME_PPOLL): Likewise.
36609         (__ASSUME_ATFCTS): Likewise.
36610         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
36611         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
36612         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
36613         (__ASSUME_UTIMENSAT): Define unconditionally.
36614         (__ASSUME_PRIVATE_FUTEX): Likewise.
36615         (__ASSUME_FALLOCATE): Likewise.
36616         (__ASSUME_O_CLOEXEC): Likewise.
36617         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
36618         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
36619         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
36620         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
36621         (__ASSUME_IN_NONBLOCK): Likewise.
36622         (__ASSUME_PIPE2): Likewise.
36623         (__ASSUME_EVENTFD2): Likewise.
36624         (__ASSUME_SIGNALFD4): Likewise.
36625         (__ASSUME_DUP3): Likewise.
36626         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36627         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
36628         (__ASSUME_AT_RANDOM): Likewise.
36629         (__ASSUME_PREADV): Likewise.
36630         (__ASSUME_PWRITEV): Likewise.
36631         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
36632         (__ASSUME_F_GETOWN_EX): Define unconditionally.
36633         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
36634         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
36635         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
36636         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36637         (__ASSUME_O_CLOEXEC): Define unconditionally.
36638         (__ASSUME_PSELECT): Do not undefine conditionally.
36639         (__ASSUME_PPOLL): Likewise.
36640         (__ASSUME_ATFCTS): Likewise.
36641         (__ASSUME_SET_ROBUST_LIST): Likewise.
36642         (__ASSUME_UTIMENSAT): Likewise.
36643         (__ASSUME_FDATASYNC): Define unconditionally.
36644         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36645         (__ASSUME_SIGFRAME_V2): Likewise.
36646         )__ASSUME_EVENTFD2): Likewise.
36647         (__ASSUME_SIGNALFD4): Likewise.
36648         (__ASSUME_PSELECT): Do not undefine conditionally.
36649         (__ASSUME_PPOLL): Likewise.
36650         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36651         (__ASSUME_PSELECT): Define unconditionally.
36652         (__ASSUME_PPOLL): Likewise.
36653         (__ASSUME_O_CLOEXEC): Likewise.
36654         (__ASSUME_SOCK_CLOEXEC): Likewise.
36655         (__ASSUME_IN_NONBLOCK): Likewise.
36656         (__ASSUME_PIPE2): Likewise.
36657         (__ASSUME_EVENTFD2): Likewise.
36658         (__ASSUME_SIGNALFD4): Likewise.
36659         (__ASSUME_DUP3): Likewise.
36660         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
36661         (__ASSUME_O_CLOEXEC): Likewise.
36662         (__ASSUME_SOCK_CLOEXEC): Likewise.
36663         (__ASSUME_IN_NONBLOCK): Likewise.
36664         (__ASSUME_PIPE2): Likewise.
36665         (__ASSUME_EVENTFD2): Likewise.
36666         (__ASSUME_SIGNALFD4): Likewise.
36667         (__ASSUME_DUP3): Likewise.
36668         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36669         (__ASSUME_EVENTFD2): Likewise.
36670         (__ASSUME_SIGNALFD4): Likewise.
36671         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36672
36673 2014-05-12  Andreas Schwab  <schwab@suse.de>
36674
36675         [BZ #16932]
36676         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
36677         (_nss_nis_gethostbyname4_r): Return error if item length is larger
36678         than maximum RPC packet size.
36679         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
36680         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
36681         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
36682         (_nss_nis_getservbyport_r): Likewise.
36683
36684 2014-05-12  Will Newton  <will.newton@linaro.org>
36685
36686         * malloc/Makefile (tests): Add tst-mallopt.
36687         * malloc/tst-mallopt.c: New file.
36688
36689 2014-05-09  Roland McGrath  <roland@hack.frob.com>
36690
36691         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
36692         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
36693
36694 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36695
36696         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
36697         (tst-tlsmod6.so): Likewise.
36698
36699 2014-05-09  Roland McGrath  <roland@hack.frob.com>
36700
36701         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
36702
36703 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
36704
36705         [BZ #16064]
36706         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
36707         and <dl-procinfo.h>.
36708         (__fegetenv): Save SSE state in envp->__eip if supported.
36709         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
36710         envp->__eip if supported.
36711         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
36712         and <dl-procinfo.h>.
36713         (__fesetenv): Always set __eip, __cs_selector, __opcode,
36714         __data_offset and __data_selector in environment to 0.  Set SSE
36715         state if supported.
36716         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
36717         test-fenv-sse.
36718         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
36719         -mfpmath=sse.
36720         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
36721
36722 2014-05-09  Will Newton  <will.newton@linaro.org>
36723
36724         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
36725         and libc_relro_required for ARM.
36726         * sysdeps/arm/preconfigure: Regenerate.
36727
36728 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36729             Stefan Liebler  <stli@linux.vnet.ibm.com>
36730
36731         * config.make.in (enable-lock-elision): New Makefile variable.
36732         * configure.ac: Likewise.
36733         * configure: Regenerate.
36734         * sysdeps/s390/configure.ac:
36735         Add check for gcc transactions support.
36736         * sysdeps/s390/configure: Regenerate.
36737         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
36738         Build elision files if enabled.
36739         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
36740         Add lock elision support for s390.
36741         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
36742         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
36743         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
36744         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
36745         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
36746         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
36747         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
36748         Likewise.
36749         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
36750         Likewise.
36751         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
36752         Likewise.
36753         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
36754         Likewise.
36755         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
36756         (__lll_timedlock_elision, __lll_lock_elision)
36757         (__lll_unlock_elision, __lll_trylock_elision)
36758         (lll_timedlock_elision, lll_lock_elision)
36759         (lll_unlock_elision, lll_trylock_elision): Add.
36760         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
36761         (pthread_mutex_t): Add lock elision support for s390.
36762
36763 2014-05-14  Wilco  <wdijkstr@arm.com>
36764
36765         * sysdeps/arm/fclrexcpt.c: Cleanup.
36766         * sysdeps/arm/fedisblxcpt.c: Cleanup.
36767         * sysdeps/arm/feenablxcpt.c: Cleanup.
36768         * sysdeps/arm/fegetenv.c: Cleanup.
36769         * sysdeps/arm/fegetexcept.c: Cleanup.
36770         * sysdeps/arm/fegetround.c: Cleanup.
36771         * sysdeps/arm/feholdexcpt.c: Cleanup.
36772         * sysdeps/arm/fesetenv.c: Cleanup.
36773         * sysdeps/arm/fesetround.c: Cleanup.
36774         * sysdeps/arm/feupdateenv.c: Cleanup.
36775         * sysdeps/arm/fgetexcptflg.c: Cleanup.
36776         * sysdeps/arm/fraiseexcpt.c: Cleanup.
36777         * sysdeps/arm/fsetexcptflg.c: Cleanup.
36778         * sysdeps/arm/ftestexcept.c: Cleanup.
36779         * sysdeps/arm/get-rounding-mode.h: Cleanup.
36780         * sysdeps/arm/setfpucw.c: Cleanup.
36781
36782 2014-05-09  Will Newton  <will.newton@linaro.org>
36783
36784         * sysdeps/arm/armv7/strcmp.S: New file.
36785         * NEWS: Mention addition of ARMv7 optimized strcmp.
36786
36787 2014-05-08  Roland McGrath  <roland@hack.frob.com>
36788
36789         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
36790         look for %.ac rather than %.in.
36791
36792         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
36793         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
36794         * sysdeps/mach/hurd/configure: Regenerated.
36795         * sysdeps/unix/sysv/linux/configure: Regenerated.
36796
36797         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
36798
36799 2014-05-07  Steve Ellcey  <sellcey@mips.com>
36800
36801         [BZ# 16922]
36802         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
36803         (LONG_SUB): Ditto.
36804         (PTR_SUB): Ditto.
36805
36806 2014-05-07  Andreas Schwab  <schwab@suse.de>
36807
36808         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
36809         when skipping over non-matching result from nscd.
36810
36811 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
36812
36813         [BZ #16876]
36814         * nptl/sockperf.c (client): Check socket return value.
36815
36816         [BZ #16877]
36817         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
36818         nscd security class.
36819
36820 2014-05-06  Roland McGrath  <roland@hack.frob.com>
36821
36822         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
36823         * sysdeps/arm/unwind.h: ... here.
36824
36825 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
36826
36827         [BZ# 16916]
36828         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
36829         Define.
36830
36831 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
36832
36833         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
36834         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
36835         multiarch strncpy for PPC64.
36836         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
36837         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
36838         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
36839         multiarch optimizations.
36840         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36841         (__libc_ifunc_impl_list): Likewise.
36842         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
36843         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
36844         multiarch stpncpy for PPC64.
36845         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
36846         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
36847
36848 2014-05-06  Andreas Schwab  <schwab@suse.de>
36849
36850         [BZ #16912]
36851         * gmon/mcount.c (_MCOUNT_DECL): Use
36852         atomic_compare_and_exchange_bool_acq instead of
36853         catomic_compare_and_exchange_bool_acq.
36854
36855 2014-05-05  Roland McGrath  <roland@hack.frob.com>
36856
36857         * elf/Makefile (others, install-bin): Remove pldd.
36858         (pldd-modules): Variable removed.
36859         ($(objpfx)pldd): Target removed.
36860         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
36861         (others, install-bin): Append pldd here.
36862         ($(objpfx)pldd): New target.
36863
36864         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
36865         to 0, so the first #if test emitted later doesn't see it undefined.
36866         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
36867         * sysdeps/gnu/errlist.c: Regenerated.
36868
36869 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36870
36871         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
36872         [libc_hidden_builtin_def]: Define to empty value.
36873         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
36874         [libc_hidden_builtin_def]: Likewise.
36875         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
36876         [libc_hidden_builtin_def]: Likewise.
36877         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
36878         [libc_hidden_builtin_def]: Likewise.
36879         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
36880         __redirect_memcpy and define ifunc as default hidden symbol.
36881         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
36882         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
36883
36884 2014-05-04  Adam Conrad  <adconrad@0c3.net>
36885
36886         * locale/iso-4217.def: Reintroduce XDR currency.
36887
36888 2014-05-04  Allan McRae  <allan@archlinux.org>
36889
36890         * po/eo.po: Update Esperanto translation from translation project.
36891
36892 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
36893
36894         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
36895         and FEATURE_INDEX_MAX to 1.
36896         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
36897
36898 2014-05-01  Steve Ellcey  <sellcey@mips.com>
36899
36900         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
36901         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
36902         * iconvdata/big5.c (ONE_DIRECTION): Define.
36903         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
36904         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
36905         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
36906         * iconvdata/cp932.c (ONE_DIRECTION): Define.
36907         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
36908         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
36909         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
36910         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
36911         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
36912         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
36913         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
36914         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
36915         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
36916         * iconvdata/gbk.c (ONE_DIRECTION): Define.
36917         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
36918         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
36919         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
36920         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
36921         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
36922         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
36923         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
36924         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
36925         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
36926         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
36927         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
36928         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
36929         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
36930         * iconvdata/iso646.c (ONE_DIRECTION): Define.
36931         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
36932         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
36933         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
36934         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
36935         * iconvdata/johab.c (ONE_DIRECTION): Define.
36936         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
36937         * iconvdata/sjis.c (ONE_DIRECTION): Define.
36938         * iconvdata/t.61.c (ONE_DIRECTION): Define.
36939         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
36940         * iconvdata/tscii.c (ONE_DIRECTION): Define.
36941         * iconvdata/uhc.c (ONE_DIRECTION): Define.
36942         * iconvdata/unicode.c (ONE_DIRECTION): Define.
36943         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
36944         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
36945         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
36946
36947 2014-05-01  Roland McGrath  <roland@hack.frob.com>
36948
36949         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
36950         (_IO_JUMPS_OFFSET): Define to 0.
36951
36952         * nptl/sysdeps/pthread/bits/libc-lock.h
36953         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
36954         (__libc_lock_define_initialized_recursive): Always define using
36955         initializer.  Modern compilers treat uninitialized (implicit zero) and
36956         explicit zero initializers the same (i.e. put the datum in bss).
36957
36958 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
36959
36960         * nscd/nscd-client.h: Include <string.h>.
36961
36962 2014-05-01  David S. Miller  <davem@davemloft.net>
36963
36964         [BZ #16885]
36965         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
36966         multiple zero bytes exist at the end of a string.
36967         Reported by Aurelien Jarno <aurelien@aurel32.net>
36968
36969         * string/test-strcmp.c (check): Add explicit test for situations where
36970         there are multiple zero bytes after the first.
36971
36972 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
36973
36974         [BZ #16890]
36975         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
36976         when compiling wprintf.
36977         * stdio-common/tstdiomisc.c (t3): New function.
36978         (main): Call it.
36979
36980 2014-05-01  Steve Ellcey  <sellcey@mips.com>
36981
36982         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
36983         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
36984         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
36985         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
36986
36987 2014-05-01  Steve Ellcey  <sellcey@mips.com>
36988
36989         * stdlib/longlong.h: Updated from GCC.
36990
36991 2014-05-01  Will Newton  <will.newton@linaro.org>
36992             Bernard Ogden  <bernie.ogden@linaro.org>
36993
36994         * NEWS: Update fixed bug list.
36995
36996         [BZ #15119]
36997         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
36998
36999 2014-04-30  David S. Miller  <davem@davemloft.net>
37000
37001         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
37002         (libc_feholdexcept_setround_sparc_ctx): New function.
37003         (libc_fesetenv_sparc_ctx): Likewise.
37004         (libc_feupdateenv_sparc_ctx): Likewise.
37005         (libc_feholdsetround_sparc_ctx): Likewise.
37006         (libc_feholdexcept_setround_ctx): Define.
37007         (libc_feholdexcept_setroundf_ctx): Likewise.
37008         (libc_feholdexcept_setroundl_ctx): Likewise.
37009         (libc_fesetenv_ctx): Likewise.
37010         (libc_fesetenvf_ctx): Likewise.
37011         (libc_fesetenvl_ctx): Likewise.
37012         (libc_feupdateenv_ctx): Likewise.
37013         (libc_feupdateenvf_ctx): Likewise.
37014         (libc_feupdateenvl_ctx): Likewise.
37015         (libc_feresetround_ctx): Likewise.
37016         (libc_feresetroundf_ctx): Likewise.
37017         (libc_feresetroundl_ctx): Likewise.
37018         (libc_feholdsetround_ctx): Likewise.
37019         (libc_feholdsetroundf_ctx): Likewise.
37020         (libc_feholdsetroundl_ctx): Likewise.
37021
37022         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
37023         with __USE_GNU instead of XOPEN cpp guards.
37024
37025         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
37026         0.
37027
37028         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
37029         with XOPEN cpp guards.
37030
37031 2014-04-30  Julian Brown  <julian@codesourcery.com>
37032
37033         [BZ #16888]
37034         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
37035         handling.
37036
37037 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
37038
37039         [BZ #9894]
37040         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
37041         Change to 2.6.32.
37042         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
37043         * sysdeps/unix/sysv/linux/configure: Regenerated.
37044         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
37045         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
37046         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
37047         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
37048         * README: Update reference to required Linux kernel version.
37049         * manual/install.texi (Linux): Update reference to required Linux
37050         kernel headers version.
37051         * INSTALL: Regenerated.
37052
37053         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
37054         header inclusion.
37055         [POSIX] (limits.h): Likewise.
37056         [POSIX] (math.h): Likewise.
37057         [POSIX] (sys/wait.h): Likewise.
37058         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
37059         function.
37060         [POSIX] (stddef.h): Do not allow header inclusion.
37061
37062 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37063
37064         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
37065
37066 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
37067
37068         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
37069         Return immediately after lll_futex_wake.
37070
37071 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
37072
37073         [BZ #16791]
37074         * nscd/nscd-client.h (datahead_init_common): Initialize entire
37075         structure.
37076         (datahead_init_pos): Call datahead_init_common early.
37077         (datahead_init_neg): Likewise.
37078
37079         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
37080         datahead_init_neg): New functions.
37081         * nscd/aicache.c (addhstaiX): Use them.
37082         * nscd/grpcache.c (cache_addgr): Likewise.
37083         * nscd/hstcache.c (cache_addhst): Likewise.
37084         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37085         * nscd/netgroupcache.c (do_notfound): Likewise.
37086         (addgetnetgrentX): Likewise.
37087         (addinnetgrX): Likewise.
37088         * nscd/pwdcache.c (cache_addpw): Likewise.
37089         * nscd/servicescache.c (cache_addserv): Likewise.
37090
37091 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
37092             Atsushi Onoe  <atsushi@onoe.org>
37093
37094         [BZ #14308]
37095         [BZ #12994]
37096         [BZ #13651]
37097         * resolv/res_query.c (__libc_res_nsearch): Return if at least
37098         one response is valid.
37099         * resolv/res_send.c (send_dg): Check for validity of other
37100         response if the current response is a referral.
37101
37102 2014-04-29  Steve Ellcey  <sellcey@mips.com>
37103
37104         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
37105
37106 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
37107
37108         [BZ #16823]
37109         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
37110         Always divide by positive zero when computing -Inf result.
37111         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
37112         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
37113
37114 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37115
37116         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
37117         FPSCR if value do not change.
37118         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
37119         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
37120         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
37121         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
37122         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
37123         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
37124         function.
37125
37126 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
37127
37128         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
37129         * sysdeps/unix/sysv/linux/hppa: Move directory from
37130         ports/systeps/unix/sysv/linux/hppa.
37131         * README: Update listing for hppa-*-linux-gnu.
37132
37133 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
37134
37135         [BZ #16754]
37136         * manual/stdio.texi (Hook functions): Fix types of stream hook
37137         functions.
37138         [BZ #16854]
37139         * socket/sys/socket.h: Fix typo in comment.
37140
37141 2014-04-28  Wilco  <wdijkstr@arm.com>
37142
37143         * sysdeps/arm/fenv_private.h: New file.
37144         * sysdeps/arm/math_private.h: New file.
37145         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
37146
37147 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
37148
37149         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
37150         with __int128_t.
37151         (La_x86_64_retval): Likewise.
37152
37153 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
37154
37155         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
37156         fpsr if value didn't change.
37157         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
37158         to fpcr if value didn't change.
37159         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
37160         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
37161         fpsr or fpcr if value didn't change.
37162         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
37163         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
37164         fpcr if value didn't change.
37165         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
37166         to fpsr if value didn't change.
37167
37168 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
37169
37170         * nptl/tst-sem3.c: Use test-skeleton.c
37171         (main): Rename to do_test.  Use return instead of
37172         exit.
37173         * nptl/tst-sem4.c: Use test-skeleton.c
37174         (main): Rename to do_test.
37175
37176 2014-04-22  David S. Miller  <davem@davemloft.net>
37177
37178         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37179         (struct sigaction): New struct member __glibc_reserved0, change
37180         type of sa_flags to int.
37181
37182 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
37183
37184         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
37185         (COUNT_LEADING_ZEROS_0): Define for AArch64.
37186
37187 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
37188
37189         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
37190         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
37191
37192 2014-04-22  Will Newton  <will.newton@linaro.org>
37193             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
37194
37195         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
37196         (__longjmp): Add longjmp and longjmp_target SystemTap
37197         probes.
37198         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
37199         (__sigsetjmp): Add setjmp SystemTap probe.
37200
37201 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
37202
37203         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
37204         match manual order.
37205
37206 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37207
37208         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
37209
37210         * sysdeps/powerpc/fpu/fenv_private.h
37211         (libc_feholdexcept_setroundl_ctx): Define to
37212         libc_feholdexcept_setround_ppc_ctx.
37213         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
37214         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
37215         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
37216         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
37217
37218 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
37219
37220         * sysdeps/aarch64/math-tests.h: New file.
37221
37222 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
37223
37224         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
37225         New.
37226         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37227         Check and set bit_AVX2_Usable.
37228         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
37229         macro.
37230         (bit_AVX2): Likewise.
37231         (index_AVX2_Usable): Likewise.
37232         (CPUID_AVX2): Likewise.
37233         (HAS_AVX2): Likewise.
37234
37235 2014-04-17  Will Newton  <will.newton@linaro.org>
37236
37237         * manual/setjmp.texi (System V contexts): Add note that
37238         calling setcontext on a context created by a call to a
37239         signal handler is undefined.  Update text to note that
37240         setcontext from a signal handler is possible but not
37241         recommended.
37242
37243         [BZ #16629]
37244         * stdlib/tst-setcontext.c: Include signal.h.
37245         (main): Check that the signal stack before and
37246         after swapcontext is the same.
37247
37248         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
37249         Re-implement to restore registers in user code and avoid
37250         rt_sigreturn system call.
37251
37252 2014-04-17  Wilco  <wdijkstr@arm.com>
37253
37254         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
37255         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
37256         * math/test-fenv.c: Skip exception trap tests on targets which only
37257         support non-stop mode.
37258
37259 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
37260             Wilco Dijkstra  <wilco.dijkstra@arm.com>
37261
37262         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
37263         (libc_feholdsetround_aarch64_ctx)
37264         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
37265         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
37266         (libc_feresetround_ctx, libc_feresetroundf_ctx)
37267         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
37268         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
37269         (libc_feresetround_noexl_ctx): Define.
37270
37271 2014-04-16  Richard Henderson  <rth@redhat.com>
37272
37273         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
37274
37275         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
37276         unwind tables.
37277
37278         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
37279         const from the non-libc, non-ldso copy.
37280
37281         * sysdeps/alpha/libm-test-ulps: Regenerate.
37282
37283 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
37284             Wilco Dijkstra  <wilco.dijkstra@arm.com>
37285
37286         * sysdeps/aarch64/fpu/math_private.h: New file.
37287
37288 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37289
37290         * sysdeps/aarch64/libm-test-ulps: Regenerate.
37291
37292 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
37293
37294         [BZ #16275]
37295         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
37296         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
37297         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
37298         Intel MPX bound registers before _dl_profile_fixup.
37299         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
37300         registers after _dl_profile_fixup.  Save and restore bound
37301         registers bnd0/bnd1 when calling _dl_call_pltexit.
37302         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
37303         (LR_BND_OFFSET): Likewise.
37304         (LRV_BND0_OFFSET): Likewise.
37305         (LRV_BND1_OFFSET): Likewise.
37306
37307 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37308
37309         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
37310         to...
37311         * sysdeps/mach/hurd/i386/tls.h: ... here.
37312         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
37313         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
37314         fields.
37315
37316 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37317
37318         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
37319
37320 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
37321
37322         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37323
37324 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
37325
37326         [BZ #14770]
37327         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
37328         * sysdeps/s390/configure: Regenerate.
37329
37330         [BZ #16824]
37331         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
37332         Set round-to-nearest internally to reduce error accumulation.
37333
37334 2014-04-16  Alan Modra  <amodra@gmail.com>
37335
37336         [BZ #16740]
37337         [BZ #16619]
37338         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
37339         * math/libm-test.inc (frexp_test_data): Add tests.
37340         * NEWS: Update fixed bug list.
37341
37342 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
37343
37344         * benchtests/Makefile: Depend on libraries in build directory.
37345         (bench-math): Separate out math tests.
37346         (bench-pthread): Separate out pthread tests.
37347         (bench): Include math and pthread tests.
37348
37349 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
37350
37351         [BZ #16831]
37352         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
37353         _dl_debug_initialize.
37354
37355         * configure.ac: Remove SELinux header check.
37356         * configure: Regenerate.
37357         * nscd/selinux.c (perms): Array of const char* to permission names.
37358         (nscd_request_avc_has_perm): Call security_deny_unknown to find
37359         default policy. Call string_to_security_class and string_to_av_perm to
37360         translate strings. Enforce default policy and call avs_has_perm with
37361         results of translated strings.
37362
37363 2014-04-13  David S. Miller  <davem@davemloft.net>
37364
37365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37366
37367 2014-04-12  Allan McRae  <allan@archlinux.org>
37368
37369         [BZ #16838]
37370         * manual/string.texi (Collation Functions): Fix qsort argument
37371         order in example.
37372         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
37373
37374 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
37375
37376         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
37377         Make the test a no-op if there are no exceptions defined.
37378
37379 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
37380
37381         * elf/Makefile (tests): make tst-dlopen-aout conditional on
37382         enable-hardcoded-path-in-tests
37383
37384 2014-04-11  Will Newton  <will.newton@linaro.org>
37385
37386         * benchtests/Makefile (extra-objs): Add json-lib.o.
37387         (bench-func): Tidy up JSON output.
37388         * benchtests/bench-skeleton.c: Include json-lib.h.
37389         (main): Use JSON library functions to do output of
37390         benchmark results.
37391         * benchtests/bench-timing-type.c (main): Output the
37392         timing type simply, leaving formatting to the user.
37393         * benchtests/json-lib.c: New file.
37394         * benchtests/json-lib.h: Likewise.
37395
37396 2014-04-11  Torvald Riegel  <triegel@redhat.com>
37397
37398         [BZ #15215]
37399         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
37400         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
37401         memory barriers.  Add comments.
37402         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
37403         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
37404         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
37405         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
37406         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
37407         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
37408
37409 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37410
37411         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
37412         * sysdeps/s390/s390-64/configure.ac: ... this ...
37413         * sysdeps/s390/configure.ac: ... to here.
37414         * sysdeps/s390/s390-32/configure: Delete file.
37415         * sysdeps/s390/s390-64/configure: Delete file.
37416         * sysdeps/s390/configure: Regenerate.
37417
37418 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
37419
37420         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
37421
37422 2014-04-11  Will Newton  <will.newton@linaro.org>
37423
37424         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
37425         to zero if it is not defined elsewhere.  (mtrim): Test
37426         the value of MALLOC_DEBUG with #if rather than #ifdef.
37427
37428 2014-04-10 Torvald Riegel  <triegel@redhat.com>
37429
37430         * benchtests/pthread_once-inputs: New file.
37431         * benchtests/pthread_once-source.c: New file.
37432         * benchtests/README: Update documentation.
37433
37434 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
37435             H.J. Lu  <hongjiu.lu@intel.com>
37436
37437         [BZ #16275]
37438         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
37439         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
37440         * sysdeps/x86_64/configure: Regenerated.
37441         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
37442         macro.
37443         (REGISTER_SAVE_RAX): Likewise.
37444         (REGISTER_SAVE_RCX): Likewise.
37445         (REGISTER_SAVE_RDX): Likewise.
37446         (REGISTER_SAVE_RSI): Likewise.
37447         (REGISTER_SAVE_RDI): Likewise.
37448         (REGISTER_SAVE_R8): Likewise.
37449         (REGISTER_SAVE_R9): Likewise.
37450         (REGISTER_SAVE_BND0): Likewise.
37451         (REGISTER_SAVE_BND1): Likewise.
37452         (REGISTER_SAVE_BND2): Likewise.
37453         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
37454         bound registers when calling _dl_fixup.
37455
37456 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37457
37458         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
37459         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
37460         of its definition.
37461         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
37462         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
37463         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
37464         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
37465         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
37466         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
37467         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
37468
37469 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
37470
37471         [BZ #15514]
37472         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
37473         pathconf(_PC_NAME_MAX).
37474
37475 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37476
37477         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
37478         Remove macro usage.
37479         (__PTHREAD_SPINS): Move definition to ...
37480         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
37481         (__PTHREAD_SPINS): ... here.
37482         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
37483         (__PTHREAD_SPIN): Likewise.
37484         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
37485         (__PTHREAD_SPIN): Likewise.
37486         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
37487         (__PTHREAD_SPIN): Likewise.
37488         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
37489         (__PTHREAD_SPIN): Likewise.
37490         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
37491         (__PTHREAD_SPIN): Likewise.
37492         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
37493         (__PTHREAD_SPIN): Likewise.
37494         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
37495         (__PTHREAD_SPIN): Likewise.
37496         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
37497         (__PTHREAD_SPIN): Likewise.
37498         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
37499         (__PTHREAD_SPIN): Likewise.
37500         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
37501         (__PTHREAD_SPIN): Likewise.
37502         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
37503         (__PTHREAD_SPIN): Likewise.
37504         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
37505         (__PTHREAD_SPIN): Likewise.
37506
37507         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
37508         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
37509         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
37510         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
37511         imply folder.
37512         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
37513         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
37514         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
37515         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
37516         correct imply path.
37517         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
37518         strlen symbol for non multi-arch builds.
37519         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
37520         missing hidden_def and weak_alias.
37521
37522 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
37523
37524         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
37525
37526 2014-04-07  Will Newton  <will.newton@linaro.org>
37527
37528         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
37529         and contents.  [!_LIBC] Remove #ifndef and contents.
37530         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
37531         * string/memccpy.c (__memccpy): Use ANSI prototype.
37532         * string/memfrob.c (memfrob): Likewise.
37533         * string/strcoll.c (STRCOLL): Likewise.
37534         * string/strlen.c (strlen): Likewise.
37535         * string/strtok.c (STRTOK): Likewise.
37536         * string/strcat.c: Remove unused #include of memcopy.h.
37537         (strcat): Use ANSI prototype.
37538         * string/strchr.c: Remove unused #include of memcopy.h.
37539         (strchr): Use ANSI prototype.
37540         * string/strcmp.c: Remove unused #include of memcopy.h.
37541         (strcmp): Use ANSI prototype.
37542         * string/strcpy.c: Remove unused #include of memcopy.h.
37543         (strcpy): Use ANSI prototype.
37544
37545 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37546
37547         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
37548         * config.make.in (config-extra-cppflags): Set it from
37549         libc_extra_cppflags.
37550         * configure.ac (libc_extra_cflags): Make it accumulate over
37551         configure fragments.
37552         (libc_extra_cppflags): New flag.
37553         * configure. Regenerate.
37554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
37555         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
37556         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
37557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
37558
37559         [BZ #16815]
37560         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
37561         result for FE_DOWNWARD rounding mode.
37562         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
37563         Likewise.
37564         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37565
37566 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
37567
37568         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
37569         in function argument name.
37570
37571 2014-04-03  David Svoboda  <svoboda@cert.org>
37572
37573         [BZ #5666]
37574         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
37575         explicitly.
37576
37577 2014-04-03  Roland McGrath  <roland@hack.frob.com>
37578
37579         * elf/dl-unmap-segments.h: New file.
37580         * sysdeps/generic/ldsodefs.h
37581         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
37582         * elf/dl-close.c: Include <dl-unmap-segments.h>.
37583         * elf/dl-fptr.c: Likewise.
37584         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
37585         * sysdeps/aarch64/tlsdesc.c: Likewise.
37586         * sysdeps/arm/tlsdesc.c: Likewise.
37587         * sysdeps/i386/tlsdesc.c: Likewise.
37588         * sysdeps/tile/dl-runtime.c: Likewise.
37589         * sysdeps/x86_64/tlsdesc.c: Likewise.
37590         * elf/dl-load.h: New file.
37591         * elf/dl-load.c: Include it.
37592         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
37593         Macros moved to dl-load.h.
37594         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
37595         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
37596         Use _dl_unmap_segments in place of __munmap.
37597         Break out segment-mapping loop into ...
37598         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
37599
37600 2014-04-03  Will Newton  <will.newton@linaro.org>
37601
37602         * elf/dl-lookup.c (do_lookup_x): Remove comment
37603         referring to nested function and move variable
37604         declarations down to before first use.
37605
37606 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
37607
37608         [BZ #16799]
37609         [BZ #16800]
37610         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
37611         with 0 numerator.
37612         * math/s_catanf.c (__catanf): Likewise.
37613         * math/s_catanh.c (__catanh): Likewise.
37614         * math/s_catanhf.c (__catanhf): Likewise.
37615         * math/s_catanhl.c (__catanhl): Likewise.
37616         * math/s_catanl.c (__catanl): Likewise.
37617         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
37618         by positive zero when computing -Inf result.
37619         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
37620         (catanh_test): Likewise.
37621         * sysdeps/i386/fpu/libm-test-ulps: Update.
37622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37623
37624         [BZ #16789]
37625         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
37626         instead of using underflowing value in computing result.
37627         * math/s_clog10.c (__clog10): Likewise.
37628         * math/s_clog10f.c (__clog10f): Likewise.
37629         * math/s_clog10l.c (__clog10l): Likewise.
37630         * math/s_clogf.c (__clogf): Likewise.
37631         * math/s_clogl.c (__clogl): Likewise.
37632         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
37633         (clog10_test): Likewise.
37634         * sysdeps/i386/fpu/libm-test-ulps: Update.
37635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37636
37637 2014-04-02  Alan Modra  <amodra@gmail.com>
37638
37639         [BZ #16739]
37640         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
37641         output when value is near a power of two.  Use int64_t for lx and
37642         remove casts.  Use decimal rather than hex exponent constants.
37643         Don't use long double multiplication when double will suffice.
37644         * math/libm-test.inc (nextafter_test_data): Add tests.
37645         * NEWS: Add 16739 and 16786 to bug list.
37646
37647         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
37648
37649         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
37650
37651 2014-04-01  Will Newton  <will.newton@linaro.org>
37652
37653         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
37654         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
37655
37656 2014-04-01  Florian Weimer  <fweimer@redhat.com>
37657
37658         [BZ #13347]
37659         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
37660         * nptl/tst-setuid2.c: New file.
37661         * nptl/Makefile (xtests): Add tst-setuid2.
37662
37663 2014-04-01  Alan Modra  <amodra@gmail.com>
37664
37665         [BZ #16786]
37666         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
37667
37668 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
37669
37670         [BZ #6803]
37671         [BZ #6804]
37672         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
37673         set errno as appropriate.
37674         * math/w_scalbf.c (__scalbf): Likewise.
37675         * math/w_scalbl.c (__scalbl): Likewise.
37676         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
37677         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
37678         * math/libm-test.inc (scalb_test_data): Add errno expectations.
37679         Add more NaN tests.
37680
37681         [BZ #16349]
37682         * math/w_atan2.c: Include <errno.h>.
37683         (__atan2): Set errno for result underflowing to zero.
37684         * math/w_atan2f.c: Include <errno.h>.
37685         (__atan2f): Set errno for result underflowing to zero.
37686         * math/w_atan2l.c: Include <errno.h>.
37687         (__atan2l): Set errno for result underflowing to zero.
37688         * math/auto-libm-test-in: Don't allow missing errno for some atan2
37689         tests.
37690         * math/auto-libm-test-out: Regenerated.
37691
37692 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37693
37694         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
37695         Encode instruction correctly in little endian.
37696         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
37697         Likewise.
37698         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
37699         Likewise.
37700         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
37701         Likewise.
37702         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
37703         Likewise.
37704
37705 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
37706
37707         [BZ #9894]
37708         * sysdeps/unix/sysv/linux/kernel-features.h
37709         [__sparc__ && !__arch64__ && !__sparc_v9__]
37710         (__ASSUME_SET_ROBUST_LIST): Do not define.
37711         [__sparc__ && !__arch64__ && !__sparc_v9__]
37712         (__ASSUME_FUTEX_LOCK_PI): Likewise.
37713         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
37714         Likewise.
37715         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37716         (__ASSUME_FUTEX_LOCK_PI): Undefine.
37717         (__ASSUME_REQUEUE_PI): Likewise.
37718         (__ASSUME_SET_ROBUST_LIST): Likewise.
37719         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37720         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
37721         Undefine.
37722         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37723         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
37724         Likewise.
37725         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
37726         Likewise.
37727         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
37728         Likewise.
37729         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37730         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
37731         Undefine.
37732         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
37733         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
37734         Likewise.
37735
37736         [BZ #16648]
37737         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37738         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
37739         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
37740
37741 2014-03-31  Will Newton  <will.newton@linaro.org>
37742
37743         * benchtests/Makefile (bench): Add ffs and ffsll to list
37744         of tests.
37745         * benchtests/ffs-inputs: New file.
37746         * benchtests/ffsll-inputs: Likewise.
37747
37748 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
37749
37750         [BZ #16770]
37751         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
37752         too large before casting to int.
37753         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
37754         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
37755         * math/libm-test.inc (scalb_test_data): Add more tests.
37756
37757 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
37758
37759         * benchtests/Makefile (DETAILED_OPT): New make option.
37760         (bench-func): Run benchmark program with -d if DETAILED_OPT is
37761         set.
37762         * benchtests/bench-skeleton.c: Include stdbool.h.
37763         (main): Store and print timings per input.
37764         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
37765         member to each argument value.
37766         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
37767         (_print_arg_data): Initialize per-input timing to 0.
37768
37769         * benchtests/Makefile (timing-type): New binary.
37770         (bench-clean): Also remove bench-timing-type.
37771         (bench): New target for timing-type.
37772         (bench-func): Print output in JSON format.
37773         * benchtests/bench-skeleton.c (main): Print output in JSON
37774         format.
37775         * benchtests/bench-timing-type.c: New file.
37776         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
37777         (TIMING_PRINT_STATS): Remove.
37778         * benchtests/scripts/bench.py (_print_arg_data): Store variant
37779         name separately.
37780
37781         * benchtests/bench-modf.c: Remove.
37782         * benchtests/modf-inputs: New inputs file.
37783
37784 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
37785
37786         [BZ #16362]
37787         * math/s_clog10.c (M_PI_LOG10E): New macro.
37788         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
37789         imaginary parts are 0.
37790         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
37791         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
37792         imaginary parts are 0.
37793         * math/s_clog10l.c (M_PI_LOG10El): New macro.
37794         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
37795         imaginary parts are 0.
37796         * math/libm-test.inc (clog10_test_data): Update expected results
37797         for when real and imaginary parts are 0.
37798
37799 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
37800
37801         * elf/dl-load.c: Finish conversion of __builtin_expect into
37802         __glibc_{un}likely.
37803
37804 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
37805
37806         [BZ #16348]
37807         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
37808         1+x for argument with exponent below -67.
37809         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
37810         Likewise.
37811         * math/auto-libm-test-in: Add more tests of exp.
37812         * math/auto-libm-test-out: Regenerated.
37813
37814 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37815
37816         [BZ #16759]
37817         * inet/getnetgrent_r.c (get_nonempty_val): New function.
37818         (nscd_getnetgrent): Use it.
37819
37820         [BZ #16760]
37821         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
37822         of stpcpy.
37823
37824 2014-03-27  Andi Kleen  <ak@linux.intel.com>
37825
37826         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
37827         (lll_robust_lock, lll_cond_lock, lll_timedlock)
37828         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
37829         (lll_robust_unlock): Remove out of line section. Use cfi
37830         intrinsics.
37831         (LLL_STUB_UNWIND_INFO*): Remove.
37832         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
37833         (lll_robust_lock, lll_cond_lock, lll_timedlock)
37834         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
37835         (lll_robust_unlock): Remove out of line section. Use cfi
37836         intrinsics.
37837         (LLL_STUB_UNWIND_INFO*): Remove.
37838
37839 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37840
37841         [BZ #16758]
37842         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
37843         blank values.
37844
37845 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
37846
37847         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
37848
37849 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
37850
37851         [BZ #16198]
37852         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
37853         fnstenv.
37854         * math/test-fenv-preserve.c: New file.
37855         * math/Makefile (tests): Add test-fenv-preserve.
37856
37857 2014-03-26  Will Newton <will.newton@linaro.org>
37858
37859         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
37860
37861 2014-03-25  Roland McGrath  <roland@hack.frob.com>
37862
37863         * scripts/versionlist.awk: Partition the version sets and emit all
37864         GLIBC_* (sorted) before all others (sorted).
37865
37866 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
37867
37868         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
37869         GLIBC_2.2.5 version.
37870
37871 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37872
37873         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
37874         calls.
37875
37876         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
37877         previous change.
37878
37879         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37880
37881 2014-03-25  Andreas Schwab  <schwab@suse.de>
37882
37883         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
37884         label to be used after in6ailist is initialized.
37885
37886 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37887
37888         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
37889         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
37890
37891 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
37892
37893         [BZ #16357]
37894         [BZ #16599]
37895         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
37896         min_plus_half.
37897         (fp_formats): Update initializers.
37898         (init_fp_formats): Initialize new field.
37899         (output_for_one_input_case): Allow underflow for results up to
37900         min_plus_half.
37901         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
37902         * math/auto-libm-test-in: Don't mark some underflows from asin and
37903         atanh as spurious.
37904         * math/auto-libm-test-out: Regenerated.
37905         * sysdeps/i386/fpu/libm-test-ulps: Update.
37906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37907
37908 2014-03-25  Andreas Schwab  <schwab@suse.de>
37909
37910         * libio/Makefile (tst-ftell-partial-wide-ENV)
37911         (tst-ftell-active-handler-ENV): Define.
37912
37913 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
37914
37915         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
37916
37917 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
37918
37919         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
37920
37921 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
37922
37923         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
37924         * sysdeps/x86_64/fpu/multiarch/e_exp.c
37925         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
37926
37927 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
37928
37929         [BZ #16634]
37930         * elf/dl-load.c (open_verify): Add mode parameter.
37931         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
37932         (open_path): Change from boolean 'secure' to complete flag 'mode'
37933         (_dl_map_object): Adjust.
37934         * elf/Makefile (tests): Add tst-dlopen-aout.
37935         * elf/tst-dlopen-aout.c: New test.
37936
37937 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
37938
37939         [BZ #16714]
37940         * sysdeps/unix/sysv/linux/s390/bits/stat.h
37941         (struct stat): Rename member pad0 to __glibc_reserved0.
37942
37943         [BZ #16712]
37944         * sysdeps/s390/s390-32/bits/wordsize.h
37945         (__WORDSIZE32_SIZE_ULONG): New define.
37946         * sysdeps/s390/s390-64/bits/wordsize.h
37947         (__WORDSIZE32_SIZE_ULONG): Likewise.
37948         * sysdeps/generic/stdint.h (SIZE_MAX):
37949         Define as UL if __WORDSIZE32_SIZE_ULONG.
37950
37951         [BZ #16713]
37952         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37953         (__glibc_reserved0): New variable.
37954         (sa_flags): Change type to int.
37955
37956         * posix/Makefile (before-compile): Use += before-compile instead
37957         of a :=.
37958
37959         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
37960         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
37961
37962 2014-03-20  Andreas Schwab  <schwab@suse.de>
37963
37964         [BZ #16743]
37965         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
37966         non-matching result from nscd.
37967
37968 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
37969
37970         * scripts/bench.py: Moved to ...
37971         * benchtests/scripts/bench.py: ... here.
37972         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
37973
37974 2014-03-24  Andreas Schwab  <schwab@suse.de>
37975
37976         [BZ #16002]
37977         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
37978         alloca_account and account alloca use for struct in6ailist.
37979
37980 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
37981
37982         [BZ #16284]
37983         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
37984         rounding mode to recompute results that overflow to infinity or
37985         underflow to zero.
37986         * math/auto-libm-test-in: Don't mark tests as expected to fail for
37987         bug 16284.
37988         * math/auto-libm-test-out: Regenerated.
37989         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
37990         (ccosh_test): Likewise.
37991         (csin_test_data): Use plus_oflow.
37992         (csin_test): Use ALL_RM_TEST.
37993         (csinh_test_data): Use plus_oflow.
37994         (csinh_test): Use ALL_RM_TEST.
37995         * sysdeps/i386/fpu/libm-test-ulps: Update.
37996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37997
37998 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
37999
38000         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
38001         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
38002         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
38003
38004         [BZ #16731]
38005         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
38006         when x - 1 is zero.
38007         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
38008         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
38009         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
38010         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
38011         argument is 1.
38012         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
38013         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
38014         zero.
38015         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
38016         * sysdeps/i386/fpu/libm-test-ulps: Update.
38017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38018
38019 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
38020
38021         * scripts/bench.pl: Remove file.
38022         * scripts/bench.py: New benchmark script.
38023         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
38024         * benchtests/README: Mention python dependency.
38025         * scripts/pylintrc: New file.
38026         * scripts/pylint: New file.
38027
38028         * bits/mathdef.h: Use #ifdef instead of #if.
38029         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
38030         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
38031         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
38032         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
38033         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
38034         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
38035
38036 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38037             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
38038
38039         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
38040         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
38041         and strpbrk-ppc64 objects.
38042         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
38043         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
38044         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
38045         multiarch strpbrk for POWER7.
38046         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
38047         multiarch strpbrk for PPC64.
38048         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
38049         ifunc selector.
38050         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
38051         strpbrk for POWER7.
38052
38053 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
38054
38055         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
38056         (atan_test): Likewise.
38057         (atanh_test_data): Use NO_TEST_INLINE for two tests.
38058         (atanh_test): Use ALL_RM_TEST.
38059         (atan2_test_data): Likewise.
38060         (cabs_test): Likewise.
38061         (cacosh_test): Likewise.
38062         (carg_test): Likewise.
38063         (casin_test): Likewise.
38064         (casinh_test): Likewise.
38065         (cbrt_test): Likewise.
38066         (csqrt_test): Likewise.
38067         (erf_test): Likewise.
38068         (erfc_test): Likewise.
38069         (pow10_test): Likewise.
38070         (exp2_test): Likewise.
38071         (hypot_test): Likewise.
38072         (j0_test): Likewise.
38073         (j1_test): Likewise.
38074         (lgamma_test): Likewise.
38075         (gamma_test): Likewise.
38076         (sincos_test): Likewise.
38077         (tanh_test): Likewise.
38078         (y0_test): Likewise.
38079         (y1_test): Likewise.
38080         * sysdeps/i386/fpu/libm-test-ulps: Update.
38081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38082
38083 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38084
38085         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
38086         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
38087         and strcspn-ppc64 objects.
38088         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
38089         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
38090         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
38091         multiarch strcspn for POWER7.
38092         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
38093         multiarch strcspn for PPC64.
38094         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
38095         ifunc selector.
38096         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
38097         strcspn for POWER7.
38098
38099 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
38100
38101         * math/gen-libm-test.pl (generate_testfile): Expect only function
38102         name as argument to AUTO_TESTS_* and pass results for all rounding
38103         modes to parse_args.
38104         (parse_auto_input): Separate inputs of automatic tests from
38105         outputs before storing in %auto_tests.
38106         * math/libm-test.inc (acos_test_data): Update call to
38107         AUTO_TESTS_f_f.
38108         (acos_test): Use ALL_RM_TEST.
38109         (acos_tonearest_test_data): Remove.
38110         (acos_test_tonearest): Likewise.
38111         (acos_towardzero_test_data): Likewise.
38112         (acos_test_towardzero): Likewise.
38113         (acos_downward_test_data): Likewise.
38114         (acos_test_downward): Likewise.
38115         (acos_upward_test_data): Likewise.
38116         (acos_test_upward): Likewise.
38117         (acosh_test_data): Update call to AUTO_TESTS_f_f.
38118         (asin_test_data): Likewise.
38119         (asin_test): Use ALL_RM_TEST.
38120         (asin_tonearest_test_data): Remove.
38121         (asin_test_tonearest): Likewise.
38122         (asin_towardzero_test_data): Likewise.
38123         (asin_test_towardzero): Likewise.
38124         (asin_downward_test_data): Likewise.
38125         (asin_test_downward): Likewise.
38126         (asin_upward_test_data): Likewise.
38127         (asin_test_upward): Likewise.
38128         (asinh_test_data): Update call to AUTO_TESTS_f_f.
38129         (atan_test_data): Likewise.
38130         (atanh_test_data): Likewise.
38131         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
38132         (cabs_test_data): Update call to AUTO_TESTS_c_f.
38133         (carg_test_data): Likewise.
38134         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
38135         (ccos_test_data): Update call to AUTO_TESTS_c_c.
38136         (ccosh_test_data): Likewise.
38137         (cexp_test_data): Likewise.
38138         (clog_test_data): Likewise.
38139         (clog10_test_data): Likewise.
38140         (cos_test_data): Update call to AUTO_TESTS_f_f.
38141         (cos_test): Use ALL_RM_TEST.
38142         (cos_tonearest_test_data): Remove.
38143         (cos_test_tonearest): Likewise.
38144         (cos_towardzero_test_data): Likewise.
38145         (cos_test_towardzero): Likewise.
38146         (cos_downward_test_data): Likewise.
38147         (cos_test_downward): Likewise.
38148         (cos_upward_test_data): Likewise.
38149         (cos_test_upward): Likewise.
38150         (cosh_test_data): Update call to AUTO_TESTS_f_f.
38151         (cosh_test): Use ALL_RM_TEST.
38152         (cosh_tonearest_test_data): Remove.
38153         (cosh_test_tonearest): Likewise.
38154         (cosh_towardzero_test_data): Likewise.
38155         (cosh_test_towardzero): Likewise.
38156         (cosh_downward_test_data): Likewise.
38157         (cosh_test_downward): Likewise.
38158         (cosh_upward_test_data): Likewise.
38159         (cosh_test_upward): Likewise.
38160         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
38161         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
38162         (ctan_test_data): Likewise.
38163         (ctan_test): Use ALL_RM_TEST.
38164         (ctan_tonearest_test_data): Remove.
38165         (ctan_test_tonearest): Likewise.
38166         (ctan_towardzero_test_data): Likewise.
38167         (ctan_test_towardzero): Likewise.
38168         (ctan_downward_test_data): Likewise.
38169         (ctan_test_downward): Likewise.
38170         (ctan_upward_test_data): Likewise.
38171         (ctan_test_upward): Likewise.
38172         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
38173         (ctanh_test): Use ALL_RM_TEST.
38174         (ctanh_tonearest_test_data): Remove.
38175         (ctanh_test_tonearest): Likewise.
38176         (ctanh_towardzero_test_data): Likewise.
38177         (ctanh_test_towardzero): Likewise.
38178         (ctanh_downward_test_data): Likewise.
38179         (ctanh_test_downward): Likewise.
38180         (ctanh_upward_test_data): Likewise.
38181         (ctanh_test_upward): Likewise.
38182         (erf_test_data): Update call to AUTO_TESTS_f_f.
38183         (erfc_test_data): Likewise.
38184         (exp_test_data): Likewise.
38185         (exp_test): Use ALL_RM_TEST.
38186         (exp_tonearest_test_data): Remove.
38187         (exp_test_tonearest): Likewise.
38188         (exp_towardzero_test_data): Likewise.
38189         (exp_test_towardzero): Likewise.
38190         (exp_downward_test_data): Likewise.
38191         (exp_test_downward): Likewise.
38192         (exp_upward_test_data): Likewise.
38193         (exp_test_upward): Likewise.
38194         (exp10_test_data): Update call to AUTO_TESTS_f_f.
38195         (exp10_test): Use ALL_RM_TEST.
38196         (exp10_tonearest_test_data): Remove.
38197         (exp10_test_tonearest): Likewise.
38198         (exp10_towardzero_test_data): Likewise.
38199         (exp10_test_towardzero): Likewise.
38200         (exp10_downward_test_data): Likewise.
38201         (exp10_test_downward): Likewise.
38202         (exp10_upward_test_data): Likewise.
38203         (exp10_test_upward): Likewise.
38204         (exp2_test_data): Update call to AUTO_TESTS_f_f.
38205         (expm1_test_data): Likewise.
38206         (expm1_test): Use ALL_RM_TEST.
38207         (expm1_tonearest_test_data): Remove.
38208         (expm1_test_tonearest): Likewise.
38209         (expm1_towardzero_test_data): Likewise.
38210         (expm1_test_towardzero): Likewise.
38211         (expm1_downward_test_data): Likewise.
38212         (expm1_test_downward): Likewise.
38213         (expm1_upward_test_data): Likewise.
38214         (expm1_test_upward): Likewise.
38215         (fma_test_data): Update call to AUTO_TESTS_fff_f.
38216         (fma_test): Use ALL_RM_TEST.
38217         (fma_towardzero_test_data): Remove.
38218         (fma_test_towardzero): Likewise.
38219         (fma_downward_test_data): Likewise.
38220         (fma_test_downward): Likewise.
38221         (fma_upward_test_data): Likewise.
38222         (fma_test_upward): Likewise.
38223         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
38224         (j0_test_data): Update call to AUTO_TESTS_f_f.
38225         (j1_test_data): Likewise.
38226         (jn_test_data): Update call to AUTO_TESTS_if_f.
38227         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
38228         (log_test_data): Update call to AUTO_TESTS_f_f.
38229         (log10_test_data): Likewise.
38230         (log1p_test_data): Likewise.
38231         (log2_test_data): Likewise.
38232         (pow_test_data): Update call to AUTO_TESTS_ff_f.
38233         (pow_tonearest_test_data): Likewise.
38234         (sin_test_data): Update call to AUTO_TESTS_f_f.
38235         (sin_test): Use ALL_RM_TEST.
38236         (sin_tonearest_test_data): Remove.
38237         (sin_test_tonearest): Likewise.
38238         (sin_towardzero_test_data): Likewise.
38239         (sin_test_towardzero): Likewise.
38240         (sin_downward_test_data): Likewise.
38241         (sin_test_downward): Likewise.
38242         (sin_upward_test_data): Likewise.
38243         (sin_test_upward): Likewise.
38244         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
38245         (sinh_test_data): Update call to AUTO_TESTS_f_f.
38246         (sinh_test): Use ALL_RM_TEST.
38247         (sinh_tonearest_test_data): Remove.
38248         (sinh_test_tonearest): Likewise.
38249         (sinh_towardzero_test_data): Likewise.
38250         (sinh_test_towardzero): Likewise.
38251         (sinh_downward_test_data): Likewise.
38252         (sinh_test_downward): Likewise.
38253         (sinh_upward_test_data): Likewise.
38254         (sinh_test_upward): Likewise.
38255         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
38256         (sqrt_test): Use ALL_RM_TEST.
38257         (sqrt_tonearest_test_data): Remove.
38258         (sqrt_test_tonearest): Likewise.
38259         (sqrt_towardzero_test_data): Likewise.
38260         (sqrt_test_towardzero): Likewise.
38261         (sqrt_downward_test_data): Likewise.
38262         (sqrt_test_downward): Likewise.
38263         (sqrt_upward_test_data): Likewise.
38264         (sqrt_test_upward): Likewise.
38265         (tan_test_data): Update call to AUTO_TESTS_f_f.
38266         (tan_test): Use ALL_RM_TEST.
38267         (tan_tonearest_test_data): Remove.
38268         (tan_test_tonearest): Likewise.
38269         (tan_towardzero_test_data): Likewise.
38270         (tan_test_towardzero): Likewise.
38271         (tan_downward_test_data): Likewise.
38272         (tan_test_downward): Likewise.
38273         (tan_upward_test_data): Likewise.
38274         (tan_test_upward): Likewise.
38275         (tanh_test_data): Update call to AUTO_TESTS_f_f.
38276         (tgamma_test_data): Likewise.
38277         (y0_test_data): Likewise.
38278         (y1_test_data): Likewise.
38279         (yn_test_data): Update call to AUTO_TESTS_if_f.
38280         (main): Do not call removed functions.
38281
38282 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
38283
38284         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
38285         (ldexp_test_data): Remove.
38286         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
38287         scalbn_test_data.
38288         (scalb_test): Use ALL_RM_TEST.
38289
38290 2014-03-19  Andreas Schwab  <schwab@suse.de>
38291
38292         * nscd/nscd.service: Also invalidate netgroup cache on reload.
38293
38294 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
38295
38296         [BZ #16649]
38297         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
38298         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
38299         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
38300         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
38301         (__ASSUME_PREADV): Undefine.
38302         (__ASSUME_PWRITEV): Likewise.
38303
38304 2014-03-18  Roland McGrath  <roland@hack.frob.com>
38305
38306         * bits/mman-linux.h: Add comment about non-Linux use.
38307         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
38308         bits/mman-linux.h resting place.
38309
38310         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
38311         * bits/mman-linux.h: ... here.
38312
38313 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38314
38315         * conform/conformtest.pl: Add standard definition when calling C
38316         preprocessor on data files.
38317         (checknamespace): Remove unused variable.
38318
38319 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
38320
38321         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
38322         minus_oflow, plus_uflow and minus_uflow in expected results.
38323         * math/libm-test.inc (scalbn_test_data): Add more tests of
38324         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
38325         minus_uflow.
38326         (scalbn_test): Use ALL_RM_TEST.
38327         (scalbln_test_data): Add more tests of negative arguments.  Use
38328         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
38329         (scalbln_test): Use ALL_RM_TEST.
38330
38331 2014-03-18  Roland McGrath  <roland@hack.frob.com>
38332
38333         * scripts/abilist.awk: Ignore symbols marked with .hidden.
38334
38335 2014-03-18  Will Newton  <will.newton@linaro.org>
38336
38337         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
38338         inaccurate comment.
38339
38340 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
38341
38342         * Makerules [!subdir] (check-abi): Exit with error status if a
38343         test failed.
38344
38345 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
38346
38347         * math/libm-test.inc (nearbyint_test_data): Include all tests used
38348         for rint.  Include results for all rounding modes.
38349         (nearbyint_test): Use ALL_RM_TEST.
38350         (rint_test_data): Include all tests used for nearbyint.
38351
38352 2014-03-17  Will Newton  <will.newton@linaro.org>
38353
38354         * nptl/sysdeps/pthread/pthread.h: Revert previous
38355         change.
38356
38357         * sysdeps/generic/ldsodefs.h: Revert previous
38358         change.
38359
38360         * libio/genops.c: Revert previous change.
38361         * libio/libioP.h: Likewise.
38362         * stdio-common/vfprintf.c: Likewise.
38363
38364         * sysdeps/generic/math_private.h: Revert previous
38365         change.
38366
38367         * sysdeps/generic/math_private.h: Check whether
38368         HAVE_RM_CTX is defined with #ifdef rather
38369         than #if.
38370
38371         * argp/argp-fmtstream.h: Check whether
38372         __STRICT_ANSI__ is defined with #ifdef rather
38373         than #if.
38374         * argp/argp.h: Likewise.
38375
38376         * libio/genops.c: Check whether
38377         _IO_JUMPS_OFFSET is defined with #ifdef rather
38378         than #if.
38379         * libio/libioP.h: Likewise.
38380         * stdio-common/vfprintf.c: Likewise.
38381
38382         * sysdeps/generic/ldsodefs.h: Check whether
38383         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
38384         than #if.
38385
38386         * nptl/sysdeps/pthread/pthread.h: Check
38387         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
38388         its value.
38389
38390 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
38391
38392         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
38393         setting O_APPEND.
38394         * libio/tst-ftell-active-handler.c (do_append_test): Add a
38395         test case.
38396
38397         [BZ #16680]
38398         * libio/fileops.c (_IO_file_open): Seek to end of file but
38399         don't cache the offset.
38400         (get_file_offset): Remove function.
38401         (do_ftell): Use cached offset when available.
38402         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
38403         don't cache the offset.
38404         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
38405         case.
38406         (do_one_test): Call it.
38407         (do_ftell_test): Fix up expected old offset for a+ mode.
38408         * libio/wfileops.c (do_ftell_wide): Used cached offset when
38409         available.
38410
38411         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
38412         up test status with function return status.
38413         (do_write_test): Likewise.
38414         (do_append_test): Likewise.
38415
38416         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
38417         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
38418         Remove.
38419
38420 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
38421
38422         * math/gen-libm-test.pl (parse_args): Handle results specified for
38423         each rounding mode separately.
38424         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
38425         tests and results from lrint_tonearest_test_data,
38426         lrint_towardzero_test_data, lrint_downward_test_data and
38427         lrint_upward_test_data.
38428         (lrint_test): Use ALL_RM_TEST.
38429         (lrint_tonearest_test_data): Remove.
38430         (lrint_test_tonearest): Likewise.
38431         (lrint_towardzero_test_data): Likewise.
38432         (lrint_test_towardzero): Likewise.
38433         (lrint_downward_test_data): Likewise.
38434         (lrint_test_downward): Likewise.
38435         (lrint_upward_test_data): Likewise.
38436         (lrint_test_upward): Likewise.
38437         (llrint_test_data): Merge in per-rounding-mode tests and results
38438         from llrint_tonearest_test_data, llrint_towardzero_test_data,
38439         llrint_downward_test_data and llrint_upward_test_data.
38440         (llrint_test): Use ALL_RM_TEST.
38441         (llrint_tonearest_test_data): Remove.
38442         (llrint_test_tonearest): Likewise.
38443         (llrint_towardzero_test_data): Likewise.
38444         (llrint_test_towardzero): Likewise.
38445         (llrint_downward_test_data): Likewise.
38446         (llrint_test_downward): Likewise.
38447         (llrint_upward_test_data): Likewise.
38448         (llrint_test_upward): Likewise.
38449         (rint_test_data): Merge in per-rounding-mode tests and results
38450         from rint_tonearest_test_data, rint_towardzero_test_data,
38451         rint_downward_test_data and rint_upward_test_data.  Add
38452         per-rounding-mode results for tests not in those arrays.
38453         (rint_test): Use ALL_RM_TEST.
38454         (rint_tonearest_test_data): Remove.
38455         (rint_test_tonearest): Likewise.
38456         (rint_towardzero_test_data): Likewise.
38457         (rint_test_towardzero): Likewise.
38458         (rint_downward_test_data): Likewise.
38459         (rint_test_downward): Likewise.
38460         (rint_upward_test_data): Likewise.
38461         (rint_test_upward): Likewise.
38462         (main): Don't call removed functions.
38463
38464 2014-03-14  Roland McGrath  <roland@hack.frob.com>
38465
38466         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
38467         "Compiled on ..." crapola.  It is anti-useful.
38468
38469 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
38470
38471         * scripts/evaluate-test.sh: Handle fourth argument to determine
38472         whether test run should stop on failure.
38473         * Makeconfig (stop-on-test-failure): New variable.
38474         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
38475         $(stop-on-test-failure).
38476         * Makefile (tests): Give a summary of results from testing and
38477         exit with failure status if they include an ERROR or FAIL.
38478         (xtests): Likewise.
38479         * manual/install.texi (Configuring and compiling): Mention
38480         stop-on-test-failure=y.
38481         * INSTALL: Regenerated.
38482
38483 2014-03-14  Roland McGrath  <roland@hack.frob.com>
38484
38485         * scripts/versionlist.awk: New file.
38486         * Makerules [$(build-shared) = yes]
38487         (postclean-generated): Add Versions.def, not Versions.def.v and
38488         Versions.def.v.i.
38489         ($(common-objpfx)Versions.def.v.i): Target removed.
38490         ($(common-objpfx)Versions.def): New target.
38491         ($(common-objpfx)Versions.all): Depend on that rather that
38492         $(common-objpfx)Versions.def.v.
38493         * Versions.def: File removed.
38494
38495         * Makeconfig (+gccwarn): Add -Wundef.
38496         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
38497         a dl-sysdep.h breaking its contract.
38498         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
38499         * include/stackinfo.h: New file.
38500         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
38501         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
38502         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
38503         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
38504         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
38505         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
38506         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38507         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38508         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38509         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38510         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38511         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
38512         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38513         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38514         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
38515
38516 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38517
38518         [BZ #16707]
38519         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
38520         implementation.
38521         * math/libm-test.inc (round_test_data): Add more tests.
38522
38523         [BZ #16706]
38524         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
38525         implementation.
38526         * math/libm-test.inc (nearbyint_test_data): Add more tests.
38527
38528         [BZ #16701]
38529         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
38530         implementation.
38531         * math/libm-test.inc (ceil_test_data): Add more tests.
38532
38533         * math/libm-test.inc (trunc_test_data): Add more tests related to
38534         BZ#16414.
38535
38536 2014-03-14  Roland McGrath  <roland@hack.frob.com>
38537
38538         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
38539         with #if rather than #ifdef.
38540         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
38541
38542 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
38543
38544         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
38545         first.  Disable AVX-512 GCC support if assembler doesn't support
38546         it.
38547         * sysdeps/x86_64/configure: Regenerated.
38548
38549 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
38550
38551         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
38552         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
38553         (__old_pthread_attr_setstack): Likewise.
38554         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
38555         [!_STACK_GROWS_DOWN]: Likewise.
38556
38557 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
38558
38559         * config.make.in (have-bash2): Delete.
38560         * configure.ac (libc_cv_have_bash2): Delete.
38561         * configure: Regenerate.
38562         * elf/Makefile (common-ldd-rewrite): Rename to ...
38563         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
38564         (sh-ldd-rewrite): Delete.
38565         (bash-ldd-rewrite): Delete.
38566         (have-bash2): Delete checks.
38567         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
38568         ldd-rewrite.
38569
38570         * config.make.in (have-ksh): Delete.
38571         (KSH): Delete.
38572         * configure.ac (libc_cv_have_ksh): Delete.
38573         * configure: Regenerate.
38574
38575         * elf/Makefile: Delete $(have-ksh) check.
38576         ($(objpfx)sotruss): Change KSH to BASH.
38577         * elf/sotruss.ksh: Rename to ...
38578         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
38579         function style to match POSIX.  Drop ksh vim mode setting.
38580
38581         * manual/time.texi (Specifying the Time Zone with TZ): Change
38582         Tuesday to Thursday.
38583
38584         * debug/tst-longjmp_chk2.c: Update header comment.
38585         (stackoverflow_handler): Add comment.  Call assert on pass value.
38586
38587 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
38588
38589         [BZ #16194]
38590         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
38591         (HAVE_AVX512_ASM_SUPPORT): Likewise.
38592         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
38593         (La_x86_64_vector): Add zmm.
38594         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
38595         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
38596         ($(objpfx)tst-audit10): New target.
38597         ($(objpfx)tst-audit10.out): Likewise.
38598         (tst-audit10-ENV): New.
38599         (AVX512-CFLAGS): Likewise.
38600         (CFLAGS-tst-audit10.c): Likewise.
38601         (CFLAGS-tst-auditmod10a.c): Likewise.
38602         (CFLAGS-tst-auditmod10b.c): Likewise.
38603         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
38604         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
38605         * sysdeps/x86_64/configure: Regenerated.
38606         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
38607         AVX-512 zmm register support.
38608         (_dl_x86_64_save_sse): Likewise.
38609         (_dl_x86_64_restore_sse): Likewise.
38610         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
38611         size vector registers.
38612         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
38613         (ZMM_SIZE): Likewise.
38614         * sysdeps/x86_64/tst-audit10.c: New file.
38615         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
38616         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
38617
38618 2014-03-13  Roland McGrath  <roland@hack.frob.com>
38619
38620         * configure.ac (HAVE_EHDR_START): New check.
38621         * configure: Regenerated.
38622         * config.h.in (HAVE_EHDR_START): New #undef.
38623         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
38624         assuming the lowest-addressed segment maps the start of the file.
38625
38626 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
38627
38628         * INSTALL: Regenerated.
38629
38630 2014-03-13  Will Newton  <will.newton@linaro.org>
38631
38632         * manual/setjmp.texi (System V contexts): Improve
38633         clarity and grammar of documentation.
38634
38635 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
38636
38637         [BZ #16381]
38638         * elf/Makefile (tests): Add tst-pie2.
38639         (tests-pie): Add tst-pie2.
38640         * elf/tst-pie2.c: New file.
38641         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
38642         for ET_EXEC.
38643         * elf/rtld.c (map_doit): Load executable as lt_executable.
38644         (dl_main): Likewise.
38645
38646 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
38647
38648         [BZ #16642]
38649         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
38650         (__ASSUME_PSELECT): Undefine.
38651
38652 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38653
38654         [BZ #16689]
38655         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
38656         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
38657         static build.
38658         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
38659         selector for static builds.
38660
38661 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
38662
38663         [BZ #16695]
38664         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
38665         key in the buffer.
38666
38667 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38668
38669         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
38670         IFUNC selector for static builds.
38671
38672 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
38673
38674         * sysdeps/mips/math_private.h [__mips_hard_float]
38675         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
38676         libc_feresetround_mips_ctx.
38677         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
38678         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
38679         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
38680
38681         [BZ #16677]
38682         * math/s_nextafter.c (__nextafter): Do not return value from
38683         overflowing computation.
38684         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38685         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
38686         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38687         Likewise.
38688         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
38689         Likewise.
38690         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38691         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
38692
38693 2014-03-11  Roland McGrath  <roland@hack.frob.com>
38694
38695         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
38696         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
38697         Move sfi_sp use from the load-multiple (that no longer sets sp) to
38698         the new mov targetting sp.
38699
38700 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38701
38702         [BZ #16683]
38703         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
38704         Define it for static builds as well.
38705         (NO_BZERO_IMPL): Likewise.
38706
38707 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
38708
38709         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
38710         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
38711         multiarch strspn for PPC64.
38712         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
38713         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
38714         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
38715         (__libc_ifunc_impl_list): Likewise.
38716         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
38717         multiarch optimizations
38718         * string/strspn.c (strspn): Using macro to redefine symbol name.
38719
38720 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
38721             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38722
38723         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
38724         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
38725         multiarch strncat for PPC64.
38726         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
38727         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
38728         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
38729         (__libc_ifunc_impl_list): Likewise.
38730         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
38731         multiarch optimizations
38732
38733 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38734
38735         [BZ #16639]
38736         * nscd/nscd.service: Make service type forking.
38737
38738 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38739
38740         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
38741         sign in non default rounding modes.
38742         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
38743
38744 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
38745
38746         * math/libm-test.inc (ALL_RM_TEST): New macro.
38747         (ceil_test): Use ALL_RM_TEST.
38748         (cimag_test): Likewise.
38749         (conj_test): Likewise.
38750         (copysign_test): Likewise.
38751         (cproj_test): Likewise.
38752         (creal_test): Likewise.
38753         (fabs_test): Likewise.
38754         (floor_test): Likewise.
38755         (fmax_test): Likewise.
38756         (fmin_test): Likewise.
38757         (fmod_test): Likewise.
38758         (fpclassify_test): Likewise.
38759         (frexp_test): Likewise.
38760         (ilogb_test): Likewise.
38761         (isfinite_test): Likewise.
38762         (finite_test): Likewise.
38763         (isgreater_test): Likewise.
38764         (isgreaterequal_test): Likewise.
38765         (isinf_test): Likewise.
38766         (isless_test): Likewise.
38767         (islessequal_test): Likewise.
38768         (islessgreater_test): Likewise.
38769         (isnan_test): Likewise.
38770         (isnormal_test): Likewise.
38771         (issignaling_test): Likewise.
38772         (isunordered_test): Likewise.
38773         (logb_test): Likewise.
38774         (logb_downward_test_data): Remove.
38775         (logb_test_downward): Likewise.
38776         (lround_test): Use ALL_RM_TEST.
38777         (llround_test): Likewise.
38778         (modf_test): Likewise.
38779         (nexttoward_test): Likewise.
38780         (remainder_test): Likewise.
38781         (drem_test): Likewise.
38782         (remainder_tonearest_test_data): Likewise.
38783         (remainder_test_tonearest): Likewise.
38784         (drem_test_tonearest): Likewise.
38785         (remainder_towardzero_test_data): Likewise.
38786         (remainder_test_towardzero): Likewise.
38787         (drem_test_towardzero): Likewise.
38788         (remainder_downward_test_data): Likewise.
38789         (remainder_test_downward): Likewise.
38790         (drem_test_downward): Likewise.
38791         (remainder_upward_test_data): Likewise.
38792         (remainder_test_upward): Likewise.
38793         (drem_test_upward): Likewise.
38794         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
38795         (round_test): Use ALL_RM_TEST.
38796         (signbit_test): Likewise.
38797         (trunc_test): Likewise.
38798         (significand_test): Likewise.
38799         (main): Don't call removed functions.
38800
38801 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
38802
38803         [BZ #16674]
38804         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
38805         || __USE_XOPEN2K8].
38806         (ILL_ILLOPN): Likewise.
38807         (ILL_ILLADR): Likewise.
38808         (ILL_ILLTRP): Likewise.
38809         (ILL_PRVOPC): Likewise.
38810         (ILL_PRVREG): Likewise.
38811         (ILL_COPROC): Likewise.
38812         (ILL_BADSTK): Likewise.
38813         (FPE_INTDIV): Likewise.
38814         (FPE_INTOVF): Likewise.
38815         (FPE_FLTDIV): Likewise.
38816         (FPE_FLTOVF): Likewise.
38817         (FPE_FLTUND): Likewise.
38818         (FPE_FLTRES): Likewise.
38819         (FPE_FLTINV): Likewise.
38820         (FPE_FLTSUB): Likewise.
38821         (SEGV_MAPERR): Likewise.
38822         (SEGV_ACCERR): Likewise.
38823         (BUS_ADRALN): Likewise.
38824         (BUS_ADRERR): Likewise.
38825         (BUS_OBJERR): Likewise.
38826         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
38827         (TRAP_TRACE): Likewise.
38828         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
38829         __USE_XOPEN2K8].
38830         (CLD_KILLED): Likewise.
38831         (CLD_DUMPED): Likewise.
38832         (CLD_TRAPPED): Likewise.
38833         (CLD_STOPPED): Likewise.
38834         (CLD_CONTINUED): Likewise.
38835         (POLL_IN): Likewise.
38836         (POLL_OUT): Likewise.
38837         (POLL_MSG): Likewise.
38838         (POLL_ERR): Likewise.
38839         (POLL_PRI): Likewise.
38840         (POLL_HUP): Likewise.
38841         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
38842         Likewise.
38843         (ILL_ILLOPN): Likewise.
38844         (ILL_ILLADR): Likewise.
38845         (ILL_ILLTRP): Likewise.
38846         (ILL_PRVOPC): Likewise.
38847         (ILL_PRVREG): Likewise.
38848         (ILL_COPROC): Likewise.
38849         (ILL_BADSTK): Likewise.
38850         (FPE_INTDIV): Likewise.
38851         (FPE_INTOVF): Likewise.
38852         (FPE_FLTDIV): Likewise.
38853         (FPE_FLTOVF): Likewise.
38854         (FPE_FLTUND): Likewise.
38855         (FPE_FLTRES): Likewise.
38856         (FPE_FLTINV): Likewise.
38857         (FPE_FLTSUB): Likewise.
38858         (SEGV_MAPERR): Likewise.
38859         (SEGV_ACCERR): Likewise.
38860         (BUS_ADRALN): Likewise.
38861         (BUS_ADRERR): Likewise.
38862         (BUS_OBJERR): Likewise.
38863         (BUS_MCEERR_AR): Likewise.
38864         (BUS_MCEERR_AO): Likewise.
38865         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
38866         (TRAP_TRACE): Likewise.
38867         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
38868         __USE_XOPEN2K8].
38869         (CLD_KILLED): Likewise.
38870         (CLD_DUMPED): Likewise.
38871         (CLD_TRAPPED): Likewise.
38872         (CLD_STOPPED): Likewise.
38873         (CLD_CONTINUED): Likewise.
38874         (POLL_IN): Likewise.
38875         (POLL_OUT): Likewise.
38876         (POLL_MSG): Likewise.
38877         (POLL_ERR): Likewise.
38878         (POLL_PRI): Likewise.
38879         (POLL_HUP): Likewise.
38880         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
38881         (ILL_ILLOPN): Likewise.
38882         (ILL_ILLADR): Likewise.
38883         (ILL_ILLTRP): Likewise.
38884         (ILL_PRVOPC): Likewise.
38885         (ILL_PRVREG): Likewise.
38886         (ILL_COPROC): Likewise.
38887         (ILL_BADSTK): Likewise.
38888         (FPE_INTDIV): Likewise.
38889         (FPE_INTOVF): Likewise.
38890         (FPE_FLTDIV): Likewise.
38891         (FPE_FLTOVF): Likewise.
38892         (FPE_FLTUND): Likewise.
38893         (FPE_FLTRES): Likewise.
38894         (FPE_FLTINV): Likewise.
38895         (FPE_FLTSUB): Likewise.
38896         (SEGV_MAPERR): Likewise.
38897         (SEGV_ACCERR): Likewise.
38898         (BUS_ADRALN): Likewise.
38899         (BUS_ADRERR): Likewise.
38900         (BUS_OBJERR): Likewise.
38901         (BUS_MCEERR_AR): Likewise.
38902         (BUS_MCEERR_AO): Likewise.
38903         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
38904         (TRAP_TRACE): Likewise.
38905         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
38906         __USE_XOPEN2K8].
38907         (CLD_KILLED): Likewise.
38908         (CLD_DUMPED): Likewise.
38909         (CLD_TRAPPED): Likewise.
38910         (CLD_STOPPED): Likewise.
38911         (CLD_CONTINUED): Likewise.
38912         (POLL_IN): Likewise.
38913         (POLL_OUT): Likewise.
38914         (POLL_MSG): Likewise.
38915         (POLL_ERR): Likewise.
38916         (POLL_PRI): Likewise.
38917         (POLL_HUP): Likewise.
38918         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
38919         Likewise.
38920         (ILL_ILLOPN): Likewise.
38921         (ILL_ILLADR): Likewise.
38922         (ILL_ILLTRP): Likewise.
38923         (ILL_PRVOPC): Likewise.
38924         (ILL_PRVREG): Likewise.
38925         (ILL_COPROC): Likewise.
38926         (ILL_BADSTK): Likewise.
38927         (ILL_BADIADDR): Likewise.
38928         (ILL_BREAK): Likewise.
38929         (FPE_INTDIV): Likewise.
38930         (FPE_INTOVF): Likewise.
38931         (FPE_FLTDIV): Likewise.
38932         (FPE_FLTOVF): Likewise.
38933         (FPE_FLTUND): Likewise.
38934         (FPE_FLTRES): Likewise.
38935         (FPE_FLTINV): Likewise.
38936         (FPE_FLTSUB): Likewise.
38937         (FPE_DECOVF): Likewise.
38938         (FPE_DECDIV): Likewise.
38939         (FPE_DECERR): Likewise.
38940         (FPE_INVASC): Likewise.
38941         (FPE_INVDEC): Likewise.
38942         (SEGV_MAPERR): Likewise.
38943         (SEGV_ACCERR): Likewise.
38944         (SEGV_PSTKOVF): Likewise.
38945         (BUS_ADRALN): Likewise.
38946         (BUS_ADRERR): Likewise.
38947         (BUS_OBJERR): Likewise.
38948         (BUS_MCEERR_AR): Likewise.
38949         (BUS_MCEERR_AO): Likewise.
38950         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
38951         (TRAP_TRACE): Likewise.
38952         (TRAP_BRANCH): Likewise.
38953         (TRAP_HWBKPT): Likewise.
38954         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
38955         __USE_XOPEN2K8].
38956         (CLD_KILLED): Likewise.
38957         (CLD_DUMPED): Likewise.
38958         (CLD_TRAPPED): Likewise.
38959         (CLD_STOPPED): Likewise.
38960         (CLD_CONTINUED): Likewise.
38961         (POLL_IN): Likewise.
38962         (POLL_OUT): Likewise.
38963         (POLL_MSG): Likewise.
38964         (POLL_ERR): Likewise.
38965         (POLL_PRI): Likewise.
38966         (POLL_HUP): Likewise.
38967         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
38968         (ILL_ILLOPN): Likewise.
38969         (ILL_ILLADR): Likewise.
38970         (ILL_ILLTRP): Likewise.
38971         (ILL_PRVOPC): Likewise.
38972         (ILL_PRVREG): Likewise.
38973         (ILL_COPROC): Likewise.
38974         (ILL_BADSTK): Likewise.
38975         (FPE_INTDIV): Likewise.
38976         (FPE_INTOVF): Likewise.
38977         (FPE_FLTDIV): Likewise.
38978         (FPE_FLTOVF): Likewise.
38979         (FPE_FLTUND): Likewise.
38980         (FPE_FLTRES): Likewise.
38981         (FPE_FLTINV): Likewise.
38982         (FPE_FLTSUB): Likewise.
38983         (SEGV_MAPERR): Likewise.
38984         (SEGV_ACCERR): Likewise.
38985         (BUS_ADRALN): Likewise.
38986         (BUS_ADRERR): Likewise.
38987         (BUS_OBJERR): Likewise.
38988         (BUS_MCEERR_AR): Likewise.
38989         (BUS_MCEERR_AO): Likewise.
38990         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
38991         (TRAP_TRACE): Likewise.
38992         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
38993         __USE_XOPEN2K8].
38994         (CLD_KILLED): Likewise.
38995         (CLD_DUMPED): Likewise.
38996         (CLD_TRAPPED): Likewise.
38997         (CLD_STOPPED): Likewise.
38998         (CLD_CONTINUED): Likewise.
38999         (POLL_IN): Likewise.
39000         (POLL_OUT): Likewise.
39001         (POLL_MSG): Likewise.
39002         (POLL_ERR): Likewise.
39003         (POLL_PRI): Likewise.
39004         (POLL_HUP): Likewise.
39005         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
39006         (ILL_ILLOPN): Likewise.
39007         (ILL_ILLADR): Likewise.
39008         (ILL_ILLTRP): Likewise.
39009         (ILL_PRVOPC): Likewise.
39010         (ILL_PRVREG): Likewise.
39011         (ILL_COPROC): Likewise.
39012         (ILL_BADSTK): Likewise.
39013         (FPE_INTDIV): Likewise.
39014         (FPE_INTOVF): Likewise.
39015         (FPE_FLTDIV): Likewise.
39016         (FPE_FLTOVF): Likewise.
39017         (FPE_FLTUND): Likewise.
39018         (FPE_FLTRES): Likewise.
39019         (FPE_FLTINV): Likewise.
39020         (FPE_FLTSUB): Likewise.
39021         (SEGV_MAPERR): Likewise.
39022         (SEGV_ACCERR): Likewise.
39023         (BUS_ADRALN): Likewise.
39024         (BUS_ADRERR): Likewise.
39025         (BUS_OBJERR): Likewise.
39026         (BUS_MCEERR_AR): Likewise.
39027         (BUS_MCEERR_AO): Likewise.
39028         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39029         (TRAP_TRACE): Likewise.
39030         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39031         __USE_XOPEN2K8].
39032         (CLD_KILLED): Likewise.
39033         (CLD_DUMPED): Likewise.
39034         (CLD_TRAPPED): Likewise.
39035         (CLD_STOPPED): Likewise.
39036         (CLD_CONTINUED): Likewise.
39037         (POLL_IN): Likewise.
39038         (POLL_OUT): Likewise.
39039         (POLL_MSG): Likewise.
39040         (POLL_ERR): Likewise.
39041         (POLL_PRI): Likewise.
39042         (POLL_HUP): Likewise.
39043         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
39044         (ILL_ILLOPN): Likewise.
39045         (ILL_ILLADR): Likewise.
39046         (ILL_ILLTRP): Likewise.
39047         (ILL_PRVOPC): Likewise.
39048         (ILL_PRVREG): Likewise.
39049         (ILL_COPROC): Likewise.
39050         (ILL_BADSTK): Likewise.
39051         (FPE_INTDIV): Likewise.
39052         (FPE_INTOVF): Likewise.
39053         (FPE_FLTDIV): Likewise.
39054         (FPE_FLTOVF): Likewise.
39055         (FPE_FLTUND): Likewise.
39056         (FPE_FLTRES): Likewise.
39057         (FPE_FLTINV): Likewise.
39058         (FPE_FLTSUB): Likewise.
39059         (SEGV_MAPERR): Likewise.
39060         (SEGV_ACCERR): Likewise.
39061         (BUS_ADRALN): Likewise.
39062         (BUS_ADRERR): Likewise.
39063         (BUS_OBJERR): Likewise.
39064         (BUS_MCEERR_AR): Likewise.
39065         (BUS_MCEERR_AO): Likewise.
39066         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39067         (TRAP_TRACE): Likewise.
39068         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39069         __USE_XOPEN2K8].
39070         (CLD_KILLED): Likewise.
39071         (CLD_DUMPED): Likewise.
39072         (CLD_TRAPPED): Likewise.
39073         (CLD_STOPPED): Likewise.
39074         (CLD_CONTINUED): Likewise.
39075         (POLL_IN): Likewise.
39076         (POLL_OUT): Likewise.
39077         (POLL_MSG): Likewise.
39078         (POLL_ERR): Likewise.
39079         (POLL_PRI): Likewise.
39080         (POLL_HUP): Likewise.
39081         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
39082         (ILL_ILLOPN): Likewise.
39083         (ILL_ILLADR): Likewise.
39084         (ILL_ILLTRP): Likewise.
39085         (ILL_PRVOPC): Likewise.
39086         (ILL_PRVREG): Likewise.
39087         (ILL_COPROC): Likewise.
39088         (ILL_BADSTK): Likewise.
39089         (ILL_DBLFLT): Likewise.
39090         (ILL_HARDWALL): Likewise.
39091         (FPE_INTDIV): Likewise.
39092         (FPE_INTOVF): Likewise.
39093         (FPE_FLTDIV): Likewise.
39094         (FPE_FLTOVF): Likewise.
39095         (FPE_FLTUND): Likewise.
39096         (FPE_FLTRES): Likewise.
39097         (FPE_FLTINV): Likewise.
39098         (FPE_FLTSUB): Likewise.
39099         (SEGV_MAPERR): Likewise.
39100         (SEGV_ACCERR): Likewise.
39101         (BUS_ADRALN): Likewise.
39102         (BUS_ADRERR): Likewise.
39103         (BUS_OBJERR): Likewise.
39104         (BUS_MCEERR_AR): Likewise.
39105         (BUS_MCEERR_AO): Likewise.
39106         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39107         (TRAP_TRACE): Likewise.
39108         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39109         __USE_XOPEN2K8].
39110         (CLD_KILLED): Likewise.
39111         (CLD_DUMPED): Likewise.
39112         (CLD_TRAPPED): Likewise.
39113         (CLD_STOPPED): Likewise.
39114         (CLD_CONTINUED): Likewise.
39115         (POLL_IN): Likewise.
39116         (POLL_OUT): Likewise.
39117         (POLL_MSG): Likewise.
39118         (POLL_ERR): Likewise.
39119         (POLL_PRI): Likewise.
39120         (POLL_HUP): Likewise.
39121         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
39122         (ILL_ILLOPN): Likewise.
39123         (ILL_ILLADR): Likewise.
39124         (ILL_ILLTRP): Likewise.
39125         (ILL_PRVOPC): Likewise.
39126         (ILL_PRVREG): Likewise.
39127         (ILL_COPROC): Likewise.
39128         (ILL_BADSTK): Likewise.
39129         (FPE_INTDIV): Likewise.
39130         (FPE_INTOVF): Likewise.
39131         (FPE_FLTDIV): Likewise.
39132         (FPE_FLTOVF): Likewise.
39133         (FPE_FLTUND): Likewise.
39134         (FPE_FLTRES): Likewise.
39135         (FPE_FLTINV): Likewise.
39136         (FPE_FLTSUB): Likewise.
39137         (SEGV_MAPERR): Likewise.
39138         (SEGV_ACCERR): Likewise.
39139         (BUS_ADRALN): Likewise.
39140         (BUS_ADRERR): Likewise.
39141         (BUS_OBJERR): Likewise.
39142         (BUS_MCEERR_AR): Likewise.
39143         (BUS_MCEERR_AO): Likewise.
39144         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
39145         (TRAP_TRACE): Likewise.
39146         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
39147         __USE_XOPEN2K8].
39148         (CLD_KILLED): Likewise.
39149         (CLD_DUMPED): Likewise.
39150         (CLD_TRAPPED): Likewise.
39151         (CLD_STOPPED): Likewise.
39152         (CLD_CONTINUED): Likewise.
39153         (POLL_IN): Likewise.
39154         (POLL_OUT): Likewise.
39155         (POLL_MSG): Likewise.
39156         (POLL_ERR): Likewise.
39157         (POLL_PRI): Likewise.
39158         (POLL_HUP): Likewise.
39159         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
39160         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
39161
39162         [BZ #16670]
39163         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
39164         before #include of <time.h>.
39165         [!__USE_XOPEN2K] (__need_timespec): Likewise.
39166         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
39167         (test-xfail-UNIX98/sched.h/conform): Likewise.
39168
39169 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
39170
39171         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
39172         error absence of trapping exception support.
39173         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
39174
39175 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
39176
39177         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
39178         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
39179         * timezone/Makefile (testdata): Move definition above include of
39180         Rules.
39181         (test-zones): New variable.
39182         (tests-special): Add zone files.
39183         (build-testdata): Use $(evaluate-test).
39184
39185         * elf/Makefile (tests-special): Rename tests to end with .out.
39186         ($(objpfx)noload-mem): Likewise.
39187         ($(objpfx)tst-leaks1-mem): Likewise.
39188         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
39189         * iconv/Makefile (xtests-special): Change test-iconvconfig to
39190         $(objpfx)test-iconvconfig.out.
39191         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
39192         set -e inside subshell and redirect output to file.
39193         * iconvdata/Makefile (generated): Rename tests to end with .out.
39194         Correct type.
39195         (tests-special): Rename tests to end with .out.
39196         ($(objpfx)mtrace-tst-loading): Likewise.
39197         * intl/Makefile (generated): Likewise.
39198         (tests-special): Likewise.
39199         ($(objpfx)mtrace-tst-gettext): Likewise.
39200         * misc/Makefile (generated): Likewise.
39201         (tests-special): Likewise.
39202         ($(objpfx)tst-error1-mem): Likewise.
39203         * nptl/Makefile (tests-special): Likewise.
39204         ($(objpfx)tst-stack3-mem): Likewise.
39205         (generated): Likewise.
39206         * posix/Makefile (generated): Likewise.
39207         (tests-special): Likewise.
39208         (xtests-special): Likewise.
39209         ($(objpfx)tst-fnmatch-mem): Likewise.
39210         ($(objpfx)bug-regex2-mem): Likewise.
39211         ($(objpfx)bug-regex14-mem): Likewise.
39212         ($(objpfx)bug-regex21-mem): Likewise.
39213         ($(objpfx)bug-regex31-mem): Likewise.
39214         ($(objpfx)tst-vfork3-mem): Likewise.
39215         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
39216         ($(objpfx)tst-pcre-mem): Likewise.
39217         ($(objpfx)tst-boost-mem): Likewise.
39218         ($(objpfx)bug-ga2-mem): Likewise.
39219         ($(objpfx)bug-glob2-mem): Likewise.
39220         * resolv/Makefile (generate): Likewise.
39221         (tests-special): Likewise.
39222         (xtests-special): Likewise.
39223         (generated): Likewise.
39224         ($(objpfx)mtrace-tst-leaks): Likewise.
39225         ($(objpfx)mtrace-tst-leaks2): Likewise.
39226
39227         * scripts/merge-test-results.sh: New file.
39228         * Makefile (tests-special-notdir): New variable.
39229         (tests): Run merge-test-results.sh.
39230         (xtests): Likewise.
39231         * Rules (tests-special-notdir): New variable.
39232         (xtests-special-notdir): Likewise.
39233         (tests): Run merge-test-results.sh
39234         (xtests): Likewise.
39235
39236         * Makeconfig (test-xfail-name): New variable.
39237         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
39238         compute variable name for expected failures.
39239         * conform/Makefile (conformtest-headers-data): New variable.
39240         (conformtest-standards): Likewise.
39241         (conformtest-headers-ISO): Likewise.
39242         (conformtest-headers-ISO99): Likewise.
39243         (conformtest-headers-ISO11): Likewise.
39244         (conformtest-headers-POSIX): Likewise.
39245         (conformtest-headers-XPG3): Likewise.
39246         (conformtest-headers-XPG4): Likewise.
39247         (conformtest-headers-UNIX98): Likewise.
39248         (conformtest-headers-XOPEN2K): Likewise.
39249         (conformtest-headers-POSIX2008): Likewise.
39250         (conformtest-headers-XOPEN2K8): Likewise.
39251         (conformtest-header-list-base): Likewise.
39252         (conformtest-header-list-tests): Likewise.
39253         (conformtest-header-base): Likewise.
39254         (conformtest-header-tests): Likewise.
39255         (tests-special): Add $(conformtest-header-list-tests).  If
39256         [$(fast-check) && !$(cross-compiling)], add
39257         $(conformtest-header-tests) instead of
39258         $(objpfx)run-conformtest.out.
39259         (generated): Add $(conformtest-header-list-base).  If
39260         [$(fast-check) && !$(cross-compiling)], add
39261         $(conformtest-header-base).  Remove previous setting.
39262         ($(conformtest-header-list-tests)): New target.
39263         (test-xfail-run-conformtest): Remove variable.
39264         ($(objpfx)run-conformtest.out): Remove target.
39265         (test-xfail-ISO11/complex.h/conform): New variable.
39266         (test-xfail-ISO11/stdalign.h/conform): Likewise.
39267         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
39268         (test-xfail-XPG3/varargs.h/conform): Likewise.
39269         (test-xfail-XPG4/varargs.h/conform): Likewise.
39270         (test-xfail-UNIX98/varargs.h/conform): Likewise.
39271         (test-xfail-XPG4/ndbm.h/conform): Likewise.
39272         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
39273         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
39274         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
39275         (test-xfail-XPG3/fcntl.h/conform): Likewise.
39276         (test-xfail-XPG3/ftw.h/conform): Likewise.
39277         (test-xfail-XPG3/grp.h/conform): Likewise.
39278         (test-xfail-XPG3/langinfo.h/conform): Likewise.
39279         (test-xfail-XPG3/limits.h/conform): Likewise.
39280         (test-xfail-XPG3/pwd.h/conform): Likewise.
39281         (test-xfail-XPG3/search.h/conform): Likewise.
39282         (test-xfail-XPG3/signal.h/conform): Likewise.
39283         (test-xfail-XPG3/stdio.h/conform): Likewise.
39284         (test-xfail-XPG3/stdlib.h/conform): Likewise.
39285         (test-xfail-XPG3/string.h/conform): Likewise.
39286         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
39287         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
39288         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
39289         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
39290         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
39291         (test-xfail-XPG3/sys/types.h/conform): Likewise.
39292         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
39293         (test-xfail-XPG3/termios.h/conform): Likewise.
39294         (test-xfail-XPG3/time.h/conform): Likewise.
39295         (test-xfail-XPG3/unistd.h/conform): Likewise.
39296         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
39297         (test-xfail-XPG4/fcntl.h/conform): Likewise.
39298         (test-xfail-XPG4/langinfo.h/conform): Likewise.
39299         (test-xfail-XPG4/netdb.h/conform): Likewise.
39300         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
39301         (test-xfail-XPG4/signal.h/conform): Likewise.
39302         (test-xfail-XPG4/stdio.h/conform): Likewise.
39303         (test-xfail-XPG4/stdlib.h/conform): Likewise.
39304         (test-xfail-XPG4/stropts.h/conform): Likewise.
39305         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
39306         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
39307         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
39308         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
39309         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
39310         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
39311         (test-xfail-XPG4/sys/time.h/conform): Likewise.
39312         (test-xfail-XPG4/sys/types.h/conform): Likewise.
39313         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
39314         (test-xfail-XPG4/termios.h/conform): Likewise.
39315         (test-xfail-XPG4/ucontext.h/conform): Likewise.
39316         (test-xfail-XPG4/unistd.h/conform): Likewise.
39317         (test-xfail-XPG4/utmpx.h/conform): Likewise.
39318         (test-xfail-POSIX/sched.h/conform): Likewise.
39319         (test-xfail-POSIX/signal.h/conform): Likewise.
39320         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
39321         (test-xfail-POSIX/tar.h/conform): Likewise.
39322         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
39323         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
39324         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
39325         (test-xfail-UNIX98/netdb.h/conform): Likewise.
39326         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
39327         (test-xfail-UNIX98/sched.h/conform): Likewise.
39328         (test-xfail-UNIX98/signal.h/conform): Likewise.
39329         (test-xfail-UNIX98/stdio.h/conform): Likewise.
39330         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
39331         (test-xfail-UNIX98/stropts.h/conform): Likewise.
39332         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
39333         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
39334         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
39335         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
39336         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
39337         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
39338         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
39339         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
39340         (test-xfail-UNIX98/unistd.h/conform): Likewise.
39341         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
39342         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
39343         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
39344         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
39345         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
39346         (test-xfail-XOPEN2K/math.h/conform): Likewise.
39347         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
39348         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
39349         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
39350         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
39351         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
39352         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
39353         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
39354         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
39355         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
39356         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
39357         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
39358         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
39359         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
39360         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
39361         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
39362         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
39363         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
39364         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
39365         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
39366         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
39367         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
39368         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
39369         (test-xfail-POSIX2008/signal.h/conform): Likewise.
39370         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
39371         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
39372         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
39373         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
39374         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
39375         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
39376         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
39377         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
39378         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
39379         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
39380         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
39381         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
39382         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
39383         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
39384         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
39385         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
39386         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
39387         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
39388         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
39389         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
39390         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
39391         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
39392         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
39393         (conformtest-cc-flags): Likewise.
39394         ($(conformtest-header-tests): New target.
39395         * conform/check-header-lists.sh: New file.
39396         * conform/run-conformtest.sh: Remove.
39397
39398         * conform/conformtest.pl: Allow ' and \ in values given for
39399         constants.
39400         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
39401         inclusion.
39402         [POSIX] (sys/types.h): Likewise.
39403         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
39404         inclusion.
39405         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
39406         inclusion.
39407         * conform/data/signal.h-data (SIGIO): Remove expectation.
39408         [XPG3] (SIGBUS): Do not expect.
39409         [POSIX || XPG3] (SIGPOLL): Likewise.
39410         [POSIX || XPG3] (SIGPROF): Likewise.
39411         [POSIX || XPG3] (SIGSYS): Likewise.
39412         [XPG3] (SIGTRAP): Likewise.
39413         [POSIX || XPG3] (SIGURG): Likewise.
39414         [POSIX || XPG3] (SIGVTALRM): Likewise.
39415         [POSIX || XPG3] (SIGXCPU): Likewise.
39416         [POSIX || XPG3] (SIGXFSZ): Likewise.
39417         [POSIX] (SA_SIGINFO): Expect.
39418         [XPG3] (siginfo_t): Do not expect type or contents.
39419         [POSIX] (si_pid): Do not expect element.
39420         [POSIX] (si_uid): Likewise.
39421         [POSIX] (si_addr): Likewise.
39422         [POSIX] (si_status): Likewise.
39423         [POSIX] (si_band): Likewise.
39424         [XPG4] (si_value): Likewise.
39425         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
39426         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
39427         [POSIX || XPG3] (ILL_ILLADR): Likewise.
39428         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
39429         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
39430         [POSIX || XPG3] (ILL_PRVREG): Likewise.
39431         [POSIX || XPG3] (ILL_COPROC): Likewise.
39432         [POSIX || XPG3] (ILL_BADSTK): Likewise.
39433         [POSIX || XPG3] (FPE_INTDIV): Likewise.
39434         [POSIX || XPG3] (FPE_INTOVF): Likewise.
39435         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
39436         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
39437         [POSIX || XPG3] (FPE_FLTUND): Likewise.
39438         [POSIX || XPG3] (FPE_FLTRES): Likewise.
39439         [POSIX || XPG3] (FPE_FLTINV): Likewise.
39440         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
39441         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
39442         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
39443         [POSIX || XPG3] (BUS_ADRALN): Likewise.
39444         [POSIX || XPG3] (BUS_ADRERR): Likewise.
39445         [POSIX || XPG3] (BUS_OBJERR): Likewise.
39446         [POSIX || XPG3] (CLD_EXITED): Likewise.
39447         [POSIX || XPG3] (CLD_KILLED): Likewise.
39448         [POSIX || XPG3] (CLD_DUMPED): Likewise.
39449         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
39450         [POSIX || XPG3] (CLD_STOPPED): Likewise.
39451         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
39452         [POSIX || XPG3] (POLL_IN): Likewise.
39453         [POSIX || XPG3] (POLL_OUT): Likewise.
39454         [POSIX || XPG3] (POLL_MSG): Likewise.
39455         [POSIX || XPG3] (POLL_ERR): Likewise.
39456         [POSIX || XPG3] (POLL_PRI): Likewise.
39457         [POSIX || XPG3] (POLL_HUP): Likewise.
39458         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
39459         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
39460         (SIG*): Do not allow.
39461         [XPG3] (si_*): Likewise.
39462         [XPG3] (SI_*): Likewise.
39463         [XPG3 || XPG4] (sigev_*): Likewise.
39464         [XPG3 || XPG4] (SIGEV_*): Likewise.
39465         [XPG3 || XPG4] (sival_*): Likewise.
39466         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
39467         [POSIX || XPG3] (BUS_*): Likewise.
39468         [POSIX || XPG3] (CLD_*): Likewise.
39469         [POSIX || XPG3] (FPE_*): Likewise.
39470         [POSIX || XPG3] (ILL_*): Likewise.
39471         [POSIX || XPG3] (POLL_*): Likewise.
39472         [POSIX || XPG3] (SEGV_*): Likewise.
39473         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
39474         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
39475         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
39476         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
39477         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
39478         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
39479         Specify type and value.
39480         (TVERSLEN): Likewise.
39481         (REGTYPE): Likewise.
39482         (AREGTYPE): Likewise.
39483         (LNKTYPE): Likewise.
39484         (SYMTYPE): Likewise.
39485         (CHRTYPE): Likewise.
39486         (BLKTYPE): Likewise.
39487         (DIRTYPE): Likewise.
39488         (FIFOTYPE): Likewise.
39489         (CONTTYPE): Likewise.
39490         (TSUID): Likewise.
39491         (TSGID): Likewise.
39492         (TSVTX): Likewise.
39493         (TUREAD): Likewise.
39494         (TUWRITE): Likewise.
39495         (TUEXEC): Likewise.
39496         (TGREAD): Likewise.
39497         (TGWRITE): Likewise.
39498         (TGEXEC): Likewise.
39499         (TOREAD): Likewise.
39500         (TOWRITE): Likewise.
39501         (TOEXEC): Likewise.
39502         [POSIX] (TSVTX): Expect constant.
39503
39504 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
39505
39506         * Makefile (tests): Change dependencies to ....
39507         (tests-special): ... additions to this variable.
39508         (tests): Depend on $(tests-special).
39509         * Makerules (check-abi-list): New variable.
39510         (check-abi): Depend on $(check-abi-list).
39511         [$(subdir) = elf] (tests-special): Add
39512         $(objpfx)check-abi-libc.out.
39513         [$(build-shared) = yes && subdir] (tests-special): Add
39514         $(check-abi-list).
39515         [$(build-shared) = yes && subdir] (tests): Do not depend on
39516         check-abi.
39517         * Rules (tests): Depend on $(tests-special).
39518         (xtests): Depend on $(xtests-special).
39519         * catgets/Makefile (tests): Change dependencies to ....
39520         (tests-special): ... additions to this variable.
39521         * conform/Makefile (tests): Change dependencies to ....
39522         (tests-special): ... additions to this variable.
39523         * elf/Makefile (tests): Change dependencies to ....
39524         (tests-special): ... additions to this variable.
39525         * grp/Makefile (tests): Change dependencies to ....
39526         (tests-special): ... additions to this variable.
39527         * iconv/Makefile (xtests): Change dependencies to ....
39528         (xtests-special): ... additions to this variable.
39529         * iconvdata/Makefile (tests): Change dependencies to ....
39530         (tests-special): ... additions to this variable.
39531         * intl/Makefile (tests): Change dependencies to ....
39532         (tests-special): ... additions to this variable.  Also add
39533         $(objpfx)tst-gettext.out.
39534         * io/Makefile (tests): Change dependencies to ....
39535         (tests-special): ... additions to this variable.
39536         * libio/Makefile (tests): Change dependencies to ....
39537         (tests-special): ... additions to this variable.
39538         * malloc/Makefile (tests): Change dependencies to ....
39539         (tests-special): ... additions to this variable.
39540         * misc/Makefile (tests): Change dependencies to ....
39541         (tests-special): ... additions to this variable.
39542         * nptl/Makefile (tests): Change dependencies to ....
39543         (tests-special): ... additions to this variable.
39544         * nptl_db/Makefile (tests): Change dependencies to ....
39545         (tests-special): ... additions to this variable.
39546         * posix/Makefile (tests): Change dependencies to ....
39547         (tests-special): ... additions to this variable.
39548         (xtests): Change dependencies to ....
39549         (xtests-special): ... additions to this variable.
39550         * resolv/Makefile (tests): Change dependencies to ....
39551         (tests-special): ... additions to this variable.
39552         (xtests): Change dependencies to ....
39553         (xtests-special): ... additions to this variable.
39554         * stdio-common/Makefile (tests): Change dependencies to ....
39555         (tests-special): ... additions to this variable.
39556         (do-tst-unbputc): Remove target.
39557         (do-tst-printf): Likewise.
39558         * stdlib/Makefile (tests): Change dependencies to ....
39559         (tests-special): ... additions to this variable.
39560         * string/Makefile (tests): Change dependencies to ....
39561         (tests-special): ... additions to this variable.
39562         * sysdeps/x86/Makefile (tests): Change dependencies to ....
39563         (tests-special): ... additions to this variable.
39564
39565         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
39566         whole file.
39567         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
39568         whole file.
39569         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
39570         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
39571
39572         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
39573         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
39574         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
39575         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
39576         * conform/data/libgen.h-data [XPG3]: Likewise.
39577         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
39578         * conform/data/ndbm.h-data [XPG3]: Likewise.
39579         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
39580         * conform/data/netdb.h-data [XPG3]: Likewise.
39581         * conform/data/netinet/in.h-data [XPG3]: Likewise.
39582         * conform/data/poll.h-data [XPG3]: Likewise.
39583         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
39584         * conform/data/strings.h-data [XPG3]: Likewise.
39585         * conform/data/stropts.h-data [XPG3]: Likewise.
39586         * conform/data/sys/mman.h-data [XPG3]: Likewise.
39587         * conform/data/sys/resource.h-data [XPG3]: Likewise.
39588         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
39589         Likewise.
39590         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
39591         * conform/data/sys/time.h-data [XPG3]: Likewise.
39592         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
39593         * conform/data/sys/uio.h-data [XPG3]: Likewise.
39594         * conform/data/sys/un.h-data [XPG3]: Likewise.
39595         * conform/data/syslog.h-data [XPG3]: Likewise.
39596         * conform/data/ucontext.h-data [XPG3]: Likewise.
39597         * conform/data/utmpx.h-data [XPG3]: Likewise.
39598         * conform/data/varargs.h-data [UNIX98]: Enable file.
39599
39600         * manual/Makefile (INSTALL_INFO): Remove variable setting.
39601
39602         * math/libm-test.inc (struct test_f_f_data): Move expected results
39603         into structure for each rounding mode.
39604         (struct test_ff_f_data): Likewise.
39605         (struct test_ff_f_data_nexttoward): Likewise.
39606         (struct test_fi_f_data): Likewise.
39607         (struct test_fl_f_data): Likewise.
39608         (struct test_if_f_data): Likewise.
39609         (struct test_fff_f_data): Likewise.
39610         (struct test_c_f_data): Likewise.
39611         (struct test_f_f1_data): Likewise.
39612         (struct test_fF_f1_data): Likewise.
39613         (struct test_ffI_f1_data): Likewise.
39614         (struct test_c_c_data): Likewise.
39615         (struct test_cc_c_data): Likewise.
39616         (struct test_f_i_data): Likewise.
39617         (struct test_ff_i_data): Likewise.
39618         (struct test_f_l_data): Likewise.
39619         (struct test_f_L_data): Likewise.
39620         (struct test_fFF_11_data): Likewise.
39621         (RM_): New macro.
39622         (RM_FE_DOWNWARD): Likewise.
39623         (RM_FE_TONEAREST): Likewise.
39624         (RM_FE_TOWARDZERO): Likewise.
39625         (RM_FE_UPWARD): Likewise.
39626         (RUN_TEST_LOOP_f_f): Update references to expected results.
39627         (RUN_TEST_LOOP_2_f): Likewise.
39628         (RUN_TEST_LOOP_fff_f): Likewise.
39629         (RUN_TEST_LOOP_c_f): Likewise.
39630         (RUN_TEST_LOOP_f_f1): Likewise.
39631         (RUN_TEST_LOOP_fF_f1): Likewise.
39632         (RUN_TEST_LOOP_fI_f1): Likewise.
39633         (RUN_TEST_LOOP_ffI_f1): Likewise.
39634         (RUN_TEST_LOOP_c_c): Likewise.
39635         (RUN_TEST_LOOP_cc_c): Likewise.
39636         (RUN_TEST_LOOP_f_i): Likewise.
39637         (RUN_TEST_LOOP_f_i_tg): Likewise.
39638         (RUN_TEST_LOOP_ff_i_tg): Likewise.
39639         (RUN_TEST_LOOP_f_b): Likewise.
39640         (RUN_TEST_LOOP_f_b_tg): Likewise.
39641         (RUN_TEST_LOOP_f_l): Likewise.
39642         (RUN_TEST_LOOP_f_L): Likewise.
39643         (RUN_TEST_LOOP_fFF_11): Likewise.
39644         * math/gen-libm-test.pl (parse_args): Output four copies of
39645         expected results for each test.
39646
39647         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
39648         (__ASSUME_UTIMES): Remove.
39649         * sysdeps/unix/sysv/linux/tile/kernel-features.h
39650         (__ASSUME_UTIMES): Likewise.
39651
39652         * math/gen-auto-libm-tests.c: Update comment on output format.
39653         (output_for_one_input_case): Generate before-rounding and
39654         after-rounding information as conditions on output flags not
39655         floating-point format.
39656         * math/auto-libm-test-out: Regenerated.
39657         * math/gen-libm-test.pl (cond_value): New function.
39658         (or_cond_value): Use cond_value.
39659         (generate_testfile): Handle conditional exceptions.
39660
39661 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
39662
39663         * math/libm-test.inc (max_valid_error): New variable.
39664         (init_max_error): Take new argument specifying whether function
39665         results are exactly determined.  Set max_valid_error and bound
39666         other variables for errors based on this argument.
39667         (set_max_error): Do not record results above max_valid_error.
39668         (check_float_internal): Only accept errors of up to 0.5ulps if
39669         also at most max_valid_error.
39670         (START): Take new argument EXACT and pass it to init_max_error.
39671         (acos_test): Update call to START.
39672         (acos_test_tonearest): Likewise.
39673         (acos_test_towardzero): Likewise.
39674         (acos_test_downward): Likewise.
39675         (acos_test_upward): Likewise.
39676         (acosh_test): Likewise.
39677         (asin_test): Likewise.
39678         (asin_test_tonearest): Likewise.
39679         (asin_test_towardzero): Likewise.
39680         (asin_test_downward): Likewise.
39681         (asin_test_upward): Likewise.
39682         (asinh_test): Likewise.
39683         (atan_test): Likewise.
39684         (atanh_test): Likewise.
39685         (atan2_test): Likewise.
39686         (cabs_test): Likewise.
39687         (cacos_test): Likewise.
39688         (cacosh_test): Likewise.
39689         (carg_test): Likewise.
39690         (casin_test): Likewise.
39691         (casinh_test): Likewise.
39692         (catan_test): Likewise.
39693         (catanh_test): Likewise.
39694         (cbrt_test): Likewise.
39695         (ccos_test): Likewise.
39696         (ccosh_test): Likewise.
39697         (ceil_test): Likewise.
39698         (cexp_test): Likewise.
39699         (cimag_test): Likewise.
39700         (clog_test): Likewise.
39701         (clog10_test): Likewise.
39702         (conj_test): Likewise.
39703         (copysign_test): Likewise.
39704         (cos_test): Likewise.
39705         (cos_test_tonearest): Likewise.
39706         (cos_test_towardzero): Likewise.
39707         (cos_test_downward): Likewise.
39708         (cos_test_upward): Likewise.
39709         (cosh_test): Likewise.
39710         (cosh_test_tonearest): Likewise.
39711         (cosh_test_towardzero): Likewise.
39712         (cosh_test_downward): Likewise.
39713         (cosh_test_upward): Likewise.
39714         (cpow_test): Likewise.
39715         (cproj_test): Likewise.
39716         (creal_test): Likewise.
39717         (csin_test): Likewise.
39718         (csinh_test): Likewise.
39719         (csqrt_test): Likewise.
39720         (ctan_test): Likewise.
39721         (ctan_test_tonearest): Likewise.
39722         (ctan_test_towardzero): Likewise.
39723         (ctan_test_downward): Likewise.
39724         (ctan_test_upward): Likewise.
39725         (ctanh_test): Likewise.
39726         (ctanh_test_tonearest): Likewise.
39727         (ctanh_test_towardzero): Likewise.
39728         (ctanh_test_downward): Likewise.
39729         (ctanh_test_upward): Likewise.
39730         (erf_test): Likewise.
39731         (erfc_test): Likewise.
39732         (exp_test): Likewise.
39733         (exp_test_tonearest): Likewise.
39734         (exp_test_towardzero): Likewise.
39735         (exp_test_downward): Likewise.
39736         (exp_test_upward): Likewise.
39737         (exp10_test): Likewise.
39738         (exp10_test_tonearest): Likewise.
39739         (exp10_test_towardzero): Likewise.
39740         (exp10_test_downward): Likewise.
39741         (exp10_test_upward): Likewise.
39742         (pow10_test): Likewise.
39743         (exp2_test): Likewise.
39744         (expm1_test): Likewise.
39745         (expm1_test_tonearest): Likewise.
39746         (expm1_test_towardzero): Likewise.
39747         (expm1_test_downward): Likewise.
39748         (expm1_test_upward): Likewise.
39749         (fabs_test): Likewise.
39750         (fdim_test): Likewise.
39751         (floor_test): Likewise.
39752         (fma_test): Likewise.
39753         (fma_test_towardzero): Likewise.
39754         (fma_test_downward): Likewise.
39755         (fma_test_upward): Likewise.
39756         (fmax_test): Likewise.
39757         (fmin_test): Likewise.
39758         (fmod_test): Likewise.
39759         (fpclassify_test): Likewise.
39760         (frexp_test): Likewise.
39761         (hypot_test): Likewise.
39762         (ilogb_test): Likewise.
39763         (isfinite_test): Likewise.
39764         (finite_test): Likewise.
39765         (isgreater_test): Likewise.
39766         (isgreaterequal_test): Likewise.
39767         (isinf_test): Likewise.
39768         (isless_test): Likewise.
39769         (islessequal_test): Likewise.
39770         (islessgreater_test): Likewise.
39771         (isnan_test): Likewise.
39772         (isnormal_test): Likewise.
39773         (issignaling_test): Likewise.
39774         (isunordered_test): Likewise.
39775         (j0_test): Likewise.
39776         (j1_test): Likewise.
39777         (jn_test): Likewise.
39778         (ldexp_test): Likewise.
39779         (lgamma_test): Likewise.
39780         (gamma_test): Likewise.
39781         (lrint_test): Likewise.
39782         (lrint_test_tonearest): Likewise.
39783         (lrint_test_towardzero): Likewise.
39784         (lrint_test_downward): Likewise.
39785         (lrint_test_upward): Likewise.
39786         (llrint_test): Likewise.
39787         (llrint_test_tonearest): Likewise.
39788         (llrint_test_towardzero): Likewise.
39789         (llrint_test_downward): Likewise.
39790         (llrint_test_upward): Likewise.
39791         (log_test): Likewise.
39792         (log10_test): Likewise.
39793         (log1p_test): Likewise.
39794         (log2_test): Likewise.
39795         (logb_test): Likewise.
39796         (logb_test_downward): Likewise.
39797         (lround_test): Likewise.
39798         (llround_test): Likewise.
39799         (modf_test): Likewise.
39800         (nearbyint_test): Likewise.
39801         (nextafter_test): Likewise.
39802         (nexttoward_test): Likewise.
39803         (pow_test): Likewise.
39804         (pow_test_tonearest): Likewise.
39805         (pow_test_towardzero): Likewise.
39806         (pow_test_downward): Likewise.
39807         (pow_test_upward): Likewise.
39808         (remainder_test): Likewise.
39809         (drem_test): Likewise.
39810         (remainder_test_tonearest): Likewise.
39811         (drem_test_tonearest): Likewise.
39812         (remainder_test_towardzero): Likewise.
39813         (drem_test_towardzero): Likewise.
39814         (remainder_test_downward): Likewise.
39815         (drem_test_downward): Likewise.
39816         (remainder_test_upward): Likewise.
39817         (drem_test_upward): Likewise.
39818         (remquo_test): Likewise.
39819         (rint_test): Likewise.
39820         (rint_test_tonearest): Likewise.
39821         (rint_test_towardzero): Likewise.
39822         (rint_test_downward): Likewise.
39823         (rint_test_upward): Likewise.
39824         (round_test): Likewise.
39825         (scalb_test): Likewise.
39826         (scalbn_test): Likewise.
39827         (scalbln_test): Likewise.
39828         (signbit_test): Likewise.
39829         (sin_test): Likewise.
39830         (sin_test_tonearest): Likewise.
39831         (sin_test_towardzero): Likewise.
39832         (sin_test_downward): Likewise.
39833         (sin_test_upward): Likewise.
39834         (sincos_test): Likewise.
39835         (sinh_test): Likewise.
39836         (sinh_test_tonearest): Likewise.
39837         (sinh_test_towardzero): Likewise.
39838         (sinh_test_downward): Likewise.
39839         (sinh_test_upward): Likewise.
39840         (sqrt_test): Likewise.
39841         (sqrt_test_tonearest): Likewise.
39842         (sqrt_test_towardzero): Likewise.
39843         (sqrt_test_downward): Likewise.
39844         (sqrt_test_upward): Likewise.
39845         (tan_test): Likewise.
39846         (tan_test_tonearest): Likewise.
39847         (tan_test_towardzero): Likewise.
39848         (tan_test_downward): Likewise.
39849         (tan_test_upward): Likewise.
39850         (tanh_test): Likewise.
39851         (tgamma_test): Likewise.
39852         (trunc_test): Likewise.
39853         (y0_test): Likewise.
39854         (y1_test): Likewise.
39855         (yn_test): Likewise.
39856         (significand_test): Likewise.
39857
39858         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
39859         individual tests in comment.
39860         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
39861         (prev_max_error): New variable.
39862         (prev_real_max_error): Likewise.
39863         (prev_imag_max_error): Likewise.
39864         (compare_ulp_data): Don't refer to test names in comment.
39865         (find_test_ulps): Remove function.
39866         (find_function_ulps): Likewise.
39867         (find_complex_function_ulps): Likewise.
39868         (init_max_error): Take function name as argument.  Look up ulps
39869         for that function.
39870         (print_ulps): Remove function.
39871         (print_max_error): Use prev_max_error instead of calling
39872         find_function_ulps.
39873         (print_complex_max_error): Use prev_real_max_error and
39874         prev_imag_max_error instead of calling find_complex_function_ulps.
39875         (check_float_internal): Take max_ulp parameter instead of calling
39876         find_test_ulps.  Don't call print_ulps.
39877         (check_float): Update call to check_float_internal.
39878         (check_complex): Update calls to check_float_internal.
39879         (START): Pass argument to init_max_error.
39880         * math/gen-libm-test.pl (%results): Don't include "kind"
39881         information.
39882         (parse_ulps): Don't handle ulps of individual tests.
39883         (print_ulps_file): Likewise.
39884         (output_ulps): Likewise.
39885         * math/README.libm-test: Update.
39886         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
39887         individual tests.
39888         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
39889         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
39890         * sysdeps/arm/libm-test-ulps: Likewise.
39891         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
39892         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
39893         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
39894         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
39895         * sysdeps/microblaze/libm-test-ulps: Likewise.
39896         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
39897         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
39898         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39899         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
39900         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
39901         * sysdeps/sh/libm-test-ulps: Likewise.
39902         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
39903         * sysdeps/tile/libm-test-ulps: Likewise.
39904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39905
39906 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
39907
39908         * math/libm-test.inc (print_complex_max_error): Check separately
39909         whether real and imaginary errors are within allowed range and
39910         pass 0 to print_complex_function_ulps instead of value within
39911         allowed range.
39912
39913 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
39914
39915         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
39916         formatting.
39917         (get_handles_fopen): Likewise.
39918         (do_write_test): Likewise.
39919
39920         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
39921
39922         * libio/fileops.c (do_ftell): Use cached offset when
39923         available.
39924         * libio/iofwide.c (do_ftell_wide): Likewise.
39925         * libio/iofdopen.c (_IO_new_fdopen): Don't use
39926         _IO_file_attach.
39927         * libio/wfileops.c (_IO_fwide): Don't cache offset.
39928
39929         [BZ #16532]
39930         * libio/libioP.h (get_file_offset): New function.
39931         * libio/fileops.c (get_file_offset): Likewise.
39932         (do_ftell): Likewise.
39933         (_IO_new_file_seekoff): Split out ftell logic.
39934         * libio/wfileops.c (do_ftell_wide): Likewise.
39935         (_IO_wfile_seekoff): Split out ftell logic.
39936         * libio/tst-ftell-active-handler.c: New test case.
39937         * libio/Makefile (tests): Add it.
39938
39939 2014-03-03  Roland McGrath  <roland@hack.frob.com>
39940
39941         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
39942         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
39943
39944 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
39945
39946         [BZ #16639]
39947         * nscd/connections.c (nscd_init): Call do_exit.
39948         (start_threads): Call do_exit and notify_parent.
39949         (begin_drop_privileges): Call do_exit.
39950         (finish_drop_privileges): Likewise.
39951         * nscd/selinux.c (preserve_capabilities): Likewise.
39952         (install_real_capabilities): Likewise.
39953         (nscd_selinux_enabled): Likewise.
39954         (avc_create_thread): Likewise.
39955         (avc_alloc_lock): Likewise.
39956         (nscd_avc_init): Likewise.
39957         * nscd/nscd.c (parent_fd): New static variable.
39958         (main): Create a pipe between parent and child processes.
39959         Skip closing parent_fd.
39960         (monitor_child): New function.
39961         (do_exit): Likewise.
39962         (notify_parent): Likewise.
39963         * nscd/nscd.h (notify_parent): Likewise.
39964         (do_exit): Likewise.
39965
39966 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
39967
39968         * malloc/malloc.c (__libc_calloc): Revert last change.
39969
39970 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39971
39972         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39973
39974 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
39975
39976         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
39977         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
39978         implementation.
39979         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39980         (__libc_ifunc_impl_list): Likewise.
39981         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
39982         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
39983         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
39984         * string/strrchr.c: Define STRRCHR.
39985
39986 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
39987
39988         * benchtest/bench-strtok.c (simple_strtok): Delete.
39989         (strtok_string): Use as benchmark.
39990         * string/strtok (STRTOK): New macro.
39991
39992 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
39993
39994         * manual/threads.texi: Add header and standard comments to all
39995         functions.
39996
39997         * elf/dl-lookup.c (check_match): New function.
39998         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
39999         (do_lookup_x): Remove nested function check_match. Use non-nested
40000         function check_match.
40001
40002 2014-02-28  Roland McGrath  <roland@hack.frob.com>
40003
40004         * csu/Makefile (generated, before-compile): Use += rather than =.
40005         * catgets/Makefile (generated, generated-dirs): Likewise.
40006         * debug/Makefile (generated): Likewise.
40007         * dlfcn/Makefile (generated): Likewise.
40008         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
40009         * iconvdata/Makefile (before-compile, generated): Likewise.
40010         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
40011         * libio/Makefile (generated): Likewise.
40012         * malloc/Makefile (generated): Likewise.
40013         * manual/Makefile (generated, generated-dirs): Likewise.
40014         * misc/Makefile (generated): Likewise.
40015         * posix/Makefile (generated): Likewise.
40016         * resolv/Makefile (generated): Likewise.
40017         * sunrpc/Makefile (generated, generated-dirs): Likewise.
40018         * timezone/Makefile (generated, generated-dirs): Likewise.
40019
40020         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
40021
40022 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40023
40024         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40025         power8 implementation.
40026         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
40027         file: POWER8 llround ifunc implementation.
40028         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
40029         (__lllround): Add POWER8 implementation.
40030         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
40031         POWER8 llround implementation.
40032
40033         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
40034         power8 implementation.
40035         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
40036         file: POWER8 llrint ifunc implementation.
40037         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
40038         Add POWER8 implementation.
40039         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
40040         POWER8 llrint implementation.
40041
40042         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
40043         power8 implementation.
40044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
40045         file: POWER8 finite ifunc implementation.
40046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
40047         Add POWER8 implementation.
40048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
40049         Likewise.
40050         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
40051         POWER8 finite implementation.
40052         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
40053
40054         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
40055         power8 implementation.
40056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
40057         file: POWER8 isinf ifunc implementation.
40058         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
40059         POWER8 implementation.
40060         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
40061         Likewise.
40062         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
40063         isinf implementation.
40064         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
40065
40066         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
40067         (INIT_ARCH): Add hwcap2 initialization.
40068         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40069         power8 implementation.
40070         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
40071         file: POWER8 isnan ifunc implementation.
40072         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
40073         POWER8 implementation.
40074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
40075         Likewise.
40076         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
40077         isnan implementation.
40078         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
40079
40080 2014-02-27  Joey Ye  <joey.ye@arm.com>
40081
40082         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
40083         (_FP_NANFRAC_Q): Set to zero.
40084
40085 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40086
40087         [BZ #16623]
40088         * math/auto-libm-test-in: New test inputs.
40089         * math/auto-libm-test-out: Regenerate.
40090         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
40091         and DA.
40092         (__cos): Likewise.
40093         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
40094
40095 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
40096
40097         * scripts/evaluate-test.sh: Take new argument indicating whether
40098         failure is expected.
40099         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
40100         indicating whether failure is expected.
40101         * conform/Makefile (test-xfail-run-conformtest): New variable.
40102         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
40103         level.
40104         * posix/Makefile (test-xfail-annexc): New variable.
40105         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
40106
40107 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
40108
40109         * argp/Makefile: Include Makeconfig immediately after defining
40110         subdir.
40111         * assert/Makefile: Likewise.
40112         * benchtests/Makefile: Likewise.
40113         * catgets/Makefile: Likewise.
40114         * conform/Makefile: Likewise.
40115         * crypt/Makefile: Likewise.
40116         * csu/Makefile: Likewise.
40117         (all): Remove target.
40118         * ctype/Makefile: Include Makeconfig immediately after defining
40119         subdir.
40120         * debug/Makefile: Likewise.
40121         * dirent/Makefile: Likewise.
40122         * dlfcn/Makefile: Likewise.
40123         * gmon/Makefile: Likewise.
40124         * gnulib/Makefile: Likewise.
40125         * grp/Makefile: Likewise.
40126         * gshadow/Makefile: Likewise.
40127         * hesiod/Makefile: Likewise.
40128         * hurd/Makefile: Likewise.
40129         (all): Remove target.
40130         * iconvdata/Makefile: Include Makeconfig immediately after
40131         defining subdir.
40132         * inet/Makefile: Likewise.
40133         * intl/Makefile: Likewise.
40134         * io/Makefile: Likewise.
40135         * libio/Makefile: Likewise.
40136         (all): Remove target.
40137         * locale/Makefile: Include Makeconfig immediately after defining
40138         subdir.
40139         * login/Makefile: Likewise.
40140         * mach/Makefile: Likewise.
40141         (all): Remove target.
40142         * malloc/Makefile: Include Makeconfig immediately after defining
40143         subdir.
40144         (all): Remove target.
40145         * manual/Makefile: Include Makeconfig immediately after defining
40146         subdir.
40147         * math/Makefile: Likewise.
40148         * misc/Makefile: Likewise.
40149         * nis/Makefile: Likewise.
40150         * nss/Makefile: Likewise.
40151         * po/Makefile: Likewise.
40152         (all): Remove target.
40153         * posix/Makefile: Include Makeconfig immediately after defining
40154         subdir.
40155         * pwd/Makefile: Likewise.
40156         * resolv/Makefile: Likewise.
40157         * resource/Makefile: Likewise.
40158         * rt/Makefile: Likewise.
40159         * setjmp/Makefile: Likewise.
40160         * shadow/Makefile: Likewise.
40161         * signal/Makefile: Likewise.
40162         * socket/Makefile: Likewise.
40163         * soft-fp/Makefile: Likewise.
40164         * stdio-common/Makefile: Likewise.
40165         * stdlib/Makefile: Likewise.
40166         * streams/Makefile: Likewise.
40167         * string/Makefile: Likewise.
40168         * sunrpc/Makefile: Likewise.
40169         (all): Remove target.
40170         * sysvipc/Makefile: Include Makeconfig immediately after defining
40171         subdir.
40172         * termios/Makefile: Likewise.
40173         * time/Makefile: Likewise.
40174         * timezone/Makefile: Likewise.
40175         (all): Remove target.
40176         * wcsmbs/Makefile: Include Makeconfig immediately after defining
40177         subdir.
40178         * wctype/Makefile: Likewise.
40179
40180 2014-02-26  Steve Ellcey  <sellcey@mips.com>
40181
40182         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
40183         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
40184         (libc_feholdexcept_setround_mips): Ditto.
40185         (libc_feholdsetround): New.
40186         (libc_feholdsetroundf): New.
40187         (libc_feholdsetroundl): New.
40188         (libc_feupdateenv_test_mips): New.
40189         (libc_feupdateenv_test): New.
40190         (libc_feupdateenv_testf): New.
40191         (libc_feupdateenv_testl): New.
40192         (libc_feresetround): New.
40193         (libc_feresetroundf): New.
40194         (libc_feresetroundl): New.
40195         (libc_fetestexcept_mips): New.
40196         (libc_fetestexcept): New.
40197         (libc_fetestexceptf): New.
40198         (libc_fetestexceptl): New.
40199         (HAVE_RM_CTX): New.
40200         (libc_feholdexcept_setround_mips_ctx): New.
40201         (libc_feholdexcept_setround_ctx): New.
40202         (libc_feholdexcept_setroundf_ctx): New.
40203         (libc_feholdexcept_setroundl_ctx): New.
40204         (libc_fesetenv_mips_ctx): New.
40205         (libc_fesetenv_ctx): New.
40206         (libc_fesetenv_ctxf): New.
40207         (libc_fesetenv_ctxl): New.
40208         (libc_feupdateenv_mips_ctx): New.
40209         (libc_feupdateenv_ctx): New.
40210         (libc_feupdateenvf_ctx): New.
40211         (libc_feupdateenvl_ctx): New.
40212         (libc_feholdsetround_mips_ctx): New.
40213         (libc_feholdsetround_ctx): New.
40214         (libc_feholdsetroundf_ctx): New.
40215         (libc_feholdsetroundl_ctx): New.
40216         (libc_feresetround_mips_ctx): New.
40217         (libc_feresetround_ctx): New.
40218         (libc_feresetroundf_ctx): New.
40219         (libc_feresetroundl_ctx): New.
40220
40221 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
40222
40223         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
40224
40225         * manual/ipc.texi: New file.
40226         * manual/Makefile (chapters): Add ipc.
40227         * manual/job.texi: Add "Inter-Process Communication" to next.
40228         * manual/process.texi: Add "Inter-Process Communication" to prev.
40229
40230 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40231
40232         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40233
40234 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
40235
40236         * malloc/malloc.c (__libc_calloc): Simplify implementation.
40237
40238         * manual/arith.texi: Fix spaces after sentences.
40239         * manual/charset.texi: Likewise.
40240         * manual/errno.texi: Likewise.
40241         * manual/install.texi: Likewise.
40242         * manual/llio.texi: Likewise.
40243         * manual/locale.texi: Likewise.
40244         * manual/maint.texi: Likewise.
40245         * manual/math.texi: Likewise.
40246         * manual/memory.texi: Likewise.
40247         * manual/message.texi: Likewise.
40248         * manual/probes.texi: Likewise.
40249         * manual/resource.texi: Likewise.
40250         * manual/signal.texi: Likewise.
40251         * manual/socket.texi: Likewise.
40252         * manual/stdio.texi: Likewise.
40253         * manual/string.texi: Likewise.
40254         * manual/time.texi: Likewise.
40255         * manual/users.texi: Likewise.
40256
40257 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
40258
40259         [BZ #16632]
40260         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
40261         _DEFAULT_SOURCE is defined.
40262
40263 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
40264             Carlos O'Donell  <carlos@redhat.com>
40265
40266         [BZ #16613]
40267         * elf/dl-tls.c (_dl_count_modids): New function.
40268         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
40269         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
40270         audit library and increment generation counter.
40271         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
40272         * elf/tst-audit9.c: New file.
40273         * elf/tst-auditmod9a.c: New file.
40274         * elf/tst-auditmod9b.c: New file.
40275         * elf/Makefile: Add rules to build and run tst-audit9.
40276
40277 2014-02-25  Florian Weimer  <fweimer@redhat.com>
40278
40279         [BZ #15347]
40280         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
40281
40282 2014-02-25  Will Newton  <will.newton@linaro.org>
40283
40284         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
40285         (__longjmp): Restore sp and lr before restoring callee
40286         saved registers.  Add longjmp and longjmp_target
40287         SystemTap probe point.
40288         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
40289         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
40290         Define to zero to match jmpbuf layout.
40291         * sysdeps/arm/setjmp.S: Include stap-probe.h.
40292         (__sigsetjmp): Save sp and lr before saving callee
40293         saved registers.  Add setjmp SystemTap probe point.
40294
40295 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
40296
40297         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
40298
40299 2014-02-24  Andreas Schwab  <schwab@suse.de>
40300
40301         [BZ #15804]
40302         * elf/pldd.c (wait_for_ptrace_stop): New function.
40303         (main): Call it after attaching.
40304
40305 2014-02-22  Roland McGrath  <roland@hack.frob.com>
40306
40307         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
40308         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
40309         Versions files is now verboten.
40310         * hurd/Versions (libc: GLIBC_2.0):
40311         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
40312         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
40313         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
40314         * mach/Versions: Likewise.
40315
40316         * csu/Versions: Remove unused %include.
40317         * resolv/Versions: Likewise.
40318
40319 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
40320
40321         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
40322         ($(objpfx)check-local-headers.out): Likewise.
40323         ($(objpfx)begin-end-check.out): Likewise.
40324         * Makerules (check-abi-%.out): Likewise.
40325         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
40326         ($(objpfx)test2.cat): Likewise.
40327         ($(objpfx)de/libc.cat): Likewise.
40328         ($(objpfx)test-gencat.out): Likewise.
40329         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
40330         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
40331         ($(objpfx)noload-mem): Likewise.
40332         ($(objpfx)tst-pathopt.out): Likewise.
40333         ($(objpfx)tst-rtld-load-self.out): Likewise.
40334         ($(objpfx)tst-array1-cmp.out): Likewise.
40335         ($(objpfx)tst-array1-static-cmp.out): Likewise.
40336         ($(objpfx)tst-array2-cmp.out): Likewise.
40337         ($(objpfx)tst-array3-cmp.out): Likewise.
40338         ($(objpfx)tst-array4-cmp.out): Likewise.
40339         ($(objpfx)tst-array5-cmp.out): Likewise.
40340         ($(objpfx)tst-array5-static-cmp.out): Likewise.
40341         ($(objpfx)check-textrel.out): Likewise.
40342         ($(objpfx)check-execstack.out): Likewise.
40343         ($(objpfx)check-localplt.out): Likewise.
40344         ($(objpfx)order2-cmp.out): Likewise.
40345         ($(objpfx)tst-leaks1-mem): Likewise.
40346         ($(objpfx)tst-leaks1-static-mem): Likewise.
40347         ($(objpfx)tst-initorder-cmp.out): Likewise.
40348         ($(objpfx)tst-initorder2-cmp.out): Likewise.
40349         ($(objpfx)tst-unused-dep.out): Likewise.
40350         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
40351         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
40352         * iconv/Makefile (test-iconvconfig): Likewise.
40353         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
40354         ($(objpfx)iconv-test.out): Likewise.
40355         ($(objpfx)tst-tables.out): Likewise.
40356         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
40357         ($(objpfx)tst-gettext.out): Likewise.
40358         ($(objpfx)tst-translit.out): Likewise.
40359         ($(objpfx)tst-gettext2.out): Likewise.
40360         ($(objpfx)tst-gettext4.out): Likewise.
40361         ($(objpfx)tst-gettext6.out): Likewise.
40362         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
40363         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
40364         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
40365         ($(objpfx)tst-fopenloc-mem.out): Likewise.
40366         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
40367         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
40368         * posix/Makefile ($(objpfx)globtest.out): Likewise.
40369         ($(objpfx)wordexp-tst.out): Likewise.
40370         ($(objpfx)annexc.out): Likewise.
40371         ($(objpfx)tst-fnmatch-mem): Likewise.
40372         ($(objpfx)bug-regex2-mem): Likewise.
40373         ($(objpfx)bug-regex14-mem): Likewise.
40374         ($(objpfx)bug-regex21-mem): Likewise.
40375         ($(objpfx)bug-regex31-mem): Likewise.
40376         ($(objpfx)tst-vfork3-mem): Likewise.
40377         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
40378         ($(objpfx)tst-pcre-mem): Likewise.
40379         ($(objpfx)tst-boost-mem): Likewise.
40380         ($(objpfx)tst-getconf.out): Likewise.
40381         ($(objpfx)bug-ga2-mem): Likewise.
40382         ($(objpfx)bug-glob2-mem): Likewise.
40383         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
40384         ($(objpfx)mtrace-tst-leaks2): Likewise.
40385         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
40386         ($(objpfx)tst-printf.out): Likewise.
40387         ($(objpfx)tst-setvbuf1.out): Likewise.
40388         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
40389         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
40390         ($(objpfx)tst-fmtmsg.out): Likewise.
40391         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
40392         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
40393
40394         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
40395         * bits/sigaction.h [__USE_MISC]: Likewise.
40396         * bits/waitstatus.h: Update #endif comments.
40397         * ctype/ctype.h: Likewise.
40398         * dirent/dirent.h: Likewise.
40399         [__USE_MISC]: Remove redundant conditionals.
40400         * grp/grp.h: Update #endif comments.
40401         [__USE_GNU]: Remove redundant conditionals.
40402         [__USE_MISC]: Likewise.
40403         * inet/netinet/in.h [__USE_GNU]: Likewise.
40404         * io/sys/stat.h [__USE_MISC]: Likewise.
40405         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
40406         * libio/bits/stdio.h: Update #endif comments.
40407         [__USE_MISC]: Remove redundant conditionals.
40408         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
40409         * libio/stdio.h: Update #endif comments.
40410         [__USE_MISC]: Remove redundant conditionals.
40411         * math/bits/math-finite.h [__USE_MISC]: Likewise.
40412         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
40413         * math/math.h: Update #else and #endif comments.
40414         [__USE_MISC]: Remove redundant conditionals.
40415         * misc/sys/uio.h: Update #endif comments.
40416         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
40417         * posix/glob.h [__USE_MISC]: Likewise.
40418         * posix/sys/types.h: Update #endif comments.
40419         [__USE_MISC]: Remove redundant conditionals.
40420         * posix/sys/wait.h: Update #endif comments.
40421         [__USE_MISC]: Remove redundant conditionals.
40422         * posix/unistd.h: Update #endif comments.
40423         [__USE_MISC]: Remove redundant conditionals.
40424         * pwd/pwd.h [__USE_GNU]: Likewise.
40425         [__USE_MISC]: Likewise.
40426         * resolv/netdb.h [__USE_GNU]: Likewise.
40427         * signal/signal.h: Update #endif comments.
40428         [__USE_MISC]: Remove redundant conditionals.
40429         * stdlib/stdlib.h: Update #else and #endif comments.
40430         [__USE_MISC]: Remove redundant conditionals.
40431         [__USE_GNU]: Likewise.
40432         * string/bits/string2.h [__USE_MISC]: Likewise.
40433         * string/string.h: Update #endif comments.
40434         [__USE_MISC]: Remove redundant conditionals.
40435         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
40436         Likewise.
40437         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
40438         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
40439         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
40440         Likewise.
40441         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
40442         Likewise.
40443         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
40444         comments.
40445         [__USE_MISC]: Remove redundant conditionals.
40446         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
40447         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
40448         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
40449         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
40450         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
40451         Likewise.
40452         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
40453         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
40454         Likewise.
40455         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
40456         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
40457         Likewise.
40458         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
40459         Likewise.
40460         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
40461         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
40462         Likewise.
40463         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
40464         Likewise.
40465         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
40466         * sysdeps/x86/bits/string.h: Update #endif comments.
40467         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
40468         conditionals.
40469         * time/sys/time.h: Update #endif comments.
40470         * time/time.h: Likewise.
40471         [__USE_MISC]: Remove redundant conditionals.
40472
40473 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
40474
40475         [BZ #16600]
40476         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
40477
40478 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
40479
40480         * Versions.def (librt): Add GLIBC_2.17.
40481
40482 2014-02-21  Adam Conrad  <adconrad@0c3.net>
40483
40484         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
40485         synonym for _SYS_AUXV_H to allow direct inclusion.
40486         * sysdeps/sparc/bits/hwcap.h: Likewise.
40487         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
40488         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
40489         * sysdeps/sparc/sysdep.h: Likewise.
40490
40491 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
40492
40493         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
40494
40495 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
40496
40497         * benchtests/bench-strrchr.c: Print length instead of position.
40498
40499 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
40500
40501         [BZ #16611]
40502         * sysdeps/unix/sysv/linux/kernel-features.h
40503         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
40504         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
40505         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
40506         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
40507         Likewise.
40508         [__i386__ || __powerpc__ || __sh__ || __sparc__]
40509         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40510         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
40511         (__ASSUME_SENDMMSG): Define instead of using previous
40512         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
40513         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
40514         (__ASSUME_SENDMMSG_SYSCALL): Define.
40515         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
40516         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
40517         Likewise.
40518         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40519         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
40520         Likewise.
40521         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
40522         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
40523         Likewise.
40524         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
40525         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
40526         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
40527         [__ASSUME_SENDMMSG]: Change conditionals to
40528         [__ASSUME_SENDMMSG_SOCKETCALL].
40529         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40530         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
40531         Define.
40532         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40533         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
40534         Likewise.
40535         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
40536         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
40537         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
40538         [!__ASSUME_SENDMMSG]: Change conditional to
40539         [!__ASSUME_SENDMMSG_SOCKETCALL].
40540         * sysdeps/unix/sysv/linux/tile/kernel-features.h
40541         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
40542         Define.
40543
40544         [BZ #16610]
40545         * sysdeps/unix/sysv/linux/kernel-features.h
40546         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
40547         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
40548         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
40549         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
40550         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
40551         [__i386__ || __sparc__]
40552         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40553         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
40554         (__ASSUME_RECVMMSG): Define instead of using previous
40555         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
40556         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
40557         (__ASSUME_RECVMMSG_SYSCALL): Define.
40558         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
40559         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40560         Likewise.
40561         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40562         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40563         Likewise.
40564         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
40565         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40566         Likewise.
40567         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
40568         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
40569         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
40570         [__ASSUME_RECVMMSG]: Change condition to
40571         [__ASSUME_RECVMMSG_SOCKETCALL].
40572         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40573         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40574         Define.
40575         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
40576         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40577         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
40578         Likewise.
40579         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
40580         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
40581         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
40582         [!__ASSUME_RECVMMSG]: Change condition to
40583         [!__ASSUME_RECVMMSG_SOCKETCALL].
40584         * sysdeps/unix/sysv/linux/tile/kernel-features.h
40585         (__ASSUME_RECVMMSG_SYSCALL): Define.
40586
40587         [BZ #16609]
40588         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
40589         __powerpc__ || __s390__ || __sh__ || __sparc__]
40590         (__ASSUME_SOCKETCALL): Define.
40591         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
40592         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
40593         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
40594         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
40595         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
40596         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
40597         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
40598         (__ASSUME_ACCEPT4): Define instead of using previous
40599         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
40600         __powerpc__ || __sparc__ || __s390__)] condition.
40601         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
40602         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
40603         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
40604         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
40605         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
40606         [!__ASSUME_ACCEPT4]: Change condition to
40607         [!__ASSUME_ACCEPT4_SOCKETCALL].
40608         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
40609         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
40610         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
40611         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40612         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
40613         __ASSUME_ACCEPT4_SYSCALL.
40614         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
40615         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
40616         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
40617         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
40618         __ASSUME_ACCEPT4_SYSCALL.
40619         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
40620         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
40621         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
40622         [__ASSUME_ACCEPT4]: Change condition to
40623         [__ASSUME_ACCEPT4_SOCKETCALL].
40624         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
40625         (__ASSUME_SOCKETCALL): Define.
40626         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
40627         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40628         (__ASSUME_SOCKETCALL): Define.
40629         (__ASSUME_ACCEPT4): Remove.
40630         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
40631         Define.
40632         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40633         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
40634         Likewise.
40635         * sysdeps/unix/sysv/linux/tile/kernel-features.h
40636         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
40637
40638         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
40639         macro.
40640         (HWCAP_ARM_LPAE): Likewise.
40641         (HWCAP_ARM_EVTSTRM): Likewise.
40642         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
40643         Add vpfd32, lpae and evtstrm.
40644         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
40645         Increase to 22.
40646
40647 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
40648
40649         * math/auto-libm-test-in: Add tests of clog10.
40650         * math/auto-libm-test-out: Regenerated.
40651         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
40652         * sysdeps/i386/fpu/libm-test-ulps: Update.
40653         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40654
40655 2014-02-18  Andreas Schwab  <schwab@suse.de>
40656
40657         [BZ #16574]
40658         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
40659         Store non-zero if the second buffer was newly allocated.
40660         (send_dg): Likewise.
40661         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
40662         to send_vc and send_dg.
40663         (res_nsend): Pass NULL for ansp2_malloced.
40664         * resolv/res_query.c (__libc_res_nquery): Add parameter
40665         answerp2_malloced and pass it down to __libc_res_nsend.
40666         (res_nquery): Pass additional NULL to __libc_res_nquery.
40667         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
40668         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
40669         second answer buffer if answerp2_malloced was set.
40670         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
40671         (__libc_res_nquerydomain): Add parameter
40672         answerp2_malloced and pass it down to __libc_res_nquery.
40673         (res_nquerydomain): Pass additional NULL to
40674         __libc_res_nquerydomain.
40675         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
40676         additional NULL to __libc_res_nsend and __libc_res_nquery.
40677         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
40678         additional NULL to __libc_res_nsearch.
40679         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
40680         parameter of __libc_res_nsearch to check for separately allocated
40681         second buffer.
40682         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
40683         __libc_res_nquery.
40684         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
40685         additional NULL to __libc_res_nquery.
40686         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
40687         __libc_res_nsearch.
40688         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
40689         * include/resolv.h: Update prototypes of __libc_res_nquery,
40690         __libc_res_nsearch, __libc_res_nsend.
40691
40692 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
40693
40694         * math/auto-libm-test-in: Add tests of fma.
40695         * math/auto-libm-test-out: Regenerated.
40696         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
40697         (fma_towardzero_test_data): Likewise.
40698         (fma_downward_test_data): Likewise.
40699         (fma_upward_test_data): Likewise.
40700         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
40701         mpc_mode.
40702         (rounding_modes): Add values for new field.
40703         (func_calc_method): Add value mpfr_fff_f.
40704         (func_calc_desc): Add mpfr_fff_f union field.
40705         (test_function): Add field exact_args.
40706         (FUNC): Add macro argument EXACT_ARGS.
40707         (FUNC_mpfr_f_f): Update call to FUNC.
40708         (FUNC_mpfr_f_f): Likewise.
40709         (FUNC_mpfr_ff_f): Likewise.
40710         (FUNC_mpfr_if_f): Likewise.
40711         (FUNC_mpc_c_f): Likewise.
40712         (FUNC_mpc_c_c): Likewise.
40713         (test_functions): Add fma.  Update calls to FUNC.
40714         (handle_input_arg): Add argument exact_args.
40715         (add_test): Update call to handle_input_arg.
40716         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
40717         (output_for_one_input_case): Update call to calc_generic_results.
40718         Recalculate exact zero results in each rounding mode.
40719
40720         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
40721         non-negative before setting low bit.
40722         * math/auto-libm-test-in: Mark one asin test possibly having
40723         spurious underflow.
40724         * math/auto-libm-test-out: Regenerated.
40725         * sysdeps/i386/fpu/libm-test-ulps: Update.
40726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40727
40728 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
40729
40730         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
40731         * sysdeps/unix/sysv/linux/microblaze: Move directory from
40732         ports/sysdeps/unix/sysv/linux/microblaze.
40733         * README: Add missing listing for microblaze*-*-linux-gnu.
40734
40735 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
40736
40737         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
40738         duplicate code
40739
40740 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
40741
40742         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
40743         * sysdeps/unix/sysv/linux/ia64: Move directory from
40744         ports/sysdeps/unix/sysv/linux/ia64.
40745         * README: Update listing for ia64-*-linux-gnu.
40746
40747 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
40748             Joseph Myers  <joseph@codesourcery.com>
40749
40750         * Makeconfig (test-name): New variable.
40751         (evaluate-test): Likewise.
40752         * Makerules (do-test-clean): Remove .test-result files.
40753         (common-mostlyclean): Likewise.
40754         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
40755         * scripts/evaluate-test.sh: New file.
40756
40757 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
40758
40759         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
40760         separate $(objpfx)tst-fopenloc-cmp.out and
40761         $(objpfx)tst-fopenloc-mem.out targets.
40762         (tests): Update dependencies.
40763         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
40764         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
40765         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
40766         (tst-rxspencer-no-utf8-ARGS): New variable.
40767         (tst-rxspencer-no-utf8-ENV): Likewise.
40768         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
40769         instead of $(objpfx)tst-rxspencer-mem.
40770         ($(objpfx)tst-rxspencer-mem): Change target to
40771         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
40772         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
40773         * posix/tst-rxspencer-no-utf8.c: New file.
40774
40775         * elf/Makefile ($(objpfx)order.out): Remove rule.
40776         [$(run-built-tests) = yes] (tests): Depend on
40777         $(objpfx)order-cmp.out.
40778         ($(objpfx)order-cmp.out): New rule.
40779         [$(run-built-tests) = yes] (tests): Depend on
40780         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
40781         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
40782         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
40783         $(objpfx)tst-array5-static-cmp.out.
40784         ($(objpfx)tst-array1.out): Remove rule.
40785         ($(objpfx)tst-array1-cmp.out): New rule.
40786         ($(objpfx)tst-array1-static.out): Remove rule.
40787         ($(objpfx)tst-array1-static-cmp.out): New rule.
40788         ($(objpfx)tst-array2.out): Remove rule.
40789         ($(objpfx)tst-array2-cmp.out): New rule.
40790         ($(objpfx)tst-array3.out): Remove rule.
40791         ($(objpfx)tst-array3-cmp.out): New rule.
40792         ($(objpfx)tst-array4.out): Remove rule.
40793         ($(objpfx)tst-array4-cmp.out): New rule.
40794         ($(objpfx)tst-array5.out): Remove rule.
40795         ($(objpfx)tst-array5-cmp.out): New rule.
40796         ($(objpfx)tst-array5-static.out): Remove rule.
40797         ($(objpfx)tst-array5-static-cmp.out): New rule.
40798         [$(run-built-tests) = yes] (tests): Depend on
40799         $(objpfx)order2-cmp.out.
40800         ($(objpfx)order2.out): Remove rule.
40801         ($(objpfx)order2-cmp.out): New rule.
40802         ($(objpfx)tst-initorder.out): Remove rule.
40803         [$(run-built-tests) = yes] (tests): Depend on
40804         $(objpfx)tst-initorder-cmp.out.
40805         ($(objpfx)tst-initorder-cmp.out): New rule.
40806         ($(objpfx)tst-initorder2.out): Remove rule.
40807         [$(run-built-tests) = yes] (tests): Depend on
40808         $(objpfx)tst-initorder2-cmp.out.
40809         ($(objpfx)tst-initorder2-cmp.out): New rule.
40810         [$(run-built-tests) = yes] (tests): Depend on
40811         $(objpfx)tst-unused-dep-cmp.out.
40812         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
40813         ($(objpfx)tst-unused-dep-cmp.out): New rule.
40814         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
40815         on $(objpfx)tst-setvbuf1-cmp.out.
40816         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
40817         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
40818         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
40819         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
40820         ($(objpfx)tst-svc.out): Remove rule.
40821         ($(objpfx)tst-svc-cmp.out): New rule.
40822
40823 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
40824
40825         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
40826         * ctype/ctype.h [__USE_MISC]: Likewise.
40827         * dirent/dirent.h [__USE_MISC]: Likewise.
40828         * grp/grp.h [__USE_MISC]: Likewise.
40829         * io/fcntl.h [__USE_MISC]: Likewise.
40830         * io/sys/stat.h [__USE_MISC]: Likewise.
40831         * libio/stdio.h [__USE_MISC]: Likewise.
40832         * posix/unistd.h [__USE_MISC]: Likewise.
40833         * pwd/pwd.h [__USE_MISC]: Likewise.
40834         * stdlib.h [__USE_MISC]: Likewise.
40835         * string/bits/string2.h [__USE_MISC]: Likewise.
40836         * string/string.h [__USE_MISC]: Likewise.
40837         * time/time.h [__USE_MISC]: Likewise.
40838
40839 2014-02-13  Andreas Schwab  <schwab@suse.de>
40840
40841         [BZ #16574]
40842         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
40843         second answer buffer if it was separately allocated.
40844
40845 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
40846
40847         * sysdeps/mips/math-tests.h: Include <features.h>.
40848         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
40849         (ROUNDING_TESTS_long_double): Do not define.
40850         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
40851         (EXCEPTION_TESTS_long_double): Likewise.
40852         * sysdeps/mips/mips64/libm-test-ulps: Update.
40853
40854         * include/features.h (__USE_BSD): Remove macro definitions.
40855         (__USE_SVID): Likewise.
40856         (_BSD_SOURCE): Likewise.
40857         (_SVID_SOURCE): Likewise.
40858         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
40859         from definition of _DEFAULT_SOURCE.
40860         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
40861         [_DEFAULT_SOURCE].
40862         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
40863         * bits/mman.h [__USE_BSD]: Likewise.
40864         * bits/termios.h [__USE_BSD]: Likewise.
40865         * bits/waitstatus.h [__USE_BSD]: Likewise.
40866         * ctype/ctype.h [__USE_SVID]: Likewise.
40867         * dirent/dirent.h [__USE_BSD]: Likewise.
40868         * grp/grp.h [__USE_SVID]: Likewise.
40869         [__USE_BSD]: Likewise.
40870         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
40871         * io/fcntl.h [__USE_BSD]: Likewise.
40872         * io/ftw.h [__USE_BSD]: Likewise.
40873         * io/sys/stat.h [__USE_BSD]: Likewise.
40874         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
40875         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
40876         * libio/stdio.h [__USE_SVID]: Likewise.
40877         [__USE_BSD]: Likewise.
40878         * math/math.h [__USE_SVID]: Likewise.
40879         [__USE_BSD]: Likewise.
40880         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
40881         * misc/bits/syslog.h [__USE_BSD]: Likewise.
40882         * misc/search.h [__USE_SVID]: Likewise.
40883         * misc/sys/mman.h [__USE_BSD]: Likewise.
40884         * misc/sys/syslog.h [__USE_BSD]: Likewise.
40885         * misc/sys/uio.h [__USE_BSD]: Likewise.
40886         * posix/bits/unistd.h [__USE_BSD]: Likewise.
40887         * posix/glob.h [__USE_BSD]: Likewise.
40888         * posix/regex.h [__USE_BSD]: Likewise.
40889         * posix/sys/types.h [__USE_BSD]: Likewise.
40890         [__USE_SVID]: Likewise.
40891         * posix/sys/utsname.h [__USE_SVID]: Likewise.
40892         * posix/sys/wait.h [__USE_BSD]: Likewise.
40893         [__USE_SVID]: Likewise.
40894         * posix/unistd.h [__USE_BSD]: Likewise.
40895         [__USE_SVID]: Likewise.
40896         * pwd/pwd.h [__USE_SVID]: Likewise.
40897         * resolv/netdb.h [__USE_BSD]: Likewise.
40898         * setjmp/setjmp.h [__USE_BSD]: Likewise.
40899         * signal/signal.h [__USE_BSD]: Likewise.
40900         [__USE_SVID]: Likewise.
40901         * socket/sys/socket.h [__USE_BSD]: Likewise.
40902         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
40903         * stdlib/stdlib.h [__USE_BSD]: Likewise.
40904         [__USE_SVID]: Likewise.
40905         * string/bits/string2.h [__USE_BSD]: Likewise.
40906         [__USE_SVID]: Likewise.
40907         * string/bits/string3.h [__USE_BSD]: Likewise.
40908         * string/endian.h [__USE_BSD]: Likewise.
40909         * string/string.h [__USE_SVID]: Likewise.
40910         [__USE_BSD]: Likewise.
40911         * string/strings.h [__USE_BSD]: Likewise.
40912         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
40913         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
40914         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
40915         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
40916         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
40917         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
40918         Likewise.
40919         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
40920         Likewise.
40921         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
40922         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
40923         Likewise.
40924         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
40925         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
40926         Likewise.
40927         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
40928         Likewise.
40929         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
40930         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
40931         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
40932         Likewise.
40933         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
40934         Likewise.
40935         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
40936         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
40937         * termios/termios.h [__USE_BSD]: Likewise.
40938         * time/sys/time.h [__USE_BSD]: Likewise.
40939         * time/time.h [__USE_BSD]: Likewise.
40940         [__USE_SVID]: Likewise.
40941
40942         * Makefile (subdir_targets): Remove subdir_lint.out.
40943
40944         * stdio-common/Makefile (do-tst-unbputc): Remove target.
40945         (do-tst-printf): Likewise.
40946         (tests): Depend directly on $(objpfx)tst-unbputc.out and
40947         $(objpfx)tst-printf.out.
40948
40949         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
40950
40951         * Makerules (check-abi-%): Change target to
40952         $(objpfx)check-abi-%.out.
40953         (check-abi target): Update dependencies.
40954         (check-abi-pattern variable): Redirect output of diff to $@.
40955         (check-abi variable): Likewise.
40956         * elf/Makefile (check-abi): Update dependencies.
40957
40958         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
40959         unused.
40960         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
40961         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
40962         subnormal range.
40963         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
40964         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
40965         value has largest subnormal exponent.
40966         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
40967         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
40968         * sysdeps/aarch64/soft-fp/sfp-machine.h
40969         (_FP_TININESS_AFTER_ROUNDING): New macro.
40970         * sysdeps/alpha/soft-fp/sfp-machine.h
40971         (_FP_TININESS_AFTER_ROUNDING): Likewise.
40972         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
40973         Likewise.
40974         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
40975         (_FP_TININESS_AFTER_ROUNDING): Likewise.
40976         * sysdeps/mips/soft-fp/sfp-machine.h
40977         (_FP_TININESS_AFTER_ROUNDING): Likewise.
40978         * sysdeps/powerpc/soft-fp/sfp-machine.h
40979         (_FP_TININESS_AFTER_ROUNDING): Likewise.
40980         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
40981         Likewise.
40982         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
40983         (_FP_TININESS_AFTER_ROUNDING): Likewise.
40984         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
40985         (_FP_TININESS_AFTER_ROUNDING): Likewise.
40986         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
40987         Likewise.
40988
40989 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
40990
40991         [BZ #16545]
40992         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
40993         model 1.
40994
40995 2014-02-12  Richard Henderson  <rth@redhat.com>
40996
40997         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
40998         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
40999         * sysdeps/unix/sysv/linux/alpha: Move directory from
41000         ports/sysdeps/unix/sysv/linux/alpha.
41001         * README: Update listing for alpha-*-linux-gnu.
41002
41003 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
41004
41005         * include/features.h: Update comment documenting feature test
41006         macros.
41007         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
41008         _DEFAULT_SOURCE.
41009         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
41010         (_SVID_SOURCE): Likewise.
41011         (_DEFAULT_SOURCE): Update description of default features.
41012         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
41013         with _GNU_SOURCE.
41014         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
41015         (S_ISVTX): Likewise.
41016         * manual/math.texi (Mathematical Constants): Likewise.
41017         * manual/signal.texi (Interrupted Primitives): Likewise.
41018         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
41019         * math/test-matherr.c (_SVID_SOURCE): Do not define.
41020         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
41021         Don't refer to _SVID_SOURCE in warning text.
41022
41023         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41024
41025         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
41026         already defined.
41027         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
41028         * sysdeps/mips/dl-lookup.c: Remove.
41029         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
41030
41031 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
41032
41033         [BZ #16447]
41034         * math/auto-libm-test-in: Add testcase for expl.
41035         * math/auto-libm-test-out: Regenerate.
41036         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
41037         calculation of unsafe.
41038         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
41039
41040 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
41041
41042         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
41043         * sysdeps/unix/sysv/linux/aarch64: Move directory from
41044         ports/sysdeps/unix/sysv/linux/aarch64.
41045         * README: Update listing for aarch64*-*-linux-gnu.
41046
41047 2014-02-11  Will Newton  <will.newton@linaro.org>
41048
41049         * manual/probes.texi (Mathematical Function Probes): Use
41050         "triggered" instead of "hit".
41051
41052         * manual/probes.texi (Internal Probes): Add documentation
41053         of setjmp, longjmp and longjmp_target probes.
41054
41055         * include/stap-probe.h: Add comment about probe argument
41056         format.
41057
41058         * malloc/mtrace.c (attribute_hidden): Remove unused macro
41059         definition.  (tr_where, tr_freehook, tr_mallochook,
41060         tr_reallochook, tr_memalignhook): Use ANSI protoype.
41061
41062 2014-02-11  David S. Miller  <davem@davemloft.net>
41063
41064         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
41065         processing int_tests.
41066
41067 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
41068
41069         * sysdeps/mips: Move directory from ports/sysdeps/mips.
41070         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
41071         * sysdeps/unix/sysv/linux/mips: Move directory from
41072         ports/sysdeps/unix/sysv/linux/mips.
41073         * README: Update listing for mips-*-linux-gnu and
41074         mips64-*-linux-gnu.
41075
41076 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
41077
41078         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
41079         * sysdeps/unix/sysv/linux/m68k: Move directory from
41080         ports/sysdeps/unix/sysv/linux/m68k.
41081         * README: Update listing for m68k-*-linux-gnu.
41082
41083 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
41084
41085         * sysdeps/tile: Move directory from ports/sysdeps/tile.
41086         * sysdeps/unix/sysv/linux/generic: Move directory from
41087         ports/sysdeps/unix/sysv/linux/generic.
41088         * sysdeps/unix/sysv/linux/tile: Move directory from
41089         ports/sysdeps/unix/sysv/linux/tile.
41090         * README: Update listing for tile*-*-linux-gnu.
41091
41092 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
41093
41094         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
41095         __builtin_expect.
41096         * benchtests/bench-memmem.c (simple_memmem): Likewise.
41097         * catgets/open_catalog.c (__open_catalog): Likewise.
41098         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
41099         * debug/confstr_chk.c: Likewise.
41100         * debug/fread_chk.c (__fread_chk): Likewise.
41101         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
41102         * debug/getgroups_chk.c: Likewise.
41103         * debug/mbsnrtowcs_chk.c: Likewise.
41104         * debug/mbsrtowcs_chk.c: Likewise.
41105         * debug/mbstowcs_chk.c: Likewise.
41106         * debug/memcpy_chk.c: Likewise.
41107         * debug/memmove_chk.c: Likewise.
41108         * debug/mempcpy_chk.c: Likewise.
41109         * debug/memset_chk.c: Likewise.
41110         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
41111         * debug/strcat_chk.c (__strcat_chk): Likewise.
41112         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
41113         * debug/strncat_chk.c (__strncat_chk): Likewise.
41114         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
41115         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
41116         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
41117         * debug/wcpncpy_chk.c: Likewise.
41118         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
41119         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
41120         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
41121         * debug/wcsncpy_chk.c: Likewise.
41122         * debug/wcsnrtombs_chk.c: Likewise.
41123         * debug/wcsrtombs_chk.c: Likewise.
41124         * debug/wcstombs_chk.c: Likewise.
41125         * debug/wmemcpy_chk.c: Likewise.
41126         * debug/wmemmove_chk.c: Likewise.
41127         * debug/wmempcpy_chk.c: Likewise.
41128         * debug/wmemset_chk.c: Likewise.
41129         * dirent/scandirat.c (SCANDIRAT): Likewise.
41130         * dlfcn/dladdr1.c (dladdr1): Likewise.
41131         * dlfcn/dladdr.c (dladdr): Likewise.
41132         * dlfcn/dlclose.c (dlclose_doit): Likewise.
41133         * dlfcn/dlerror.c (__dlerror): Likewise.
41134         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
41135         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
41136         * dlfcn/dlopen.c (dlopen_doit): Likewise.
41137         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
41138         * dlfcn/dlsym.c (dlsym_doit): Likewise.
41139         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
41140         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
41141         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
41142         Likewise.
41143         * elf/dl-conflict.c: Likewise.
41144         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
41145         * elf/dl-dst.h: Likewise.
41146         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
41147         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
41148         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
41149         * elf/dl-init.c (call_init, _dl_init): Likewise.
41150         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
41151         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
41152         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
41153         Likewise.
41154         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
41155         Likewise.
41156         * elf/dl-minimal.c (__libc_memalign): Likewise.
41157         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
41158         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
41159         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
41160         * elf/dl-sym.c (do_sym): Likewise.
41161         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
41162         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
41163         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
41164         * elf/dl-writev.h (_dl_writev): Likewise.
41165         * elf/ldconfig.c (search_dir): Likewise.
41166         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
41167         (dl_main): Likewise.
41168         * elf/setup-vdso.h (setup_vdso): Likewise.
41169         * grp/compat-initgroups.c (compat_call): Likewise.
41170         * grp/fgetgrent.c (fgetgrent): Likewise.
41171         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
41172         * grp/putgrent.c (putgrent): Likewise.
41173         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
41174         Likewise.
41175         * hurd/hurdinit.c: Likewise.
41176         * iconvdata/8bit-gap.c (struct): Likewise.
41177         * iconvdata/ansi_x3.110.c : Likewise.
41178         * iconvdata/big5.c : Likewise.
41179         * iconvdata/big5hkscs.c : Likewise.
41180         * iconvdata/cp1255.c: Likewise.
41181         * iconvdata/cp1258.c : Likewise.
41182         * iconvdata/cp932.c : Likewise.
41183         * iconvdata/euc-cn.c: Likewise.
41184         * iconvdata/euc-jisx0213.c : Likewise.
41185         * iconvdata/euc-jp.c: Likewise.
41186         * iconvdata/euc-jp-ms.c : Likewise.
41187         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
41188         * iconvdata/gb18030.c : Likewise.
41189         * iconvdata/gbbig5.c (const): Likewise.
41190         * iconvdata/gbgbk.c: Likewise.
41191         * iconvdata/gbk.c : Likewise.
41192         * iconvdata/ibm1364.c : Likewise.
41193         * iconvdata/ibm930.c : Likewise.
41194         * iconvdata/ibm932.c: Likewise.
41195         * iconvdata/ibm933.c : Likewise.
41196         * iconvdata/ibm935.c : Likewise.
41197         * iconvdata/ibm937.c : Likewise.
41198         * iconvdata/ibm939.c : Likewise.
41199         * iconvdata/ibm943.c: Likewise.
41200         * iconvdata/iso_11548-1.c: Likewise.
41201         * iconvdata/iso-2022-cn.c : Likewise.
41202         * iconvdata/iso-2022-cn-ext.c : Likewise.
41203         * iconvdata/iso-2022-jp-3.c: Likewise.
41204         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
41205         * iconvdata/iso-2022-kr.c : Likewise.
41206         * iconvdata/iso646.c (gconv_end): Likewise.
41207         * iconvdata/iso_6937-2.c : Likewise.
41208         * iconvdata/iso_6937.c : Likewise.
41209         * iconvdata/iso8859-1.c: Likewise.
41210         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
41211         * iconvdata/shift_jisx0213.c : Likewise.
41212         * iconvdata/sjis.c : Likewise.
41213         * iconvdata/t.61.c : Likewise.
41214         * iconvdata/tcvn5712-1.c : Likewise.
41215         * iconvdata/tscii.c: Likewise.
41216         * iconvdata/uhc.c : Likewise.
41217         * iconvdata/unicode.c (gconv_end): Likewise.
41218         * iconvdata/utf-16.c (gconv_end): Likewise.
41219         * iconvdata/utf-32.c (gconv_end): Likewise.
41220         * iconvdata/utf-7.c (base64): Likewise.
41221         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
41222         * iconv/gconv_close.c (__gconv_close): Likewise.
41223         * iconv/gconv_open.c (__gconv_open): Likewise.
41224         * iconv/gconv_simple.c (internal_ucs4_loop_single)
41225         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
41226         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
41227         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
41228         (ucs4le_internal_loop_single): Likewise.
41229         * iconv/iconv.c (iconv): Likewise.
41230         * iconv/iconv_close.c: Likewise.
41231         * iconv/loop.c (SINGLE): Likewise.
41232         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
41233         * include/atomic.h: Likewise.
41234         * inet/inet6_option.c (option_alloc): Likewise.
41235         * intl/bindtextdom.c (set_binding_values): Likewise.
41236         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
41237         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
41238         * intl/localealias.c (read_alias_file): Likewise.
41239         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
41240         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
41241         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
41242         * libio/fmemopen.c (fmemopen): Likewise.
41243         * libio/iofgets.c (_IO_fgets): Likewise.
41244         * libio/iofgets_u.c (fgets_unlocked): Likewise.
41245         * libio/iofgetws.c (fgetws): Likewise.
41246         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
41247         * libio/iogetdelim.c (_IO_getdelim): Likewise.
41248         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
41249         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
41250         * locale/findlocale.c (_nl_find_locale): Likewise.
41251         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
41252         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
41253         Likewise.
41254         * locale/setlocale.c (setlocale): Likewise.
41255         * login/programs/pt_chown.c (main): Likewise.
41256         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
41257         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
41258         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
41259         (mmap, mmap64, mremap, munmap): Likewise.
41260         * math/e_exp2l.c: Likewise.
41261         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
41262         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
41263         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
41264         * math/s_catan.c (__catan): Likewise.
41265         * math/s_catanf.c (__catanf): Likewise.
41266         * math/s_catanh.c (__catanh): Likewise.
41267         * math/s_catanhf.c (__catanhf): Likewise.
41268         * math/s_catanhl.c (__catanhl): Likewise.
41269         * math/s_catanl.c (__catanl): Likewise.
41270         * math/s_ccosh.c (__ccosh): Likewise.
41271         * math/s_ccoshf.c (__ccoshf): Likewise.
41272         * math/s_ccoshl.c (__ccoshl): Likewise.
41273         * math/s_cexp.c (__cexp): Likewise.
41274         * math/s_cexpf.c (__cexpf): Likewise.
41275         * math/s_cexpl.c (__cexpl): Likewise.
41276         * math/s_clog10.c (__clog10): Likewise.
41277         * math/s_clog10f.c (__clog10f): Likewise.
41278         * math/s_clog10l.c (__clog10l): Likewise.
41279         * math/s_clog.c (__clog): Likewise.
41280         * math/s_clogf.c (__clogf): Likewise.
41281         * math/s_clogl.c (__clogl): Likewise.
41282         * math/s_csin.c (__csin): Likewise.
41283         * math/s_csinf.c (__csinf): Likewise.
41284         * math/s_csinh.c (__csinh): Likewise.
41285         * math/s_csinhf.c (__csinhf): Likewise.
41286         * math/s_csinhl.c (__csinhl): Likewise.
41287         * math/s_csinl.c (__csinl): Likewise.
41288         * math/s_csqrt.c (__csqrt): Likewise.
41289         * math/s_csqrtf.c (__csqrtf): Likewise.
41290         * math/s_csqrtl.c (__csqrtl): Likewise.
41291         * math/s_ctan.c (__ctan): Likewise.
41292         * math/s_ctanf.c (__ctanf): Likewise.
41293         * math/s_ctanh.c (__ctanh): Likewise.
41294         * math/s_ctanhf.c (__ctanhf): Likewise.
41295         * math/s_ctanhl.c (__ctanhl): Likewise.
41296         * math/s_ctanl.c (__ctanl): Likewise.
41297         * math/w_pow.c: Likewise.
41298         * math/w_powf.c: Likewise.
41299         * math/w_powl.c: Likewise.
41300         * math/w_scalb.c (sysv_scalb): Likewise.
41301         * math/w_scalbf.c (sysv_scalbf): Likewise.
41302         * math/w_scalbl.c (sysv_scalbl): Likewise.
41303         * misc/error.c (error_tail): Likewise.
41304         * misc/pselect.c (__pselect): Likewise.
41305         * nis/nis_callback.c (__nis_create_callback): Likewise.
41306         * nis/nis_call.c (__nisfind_server): Likewise.
41307         * nis/nis_creategroup.c (nis_creategroup): Likewise.
41308         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
41309         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
41310         * nis/nis_getservlist.c (nis_getservlist): Likewise.
41311         * nis/nis_lookup.c (nis_lookup): Likewise.
41312         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
41313         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
41314         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
41315         * nis/nis_xdr.c (xdr_endpoint): Likewise.
41316         * nis/nss_compat/compat-grp.c (getgrent_next_file)
41317         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
41318         * nis/nss_compat/compat-initgroups.c (add_group)
41319         (internal_getgrent_r): Likewise.
41320         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
41321         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
41322         * nis/nss_compat/compat-spwd.c (getspent_next_file)
41323         (internal_getspnam_r): Likewise.
41324         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
41325         (_nss_nis_getaliasbyname_r): Likewise.
41326         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
41327         (_nss_nis_getntohost_r): Likewise.
41328         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
41329         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
41330         (_nss_nis_getgrgid_r): Likewise.
41331         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
41332         (internal_nis_gethostent_r, internal_gethostbyname2_r)
41333         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
41334         (_nss_nis_gethostbyname4_r): Likewise.
41335         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
41336         (initgroups_netid): Likewise.
41337         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
41338         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
41339         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
41340         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
41341         (_nss_nis_getprotobynumber_r): Likewise.
41342         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
41343         (_nss_nis_getsecretkey): Likewise.
41344         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
41345         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
41346         (_nss_nis_getpwuid_r): Likewise.
41347         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
41348         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
41349         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
41350         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
41351         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
41352         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
41353         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
41354         Likewise.
41355         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
41356         (_nss_nisplus_getntohost_r): Likewise.
41357         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
41358         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
41359         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
41360         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
41361         Likewise.
41362         * nis/nss_nisplus/nisplus-initgroups.c
41363         (_nss_nisplus_initgroups_dyn): Likewise.
41364         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
41365         (_nss_nisplus_getnetbyaddr_r): Likewise.
41366         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
41367         (_nss_nisplus_getprotobynumber_r): Likewise.
41368         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
41369         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
41370         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
41371         Likewise.
41372         * nis/nss_nisplus/nisplus-service.c
41373         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
41374         (_nss_nisplus_getservbyport_r): Likewise.
41375         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
41376         (_nss_nisplus_getspnam_r): Likewise.
41377         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
41378         Likewise.
41379         * nscd/aicache.c (addhstaiX): Likewise.
41380         * nscd/cache.c (cache_search, prune_cache): Likewise.
41381         * nscd/connections.c (register_traced_file, send_ro_fd)
41382         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
41383         (main_loop_epoll): Likewise.
41384         * nscd/grpcache.c (addgrbyX): Likewise.
41385         * nscd/hstcache.c (addhstbyX): Likewise.
41386         * nscd/initgrcache.c (addinitgroupsX): Likewise.
41387         * nscd/mem.c (gc, mempool_alloc): Likewise.
41388         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
41389         (addinnetgrX): Likewise.
41390         * nscd/nscd-client.h (__nscd_acquire_maplock)
41391         (__nscd_drop_map_ref): Likewise.
41392         * nscd/nscd_getai.c (__nscd_getai): Likewise.
41393         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
41394         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
41395         Likewise.
41396         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
41397         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
41398         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
41399         (__nscd_get_map_ref): Likewise.
41400         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
41401         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
41402         Likewise.
41403         * nscd/pwdcache.c (addpwbyX): Likewise.
41404         * nscd/selinux.c (preserve_capabilities): Likewise.
41405         * nscd/servicescache.c (addservbyX): Likewise.
41406         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
41407         * posix/fnmatch.c (fnmatch): Likewise.
41408         * posix/getopt.c (_getopt_internal_r): Likewise.
41409         * posix/glob.c (glob, glob_in_dir): Likewise.
41410         * posix/wordexp.c (exec_comm_child): Likewise.
41411         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
41412         (getanswer_r, gaih_getanswer_slice): Likewise.
41413         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
41414         * resolv/res_init.c: Likewise.
41415         * resolv/res_mkquery.c (res_nmkquery): Likewise.
41416         * resolv/res_query.c (__libc_res_nquery): Likewise.
41417         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
41418         Likewise.
41419         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
41420         * stdio-common/perror.c (perror): Likewise.
41421         * stdio-common/printf_fp.c (___printf_fp): Likewise.
41422         * stdio-common/tmpnam.c (tmpnam): Likewise.
41423         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
41424         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
41425         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
41426         Likewise.
41427         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
41428         * stdlib/putenv.c (putenv): Likewise.
41429         * stdlib/setenv.c (__add_to_environ): Likewise.
41430         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
41431         * stdlib/strtol_l.c (INTERNAL): Likewise.
41432         * string/memmem.c (memmem): Likewise.
41433         * string/strerror.c (strerror): Likewise.
41434         * string/strnlen.c (__strnlen): Likewise.
41435         * string/test-memmem.c (simple_memmem): Likewise.
41436         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
41437         * sunrpc/pm_getport.c (__get_socket): Likewise.
41438         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
41439         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
41440         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
41441         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
41442         Likewise.
41443         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
41444         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
41445         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
41446         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
41447         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
41448         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
41449         Likewise.
41450         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
41451         Likewise.
41452         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
41453         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
41454         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
41455         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
41456         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
41457         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
41458         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
41459         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
41460         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
41461         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
41462         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
41463         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
41464         Likewise.
41465         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
41466         Likewise.
41467         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
41468         Likewise.
41469         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
41470         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
41471         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
41472         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
41473         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
41474         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
41475         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
41476         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
41477         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
41478         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
41479         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
41480         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
41481         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41482         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
41483         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
41484         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
41485         Likewise.
41486         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
41487         Likewise.
41488         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
41489         Likewise.
41490         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
41491         Likewise.
41492         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
41493         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
41494         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
41495         Likewise.
41496         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
41497         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
41498         * sysdeps/posix/opendir.c (__opendirat): Likewise.
41499         * sysdeps/posix/sleep.c: Likewise.
41500         * sysdeps/posix/tempname.c: Likewise.
41501         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
41502         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
41503         Likewise.
41504         * sysdeps/powerpc/powerpc32/dl-machine.h
41505         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
41506         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41507         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
41508         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
41509         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
41510         Likewise.
41511         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
41512         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
41513         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
41514         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
41515         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
41516         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
41517         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
41518         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
41519         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
41520         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
41521         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
41522         (elf_machine_lazy_rel): Likewise.
41523         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
41524         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
41525         (elf_machine_lazy_rel): Likewise.
41526         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
41527         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
41528         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
41529         * sysdeps/unix/grantpt.c (grantpt): Likewise.
41530         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
41531         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
41532         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
41533         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
41534         Likewise.
41535         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
41536         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
41537         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
41538         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
41539         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
41540         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
41541         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
41542         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
41543         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
41544         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
41545         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
41546         Likewise.
41547         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
41548         (__posix_fallocate64_l64): Likewise.
41549         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
41550         (posix_fallocate): Likewise.
41551         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
41552         Likewise.
41553         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
41554         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
41555         (getifaddrs_internal): Likewise.
41556         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
41557         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
41558         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
41559         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
41560         * sysdeps/unix/sysv/linux/posix_fallocate64.c
41561         (__posix_fallocate64_l64): Likewise.
41562         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
41563         Likewise.
41564         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
41565         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
41566         (__get_clockfreq): Likewise.
41567         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
41568         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
41569         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
41570         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
41571         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
41572         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
41573         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
41574         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
41575         Likewise.
41576         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
41577         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
41578         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
41579         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
41580         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
41581         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
41582         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
41583         Likewise.
41584         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
41585         (posix_fallocate): Likewise.
41586         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
41587         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
41588         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
41589         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
41590         (elf_machine_rela, elf_machine_rela_relative)
41591         (elf_machine_lazy_rel): Likewise.
41592         * time/asctime.c (asctime_internal): Likewise.
41593         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
41594         * time/tzset.c (__tzset_parse_tz): Likewise.
41595         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
41596         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
41597         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
41598         * wcsmbs/wcsmbsload.h: Likewise.
41599
41600         [BZ #15894]
41601         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
41602
41603         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
41604         (arena_get2): Remove THREAD_STATS conditionals.
41605         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
41606         (__malloc_stats, int): Likewise.
41607
41608 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
41609
41610         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
41611         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
41612
41613         * manual/setjmp.texi: Fix typos/grammar errors.
41614
41615         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
41616         Only return early when n is <= 0.  Delete unused return statement.
41617
41618         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
41619         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
41620         * debug/tst-longjmp_chk3.c: New file.
41621
41622         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
41623         (test_main): Replace code with set_fortify_handler call.
41624         * debug/test-strcpy_chk.c: Likewise.
41625         * debug/tst-chk1.c: Likewise.
41626         * debug/tst-longjmp_chk.c: Likewise.
41627         * test-skeleton.c: Include fcntl.h & paths.h
41628         (set_fortify_handler): Define.
41629
41630         * debug/tst-longjmp_chk.c: Add header comment and include
41631         ../test-skeleton.c.
41632         (do_test): Mark static.
41633         (TEST_FUNCTION): Define.
41634
41635         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
41636         (IP_PMTUDISC_INTERFACE): Likewise.
41637         (IP_MULTICAST_IF): Likewise.
41638         (IP_MULTICAST_TTL): Likewise.
41639         (IP_MULTICAST_LOOP): Likewise.
41640         (IP_ADD_MEMBERSHIP): Likewise.
41641         (IP_DROP_MEMBERSHIP): Likewise.
41642         (IP_UNBLOCK_SOURCE): Likewise.
41643         (IP_BLOCK_SOURCE): Likewise.
41644         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
41645         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
41646         (IP_MSFILTER): Likewise.
41647         (MCAST_JOIN_GROUP): Likewise.
41648         (MCAST_BLOCK_SOURCE): Likewise.
41649         (MCAST_UNBLOCK_SOURCE): Likewise.
41650         (MCAST_LEAVE_GROUP): Likewise.
41651         (MCAST_JOIN_SOURCE_GROUP): Likewise.
41652         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
41653         (MCAST_MSFILTER): Likewise.
41654         (IP_MULTICAST_ALL): Likewise.
41655         (IP_UNICAST_IF): Likewise.
41656
41657         * timezone/Makefile: Delete $(have-ksh) check.
41658         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
41659         * timezone/tzselect.ksh: Add +x mode bits.
41660
41661         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
41662         (ANON_INODE_FS_MAGIC): Likewise.
41663         (BDEVFS_MAGIC): Likewise.
41664         (BINFMTFS_MAGIC): Likewise.
41665         (BTRFS_TEST_MAGIC): Likewise.
41666         (CRAMFS_MAGIC_WEND): Likewise.
41667         (DEBUGFS_MAGIC): Likewise.
41668         (ECRYPTFS_SUPER_MAGIC): Likewise.
41669         (EXT3_SUPER_MAGIC): Likewise.
41670         (EXT4_SUPER_MAGIC): Likewise.
41671         (FUTEXFS_SUPER_MAGIC): Likewise.
41672         (HOSTFS_SUPER_MAGIC): Likewise.
41673         (HUGETLBFS_MAGIC): Likewise.
41674         (MINIX3_SUPER_MAGIC): Likewise.
41675         (MTD_INODE_FS_MAGIC): Likewise.
41676         (NILFS_SUPER_MAGIC): Likewise.
41677         (OPENPROM_SUPER_MAGIC): Likewise.
41678         (PIPEFS_MAGIC): Likewise.
41679         (PSTOREFS_MAGIC): Likewise.
41680         (QNX6_SUPER_MAGIC): Likewise.
41681         (RAMFS_MAGIC): Likewise.
41682         (REISERFS_SUPER_MAGIC_STRING): Likewise.
41683         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
41684         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
41685         (SECURITYFS_MAGIC): Likewise.
41686         (SELINUX_MAGIC): Likewise.
41687         (SMACK_MAGIC): Likewise.
41688         (SOCKFS_MAGIC): Likewise.
41689         (SQUASHFS_MAGIC): Likewise.
41690         (STACK_END_MAGIC): Likewise.
41691         (TMPFS_MAGIC): Likewise.
41692         (USBDEVICE_SUPER_MAGIC): Likewise.
41693         (V9FS_MAGIC): Likewise.
41694         (XENFS_SUPER_MAGIC): Likewise.
41695         (CRAMFS_MAGIC): Fix typo in comment.
41696         (EXT2_SUPER_MAGIC): Update comment.
41697         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
41698
41699 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
41700
41701         * sysdeps/arm: Move directory from ports/sysdeps/arm.
41702         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
41703         * sysdeps/unix/sysv/linux/arm: Move directory from
41704         ports/sysdeps/unix/sysv/linux/arm.
41705         * README: Update listing for arm-*-linux-gnueabi.
41706
41707         * README: Remove mention of am33.
41708
41709 2014-02-07  Roland McGrath  <roland@hack.frob.com>
41710
41711         * bits/sigset.h (__sigemptyset): Use a statement expression rather
41712         than the comma operator, to avoid "rhs of comma has no effect"
41713         compiler warnings.
41714         (__sigfillset, __sigandset, __sigorset): Likewise.
41715         * include/signal.h (__sigemptyset): Likewise.
41716         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
41717
41718 2014-02-07  Allan McRae  <allan@archlinux.org>
41719
41720         * version.h (RELEASE): Set to "development".
41721         (VERSION): Set to "2.19.90"
41722         * NEWS: Add 2.20 section.
41723
41724 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
41725
41726         [BZ #16529]
41727         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
41728
41729 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41730
41731         * manual/contrib.texi: Update entry for Carlos O'Donell,
41732         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
41733
41734 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
41735
41736         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
41737
41738         * sysdeps/unix/sysv/linux/kernel-features.h
41739         [__LINUX_KERNEL_VERSION >= 0x020621]
41740         (__ASSUME_PROC_PID_TASK_COMM): Define.
41741
41742 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41743
41744         [BZ #16398]
41745         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
41746         conversion when destination buffer does not have enough space.
41747         * libio/tst-ftell-partial-wide.c: New test case.
41748         * libio/Makefile (tests): Add tst-ftell-partial-wide.
41749
41750         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
41751         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
41752         Leonard and Allan McRae.
41753
41754 2014-02-04  David S. Miller  <davem@davemloft.net>
41755
41756         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
41757         32-bit.
41758
41759 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41760
41761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
41762         New file
41763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
41764         New file
41765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
41766         New file.
41767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
41768         New file.
41769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
41770         New file.
41771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
41772         New file.
41773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
41774         New file.
41775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
41776         New file.
41777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
41778         New file.
41779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
41780         New file.
41781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
41782         New file.
41783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
41784         New file.
41785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
41786         New file.
41787
41788 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41789
41790         * nptl/shlib-versions: Change powerpc*le start to 2.17.
41791         * shlib-versions: Likewise.
41792
41793 2014-02-04  Roland McGrath  <roland@hack.frob.com>
41794             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41795
41796         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
41797         (abilist-pattern): New variable, set to %-le.abilist.
41798
41799         * Makerules (abilist-pattern): New variable.
41800         (vpath): Use $(abilist-pattern) in place of %.abilist.
41801         (check-abi-% pattern rule): Likewise.
41802         (check-abi, update-abi): Likewise.
41803
41804 2014-02-04  Eric Wong  <normalperson@yhbt.net>
41805
41806         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41807
41808 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
41809
41810         * manual/startup.texi: Add next, previous, and top entries for
41811         the `Program Arguments' and `Environment Variables' nodes.
41812
41813 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
41814
41815         * manual/macros.texi: Add comments before MTASC-safety macros.
41816
41817         * manual/users.texi: Document MTASC-safety properties.
41818
41819         * manual/threads.texi (pthread_key_create, pthread_key_delete)
41820         (pthread_getspecific, pthread_setspecific): Format with
41821         @deftypefun, and add @safety note.
41822         * manual/signal.texi: Move comments that analyze the above
41823         functions to their home place.
41824
41825 2014-02-03  Allan McRae  <allan@archlinux.org>
41826
41827         * po/sl.po: Update Slovenian translation from translation project.
41828
41829 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
41830
41831         * manual/time.texi (timegm): Add missing blank after @c.
41832         Reported by Joseph Myers <joseph@codesourcery.com>.
41833
41834 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
41835
41836         * manual/check-safety.sh: New.
41837         * manual/Makefile ($(objpfx)stamp-summary): Run it.
41838
41839         * manual/terminal.texi: Document MTASC-safety properties.
41840
41841         * manual/filesys.texi: Document MTASC-safety properties.
41842
41843         * manual/errno.texi: Document MTASC-safety properties.
41844
41845         * manual/intro.texi: Document safety identifiers and
41846         conditionals.
41847
41848         * manual/string.texi (wcstok): Fix prototype.
41849         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
41850
41851         * manual/time.texi: Document MTASC-safety properties.
41852
41853         * manual/string.texi: Document MTASC-safety properties.
41854
41855         * manual/threads.texi: Document MTASC-safety properties.
41856
41857         * manual/stdio.texi: Document MTASC-safety properties.
41858
41859         * manual/syslog.texi: Document MTASC-safety properties.
41860
41861         * manual/sysinfo.texi: Document MTASC-safety properties.
41862
41863         * manual/startup.texi: Document MTASC-safety properties.
41864
41865         * manual/socket.texi: Document MTASC-safety properties.
41866
41867         * manual/signal.texi: Document MTASC-safety properties.
41868
41869 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
41870
41871         * manual/setjmp.texi: Document MTASC-safety properties.
41872
41873         * manual/search.texi: Document MTASC-safety properties.
41874
41875         * manual/resource.texi: Document MTASC-safety properties.
41876
41877         * manual/process.texi: Document MTASC-safety properties.
41878
41879         * manual/platform.texi: Document MTASC-safety properties.
41880
41881         * manual/pipe.texi: Document MTASC-safety properties.
41882
41883         * manual/pattern.texi: Document MTASC-safety properties.
41884
41885         * manual/message.texi: Document MTASC-safety properties.
41886
41887         [BZ #12751]
41888         * manual/memory.texi: Document MTASC-safety properties.
41889
41890         * manual/math.texi: Document MTASC-safety properties.
41891
41892         * manual/locale.texi: Document MTASC-safety properties.
41893
41894         * manual/llio.texi: Document MTASC-safety properties.
41895
41896         * manual/libdl.texi: New.
41897
41898         * manual/lang.texi: Document MTASC-safety properties.
41899
41900         * manual/job.texi: Document MTASC-safety properties.
41901
41902         * manual/getopt.texi: Document MTASC-safety properties.
41903
41904         * manual/ctype.texi: Document MTASC-safety properties.
41905
41906 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
41907
41908         [BZ #16046]
41909         * csu/libc-tls.c (static_map): Remove variable.
41910         (__libc_setup_tls): Use main executable's link map for TLS data.
41911         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
41912         casing for LM_ID_BASE and GL(dl_nns).
41913         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
41914         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
41915         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
41916         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
41917         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
41918         member.
41919         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
41920         l_phnum members.
41921
41922 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
41923
41924         * manual/debug.texi: Document MTASC-safety properties.
41925
41926 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
41927
41928         [BZ #16510]
41929         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
41930         of __x86_64__ when disabling x87 inline functions.
41931
41932 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
41933
41934         * manual/charset.texi: Document MTASC-safety properties.
41935
41936         * manual/crypt.texi: Document MTASC-safety properties.
41937
41938         * manual/conf.texi: Document MTASC-safety properties.
41939
41940         * manual/arith.texi: Document MTASC-safety properties.
41941
41942         * manual/argp.texi: Document MTASC-safety properties.
41943
41944         * manual/macros.texi: Introduce macros to document multi
41945         thread, asynchronous signal and asynchronous cancellation
41946         safety properties.
41947         * manual/intro.texi: Introduce the properties themselves.
41948
41949 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41950
41951         * sysdeps/sh/sh4/Makefile: New file.
41952
41953 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
41954
41955         * math/gen-libm-test.pl ($srcdir): New variable.
41956         ($auto_input): Use it.
41957
41958 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
41959
41960         [BZ #16506]
41961         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
41962         access beyond array bounds when parsing netgroups file.
41963
41964         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
41965         the old buffer before realloc.
41966
41967 2014-01-27  Allan McRae  <allan@archlinux.org>
41968
41969         * po/fr.po: Update French translation from translation project.
41970
41971 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41972
41973         * sysdeps/sh/libm-test-ulps: Regenerate.
41974
41975 2014-01-24  David S. Miller  <davem@davemloft.net>
41976
41977         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
41978
41979 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41980
41981         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
41982         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
41983
41984 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
41985
41986         [BZ #16474]
41987         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
41988         string pointers after reallocation.
41989
41990 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41991
41992         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
41993         __SH4A__ instead of __SH_FPU_ANY__.
41994
41995 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41996
41997         * sysdeps/sh/fpu_control.h: New file.
41998         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
41999         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
42000         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
42001         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
42002         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
42003         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
42004         * sysdeps/sh/sys/ucontext.h: Remove.
42005         * sysdeps/sh/sys: Remove directory.
42006
42007 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42008
42009         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
42010         s390/sys/ucontext.h.
42011         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
42012         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
42013
42014 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
42015
42016         [BZ #15605]
42017         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
42018
42019 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42020
42021         [BZ#16431]
42022         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
42023         Adjust the vDSO correctly for internal calls.
42024         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
42025
42026 2014-01-20  Allan McRae  <allan@archlinux.org>
42027
42028         * po/ca.po: Update Catalan translation from translation project.
42029
42030 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
42031
42032         * sysdeps/s390/sotruss-lib.c: New file.
42033
42034 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42035
42036         [BZ#16430]
42037         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
42038         (__GI___gettimeofday): Alias for a different internal symbol to avoid
42039         local calls issues by not having a PLT stub required for IFUNC calls.
42040         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
42041
42042 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
42043
42044         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
42045         * math/test-fpucw-static.c: Likewise.
42046
42047 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
42048
42049         [BZ #16453]
42050         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
42051
42052 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42053
42054         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
42055         implementation for powerpc.
42056
42057 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
42058
42059         [BZ #14782]
42060         * sysdeps/posix/system.c (__libc_system): Do not enable
42061         asynchronous cancellation.
42062
42063 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42064
42065         [BZ #16427]
42066         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
42067         handling only for numbers special also in the IEEE case.
42068
42069 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42070
42071         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
42072
42073 2014-01-11  Allan McRae  <allan@archlinux.org>
42074
42075         * po/bg.po: Update Bulgarian translation from translation project.
42076
42077         * po/de.po: Update German translation from translation project.
42078
42079 2014-01-10  Roland McGrath  <roland@hack.frob.com>
42080
42081         * sysdeps/generic/gcc-compat.h: New file.
42082
42083 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
42084
42085         * benchtests/asin-inputs: Correct slow inputs.
42086         * benchtests/acos-inputs: Likewise.
42087
42088 2014-01-10  Allan McRae  <allan@archlinux.org>
42089
42090         * po:sv.po: Update Swedish translation from translation project.
42091
42092         * po/vi.po: Update Vietnamese translation from translation project.
42093
42094         * po/eo.po: Update Esperanto translation from translation project.
42095
42096         * po/cs.po: Update Czech translation from translation project.
42097
42098         * po/nl.po: Update Dutch translation from translation project.
42099
42100         * po/pl.po: Update Polish translation from translation project.
42101
42102         * po/ru.po: Update Russian translation from translation project.
42103
42104         * po/uk.po: Update Ukrainian translation from translation project.
42105
42106 2014-01-08  Brooks Moses  <bmoses@google.com>
42107
42108         * elf/dl-load.c: Fix comment typo.
42109
42110 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
42111
42112         * po/header.pot: Rename to...
42113         * po/pot.header: ... this.
42114         * po/Makefile: Use pot.header.
42115
42116 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
42117             Maxim Kuvyrkov  <maxim@kugelworks.com>
42118
42119         [BZ #16394]
42120         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
42121         SRC and DEST against LEN.
42122
42123 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42124
42125         [BZ #16414]
42126         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
42127         implementation.
42128         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
42129
42130 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42131
42132         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42133
42134 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
42135
42136         [BZ #16408]
42137         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
42138         for large positive arguments.
42139
42140 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
42141
42142         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42143
42144         * math/auto-libm-test-in: Mark various tests with
42145         xfail-rounding:ldbl-128ibm.
42146         * math/auto-libm-test-out: Regenerated.
42147
42148         [BZ #16407]
42149         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
42150         Increase overflow threshold.
42151
42152 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
42153
42154         [BZ #14286]
42155         * stdio-common/vfprintf.c: Check for integer overflow.
42156
42157 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42158
42159         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
42160         the first argument and return value of __tls_get_addr_internal.
42161
42162 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42163
42164         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
42165         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
42166
42167 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42168
42169         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
42170         * sysdeps/s390/rtld-global-offsets.sym: New file.
42171         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
42172         GLIBC_2.19 symbol.
42173         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
42174         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
42175         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
42176         ... this.
42177         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
42178         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
42179         ... this.
42180         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
42181         Regenerate.
42182         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
42183         Regenerate.
42184         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
42185         halfs of GPRs for high_gprs contexts.
42186         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
42187         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
42188         field.
42189         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
42190         uc_flags field.
42191         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
42192         64 bit versions:
42193         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
42194         for high GPRs (uc_high_gprs) and for future extensions
42195         (__reserved).
42196         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
42197         for future extensions (__reserved).
42198         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
42199         64 bit versions:
42200         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
42201         SC_HIGHGPRS offset definition.
42202         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
42203         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
42204
42205         * Versions.def: Add GLIBC_2.19 for libpthread.
42206         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
42207         siglongjmp for libpthread with GLIBC_2.19 symver.
42208         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
42209         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
42210         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
42211         * sysdeps/s390/__longjmp.c: New file.
42212         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
42213         * sysdeps/s390/longjmp.c: New file.
42214         * sysdeps/s390/setjmp.S: New file.
42215         * sysdeps/s390/sigjmp.S: New file.
42216         * sysdeps/s390/v1-longjmp.c: New file.
42217         * sysdeps/s390/v1-setjmp.h: New file.
42218         * sysdeps/s390/v1-sigjmp.c: New file.
42219         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
42220         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
42221         GLIBC_2.19 version.
42222         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
42223         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
42224         versioned symbols for ____longjmp_chk.
42225         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
42226         Likewise.
42227         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
42228         Regenerate.
42229         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
42230         Regenerate.
42231         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
42232         Regenerate.
42233         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
42234         Regenerate.
42235         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
42236         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
42237         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
42238         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
42239         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
42240         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
42241         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
42242         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
42243         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
42244         * sysdeps/s390/rtld-__longjmp.c: New file.
42245         * sysdeps/s390/rtld-setjmp.S: New file.
42246
42247 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
42248
42249         [BZ #16400]
42250         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
42251         Return -__logl (x) for small positive arguments without evaluating
42252         a polynomial.
42253
42254 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
42255
42256         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
42257         Rename to ...
42258         (__ptrace_peeksiginfo_args): ... this.
42259         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
42260         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
42261         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
42262
42263 2014-01-06  Allan McRae  <allan@archlinux.org>
42264
42265         * inet/netinet/in.h: Fix typo in comment.
42266
42267 2014-01-05  Andreas Jaeger  <aj@suse.de>
42268
42269         * sysdeps/i386/fpu/libm-test-ulps: Update.
42270
42271 2014-01-05  Allan McRae  <allan@archlinux.org>
42272
42273         * po/libc.pot: Regenerated.
42274
42275         * malloc/memusagestat.c: Fix gettext call formatting.
42276
42277 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
42278
42279         * nscd/nscd.c: Improve usage() output.
42280
42281 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
42282
42283         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
42284         * sysdeps/unix/sysv/linux/configure: Regenerated.
42285         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
42286         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
42287
42288 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
42289
42290         [BZ #16390]
42291         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42292         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
42293
42294 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42295
42296         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
42297         extra tokens at end of #undef directive.
42298         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
42299         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
42300         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
42301
42302 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
42303
42304         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42305
42306         * math/auto-libm-test-in: Mark various tests with
42307         xfail-rounding:ldbl-128ibm.
42308         * math/auto-libm-test-out: Regenerated.
42309
42310 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
42311
42312         [BZ #16386]
42313         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
42314         numbers with subnormal high part when calculating exponent.
42315
42316         [BZ #16385]
42317         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
42318         fabs.
42319
42320         [BZ #16384]
42321         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
42322         M_LN2l.
42323         (__ieee754_acoshl): Use __log1pl not __log1p.
42324
42325 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
42326
42327         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
42328         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
42329         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
42330         (grow_heap, heap_trim, _int_new_arena, get_free_list)
42331         (reused_arena, arena_get2): Convert to GNU style.
42332         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
42333         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
42334         (memalign_check, __malloc_set_state): Likewise.
42335         * malloc/mallocbug.c (main): Likewise.
42336         * malloc/malloc.c (__malloc_assert, malloc_init_state)
42337         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
42338         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
42339         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
42340         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
42341         (__posix_memalign, malloc_info): Likewise.
42342         * malloc/malloc.h: Likewise.
42343         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
42344         (mallochook, memalignhook, reallochook, mabort): Likewise.
42345         * malloc/mcheck.h: Likewise.
42346         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
42347         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
42348         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
42349         * malloc/morecore.c (__default_morecore): Likewise.
42350         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
42351         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
42352         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
42353         (print_and_abort): Likewise.
42354         * malloc/obstack.h: Likewise.
42355         * malloc/set-freeres.c (__libc_freeres): Likewise.
42356         * malloc/tst-mallocstate.c (main): Likewise.
42357         * malloc/tst-mtrace.c (main): Likewise.
42358         * malloc/tst-realloc.c (do_test): Likewise.
42359
42360 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42361
42362         [BZ #16366]
42363         * nscd/netgroupcache.c (do_notfound): New function.
42364         (addgetnetgrentX): Use it.
42365
42366         [BZ # 16365]
42367         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
42368         NSS_STATUS_NOTFOUND.
42369
42370 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
42371
42372         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
42373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42374
42375 2014-01-01  Allan McRae  <allan@archlinux.org>
42376
42377         * scripts/update-copyrights: Update configure input file suffix.
42378
42379         * NEWS: Update copyright year.
42380         * catgets/gencat.c: Likewise.
42381         * csu/version.c: Likewise.
42382         * debug/catchsegv.sh: Likewise.
42383         * debug/pcprofiledump.c: Likewise.
42384         * debug/xtrace.sh: Likewise.
42385         * elf/ldconfig.c: Likewise.
42386         * elf/ldd.bash.in: Likewise.
42387         * elf/pldd.c: Likewise.
42388         * elf/sotruss.ksh: Likewise.
42389         * elf/sprof.c: Likewise.
42390         * iconv/iconv_prog.c: Likewise.
42391         * iconv/iconvconfig.c: Likewise.
42392         * locale/programs/locale.c: Likewise.
42393         * locale/programs/localedef.c: Likewise.
42394         * login/programs/pt_chown.c: Likewise.
42395         * malloc/memusage.sh: Likewise.
42396         * malloc/memusagestat.c: Likewise.
42397         * malloc/mtrace.pl: Likewise.
42398         * manual/libc.texinfo: Likewise.
42399         * nscd/nscd.c: Likewise.
42400         * nss/getent.c: Likewise.
42401         * nss/makedb.c: Likewise.
42402         * posix/getconf.c: Likewise.
42403         * scripts/test-installation.pl: Likewise.
42404
42405         * All files with FSF copyright notices: Update copyright dates
42406         using scripts/update-copyrights.
42407         * intl/plural.c: Regenerated.
42408         * locale/programs/charmap-kw.h: Likewise.
42409         * locale/programs/locfile-kw.h: Likewise.
42410
42411 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
42412
42413         * sysdeps/unix/sysv/linux/configure: Regenerated.
42414         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
42415         the linux/fanotify.h header.
42416         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
42417         HAVE_LINUX_FANOTIFY_H is defined.
42418
42419 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
42420
42421         * benchtests/cos-inputs: New inputs.
42422         * benchtests/sin-inputs: Likewise.
42423
42424         * benchtests/atan-inputs: New inputs. Fix name of multiple
42425         precision fallback inputs.
42426
42427         * benchtests/atanh-inputs: New inputs.
42428         * benchtests/tanh-inputs: Likewise.
42429
42430         * benchtests/acosh-inputs: New inputs.
42431         * benchtests/asinh-inputs: Likewise.
42432
42433         * benchtests/cosh-inputs: New inputs.
42434         * benchtests/sinh-inputs: Likewise.
42435
42436         * benchtests/acos-inputs: Add more inputs.
42437         * benchtests/asin-inputs: Likewise.
42438
42439 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
42440
42441         [BZ #16375]
42442         * manual/arith.texi: Fix spelling.
42443         * manual/charset.texi: Likewise.
42444         * manual/errno.texi: Likewise.
42445         * manual/filesys.texi: Likewise.
42446         * manual/lang.texi: Likewise.
42447         * manual/llio.texi: Likewise.
42448         * manual/locale.texi: Likewise.
42449         * manual/message.texi: Likewise.
42450         * manual/resource.texi: Likewise.
42451         * manual/search.texi: Likewise.
42452         * manual/setjmp.texi: Likewise.
42453         * manual/stdio.texi: Likewise.
42454         * manual/string.texi: Likewise.
42455         * manual/sysinfo.texi: Likewise.
42456         * manual/time.texi: Likewise.
42457
42458 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
42459
42460         * po/sl.po: New file.
42461
42462 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
42463
42464         * .gitignore: Add core/.gdbinit/.gdb_history.
42465
42466 2013-12-27  Allan McRae  <allan@archlinux.org>
42467
42468         [BZ #16369]
42469         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
42470         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
42471
42472 2013-12-24  Brooks Moses  <bmoses@google.com>
42473
42474         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
42475         all compilers that claim C++98 compliance, not just GCC.
42476         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
42477         Likewise.
42478
42479 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
42480
42481         * NEWS: Restore accidentally deleted bug-fix entries.
42482
42483 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
42484             Ondřej Bílka  <neleai@seznam.cz>
42485
42486         [BZ #15073]
42487         * malloc/malloc.c (_int_free): Perform sanity check only if we
42488         have_lock.
42489
42490 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
42491
42492         [BZ #12986]
42493         * manual/stdio.texi (String Input Conversions): Clarify that character
42494         classes are not supported.
42495
42496 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42497
42498         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42499
42500 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
42501
42502         [BZ #16337]
42503         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
42504         Calculate results for small negative arguments directly rather
42505         than using reflection formula with special underflow handling.
42506
42507         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
42508         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
42509         sysdeps/unix/bsd/bsd4.4/syscalls.list.
42510         (fchflags): Likewise.
42511         (revoke): Likewise.
42512         (setlogin): Likewise.
42513         (sigaltstack): Likewise.
42514         (wait4): Likewise.
42515         (sigblock): Remove.
42516         (sigsetmask): Likewise.
42517         (wait3): Likewise.
42518         (waitpid): Likewise.
42519         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
42520         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
42521         file.
42522         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
42523         * sysdeps/unix/bsd/Makefile: ... here.
42524         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
42525         * sysdeps/unix/bsd/Versions: ... here.
42526         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
42527         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
42528         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
42529         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
42530         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
42531         * sysdeps/unix/bsd/sigblock.c: ... here.
42532         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
42533         * sysdeps/unix/bsd/sigsetmask.c: ... here.
42534         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
42535         * sysdeps/unix/bsd/sigvec.c: ... here.
42536         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
42537         * sysdeps/unix/bsd/tcdrain.c: ... here.
42538         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
42539         * sysdeps/unix/bsd/tcgetattr.c: ... here.
42540         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
42541         * sysdeps/unix/bsd/tcsetattr.c: ... here.
42542         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
42543         * sysdeps/unix/bsd/wait.c: ... here.
42544         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
42545         * sysdeps/unix/bsd/wait3.c: ... here.
42546         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
42547         * sysdeps/unix/bsd/waitpid.c: ... here.
42548
42549 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
42550
42551         [BZ #16356]
42552         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
42553         round-to-nearest for [!USE_AS_EXPM1L].
42554         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
42555         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
42556         more tests of exp and exp10.  Expect some exp10 tests to miss
42557         exceptions or fail in directed rounding modes.
42558         * math/auto-libm-test-out: Regenerated.
42559         * math/libm-test.inc (exp10_tonearest_test_data): New array.
42560         (exp10_test_tonearest): New function.
42561         (exp10_towardzero_test_data): New array.
42562         (exp10_test_towardzero): New function.
42563         (exp10_downward_test_data): New array.
42564         (exp10_test_downward): New function.
42565         (exp10_upward_test_data): New array.
42566         (exp10_test_upward): New function.
42567         (main): Call the new functions.
42568         * sysdeps/i386/fpu/libm-test-ulps: Update.
42569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42570
42571 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
42572
42573         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
42574         asinh, atan, atan2, atanh, cbrt, cos and cosh.
42575         * math/auto-libm-test-out: Regenerated.
42576         * math/libm-test.inc (acosh_test_data): Add more tests.
42577         (atanh_test_data): Likewise.
42578         (ceil_test_data): Likewise.
42579         (copysign_test_data): Likewise.
42580         * sysdeps/i386/fpu/libm-test-ulps: Update.
42581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42582
42583         * timezone/checktab.awk: Update from tzcode 2013i.
42584         * timezone/private.h: Likewise.
42585         * timezone/scheck.c: Likewise.
42586         * timezone/tzfile.h: Likewise.
42587         * timezone/tzselect.ksh: Likewise.
42588         * timezone/zdump.c: Likewise.
42589         * timezone/zic.c: Likewise.
42590
42591         * math/auto-libm-test-in: Add tests of cpow.
42592         * math/auto-libm-test-out: Regenerated.
42593         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
42594         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42595         mpc_cc_c.
42596         (func_calc_desc): Add mpc_cc_c union field.
42597         (test_functions): Add cpow.
42598         (special_fill_2pi): New function.
42599         (special_real_inputs): Add 2pi.
42600         (calc_generic_results): Handle mpc_cc_c.
42601         * sysdeps/i386/fpu/libm-test-ulps: Update.
42602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42603
42604         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
42605         csqrt, ctan and ctanh.
42606         * math/auto-libm-test-out: Regenerated.
42607         * math/libm-test.inc (TEST_COND_x86_64): New macro.
42608         (TEST_COND_x86): Likewise.
42609         (ccos_test_data): Use AUTO_TESTS_c_c.
42610         (ccosh_test_data): Likewise.
42611         (cexp_test_data): Likewise.
42612         (clog_test_data): Likewise.
42613         (csqrt_test_data): Likewise.
42614         (ctan_test_data): Likewise.
42615         (ctan_tonearest_test_data): Likewise.
42616         (ctan_towardzero_test_data): Likewise.
42617         (ctan_downward_test_data): Likewise.
42618         (ctan_upward_test_data): Likewise.
42619         (ctanh_test_data): Likewise.
42620         (ctanh_tonearest_test_data): Likewise.
42621         (ctanh_towardzero_test_data): Likewise.
42622         (ctanh_downward_test_data): Likewise.
42623         (ctanh_upward_test_data): Likewise.
42624         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42625         mpc_c_c.
42626         (func_calc_desc): Add mpc_c_c union field.
42627         (FUNC_mpc_c_c): New macro.
42628         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
42629         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
42630         ctanh.
42631         (special_fill_min_subnorm_p120): New function.
42632         (special_real_inputs): Add min_subnorm_p120.
42633         (calc_generic_results): Handle mpc_c_c.
42634         * sysdeps/i386/fpu/libm-test-ulps: Update.
42635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42636
42637 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
42638
42639         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
42640         (do_sin_slow): New functions.
42641         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
42642         (cslow2, csloww1, csloww2): Use the new functions.
42643
42644         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
42645         Use M to change sign of result instead of X.  Assume X is
42646         positive.
42647         (csloww1): Likewise.
42648         (__sin): Adjust.
42649         (__cos): Adjust.
42650
42651         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
42652         arguments A and DA.
42653         (__sin): Adjust.
42654         (__cos): Likewise.
42655
42656         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
42657         (__cos): Likewise.
42658         (sloww1): Don't adjust sign of DX.
42659         (csloww1): Likewise.
42660         (sloww2): Use X directly and don't adjust sign of DX.
42661         (csloww2): Likewise.
42662
42663 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
42664
42665         * math/auto-libm-test-in: Add tests of cabs and carg.
42666         * math/auto-libm-test-out: Regenerated.
42667         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
42668         (carg_test_data): Likewise.
42669         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42670         mpc_c_f.
42671         (func_calc_desc): Add mpc_c_f union field.
42672         (test_functions): Add cabs and carg.
42673         (calc_generic_results): Handle mpc_c_f.
42674
42675         * sysdeps/powerpc/powerpc32/libgcc-compat.S
42676         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
42677         as a macro and a compat symbol.
42678         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
42679         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
42680         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
42681         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
42682         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
42683         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
42684         not use .hidden.
42685         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
42686         Likewise.
42687         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
42688         Likewise.
42689         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
42690         Likewise.
42691         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
42692         Likewise.
42693         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
42694         Likewise.
42695         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
42696         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
42697         from GLIBC_2.3.2.
42698
42699 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42700
42701         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42702
42703 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
42704
42705         * manual/texinfo.tex: Update to version 2013-11-26.10 with
42706         trailing whitespace removed.
42707         * scripts/config.guess: Update to version 2013-11-29.
42708         * scripts/config.sub: Update to version 2013-10-01.
42709
42710         * math/auto-libm-test-in: Add tests of sincos.
42711         * math/auto-libm-test-out: Regenerated.
42712         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
42713         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42714         mpfr_f_11.
42715         (func_calc_desc): Add mpfr_f_11 union field.
42716         (test_functions): Add sincos.
42717         (calc_generic_results): Handle mpfr_f_11.
42718         * sysdeps/i386/fpu/libm-test-ulps: Update.
42719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42720
42721 2013-12-19  Andreas Schwab  <schwab@suse.de>
42722
42723         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
42724         CALL_MCOUNT.
42725         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
42726         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
42727         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
42728
42729 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
42730
42731         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
42732         * sysdeps/i386/fpu/libm-test-ulps: Update.
42733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42734
42735         [BZ #16293]
42736         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
42737         round-to-nearest mode when using frndint.
42738         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
42739         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
42740         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
42741         Likewise.
42742         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
42743         sinh test to fail.
42744         * math/auto-libm-test-out: Regenerated.
42745         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
42746         (TEST_COND_x86): Likewise.
42747         (expm1_tonearest_test_data): New array.
42748         (expm1_test_tonearest): New function.
42749         (expm1_towardzero_test_data): New array.
42750         (expm1_test_towardzero): New function.
42751         (expm1_downward_test_data): New array.
42752         (expm1_test_downward): New function.
42753         (expm1_upward_test_data): New array.
42754         (expm1_test_upward): New function.
42755         (main): Run the new test functions.
42756         * sysdeps/i386/fpu/libm-test-ulps: Update.
42757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42758
42759         * include/features.h: Update comment documenting feature test
42760         macros.  Mention _DEFAULT_SOURCE in comment.
42761         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
42762         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
42763         _BSD_SOURCE and _SVID_SOURCE.
42764         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
42765         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
42766         !_SVID_SOURCE]: Likewise.
42767         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
42768         (__USE_POSIX_IMPLICITLY): Define.
42769         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
42770         (_POSIX_SOURCE): Undefine and redefine.
42771         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
42772         (_POSIX_C_SOURCE): Likewise.
42773         * manual/creature.texi (_DEFAULT_SOURCE): Document.
42774         (Feature Test Macros): Update documentation of default features.
42775
42776 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42777
42778         * benchtests/Makefile: Add bench-strtok.
42779         * benchtests/bench-strtok.c: New file: strtok benchtest.
42780
42781 2013-12-19  Allan McRae  <allan@archlinux.org>
42782
42783         * manual/install.texi: Suppress menu for plain text output.
42784         * INSTALL: Regenerated.
42785
42786 2013-12-18  Brooks Moses  <bmoses@google.com>
42787
42788         [BZ #15846]
42789         * misc/getauxval.c: Include errno.h.
42790         (__getauxval): Set errno to ENOENT if the requested type is not
42791         found.
42792         * misc/sys/auxv.h (getauxval): Document that it may set errno;
42793         don't declare with __attribute_const__.
42794         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
42795         * manual/startup.texi: Document that getauxval sets errno.
42796
42797 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
42798
42799         * math/auto-libm-test-in: Add tests of jn and yn.
42800         * math/auto-libm-test-out: Regenerated.
42801         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
42802         (yn_test_data): Likewise.
42803         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42804         mpfr_if_f.
42805         (func_calc_desc): Add mpfr_if_f union field.
42806         (FUNC_mpfr_if_f): New macro.
42807         (test_functions): Add jn and yn.
42808         (calc_generic_results): Assert type of second input for
42809         mpfr_ff_f.  Handle mpfr_if_f.
42810         (output_for_one_input_case): Disable all checking for arguments
42811         fitting floating-point types in case of an integer argument.
42812         * sysdeps/i386/fpu/libm-test-ulps: Update.
42813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42814
42815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42816         Don't expect fegetround reference in libm.so.
42817
42818 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42819
42820         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
42821         $(config-cflags-nofma).
42822
42823 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
42824
42825         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
42826         * math/auto-libm-test-out: Regenerated.
42827
42828         [BZ #16338]
42829         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
42830         to determine exponent and adjust argument to have exponent of -1.
42831         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
42832         log2.
42833         * math/auto-libm-test-out: Regenerated.
42834         * sysdeps/i386/fpu/libm-test-ulps: Update.
42835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42836
42837 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
42838
42839         * manual/probes.texi: Remove cases when per-thread arenas are
42840         disabled.
42841
42842 2013-12-18  Andreas Schwab  <schwab@suse.de>
42843
42844         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
42845         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
42846         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
42847         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
42848         * sysdeps/i386/i686/multiarch/Makefile: Update.
42849         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
42850
42851 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
42852
42853         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
42854         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
42855
42856 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
42857
42858         [BZ #15968]
42859         Support TZ transition times < 00:00:00.
42860         This is needed for version-3 tz-format files; it supports time
42861         stamps past 2037 for America/Godthab (the only entry in the tz
42862         database for which this change is relevant).
42863         * manual/time.texi (TZ Variable): Document transition times
42864         from -167:59:59 through -00:00:01.
42865         * time/tzset.c (tz_rule): Time of day is now signed.
42866         (__tzset_parse_tz): Parse negative time of day.
42867
42868         Document TZ transition times >= 25:00:00.
42869         * manual/time.texi (TZ Variable): Document transition times from
42870         25:00:00 through 167:59:59.  These are already supported, and this
42871         support will help with version-3 tz-format files.
42872
42873         * manual/time.texi (TZ Variable): Modernize North America example
42874         to reflect current (i.e., 2007-and-later) daylight saving rules.
42875
42876         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
42877
42878 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
42879
42880         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
42881         * sysdeps/unix/bsd/bits/stat.h: Likewise.
42882         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
42883         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
42884         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
42885         * sysdeps/unix/bsd/bsdstat.h: Likewise.
42886         * sysdeps/unix/bsd/clock.c: Likewise.
42887         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
42888         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
42889         * sysdeps/unix/bsd/init-posix.c: Likewise.
42890         * sysdeps/unix/bsd/poll.c: Likewise.
42891         * sysdeps/unix/bsd/ptsname.c: Likewise.
42892         * sysdeps/unix/bsd/seekdir.c: Likewise.
42893         * sysdeps/unix/bsd/setegid.c: Likewise.
42894         * sysdeps/unix/bsd/seteuid.c: Likewise.
42895         * sysdeps/unix/bsd/setgid.c: Likewise.
42896         * sysdeps/unix/bsd/setrgid.c: Likewise.
42897         * sysdeps/unix/bsd/setruid.c: Likewise.
42898         * sysdeps/unix/bsd/setsid.c: Likewise.
42899         * sysdeps/unix/bsd/setuid.c: Likewise.
42900         * sysdeps/unix/bsd/sigaction.c: Likewise.
42901         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
42902         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
42903         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
42904         * sysdeps/unix/bsd/telldir.c: Likewise.
42905         * sysdeps/unix/bsd/times.c: Likewise.
42906         * sysdeps/unix/bsd/usleep.c: Likewise.
42907
42908         * misc/Makefile (install-lib): Remove libbsd-compat.a.
42909         ($(objpfx)libbsd-compat.a): Remove rule.
42910
42911         * include/features.h (__FAVOR_BSD): Do not define.
42912         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
42913         features conflicting with POSIX.
42914         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
42915         (_BSD_SOURCE): Remove description of not being a subset of other
42916         feature test macros.
42917         * manual/job.texi (getpgrp): Do not document BSD version.
42918         (getpgid): Do not document by reference to BSD getpgrp.
42919         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
42920         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
42921         * signal/signal.h [__FAVOR_BSD]: Likewise.
42922         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
42923         instead of making contents conditional on [__FAVOR_BSD].
42924         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
42925
42926 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42927
42928         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42929
42930 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
42931
42932         [BZ #16314]
42933         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
42934         values below 2**-450, not 2**-500.
42935         * math/auto-libm-test-in: Don't allow spurious underflow from
42936         hypot.
42937         * math/auto-libm-test-out: Regenerated.
42938
42939         [BZ #16316]
42940         [BZ #16330]
42941         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
42942         values of ha and hb and sort them after adjusting subnormal
42943         arguments.
42944         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
42945         Likewise.
42946         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
42947         values of ea and eb and sort them after adjusting subnormal
42948         arguments.
42949         * math/auto-libm-test-in: Do not expect some hypot tests of
42950         subnormals to fail.  Add more hypot tests.
42951         * math/auto-libm-test-out: Regenerated.
42952
42953 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
42954
42955         [BZ #13304]
42956         * sysdeps/sh/s_fma.c: New file.
42957         * sysdeps/sh/s_fmaf.c: New file.
42958         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
42959         version.
42960         * sysdeps/sh/Implies: Add sh/soft-fp.
42961
42962 2013-12-16  Roland McGrath  <roland@hack.frob.com>
42963
42964         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
42965         level of indirection to members `objname', `errstring', `malloced'.
42966         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
42967         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
42968         it as the __longjmp argument (just pass 1 instead).
42969         (_dl_catch_error): Initialize C with argument pointers and address of
42970         volatile local ERRCODE rather than copying values out of C at return.
42971
42972 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
42973
42974         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
42975         * math/auto-libm-test-out: Regenerated.
42976         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
42977         (hypot_test_data): Likewise.
42978         (pow_test_data): Likewise.
42979         (pow_tonearest_test_data): Likewise.
42980         * math/gen-auto-libm-tests.c (func_calc_method): Add value
42981         mpfr_ff_f.
42982         (func_calc_desc): Add mpfr_ff_f union field.
42983         (FUNC_mpfr_ff_f): New macro.
42984         (test_functions): Add atan2, hypot and pow.
42985         (special_fill_min): New function.
42986         (special_fill_minus_min): Likewise.
42987         (special_fill_min_subnorm): Likewise.
42988         (special_fill_minus_min_subnorm): Likewise.
42989         (special_real_inputs): Add min, -min, min_subnorm and
42990         -min_subnorm.
42991         (calc_generic_results): Handle mpfr_ff_f.
42992         * sysdeps/i386/fpu/libm-test-ulps: Update.
42993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42994
42995 2013-12-16  Will Newton  <will.newton@linaro.org>
42996
42997         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
42998         (Aligned Memory Blocks): Add documentation for aligned_alloc
42999         and suggest it as an alternative to posix_memalign.
43000         (Hooks for Malloc): Document __memalign_hook is also called
43001         for aligned_alloc.  (Summary of Malloc): Add summary for
43002         aligned alloc.  Document __memalign_hook is also called
43003         for aligned_alloc.
43004
43005 2013-12-16  Will Newton  <will.newton@linaro.org>
43006
43007         * manual/memory.texi (Malloc Examples): Clarify default
43008         alignment documentation.  Suggest posix_memalign rather
43009         than memalign or valloc.
43010         (Aligned Memory Blocks): Remove suggestion to use memalign
43011         or valloc.  Remove obsolete comment about BSD.
43012         Document memalign errno values and mark the function obsolete.
43013         Document posix_memalign returned error codes.  Mark valloc
43014         as obsolete.  (Hooks for Malloc): __memalign_hook is also
43015         called for posix_memalign and valloc.
43016         (Summary of Malloc): Add posix_memalign to function summary.
43017         __memalign_hook is also called for posix_memalign and valloc.
43018
43019 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
43020
43021         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
43022         TAYLOR_SIN.
43023         (__sin): Adjust.
43024         (__cos): Likewise.
43025         (sloww): Use mynumber union.  Expand ternary operator into
43026         if-else statements.
43027         (cslow): use mynumber union.
43028
43029 2013-12-16  Allan McRae  <allan@archlinux.org>
43030
43031         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
43032         * configure: Regenerated.
43033
43034         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
43035
43036         [BZ #14120]
43037         * configure.ac: Added --enable-maintainer-mode. Check for
43038         autoconf when enabled.
43039         * configure: Regenerated.
43040
43041         * nscd/nscd.service: New file.
43042         * nscd/nscd.tmpfiles: New file.
43043
43044 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
43045
43046         [BZ #12100]
43047         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
43048         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
43049         * sysdeps/x86_64/multiarch/strstr.c: ... here.
43050         (strstr): Add __strstr_sse2_unaligned ifunc.
43051         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
43052         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
43053         (strcasestr): Remove __strcasestr_sse42 ifunc.
43054         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
43055         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
43056         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43057
43058 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43059
43060         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
43061         * sysdeps/sh/bits/fenv.h: ... here.
43062         * sysdeps/sh/sh4/fpu/bits: Remove directory.
43063
43064 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43065
43066         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
43067
43068         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
43069         hypotf multiarch implementations.
43070         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
43071         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
43072         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
43073         multiarch hypot for PPC64.
43074         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
43075         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
43076         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
43077         multiarch hypotf for PPC64.
43078
43079         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
43080         modff multiarch implementations.
43081         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
43082         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
43083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
43084         multiarch modf for PPC64.
43085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
43086         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
43087         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
43088         multiarch modff for PPC64.
43089
43090         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
43091         and logl multiarch implementations.
43092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
43093         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
43094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
43095         multiarch logb for PPC64.
43096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
43097         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
43098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
43099         multiarch logb for PPC64.
43100         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
43101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
43102         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
43103         multiarch logb for PPC64.
43104
43105         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
43106         isinff multiarch implementation.
43107         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
43108         file.
43109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
43110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
43111         multiarch isinf for PPC64.
43112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
43113         file.
43114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
43115         multiarch isinff for PPC64.
43116
43117         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
43118         finitef multiarch implementation.
43119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
43120         file.
43121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
43122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
43123         multiarch finite for PPC64.
43124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
43125         file.
43126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
43127         multiarch finitef for PPC64.
43128
43129         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
43130         lrint multiarch implementation.
43131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
43132         file.
43133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
43134         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
43135         multiarch llrint for PPC64.
43136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
43137         multiarch lrint for PPC64.
43138
43139         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
43140         copysignf multiarch implementation.
43141         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
43142         file.
43143         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
43144         file.
43145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
43146         multiarch copysign for PPC64.
43147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
43148         multiarch copysignf for PPC64.
43149
43150         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
43151         multiarch implementation.
43152         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
43153         file.
43154         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
43155         file.
43156         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
43157         file.
43158         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
43159         file.
43160         multiarch llround for PPC64.
43161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
43162         multiarch trunc for PPC64.
43163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
43164         multiarch truncf for PPC64.
43165
43166         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
43167         multiarch implementation.
43168         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
43169         file.
43170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
43171         file.
43172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
43173         file.
43174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
43175         file.
43176         multiarch llround for PPC64.
43177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
43178         multiarch round for PPC64.
43179         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
43180         multiarch roundf for PPC64.
43181
43182         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
43183         multiarch implementation.
43184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
43185         file.
43186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
43187         file.
43188         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
43189         file.
43190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
43191         file.
43192         multiarch llround for PPC64.
43193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
43194         multiarch floor for PPC64.
43195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
43196         multiarch floorf for PPC64.
43197
43198         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
43199         multiarch implementation.
43200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
43201         file.
43202         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
43203         file.
43204         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
43205         file.
43206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
43207         file.
43208         multiarch llround for PPC64.
43209         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
43210         multiarch ceil for PPC64.
43211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
43212         multiarch ceilf for PPC64.
43213
43214         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
43215         multiarch implementation.
43216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
43217         file.
43218         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
43219         file.
43220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
43221         file.
43222         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
43223         multiarch llround for PPC64.
43224         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
43225         multiarch lround for PPC64.
43226
43227         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
43228         multiarch implementation.
43229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
43230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
43231         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
43232         file.
43233         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
43234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
43235         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
43236         multiarch isnan for PPC64.
43237         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
43238         multiarch isnanf for PPC64.
43239
43240         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
43241         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
43242         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
43243         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
43244         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
43245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
43246
43247         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
43248         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
43249         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
43250         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
43251
43252         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
43253         multiarch implementations.
43254         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43255         (__libc_ifunc_impl_list): Likewise.
43256         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
43257         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
43258         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
43259         multiarch stpcpy for PPC64.
43260
43261         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
43262         multiarch implementations.
43263         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43264         (__libc_ifunc_impl_list): Likewise.
43265         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
43266         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
43267         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
43268         multiarch strcpy for PPC64.
43269
43270         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
43271         redefine function name.
43272         (_wordcopy_fwd_dest_aligned): Likewise.
43273         (_wordcopy_bwd_aligned): Likewise.
43274         (_wordcopy_bwd_dest_aligned): Likewise.
43275         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
43276         multiarch implementations.
43277         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43278         (__libc_ifunc_impl_list): Likewise.
43279         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
43280         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
43281         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
43282         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
43283         multiarch wcscpy for PPC64.
43284
43285         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
43286         multiarch implementations.
43287         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43288         (__libc_ifunc_impl_list): Likewise.
43289         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
43290         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
43291         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
43292         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
43293         multiarch wcscpy for PPC64.
43294
43295         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
43296         multiarch implementations.
43297         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43298         (__libc_ifunc_impl_list): Likewise.
43299         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
43300         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
43301         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
43302         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
43303         multiarch wcsrchr for PPC64.
43304
43305         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
43306         multiarch implementations.
43307         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43308         (__libc_ifunc_impl_list): Likewise.
43309         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
43310         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
43311         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
43312         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
43313         multiarch wcschr for PPC64.
43314
43315         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
43316         multiarch implementations.
43317         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43318         (__libc_ifunc_impl_list): Likewise.
43319         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
43320         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
43321         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
43322         multiarch strchrnul for PPC64.
43323
43324         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
43325         implementations.
43326         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43327         (__libc_ifunc_impl_list): Likewise.
43328         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
43329         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
43330         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
43331         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
43332         strchr for PPC64.
43333
43334         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
43335         implementations.
43336         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43337         (__libc_ifunc_impl_list): Likewise.
43338         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
43339         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
43340         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
43341         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
43342         strncmp for PPC64.
43343
43344         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
43345         multiarch implementations.
43346         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43347         (__libc_ifunc_impl_list): Likewise.
43348         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
43349         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
43350         strncasecmp for PPC64.
43351         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
43352         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
43353         multiarch strncasecmp_l for PPC64.
43354
43355         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
43356         multiarch implementations.
43357         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
43358         (__libc_ifunc_impl_list): Likewise.
43359         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
43360         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
43361         multiarch strcasecmp for PPC64.
43362         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
43363         file.
43364         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
43365         multiarch strcasecmp_l for PPC64.
43366
43367         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
43368         implementations.
43369         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43370         (__libc_ifunc_impl_list): Likewise.
43371         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
43372         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
43373         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
43374         strnlen for PPC64.
43375
43376         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
43377         implementations.
43378         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43379         (__libc_ifunc_impl_list): Likewise.
43380         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
43381         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
43382         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
43383         strlen for PPC64.
43384
43385         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
43386         implementations.
43387         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43388         (__libc_ifunc_impl_list): Likewise.
43389         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
43390         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
43391         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
43392         rawmemrchr for PPC64.
43393
43394         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
43395         implementation.
43396         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43397         (__libc_ifunc_impl_list): Likewise.
43398         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
43399         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
43400         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
43401         memrchr for PPC64.
43402
43403         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
43404         implementation.
43405         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43406         (__libc_ifunc_impl_list): Likewise.
43407         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
43408         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
43409         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
43410         memchr for PPC64.
43411
43412         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
43413         implementation.
43414         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43415         (__libc_ifunc_impl_list): Likewise.
43416         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
43417         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
43418         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
43419         mempcpy for PPC64.
43420
43421         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
43422         avoid cretion of __bzero symbol.
43423         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
43424         Likewise.
43425         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
43426         Likewise.
43427         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
43428         Likewise.
43429         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
43430         multiarch implementations.
43431         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43432         (__libc_ifunc_impl_list): Likewise.
43433         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
43434         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
43435         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
43436         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
43437         bzero for PPC32.
43438         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
43439         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
43440         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
43441         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
43442         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
43443         memset for PPC64.
43444         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
43445
43446         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
43447         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
43448         implementations.
43449         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
43450         (__libc_ifunc_impl_list): Likewise.
43451         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
43452         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
43453         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
43454         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
43455         memcmp for PPC64.
43456
43457         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
43458         multiarch for POWER/PPC64.
43459         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
43460         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
43461         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
43462         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
43463         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
43464         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
43465         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
43466         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
43467         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
43468         memcpy for PPC64.
43469
43470         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
43471         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
43472         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
43473         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
43474         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
43475         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
43476         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
43477         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
43478         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
43479         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
43480         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
43481         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
43482         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
43483         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
43484         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
43485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
43486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
43487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
43488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
43489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
43490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
43491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
43492
43493 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43494
43495         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
43496
43497 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
43498
43499         * benchtests/Makefile (bench): Add exp2 and log2.
43500         (LDLIBS-bench-exp2): Add -lm.
43501         (LDLIBS-bench-log2): Likewise.
43502         * benchtests/exp2-inputs: New inputs file.
43503         * benchtests/log2-inputs: New inputs file.
43504         * benchtests/log-inputs: Add new inputs.
43505         * benchtests/tan-inputs: Likewise.
43506
43507 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43508
43509         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
43510         definition...
43511         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
43512         (csloww2): ... from here.
43513
43514         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
43515         instead of structures.
43516         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
43517         (POLYNOMIAL): Likewise.
43518         (TAYLOR_SLOW): Likewise.
43519         (__sin): Likewise.
43520         (__cos): Likewise.
43521         (slow1): Likewise.
43522         (slow2): Likewise.
43523         (sloww): Likewise.
43524         (sloww1); Likewise.
43525         (sloww2): Likewise.
43526         (bsloww1): Likewise.
43527         (bsloww2): Likewise.
43528         (cslow2): Likewise.
43529         (csloww): Likewise.
43530         (csloww1): Likewise.
43531         (csloww2): Likewise.
43532
43533 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
43534
43535         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
43536         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
43537         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
43538         * malloc/hooks.c (realloc_check): Likewise.
43539
43540         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
43541         * malloc/arena.c: Remove PER_THREAD conditional.
43542         [!PER_THREAD]: Remove code.
43543         (ptmalloc_unlock_all2): Likewise.
43544         (ptmalloc_init): Likewise.
43545         (_int_new_arena): Likewise.
43546         (arena_get2): Likewise.
43547         * malloc/hooks.c (__malloc_get_state): Likewise.
43548         (__malloc_set_state): Likewise.
43549         * malloc/malloc.c: Likewise.
43550         (struct malloc_state): Likewise.
43551         (struct malloc_par): Likewise.
43552         (__libc_realloc): Likewise.
43553         (__libc_mallopt): Likewise.
43554
43555 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43556
43557         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
43558
43559 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
43560
43561         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
43562         macro to a function.  Check for zero perturb_byte.
43563         (_int_malloc, _int_free): Remove zero perturb_byte checks.
43564
43565         * malloc/malloc.c: (force_reg): Remove.
43566         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
43567         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
43568         force_reg by atomic_forced_read.
43569         * malloc/arena.c (ptmalloc_init): Likewise.
43570         * malloc/hooks.c (top_check): Likewise.
43571
43572 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43573
43574         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43575
43576 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
43577
43578         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43579
43580 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
43581
43582         * math/auto-libm-test-in: Add tests of lgamma.
43583         * math/auto-libm-test-out: Regenerated.
43584         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
43585         (M_LOG_2_SQRT_PIl): Likewise.
43586         (lgamma_test_data): Use AUTO_TESTS_f_f1.
43587         * math/gen-auto-libm-tests.c (func_calc_method): Add value
43588         mpfr_f_f1.
43589         (func_calc_desc): Add mpfr_f_f1 union field.
43590         (ARGS1): New macro.
43591         (ARGS2): Likewise.
43592         (ARGS3): Likewise.
43593         (ARGS4): Likewise.
43594         (RET1): Likewise.
43595         (RET2): Likewise.
43596         (CALC): Likewise.
43597         (FUNC): Likewise.
43598         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
43599         (test_functions): Add lgamma.
43600         (calc_generic_results): Handle mpfr_f_f1.
43601         * sysdeps/i386/fpu/libm-test-ulps: Update.
43602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43603
43604 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43605
43606         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
43607         __mpn_add_n for PowerPC64/POWER7.
43608         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
43609         __mpn_sub_n for PowerPC64/POWER7.
43610
43611         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
43612         __mpn_addmul_1 for PowerPC64.
43613         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
43614         __mpn_submul_1 for PowerPC64.
43615         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
43616         for PowerPC64.
43617         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
43618         for PowerPC64.
43619
43620 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
43621
43622         [BZ #15089]
43623         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
43624
43625 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43626
43627         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
43628
43629         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
43630         add multiarch folders.
43631         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
43632         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
43633         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
43634         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
43635         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
43636         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
43637         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
43638         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
43639         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
43640         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
43641         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
43642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
43643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
43644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
43645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
43646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
43647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
43648
43649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
43650         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
43651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
43652         New file.
43653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
43654         New file.
43655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
43656         multiarch __ieee754_hypot for PowerPC32.
43657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
43658         New file.
43659         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
43660         New file.
43661         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
43662         multiarch __ieee754_hypotf for PowerPC32.
43663
43664         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
43665         long_double_symbol only if __logbl is defined.
43666         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
43667         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
43668         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
43669         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
43670         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
43671         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
43672         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
43673         path for implementation.
43674         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
43675         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
43676         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
43677         logb, and logbl multiarch implementations for PowerPC32.
43678         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
43679         file.
43680         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
43681         file.
43682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
43683         multiarch logb for PowerPC32.
43684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
43685         file.
43686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
43687         file.
43688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
43689         multiarch logbf for PowerPC32.
43690         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
43691         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
43692         file.
43693         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
43694         multiarch logbl implementation for PowerPC32.
43695
43696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
43697         and modff multiarch implementations.
43698         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
43699         New file.
43700         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
43701         New file.
43702         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
43703         multiarch modf for PowerPC32.
43704         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
43705         New file.
43706         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
43707         New file.
43708         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
43709         multiarch modff for PowerPC32.
43710
43711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
43712         and lrintf multiarch implementations.
43713         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
43714         New file.
43715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
43716         New file.
43717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
43718         multiarch lrint for PowerPC32.
43719         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
43720         file: multiarch lrintf for PowerPC32.
43721
43722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
43723         and lroundf multiarch implementations.
43724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
43725         New file.
43726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
43727         New file.
43728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
43729         New file.
43730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
43731         multiarch lround for PowerPC32.
43732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
43733         file: multiarch lroundf for PowerPC32.
43734
43735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
43736         copysign and copysignf multiarch implementations.
43737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
43738         New file.
43739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
43740         New file.
43741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
43742         file: multiarch copysign for PowerPC32.
43743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
43744         file: multiarch copysignf for PowerPC32.
43745
43746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
43747         and truncf multiarch implementations.
43748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
43749         New file.
43750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
43751         file.
43752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
43753         multiarch trunc for PowerPC32.
43754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
43755         New file.
43756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
43757         New file.
43758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
43759         multiarch truncf for PowerPC32.
43760
43761         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
43762         and roundf multiarch implementations.
43763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
43764         New file.
43765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
43766         file.
43767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
43768         multiarch round for PowerPC32.
43769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
43770         New file.
43771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
43772         New file.
43773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
43774         multiarch roundf for PowerPC32.
43775
43776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
43777         and floorf multiarch implementations.
43778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
43779         New file.
43780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
43781         file.
43782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
43783         multiarch floor for PowerPC32.
43784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
43785         New file.
43786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
43787         New file.
43788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
43789         multiarch floorf for PowerPC32.
43790
43791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
43792         and ceilf multiarch implementations.
43793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
43794         New file.
43795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
43796         file.
43797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
43798         multiarch ceil for PowerPC32.
43799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
43800         New file.
43801         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
43802         file.
43803         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
43804         multiarch ceilf for PowerPC32.
43805
43806         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
43807         is defined.
43808         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
43809         FINITEF is defined.
43810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
43811         and finitef multiarch implementations.
43812         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
43813         New file.
43814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
43815         file.
43816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
43817         multiarch finite for PowerPC32.
43818         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
43819         New file.
43820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
43821         file: multiarch finitef for PowerPC32.
43822
43823         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
43824         and isinff multiarch implementations.
43825         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
43826         file.
43827         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
43828         file.
43829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
43830         multiarch isinf for PowerPC32.
43831         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
43832         New file.
43833         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
43834         multiarch isinff for PowerPC32.
43835
43836         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
43837         alias when __isnan is defined.
43838         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
43839         and isnanf multiarch implementations.
43840         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
43841         file.
43842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
43843         file.
43844         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
43845         file.
43846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
43847         file.
43848         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
43849         multiarch isnan for PowerPC32.
43850         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
43851         New file.
43852         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
43853         New file.
43854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
43855         multiarch isnanf for PowerPC32.
43856
43857         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
43858         and sqrtf multiarch implementations.
43859         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
43860         file.
43861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
43862         file.
43863         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
43864         multiarch sqrt for PowerPC32.
43865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
43866         file.
43867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
43868         file.
43869         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
43870         multiarch sqrtf for PowerPC32.
43871
43872         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
43873         and llroundf multiarch implementations.
43874         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
43875         New file.
43876         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
43877         New file.
43878         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
43879         New file.
43880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
43881         file: multiarch llround for PowerPC32.
43882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
43883         file: multiarch llroundf for PowerPC32.
43884
43885         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
43886         multiarch PowerPC32 fpu implementations.
43887         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
43888         New file.
43889         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
43890         New file.
43891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
43892         multiarch llrint for PowerPC32.
43893         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
43894         New file.
43895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
43896         New file.
43897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
43898         file.
43899
43900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
43901
43902         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
43903         file.
43904         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
43905         file.
43906         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
43907         file.
43908         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
43909         multiarch wordcopy for PPC32.
43910         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
43911         wordcopy objects.
43912         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
43913         (__libc_ifunc_impl_list): Likewise.
43914         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
43915         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
43916         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
43917         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
43918         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
43919         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
43920
43921         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
43922         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
43923         file.
43924         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
43925         file.
43926         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
43927         file.
43928         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
43929         multiarch wcscpy for PPC32.
43930         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
43931         multiarch objects.
43932         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
43933         (__libc_ifunc_impl_list): Likewise.
43934         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
43935         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
43936         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
43937         sysdeps/powerpc/power6/wcscpy.c.
43938
43939         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
43940         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
43941         file.
43942         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
43943         file.
43944         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
43945         file.
43946         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
43947         multiarch wcsrchr for PPC32.
43948         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
43949         multiarch objects.
43950         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
43951         (__libc_ifunc_impl_list): Likewise.
43952         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
43953         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
43954         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
43955         sysdeps/powerpc/power6/wcsrchr.c.
43956
43957         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
43958         file.
43959         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
43960         file.
43961         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
43962         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
43963         multiarch wcschr for PPc32.
43964         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
43965         multiarch objects.
43966         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
43967         (__libc_ifunc_impl_list): Likewise.
43968         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
43969         * sysdeps/powerpc/power6/wcschr.c: ... to here.
43970         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
43971         sysdeps/powerpc/power6/wcschr.c.
43972
43973         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
43974         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
43975         file.
43976         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
43977         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
43978         file: multiarch strchr for PPC32.
43979         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
43980         multiarch objects.
43981         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
43982         (__libc_ifunc_impl_list): Likewise.
43983
43984         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
43985         name.
43986         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
43987         file.
43988         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
43989         file.
43990         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
43991         multiarch strchrnul for PPC32.
43992         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
43993         multiarch objects.
43994         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
43995         (__libc_ifunc_impl_list): Likewise.
43996
43997         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
43998         file.
43999         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
44000         multiarch strncasecmp for PPC32.
44001         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
44002         file.
44003         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
44004         multiarch strncasecmp_l for PPC32.
44005         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
44006         strncasecmp multiarch objects.
44007         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44008         (__libc_ifunc_impl_list): Likewise.
44009
44010         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
44011         file.
44012         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
44013         multiarch strncasecmp for PPC32.
44014         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
44015         New file.
44016         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
44017         multiarch strcasecmp_l for PPC32.
44018         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
44019         multiarch objects.
44020         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44021         (__libc_ifunc_impl_list): Likewise.
44022
44023         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
44024         file.
44025         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
44026         file.
44027         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
44028         multiarch strncmp for PPC32.
44029         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
44030         multiarch objects.
44031         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44032         (__libc_ifunc_impl_list): Likewise.
44033
44034         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
44035         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
44036         file.
44037         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
44038         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
44039         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
44040         multiarch objects.
44041         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44042         (__libc_ifunc_impl_list): Likewise.
44043
44044         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
44045         file.
44046         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
44047         file.
44048         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
44049         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
44050         multiarch objects.
44051         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44052         (__libc_ifunc_impl_list): Likewise.
44053
44054         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
44055         file.
44056         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
44057         file.
44058         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
44059         multiarch rawmemchr for PPC32.
44060         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
44061         multiarch objects.
44062         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44063         (__libc_ifunc_impl_list): Likewise.
44064
44065         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
44066         file.
44067         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
44068         file.
44069         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
44070         file: memrchr multiarch for PPC32.
44071         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
44072         multiarch objects.
44073         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
44074         (__libc_ifunc_impl_list): Likewise.
44075
44076         * string/memchr.c (__memchr): Using macro to redefine symbol name.
44077         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
44078         file.
44079         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
44080         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
44081         multiarch memchr for PPC32.
44082         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
44083         multiarch objects.
44084         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44085         (__libc_ifunc_impl_list): Likewise.
44086
44087         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
44088         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
44089         file.
44090         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
44091         file.
44092         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
44093         file: multiarch mempcpy for PPC32.
44094         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
44095         multiarch objects.
44096         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44097         (__libc_ifunc_impl_list): Likewise.
44098
44099         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
44100         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
44101         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
44102         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
44103         multiarch bzero for PPC32.
44104         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
44105         file.
44106         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
44107         file.
44108         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
44109         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
44110         file: multiarch memset for PPC32.
44111         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
44112         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
44113         memset multiarch objects.
44114         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44115         (__libc_ifunc_impl_list): Likewise.
44116
44117         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
44118         file.
44119         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
44120         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
44121         memcmp for PPC32.
44122         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
44123         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
44124         multiarch objects.
44125         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44126         (__libc_ifunc_impl_list): Likewise.
44127
44128         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
44129         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
44130         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
44131         file.
44132         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
44133         file.
44134         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
44135         file.
44136         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
44137         multiarch memcpy for PPC32.
44138         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
44139         multiarch objects.
44140         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
44141         (__libc_ifunc_impl_list): Likewise.
44142
44143         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
44144         support multiarch for POWER/PPC32.
44145         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
44146         Likewise.
44147         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
44148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
44149         Implies file to make multiarch folder appers before the fpu and
44150         default folder for power4 configuration.
44151
44152 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
44153
44154         * scripts/bench.pl: Append volatile keyword to type.
44155
44156 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44157
44158         * sysdeps/sh/sotruss-lib.c: New file.
44159         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
44160
44161 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44162
44163         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44164
44165 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
44166
44167         [BZ #6810]
44168         * math/w_tgamma.c: Include <errno.h>.
44169         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
44170         * math/w_tgammaf.c: Include <errno.h>.
44171         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
44172         * math/w_tgammal.c: Include <errno.h>.
44173         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
44174         * math/auto-libm-test-in: Do not allow missing errno on tgamma
44175         underflow.  Add more tgamma tests.
44176         * math/auto-libm-test-out: Regenerated.
44177         * sysdeps/i386/fpu/libm-test-ulps: Update.
44178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44179
44180         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
44181         sin, sinh, tan, tanh, tgamma, y0 and y1.
44182         * math/auto-libm-test-out: Regenerated.
44183         * math/libm-test.inc (TEST_COND_x86_64): New macro.
44184         (TEST_COND_x86): Likewise.
44185         (M_E2l): Remove macro.
44186         (M_E3l): Likewise.
44187         (M_2_SQRT_PIl): Likewise.
44188         (M_SQRT_PIl): Likewise.
44189         (M_1_DIV_El): Likewise.
44190         (log_test_data): Use AUTO_TESTS_f_f.
44191         (log10_test_data): Likewise.
44192         (log1p_test_data): Likewise.
44193         (log2_test_data): Likewise.
44194         (sin_test_data): Likewise.
44195         (sin_tonearest_test_data): Likewise.
44196         (sin_towardzero_test_data): Likewise.
44197         (sin_downward_test_data): Likewise.
44198         (sin_upward_test_data): Likewise.
44199         (sinh_test_data): Likewise.
44200         (sinh_tonearest_test_data): Likewise.
44201         (sinh_towardzero_test_data): Likewise.
44202         (sinh_downward_test_data): Likewise.
44203         (sinh_upward_test_data): Likewise.
44204         (tan_test_data): Likewise.
44205         (tan_tonearest_test_data): Likewise.
44206         (tan_towardzero_test_data): Likewise.
44207         (tan_downward_test_data): Likewise.
44208         (tan_upward_test_data): Likewise.
44209         (tanh_test_data): Likewise.
44210         (tgamma_test_data): Likewise.
44211         (y0_test_data): Likewise.
44212         (y1_test_data): Likewise.
44213         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
44214         (special_real_inputs): Add pi/4.
44215         * sysdeps/i386/fpu/libm-test-ulps: Update.
44216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44217
44218 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44219
44220         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
44221         "longjmp_target" static probes.
44222         (__longjmp): Rename to __longjmp_symbol.
44223         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
44224         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
44225         on which longjmp to generate.
44226         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
44227         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
44228         probe.
44229         (__sigsetjmp): Rename to __sigsetjmp_symbol.
44230         (__sigjmp_save): Rename to __sigjmp_save_symbol.
44231         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
44232         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
44233         and __sigjmp_save_symbol based on which sigsetjmp to generated.
44234         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
44236         __longjmp_symbol based on which __longjmp to generate.
44237         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
44238         probe.
44239         (setjmp): Rename to setjmp_symbol.
44240         (__sigsetjmp): Rename to __sigsetjmp_symbol.
44241         (_setjmp): Rename to _setjmp_symbol.
44242         (__sigsetjmp): Rename to __sigsetjmp_symbol.
44243         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
44244         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
44245         which setjmp to generate.
44246         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
44247         "longjmp_target" static probes.
44248
44249 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
44250
44251         * benchtests/README: Add note about output arguments.
44252         * benchtests/bench-sincos.c: Remove file.
44253         * benchtests/sincos-inputs: New file.
44254         * scripts/bench.pl: Identify output arguments and define
44255         static variables for them.
44256
44257         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
44258
44259         [BZ #15941]
44260         * Makefile (INSTALL): Add install-plain.texi as the primary
44261         dependency.
44262         * manual/install-plain.texi: New file.
44263         * manual/install.texi: Include node directive only for
44264         non-plaintext output.
44265
44266 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
44267
44268         * stdlib/longlong.h: Update from GCC.
44269
44270         [BZ #6807]
44271         [BZ #15901]
44272         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
44273         * math/w_j0f.c (y0f): Likewise.
44274         * math/w_j0l.c (__y0l): Likewise.
44275         * math/w_j1.c (y1): Likewise.
44276         * math/w_j1f.c (y1f): Likewise.
44277         * math/w_j1l.c (__y1l): Likewise.
44278         * math/w_jn.c (yn): Likewise.
44279         * math/w_jnf.c (ynf): Likewise.
44280         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
44281         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
44282         value for Bessel function domain errors outside _SVID_ mode.
44283         Adjust sign of return value for yn (negative integer, 0).
44284         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
44285         by zero in return for negative x and set sign appropriately for
44286         negative n.
44287         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
44288         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
44289         * math/libm-test.inc (y0_test_data): Add more tests and adjust
44290         expectations in error cases.
44291         (y1_test_data): Likewise.
44292         (yn_test_data): Likewise.
44293         * sysdeps/i386/fpu/libm-test-ulps: Update.
44294         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44295
44296 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44297
44298         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
44299         "64" to "64-v1".  Add "64-v2".
44300         (abi-64-options): Rename to ...
44301         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
44302         (abi-64-condition): Rename to ...
44303         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
44304         (abi-64-ld-soname): Rename to ...
44305         (abi-64-v1-ld-soname): ... this.
44306         (abi-64-v2-options): Define.
44307         (abi-64-v2-condition): Likewise.
44308         (abi-64-v2-ld-soname): Likewise.
44309         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
44310         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
44311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
44312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
44313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
44314
44315 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44316             Alan Modra  <amodra@gmail.com>
44317
44318         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
44319         New versions for use with the ELFv2 ABI.
44320         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
44321         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
44322         declaration.
44323         (struct La_ppc64v2_retval): Likewise.
44324         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
44325         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
44326         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
44327         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
44328         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
44329         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
44330         Do not save or restore CR.
44331         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
44332         (_dl_profile_resolve): Do no save or restore CR.  Support extended
44333         return values for ELFv2 ABI.  Fix location of FPR return registers.
44334         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
44335         updated values for _CALL_ELF == 2.
44336         (La_regs, La_retval, int_retval): Likewise.
44337
44338 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44339
44340         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
44341         (FRAME_MIN_SIZE_PARM): Likewise.
44342         (FRAME_BACKCHAIN): Likewise.
44343         (FRAME_CR_SAVE): Likewise.
44344         (FRAME_LR_SAVE): Likewise.
44345         (FRAME_TOC_SAVE): Likewise.
44346         (FRAME_PARM_SAVE): Likewise.
44347         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
44348         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
44349         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
44350         (call_mcount_parm_offset): New macro.
44351         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
44352         (PROF): Use symbolic stack frame offsets.
44353         (TAIL_CALL_SYSCALL_ERROR): Likewise.
44354         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
44355         Redefine in terms of FRAME_MIN_SIZE.
44356         (_dl_runtime_resolve): Use symbolic stack frame offsets.
44357         (_dl_profile_resolve): Likewise.  Update comment.
44358         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
44359         symbols stack frame offsets.
44360         (__sigsetjmp): Likewise.
44361         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
44362         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
44363         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
44364         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
44365
44366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
44367         (FRAME_BACKCHAIN): Remove.
44368         (FRAME_CR_SAVE): Likewise.
44369         (FRAME_LR_SAVE): Likewise.
44370         (FRAME_COMPILER_DW): Likewise.
44371         (FRAME_LINKER_DW): Likewise.
44372         (FRAME_TOC_SAVE): Likewise.
44373         (FRAME_PARM_SAVE): Likewise.
44374         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
44375         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
44376         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
44377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
44378         (CHECK_SP): Use symbolic stack frame offsets.
44379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
44380         zone" instead of caller's parameter save area for temp storage.
44381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
44382         Likewise.  Also, use symbolic stack frame offsets.
44383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
44384         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
44385         our own stack frame instead of the caller's.
44386         (__socket): Use symbolic stack frame offsets.
44387
44388 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44389             Alan Modra  <amodra@gmail.com>
44390
44391         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
44392         Define.
44393         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
44394         (PPC64_LOCAL_ENTRY_OFFSET): Define.
44395         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
44396         New function.
44397         (elf_machine_fixup_plt): Call it.
44398         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
44399         reloc arguments.
44400         (elf_machine_rela): Update call to elf_machine_plt_conflict.
44401         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
44402         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
44403         r2 before calling target.
44404
44405 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44406             Alan Modra  <amodra@gmail.com>
44407
44408         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
44409         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
44410         versions of macros to support ELFv2 ABI.
44411         (LOCALENTRY): New macro.
44412         (ENTRY, EALIGN): Use it.
44413         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
44414         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
44415         fall through into ENTRY entry point.
44416         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
44417         Only define if _CALL_ELF != 2.
44418
44419         (elf_machine_matches_host): Verify ABI version matches.
44420         (RTLD_START): Use LOCALENTRY.
44421         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
44422         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
44423         (PLT_ENTRY_WORDS): New macro.
44424         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
44425         (elf_machine_runtime_setup): Support ELFv2 ABI.
44426         (elf_machine_fixup_plt): Likewise.
44427         (elf_machine_plt_conflict): Likewise.
44428         (resolve_ifunc): Likewise.
44429         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
44430         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
44431         Likewise.
44432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
44433         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
44434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
44435         (makecontext): Support ELFv2 ABI.
44436         * elf/elf.h (EF_PPC64_ABI): Define.
44437
44438 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44439
44440         * sysdeps/powerpc/powerpc64/sysdep.h
44441         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
44442         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
44443         (ENTRY) [ASSEMBLER]: ... but instead here ...
44444         (EALIGN) [ASSEMBLER]: ... and here.
44445         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
44446         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
44447         (ENTRY_2) [!ASSEMBLER]: Use it.
44448         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
44449         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
44450         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
44451         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
44452         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
44453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
44454         Use PPC64_LOAD_FUNCPTR.
44455
44456         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
44457
44458 2013-12-04  Alan Modra  <amodra@gmail.com>
44459
44460         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
44461         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
44462         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
44463         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
44464
44465         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
44466         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
44467         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
44468         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
44469         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
44470         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
44471
44472 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
44473
44474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
44475         (__makecontext): Fix incorrect CFI when backtracing out of
44476         context created via makecontext.
44477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
44478         (__setcontext): Fix incorrect CFI during switch to new context.
44479         (__novec_setcontext): Likewise.
44480
44481 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
44482
44483         [BZ #4772]
44484         * time/strptime_l.c (__strptime_internal): Allow modifiers
44485         in strptime.
44486         * time/tst-strptime.c (day_tests): Add testcase.
44487
44488 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44489
44490         * scripts/bench.pl: Skip over blank lines.
44491
44492 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
44493
44494         [BZ #926]
44495         * manual/time.texi (Calendar Time): Clarify what timezone functions
44496         use.
44497
44498 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44499
44500         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44501
44502 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
44503
44504         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
44505         implementation.
44506         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
44507         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
44508         * debug/memset_chk.c (__memset_chk): Likewise.
44509         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
44510         * debug/strncpy_chk.c: Likewise.
44511
44512 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
44513
44514         [BZ #15268]
44515         [BZ #15425]
44516         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
44517         (__ieee754_exp): For possibly underflowing results, check size of
44518         result and force underflow exception if required.
44519         * math/auto-libm-test-in: Add more tests of exp.
44520         * math/auto-libm-test-out: Regenerated.
44521         * sysdeps/i386/fpu/libm-test-ulps: Update.
44522         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44523
44524         [BZ #16283]
44525         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
44526         * math/w_exp2f.c (__exp2f): Likewise.
44527         * math/w_exp2l.c (__exp2l): Likewise.
44528         * math/auto-libm-test-in: Do not allow missing errno on exp2
44529         underflow.
44530         * math/auto-libm-test-out: Regenerated.
44531
44532 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
44533
44534         [BZ #16274]
44535         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
44536         handle filename validation.
44537         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
44538         (do_open): Delete.
44539
44540 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
44541
44542         [BZ #6786]
44543         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
44544         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
44545         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
44546         <float.h>.
44547         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
44548         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
44549         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
44550         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
44551         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
44552         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
44553         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
44554         * math/auto-libm-test-in: Don't allow missing errno from erfc.
44555         Add more erfc tests.
44556         * math/auto-libm-test-out: Regenerated.
44557         * sysdeps/i386/fpu/libm-test-ulps: Update.
44558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44559
44560         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
44561         exp2, expm1, j0 and j1.
44562         * math/auto-libm-test-out: Regenerated.
44563         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
44564         (erfc_test_data): Likewise.
44565         (exp_test_data): Likewise.
44566         (exp_tonearest_test_data): Likewise.
44567         (exp_towardzero_test_data): Likewise.
44568         (exp_downward_test_data): Likewise.
44569         (exp_upward_test_data): Likewise.
44570         (exp10_test_data): Likewise.
44571         (exp2_test_data): Likewise.
44572         (expm1_test_data): Likewise.
44573         (j0_test_data): Likewise.
44574         (j1_test_data): Likewise.
44575         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
44576         (input_flag_type): Add flag_xfail_rounding.
44577         (input_flags): Add xfail-rounding.
44578         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
44579         (output_for_one_input_case): Handle flag_xfail_rounding.
44580         * sysdeps/i386/fpu/libm-test-ulps: Update.
44581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44582
44583 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
44584
44585         [BZ #16289]
44586         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
44587         division by 0.
44588
44589 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
44590
44591         [BZ #16195]
44592         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
44593         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
44594         (STAP_PROBE0): New macro.
44595         (STAP_PROBE1): Likewise.
44596         (STAP_PROBE2): Likewise.
44597         (STAP_PROBE3): Likewise.
44598         (STAP_PROBE4): Likewise.
44599
44600 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
44601
44602         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
44603
44604 2013-12-02  Steve Ellcey  <sellcey@mips.com>
44605
44606         * benchtests/Makefile (bench): Add sqrt.
44607         (LDLIBS-bench-sqrt): New.
44608         * benchtests/sqrt-input: New.
44609
44610 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
44611
44612         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
44613         (GAIH_EAI): Likewise.
44614         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
44615         (gaih_inet): Likewise.
44616         (getaddrinfo): Don't use GAIH_EAI.
44617
44618         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
44619         (struct gaih): Remove definition.
44620
44621 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
44622
44623         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
44624         Use HERRNOP directly.
44625
44626 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44627
44628         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44629
44630 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
44631
44632         * math/gen-auto-libm-tests.c (test_functions): Add more
44633         single-argument functions.
44634         (special_fill_pi_2): New function.
44635         (special_fill_minus_pi_2): Likewise.
44636         (special_fill_pi_6): Likewise.
44637         (special_fill_minus_pi_6): Likewise.
44638         (special_fill_pi_3): Likewise.
44639         (special_fill_2pi_3): Likewise.
44640         (special_fill_e): Likewise.
44641         (special_fill_1_e): Likewise.
44642         (special_fill_e_minus_1): Likewise.
44643         (special_real_inputs): Add more special inputs.
44644         (output_for_one_input_case): Do not require ERANGE on underflow to
44645         zero if round-to-nearest result does not underflow to zero, unless
44646         exact results required.
44647         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
44648         atan, atanh, cbrt, cos and cosh.
44649         * math/auto-libm-test-out: Regenerated.
44650         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
44651         (acos_tonearest_test_data): Likewise.
44652         (acos_towardzero_test_data): Likewise.
44653         (acos_downward_test_data): Likewise.
44654         (acos_upward_test_data): Likewise.
44655         (acosh_test_data): Likewise.
44656         (asin_test_data): Likewise.
44657         (asin_tonearest_test_data): Likewise.
44658         (asin_towardzero_test_data): Likewise.
44659         (asin_upward_test_data): Likewise.
44660         (asinh_test_data): Likewise.
44661         (atan_test_data): Likewise.
44662         (atanh_test_data): Likewise.
44663         (cbrt_test_data): Likewise.
44664         (cos_test_data): Likewise.
44665         (cos_tonearest_test_data): Likewise.
44666         (cos_towardzero_test_data): Likewise.
44667         (cos_downward_test_data): Likewise.
44668         (cos_upward_test_data): Likewise.
44669         (cosh_test_data): Likewise.
44670         (cosh_tonearest_test_data): Likewise.
44671         (cosh_towardzero_test_data): Likewise.
44672         (cosh_downward_test_data): Likewise.
44673         (cosh_upward_test_data): Likewise.
44674         * sysdeps/i386/fpu/libm-test-ulps: Update.
44675         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44676
44677 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
44678
44679         [BZ #6787]
44680         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
44681         * math/w_exp10f.c (__exp10f): Likewise.
44682         * math/w_exp10l.c (__exp10l): Likewise.
44683         * math/libm-test.inc (exp10_test_data): Add more tests and expect
44684         errno settings in existing tests.
44685
44686         [BZ #14032]
44687         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
44688         precision control set to double precision.
44689         * sysdeps/i386/fpu/w_sqrt.c: New file.
44690         * math/auto-libm-test-in: Add more tests.
44691         * math/auto-libm-test-out: Update.
44692
44693         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
44694         (sqrt_test_tonearest): New function.
44695         (sqrt_towardzero_test_data): New variable.
44696         (sqrt_test_towardzero): New function.
44697         (sqrt_downward_test_data): New variable.
44698         (sqrt_test_downward): New function.
44699         (sqrt_upward_test_data): New variable.
44700         (sqrt_test_upward): New function.
44701         (main): Call the new functions.
44702
44703         * math/gen-auto-libm-tests.c: New file.
44704         * math/auto-libm-test-in: Likewise.
44705         * math/auto-libm-test-out: New generated file.
44706         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
44707         variables.
44708         (%beautify): Add generated representations of zero.
44709         (top level): Set $auto_input and call parse_auto_input.
44710         (beautify): Remove trailing "f" from hex float constants.
44711         (parse_args): Handle XFAIL_TEST.
44712         (convert_condition): New function.
44713         (or_value): Likewise.
44714         (or_cond_value): Likewise.
44715         (generate_testfile): Handle AUTO_TESTS_* lines.
44716         (parse_auto_input): New function.
44717         * math/libm-test.inc (XFAIL_TEST): New macro.
44718         (ERRNO_UNCHANGED): Update value.
44719         (ERRNO_EDOM): Likewise.
44720         (ERRNO_ERANGE): Likewise.
44721         (IGNORE_RESULT): Likewise.
44722         (TEST_COND_flt_32): New macro.
44723         (TEST_COND_dbl_64): Likewise.
44724         (TEST_COND_ldbl_96_intel): Likewise.
44725         (TEST_COND_ldbl_96_m68k): Likewise.
44726         (TEST_COND_ldbl_128): Likewise.
44727         (TEST_COND_ldbl_128ibm): Likewise.
44728         (TEST_COND_long32): Likewise.
44729         (TEST_COND_long64): Likewise.
44730         (TEST_COND_before_rounding): Likewise.
44731         (TEST_COND_after_rounding): Likewise.
44732         (enable_test): Handle XFAIL_TEST flag.
44733         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
44734         with finite results.
44735         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
44736         auto-libm-test-out.
44737
44738 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
44739             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44740
44741         [BZ #16214]
44742         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
44743         __tls_get_addr_internal instead of __tls_get_offset in order to
44744         avoid GOT pointer dependency.  Make rtld export
44745         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
44746         __tls_get_addr since we are a __tls_get_offset platform.
44747         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
44748         GOT pointer being set up before.
44749         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
44750
44751 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
44752
44753         * manual/math.texi (Errors in Math Functions): Document accuracy
44754         goals.
44755
44756         [BZ #15004]
44757         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
44758         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
44759         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
44760         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
44761         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
44762         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
44763         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
44764         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
44765         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
44766         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
44767         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
44768         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
44769         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
44770         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
44771         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
44772         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
44773
44774         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
44775         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
44776         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
44777         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
44778         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
44779         Likewise.
44780         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
44781         Likewise.
44782         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
44783         Likewise.
44784         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
44785         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
44786         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
44787         atomic-feupdateenv and flt-rounds.
44788         * sysdeps/powerpc/nofpu/Versions (libc): Add
44789         __atomic_feholdexcept, __atomic_feclearexcept,
44790         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
44791         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
44792         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
44793         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
44794         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
44795         here.
44796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
44797         Update.
44798
44799         * manual/arith.texi (FP Exceptions): Document that exceptions may
44800         not be raised when matherr is used.
44801         (Math Error Reporting): Document overflow in directed rounding
44802         modes.  Document that errno may not be set when finite values are
44803         returned on overflow.  Document intent to set errno on underflow
44804         only for underflow to zero.
44805
44806         [BZ #16271]
44807         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
44808         round-to-nearest then adjust result for other rounding modes.
44809         * include/fenv.h (fegetround): Use libm_hidden_proto.
44810         * math/fegetround.c (fegetround): Use libm_hidden_def.
44811         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
44812         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
44813         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
44814         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
44815         Likewise.
44816         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
44817         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
44818         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
44819         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
44820
44821 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44822
44823         [BZ #16077]
44824         * nss/Versions (libnss_files): Add
44825         _nss_files_gethostbyname3_r.
44826         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
44827         New function.
44828         (HOST_DB_LOOKUP): Remove macro.
44829         (_nss_files_gethostbyname_r): Implement function without the
44830         HOST_DB_LOOKUP macro.
44831         (_nss_files_gethostbyname2_r): Likewise.
44832
44833 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
44834
44835         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
44836
44837 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
44838
44839         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
44840         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
44841         warning.
44842
44843 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44844
44845         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
44846         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
44847         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
44848         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
44849         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
44850         __fe_nomask_env_priv and attribute_hidden.
44851         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
44852         (libc_feupdateenv_test_ppc): Likewise.
44853         (libc_feresetround_ppc): Likewise.
44854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
44855         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
44856         compat_symbol macro.
44857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
44858         (__fe_nomask_env): Likewise.
44859         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
44860
44861 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
44862
44863         * string/Makefile: Remove ifunc tests.
44864         * string/test-string.h: Define TEST_IFUNC.
44865         * string/test-bcopy-ifunc.c: Remove.
44866         * string/test-bzero-ifunc.c: Likewise.
44867         * string/test-memccpy-ifunc.c: Likewise.
44868         * string/test-memchr-ifunc.c: Likewise.
44869         * string/test-memcmp-ifunc.c: Likewise.
44870         * string/test-memcpy-ifunc.c: Likewise.
44871         * string/test-memmem-ifunc.c: Likewise.
44872         * string/test-memmove-ifunc.c: Likewise.
44873         * string/test-mempcpy-ifunc.c: Likewise.
44874         * string/test-memrchr-ifunc.c: Likewise.
44875         * string/test-memset-ifunc.c: Likewise.
44876         * string/test-rawmemchr-ifunc.c: Likewise.
44877         * string/test-stpcpy-ifunc.c: Likewise.
44878         * string/test-stpncpy-ifunc.c: Likewise.
44879         * string/test-strcasecmp-ifunc.c: Likewise.
44880         * string/test-strcasestr-ifunc.c: Likewise.
44881         * string/test-strcat-ifunc.c: Likewise.
44882         * string/test-strchr-ifunc.c: Likewise.
44883         * string/test-strchrnul-ifunc.c: Likewise.
44884         * string/test-strcmp-ifunc.c: Likewise.
44885         * string/test-strcpy-ifunc.c: Likewise.
44886         * string/test-strcspn-ifunc.c: Likewise.
44887         * string/test-strlen-ifunc.c: Likewise.
44888         * string/test-strncasecmp-ifunc.c: Likewise.
44889         * string/test-strncat-ifunc.c: Likewise.
44890         * string/test-strncmp-ifunc.c: Likewise.
44891         * string/test-strncpy-ifunc.c: Likewise.
44892         * string/test-strnlen-ifunc.c: Likewise.
44893         * string/test-strpbrk-ifunc.c: Likewise.
44894         * string/test-strrchr-ifunc.c: Likewise.
44895         * string/test-strspn-ifunc.c: Likewise.
44896         * string/test-strstr-ifunc.c: Likewise.
44897
44898 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
44899
44900         * benchtests/Makefile: Remove ifunc tests.
44901         * benchtests/bench-string.h: Define TEST_IFUNC.
44902         * benchtests/bench-bcopy-ifunc.c: Remove.
44903         * benchtests/bench-bzero-ifunc.c: Likewise.
44904         * benchtests/bench-memccpy-ifunc.c: Likewise.
44905         * benchtests/bench-memchr-ifunc.c: Likewise.
44906         * benchtests/bench-memcmp-ifunc.c: Likewise.
44907         * benchtests/bench-memcpy-ifunc.c: Likewise.
44908         * benchtests/bench-memmem-ifunc.c: Likewise.
44909         * benchtests/bench-memmove-ifunc.c: Likewise.
44910         * benchtests/bench-mempcpy-ifunc.c: Likewise.
44911         * benchtests/bench-memrchr-ifunc.c: Likewise.
44912         * benchtests/bench-memset-ifunc.c: Likewise.
44913         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
44914         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
44915         * benchtests/bench-stpcpy-ifunc.c: Likewise.
44916         * benchtests/bench-stpncpy-ifunc.c: Likewise.
44917         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
44918         * benchtests/bench-strcasestr-ifunc.c: Likewise.
44919         * benchtests/bench-strcat-ifunc.c: Likewise.
44920         * benchtests/bench-strchr-ifunc.c: Likewise.
44921         * benchtests/bench-strchrnul-ifunc.c: Likewise.
44922         * benchtests/bench-strcmp-ifunc.c: Likewise.
44923         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
44924         * benchtests/bench-strcpy-ifunc.c: Likewise.
44925         * benchtests/bench-strcspn-ifunc.c: Likewise.
44926         * benchtests/bench-strlen-ifunc.c: Likewise.
44927         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
44928         * benchtests/bench-strncat-ifunc.c: Likewise.
44929         * benchtests/bench-strncmp-ifunc.c: Likewise.
44930         * benchtests/bench-strncpy-ifunc.c: Likewise.
44931         * benchtests/bench-strnlen-ifunc.c: Likewise.
44932         * benchtests/bench-strpbrk-ifunc.c: Likewise.
44933         * benchtests/bench-strrchr-ifunc.c: Likewise.
44934         * benchtests/bench-strsep-ifunc.c: Likewise.
44935         * benchtests/bench-strspn-ifunc.c: Likewise.
44936         * benchtests/bench-strstr-ifunc.c: Likewise.
44937
44938 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
44939
44940         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
44941
44942 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
44943
44944         * resolv/netdb.h: Use __glibc_reserved instead __unused.
44945         * rt/aio.h: Likewise.
44946         * sysdeps/gnu/bits/utmp.h: Likewise.
44947         * sysdeps/gnu/bits/utmpx.h: Likewise.
44948         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
44949         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
44950         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
44951         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
44952         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
44953         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
44954         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
44955         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
44956         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
44957         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
44958         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
44959         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
44960         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
44961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
44962         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
44963         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
44964         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
44965         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
44966         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
44967         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
44968         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
44969         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
44970         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
44971         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
44972         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
44973         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44974         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
44975         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
44976         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
44977         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
44978         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
44979         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
44980         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
44981         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
44982         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
44983         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
44984         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
44985         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
44986         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
44987         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
44988         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
44989         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44990
44991 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
44992
44993         [BZ #16245]
44994         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
44995         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
44996
44997 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
44998
44999         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
45000         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
45001         Likewise.
45002
45003 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45004
45005         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
45006         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
45007         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
45008         (__fesetround): Remove define.
45009         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
45010         rounding and exceptions handling.
45011         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
45012         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
45013         (__fe_nomask_env): Likewise.
45014         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
45015         __fegetround instead of fegetround.
45016         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
45017         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
45018
45019 2013-11-21  Roland McGrath  <roland@hack.frob.com>
45020
45021         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
45022         it's there.
45023
45024         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
45025
45026 2013-11-21  Meador Inge  <meadori@codesourcery.com>
45027
45028         [BZ #11157]
45029         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
45030         (encrypt_r): Likewise.
45031         * malloc/obstack.h (obstack_free): Likewise.
45032         * posix/unistd.h (encrypt): Likewise.
45033
45034 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
45035
45036         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
45037         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
45038         DL_CALL_DT_FINI() that call the functions directly.
45039         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
45040         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
45041         * elf/dl-fini.c: Likewise.
45042
45043 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
45044
45045         * malloc/hooks.c (memalign_check): Add alignment rounding.
45046         * malloc/malloc.c (_mid_memalign): New function.
45047         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
45048         Implement by calling _mid_memalign.
45049         * manual/probes.texi (Memory Allocation Probes): Remove
45050         memory_valloc_retry and memory_pvalloc_retry.
45051
45052 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45053
45054         * locale/programs/locarchive.c (open_archive): Add const
45055         qualifier to ARCHIVEFNAME and copy default fname to
45056         DEFAULT_FNAME.
45057
45058         [BZ #15601]
45059         * libio/tst-widetext.input: Rename Oriya to Odia.
45060         * locale/iso-639.def: Likewise.
45061
45062         * manual/probes.texi (Mathematical Function Probes): Add
45063         documentation for sin, cos, asin and acos probes.
45064         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
45065         (__sin32): Add slowasin probe.
45066         (__cos32): Add slowacos probe.
45067         (__mpsin): Add slowsin probe.
45068         (__mpcos): Add slowcos probe.
45069
45070 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
45071
45072         [BZ #15483]
45073         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
45074         thread-local __sim_exceptions_thread and global
45075         __sim_exceptions_global.
45076         (__sim_disabled_exceptions): Change to thread-local
45077         __sim_disabled_exceptions_thread and global
45078         __sim_disabled_exceptions_global.
45079         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
45080         and global __sim_round_mode_global.
45081         (__simulate_exceptions): Use thread-local floating-point state and
45082         set global state from it as needed.
45083         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
45084         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
45085         __sim_round_mode_thread.
45086         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
45087         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
45088         and global __sim_exceptions_global.
45089         (__sim_disabled_exceptions): Change to thread-local
45090         __sim_disabled_exceptions_thread and global
45091         __sim_disabled_exceptions_global.
45092         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
45093         and global __sim_round_mode_global.
45094         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
45095         (SIM_SET_GLOBAL): Likewise.
45096         * sysdeps/powerpc/soft-fp/sfp-machine.h
45097         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
45098         __sim_round_mode_thread.
45099         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
45100         __sim_disabled_exceptions_thread.
45101         (__sim_exceptions): Change to __sim_exceptions_thread.
45102         (__sim_disabled_exceptions): Change to
45103         __sim_disabled_exceptions_thread.
45104         (__sim_round_mode): Change to __sim_round_mode_thread.
45105         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
45106         thread-local floating-point state and set global state from it as
45107         needed.
45108         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
45109         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
45110         (__sim_disabled_exceptions): Remove extern declaration.
45111         (feenableexcept): Use thread-local floating-point state and set
45112         global state from it as needed.
45113         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
45114         extern declaration.
45115         (__sim_disabled_exceptions): Likewise.
45116         (__sim_round_mode): Likewise.
45117         (__fegetenv): Use thread-local floating-point state.
45118         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
45119         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
45120         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
45121         floating-point state and set global state from it as needed.
45122         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
45123         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
45124         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
45125         Likewise.
45126         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
45127         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
45128         Likewise.
45129         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
45130         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
45131         Use __sim_round_mode_thread.
45132         * math/test-fenv-tls.c: New file.
45133         * math/Makefile (tests): Add test-fenv-tls.
45134         ($(objpfx)test-fenv-tls): Depend on
45135         $(common-objpfx)nptl/libpthread.so.
45136
45137 2013-11-19  Andreas Schwab  <schwab@suse.de>
45138
45139         * locale/programs/locale.c (show_info): Decode wordarray elements.
45140         * locale/categories.def (LC_MONETARY): Add element for
45141         _NL_MONETARY_CRNCYSTR.
45142         * locale/C-monetary.c (conversion_rate): New variable.
45143         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
45144         element.
45145
45146 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
45147
45148         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
45149         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
45150
45151 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
45152
45153         * elf/Makefile (tst-auxv): New test.
45154         * elf/tst-auxv.c: New
45155         * elf/rtld.c (dl_main): Adjust AT_EXECFN
45156
45157 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
45158
45159         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
45160         (hidden_proto): Caller changed.
45161         (hidden_tls_proto): New macro.
45162         (libc_hidden_tls_proto): Likewise.
45163         (rtld_hidden_tls_proto): Likewise.
45164         (libm_hidden_tls_proto): Likewise.
45165         (libresolv_hidden_tls_proto): Likewise.
45166         (librt_hidden_tls_proto): Likewise.
45167         (libdl_hidden_tls_proto): Likewise.
45168         (libnss_files_hidden_tls_proto): Likewise.
45169         (libnsl_hidden_tls_proto): Likewise.
45170         (libnss_nisplus_hidden_tls_proto): Likewise.
45171         (libutil_hidden_tls_proto): Likewise.
45172
45173 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
45174
45175         [BZ #10253]
45176         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
45177         (decompose_rpath): Defer expansion to fillin_rpath.
45178         (_dl_init_paths): Pass linkmap to fillin_rpath.
45179
45180 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
45181
45182         * benchtests/Makefile: Add strsep.
45183         * benchtests/bench-strsep.c: New file: strsep benchtest.
45184         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
45185
45186 2013-11-18  Andreas Schwab  <schwab@suse.de>
45187
45188         * locale/programs/locale.c (show_info) [case byte]: Check for
45189         '\377' instead of '\177'.
45190         * locale/C-monetary.c (not_available): Always use "\377".
45191         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
45192         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
45193         detect unavailable sign_posn locale elements.
45194         * locale/localeconv.c (__localeconv): For grouping and
45195         mon_grouping handle "\177" and "\377" like no grouping.
45196         (INT_ELEM): New macro.  Use it to set all numeric members.
45197         * locale/programs/ld-monetary.c (monetary_read)
45198         <tok_mon_grouping>: Normalize single -1 to the empty string.
45199         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
45200         Likewise.
45201
45202 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
45203
45204         [BZ #16055]
45205         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
45206         when we match (nil).
45207         * stdio-common/tst-sscanf.c (struct test): Add testcase.
45208
45209 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
45210
45211         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
45212         (NO_TEST_INLINE): Update value.
45213         (ERRNO_UNCHANGED): Likewise.
45214         (ERRNO_EDOM): Likewise.
45215         (ERRNO_ERANGE): Likewise.
45216         (IGNORE_RESULT): Likewise.
45217         (check_float_internal): Check signs of NaN results if
45218         TEST_NAN_SIGN used.
45219         (check_complex): Pass TEST_NAN_SIGN flag through to second
45220         check_float_internal call.
45221         (copysign_test_data): Add tests with quiet NaNs as second
45222         argument.  Use TEST_NAN_SIGN.
45223         (fabs_test_data): Add test of negative quiet NaN argument.  Use
45224         TEST_NAN_SIGN.
45225         (signbit_test_data): Add tests of quiet NaN argument.
45226         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
45227
45228         * math/gen-libm-test.pl (show_exceptions): Take extra argument
45229         $ignore_result.
45230         (parse_args): Handle function results specified as IGNORE.
45231         * math/libm-test.inc (IGNORE_RESULT): New macro.
45232         (check_float_internal): Do not check numerical result if flag
45233         IGNORE_RESULT set.
45234         (check_complex): Pass through IGNORE_RESULT to second
45235         check_float_internal call.
45236         (check_int): Do not check numerical result if flag IGNORE_RESULT
45237         set.
45238         (check_long): Likewise.
45239         (check_bool): Likewise.
45240         (check_longlong): Likewise.
45241         (lrint_test_data): Add tests of infinite and NaN arguments.
45242         (lrint_tonearest_test_data): Likewise.
45243         (lrint_towardzero_test_data): Likewise.
45244         (lrint_downward_test_data): Likewise.
45245         (lrint_upward_test_data): Likewise.
45246         (llrint_test_data): Likewise.
45247         (llrint_tonearest_test_data): Likewise.
45248         (llrint_towardzero_test_data): Likewise.
45249         (llrint_downward_test_data): Likewise.
45250         (llrint_upward_test_data): Likewise.
45251         (lround_test_data): Likewise.
45252         (llround_test_data): Likewise.
45253
45254         * math/libm-test.inc (NO_TEST_INLINE): New macro.
45255         (ERRNO_UNCHANGED): Update value.
45256         (ERRNO_EDOM): Likewise.
45257         (ERRNO_ERANGE): Likewise.
45258         (NO_TEST_INLINE_FLOAT): New macro.
45259         (NO_TEST_INLINE_DOUBLE): Likewise.
45260         (enable_test): New function.
45261         (RUN_TEST_f_f): Check enable_test before running test.
45262         (RUN_TEST_2_f): Likewise.
45263         (RUN_TEST_fff_f): Likewise.
45264         (RUN_TEST_c_f): Likewise.
45265         (RUN_TEST_f_f1): Likewise.
45266         (RUN_TEST_fF_f1): Likewise.
45267         (RUN_TEST_fI_f1): Likewise.
45268         (RUN_TEST_ffI_f1): Likewise.
45269         (RUN_TEST_c_c): Likewise.
45270         (RUN_TEST_cc_c): Likewise.
45271         (RUN_TEST_f_i): Likewise.
45272         (RUN_TEST_f_i_tg): Likewise.
45273         (RUN_TEST_ff_i_tg): Likewise.
45274         (RUN_TEST_f_b): Likewise.
45275         (RUN_TEST_f_b_tg): Likewise.
45276         (RUN_TEST_f_l): Likewise.
45277         (RUN_TEST_f_L): Likewise.
45278         (RUN_TEST_fFF_11): Likewise.
45279         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
45280         conditionals.
45281         (cosh_test_data): Likewise.
45282         (exp_test_data): Likewise.
45283         (expm1_test_data): Likewise.
45284         (hypot_test_data): Likewise.
45285         (pow_test_data): Likewise.
45286         (sinh_test_data): Likewise.
45287         (tanh_test_data): Likewise.
45288         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
45289         flags argument.
45290
45291         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
45292         tests with quiet NaN input and output.
45293         (acosh_test_data): Likewise.
45294         (asin_test_data): Likewise.
45295         (asinh_test_data): Likewise.
45296         (atan_test_data): Likewise.
45297         (atanh_test_data): Likewise.
45298         (atan2_test_data): Likewise.
45299         (cbrt_test_data): Likewise.
45300         (cos_test_data): Likewise.
45301         (cosh_test_data): Likewise.
45302         (erf_test_data): Likewise.
45303         (erfc_test_data): Likewise.
45304         (exp_test_data): Likewise.
45305         (exp10_test_data): Likewise.
45306         (exp2_test_data): Likewise.
45307         (expm1_test_data): Likewise.
45308         (hypot_test_data): Likewise.
45309         (j0_test_data): Likewise.
45310         (j1_test_data): Likewise.
45311         (jn_test_data): Likewise.
45312         (lgamma_test_data): Likewise.
45313         (log_test_data): Likewise.
45314         (log10_test_data): Likewise.
45315         (log1p_test_data): Likewise.
45316         (log2_test_data): Likewise.
45317         (pow_test_data): Likewise.
45318         (scalb_test_data): Likewise.
45319         (sin_test_data): Likewise.
45320         (sincos_test_data): Likewise.
45321         (sinh_test_data): Likewise.
45322         (tan_test_data): Likewise.
45323         (tanh_test_data): Likewise.
45324         (tgamma_test_data): Likewise.
45325         (y0_test_data): Likewise.
45326         (y1_test_data): Likewise.
45327         (yn_test_data): Likewise.
45328
45329         [BZ #16167]
45330         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
45331         argument being NaN and avoid computations with second argument in
45332         that case.
45333         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
45334         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
45335         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
45336
45337 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
45338
45339         * locale/iso-639.def: Add Chitwani Tharu (the).
45340
45341 2013-11-14  Andreas Schwab  <schwab@suse.de>
45342
45343         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
45344         word instead of empty string.
45345
45346 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45347
45348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
45349         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
45350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
45351         (__fe_nomask_env): Likewise.
45352
45353 2013-11-13  Steve Ellcey  <sellcey@mips.com>
45354
45355         * benchtests/bench-timing.h: Include time.h.
45356
45357 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
45358
45359         [BZ #15997]
45360         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
45361         to 3.4.0 for x32.
45362         * sysdeps/unix/sysv/linux/configure: Regenerated.
45363
45364 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
45365
45366         [BZ #16151]
45367         * stdlib/strtod_l.c (round_and_return): Do not consider
45368         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
45369         exponent one less than half the least subnormal exponent.
45370         * stdlib/test-strtod-round-data: Add more tests.
45371         * stdlib/tst-strtod-round.c (tests): Regenerated.
45372
45373 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45374
45375         [BZ #14143]
45376         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
45377         (__fe_mask_env): Likewise.
45378         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
45379         libm_hidden_proto and add function prototype.
45380         (__fe_mask_env): Add function prototype.
45381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
45382         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
45383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
45384         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
45385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
45386         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
45387
45388 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45389
45390         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
45391         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
45392
45393 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45394
45395         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
45396         of htab_find_slot().
45397
45398 2013-11-11  David S. Miller  <davem@davemloft.net>
45399
45400         [BZ #16150]
45401         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
45402         symbol in the non-vis3 case in static builds.
45403         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
45404         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
45405         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
45406         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
45407
45408 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
45409
45410         [BZ #387]
45411         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
45412         it is empty.
45413
45414 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45415
45416         * benchtests/Makefile: Add bench-strtod.
45417         * benchtests/bench-strtod.c: New file: strtod benchtest
45418
45419 2013-11-11  Andreas Schwab  <schwab@suse.de>
45420
45421         [BZ #16153]
45422         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
45423         terminating NUL in key length.
45424
45425 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45426
45427         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
45428         Add artificial ODP entry for vDSO symbol for PPC64.
45429         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
45430         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
45431
45432 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
45433
45434         [BZ #15374]
45435         * nss/getent.c (services_keys): Recognize services starting with digit.
45436
45437 2013-11-06  David S. Miller  <davem@davemloft.net>
45438
45439         [BZ #15985]
45440         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
45441         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
45442
45443 2013-11-06  Will Newton  <will.newton@linaro.org>
45444
45445         * manual/memory.texi (Malloc Examples): Remove register
45446         keyword from examples.
45447
45448 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
45449
45450         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
45451
45452 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
45453
45454         [BZ #6981]
45455         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
45456         depending on [__GCC_IEC_559 > 0].
45457         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
45458         depending on [__GCC_IEC_559_COMPLEX > 0].
45459
45460 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
45461
45462         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
45463         to iso-639.def.
45464
45465 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
45466
45467         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
45468
45469 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
45470
45471         [BZ #16112]
45472         * malloc/malloc (malloc_info): Do not handle first bin as
45473         special case.
45474
45475 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
45476
45477         * locale/iso-639.def: Add Central Nahuatl (nhn).
45478
45479 2013-11-01  Bruno Haible  <bruno@clisp.org>
45480
45481         [BZ #7003]
45482         * manual/math.texi (BSD Random): Specify range upper bound as
45483         in POSIX.
45484
45485 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
45486
45487         * locale/iso-639.def: Add Meadow Mari (mhr).
45488
45489 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
45490
45491         [BZ #14752], [BZ #15763]
45492         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
45493         Validate name.
45494         * rt/tst_shm.c: Add test for escaping directory.
45495
45496 2013-10-31  Andreas Schwab  <schwab@suse.de>
45497
45498         [BZ #15917]
45499         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
45500         followed by 'x' as part of digit sequence.
45501         * stdio-common/tst-sscanf.c (double_tests2): New tests.
45502
45503 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
45504
45505         [BZ #16037]
45506         * configure.ac: allow GNU Make 4.0 and greater.
45507         * configure: Regenerated.
45508
45509 2013-10-30  Will Newton  <will.newton@linaro.org>
45510
45511         [BZ #16038]
45512         * malloc/hooks.c (memalign_check): Limit alignment to the
45513         maximum representable power of two.
45514         * malloc/malloc.c (__libc_memalign): Likewise.
45515         * malloc/tst-memalign.c (do_test): Add test for very
45516         large alignment values.
45517         * malloc/tst-posix_memalign.c (do_test): Likewise.
45518
45519 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
45520
45521         [BZ #11087]
45522         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
45523         (munmap_chunk): Likewise.
45524         (mremap_chunk): Likewise.
45525
45526 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
45527
45528         [BZ #15799]
45529         * stdlib/div.c (div): Remove obsolete code.
45530         * stdlib/ldiv.c (ldiv): Likewise.
45531         * stdlib/lldiv.c (lldiv): Likewise.
45532
45533 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45534
45535         [BZ #16071]
45536         * nss/nss_files/files-XXX.c (get_contents_ret): New
45537         enumerator.
45538         (get_contents): New function.
45539         (internal_getent): Use it.  Expand size of LINEBUFLEN.
45540
45541 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
45542
45543         * configure.in: Moved to ...
45544         * configure.ac: ... here. Change reference to configure.in
45545         to configure.ac.
45546         * sysdeps/arm/preconfigure.ac: ... here.
45547         configure.in to configure.ac.
45548         * sysdeps/gnu/configure.in: Moved to ...
45549         * sysdeps/gnu/configure.ac: ... here.
45550         * sysdeps/i386/configure.in: Moved to ...
45551         * sysdeps/i386/configure.ac: ... here.
45552         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
45553         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
45554         * sysdeps/mach/configure.in: Moved to ...
45555         * sysdeps/mach/configure.ac: ... here.
45556         * sysdeps/mach/hurd/configure.in: Moved to ...
45557         * sysdeps/mach/hurd/configure.ac: ... here.
45558         * sysdeps/powerpc/configure.in: Moved to ...
45559         * sysdeps/powerpc/configure.ac: ... here.
45560         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
45561         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
45562         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
45563         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
45564         * sysdeps/s390/s390-32/configure.in: Moved to ...
45565         * sysdeps/s390/s390-32/configure.ac: ... here.
45566         * sysdeps/s390/s390-64/configure.in: Moved to ...
45567         * sysdeps/s390/s390-64/configure.ac: ... here.
45568         * sysdeps/sh/configure.in: Moved to ...
45569         * sysdeps/sh/configure.ac: ... here.
45570         * sysdeps/sparc/configure.in: Moved to ...
45571         * sysdeps/sparc/configure.ac: ... here.
45572         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
45573         * sysdeps/unix/sysv/linux/configure.ac: ... here.
45574         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
45575         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
45576         * sysdeps/x86_64/configure.in: Moved to ...
45577         * sysdeps/x86_64/configure.ac: ... here.
45578         * sysdeps/x86_64/preconfigure.in: Moved to ...
45579         * sysdeps/x86_64/preconfigure.ac: ... here.
45580         * aclocal.m4: Change reference to configure.in to configure.ac.
45581         * config.h.in: Likewise.
45582         * manual/install.texi: Likewise.
45583         * manual/maint.texi: Likewise.
45584         * Makefile: Likewise.
45585         * malloc/Makefile: Likewise.
45586         * nscd/Makefile: Likewise.
45587         * Makeconfig: Change reference to configure.in and
45588         preconfigure.in to configure.ac and preconfigure.ac
45589         respectively.
45590         * INSTALL: Regenerated.
45591         * configure: Likewise.
45592         * sysdeps/gnu/configure: Likewise.
45593         * sysdeps/i386/configure: Likewise.
45594         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
45595         * sysdeps/mach/configure: Likewise.
45596         * sysdeps/mach/hurd/configure: Likewise.
45597         * sysdeps/powerpc/configure: Likewise.
45598         * sysdeps/powerpc/powerpc32/configure: Likewise.
45599         * sysdeps/powerpc/powerpc64/configure: Likewise.
45600         * sysdeps/s390/s390-32/configure: Likewise.
45601         * sysdeps/s390/s390-64/configure: Likewise.
45602         * sysdeps/sh/configure: Likewise.
45603         * sysdeps/sparc/configure: Likewise.
45604         * sysdeps/unix/sysv/linux/configure: Likewise.
45605         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
45606         * sysdeps/x86_64/configure: Likewise.
45607         * sysdeps/x86_64/preconfigure: Likewise.
45608
45609 2013-10-29  Andreas Schwab  <schwab@suse.de>
45610
45611         * stdio-common/Makefile (tst-swscanf-ENV): Define.
45612
45613 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
45614
45615         * benchtests/pow-inputs: Add new inputs.
45616
45617         * benchtests/exp-inputs: Add new inputs.
45618
45619         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
45620         conditional check for return value.
45621         (__cos32): Likewise.
45622
45623 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45624
45625         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
45626         to provide a boost for large inputs with word alignment.
45627         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
45628         implementation based on optimized PPC64 strcpy.
45629         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
45630         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
45631         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
45632         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
45633
45634 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
45635
45636         [BZ #2801]
45637         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
45638
45639 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
45640
45641         [BZ #14876]
45642         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
45643         * time/tst-strptime.c (day_tests): Add testcase.
45644
45645 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
45646
45647         [BZ #14029]
45648         * manual/pattern.texi: Acknowledge that fnmatch can fail.
45649
45650 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
45651
45652         [BZ #16074]
45653         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
45654         MAP_FAILED on error.
45655
45656 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
45657
45658         [BZ #16072]
45659         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
45660         heap for large requests.
45661
45662 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
45663
45664         [BZ #9954]
45665         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
45666         result if the result has no associated interface.
45667         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
45668         interface for all 127.X.Y.Z addresses.
45669
45670 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
45671
45672         * locale/iso-639.def: Add Ligurian (lij)
45673
45674 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
45675
45676         [BZ #15825]
45677         * sunrpc/rpc_main.c: Document rpcgen -5.
45678
45679 2013-10-19  Michael Stahl  <mstahl@redhat.com>
45680
45681         * elf/rtld.c (do_preload): Print the reason why preloading failed.
45682
45683 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
45684
45685         [BZ #10278]
45686         * posix/glob.c: Match only directories when trailing slash is present.
45687         * posix/tst-gnuglob.c (my_opendir): Do not open files.
45688         (main): Add testcase.
45689
45690 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
45691
45692         [BZ #15670]
45693         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
45694
45695 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
45696
45697         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
45698         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
45699         AUTH_DES and cindex for FIPS 140-2.
45700         (DES Encryption): Add cindex FIPS 46-3.
45701
45702         * locale/locarchive.h (struct locarhandle): Add fname.
45703         * locale/programs/localedef.c (main): Pass ARGV[remaining]
45704         if an optional argument was specified to --list-archive,
45705         otherwise NULL.
45706         * locale/programs/locarchive.c (show_archive_content): Take new
45707         argument fname and pass it via ah.fname to open_archive.
45708         * locale/programs/localedef.h: Update decl.
45709         (open_archive): If AH->fname is non-null, open that file
45710         rather than the default file name, and don't ignore ENOENT.
45711         (create_archive): Set AH.fname to NULL.
45712         (delete_locales_from_archive): Likewise.
45713         (add_locales_to_archive): Likewise.
45714         * locale/programs/locfile.c (write_all_categories): Likewise.
45715
45716 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
45717             Aldy Hernandez  <aldyh@redhat.com>
45718
45719         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
45720         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
45721         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
45722         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
45723         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
45724         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
45725         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
45726         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
45727         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
45728         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
45729         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
45730         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
45731         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
45732         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
45733         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
45734         Likewise.
45735         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
45736         Likewise.
45737         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
45738         Likewise.
45739         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
45740         Likewise.
45741         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
45742         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
45743         Likewise.
45744         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
45745         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
45746         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
45747         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
45748         Likewise.
45749         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
45750         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
45751         * sysdeps/powerpc/preconfigure: Likewise.
45752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
45753         Likewise.
45754         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
45755         Replace contents of file by #include of <fenv_libc.h>.
45756         * sysdeps/powerpc/soft-fp/sfp-machine.h
45757         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
45758         and <sys/prctl.h>.
45759         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
45760         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
45761         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
45762         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
45763         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
45764         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
45765         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
45766         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
45767         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
45768         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
45769         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
45770         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
45771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
45772         Allow copysignl PLT reference to be missing.
45773
45774 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
45775             Joseph Myers  <joseph@codesourcery.com
45776
45777         [BZ #15948]
45778         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
45779         single character.
45780         (add_to_tablewc): Assert sequence of wide characters is nonempty.
45781
45782 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
45783
45784         * elf/tst-tls-dlinfo.c: Don't include tls.h.
45785         * elf/tst-tls1.c: Likewise.
45786         * elf/tst-tls10.h: Likewise.
45787         * elf/tst-tls14.c: Likewise.
45788         * elf/tst-tls2.c: Likewise.
45789         * elf/tst-tls3.c: Likewise.
45790         * elf/tst-tls4.c: Likewise.
45791         * elf/tst-tls5.c: Likewise.
45792         * elf/tst-tls6.c: Likewise.
45793         * elf/tst-tls7.c: Likewise.
45794         * elf/tst-tls8.c: Likewise.
45795         * elf/tst-tls9.c: Likewise.
45796         * elf/tst-tlsmod1.c: Likewise.
45797         * elf/tst-tlsmod13.c: Likewise.
45798         * elf/tst-tlsmod13a.c: Likewise.
45799         * elf/tst-tlsmod14a.c: Likewise.
45800         * elf/tst-tlsmod16a.c: Likewise.
45801         * elf/tst-tlsmod16b.c: Likewise.
45802         * elf/tst-tlsmod2.c: Likewise.
45803         * elf/tst-tlsmod3.c: Likewise.
45804         * elf/tst-tlsmod4.c: Likewise.
45805         * elf/tst-tlsmod5.c: Likewise.
45806         * elf/tst-tlsmod6.c: Likewise.
45807
45808 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
45809
45810         [BZ #12486]
45811         * malloc/malloc.c: remove checks for statistics.
45812
45813 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
45814
45815         [BZ #15277]
45816         * inet/inet_net.c (inet_network): Detect additional invalid strings.
45817         * inet/tst-network.c: Add testcase.
45818
45819 2013-10-17  Andreas Schwab  <schwab@suse.de>
45820
45821         [BZ #15218]
45822         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
45823         to determine canonical name.
45824
45825 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
45826
45827         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
45828         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
45829         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
45830         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
45831         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
45832         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
45833         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
45834         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
45835         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
45836         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
45837         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
45838         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
45839         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
45840         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
45841         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
45842         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
45843         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
45844         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
45845         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
45846         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
45847         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
45848         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
45849         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
45850         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
45851         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
45852         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
45853         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
45854         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
45855         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
45856         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
45857         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
45858         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
45859         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
45860         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
45861         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
45862         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
45863         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
45864         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
45865         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
45866         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
45867         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
45868         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
45869         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
45870         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
45871         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
45872         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
45873         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
45874         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
45875         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
45876         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
45877         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
45878         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
45879         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
45880         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
45881         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
45882         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
45883         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
45884         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
45885
45886 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
45887
45888         [BZ #16041]
45889         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
45890         make result into a quiet NaN.
45891
45892 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
45893
45894         * soft-fp/adddf3.c: Fix horizontal whitespace.
45895         * soft-fp/addsf3.c: Likewise.
45896         * soft-fp/addtf3.c: Likewise.
45897         * soft-fp/divdf3.c: Likewise.
45898         * soft-fp/divsf3.c: Likewise.
45899         * soft-fp/divtf3.c: Likewise.
45900         * soft-fp/double.h: Likewise.
45901         * soft-fp/eqdf2.c: Likewise.
45902         * soft-fp/eqsf2.c: Likewise.
45903         * soft-fp/eqtf2.c: Likewise.
45904         * soft-fp/extenddftf2.c: Likewise.
45905         * soft-fp/extended.h: Likewise.
45906         * soft-fp/extendsfdf2.c: Likewise.
45907         * soft-fp/extendsftf2.c: Likewise.
45908         * soft-fp/extendxftf2.c: Likewise.
45909         * soft-fp/fixdfdi.c: Likewise.
45910         * soft-fp/fixdfsi.c: Likewise.
45911         * soft-fp/fixdfti.c: Likewise.
45912         * soft-fp/fixsfdi.c: Likewise.
45913         * soft-fp/fixsfsi.c: Likewise.
45914         * soft-fp/fixsfti.c: Likewise.
45915         * soft-fp/fixtfdi.c: Likewise.
45916         * soft-fp/fixtfsi.c: Likewise.
45917         * soft-fp/fixtfti.c: Likewise.
45918         * soft-fp/fixunsdfdi.c: Likewise.
45919         * soft-fp/fixunsdfsi.c: Likewise.
45920         * soft-fp/fixunsdfti.c: Likewise.
45921         * soft-fp/fixunssfdi.c: Likewise.
45922         * soft-fp/fixunssfsi.c: Likewise.
45923         * soft-fp/fixunssfti.c: Likewise.
45924         * soft-fp/fixunstfdi.c: Likewise.
45925         * soft-fp/fixunstfsi.c: Likewise.
45926         * soft-fp/fixunstfti.c: Likewise.
45927         * soft-fp/floatdidf.c: Likewise.
45928         * soft-fp/floatdisf.c: Likewise.
45929         * soft-fp/floatditf.c: Likewise.
45930         * soft-fp/floatsidf.c: Likewise.
45931         * soft-fp/floatsisf.c: Likewise.
45932         * soft-fp/floatsitf.c: Likewise.
45933         * soft-fp/floattidf.c: Likewise.
45934         * soft-fp/floattisf.c: Likewise.
45935         * soft-fp/floattitf.c: Likewise.
45936         * soft-fp/floatundidf.c: Likewise.
45937         * soft-fp/floatundisf.c: Likewise.
45938         * soft-fp/floatunditf.c: Likewise.
45939         * soft-fp/floatunsidf.c: Likewise.
45940         * soft-fp/floatunsisf.c: Likewise.
45941         * soft-fp/floatunsitf.c: Likewise.
45942         * soft-fp/floatuntidf.c: Likewise.
45943         * soft-fp/floatuntisf.c: Likewise.
45944         * soft-fp/floatuntitf.c: Likewise.
45945         * soft-fp/fmadf4.c: Likewise.
45946         * soft-fp/fmasf4.c: Likewise.
45947         * soft-fp/fmatf4.c: Likewise.
45948         * soft-fp/gedf2.c: Likewise.
45949         * soft-fp/gesf2.c: Likewise.
45950         * soft-fp/getf2.c: Likewise.
45951         * soft-fp/ledf2.c: Likewise.
45952         * soft-fp/lesf2.c: Likewise.
45953         * soft-fp/letf2.c: Likewise.
45954         * soft-fp/muldf3.c: Likewise.
45955         * soft-fp/mulsf3.c: Likewise.
45956         * soft-fp/multf3.c: Likewise.
45957         * soft-fp/negdf2.c: Likewise.
45958         * soft-fp/negsf2.c: Likewise.
45959         * soft-fp/negtf2.c: Likewise.
45960         * soft-fp/op-1.h: Likewise.
45961         * soft-fp/op-2.h: Likewise.
45962         * soft-fp/op-4.h: Likewise.
45963         * soft-fp/op-8.h: Likewise.
45964         * soft-fp/op-common.h: Likewise.
45965         * soft-fp/quad.h: Likewise.
45966         * soft-fp/single.h: Likewise.
45967         * soft-fp/soft-fp.h: Likewise.
45968         * soft-fp/sqrtdf2.c: Likewise.
45969         * soft-fp/sqrtsf2.c: Likewise.
45970         * soft-fp/sqrttf2.c: Likewise.
45971         * soft-fp/subdf3.c: Likewise.
45972         * soft-fp/subsf3.c: Likewise.
45973         * soft-fp/subtf3.c: Likewise.
45974         * soft-fp/truncdfsf2.c: Likewise.
45975         * soft-fp/trunctfdf2.c: Likewise.
45976         * soft-fp/trunctfsf2.c: Likewise.
45977         * soft-fp/trunctfxf2.c: Likewise.
45978         * soft-fp/unorddf2.c: Likewise.
45979         * soft-fp/unordsf2.c: Likewise.
45980         * soft-fp/unordtf2.c: Likewise.
45981
45982 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
45983
45984         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
45985         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
45986
45987 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
45988
45989         * elf/dl-libc.c: Clear initfini list after freeing.
45990
45991 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
45992
45993         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
45994         * soft-fp/addsf3.c: Likewise.
45995         * soft-fp/addtf3.c: Likewise.
45996         * soft-fp/divdf3.c: Likewise.
45997         * soft-fp/divsf3.c: Likewise.
45998         * soft-fp/divtf3.c: Likewise.
45999         * soft-fp/double.h: Likewise.
46000         * soft-fp/eqdf2.c: Likewise.
46001         * soft-fp/eqsf2.c: Likewise.
46002         * soft-fp/eqtf2.c: Likewise.
46003         * soft-fp/extenddftf2.c: Likewise.
46004         * soft-fp/extended.h: Likewise.
46005         * soft-fp/extendsfdf2.c: Likewise.
46006         * soft-fp/extendsftf2.c: Likewise.
46007         * soft-fp/extendxftf2.c: Likewise.
46008         * soft-fp/fixdfdi.c: Likewise.
46009         * soft-fp/fixdfsi.c: Likewise.
46010         * soft-fp/fixdfti.c: Likewise.
46011         * soft-fp/fixsfdi.c: Likewise.
46012         * soft-fp/fixsfsi.c: Likewise.
46013         * soft-fp/fixsfti.c: Likewise.
46014         * soft-fp/fixtfdi.c: Likewise.
46015         * soft-fp/fixtfsi.c: Likewise.
46016         * soft-fp/fixtfti.c: Likewise.
46017         * soft-fp/fixunsdfdi.c: Likewise.
46018         * soft-fp/fixunsdfsi.c: Likewise.
46019         * soft-fp/fixunsdfti.c: Likewise.
46020         * soft-fp/fixunssfdi.c: Likewise.
46021         * soft-fp/fixunssfsi.c: Likewise.
46022         * soft-fp/fixunssfti.c: Likewise.
46023         * soft-fp/fixunstfdi.c: Likewise.
46024         * soft-fp/fixunstfsi.c: Likewise.
46025         * soft-fp/fixunstfti.c: Likewise.
46026         * soft-fp/floatdidf.c: Likewise.
46027         * soft-fp/floatdisf.c: Likewise.
46028         * soft-fp/floatditf.c: Likewise.
46029         * soft-fp/floatsidf.c: Likewise.
46030         * soft-fp/floatsisf.c: Likewise.
46031         * soft-fp/floatsitf.c: Likewise.
46032         * soft-fp/floattidf.c: Likewise.
46033         * soft-fp/floattisf.c: Likewise.
46034         * soft-fp/floattitf.c: Likewise.
46035         * soft-fp/floatundidf.c: Likewise.
46036         * soft-fp/floatundisf.c: Likewise.
46037         * soft-fp/floatunsidf.c: Likewise.
46038         * soft-fp/floatunsisf.c: Likewise.
46039         * soft-fp/floatuntidf.c: Likewise.
46040         * soft-fp/floatuntisf.c: Likewise.
46041         * soft-fp/floatuntitf.c: Likewise.
46042         * soft-fp/fmadf4.c: Likewise.
46043         * soft-fp/fmasf4.c: Likewise.
46044         * soft-fp/fmatf4.c: Likewise.
46045         * soft-fp/gedf2.c: Likewise.
46046         * soft-fp/gesf2.c: Likewise.
46047         * soft-fp/getf2.c: Likewise.
46048         * soft-fp/ledf2.c: Likewise.
46049         * soft-fp/lesf2.c: Likewise.
46050         * soft-fp/letf2.c: Likewise.
46051         * soft-fp/muldf3.c: Likewise.
46052         * soft-fp/mulsf3.c: Likewise.
46053         * soft-fp/multf3.c: Likewise.
46054         * soft-fp/negdf2.c: Likewise.
46055         * soft-fp/negsf2.c: Likewise.
46056         * soft-fp/negtf2.c: Likewise.
46057         * soft-fp/op-1.h: Likewise.
46058         * soft-fp/op-2.h: Likewise.
46059         * soft-fp/op-4.h: Likewise.
46060         * soft-fp/op-8.h: Likewise.
46061         * soft-fp/op-common.h: Likewise.
46062         * soft-fp/quad.h: Likewise.
46063         * soft-fp/single.h: Likewise.
46064         * soft-fp/soft-fp.h: Likewise.
46065         * soft-fp/sqrtdf2.c: Likewise.
46066         * soft-fp/sqrtsf2.c: Likewise.
46067         * soft-fp/sqrttf2.c: Likewise.
46068         * soft-fp/subdf3.c: Likewise.
46069         * soft-fp/subsf3.c: Likewise.
46070         * soft-fp/subtf3.c: Likewise.
46071         * soft-fp/truncdfsf2.c: Likewise.
46072         * soft-fp/trunctfdf2.c: Likewise.
46073         * soft-fp/trunctfsf2.c: Likewise.
46074         * soft-fp/trunctfxf2.c: Likewise.
46075         * soft-fp/unorddf2.c: Likewise.
46076         * soft-fp/unordsf2.c: Likewise.
46077         * soft-fp/unordtf2.c: Likewise.
46078
46079 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
46080
46081         [BZ #15672]
46082         * misc/error.c (error_tail): Fix possible buffer overflow.
46083
46084 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
46085
46086         [BZ #13028]
46087         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
46088         address.
46089
46090 2013-10-14  P. J. McDermott  <pj@pehjota.net>
46091
46092         [BZ #832]
46093         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
46094         testing pipefail option.
46095
46096 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
46097
46098         * soft-fp/double.h: Indent preprocessor directives inside #if.
46099         * soft-fp/extended.h: Likewise.
46100         * soft-fp/op-2.h: Likewise.
46101         * soft-fp/op-4.h: Likewise.
46102         * soft-fp/op-common.h: Likewise.
46103         * soft-fp/quad.h: Likewise.
46104         * soft-fp/single.h: Likewise.
46105         * soft-fp/soft-fp.h: Likewise.
46106
46107 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
46108
46109         * iconv/iconv_prog.c: Fix typos.
46110         * stdio-common/psiginfo-data.h: Likewise.
46111
46112 2013-10-12   Reuben Thomas <rrt@sc3d.org>
46113
46114         [BZ #15764]
46115         * locale/setlocale.c: Fix typo.
46116
46117 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
46118
46119         [BZ #16036]
46120         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
46121         signaling NaN arguments.
46122         * soft-fp/unordsf2.c (__unordsf2): Likewise.
46123         * soft-fp/unordtf2.c (__unordtf2): Likewise.
46124
46125         [BZ #14910]
46126         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
46127         unordered operands.
46128         * soft-fp/gesf2.c (__gesf2): Likewise.
46129         * soft-fp/getf2.c (__getf2): Likewise.
46130         * soft-fp/ledf2.c (__ledf2): Likewise.
46131         * soft-fp/lesf2.c (__lesf2): Likewise.
46132         * soft-fp/letf2.c (__letf2): Likewise.
46133
46134         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
46135         * soft-fp/eqsf2.c (__eqsf2): Likewise.
46136         * soft-fp/eqtf2.c (__eqtf2): Likewise.
46137         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
46138         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
46139         * soft-fp/fixdfti.c (__fixdfti): Likewise.
46140         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
46141         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
46142         * soft-fp/fixsfti.c (__fixsfti): Likewise.
46143         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
46144         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
46145         * soft-fp/fixtfti.c (__fixtfti): Likewise.
46146         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
46147         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
46148         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
46149         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
46150         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
46151         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
46152         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
46153         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
46154         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
46155         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
46156         * soft-fp/floatdisf.c (__floatdisf): Likewise.
46157         * soft-fp/floatsisf.c (__floatsisf): Likewise.
46158         * soft-fp/floattidf.c (__floattidf): Likewise.
46159         * soft-fp/floattisf.c (__floattisf): Likewise.
46160         * soft-fp/floattitf.c (__floattitf): Likewise.
46161         * soft-fp/floatundidf.c (__floatundidf): Likewise.
46162         * soft-fp/floatundisf.c (__floatundisf): Likewise.
46163         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
46164         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
46165         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
46166         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
46167         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
46168         * soft-fp/gesf2.c (__gesf2): Likewise.
46169         * soft-fp/getf2.c (__getf2): Likewise.
46170         * soft-fp/ledf2.c (__ledf2): Likewise.
46171         * soft-fp/lesf2.c (__lesf2): Likewise.
46172         * soft-fp/letf2.c (__letf2): Likewise.
46173
46174         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
46175         Undefine and redefine.
46176         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
46177         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
46178         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
46179         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
46180         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46181         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
46182         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46183         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
46184         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46185         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
46186         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46187         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
46188         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46189         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
46190         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
46191
46192         [BZ #16032]
46193         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
46194         without decrementing exponent if mantissa >= that for the
46195         denominator, not >.
46196         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
46197         denominator, not >.  Decrement exponent in < case instead of
46198         incrementing in >= case.
46199         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
46200         without decrementing exponent if mantissa >= that for the
46201         denominator, not >.
46202
46203         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
46204         computing saturated result for unsigned overflow.
46205
46206 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46207             Jeff Law  <law@redhat.com>
46208
46209         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
46210         (atan2Mp): Add systemtap probe marker.
46211         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
46212         (__ieee754_log): Add systemtap probe marker.
46213         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
46214         (atanMp): Add systemtap probe marker.
46215         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
46216         (tanMp): Add systemtap probe marker.
46217         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
46218         (__slowexp): Add systemtap probe marker.
46219         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
46220         (__slowpow): Add systemtap probe marker.
46221         * manual/probes.texi: Document probes.
46222
46223 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
46224
46225         [BZ #15362]
46226         * libio/fileops.c (_IO_new_file_write): Return count of bytes
46227         written.
46228         (_IO_new_file_xsputn): Don't return EOF if nothing has been
46229         written.
46230         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
46231         written to buffer but not flushed.
46232         * libio/iofwrite_u.c:  Likewise.
46233         * libio/iopadn.c:  Return bytes returned even if EOF was
46234         encountered.
46235         * libio/iowpadn.c:  Likewise.
46236         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
46237         if _IO_padn does not write the whole buffer.
46238         [!COMPILE_WPRINTF] (PAD): Likewise.
46239
46240 2013-10-10  David S. Miller  <davem@davemloft.net>
46241
46242         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
46243         directory block.
46244
46245 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
46246
46247         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
46248         instead of FSF address.
46249         * soft-fp/fixdfti.c: Likewise.
46250         * soft-fp/fixsfti.c: Likewise.
46251         * soft-fp/fixtfti.c: Likewise.
46252         * soft-fp/fixunsdfti.c: Likewise.
46253         * soft-fp/fixunssfti.c: Likewise.
46254         * soft-fp/fixunstfti.c: Likewise.
46255         * soft-fp/floattidf.c: Likewise.
46256         * soft-fp/floattisf.c: Likewise.
46257         * soft-fp/floattitf.c: Likewise.
46258         * soft-fp/floatuntidf.c: Likewise.
46259         * soft-fp/floatuntisf.c: Likewise.
46260         * soft-fp/floatuntitf.c: Likewise.
46261         * soft-fp/trunctfxf2.c: Likewise.
46262
46263         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
46264         * soft-fp/fixdfti.c: Likewise.
46265         * soft-fp/fixsfti.c: Likewise.
46266         * soft-fp/fixtfti.c: Likewise.
46267         * soft-fp/fixunsdfti.c: Likewise.
46268         * soft-fp/fixunssfti.c: Likewise.
46269         * soft-fp/fixunstfti.c: Likewise.
46270         * soft-fp/floattidf.c: Likewise.
46271         * soft-fp/floattisf.c: Likewise.
46272         * soft-fp/floattitf.c: Likewise.
46273         * soft-fp/floatuntidf.c: Likewise.
46274         * soft-fp/floatuntisf.c: Likewise.
46275         * soft-fp/floatuntitf.c: Likewise.
46276         * soft-fp/trunctfxf2.c: Likewise.
46277
46278 2013-10-10  David S. Miller  <davem@davemloft.net>
46279
46280         * sysdeps/sparc/fpu/libm-test-ulps: Update.
46281
46282 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
46283
46284         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
46285         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
46286         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
46287         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
46288         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
46289         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
46290         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
46291
46292         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
46293         for NaNs before doing comparisons on argument.
46294         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
46295         Likewise.
46296
46297 2013-10-10  Will Newton  <will.newton@linaro.org>
46298
46299         * malloc/hooks.c (memalign_check): Ensure the value of bytes
46300         passed to _int_memalign does not overflow.
46301
46302 2013-10-10  Torvald Riegel  <triegel@redhat.com>
46303
46304         * scripts/bench.pl: Add include-sources directive.
46305         * benchtests/README: Update documentation.
46306
46307 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
46308
46309         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
46310         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
46311         instead of FP_INIT_ROUNDMODE.
46312         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
46313         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
46314
46315         [BZ #16034]
46316         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
46317         copy class of input value.
46318         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
46319         not handle exceptions.
46320         * soft-fp/negsf2.c (__negsf2): Likewise.
46321         * soft-fp/negtf2.c (__negtf2): Likewise.
46322         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
46323
46324 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
46325
46326         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
46327         semicolon.  From Linux kernel.
46328
46329 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
46330
46331         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
46332
46333 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
46334
46335         [BZ #156]
46336         * manual/socket.texi: Added statement about buffer
46337         for gethostbyname2_r.
46338
46339 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
46340
46341         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
46342         Use .p2align directive instead, throughout.
46343         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
46344         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
46345         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
46346         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
46347         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
46348         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
46349         * sysdeps/x86_64/strchr.S: Likewise.
46350         * sysdeps/x86_64/strrchr.S: Likewise.
46351
46352 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
46353
46354         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
46355
46356         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
46357
46358         * sysdeps/generic/math_private.h (__mpsin1): Remove
46359         declaration.
46360         (__mpcos1): Likewise.
46361         (__mpsin): New argument __range_reduce.
46362         (__mpcos): Likewise.
46363         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
46364         (slow): Use __mpsin and __mpcos.
46365         (slow1): Likewise.
46366         (slow2): Likewise.
46367         (sloww): Likewise.
46368         (sloww1): Likewise.
46369         (sloww2): Likewise.
46370         (bsloww): Likewise.
46371         (bsloww1): Likewise.
46372         (bsloww2): Likewise.
46373         (cslow2): Likewise.
46374         (csloww): Likewise.
46375         (csloww1): Likewise.
46376         (csloww2): Likewise.
46377         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
46378         range_reduce.  Merge in __mpsin1.
46379         (__mpcos): Likewise.
46380         (__mpsin1): Remove.
46381         (__mpcos1): Likewise.
46382
46383 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
46384
46385         * locale/loadlocale.c (_nl_intern_locale_data): Use
46386         LOCFILE_ALIGNED_P.
46387         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
46388         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
46389         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
46390         obstack data is appropriately aligned.
46391         (obstack_int32_grow_fast): Likewise.
46392         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
46393         * locale/programs/locfile.c (add_locale_uint32): Likewise.
46394         (add_locale_uint32_array): Likewise.
46395
46396 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
46397
46398         * benchtests/Makefile: Remove ARGLIST and RET variables.
46399         ($(objpfx)bench-%.c): Pass only function name to the script.
46400         * benchtests/README: Update documentation.
46401         * benchtests/acos-inputs: Add new directives.
46402         * benchtests/acosh-inputs: Likewise.
46403         * benchtests/asin-inputs: Likewise.
46404         * benchtests/asinh-inputs: Likewise.
46405         * benchtests/atan-inputs: Likewise.
46406         * benchtests/atanh-inputs: Likewise.
46407         * benchtests/cos-inputs: Likewise.
46408         * benchtests/cosh-inputs: Likewise.
46409         * benchtests/exp-inputs: Likewise.
46410         * benchtests/log-inputs: Likewise.
46411         * benchtests/pow-inputs: Likewise.
46412         * benchtests/rint-inputs: Likewise.
46413         * benchtests/sin-inputs: Likewise.
46414         * benchtests/sinh-inputs: Likewise.
46415         * benchtests/tan-inputs: Likewise.
46416         * benchtests/tanh-inputs: Likewise.
46417         * scripts/bench.pl: Add support for new directives.
46418
46419 2013-10-07  Alan Modra  <amodra@gmail.com>
46420
46421         * README: Fix careless merge.
46422
46423 2013-10-05  Alan Modra  <amodra@gmail.com>
46424
46425         * NEWS: Mention powerpc64le support and bugs fixed.
46426         * README: Both big-endian and little-endian powerpc64 supported.
46427
46428 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46429
46430         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
46431         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
46432         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
46433         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
46434
46435 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
46436
46437         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
46438         match prototype.
46439
46440 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
46441
46442         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
46443         Move -mhard-float appending from
46444         ports/sysdeps/powerpc/powerpc32/Makefile.
46445         [$(with-fp) = yes] (ASFLAGS): Likewise.
46446         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
46447         * sysdeps/powerpc/nofpu: Move directory from
46448         ports/sysdeps/powerpc/nofpu.
46449         * sysdeps/powerpc/soft-fp: Move directory from
46450         ports/sysdeps/powerpc/soft-fp.
46451         * sysdeps/powerpc/powerpc32/405: Move directory from
46452         ports/sysdeps/powerpc/powerpc32/405.
46453         * sysdeps/powerpc/powerpc32/440: Move directory from
46454         ports/sysdeps/powerpc/powerpc32/440.
46455         * sysdeps/powerpc/powerpc32/464: Move directory from
46456         ports/sysdeps/powerpc/powerpc32/464.
46457         * sysdeps/powerpc/powerpc32/476: Move directory from
46458         ports/sysdeps/powerpc/powerpc32/476.
46459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
46460         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
46461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
46462         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
46463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
46464         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
46465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
46466         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
46467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
46468         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
46469         * README: Update for powerpc-*-linux-gnu software floating point
46470         support in libc.
46471
46472         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
46473         case to powerpc/powerpc32*.
46474         * sysdeps/unix/sysv/linux/configure: Regenerated.
46475
46476         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
46477         (_FPU_MASK_OM): Define as 0x04.
46478         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
46479         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
46480         0x00c10080.
46481         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
46482         0x0000003c.
46483         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
46484
46485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
46486         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
46487         getcontext_e500.
46488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
46489         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
46490         setcontext_e500.
46491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
46492         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
46493         and setcontext_e500.
46494
46495 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
46496
46497         * locale/iso-3166.def: Update iso-1366.def and related occurrences
46498
46499 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
46500
46501         * manual/threads.texi (Default Thread Attributes): Fix typo.
46502
46503 2013-10-04  Will Newton  <will.newton@linaro.org>
46504
46505         * malloc/Makefile: Add tst-memalign.
46506         * malloc/tst-memalign.c: New file.
46507
46508         * malloc/tst-posix_memalign.c: Add comments.
46509         (do_test): Add comments and call free on all potentially
46510         allocated pointers. Add space after cast.
46511
46512         * malloc/tst-pvalloc.c: Add comments.
46513         (do_test): Add comments and call free on all potentially
46514         allocated pointers. Remove duplicate check for NULL pointer.
46515         Add space after cast.
46516
46517         * malloc/tst-valloc.c: Add comments.
46518         (do_test): Add comments and call free on all potentially
46519         allocated pointers. Remove duplicate check for NULL pointer.
46520         Add space after cast.
46521
46522 2013-10-04  Alan Modra  <amodra@gmail.com>
46523
46524         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
46525         Use stdint types in rather than __attribute__((mode())).
46526         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
46527
46528 2013-10-04  Alan Modra  <amodra@gmail.com>
46529
46530         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
46531         Correct handling of unaligned relocs for little-endian.
46532         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
46533
46534 2013-10-04  Alan Modra  <amodra@gmail.com>
46535
46536         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
46537         * configure: Regenerate.
46538         * nptl/shlib-versions: Powerpc*le starts at 2.18.
46539         * shlib-versions: Likewise.
46540
46541 2013-10-04  Alan Modra  <amodra@gmail.com>
46542
46543         * string/tester.c (test_memrchr): Increment reported test cycle.
46544
46545 2013-10-04  Alan Modra  <amodra@gmail.com>
46546
46547         * string/test-memcpy.c (do_one_test): When reporting errors, print
46548         string address and don't overrun end of string.
46549
46550 2013-10-04  Alan Modra  <amodra@gmail.com>
46551
46552         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
46553         insrdi.  Make better use of reg selection to speed exit slightly.
46554         Schedule entry path a little better.  Remove useless "are we done"
46555         checks on entry to main loop.  Handle wrapping around zero address.
46556         Correct main loop count.  Handle single left-over word from main
46557         loop inline rather than by using loop_small.  Remove extra word
46558         case in loop_small caused by wrong loop count.  Add little-endian
46559         support.
46560         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
46561         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
46562         cache hint.
46563         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
46564         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
46565         support.  Avoid rlwimi.
46566         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
46567
46568 2013-10-04  Alan Modra  <amodra@gmail.com>
46569
46570         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
46571         insrdi.  Formatting.
46572         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
46573         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
46574         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
46575         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46576         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
46577         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
46578
46579 2013-10-04  Alan Modra  <amodra@gmail.com>
46580
46581         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
46582         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46583         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
46584         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
46585         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
46586         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46587         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46588         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
46589         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
46590         use of regs.  Use power7 mtocrf.  Tidy function tails.
46591
46592 2013-10-04  Alan Modra  <amodra@gmail.com>
46593
46594         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
46595         Formatting.  Consistently use rXXX register defines or rN defines.
46596         Use early exit labels that avoid restoring unused non-volatile regs.
46597         Make cr field use more consistent with rWORDn compares.  Rename
46598         regs used as shift registers for unaligned loop, using rN defines
46599         for short lifetime/multiple use regs.
46600         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46601         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
46602         addi 1,1,64 to pop stack frame.  Simplify return value code.
46603         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46604
46605 2013-10-04  Alan Modra  <amodra@gmail.com>
46606
46607         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
46608         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
46609         rather than rlwimi.
46610         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
46611         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
46612         little-endian support.  Correct typos.
46613         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
46614         rather than rlwimi.
46615         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
46616         in loop and entry code to keep "and." results.
46617         (strchr): Add little-endian support.  Comment.  Move cntlzd
46618         earlier in tail.
46619         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
46620
46621 2013-10-04  Alan Modra  <amodra@gmail.com>
46622
46623         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
46624         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
46625         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
46626         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
46627
46628 2013-10-04  Alan Modra  <amodra@gmail.com>
46629
46630         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
46631         (rTMP): Define as r11.
46632         (strcmp): Add little-endian support.  Optimise tail.
46633         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
46634         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46635         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
46636         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
46637         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
46638         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
46639         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
46640
46641 2013-10-04  Alan Modra  <amodra@gmail.com>
46642
46643         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
46644         little-endian support.  Remove unnecessary "are we done" tests.
46645         Handle "s" wrapping around zero and extremely large "size".
46646         Correct main loop count.  Handle single left-over word from main
46647         loop inline rather than by using small_loop.  Correct comments.
46648         Delete "zero" tail, use "end_max" instead.
46649         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
46650
46651 2013-10-04  Alan Modra  <amodra@gmail.com>
46652
46653         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
46654         support.  Don't branch over align.
46655         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
46656         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
46657         support.  Rearrange tmp reg use to suit.  Comment.
46658         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
46659
46660 2013-10-04  Alan Modra  <amodra@gmail.com>
46661
46662         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
46663
46664 2013-10-04  Alan Modra  <amodra@gmail.com>
46665
46666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
46667         conditional form of branch and link when obtaining pc.
46668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
46669
46670 2013-10-04  Alan Modra  <amodra@gmail.com>
46671
46672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
46673         HIWORD/LOWORD.
46674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
46675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
46676
46677 2013-10-04  Alan Modra  <amodra@gmail.com>
46678
46679         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
46680         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
46681         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
46682         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
46683         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
46684         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
46685         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
46686         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
46687         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
46688         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
46689
46690 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
46691             Alistair Popple <alistair@ozlabs.au.ibm.com>
46692             Alan Modra <amodra@gmail.com>
46693
46694         [BZ #15723]
46695         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
46696         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
46697         _dl_hwcap access for little-endian.
46698         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
46699         destroy vmx regs when saving unaligned.
46700         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
46701         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
46702         destroy vmx regs when saving unaligned.
46703
46704 2013-10-04  Alan Modra  <amodra@gmail.com>
46705
46706         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
46707         Don't use a union to pack hi/low value.
46708
46709 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
46710
46711         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
46712         for little-endian.
46713         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46714         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
46715         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
46716         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46717         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46718
46719 2013-10-04  Alan Modra  <amodra@gmail.com>
46720
46721         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
46722         constants to usual value for .cst8 section, and remove redundant
46723         high address load.
46724         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
46725         constant for 0x1p52.  Load little-endian words of double from
46726         correct stack offsets.
46727
46728 2013-10-04  Alan Modra  <amodra@gmail.com>
46729
46730         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
46731         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
46732         words of double from correct stack offsets.
46733         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
46734         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
46735         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46736         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46737         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46738         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46739         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46740         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
46741         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
46742         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46743         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46744         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46745         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
46746         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
46747         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
46748         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
46749         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
46750
46751 2013-10-04  Alan Modra  <amodra@gmail.com>
46752
46753         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
46754         64-bit int/double union.
46755         (_FPU_SETCW): Likewise.
46756         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
46757         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
46758
46759 2013-10-04  Alan Modra  <amodra@gmail.com>
46760
46761         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
46762         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
46763
46764 2013-10-04  Alan Modra  <amodra@gmail.com>
46765
46766         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
46767         use vector int constants.
46768         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
46769
46770 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
46771
46772         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
46773         array with long long.
46774         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
46775         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
46776         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
46777         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
46778         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
46779         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
46780         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
46781         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
46782         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
46783         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
46784         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
46785         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
46786         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
46787
46788 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
46789
46790         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
46791         (__signbit): Likewise.  Correct for little-endian.
46792         (__signbitl): Call __signbit.
46793         (lrint): Correct for little-endian.
46794         (lrintf): Call lrint.
46795
46796 2013-10-04  Alan Modra  <amodra@gmail.com>
46797
46798         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
46799         union 32-bit int array member with 64-bit int array.
46800         (t515, tm256): Double rather than long double.
46801         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
46802
46803 2013-10-04  Alan Modra  <amodra@gmail.com>
46804
46805         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
46806         Delete.
46807         (IEEE854_LONG_DOUBLE_BIAS): Delete.
46808         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
46809         version of math_ldbl.h.
46810
46811 2013-10-04  Alan Modra  <amodra@gmail.com>
46812
46813         [BZ #15734], [BZ #15735]
46814         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
46815         all uses of ieee875 long double macros and unions.  Simplify test
46816         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
46817         ldbl_extract_mantissa value for ix,iy exponents.  Properly
46818         normalize after ldbl_extract_mantissa, and don't add hidden bit
46819         already handled.  Don't treat low word of ieee854 mantissa like
46820         low word of IBM long double and mask off bit when testing for
46821         zero.
46822         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
46823         all uses of ieee875 long double macros and unions.  Simplify tests
46824         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
46825         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
46826         two1022, instead use their values.  Recognise that tests for large
46827         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
46828         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
46829         Rewrite all uses of ieee875 long double macros and unions.  Simplify
46830         test for 0.0L and nan.  Correct negation.
46831         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
46832         ieee875 long double macros and unions.  Correct output for large
46833         magnitude x.  Correct absolute value calculation.
46834         (__erfcl): Likewise.
46835         * math/libm-test.inc: Add tests for errors discovered in IBM long
46836         double versions of fmodl, remainderl, erfl and erfcl.
46837
46838 2013-10-04  Alan Modra  <amodra@gmail.com>
46839
46840         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
46841         all uses of ieee854 long double macros and unions.  Simplify tests
46842         for long doubles that are fully specified by the high double.
46843         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
46844         Likewise.
46845         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
46846         Remove dead code too.
46847         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
46848         (__ieee754_ynl): Likewise.
46849         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
46850         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
46851         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
46852         Remove dead code too.
46853         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
46854         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
46855         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
46856         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
46857         Simplify.
46858         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
46859         Simplify.
46860         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
46861         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
46862         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
46863         Comment on variable precision.
46864         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
46865         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
46866         Likewise.
46867         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
46868         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
46869         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
46870         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
46871         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
46872
46873 2013-10-04  Alan Modra  <amodra@gmail.com>
46874
46875         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
46876         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
46877         all uses of ieee854 long double macros and unions.
46878         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
46879         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
46880         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
46881         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
46882         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
46883         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
46884         Likewise.
46885         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
46886         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
46887         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
46888         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
46889         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
46890         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
46891         Simplify sign and nan test too.
46892         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
46893         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
46894         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
46895         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
46896         Likewise.
46897         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
46898         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
46899         Likewise.
46900         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
46901         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
46902         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
46903         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
46904         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
46905         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
46906
46907 2013-10-04  Alan Modra  <amodra@gmail.com>
46908
46909         * stdio-common/printf_size.c (__printf_size): Don't use
46910         union ieee854_long_double in fpnum union.
46911         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
46912         signbit macro to retrieve sign from long double.
46913         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
46914         retrieve sign from long double.
46915         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
46916         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
46917         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
46918         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
46919         * math/test-misc.c (main): Don't use union ieee854_long_double.
46920
46921 2013-10-04  Alan Modra  <amodra@gmail.com>
46922
46923         [BZ #15680]
46924         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
46925         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
46926         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
46927         calculation.  Remove unnecessary test for denormal exponent.
46928         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
46929         Correct handling of denormals.  Avoid undefined shift behaviour.
46930         Correct normalisation of low mantissa when low double is denormal.
46931         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
46932         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
46933         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
46934         Correct normalisation of low mantissa.  Test for overflow of high
46935         mantissa and normalise.
46936         (ldbl_nearbyint): Use more readable constant for two52.
46937         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
46938         (__mpn_construct_long_double): Fix test for overflow of high
46939         mantissa and correct normalisation.  Avoid undefined shift.
46940
46941 2013-10-04  Alan Modra  <amodra@gmail.com>
46942
46943         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
46944         (union ibm_extended_long_double): Define as an array of ieee754_double.
46945         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
46946         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
46947         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
46948         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
46949         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46950         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
46951         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46952         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
46953         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
46954         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
46955         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
46956
46957 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
46958
46959         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
46960         page size instead of calling getpagesize.
46961
46962         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
46963         (LOCFILE_ALIGN_MASK): Likewise.
46964         (LOCFILE_ALIGN_UP): Likewise.
46965         (LOCFILE_ALIGNED_P): Likewise.
46966         * locale/programs/ld-collate.c (collate_output): Use the new
46967         macros instead of __alignof__ (int32_t).
46968         * locale/weight.h (findidx): Likewise.
46969
46970 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
46971
46972         [BZ #431]
46973         * manual/string.texi: Fix strncat and wcsncat.
46974
46975 2013-10-03  Brooks Moses  <bmoses@google.com>
46976
46977         [BZ #15915]
46978         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
46979         * Makerules: ...here, and adjust associated comments.
46980
46981 2013-10-02  Will Newton  <will.newton@linaro.org>
46982
46983         * malloc/Makefile: Add tst-pvalloc.
46984         * malloc/tst-pvalloc.c: New file.
46985
46986 2013-10-02  Will Newton  <will.newton@linaro.org>
46987
46988         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
46989         improve test coverage.
46990
46991 2013-10-02  Will Newton  <will.newton@linaro.org>
46992
46993         * malloc/Makefile: Add tst-posix_memalign.
46994         * malloc/tst-posix_memalign.c: New file.
46995
46996 2013-10-01  Eric Blake  <eblake@redhat.com>
46997
46998         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
46999         Use __THROWNL rather than __THROW on static functions.
47000
47001 2013-09-30  Petr Machata  <pmachata@redhat.com>
47002
47003         * elf/elf.h (R_AARCH64_ABS16): New macro.
47004         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
47005         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
47006         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
47007         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
47008         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
47009         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
47010         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
47011         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
47012         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
47013         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
47014         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
47015         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
47016         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
47017         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
47018         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
47019         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
47020         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
47021         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
47022         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
47023         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
47024         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
47025         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
47026         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
47027         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
47028         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
47029         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
47030         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
47031         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
47032         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
47033         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
47034         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
47035         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
47036         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
47037         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
47038         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
47039         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
47040         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
47041         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
47042         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
47043         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
47044         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
47045         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
47046         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
47047         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
47048         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
47049         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
47050         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
47051         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
47052         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
47053         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
47054         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
47055         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
47056         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
47057         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
47058         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
47059         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
47060         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
47061         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
47062         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
47063         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
47064         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
47065         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
47066         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
47067         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
47068         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
47069         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
47070         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
47071         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
47072         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
47073         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
47074         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
47075         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
47076         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
47077         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
47078         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
47079         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
47080         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
47081         (R_AARCH64_TLSDESC_LDR): Likewise.
47082         (R_AARCH64_TLSDESC_ADD): Likewise.
47083         (R_AARCH64_TLSDESC_CALL): Likewise.
47084
47085 2013-09-30  Andreas Schwab  <schwab@suse.de>
47086
47087         [BZ #15048]
47088         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
47089         the nss database lookup.
47090         * nscd/initgrcache.c (addinitgroupsX): Likewise.
47091         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
47092
47093 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
47094
47095         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
47096
47097 2013-09-28  P. J. McDermott  <pj@pehjota.net>
47098
47099         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
47100         ${Bash-specific parameter/pattern/string} parameter expansion.
47101         * sysdeps/unix/make-syscalls.sh: Likewise.
47102
47103 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
47104
47105         * sysdeps/sh/stackguard-macros.h: New file.
47106
47107 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
47108
47109         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
47110         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
47111         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
47112         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
47113         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
47114         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
47115
47116 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47117
47118         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
47119         Fix thread ID register.
47120
47121 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
47122
47123         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
47124         [POSIX || UNIX98]: Require rather than permitting all symbols from
47125         <time.h>.
47126         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
47127         element of struct sched_param.
47128         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
47129         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
47130         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
47131         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
47132         constant.
47133
47134 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
47135
47136         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
47137         argument calculation.
47138
47139 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
47140
47141         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
47142         Expect macro.
47143         [POSIX] (pthread_attr_t): Do not require type.
47144         [POSIX] (pthread_cond_t): Likewise.
47145         [POSIX] (pthread_condattr_t): Likewise.
47146         [POSIX] (pthread_key_t): Likewise.
47147         [POSIX] (pthread_mutex_t): Likewise.
47148         [POSIX] (pthread_mutexattr_t): Likewise.
47149         [POSIX] (pthread_once_t): Likewise.
47150         [POSIX] (pthread_t): Likewise.
47151         [POSIX-based standards] (pthread_atfork): Expect function.
47152
47153 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
47154             Richard Sandiford  <richard@codesourcery.com>
47155
47156         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
47157         (swap_endianness_p): New extern variable.
47158         (set_big_endian): New inline function.
47159         (maybe_swap_uint32): Likewise.
47160         (maybe_swap_uint32_array): Likewise.
47161         (maybe_swap_uint32_obstack): Likewise.
47162         * locale/programs/locfile.c: Include <stdbool.h>.
47163         (swap_endianness_p): New variable.
47164         (add_locale_uint32): Call maybe_swap_uint32.
47165         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
47166         (write_locale_data): Call maybe_swap_uint32_array.
47167         * locale/programs/ld-collate.c (obstack_int32_grow): Call
47168         maybe_swap_uint32.
47169         (obstack_int32_grow_fast): Likewise.
47170         (output_weightwc): Call maybe_swap_uint32_obstack.
47171         (collate_output): Likewise.
47172         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
47173         (OPT_LITTLE_ENDIAN): Likewise.
47174         (options): Add --little-endian and --big-endian options.
47175         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
47176         * locale/programs/locarchive.c: Include "locfile.h".
47177         (GET): New macro.
47178         (SET): Likewise.
47179         (INC): Likewise.
47180         (create_archive): Use the new macros to access fields of
47181         structures directly mapped from or written to locale archives.
47182         (oldlocrecentcmp): Likewise.
47183         (enlarge_archive): Likewise.
47184         (insert_name): Likewise.
47185         (add_alias): Likewise.
47186         (add_locale): Likewise.
47187         (delete_locales_from_archive): Likewise.
47188         (show_archive_content): Likewise.
47189         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
47190         locale data.
47191
47192 2013-09-24  Roland McGrath  <roland@hack.frob.com>
47193
47194         * manual/freemanuals.texi: Updated from (newly) canonical copy at
47195         http://www.gnu.org/doc/freemanuals.texi.
47196         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
47197
47198 2013-09-24  Will Newton  <will.newton@linaro.org>
47199
47200         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
47201         macro.
47202
47203 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
47204
47205         * locale/hashval.h (compute_hashval): Interpret bytes of key as
47206         unsigned char.
47207
47208 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
47209
47210         * manual/threads.texi (POSIX Threads): Fix a typo.
47211
47212 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
47213
47214         [BZ #14547]
47215         * string/tst-strcoll-overflow.c: New test case.
47216         * string/Makefile (xtests): Add tst-strcoll-overflow.
47217         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
47218         cache if string sizes may cause integer overflow.
47219
47220         [BZ #14547]
47221         * string/strcoll_l.c (coll_seq): New members rule, idx,
47222         save_idx and back_us.
47223         (get_next_seq_nocache): New function.
47224         (do_compare_nocache): New function.
47225         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
47226         when malloc fails.
47227
47228 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
47229
47230         [BZ #15754]
47231         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
47232         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
47233         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
47234
47235         [BZ #15754]
47236         * elf/Makefile (tests): Add tst-ptrguard1.
47237         (tests-static): Add tst-ptrguard1-static.
47238         (tst-ptrguard1-ARGS): Define.
47239         (tst-ptrguard1-static-ARGS): Define.
47240         * elf/tst-ptrguard1.c: New file.
47241         * elf/tst-ptrguard1-static.c: New file.
47242         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
47243         * sysdeps/i386/stackguard-macros.h: Likewise.
47244         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
47245         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
47246         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
47247         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
47248         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
47249         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
47250
47251 2013-09-23  Hector Marco  <hecmargi@upv.es>
47252             Ismael Ripoll  <iripoll@disca.upv.es>
47253             Carlos O'Donell  <carlos@redhat.com>
47254
47255         [BZ #15754]
47256         * sysdeps/generic/stackguard-macros.h: Define
47257         __pointer_chk_guard_local and POINTER_CHK_GUARD.
47258         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
47259         Define __pointer_chk_guard_local.
47260         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
47261         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
47262
47263 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
47264
47265         [BZ #15859]
47266         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
47267
47268 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
47269
47270         * include/string.h (__ffs): Declare as hidden.
47271         * string/ffs.c (__ffs): Define as hidden.
47272         * sysdeps/i386/ffs.c (__ffs): Likewise.
47273         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
47274         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
47275         * sysdeps/s390/ffs.c (__ffs): Likewise.
47276         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
47277
47278 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
47279
47280         * NEWS: Mention malloc probes.
47281
47282         * malloc/arena.c (new_heap): New memory_heap_new probe.
47283         (grow_heap): New memory_heap_more probe.
47284         (shrink_heap): New memory_heap_less probe.
47285         (heap_trim): New memory_heap_free probe.
47286         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
47287         (systrim): New memory_sbrk_less probe.
47288         * manual/probes.texi: Document them.
47289
47290         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
47291         * manual/probes.texi: Document it.
47292
47293         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
47294         (__libc_realloc): Add memory_realloc_retry probe.
47295         (__libc_memalign): Add memory_memalign_retry probe.
47296         (__libc_valloc): Add memory_valloc_retry probe.
47297         (__libc_pvalloc): Add memory_pvalloc_retry probe.
47298         (__libc_calloc): Add memory_calloc_retry probe.
47299         * manual/probes.texi: Document them.
47300
47301         * malloc/arena.c (get_free_list): Add probe
47302         memory_arena_reuse_free_list.
47303         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
47304         and memory_arena_reuse.
47305         (arena_get2) [!PER_THREAD]: Likewise.
47306         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
47307         memory_arena_reuse_realloc.
47308         * manual/probes.texi: Document them.
47309
47310         * malloc/malloc.c (__libc_free): Add
47311         memory_mallopt_free_dyn_thresholds probe.
47312         (__libc_mallopt): Add multiple memory_mallopt probes.
47313         * manual/probes.texi: Document them.
47314
47315         * malloc/malloc.c: Include stap-probe.h.
47316         (__libc_mallopt): Add memory_mallopt probe.
47317         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
47318         * manual/probes.texi: New.
47319         * manual/Makefile (chapters): Add probes.
47320         * manual/threads.texi: Set next node.
47321
47322 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
47323
47324         [BZ #15963, #13985]
47325         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
47326         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
47327         Add `Chinese' to `nan' entry name.
47328
47329 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
47330
47331         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
47332         (POLYNOMIAL): Likewise.
47333         (TAYLOR_SINCOS): Likewise.
47334         (TAYLOR_SLOW): Likewise.
47335         (__sin): Use TAYLOR_SINCOS.
47336         (__cos): Likewise.
47337         (slow): Use TAYLOR_SLOW.
47338         (sloww): Likewise.
47339         (bsloww): Likewise.
47340         (csloww): Likewise.
47341
47342 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
47343
47344         * stdlib/strtod_l.c: Fix buffer overrun.
47345
47346 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
47347
47348         * benchtests/Makefile (bench): Add sincos.
47349         * benchtests/bench-sincos.c: New file.
47350
47351         * math/libm-test.inc (cos_test_data): New test inputs.
47352         (sin_test_data): Likewise.
47353
47354         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
47355         macro.
47356         (__sin): Use it.
47357         (__cos): Likewise.
47358         (slow1): Likewise.
47359         (slow2): Likewise.
47360         (sloww1): Likewise.
47361         (sloww2): Likewise.
47362         (bsloww1): Likewise.
47363         (bsloww2): Likewise.
47364         (cslow2): Likewise.
47365         (csloww1): Likewise.
47366         (csloww2): Likewise.
47367
47368         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
47369         function.
47370         (__sin): Use it.
47371         (__cos): Likewise.
47372
47373         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
47374         gotos.
47375         (__cos): Likewise.
47376
47377 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
47378
47379         * config.h.in (HAVE_MIPS_NAN2008): New macro.
47380         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
47381         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
47382         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
47383         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
47384         * elf/cache.c (print_entry): Handle the new cache flags.
47385
47386 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
47387             Aldy Hernandez  <aldyh@redhat.com>
47388
47389         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
47390         Change condition to [_SOFT_FLOAT].
47391         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
47392         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
47393         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
47394         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
47395         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
47396         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
47397         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
47398         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
47399         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
47400         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
47401         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
47402         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
47403         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
47404         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
47405         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
47406         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
47407         declaration.
47408
47409 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
47410
47411         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
47412         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
47413         (__longjmp): Use LOAD_GP to load saved GPRs.
47414         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
47415         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
47416         (__sigsetjmp): Use SAVE_GP to save GPRs.
47417
47418         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
47419         Do not append -msoft-float.
47420         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
47421
47422 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
47423
47424         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
47425
47426 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
47427
47428         [BZ #15966]
47429         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
47430         (_FPU_GETCW): Use initial "__" on variable and field names but not
47431         on macro parameter name.
47432         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
47433         parentheses around reference to macro parameter.
47434
47435 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
47436
47437         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
47438         prototype.
47439         (ctype_startup): Use uint32_t in cast and sizeof for
47440         ctype->charnames.
47441
47442 2013-09-11  Jia Liu  <proljc@gmail.com>
47443
47444         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
47445         __daddr_t_defined.
47446         [__FreeBSD__]: Likewise.
47447
47448 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
47449
47450         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
47451         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
47452         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
47453         (strchr): Remove __strchr_sse42 ifunc selection.
47454         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
47455         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
47456
47457 2013-09-11  Will Newton  <will.newton@linaro.org>
47458
47459         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
47460         parameter to RES. Remove hardcoded 1000 value.
47461         * benchtests/bench-skeleton.c (main): Pass RES parameter
47462         to TIMING_INIT and multiply result by 1000.
47463
47464 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47465
47466         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47467
47468 2013-09-11  Andreas Schwab  <schwab@suse.de>
47469
47470         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
47471         if not defined.
47472         (O_TMPFILE) [__USE_GNU]: Define.
47473         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
47474         Define.
47475
47476 2013-09-11  Will Newton  <will.newton@linaro.org>
47477
47478         [BZ #15857]
47479         * malloc/malloc.c (__libc_memalign): Check the value of bytes
47480         does not overflow.
47481
47482 2013-09-11  Will Newton  <will.newton@linaro.org>
47483
47484         [BZ #15856]
47485         * malloc/malloc.c (__libc_valloc): Check the value of bytes
47486         does not overflow.
47487
47488 2013-09-11  Will Newton  <will.newton@linaro.org>
47489
47490         [BZ #15855]
47491         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
47492         does not overflow.
47493
47494 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
47495
47496         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
47497         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
47498         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
47499         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
47500         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
47501
47502 2013-09-10  Allan McRae  <allan@archlinux.org>
47503
47504         [BZ #15748]
47505         * manual/arith.texi (Parsing of Floats): Clarify
47506         cross-reference.
47507
47508         [BZ #15849]
47509         * manual/install.texi (Running make install): Mention
47510         --enable-pt-chown.
47511         * INSTALL: Regenerated.
47512
47513 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
47514
47515         * csu/init-first.c (_init): Remove the !SHARED condition around
47516         FPU control word initialization.
47517         * elf/dl-support.c (_dl_fpu_control): New variable.
47518         (_dl_aux_init) <AT_FPUCW>: Initialize it.
47519         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
47520         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
47521         * math/test-fpucw-static.c: New file.
47522         * math/test-fpucw-ieee.c: New file.
47523         * math/test-fpucw-ieee-static.c: New file.
47524         * math/Makefile (tests): Add `test-fpucw-ieee' and
47525         `$(tests-static)'.
47526         (tests-static): New variable.
47527         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
47528         dependency to...
47529         [($(build-shared),yes)]
47530         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
47531         ... this.
47532         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
47533         New dependency.
47534
47535 2013-09-09  Allan McRae  <allan@archlinux.org>
47536
47537         [BZ #15939]
47538         * manual/string.texi (Collation Functions): Fix typo in
47539         strcoll example.
47540         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
47541
47542         [BZ #15893]
47543         * stdlib/isomac.c (get_null_defines): Fix memory leak.
47544
47545         [BZ #15892]
47546         * libio/memstream.c (open_memstream): Fix memory leak.
47547         * libio/wmemstream.c (open_wmemstream): Likewise.
47548
47549         [BZ #15895]
47550         * nscd/netgroupcache.c: Fix nesting of ifdefs.
47551
47552 2013-09-09  Will Newton  <will.newton@linaro.org>
47553
47554         * malloc/Makefile: Add tst-realloc to tests.
47555         * malloc/tst-realloc.c: New file.
47556
47557 2013-09-09  Allan McRae  <allan@archlinux.org>
47558
47559         [BZ #15844]
47560         * COPYING: Update from GNU website to fix FSF address.
47561         * COPYING.LIB: Likewise.
47562
47563 2013-09-06  David S. Miller  <davem@davemloft.net>
47564
47565         * po/zh_TW.po: Update Chinese (traditional) translation from
47566         translation project.
47567
47568 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
47569             Joseph Myers  <joseph@codesourcery.com>
47570
47571         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
47572         "localeinfo.h".
47573         (obstack_chunk_alloc): New macro.
47574         (obstack_chunk_free): Likewise.
47575         (record_offset): New function.
47576         (init_locale_data): Likewise.
47577         (align_locale_data): Likewise.
47578         (add_locale_empty): Likewise.
47579         (add_locale_raw_data): Likewise.
47580         (add_locale_raw_obstack): Likewise.
47581         (add_locale_string): Likewise.
47582         (add_locale_wstring): Likewise.
47583         (add_locale_uint32): Likewise.
47584         (add_locale_uint32_array): Likewise.
47585         (add_locale_char): Likewise.
47586         (start_locale_structure): Likewise.
47587         (end_locale_structure): Likewise.
47588         (start_locale_prelude): Likewise.
47589         (end_locale_prelude): Likewise.
47590         (write_locale_data): Take locale_file structure rather than an
47591         iovec.
47592         * locale/programs/locfile.h: Include "obstack.h".
47593         (struct locale_file): Change to store locale file contents instead
47594         of header.
47595         (init_locale_data): New prototype.
47596         (align_locale_data): Likewise.
47597         (add_locale_empty): Likewise.
47598         (add_locale_raw_data): Likewise.
47599         (add_locale_raw_obstack): Likewise.
47600         (add_locale_string): Likewise.
47601         (add_locale_wstring): Likewise.
47602         (add_locale_uint32): Likewise.
47603         (add_locale_uint32_array): Likewise.
47604         (add_locale_char): Likewise.
47605         (start_locale_structure): Likewise.
47606         (end_locale_structure): Likewise.
47607         (start_locale_prelude): Likewise.
47608         (end_locale_prelude): Likewise.
47609         (write_locale_data): Update prototype.
47610         * locale/programs/3level.h (struct TABLE): Remove result field.
47611         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
47612         Use new locale_file interface.
47613         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
47614         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
47615         * locale/programs/ld-address.c (address_output): Use new
47616         locale_file interface.
47617         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
47618         NO_ADD_LOCALE.
47619         (collate_finish): Don't call collseq_table_finalize.
47620         (collate_output): Use new locale_file interface.
47621         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
47622         in file.
47623         (NO_FINALIZE): Change to NO_ADD_LOCALE.
47624         (TABLE): Move defines earlier in file.
47625         (ELEMENT): Likewise.
47626         (DEFAULT): Likewise.
47627         (wctrans_table_add): Move macro and inline function earlier in
47628         file.
47629         (struct wctype_table): Move type earlier in file.
47630         (add_locale_wctype_table): New static prototype.
47631         (struct locale_ctype_t): Use logical types instead of struct iovec
47632         pointers for members.
47633         (ctype_output): Use new locale_file interface.
47634         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
47635         new locale_file interface.
47636         (allocate_arrays): Update for use of new locale_file interface.
47637         * locale/programs/ld-identification.c (identification_output): Use
47638         new locale_file interface.
47639         * locale/programs/ld-measurement.c (measurement_output): Likewise.
47640         * locale/programs/ld-messages.c (messages_output): Likewise.
47641         * locale/programs/ld-monetary.c (monetary_output): Likewise.
47642         * locale/programs/ld-name.c (name_output): Likewise.
47643         * locale/programs/ld-numeric.c (numeric_output): Likewise.
47644         * locale/programs/ld-paper.c (paper_output): Likewise.
47645         * locale/programs/ld-telephone.c (telephone_output): Likewise.
47646         * locale/programs/ld-time.c (time_output): Likewise.
47647
47648 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47649
47650         * benchtests/Makefile: Add memrchr benchmark.
47651         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
47652         benchmark as memrchr.
47653         * benchtests/bench-memrchr-ifunc.c: New file.
47654         * benchtests/bench-memrchr.c: New file.
47655
47656 2013-09-06   Will Newton  <will.newton@linaro.org>
47657
47658         * benchtests/Makefile (string-bench): Add memcpy.
47659
47660 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
47661             Cong Wang  <amwang@redhat.com>
47662
47663         [BZ #15850]
47664         * sysdeps/unix/sysv/linux/bits/in.h
47665         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
47666         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
47667         before __USE_KERNEL_IPV6_DEFS uses.
47668         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
47669         IPPROTO_BEETPH.
47670         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
47671         sockaddr_in6, or ipv6_mreq.
47672
47673 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47674
47675         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
47676         memory access for final bytes in some large inputs.
47677         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
47678
47679 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47680
47681         * string/test-memrchr.c: New file.
47682         * string/test-memrchr-ifunc.c: New file.
47683         * string/Makefile: Add new memrchr testcase.
47684
47685 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
47686
47687         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
47688         fanotify_init returns EPERM.
47689
47690 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
47691
47692         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
47693         errors.
47694         (top level): Treat second token from macro or constant entries for
47695         allowed headers as allowed.
47696         * include/complex.h: Condition internal declarations on
47697         [!_ISOMAC].
47698         * include/fenv.h: Condition include of <stdbool.h> and internal
47699         declarations on [!_ISOMAC].
47700
47701 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
47702
47703         [BZ #15923]
47704         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
47705
47706 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
47707
47708         * configure.in (--enable-versioning): Remove configure option.
47709         (libc_cv_asm_symver_directive): Remove configure test.
47710         (libc_cv_ld_version_script_option): Likewise.
47711         (VERSIONING): Remove variable and AC_SUBST.
47712         (DO_VERSIONING): Remove AC_DEFINE.
47713         * configure: Regenerated.
47714         * config.h.in (DO_VERSIONING): Remove macro.
47715         * Makerules [$(versioning) = yes]: Change conditionals to
47716         [$(build-shared) = yes].
47717         * config.make.in (versioning): Remove variable.
47718         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
47719         [$(build-shared) = yes].
47720         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
47721         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
47722         * elf/Makefile [$(versioning) = yes]: Change conditionals to
47723         [$(build-shared) = yes].
47724         * extra-lib.mk [$(versioning) = yes]: Likewise.
47725         * hurd/Makefile [$(versioning) = yes]: Likewise.
47726         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
47727         [SHARED].
47728         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
47729         [SHARED].
47730         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
47731         [SHARED && !NO_HIDDEN].
47732         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
47733         [SHARED].
47734         [SHARED && DO_VERSIONING]: Likewise..
47735         * libio/Makefile [$(versioning) = yes]: Change conditionals to
47736         [$(build-shared) = yes].
47737         * manual/install.texi (--disable-versioning): Remove
47738         documentation.
47739         * INSTALL: Regenerated.
47740         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
47741         to [SHARED].
47742         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
47743         [$(build-shared) = yes].
47744         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
47745         * sysdeps/i386/i686/multiarch/strstr-c.c
47746         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
47747         [SHARED && !NO_HIDDEN].
47748         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
47749         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
47750         * sysdeps/powerpc/powerpc32/dl-machine.c
47751         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
47752         * sysdeps/powerpc/powerpc32/sysdep.h
47753         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
47754         to [SHARED && PIC && !NO_HIDDEN].
47755         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
47756         conditional to [SHARED].
47757
47758 2013-09-04   Will Newton  <will.newton@linaro.org>
47759
47760         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
47761         * benchtests/bench-string.h: Include bench-timing.h instead
47762         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
47763         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
47764         call to HP_TIMING_DIFF_INIT.
47765         * benchtests/bench-memccpy.c: Use bench-timing.h macros
47766         instead of hp-timing.h macros.
47767         * benchtests/bench-memchr.c: Likewise.
47768         * benchtests/bench-memcmp.c: Likewise.
47769         * benchtests/bench-memcpy.c: Likewise.
47770         * benchtests/bench-memmem.c: Likewise.
47771         * benchtests/bench-memmove.c: Likewise.
47772         * benchtests/bench-memset.c: Likewise.
47773         * benchtests/bench-rawmemchr.c: Likewise.
47774         * benchtests/bench-strcasecmp.c: Likewise.
47775         * benchtests/bench-strcasestr.c: Likewise.
47776         * benchtests/bench-strcat.c: Likewise.
47777         * benchtests/bench-strchr.c: Likewise.
47778         * benchtests/bench-strcmp.c: Likewise.
47779         * benchtests/bench-strcpy.c: Likewise.
47780         * benchtests/bench-strcpy_chk.c: Likewise.
47781         * benchtests/bench-strlen.c: Likewise.
47782         * benchtests/bench-strncasecmp.c: Likewise.
47783         * benchtests/bench-strncat.c: Likewise.
47784         * benchtests/bench-strncmp.c: Likewise.
47785         * benchtests/bench-strncpy.c: Likewise.
47786         * benchtests/bench-strnlen.c: Likewise.
47787         * benchtests/bench-strpbrk.c: Likewise.
47788         * benchtests/bench-strrchr.c: Likewise.
47789         * benchtests/bench-strspn.c: Likewise.
47790         * benchtests/bench-strstr.c: Likewise.
47791
47792 2013-09-04  Will Newton  <will.newton@linaro.org>
47793
47794         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
47795
47796 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
47797
47798         [BZ #15427]
47799         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
47800         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
47801         * math/libm-test.inc (lgamma_test_data): Add more tests.
47802         * sysdeps/i386/fpu/libm-test-ulps: Update.
47803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47804
47805 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
47806
47807         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
47808         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47809         Add ifunc.
47810         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47811         Add strcmp-sse2-unaligned
47812         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
47813
47814 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
47815
47816         * Versions.def (libc): Add GLIBC_2.19.
47817
47818 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
47819
47820         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
47821         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
47822
47823 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
47824
47825         [BZ #14155]
47826         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
47827         intermediate calculations in recurrence.
47828         (__ieee754_ynf): Likewise.
47829         * math/libm-test.inc (jn_test_data): Do not allow spurious
47830         underflow exception.  Add more tests.
47831         (yn_test_data): Add more tests.
47832         * sysdeps/i386/fpu/libm-test-ulps: Update.
47833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47834
47835 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
47836
47837         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
47838
47839 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
47840
47841         * csu/init-first.c: Fix then/than typos.
47842         * locale/programs/ld-collate.c: Likewise.
47843         * locale/programs/linereader.h: Likewise.
47844         * manual/charset.texi: Likewise.
47845         * manual/filesys.texi: Likewise.
47846         * manual/stdio.texi: Likewise.
47847         * manual/string.texi: Likewise.
47848         * stdlib/fmtmsg.c: Likewise.
47849         * sysdeps/i386/stpncpy.S: Likewise.
47850         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
47851         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
47852         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
47853         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
47854
47855 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
47856
47857         * elf/dl-open.c: Fix typos.
47858         * iconvdata/gbbig5.c: Likewise.
47859         * iconvdata/iso-2022-jp.c: Likewise.
47860         * iconv/gconv_int.h: Likewise.
47861         * iconv/loop.c: Likewise.
47862         * nis/rpcsvc/nis.h: Likewise.
47863         * resolv/ns_name.c: Likewise.
47864         * stdio-common/vfscanf.c: Likewise.
47865         * streams/stropts.h: Likewise.
47866         * sunrpc/rpc_thread.c: Likewise.
47867         * sysdeps/i386/strpbrk.S: Likewise.
47868         * sysdeps/ieee754/k_standard.c: Likewise.
47869         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
47870         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
47871         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
47872         * sysdeps/mach/hurd/profil.c: Likewise.
47873         * sysdeps/s390/dl-procinfo.h: Likewise.
47874         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
47875         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
47876         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
47877         * sysdeps/x86_64/dl-trampoline.S: Likewise.
47878         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
47879
47880 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
47881
47882         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
47883         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
47884
47885 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
47886
47887         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
47888         aix specific files.
47889         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
47890         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
47891         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
47892         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
47893         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
47894         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
47895         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
47896         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
47897
47898 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
47899             Roland McGrath  <roland@hack.frob.com>
47900
47901         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
47902         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
47903
47904 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47905
47906         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
47907         __executable_start symbol instead of _start.
47908
47909 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
47910
47911         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
47912         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
47913         Move macros to...
47914         * sysdeps/gnu/ldsodefs.h: ... this new file.
47915
47916         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
47917         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
47918         instead of ELFOSABI_LINUX.
47919
47920         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
47921         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
47922         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
47923         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
47924         Likewise.
47925         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
47926         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
47927         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
47928         Likewise.
47929         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
47930         (ibm_extended_long_double): Add ieee_nan member.
47931         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
47932         (do_test): New function.
47933
47934         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
47935         TEST_TRUNC.
47936         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
47937         functions, renamed from truncdfsf_test, trunctfsf_test,
47938         trunctfdf_test.
47939         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
47940         functions.
47941         (do_test): Run all these.
47942
47943 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
47944
47945         * argp/argp-help.c: Fix typos.
47946         * argp/argp-parse.c: Likewise.
47947         * debug/backtracesyms.c: Likewise.
47948         * elf/elf.h: Likewise.
47949         * malloc/malloc.c: Likewise.
47950         * nis/nis_print.c: Likewise.
47951         * resolv/res_comp.c: Likewise.
47952         * stdlib/stdlib.h: Likewise.
47953         * sunrpc/clnt_tcp.c: Likewise.
47954         * sunrpc/clnt_udp.c: Likewise.
47955         * sunrpc/clnt_unix.c: Likewise.
47956         * sysdeps/unix/bsd/ptsname.c: Likewise.
47957         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
47958         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
47959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
47960         Likewise.
47961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
47962         Likewise.
47963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
47964         Likewise.
47965         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
47966
47967 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
47968
47969         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
47970         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
47971
47972 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
47973
47974         [BZ #15897]
47975         * dlfcn/Makefile (tests): Add bug-dl-leaf.
47976         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
47977         ($(objpfx)bug-dl-leaf): New rule.
47978         ($(objpfx)bug-dl-leaf.so): Likewise.
47979         ($(objpfx)bug-dl-leaf.out): Likewise.
47980         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
47981         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
47982         * dlfcn/bug-dl-leaf.c: New test.
47983         * dlfcn/bug-dl-leaf-lib.c: Likewise.
47984         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
47985         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
47986         (dlclose): Likewise.
47987         (dlmopen): Likewise.
47988
47989 2013-08-27  Roland McGrath  <roland@hack.frob.com>
47990
47991         * include/netdb.h [!_ISOMAC]:
47992         Don't include <tls.h>.
47993         (h_errno, __libc_h_errno): Move declaration and macros out of
47994         [_LIBC_REENTRANT].
47995
47996         * include/resolv.h [_RESOLV_H_]:
47997         Don't include <tls.h>.
47998         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
47999         * resolv/res_libc.c: Don't include <tls.h>.
48000         (_res): Use __attribute__ ((nocommon)) in place of
48001         __attribute__ ((section (".bss"))).
48002
48003         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
48004         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
48005
48006         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
48007
48008         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
48009         only under [SIOCGIFCONF && SIOCGIFNETMASK].
48010
48011         * resolv/res_mkquery.c: Include <sys/time.h>.
48012
48013         * inet/ifreq.c: Moved to ...
48014         * sysdeps/unix/ifreq.c: ... here.
48015         * inet/ifreq.c: New file, true stub version.
48016
48017         * socket/sa_len.c: New file.
48018         * socket/Makefile (aux): Add it.
48019         * sysdeps/unix/sysv/linux/Makefile
48020         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
48021         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
48022         and #include <socket/sa_len.c>.
48023         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
48024         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
48025
48026         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
48027         * bits/socket.h: ... here.
48028
48029         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
48030         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
48031         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
48032
48033 2013-08-27  Andreas Schwab  <schwab@suse.de>
48034
48035         [BZ #15736]
48036         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
48037         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
48038         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
48039         * string/test-strcasecmp.c (test_main): Run tests in several
48040         locales.
48041         * string/test-strncasecmp.c (test_main): Likewise.
48042
48043         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
48044         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
48045         to __strcasecmp_nonascii and __strncasecmp_nonascii.
48046         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
48047         (__strncasecmp_ssse3) [PIC]: Likewise.
48048
48049 2013-08-26  Roland McGrath  <roland@hack.frob.com>
48050
48051         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
48052
48053         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
48054         instead of explicitly declaring xdecrypt.
48055         * nis/nss_nis/nis-publickey.c: Likewise.
48056
48057 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
48058
48059         [BZ #15890]
48060         * nscd/aicache.c: Include res_hconf.h.
48061         (addhstaiX): Initialize res_hconf.
48062
48063 2013-08-26  Andreas Schwab  <schwab@suse.de>
48064
48065         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
48066         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
48067
48068 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
48069
48070         * nscd/aicache.c (addhstaiX): Fix indentation.
48071
48072 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
48073
48074         * configure.ac: Quote $build_pt_chown test.
48075         * configure: Regenerated.
48076
48077 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
48078
48079         [BZ #15532]
48080         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
48081         * math/s_cexpf.c (__cexpf): Likewise.
48082         * math/s_cexpl.c (__cexpl): Likewise.
48083         * math/libm-test.inc (cexp_test_data): Correct expected return
48084         value for NaN + i0.  Add another test.
48085
48086 2013-08-22  David S. Miller  <davem@davemloft.net>
48087
48088         * po/ca.po: Update Catalan translation from translation project.
48089         * po/uk.po: Add Ukrainian translations from translation project.
48090
48091 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
48092
48093         [BZ #15797]
48094         * math/s_fdim.c (__fdim): Check for infinite arguments if result
48095         is infinite, not alongside NaN test.
48096         * math/s_fdimf.c (__fdimf): Likewise.
48097         * math/s_fdiml.c (__fdiml): Likewise.
48098         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
48099         errno is unchanged.
48100
48101 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
48102
48103         * argp/argp-help.c: Fix typos.
48104         * crypt/speeds.c: Likewise.
48105         * csu/check_fds.c: Likewise.
48106         * elf/dl-load.c: Likewise.
48107         * elf/dl-open.c: Likewise.
48108         * elf/reldep3.c: Likewise.
48109         * elf/reldep.c: Likewise.
48110         * elf/sprof.c: Likewise.
48111         * iconv/iconv_charmap.c: Likewise.
48112         * iconv/skeleton.c: Likewise.
48113         * iconv/strtab.c: Likewise.
48114         * io/lockf64.c: Likewise.
48115         * libio/libioP.h: Likewise.
48116         * resolv/gai_notify.c: Likewise.
48117         * resolv/ns_name.c: Likewise.
48118         * resolv/ns_samedomain.c: Likewise.
48119         * resolv/res_send.c: Likewise.
48120         * stdlib/random.c: Likewise.
48121         * sunrpc/rpc/xdr.h: Likewise.
48122         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
48123         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
48124         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
48125         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
48126         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
48127         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
48128         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
48129         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
48130         * sysdeps/mach/hurd/check_fds.c: Likewise.
48131         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
48132         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
48133         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
48134         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
48135         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
48136         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
48137         * sysdeps/pthread/aio_notify.c: Likewise.
48138         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
48139         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
48140         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
48141         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
48142         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
48143
48144 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
48145
48146         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
48147         version if bit_Slow_SSE4_2 is set.
48148         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
48149         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
48150
48151 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48152
48153         [BZ #15867]
48154         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
48155         trampoline stack frame information.
48156         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
48157         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
48158         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
48159         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
48160         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
48161         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48162         (_libc_vdso_platform_setup): Initialize the signal trampolines.
48163         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
48164         sa_flags value.
48165         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
48166         interrupting a syscall and set with option SA_SIGINFO.
48167
48168 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
48169
48170         [BZ #15531]
48171         * math/s_cproj.c (__cproj): Only return an infinity if one part of
48172         argument is infinite.
48173         * math/s_cprojf.c (__cprojf): Likewise.
48174         * math/s_cprojl.c (__cprojl): Likewise.
48175         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
48176         * math/libm-test.inc (cproj_test_data): Add more tests.
48177
48178         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
48179
48180         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
48181         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
48182         size.  Use __ffs to determine corresponding shift.
48183
48184 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
48185             Roland McGrath  <roland@hack.frob.com>
48186
48187         * Makefile (INSTALL): Remove trailing blank lines from output of
48188         makeinfo.
48189
48190 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48191
48192         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
48193         Align 32 bit compat elf_greg to 8 bytes.
48194
48195 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
48196
48197         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
48198
48199 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
48200
48201         * string/strcoll_l.c (coll_seq): New structure.
48202         (get_next_seq_cached): New function.
48203         (get_next_seq): New function.
48204         (do_compare): New function.
48205         (STRCOLL): Use GNU style definition.  Simplify implementation
48206         by using get_next_seq, get_next_seq_cached and do_compare.
48207
48208 2013-08-16  Florian Weimer  <fweimer@redhat.com>
48209
48210         [BZ #14699]
48211         CVE-2013-4237
48212         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
48213         member.
48214         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
48215         member.
48216         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
48217         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
48218         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
48219         conditional.
48220         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
48221         GETDENTS_64BIT_ALIGNED.
48222         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
48223         * manual/filesys.texi (Reading/Closing Directory): Document
48224         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
48225         strongly.
48226         * manual/conf.texi (Limits for Files): Add portability note to
48227         NAME_MAX, PATH_MAX.
48228         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
48229
48230 2013-08-13  Andreas Schwab  <schwab@suse.de>
48231
48232         [BZ #15749]
48233         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
48234         of fabs.
48235         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
48236         LDBL_MAX_EXP >= 16384]: Add tests for it.
48237
48238 2013-08-12  David S. Miller  <davem@davemloft.net>
48239
48240         * version.h (RELEASE): Set to "development".
48241         (VERSION): Set to "2.18.90".
48242         * NEWS: Add 2.19 section.
48243
48244 2013-08-03  David S. Miller  <davem@davemloft.net>
48245
48246         * po/ko.po: Update Korean translation from translation project.
48247
48248 2013-08-01  David S. Miller  <davem@davemloft.net>
48249
48250         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
48251         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
48252         Bilka.
48253
48254 2013-07-30  David S. Miller  <davem@davemloft.net>
48255
48256         * po/fr.po: Update French translation from translation project.
48257
48258 2013-07-28  David S. Miller  <davem@davemloft.net>
48259
48260         * po/cs.po: Update Czech translation from translation project.
48261
48262         * po/sv.po: Update Swedish translation from translation project.
48263
48264 2013-07-27  David S. Miller  <davem@davemloft.net>
48265
48266         * po/eo.po: Update Esperanto translation from translation project.
48267
48268         * po/vi.po: Update Vietnamese translation from translation project.
48269
48270         * po/de.po: Update German translation from translation project.
48271
48272 2013-07-26  David S. Miller  <davem@davemloft.net>
48273
48274         * po/bg.po: Update Bulgarian translation from translation project.
48275
48276         * po/nl.po: Update Dutch translation from translation project.
48277         * po/pl.po: Update Polish translation from translation project.
48278         * po/ru.po: Update Russian translation from translation project.
48279
48280 2013-07-24  David S. Miller  <davem@davemloft.net>
48281
48282         * po/libc.pot: Update.
48283
48284 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48285
48286         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
48287         variable page size.
48288         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
48289         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
48290         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
48291
48292 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48293
48294         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
48295
48296 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
48297             Andreas Schwab  <schwab@suse.de>
48298             Roland McGrath  <roland@hack.frob.com>
48299             Joseph Myers  <joseph@codesourcery.com>
48300             Carlos O'Donell  <carlos@redhat.com>
48301
48302         [BZ #15755]
48303         * config.h.in: Define HAVE_PT_CHOWN.
48304         * config.make.in (build-pt-chown): New variable.
48305         * configure.in (--enable-pt_chown): New configure option.
48306         * configure: Regenerate.
48307         * login/Makefile: Include Makeconfig.  Build pt_chown only if
48308         build-pt-chown is enabled.
48309         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
48310         pt_chown to fix pty ownership.
48311         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
48312         CLOSE_ALL_FDS.
48313         * manual/install.texi (Configuring and compiling): Mention
48314         --enable-pt_chown. Add @findex for grantpt.
48315         * INSTALL: Regenerate.
48316
48317 2013-07-20  David S. Miller  <davem@davemloft.net>
48318
48319         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
48320         difference between 32-bit and 64-bit.
48321
48322 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
48323
48324         [BZ #15711]
48325         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
48326         Avoid system header dependency with -ffreestanding.
48327         ($(objpfx)bits/syscall%d): Likewise.
48328
48329 2013-07-13  David S. Miller  <davem@davemloft.net>
48330
48331         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
48332         underflows from atanl/atan2l due to bug 15319.
48333         (casinh_test_data): Likewise.
48334
48335 2013-07-07  David S. Miller  <davem@davemloft.net>
48336
48337         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
48338
48339 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
48340
48341         * sysdeps/i386/fpu/libm-test-ulps: Update.
48342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48343
48344 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
48345
48346         * configure.in (--enable-lock-elision): Fix message text.
48347         * INSTALL: Regenerate.
48348         * configure: Regenerate.
48349
48350 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48351
48352         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48353
48354 2013-07-03  Andreas Jaeger  <aj@suse.de>
48355
48356         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
48357         define.
48358         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
48359         (ptrace_peeksiginfo_args): Add.
48360         (__ptrace_peeksiginfo_flags): Add.
48361         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
48362         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
48363         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
48364
48365 2013-07-03  Allan McRae  <allan@archlinux.org>
48366
48367         * sysdeps/i386/fpu/libm-test-ulps: Update.
48368
48369 2013-07-02  David S. Miller  <davem@davemloft.net>
48370
48371         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48372
48373 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
48374
48375         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48376
48377 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
48378
48379         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
48380         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48381
48382 2013-07-02  Andi Kleen <ak@linux.intel.com>
48383
48384         * config.h.in (ENABLE_LOCK_ELISION): Add.
48385         * configure.in (--enable-lock-elision): Add option.
48386         * manual/install.texi: Document --enable lock elision.
48387         * configure: Regenerate
48388         * INSTALL: Regenerate.
48389
48390 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
48391
48392         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
48393         SSE4.2 strcasecmp for libc.a.
48394         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
48395
48396 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
48397
48398         [BZ #13304]
48399         * soft-fp/op-common.h (_FP_FMA): New macro.
48400         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
48401         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
48402         (_FP_MUL_MEAT_1_imm): ... here.
48403         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
48404         (_FP_MUL_MEAT_1_wide): ... here.
48405         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
48406         (_FP_MUL_MEAT_1_hard): ... here.
48407         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
48408         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
48409         (_FP_MUL_MEAT_2_wide): ... here.
48410         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
48411         (_FP_MUL_MEAT_2_wide_3mul): ... here.
48412         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
48413         (_FP_MUL_MEAT_2_gmp): ... here.
48414         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
48415         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
48416         (_FP_MUL_MEAT_4_wide): ... here.
48417         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
48418         (_FP_MUL_MEAT_4_gmp): ... here.
48419         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
48420         (_FP_WFRACBITS_DW_S): Likewise.
48421         (_FP_WFRACXBITS_DW_S): Likewise.
48422         (_FP_HIGHBIT_DW_S): Likewise.
48423         (FP_FMA_S): Likewise.
48424         (_FP_FRAC_HIGH_DW_S): Likewise.
48425         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
48426         (_FP_WFRACBITS_DW_D): Likewise.
48427         (_FP_WFRACXBITS_DW_D): Likewise.
48428         (_FP_HIGHBIT_DW_D): Likewise.
48429         (FP_FMA_D): Likewise.
48430         (_FP_FRAC_HIGH_DW_D): Likewise.
48431         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
48432         (_FP_WFRACBITS_DW_E): Likewise.
48433         (_FP_WFRACXBITS_DW_E): Likewise.
48434         (_FP_HIGHBIT_DW_E): Likewise.
48435         (FP_FMA_E): Likewise.
48436         (_FP_FRAC_HIGH_DW_E): Likewise.
48437         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
48438         (_FP_WFRACBITS_DW_Q): Likewise.
48439         (_FP_WFRACXBITS_DW_Q): Likewise.
48440         (_FP_HIGHBIT_DW_Q): Likewise.
48441         (FP_FMA_Q): Likewise.
48442         (_FP_FRAC_HIGH_DW_Q): Likewise.
48443         * soft-fp/fmasf4.c: New file.
48444         * soft-fp/fmadf4.c: Likewise.
48445         * soft-fp/fmatf4.c: Likewise.
48446
48447 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
48448
48449         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
48450         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
48451         Silvermont.
48452         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
48453         macro.
48454         (index_Slow_SSE4_2): Likewise.
48455         (index_Prefer_PMINUB_for_stringop): Likewise.
48456         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
48457         bit_Slow_SSE4_2 is set.
48458         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
48459         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
48460
48461 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48462
48463         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
48464         rtld_global._dl_hwcap2.
48465         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
48466         POWER8.
48467         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
48468         POWER8 feature descriptions defined in _dl_hwcap2.
48469         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
48470         string handling for POWER8 feature bits.
48471         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
48472         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
48473         _dl_powerpc_cap_flags.
48474         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
48475         * sysdeps/powerpc/rtld-global-offsets.sym
48476         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
48477         _dl_hwcap2 in the rtld_global_ro structure.
48478
48479 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48480
48481         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
48482         hardware capabilities in support of AT_HWCAP2.
48483         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
48484         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
48485         GLRO(dl_hwcap2).
48486         (_dl_show_auxv): Add support for calling _dl_procinfo to display
48487         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
48488         explicitly the unknown a_type display mechanism is used.
48489         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
48490         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
48491         struct member.
48492         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
48493         to macro prototype for AT_HWCAP2 support.
48494         * sysdeps/i386/dl-procinfo.h: Likewise.
48495         * sysdeps/s390/dl-procinfo.h: Likewise.
48496         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
48497         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
48498         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
48499         return -1 for unknown a_type display fallback.
48500         * sysdeps/sparc/dl-procinfo.h: Likewise.
48501         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
48502         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
48503
48504 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
48505
48506         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
48507         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
48508
48509 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
48510
48511         [BZ #12492]
48512         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
48513         mprotect making __stack_prot writable.
48514
48515 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
48516             Joseph Myers  <joseph@codesourcery.com>
48517
48518         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
48519         as being properly aligned.
48520
48521 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
48522
48523         * dlfcn/modstatic5.c: New file.
48524         * dlfcn/tststatic5.c: New file.
48525         * dlfcn/Makefile (tests): Add tststatic5.
48526         (tests-static): Likewise.
48527         (modules-names): Add modstatic5.
48528         (tststatic5-ENV): New variable.
48529         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
48530
48531         [BZ #15022]
48532         * elf/dl-support.c (_dl_main_map): New variable.
48533         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
48534         (_dl_nns, _dl_load_adds): Set to 1.
48535         (_dl_initial_searchlist): Refer to _dl_main_map.
48536         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
48537         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
48538         call to _dl_get_origin.
48539         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
48540         around call_map.
48541         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
48542         * dlfcn/modstatic3.c: New file.
48543         * dlfcn/tststatic3.c: New file.
48544         * dlfcn/tststatic4.c: New file.
48545         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
48546         (tests-static): Likewise.
48547         (modules-names): Add modstatic3.
48548         (tststatic3-ENV, tststatic4-ENV): New variables.
48549         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
48550         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
48551
48552 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
48553
48554         * configure.in (CC): Require GCC version 4.4 or later.
48555         * configure: Regenerated.
48556         * manual/install.texi (Tools for Compilation): Update GCC version
48557         requirement.
48558         * INSTALL: Regenerated.
48559
48560 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
48561
48562         [BZ #15674]
48563         * string/test-memcmp.c (check2): New.
48564         (main): Call check2.
48565
48566         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
48567
48568 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
48569
48570         [BZ #15022]
48571         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
48572         over to...
48573         (dl_open_worker) [!SHARED]: ... here.
48574
48575 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48576
48577         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
48578
48579 2013-06-25  Richard Henderson  <rth@redhat.com>
48580
48581         * locale/programs/locarchive.c: Include <libc-internal.h>
48582
48583 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
48584
48585         * manual/texinfo.tex: Update to version 2013-06-21.17, with
48586         trailing whitespace removed.
48587
48588 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
48589
48590         [BZ #10283]
48591         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
48592         * locale/programs/locarchive.c: Include libc-mmap.h.
48593         (prepare_address_space): Take two new outputs (the mmap base and len).
48594         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
48595         values.
48596         (create_archive): Declare new mmap base and len values for
48597         prepare_address_space, and store the result in ah.
48598         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
48599         (enlarge_archive): If ah->mmap_base is not NULL, use that and
48600         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
48601         Declare new mmap base and len values for
48602         prepare_address_space, and store the result in new_ah.
48603         (open_archive): Declare new mmap base and len values for
48604         prepare_address_space, and store the result in ah.
48605         (close_archive): If ah->mmap_base is not NULL, use that and
48606         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
48607         * sysdeps/generic/libc-mmap.h: New file.
48608
48609 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
48610
48611         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
48612         (ALIGN_UP): Likewise.
48613         (PTR_ALIGN_DOWN): Likewise.
48614         (PTR_ALIGN_UP): Likewise.
48615
48616 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48617
48618         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
48619         entry mapped to PPC_PLATFORM_POWER8.
48620         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
48621         POWER8.
48622         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
48623         (_dl_string_platform): Add case for exporting platform position for
48624         POWER8.
48625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
48626         search path to sysdeps/powerpc/powerpc32/power8 directory.
48627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
48628         search path to sysdeps/powerpc/powerpc64/power8 directory.
48629         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
48630         power7 directories.
48631         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
48632         power7 directories.
48633
48634 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48635
48636         * INSTALL: Regenerate.
48637
48638         * nscd/connections.c (nscd_init): Fix comment.
48639
48640 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
48641
48642         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
48643
48644         [BZ #15667]
48645         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
48646         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
48647
48648 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
48649
48650         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
48651         DL_DST_REQ_STATIC.
48652         (DL_DST_REQ_STATIC): Remove macro.
48653
48654 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
48655
48656         [BZ #7006]
48657         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
48658         with a shift of 0 bits.
48659
48660 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
48661
48662         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
48663         $(tststatic-ENV).
48664
48665 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
48666
48667         [BZ #15655]
48668         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
48669
48670 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48671
48672         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
48673         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
48674         accepts -fno-tree-loop-distribute-patterns.
48675         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
48676         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
48677         recursive call.
48678         * string/memset.c (memset): Likewise.
48679         * string/test-memmove.c (simple_memmove): Disable loop transformation
48680         to library calls.
48681         * string/test-memset.c (simple_memset): Likewise.
48682         * benchtests/bench-memmove.c (simple_memmove): Likewise.
48683         * benchtests/bench-memset.c (simple_memset): Likewise.
48684         * configure: Regenerated.
48685
48686 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
48687
48688         * math/test-misc.c (main): Ignore fesetround failure when failures
48689         of subsequent rounding tests would be ignored.
48690
48691         [BZ #15654]
48692         * math/fedisblxcpt.c (fedisableexcept): Return 0.
48693         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
48694         * math/fegetenv.c (__fegetenv): Return 0.
48695         * math/fegetexcept.c (fegetexcept): Return 0.
48696         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
48697         FE_TONEAREST.
48698         * math/feholdexcpt.c (feholdexcept): Return 0.
48699         * math/fesetenv.c (__fesetenv): Return 0.
48700         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
48701         argument FE_TONEAREST.
48702         * math/feupdateenv.c (__feupdateenv): Return 0.
48703         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
48704
48705 2013-06-18  Roland McGrath  <roland@hack.frob.com>
48706
48707         * elf/rtld-Rules (rtld-compile-command.S): New variable.
48708         (rtld-compile-command.s, rtld-compile-command.c): New variables.
48709         ($(objpfx)rtld-%.os rules): Use them.
48710
48711 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48712
48713         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
48714         fields.
48715
48716 2013-06-17  Roland McGrath  <roland@hack.frob.com>
48717
48718         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
48719         length of target pattern, then descending length of dependency pattern.
48720         * configure.in (AWK): Require gawk 3.1.2 or newer.
48721         * manual/install.texi (Tools for Compilation): Say that we do.
48722         * configure: Regenerated.
48723
48724         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
48725         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
48726         * scripts/sysd-rules.awk: ... this new script.
48727         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
48728         than a glob-style pattern.
48729
48730 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
48731
48732         * math/test-misc.c (main): Do not treat incorrectly rounded
48733         conversions as failure unless ROUNDING_TESTS passes.
48734
48735 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
48736
48737         [BZ #15631]
48738         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
48739         restore exception state around main square root computation, then
48740         check for inexactness explicitly.
48741
48742         * math/libm-test.inc (fma_test_data): Add another test.
48743
48744 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48745
48746         * manual/threads.texi (Non-POSIX Extensions): New document
48747         node.  Document pthread_getattr_default_np and
48748         pthread_setattr_default_np.
48749
48750         * Versions.def (libpthread): Add GLIBC_2.18.
48751         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
48752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
48753         Likewise.
48754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
48755         Likewise.
48756         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
48757         Likewise.
48758         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
48759         Likewise.
48760         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
48761         Likewise.
48762         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
48763         Likewise.
48764         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
48765         Likewise.
48766         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
48767         Likewise.
48768         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
48769         Likewise.
48770
48771 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
48772
48773         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
48774         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
48775
48776 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
48777             H.J. Lu  <hjl.tools@gmail.com>
48778
48779         [BZ #15627]
48780         * sysdeps/x86_64/rtld-memset.c: Remove file.
48781         * sysdeps/x86_64/rtld-memset.S: New file.
48782
48783 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
48784
48785         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
48786         (test_in_one_mode): Take arguments for whether the rounding mode
48787         is supported for each floating-point type.
48788         (do_test): Pass new arguments to test_in_one_mode using
48789         ROUNDING_TESTS.
48790
48791 2013-06-13  Roland McGrath  <roland@hack.frob.com>
48792
48793         * posix/tst-waitid.c (do_test): Distinguish different instances of
48794         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
48795         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
48796         before entering the kernel for waitpid.
48797
48798 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48799
48800         * NEWS: Fix note on clock function precision.  Text by Roland
48801         McGrath.
48802
48803 2013-06-13  Roland McGrath  <roland@hack.frob.com>
48804
48805         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
48806         it into place only when and if the sanity check passes.
48807
48808 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
48809
48810         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
48811         output for whether conversion result is exact.  Take argument
48812         indicating whether type is IBM long double.
48813         (round_for_all): Change need_exact field to ibm_ld.
48814         * stdlib/tst-strtod-round.c (struct exactness): New type.
48815         (struct test): Change bool ld_ok field to struct exactness exact.
48816         (TEST): Update all definitions for change to field.
48817         (tests): Regenerate array contents.
48818         (test_in_one_mode): Take pointer to new field instead of old ld_ok
48819         field value.  Check for IBM long double here.
48820         (do_test): Update calls to test_in_one_mode.
48821
48822 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48823
48824         [BZ #12515]
48825         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
48826         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
48827
48828 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48829
48830         [BZ #15605]
48831         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
48832         generated by the compiler on loop optimizations.
48833         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
48834         general definitions.
48835
48836 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
48837
48838         * math/bug-nextafter.c: Include <math-tests.h>.
48839         (main): Only test for exceptions if EXCEPTION_TESTS is true for
48840         the relevant type.
48841         * math/bug-nexttoward.c: Include <math-tests.h>.
48842         (main): Only test for exceptions if EXCEPTION_TESTS is true for
48843         the relevant type.
48844         * math/test-misc.c: Include <math-tests.h>.
48845         (main): Only test for exceptions if EXCEPTION_TESTS is true for
48846         the relevant type.
48847
48848 2013-06-12  Andreas Jaeger  <aj@suse.de>
48849
48850         * po/ia.po: Update Interlingua translation from translation
48851         project.
48852
48853 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
48854
48855         * include/fenv.h: Include stdbool.h.
48856         (struct rm_ctx): New structure.
48857         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
48858         Define macro.
48859         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
48860         (SET_RESTORE_ROUNDF): Likewise.
48861         (SET_RESTORE_ROUNDL): Likewise.
48862         (SET_RESTORE_ROUND_NOEX): Likewise.
48863         (SET_RESTORE_ROUND_NOEXF): Likewise.
48864         (SET_RESTORE_ROUND_NOEXL): Likewise.
48865         (SET_RESTORE_ROUND_53BIT): Likewise.
48866         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
48867         (libc_feresetround_noexf_ctx): Likewise.
48868         (libc_feresetround_noexl_ctx): Likewise.
48869         (libc_feholdsetround_53bit_ctx): Likewise.
48870         (libc_feresetround_53bit_ctx): Likewise.
48871         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
48872         (libc_feholdexcept_setround_sse_ctx): New function.
48873         (libc_fesetenv_sse_ctx): Likewise.
48874         (libc_feupdateenv_sse_ctx): Likewise.
48875         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
48876         (libc_feholdexcept_setround_387_ctx): Likewise.
48877         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
48878         (libc_feholdsetround_387_prec_ctx): Likewise.
48879         (libc_feholdsetround_387_ctx): Likewise.
48880         (libc_feholdsetround_387_53bit_ctx): Likewise.
48881         (libc_feholdsetround_sse_ctx): Likewise.
48882         (libc_feresetround_sse_ctx): Likewise.
48883         (libc_feresetround_387_ctx): Likewise.
48884         (libc_feupdateenv_387_ctx): Likewise.
48885         (libc_feholdexcept_setroundf_ctx): Define macro.
48886         (libc_fesetenvf_ctx): Likewise.
48887         (libc_feupdateenvf_ctx): Likewise.
48888         (libc_feholdsetroundf_ctx): Likewise.
48889         (libc_feresetroundf_ctx): Likewise.
48890         (libc_feholdexcept_setround_ctx): Likewise.
48891         (libc_fesetenv_ctx): Likewise.
48892         (libc_feupdateenv_ctx): Likewise.
48893         (libc_feholdsetround_ctx): Likewise.
48894         (libc_feresetround_ctx): Likewise.
48895         (libc_feholdexcept_setroundl_ctx): Likewise.
48896         (libc_feupdateenvl_ctx): Likewise.
48897         (libc_feholdsetroundl_ctx): Likewise.
48898         (libc_feresetroundl_ctx): Likewise.
48899         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
48900         (libc_feresetround_53bit_ctx): Likewise.
48901
48902 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48903
48904         * locale/iso-639.def: Convert to UTF-8.
48905
48906 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
48907
48908         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
48909         (EXCEPTION_TESTS_double): Likewise.
48910         (EXCEPTION_TESTS_long_double): Likewise.
48911         (EXCEPTION_TESTS): Likewise.
48912         * math/libm-test.inc (test_exceptions): Only test exceptions if
48913         EXCEPTION_TESTS (FLOAT).
48914
48915 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48916
48917         * benchtests/Makefile (string-bench): Add strcpy_chk and
48918         stpcpy_chk.
48919         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
48920         * benchtests/bench-stpcpy_chk.c: New file.
48921         * benchtests/bench-strcpy_chk-ifunc.c: New file.
48922         * benchtests/bench-strcpy_chk.c: New file.
48923         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
48924         code.
48925         (do_test): Likewise.
48926
48927 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48928
48929         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
48930         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
48931         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
48932         with tabs where appropriate.
48933         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
48934         dl-procinfo.h.
48935         [PPC_PLATFORM_PPC440]: Likewise.
48936         [PPC_PLATFORM_PPC464]: Likewise.
48937         [PPC_PLATFORM_PPC476]: Likewise.
48938         (_dl_string_platform): Add support for detecting ppc405, ppc440,
48939         ppc464, and ppc476 platform strings merging from ports/
48940         dl-procinfo.h.
48941
48942 2013-06-11  Andreas Schwab  <schwab@suse.de>
48943
48944         [BZ #14991]
48945         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
48946         (from_ucs4_idx): Regenerate.
48947         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
48948         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
48949         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
48950         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
48951         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
48952         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
48953         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
48954         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
48955         from FROM_LOOP and TO_LOOP specific macros.
48956         (BODY): Handle combining characters.
48957         * iconvdata/BIG5HKSCS.irreversible: Update.
48958         * iconvdata/BIG5HKSCS.precomposed: New file.
48959         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
48960         characters.
48961         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
48962
48963 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48964
48965         * include/sys/time.h: Fix indentation and add copyright header.
48966
48967         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
48968         (do_test): Likewise.
48969         * string/test-memchr.c (do_one_test): Likewise.
48970         (do_test): Likewise.
48971         * string/test-memcmp.c (do_one_test): Likewise.
48972         (do_test): Likewise.
48973         * string/test-memcpy.c (do_one_test): Likewise.
48974         (do_test): Likewise.
48975         * string/test-memmem.c (do_one_test): Likewise.
48976         (do_test): Likewise.
48977         (do_random_tests): Likewise.
48978         * string/test-memmove.c (do_one_test): Likewise.
48979         (do_test): Likewise.
48980         * string/test-memset.c (do_one_test): Likewise.
48981         (do_test): Likewise.
48982         * string/test-rawmemchr.c (do_one_test): Likewise.
48983         (do_test): Likewise.
48984         * string/test-strcasecmp.c (do_one_test): Likewise.
48985         (do_test): Likewise.
48986         * string/test-strcasestr.c (do_one_test): Likewise.
48987         (do_test): Likewise.
48988         * string/test-strcat.c (do_one_test): Likewise.
48989         (do_test): Likewise.
48990         * string/test-strchr.c (do_one_test): Likewise.
48991         (do_test): Likewise.
48992         * string/test-strcmp.c (do_one_test): Likewise.
48993         (do_test): Likewise.
48994         * string/test-strcpy.c (do_one_test): Likewise.
48995         (do_test): Likewise.
48996         * string/test-string.h: Likewise.
48997         (test_init): Likewise.
48998         * string/test-strlen.c (do_one_test): Likewise.
48999         (do_test): Likewise.
49000         * string/test-strncasecmp.c (do_one_test): Likewise.
49001         (do_test): Likewise.
49002         * string/test-strncat.c (do_one_test): Likewise.
49003         (do_test): Likewise.
49004         * string/test-strncmp.c (do_one_test): Likewise.
49005         (do_test_limit): Likewise.
49006         (do_test): Likewise.
49007         * string/test-strncpy.c (do_one_test): Likewise.
49008         (do_test): Likewise.
49009         * string/test-strnlen.c (do_one_test): Likewise.
49010         (do_test): Likewise.
49011         * string/test-strpbrk.c (do_one_test): Likewise.
49012         (do_test): Likewise.
49013         * string/test-strrchr.c (do_one_test): Likewise.
49014         (do_test): Likewise.
49015         * string/test-strspn.c (do_one_test): Likewise.
49016         (do_test): Likewise.
49017         * string/test-strstr.c (do_one_test): Likewise.
49018         (do_test): Likewise.
49019
49020         * benchtests/Makefile (string-bench): Add string benchmarks.
49021         * benchtests/bench-bcopy-ifunc.c: New file.
49022         * benchtests/bench-bcopy.c: New file.
49023         * benchtests/bench-bzero-ifunc.c: New file.
49024         * benchtests/bench-bzero.c: New file.
49025         * benchtests/bench-memccpy-ifunc.c: New file.
49026         * benchtests/bench-memccpy.c: New file.
49027         * benchtests/bench-memchr-ifunc.c: New file.
49028         * benchtests/bench-memchr.c: New file.
49029         * benchtests/bench-memcmp-ifunc.c: New file.
49030         * benchtests/bench-memcmp.c: New file.
49031         * benchtests/bench-memmem-ifunc.c: New file.
49032         * benchtests/bench-memmem.c: New file.
49033         * benchtests/bench-memmove-ifunc.c: New file.
49034         * benchtests/bench-memmove.c: New file.
49035         * benchtests/bench-mempcpy-ifunc.c: New file.
49036         * benchtests/bench-mempcpy.c: New file.
49037         * benchtests/bench-memset-ifunc.c: New file.
49038         * benchtests/bench-memset.c: New file.
49039         * benchtests/bench-rawmemchr-ifunc.c: New file.
49040         * benchtests/bench-rawmemchr.c: New file.
49041         * benchtests/bench-stpcpy-ifunc.c: New file.
49042         * benchtests/bench-stpcpy.c: New file.
49043         * benchtests/bench-stpncpy-ifunc.c: New file.
49044         * benchtests/bench-stpncpy.c: New file.
49045         * benchtests/bench-strcasecmp-ifunc.c: New file.
49046         * benchtests/bench-strcasecmp.c: New file.
49047         * benchtests/bench-strcasestr-ifunc.c: New file.
49048         * benchtests/bench-strcasestr.c: New file.
49049         * benchtests/bench-strcat-ifunc.c: New file.
49050         * benchtests/bench-strcat.c: New file.
49051         * benchtests/bench-strchr-ifunc.c: New file.
49052         * benchtests/bench-strchr.c: New file.
49053         * benchtests/bench-strchrnul-ifunc.c: New file.
49054         * benchtests/bench-strchrnul.c: New file.
49055         * benchtests/bench-strcmp-ifunc.c: New file.
49056         * benchtests/bench-strcmp.c: New file.
49057         * benchtests/bench-strcpy-ifunc.c: New file.
49058         * benchtests/bench-strcpy.c: New file.
49059         * benchtests/bench-strcspn-ifunc.c: New file.
49060         * benchtests/bench-strcspn.c: New file.
49061         * benchtests/bench-strlen-ifunc.c: New file.
49062         * benchtests/bench-strlen.c: New file.
49063         * benchtests/bench-strncasecmp-ifunc.c: New file.
49064         * benchtests/bench-strncasecmp.c: New file.
49065         * benchtests/bench-strncat-ifunc.c: New file.
49066         * benchtests/bench-strncat.c: New file.
49067         * benchtests/bench-strncmp-ifunc.c: New file.
49068         * benchtests/bench-strncmp.c: New file.
49069         * benchtests/bench-strncpy-ifunc.c: New file.
49070         * benchtests/bench-strncpy.c: New file.
49071         * benchtests/bench-strnlen-ifunc.c: New file.
49072         * benchtests/bench-strnlen.c: New file.
49073         * benchtests/bench-strpbrk-ifunc.c: New file.
49074         * benchtests/bench-strpbrk.c: New file.
49075         * benchtests/bench-strrchr-ifunc.c: New file.
49076         * benchtests/bench-strrchr.c: New file.
49077         * benchtests/bench-strspn-ifunc.c: New file.
49078         * benchtests/bench-strspn.c: New file.
49079         * benchtests/bench-strstr-ifunc.c: New file.
49080         * benchtests/bench-strstr.c: New file.
49081
49082         * benchtests/Makefile: Disable parallel execution of targets.
49083         (string-bench): Add memcpy.
49084         (benchset): New variable to store a list of benchmark sets.
49085         (bench-func): Renamed from bench.
49086         (bench-set): New target.
49087         (bench): Depend on bench-func and bench-set.
49088         * benchtests/README: Add section on benchmark sets.
49089         * benchtests/bench-memcpy-ifunc.c: New file.
49090         * benchtests/bench-memcpy.c: New file.
49091         * benchtests/bench-string.h: New file.
49092
49093 2013-06-11  Andreas Schwab  <schwab@suse.de>
49094
49095         [BZ #15577]
49096         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
49097         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
49098         values in the triple.
49099         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
49100         terminator in the group key.
49101
49102 2013-06-11  Andreas Jaeger  <aj@suse.de>
49103
49104         * po/zh_TW.po: Update Chinese (traditional) translation from
49105         translation project.
49106
49107 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49108
49109         * include/time.h (__clock_gettime): Add libc_hidden_proto.
49110         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
49111         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
49112         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
49113         (clock_getcpuclockid): Likewise.
49114         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
49115         Add weak_alias and libc_hidden_def.
49116         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
49117         * rt/clock_gettime.c (clock_gettime): Rename to
49118         __clock_gettime.  Add weak_alias and libc_hidden_def.
49119         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
49120         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
49121         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
49122         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
49123         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
49124         Likewise.
49125         * rt/clock_settime.c (clock_settime): Rename to
49126         __clock_settime.  Add weak_alias and libc_hidden_def.
49127         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
49128
49129 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
49130
49131         * mach/err_boot.sub: Remove trailing whitespace.
49132         * mach/err_ipc.sub: Likewise.
49133         * mach/err_mach.sub: Likewise.
49134
49135         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
49136         (ROUNDING_TESTS_double): Likewise.
49137         (ROUNDING_TESTS_long_double): Likewise.
49138         (ROUNDING_TESTS): Likewise.
49139         * math/libm-test.inc: Include <math-tests.h>.
49140         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
49141         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
49142         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
49143         (IF_ROUND_INIT_FE_UPWARD): Likewise.
49144
49145 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49146
49147         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
49148         of assigning.
49149
49150 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
49151
49152         * sysdeps/gnu/errlist.awk: Do not generate space at end of
49153         otherwise empty TRANS lines.
49154         * sysdeps/gnu/errlist.c: Regenerated.
49155
49156         * catgets/gencat.c (error_print): Use (void) in function
49157         definition.
49158         * crypt/crypt_util.c (__init_des): Likewise.
49159         * crypt/speeds.c (Stop): Likewise.
49160         (main): Likewise.
49161         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
49162         * inet/ruserpass.c (token): Likewise.
49163         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
49164         * intl/localealias.c (extend_alias_table): Likewise.
49165         * intl/plural-exp.c (init_germanic_plural): Likewise.
49166         * libio/fcloseall.c (__fcloseall): Likewise.
49167         * libio/genops.c (_IO_flush_all): Likewise.
49168         (_IO_flush_all_linebuffered): Likewise.
49169         (_IO_cleanup): Likewise.
49170         (_IO_iter_begin): Likewise.
49171         (_IO_iter_end): Likewise.
49172         (_IO_list_lock): Likewise.
49173         (_IO_list_unlock): Likewise.
49174         (_IO_list_resetlock): Likewise.
49175         * libio/getchar.c (getchar): Likewise.
49176         * libio/getchar_u.c (getchar_unlocked): Likewise.
49177         * libio/getwchar.c (getwchar): Likewise.
49178         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
49179         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
49180         * login/getpt.c (__getpt): Likewise.
49181         * login/tst-utmp.c (main): Likewise.
49182         * malloc/hooks.c (__malloc_check_init): Likewise.
49183         * malloc/malloc.c (__malloc_stats): Likewise.
49184         * malloc/mtrace.c (tr_break): Likewise.
49185         (mtrace): Likewise.
49186         (muntrace): Likewise.
49187         * misc/fstab.c (endfsent): Likewise.
49188         * misc/getclktck.c (__getclktck): Likewise.
49189         * misc/getdtsz.c (__getdtablesize): Likewise.
49190         * misc/gethostid.c (gethostid): Likewise.
49191         * misc/getpagesize.c (__getpagesize): Likewise.
49192         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
49193         (__get_nprocs): Likewise.
49194         (__get_phys_pages): Likewise.
49195         (__get_avphys_pages): Likewise.
49196         * misc/getttyent.c (getttyent): Likewise.
49197         (setttyent): Likewise.
49198         (endttyent): Likewise.
49199         * misc/getusershell.c (getusershell): Likewise.
49200         (endusershell): Likewise.
49201         (setusershell): Likewise.
49202         (initshells): Likewise.
49203         * misc/hsearch.c (__hdestroy): Likewise.
49204         * misc/sync.c (sync): Likewise.
49205         * misc/syslog.c (closelog_internal): Likewise.
49206         (closelog): Likewise.
49207         * misc/ttyslot.c (ttyslot): Likewise.
49208         * misc/vhangup.c (vhangup): Likewise.
49209         * posix/fork.c (__fork): Likewise.
49210         * posix/getegid.c (__getegid): Likewise.
49211         * posix/geteuid.c (__geteuid): Likewise.
49212         * posix/getgid.c (__getgid): Likewise.
49213         * posix/getpid.c (__getpid): Likewise.
49214         * posix/getppid.c (__getppid): Likewise.
49215         * posix/getuid.c (__getuid): Likewise.
49216         * posix/pause.c (pause): Likewise.
49217         * posix/setpgrp.c (setpgrp): Likewise.
49218         * posix/setsid.c (__setsid): Likewise.
49219         * posix/test-vfork.c (noop): Likewise.
49220         * resolv/gethnamaddr.c (_endhtent): Likewise.
49221         (_gethtent): Likewise.
49222         (ht_endhostent): Likewise.
49223         (gethostent): Likewise.
49224         (dns_service): Likewise.
49225         * stdlib/drand48.c (drand48): Likewise.
49226         * stdlib/lrand48.c (lrand48): Likewise.
49227         * stdlib/mrand48.c (mrand48): Likewise.
49228         * stdlib/rand.c (rand): Likewise.
49229         * stdlib/random.c (__random): Likewise.
49230         * stdlib/setenv.c (clearenv): Likewise.
49231         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
49232         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
49233         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
49234         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
49235         (__get_nprocs): Likewise.
49236         (__get_phys_pages): Likewise.
49237         (__get_avphys_pages): Likewise.
49238         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
49239         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
49240         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
49241         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
49242         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
49243         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
49244         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
49245         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
49246         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
49247         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
49248         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
49249         * sysdeps/mach/hurd/sync.c (sync): Likewise.
49250         * sysdeps/posix/clock.c (clock): Likewise.
49251         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
49252         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
49253         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
49254         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
49255         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
49256         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
49257         (__get_nprocs_conf): Likewise.
49258         (__get_phys_pages): Likewise.
49259         (__get_avphys_pages): Likewise.
49260         * time/clock.c (clock): Likewise.
49261         * time/tzset.c (__tzname_max): Likewise.
49262
49263 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
49264
49265         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
49266         (__bswap_32): Do not use "register".
49267         * crypt/crypt.c (_ufc_doit_r): Likewise.
49268         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
49269         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
49270         * gmon/gmon.c (__monstartup): Likewise.
49271         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
49272         * hurd/hurdmalloc.c (more_memory): Likewise.
49273         (malloc): Likewise.
49274         (free): Likewise.
49275         (realloc): Likewise.
49276         (malloc_fork_prepare): Likewise.
49277         (malloc_fork_parent): Likewise.
49278         (malloc_fork_child): Likewise.
49279         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
49280         (_svcauth_des): Likewise.
49281         * inet/inet_lnaof.c (inet_lnaof): Likewise.
49282         * inet/inet_net.c (inet_network): Likewise.
49283         * inet/inet_netof.c (inet_netof): Likewise.
49284         * inet/rcmd.c (__validuser2_sa): Likewise.
49285         * io/fts.c (fts_open): Likewise.
49286         (fts_load): Likewise.
49287         (fts_close): Likewise.
49288         (fts_read): Likewise.
49289         (fts_children): Likewise.
49290         (fts_build): Likewise.
49291         (fts_stat): Likewise.
49292         (fts_sort): Likewise.
49293         (fts_alloc): Likewise.
49294         (fts_lfree): Likewise.
49295         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
49296         (_IO_file_xsgetn): Likewise.
49297         (_IO_file_xsgetn_mmap): Likewise.
49298         * libio/iofopncook.c (_IO_cookie_read): Likewise.
49299         (_IO_cookie_write): Likewise.
49300         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
49301         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
49302         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
49303         * malloc/obstack.c (_obstack_begin): Likewise.
49304         (_obstack_begin_1): Likewise.
49305         (_obstack_newchunk): Likewise.
49306         (_obstack_allocated_p): Likewise.
49307         (obstack_free): Likewise.
49308         (_obstack_memory_used): Likewise.
49309         * misc/getttyent.c (getttynam): Likewise.
49310         (getttyent): Likewise.
49311         (skip): Likewise.
49312         (value): Likewise.
49313         * misc/getusershell.c (initshells): Likewise.
49314         * misc/syslog.c (__vsyslog_chk): Likewise.
49315         * misc/ttyslot.c (ttyslot): Likewise.
49316         * nis/nis_hash.c (__nis_hash): Likewise.
49317         * posix/fnmatch_loop.c (FCT): Likewise.
49318         * posix/getconf.c (print_all): Likewise.
49319         (main): Likewise.
49320         * posix/getopt.c (exchange): Likewise.
49321         * posix/glob.c (globfree): Likewise.
49322         (prefix_array): Likewise.
49323         (__glob_pattern_type): Likewise.
49324         * resolv/arpa/nameser.h (NS_GET16): Likewise.
49325         (NS_GET32): Likewise.
49326         (NS_PUT16): Likewise.
49327         (NS_PUT32): Likewise.
49328         * resolv/gethnamaddr.c (getanswer): Likewise.
49329         (gethostbyname2): Likewise.
49330         (gethostbyaddr): Likewise.
49331         (_gethtent): Likewise.
49332         (_gethtbyname2): Likewise.
49333         (_gethtbyaddr): Likewise.
49334         * resolv/ns_print.c (dst_s_get_int16): Likewise.
49335         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
49336         * resolv/res_init.c (__res_vinit): Likewise.
49337         (net_mask): Likewise.
49338         * resolv/res_mkquery.c (outchar): Likewise.
49339         (PRINT): Likewise.
49340         * stdio-common/printf_fp.c (outchar): Likewise.
49341         (PRINT): Likewise.
49342         * stdio-common/printf_fphex.c (outchar): Likewise.
49343         (PRINT): Likewise.
49344         * stdio-common/printf_size.c (outchar): Likewise.
49345         (PRINT): Likewise.
49346         * stdio-common/test_rdwr.c (main): Likewise.
49347         * stdio-common/tfformat.c (matches): Likewise.
49348         * stdio-common/vfprintf.c (outchar): Likewise.
49349         (printf_unknown): Likewise.
49350         (buffered_vfprintf): Likewise.
49351         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
49352         * stdio-common/xbug.c (AppendToBuffer): Likewise.
49353         (ReadFile): Likewise.
49354         * stdlib/qsort.c (SWAP): Likewise.
49355         (_quicksort): Likewise.
49356         * stdlib/setenv.c (__add_to_environ): Likewise.
49357         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
49358         * stdlib/strtol_l.c (__strtol_l): Likewise.
49359         * stdlib/tst-strtod.c (main): Likewise.
49360         * stdlib/tst-strtol.c (main): Likewise.
49361         * stdlib/tst-strtoll.c (main): Likewise.
49362         * string/bits/string2.h (__strcmp_cc): Likewise.
49363         (__strcmp_cg): Likewise.
49364         (__strcspn_c1): Likewise.
49365         (__strcspn_c2): Likewise.
49366         (__strcspn_c3): Likewise.
49367         (__strspn_c1): Likewise.
49368         (__strspn_c2): Likewise.
49369         (__strspn_c3): Likewise.
49370         (__strsep_1c): Likewise.
49371         (__strsep_2c): Likewise.
49372         (__strsep_3c): Likewise.
49373         * string/memccpy.c (__memccpy): Likewise.
49374         * string/stpcpy.c (__stpcpy): Likewise.
49375         * string/strcmp.c (strcmp): Likewise.
49376         * string/strrchr.c (strrchr): Likewise.
49377         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
49378         Likewise.
49379         * sysdeps/mach/hurd/getcwd.c
49380         (_hurd_canonicalize_directory_name_internal): Likewise.
49381         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
49382         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
49383         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
49384         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
49385         Likewise, in both definitions.
49386         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
49387         definitions.
49388         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
49389         64] (__bswap_64): Likewise.
49390         * time/test_time.c (main): Likewise.
49391         * time/tzfile.c (__tzfile_read): Likewise.
49392         (__tzfile_compute): Likewise.
49393         * time/tzset.c (__tzset_parse_tz): Likewise.
49394         (tzset_internal): Likewise.
49395         (compute_change): Likewise.
49396         * wcsmbs/wcscat.c (__wcscat): Likewise.
49397         * wcsmbs/wcschr.c (wcschr): Likewise.
49398         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
49399         * wcsmbs/wcscspn.c (wcscspn): Likewise.
49400         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
49401         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
49402         * wcsmbs/wcsspn.c (wcsspn): Likewise.
49403         * wcsmbs/wcsstr.c (wcsstr): Likewise.
49404         * wcsmbs/wmemchr.c (wmemchr): Likewise.
49405         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
49406         * wcsmbs/wmemset.c (wmemset): Likewise.
49407
49408 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
49409
49410         * scripts/config.guess: Update to version 2013-05-16.
49411         * scripts/config.sub: Update to version 2013-04-24.
49412         * scripts/install-sh: Update to version 2011-11-20.07.
49413         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
49414         * scripts/move-if-change: Update to version 2012-01-06 07:23.
49415
49416 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
49417
49418         * debug/fgetws_u_chk.c: Fix leading whitespaces.
49419         * elf/sln.c: Likewise.
49420         * hurd/hurd/ioctl.h: Likewise.
49421         * hurd/hurdmalloc.c: Likewise.
49422         * hurd/xattr.c: Likewise.
49423         * include/shlib-compat.h: Likewise.
49424         * inet/ruserpass.c: Likewise.
49425         * libio/iofgets_u.c: Likewise.
49426         * libio/iofgetws_u.c: Likewise.
49427         * locale/programs/ld-identification.c: Likewise.
49428         * locale/programs/ld-time.c: Likewise.
49429         * mach/msg-destroy.c: Likewise.
49430         * nss/nss_files/files-netgrp.c: Likewise.
49431         * resolv/res_data.c: Likewise.
49432         * soft-fp/op-1.h: Likewise.
49433         * soft-fp/op-2.h: Likewise.
49434         * soft-fp/op-4.h: Likewise.
49435         * soft-fp/op-common.h: Likewise.
49436         * stdio-common/printf_fphex.c: Likewise.
49437         * stdlib/strtod_l.c: Likewise.
49438         * sunrpc/rpc/clnt.h: Likewise.
49439         * sysdeps/generic/framestate.c: Likewise.
49440         * sysdeps/i386/bsd-_setjmp.S: Likewise.
49441         * sysdeps/i386/bsd-setjmp.S: Likewise.
49442         * sysdeps/i386/__longjmp.S: Likewise.
49443         * sysdeps/i386/setjmp.S: Likewise.
49444         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
49445         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
49446         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
49447         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
49448         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
49449         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
49450         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
49451         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
49452         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
49453         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
49454         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
49455         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
49456         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
49457         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
49458         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
49459         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
49460         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
49461         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
49462         * sysdeps/ieee754/support.c: Likewise.
49463         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
49464         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
49465         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
49466         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
49467         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
49468         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
49469         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
49470         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
49471         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
49472         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
49473         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
49474         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
49475         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
49476         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
49477         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
49478         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
49479         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
49480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
49481
49482 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
49483
49484         * posix/transbug.c: Remove executable mode.
49485
49486 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
49487
49488         * crypt/speeds.c: Remove trailing whitespace.
49489         * dlfcn/default.c: Likewise.
49490         * elf/ifuncdep2.c: Likewise.
49491         * elf/ifuncmain1.c: Likewise.
49492         * elf/ifuncmain1vis.c: Likewise.
49493         * elf/testobj.h: Likewise.
49494         * elf/tst-stackguard1.c: Likewise.
49495         * gmon/sys/gmon.h: Likewise.
49496         * hurd/hurdmsg.c: Likewise.
49497         * hurd/new-fd.c: Likewise.
49498         * hurd/ports-get.c: Likewise.
49499         * iconvdata/ibm1008_420.c: Likewise.
49500         * inet/tst-getni1.c: Likewise.
49501         * inet/tst-getni2.c: Likewise.
49502         * libio/ioungetc.c: Likewise.
49503         * libio/wfiledoalloc.c: Likewise.
49504         * manual/libm-err-tab.pl: Likewise.
49505         * math/w_dremf.c: Likewise.
49506         * misc/ftruncate.c: Likewise.
49507         * posix/bug-glob2.c: Likewise.
49508         * posix/tst-pcre.c: Likewise.
49509         * posix/wait4.c: Likewise.
49510         * resolv/README: Likewise.
49511         * resolv/res_debug.h: Likewise.
49512         * resolv/tst-inet_ntop.c: Likewise.
49513         * setjmp/bug269-setjmp.c: Likewise.
49514         * soft-fp/extended.h: Likewise.
49515         * soft-fp/op-1.h: Likewise.
49516         * soft-fp/op-2.h: Likewise.
49517         * soft-fp/op-4.h: Likewise.
49518         * soft-fp/op-8.h: Likewise.
49519         * soft-fp/testit.c: Likewise.
49520         * stdio-common/bug16.c: Likewise.
49521         * stdlib/random.c: Likewise.
49522         * sunrpc/rpcsvc/rquota.x: Likewise.
49523         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
49524         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
49525         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
49526         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
49527         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
49528         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
49529         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
49530         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
49531         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
49532         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
49533         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
49534         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
49535         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
49536         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
49537         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
49538         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
49539         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
49540         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
49541         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
49542         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
49543         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
49544         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
49545         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
49546         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
49547         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
49548         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
49549         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
49550         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
49551         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
49552         * sysdeps/ieee754/s_lib_version.c: Likewise.
49553         * sysdeps/mach/hurd/check_fds.c: Likewise.
49554         * sysdeps/mach/hurd/getsockname.c: Likewise.
49555         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
49556         * sysdeps/mach/hurd/recvfrom.c: Likewise.
49557         * sysdeps/powerpc/bits/link.h: Likewise.
49558         * sysdeps/powerpc/dl-procinfo.c: Likewise.
49559         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
49560         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
49561         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
49562         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
49563         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
49564         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
49565         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
49566         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
49567         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
49568         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
49569         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
49570         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
49571         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
49572         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
49573         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
49574         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
49575         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
49576         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
49577         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
49578         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
49579         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
49580         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
49581         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
49582         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
49583         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
49584         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
49585         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
49586         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
49587         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
49588         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
49589         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
49590         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
49591         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
49592         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
49593         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
49594         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
49595         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
49596         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
49597         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
49598         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
49599         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
49600         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
49601         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
49602         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
49603         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
49604         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
49605         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
49606         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
49607         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
49608         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
49609         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
49610         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
49611         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
49612         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
49613         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
49614         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
49615         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
49616         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
49617         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
49618         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
49619         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
49620         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
49621         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
49622         * sysdeps/powerpc/sysdep.h: Likewise.
49623         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
49624         * sysdeps/s390/s390-64/sub_n.S: Likewise.
49625         * sysdeps/sh/dl-trampoline.S: Likewise.
49626         * sysdeps/sh/memset.S: Likewise.
49627         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
49628         * sysdeps/sh/strlen.S: Likewise.
49629         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
49630         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
49631         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
49632         * sysdeps/sparc/sparc32/rem.S: Likewise.
49633         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
49634         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
49635         * sysdeps/sparc/sparc32/strchr.S: Likewise.
49636         * sysdeps/sparc/sparc32/udiv.S: Likewise.
49637         * sysdeps/sparc/sparc32/urem.S: Likewise.
49638         * sysdeps/sparc/sparc64/add_n.S: Likewise.
49639         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
49640         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
49641         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
49642         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
49643         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
49644         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
49645         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
49646         * sysdeps/unix/bsd/times.c: Likewise.
49647         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
49648         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
49649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
49650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
49651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
49652         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
49653         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
49654         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
49655         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
49656         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
49657         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
49658         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
49659         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
49660         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
49661         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
49662         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
49663         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
49664         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
49665         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
49666         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
49667         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
49668         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
49669         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
49670         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
49671         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
49672         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
49673         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
49674         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
49675         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
49676         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
49677         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
49678         * sysdeps/x86_64/strcspn.S: Likewise.
49679
49680 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
49681
49682         * locale/C-translit.h: Revert #include <stdint.h> because this is a
49683         generated file.  Regenerate properly from gen-translit.pl.
49684         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
49685         locale/C-translit.h.
49686
49687 2013-06-05  Andreas Schwab  <schwab@suse.de>
49688
49689         [BZ #15100]
49690         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
49691         week as 6 instead of -1.
49692         * time/tst-strptime.c (day_tests): Add test case.
49693
49694 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
49695
49696         * sysdeps/generic/math_private.h
49697         (libc_feholdexcept_setround_53bit): Replace with
49698         libc_feholdsetround_53bit.
49699         (libc_feupdateenv_53bit): Replace with
49700         libc_feresetround_53bit.
49701         (SET_RESTORE_ROUND_53BIT): Adjust.
49702
49703 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49704
49705         * string/test-strchrnul.c: Add copyright header.
49706
49707         * posix/tst-getaddrinfo4.c: Increase test timeout.
49708
49709 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
49710
49711         [BZ #15536]
49712         * math/libm-test.inc (MAX_EXP): Remove
49713         (MIN_EXP): Define.
49714         (ulp): Use MIN_EXP - MANT_DIG.
49715         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
49716
49717 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
49718
49719         * po/be.po: Revert last change.
49720         * po/zh_CN.po: Likewise.
49721         * po/header.pot: Likewise.
49722
49723 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
49724
49725         * Makefile ($(common-objpfx)linkobj/libc.so): Define
49726         link-libc-deps to empty as target-specific variable.
49727         * Makerules (link-libc-args): New variable.
49728         (libc-for-link): Likewise.
49729         (link-libc-deps): Likewise.
49730         (lib%.so): Depend on $(link-libc-deps).  Link with
49731         $(link-libc-args).
49732         (build-module): Link with $(link-libc-args).
49733         (build-module-asneeded): Likewise.
49734         (build-module-helper-objlist): Filter out $(link-libc-deps) from
49735         list of objects.
49736         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
49737         target-specific variable.
49738         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
49739         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
49740         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
49741         libc.
49742         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
49743         libc and ld.so.
49744         ($(objpfx)libpcprofile.so): Likewise.
49745         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
49746         libc_nonshared.a.
49747         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
49748         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
49749         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
49750         $(link-libc-deps).
49751         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
49752         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
49753         * login/Makefile ($(objpfx)libutil.so): Likewise.
49754         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
49755         * math/Makefile ($(objpfx)libm.so): Likewise.
49756         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
49757         $(objpfx)libnsl.so): Define libc-for-link as target-specific
49758         variable instead of depending directly on libc.
49759         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
49760         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
49761         $(link-libc-deps).
49762         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
49763         libc.
49764         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
49765         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
49766         ($(objpfx)libanl.so): Likewise.
49767         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
49768         ld.so.
49769         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
49770         $(link-libc-deps).
49771         * sysdeps/i386/fpu/Makefile: Remove file.
49772         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
49773         ($(objpfx)libm.so): Remove dependency on ld.so.
49774
49775 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
49776
49777         [BZ # 15553]
49778         * nis/yp_xdr.c (XDRMAXNAME): Define.
49779         (XDRMAXRECORD): Define.
49780         (xdr_domainname): Use XDRMAXNAME.
49781         (xdr_mapname): Likewise.
49782         (xdr_peername): Likewise.
49783         (xdr_keydat): Use XDRMAXRECORD.
49784         (xdr_valdat): Likewise.
49785
49786 2013-05-30  Jeff Law  <law@redhat.com>
49787
49788         [BZ #14256]
49789         * manual/errno.texi (ESTALE): Update to account for more than
49790         just NFS file systems.
49791         * sysdeps/gnu/errlist.c: Regenerated.
49792
49793 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49794
49795         [BZ #15465]
49796         * elf/Makefile (tests): Add tst-null-argv.
49797         (modules-names):  Add tst-null-argv-lib.
49798         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
49799         (tst-null-argv-ENV): Set environment for tst-null-argv.
49800         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
49801         (RTLD_PROGNAME): New macro.
49802         * elf/tst-null-argv.c: New test case.
49803         * elf/tst-null-argv-lib.c: Library for test case.
49804         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
49805         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
49806         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
49807         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
49808         * elf/dl-init.c (call_init): Likewise.
49809         (_dl_init): Likewise.
49810         * elf/dl-load.c (print_search_path): Likewise.
49811         (_dl_map_object): Likewise.
49812         * elf/dl-lookup.c (do_lookup_x): Likewise.
49813         (add_dependency): Likewise.
49814         (_dl_lookup_symbol_x): Likewise.
49815         (_dl_debug_bindings): Likewise.
49816         * elf/dl-open.c (_dl_show_scope): Likewise.
49817         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
49818         * elf/dl-version.c (match_symbol): Likewise.
49819         (_dl_check_map_versions): Likewise.
49820         * elf/rtld.c (dl_main): Likewise.
49821         (print_unresolved): Use RTLD_PROGNAME.
49822         (print_missing_version): Likewise.
49823         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
49824         (elf_machine_rela): Likewise.
49825         * sysdeps/powerpc/powerpc32/dl-machine.c
49826         (__process_machine_rela): Likewise.
49827         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
49828         Likewise.
49829         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
49830         Likewise.
49831         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
49832         Likewise.
49833         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
49834         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
49835         Likewise.
49836         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
49837         Likewise.
49838         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
49839
49840 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
49841
49842         * po/be.po: Add descriptive title.
49843         * po/zh_CN.po: Likewise.
49844         * po/header.pot: Likewise.
49845
49846 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
49847
49848         * locale/programs/locarchive.c (create_archive): Inlucde fname in
49849         error message.
49850         (enlarge_archive): Likewise.
49851
49852 2013-05-28  Ben North  <ben@redfrontdoor.org>
49853
49854         * manual/arith.texi (frexp): It is the magnitude of the return
49855         value which lies in [0.5, 1), not the return value itself.
49856
49857 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49858
49859         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49860
49861 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
49862
49863         * stdio-common/bug26.c (main): Correct fscanf template.
49864
49865         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
49866         declare _dl_skip_args.
49867
49868         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
49869         Don't declare.
49870
49871         * manual/platform.texi: Add missing @end deftypefun.
49872
49873 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
49874
49875         [BZ #15529]
49876         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
49877         bit of mantissa of 2^16382.
49878         * math/libm-test.inc (hypot_test_data): Add more tests.
49879
49880         * math/libm-test.inc: Add drem and pow10 to list of tested
49881         functions.
49882         (pow10_test): New function.
49883         (drem_test): Likewise.
49884         (drem_test_tonearest): Likewise.
49885         (drem_test_towardzero): Likewise.
49886         (drem_test_downward): Likewise.
49887         (drem_test_upward): Likewise.
49888         (main): Call the new functions.
49889
49890         * math/libm-test.inc (finite_test_data): Remove.
49891         (finite_test): Run tests from isfinite_test_data.
49892         (gamma_test_data): Remove.
49893         (gamma_test): Run tests from lgamma_test_data.
49894         * sysdeps/i386/fpu/libm-test-ulps: Update.
49895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49896
49897 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49898
49899         * manual/platform.texi: Add PowerPC PPR function set documentation.
49900         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
49901         implementation.
49902
49903 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
49904
49905         * math/libm-test.inc (MAX_EXP): Define.
49906         (ULPDIFF): Define.
49907         (ulp): New function.
49908         (check_float_internal): Use ULPDIFF.
49909         (cpow_test): Disable failing test.
49910         (check_ulp): Test ulp() implemetnation.
49911         (main): Call check_ulp before starting tests.
49912
49913 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
49914
49915         * math/gen-libm-test.pl (generate_testfile): Do not handle
49916         START_DATA and END_DATA.
49917         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
49918         END_DATA.
49919         (acos_tonearest_test_data): Likewise.
49920         (acos_towardzero_test_data): Likewise.
49921         (acos_downward_test_data): Likewise.
49922         (acos_upward_test_data): Likewise.
49923         (acosh_test_data): Likewise.
49924         (asin_test_data): Likewise.
49925         (asin_tonearest_test_data): Likewise.
49926         (asin_towardzero_test_data): Likewise.
49927         (asin_downward_test_data): Likewise.
49928         (asin_upward_test_data): Likewise.
49929         (asinh_test_data): Likewise.
49930         (atan_test_data): Likewise.
49931         (atanh_test_data): Likewise.
49932         (atan2_test_data): Likewise.
49933         (cabs_test_data): Likewise.
49934         (cacos_test_data): Likewise.
49935         (cacosh_test_data): Likewise.
49936         (carg_test_data): Likewise.
49937         (casin_test_data): Likewise.
49938         (casinh_test_data): Likewise.
49939         (catan_test_data): Likewise.
49940         (catanh_test_data): Likewise.
49941         (cbrt_test_data): Likewise.
49942         (ccos_test_data): Likewise.
49943         (ccosh_test_data): Likewise.
49944         (ceil_test_data): Likewise.
49945         (cexp_test_data): Likewise.
49946         (cimag_test_data): Likewise.
49947         (clog_test_data): Likewise.
49948         (clog10_test_data): Likewise.
49949         (conj_test_data): Likewise.
49950         (copysign_test_data): Likewise.
49951         (cos_test_data): Likewise.
49952         (cos_tonearest_test_data): Likewise.
49953         (cos_towardzero_test_data): Likewise.
49954         (cos_downward_test_data): Likewise.
49955         (cos_upward_test_data): Likewise.
49956         (cosh_test_data): Likewise.
49957         (cosh_tonearest_test_data): Likewise.
49958         (cosh_towardzero_test_data): Likewise.
49959         (cosh_downward_test_data): Likewise.
49960         (cosh_upward_test_data): Likewise.
49961         (cpow_test_data): Likewise.
49962         (cproj_test_data): Likewise.
49963         (creal_test_data): Likewise.
49964         (csin_test_data): Likewise.
49965         (csinh_test_data): Likewise.
49966         (csqrt_test_data): Likewise.
49967         (ctan_test_data): Likewise.
49968         (ctan_tonearest_test_data): Likewise.
49969         (ctan_towardzero_test_data): Likewise.
49970         (ctan_downward_test_data): Likewise.
49971         (ctan_upward_test_data): Likewise.
49972         (ctanh_test_data): Likewise.
49973         (ctanh_tonearest_test_data): Likewise.
49974         (ctanh_towardzero_test_data): Likewise.
49975         (ctanh_downward_test_data): Likewise.
49976         (ctanh_upward_test_data): Likewise.
49977         (erf_test_data): Likewise.
49978         (erfc_test_data): Likewise.
49979         (exp_test_data): Likewise.
49980         (exp_tonearest_test_data): Likewise.
49981         (exp_towardzero_test_data): Likewise.
49982         (exp_downward_test_data): Likewise.
49983         (exp_upward_test_data): Likewise.
49984         (exp10_test_data): Likewise.
49985         (exp2_test_data): Likewise.
49986         (expm1_test_data): Likewise.
49987         (fabs_test_data): Likewise.
49988         (fdim_test_data): Likewise.
49989         (finite_test_data): Likewise.
49990         (floor_test_data): Likewise.
49991         (fma_test_data): Likewise.
49992         (fma_towardzero_test_data): Likewise.
49993         (fma_downward_test_data): Likewise.
49994         (fma_upward_test_data): Likewise.
49995         (fmax_test_data): Likewise.
49996         (fmin_test_data): Likewise.
49997         (fmod_test_data): Likewise.
49998         (fpclassify_test_data): Likewise.
49999         (frexp_test_data): Likewise.
50000         (gamma_test_data): Likewise.
50001         (hypot_test_data): Likewise.
50002         (ilogb_test_data): Likewise.
50003         (isfinite_test_data): Likewise.
50004         (isgreater_test_data): Likewise.
50005         (isgreaterequal_test_data): Likewise.
50006         (isinf_test_data): Likewise.
50007         (isless_test_data): Likewise.
50008         (islessequal_test_data): Likewise.
50009         (islessgreater_test_data): Likewise.
50010         (isnan_test_data): Likewise.
50011         (isnormal_test_data): Likewise.
50012         (issignaling_test_data): Likewise.
50013         (isunordered_test_data): Likewise.
50014         (j0_test_data): Likewise.
50015         (j1_test_data): Likewise.
50016         (jn_test_data): Likewise.
50017         (ldexp_test_data): Likewise.
50018         (lgamma_test_data): Likewise.
50019         (lrint_test_data): Likewise.
50020         (lrint_tonearest_test_data): Likewise.
50021         (lrint_towardzero_test_data): Likewise.
50022         (lrint_downward_test_data): Likewise.
50023         (lrint_upward_test_data): Likewise.
50024         (llrint_test_data): Likewise.
50025         (llrint_tonearest_test_data): Likewise.
50026         (llrint_towardzero_test_data): Likewise.
50027         (llrint_downward_test_data): Likewise.
50028         (llrint_upward_test_data): Likewise.
50029         (log_test_data): Likewise.
50030         (log10_test_data): Likewise.
50031         (log1p_test_data): Likewise.
50032         (log2_test_data): Likewise.
50033         (logb_test_data): Likewise.
50034         (logb_downward_test_data): Likewise.
50035         (lround_test_data): Likewise.
50036         (llround_test_data): Likewise.
50037         (modf_test_data): Likewise.
50038         (nearbyint_test_data): Likewise.
50039         (nextafter_test_data): Likewise.
50040         (nexttoward_test_data): Likewise.
50041         (pow_test_data): Likewise.
50042         (pow_tonearest_test_data): Likewise.
50043         (pow_towardzero_test_data): Likewise.
50044         (pow_downward_test_data): Likewise.
50045         (pow_upward_test_data): Likewise.
50046         (remainder_test_data): Likewise.
50047         (remainder_tonearest_test_data): Likewise.
50048         (remainder_towardzero_test_data): Likewise.
50049         (remainder_downward_test_data): Likewise.
50050         (remainder_upward_test_data): Likewise.
50051         (remquo_test_data): Likewise.
50052         (rint_test_data): Likewise.
50053         (rint_tonearest_test_data): Likewise.
50054         (rint_towardzero_test_data): Likewise.
50055         (rint_downward_test_data): Likewise.
50056         (rint_upward_test_data): Likewise.
50057         (round_test_data): Likewise.
50058         (scalb_test_data): Likewise.
50059         (scalbn_test_data): Likewise.
50060         (scalbln_test_data): Likewise.
50061         (signbit_test_data): Likewise.
50062         (sin_test_data): Likewise.
50063         (sin_tonearest_test_data): Likewise.
50064         (sin_towardzero_test_data): Likewise.
50065         (sin_downward_test_data): Likewise.
50066         (sin_upward_test_data): Likewise.
50067         (sincos_test_data): Likewise.
50068         (sinh_test_data): Likewise.
50069         (sinh_tonearest_test_data): Likewise.
50070         (sinh_towardzero_test_data): Likewise.
50071         (sinh_downward_test_data): Likewise.
50072         (sinh_upward_test_data): Likewise.
50073         (sqrt_test_data): Likewise.
50074         (tan_test_data): Likewise.
50075         (tan_tonearest_test_data): Likewise.
50076         (tan_towardzero_test_data): Likewise.
50077         (tan_downward_test_data): Likewise.
50078         (tan_upward_test_data): Likewise.
50079         (tanh_test_data): Likewise.
50080         (tgamma_test_data): Likewise.
50081         (trunc_test_data): Likewise.
50082         (y0_test_data): Likewise.
50083         (y1_test_data): Likewise.
50084         (yn_test_data): Likewise.
50085         (significand_test_data): Likewise.
50086
50087         * math/gen-libm-test.pl (@functions): Remove variable.
50088         (generate_testfile): Don't handle START and END lines.
50089         * math/libm-test.inc (START): New macro.
50090         (END): Likewise.
50091         (END_COMPLEX): Likewise.
50092         (acos_test): Use END macro without arguments.
50093         (acos_test_tonearest): Likewise.
50094         (acos_test_towardzero): Likewise.
50095         (acos_test_downward): Likewise.
50096         (acos_test_upward): Likewise.
50097         (acosh_test): Likewise.
50098         (asin_test): Likewise.
50099         (asin_test_tonearest): Likewise.
50100         (asin_test_towardzero): Likewise.
50101         (asin_test_downward): Likewise.
50102         (asin_test_upward): Likewise.
50103         (asinh_test): Likewise.
50104         (atan_test): Likewise.
50105         (atanh_test): Likewise.
50106         (atan2_test): Likewise.
50107         (cabs_test): Likewise.
50108         (cacos_test): Use END_COMPLEX macro without arguments.
50109         (cacosh_test): Likewise.
50110         (carg_test): Use END macro without arguments.
50111         (casin_test): Use END_COMPLEX macro without arguments.
50112         (casinh_test): Likewise.
50113         (catan_test): Likewise.
50114         (catanh_test): Likewise.
50115         (cbrt_test): Use END macro without arguments.
50116         (ccos_test): Use END_COMPLEX macro without arguments.
50117         (ccosh_test): Likewise.
50118         (ceil_test): Use END macro without arguments.
50119         (cexp_test): Use END_COMPLEX macro without arguments.
50120         (cimag_test): Use END macro without arguments.
50121         (clog_test): Use END_COMPLEX macro without arguments.
50122         (clog10_test): Likewise.
50123         (conj_test): Likewise.
50124         (copysign_test): Use END macro without arguments.
50125         (cos_test): Likewise.
50126         (cos_test_tonearest): Likewise.
50127         (cos_test_towardzero): Likewise.
50128         (cos_test_downward): Likewise.
50129         (cos_test_upward): Likewise.
50130         (cosh_test): Likewise.
50131         (cosh_test_tonearest): Likewise.
50132         (cosh_test_towardzero): Likewise.
50133         (cosh_test_downward): Likewise.
50134         (cosh_test_upward): Likewise.
50135         (cpow_test): Use END_COMPLEX macro without arguments.
50136         (cproj_test): Likewise.
50137         (creal_test): Use END macro without arguments.
50138         (csin_test): Use END_COMPLEX macro without arguments.
50139         (csinh_test): Likewise.
50140         (csqrt_test): Likewise.
50141         (ctan_test): Likewise.
50142         (ctan_test_tonearest): Likewise.
50143         (ctan_test_towardzero): Likewise.
50144         (ctan_test_downward): Likewise.
50145         (ctan_test_upward): Likewise.
50146         (ctanh_test): Likewise.
50147         (ctanh_test_tonearest): Likewise.
50148         (ctanh_test_towardzero): Likewise.
50149         (ctanh_test_downward): Likewise.
50150         (ctanh_test_upward): Likewise.
50151         (erf_test): Use END macro without arguments.
50152         (erfc_test): Likewise.
50153         (exp_test): Likewise.
50154         (exp_test_tonearest): Likewise.
50155         (exp_test_towardzero): Likewise.
50156         (exp_test_downward): Likewise.
50157         (exp_test_upward): Likewise.
50158         (exp10_test): Likewise.
50159         (exp2_test): Likewise.
50160         (expm1_test): Likewise.
50161         (fabs_test): Likewise.
50162         (fdim_test): Likewise.
50163         (finite_test): Likewise.
50164         (floor_test): Likewise.
50165         (fma_test): Likewise.
50166         (fma_test_towardzero): Likewise.
50167         (fma_test_downward): Likewise.
50168         (fma_test_upward): Likewise.
50169         (fmax_test): Likewise.
50170         (fmin_test): Likewise.
50171         (fmod_test): Likewise.
50172         (fpclassify_test): Likewise.
50173         (frexp_test): Likewise.
50174         (gamma_test): Likewise.
50175         (hypot_test): Likewise.
50176         (ilogb_test): Likewise.
50177         (isfinite_test): Likewise.
50178         (isgreater_test): Likewise.
50179         (isgreaterequal_test): Likewise.
50180         (isinf_test): Likewise.
50181         (isless_test): Likewise.
50182         (islessequal_test): Likewise.
50183         (islessgreater_test): Likewise.
50184         (isnan_test): Likewise.
50185         (isnormal_test): Likewise.
50186         (issignaling_test): Likewise.
50187         (isunordered_test): Likewise.
50188         (j0_test): Likewise.
50189         (j1_test): Likewise.
50190         (jn_test): Likewise.
50191         (ldexp_test): Likewise.
50192         (lgamma_test): Likewise.
50193         (lrint_test): Likewise.
50194         (lrint_test_tonearest): Likewise.
50195         (lrint_test_towardzero): Likewise.
50196         (lrint_test_downward): Likewise.
50197         (lrint_test_upward): Likewise.
50198         (llrint_test): Likewise.
50199         (llrint_test_tonearest): Likewise.
50200         (llrint_test_towardzero): Likewise.
50201         (llrint_test_downward): Likewise.
50202         (llrint_test_upward): Likewise.
50203         (log_test): Likewise.
50204         (log10_test): Likewise.
50205         (log1p_test): Likewise.
50206         (log2_test): Likewise.
50207         (logb_test): Likewise.
50208         (logb_test_downward): Likewise.
50209         (lround_test): Likewise.
50210         (llround_test): Likewise.
50211         (modf_test): Likewise.
50212         (nearbyint_test): Likewise.
50213         (nextafter_test): Likewise.
50214         (nexttoward_test): Likewise.
50215         (pow_test): Likewise.
50216         (pow_test_tonearest): Likewise.
50217         (pow_test_towardzero): Likewise.
50218         (pow_test_downward): Likewise.
50219         (pow_test_upward): Likewise.
50220         (remainder_test): Likewise.
50221         (remainder_test_tonearest): Likewise.
50222         (remainder_test_towardzero): Likewise.
50223         (remainder_test_downward): Likewise.
50224         (remainder_test_upward): Likewise.
50225         (remquo_test): Likewise.
50226         (rint_test): Likewise.
50227         (rint_test_tonearest): Likewise.
50228         (rint_test_towardzero): Likewise.
50229         (rint_test_downward): Likewise.
50230         (rint_test_upward): Likewise.
50231         (round_test): Likewise.
50232         (scalb_test): Likewise.
50233         (scalbn_test): Likewise.
50234         (scalbln_test): Likewise.
50235         (signbit_test): Likewise.
50236         (sin_test): Likewise.
50237         (sin_test_tonearest): Likewise.
50238         (sin_test_towardzero): Likewise.
50239         (sin_test_downward): Likewise.
50240         (sin_test_upward): Likewise.
50241         (sincos_test): Likewise.
50242         (sinh_test): Likewise.
50243         (sinh_test_tonearest): Likewise.
50244         (sinh_test_towardzero): Likewise.
50245         (sinh_test_downward): Likewise.
50246         (sinh_test_upward): Likewise.
50247         (sqrt_test): Likewise.
50248         (tan_test): Likewise.
50249         (tan_test_tonearest): Likewise.
50250         (tan_test_towardzero): Likewise.
50251         (tan_test_downward): Likewise.
50252         (tan_test_upward): Likewise.
50253         (tanh_test): Likewise.
50254         (tgamma_test): Likewise.
50255         (trunc_test): Likewise.
50256         (y0_test): Likewise.
50257         (y1_test): Likewise.
50258         (yn_test): Likewise.
50259         (significand_test): Likewise.
50260
50261 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
50262
50263         [BZ #15381]
50264         * libio/genops.c (_IO_no_init): Initialize wide struct info.
50265
50266 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
50267
50268         [BZ #14894]
50269         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
50270         __ppc_mdoio and __ppc_mdoom.
50271         * manual/platform.texi: Document new functions __ppc_yield,
50272         __ppc_mdoio and __ppc_mdoom.
50273
50274 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
50275
50276         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
50277         (main): Mention "tls" pseudo-hwcap is legacy.
50278         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
50279
50280 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
50281
50282         * math/gen-libm-test.pl (parse_args): Output only string of
50283         arguments as text for test name, not full call or descriptions of
50284         tests for extra outputs.
50285         (generate_testfile): Do not pass function name to parse_args.
50286         Generate this_func variable from START.
50287         * math/libm-test.inc (struct test_f_f_data): Rename test_name
50288         field to arg_str.
50289         (struct test_ff_f_data): Likewise.
50290         (test_ff_f_data_nexttoward): Likewise.
50291         (struct test_fi_f_data): Likewise.
50292         (struct test_fl_f_data): Likewise.
50293         (struct test_if_f_data): Likewise.
50294         (struct test_fff_f_data): Likewise.
50295         (struct test_c_f_data): Likewise.
50296         (struct test_f_f1_data): Likewise.  Remove field extra_name.
50297         (struct test_fF_f1_data): Likewise.
50298         (struct test_ffI_f1_data): Likewise.
50299         (struct test_c_c_data): Rename test_name field to arg_str.
50300         (struct test_cc_c_data): Likewise.
50301         (struct test_f_i_data): Likewise.
50302         (struct test_ff_i_data): Likewise.
50303         (struct test_f_l_data): Likewise.
50304         (struct test_f_L_data): Likewise.
50305         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
50306         and extra2_name.
50307         (COMMON_TEST_SETUP): New macro.
50308         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
50309         (COMMON_TEST_CLEANUP): Likewise.
50310         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
50311         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
50312         macros.
50313         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
50314         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
50315         macros.
50316         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
50317         (RUN_TEST_fff_f): Take argument string.  Call new setup and
50318         cleanup macros.
50319         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
50320         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
50321         macros.
50322         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
50323         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
50324         macros.
50325         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
50326         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
50327         cleanup macros.
50328         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
50329         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
50330         cleanup macros.
50331         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
50332         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
50333         cleanup macros.
50334         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
50335         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
50336         macros.
50337         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
50338         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
50339         macros.
50340         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
50341         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
50342         macros.
50343         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
50344         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
50345         cleanup macros.
50346         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
50347         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
50348         cleanup macros.
50349         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
50350         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
50351         macros.
50352         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
50353         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
50354         cleanup macros.
50355         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
50356         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
50357         macros.
50358         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
50359         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
50360         macros.
50361         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
50362         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
50363         cleanup macros.
50364         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
50365
50366 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
50367
50368         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
50369         to _sifields.sigfault.
50370         (si_addr_lsb): Define new macro.
50371         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
50372         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
50373         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
50374
50375 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
50376
50377         [BZ #15441]
50378         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
50379         returns -1.
50380         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
50381         null return -1.
50382         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
50383         loading the domain.
50384
50385 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
50386
50387         * math/gen-libm-test.pl (parse_args): Do not include expected
50388         result in test name.
50389         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
50390         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50391         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50392         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
50393         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50395
50396 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
50397
50398         * benchtests/Makefile: Sort function entries.
50399
50400         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
50401         tanh, asinh, acosh, atanh.
50402         * benchtests/acos-inputs: New file.
50403         * benchtests/acosh-inputs: New file.
50404         * benchtests/asin-inputs: New file.
50405         * benchtests/asinh-inputs: New file.
50406         * benchtests/atanh-inputs: New file.
50407         * benchtests/cosh-inputs: New file.
50408         * benchtests/log-inputs: New file.
50409         * benchtests/sinh-inputs: New file.
50410         * benchtests/tanh-inputs: New file.
50411
50412 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
50413
50414         [BZ #15339]
50415         * posix/tst-getaddrinfo4.c: New test.
50416         * posix/Makefile (tests): Add it.
50417
50418 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50419
50420         [BZ #15339]
50421         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
50422         when no services were used.
50423         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
50424         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
50425
50426 2013-05-21  Andreas Schwab  <schwab@suse.de>
50427
50428         [BZ #15014]
50429         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
50430         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
50431         successful.
50432         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
50433         redundant variable declarations and reallocation of buffer when
50434         parsing as IPv6 address.  Always set NSS status when called from
50435         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
50436         buffer too small.  Correct computation of needed size.
50437         * nss/Makefile (tests): Add test-digits-dots.
50438         * nss/test-digits-dots.c: New test.
50439
50440 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50441
50442         * benchtests/Makefile: Remove instructions for adding
50443         benchmark tests.
50444         * benchtests/README: New file to explain how to execute and
50445         enhance the benchmark tests.
50446
50447 2013-05-21  Andreas Schwab  <schwab@suse.de>
50448
50449         [BZ #15493]
50450         * setjmp/Makefile (tests): Add tst-sigsetjmp.
50451         * setjmp/tst-sigsetjmp.c: New test.
50452
50453 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
50454
50455         * sysdeps/x86_64/memset.S (memset): New implementation.
50456         (__bzero): Likewise.
50457         (__memset_tail): New function.
50458
50459 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
50460
50461         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
50462         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
50463         __memcpy_sse2_unaligned ifunc selection.
50464         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50465         Add memcpy-sse2-unaligned.S.
50466         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50467         Add: __memcpy_sse2_unaligned.
50468
50469 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
50470
50471         [BZ #15490]
50472         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
50473         math_force_eval before restoring floating-point envrionment.
50474         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
50475         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
50476         Likewise.
50477         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
50478         <math_private.h>.
50479         (__nearbyintl): Use math_force_eval before restoring
50480         floating-point environment.
50481         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
50482
50483         * math/gen-libm-test.pl (special_functions): Remove.
50484         (parse_args): Don't handle TEST_extra.  Handle functions with no
50485         return value.
50486         * math/libm-test.inc (struct test_sincos_data): Replace with
50487         struct test_fFF_11_data.
50488         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
50489         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
50490         (sincos_test_data): Change element type to struct
50491         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
50492         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
50493         RUN_TEST_LOOP_sincos.
50494         * math/README.libm-test: Don't mention special handling of
50495         individual functions.
50496         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
50497         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50498         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50499         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
50500         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50501         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50502
50503         * math/gen-libm-test.pl (get_variable): Remove function.
50504         (parse_args): Don't show pointer parameters to call in test
50505         names.  Use "extra output N" in test names for extra outputs
50506         rather than naming variables.
50507
50508 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
50509
50510         [BZ #15488]
50511         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
50512         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
50513         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
50514         double tests.
50515         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
50516         disable.
50517         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
50518         check_long_double.
50519
50520         * math/gen-libm-test.pl (@tests): Remove variable.
50521         ($count): Likewise.
50522         (new_test): Remove function.
50523         (show_exceptions): New function.
50524         (special_functions): Use show_exceptions instead of new_test.
50525         (parse_args): Likewise.
50526         (generate_testfile): Pass only function name in generated call to
50527         print_max_error or print_complex_max_error.
50528         (get_ulps): Do not handle complex tests specially.
50529         (output_test): Rename to ...
50530         (get_all_ulps_for_test): ... this.  Return a string rather than
50531         printing to a file.  Require ulps to be present.
50532         (output_ulps): Generate arrays rather than #defines.
50533         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
50534         (struct ulp_data): New type.
50535         (BUILD_COMPLEX_ULP): Remove macro.
50536         (compare_ulp_data): New function.
50537         (find_ulps): Likewise.
50538         (find_test_ulps): Likewise.
50539         (find_function_ulps): Likewise.
50540         (find_complex_function_ulps): Likewise.
50541         (print_max_error): Determine allowed ulps using
50542         find_function_ulps.
50543         (print_complex_max_error): Determine allowed ulps using
50544         find_complex_function_ulps.
50545         (check_float_internal): Determine max ulps using find_test_ulps.
50546         (check_float): Do not take max_ulp parameter.  Update call to
50547         check_float_internal.
50548         (check_complex): Likewise.
50549         (check_int): Do not take max_ulp parameter.
50550         (check_long): Likewise.
50551         (check_bool): Likewise.
50552         (check_longlong): Likewise.
50553         (struct test_f_f_data): Remove max_ulp field.
50554         (struct test_ff_f_data): Likewise.
50555         (struct test_ff_f_data_nexttoward): Likewise.
50556         (struct test_fi_f_data): Likewise.
50557         (struct test_fl_f_data): Likewise.
50558         (struct test_if_f_data): Likewise.
50559         (struct test_fff_f_data): Likewise.
50560         (struct test_c_f_data): Likewise.
50561         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
50562         (struct test_fF_f1_data): Likewise.
50563         (struct test_ffI_f1_data): Likewise.
50564         (struct test_c_c_data): Remove max_ulp field.
50565         (struct test_cc_c_data): Likewise.
50566         (struct test_f_i_data): Likewise.
50567         (struct test_ff_i_data): Likewise.
50568         (struct test_f_l_data): Likewise.
50569         (struct test_f_L_data): Likewise.
50570         (struct test_sincos_data): Likewise.
50571         (RUN_TEST_f_f): Do not handle ulps.
50572         (RUN_TEST_LOOP_f_f): Likewise.
50573         (RUN_TEST_2_f): Likewise.
50574         (RUN_TEST_LOOP_2_f): Likewise.
50575         (RUN_TEST_fff_f): Likewise.
50576         (RUN_TEST_LOOP_fff_f): Likewise.
50577         (RUN_TEST_c_f): Likewise.
50578         (RUN_TEST_LOOP_c_f): Likewise.
50579         (RUN_TEST_f_f1): Likewise.
50580         (RUN_TEST_LOOP_f_f1): Likewise.
50581         (RUN_TEST_fF_f1): Likewise.
50582         (RUN_TEST_LOOP_fF_f1): Likewise.
50583         (RUN_TEST_fI_f1): Likewise.
50584         (RUN_TEST_LOOP_fI_f1): Likewise.
50585         (RUN_TEST_ffI_f1): Likewise.
50586         (RUN_TEST_LOOP_ffI_f1): Likewise.
50587         (RUN_TEST_c_c): Likewise.
50588         (RUN_TEST_LOOP_c_c): Likewise.
50589         (RUN_TEST_cc_c): Likewise.
50590         (RUN_TEST_LOOP_cc_c): Likewise.
50591         (RUN_TEST_f_i): Likewise.
50592         (RUN_TEST_LOOP_f_i): Likewise.
50593         (RUN_TEST_f_i_tg): Likewise.
50594         (RUN_TEST_LOOP_f_i_tg): Likewise.
50595         (RUN_TEST_ff_i_tg): Likewise.
50596         (RUN_TEST_LOOP_ff_i_tg): Likewise.
50597         (RUN_TEST_f_b): Likewise.
50598         (RUN_TEST_LOOP_f_b): Likewise.
50599         (RUN_TEST_f_b_tg): Likewise.
50600         (RUN_TEST_LOOP_f_b_tg): Likewise.
50601         (RUN_TEST_f_l): Likewise.
50602         (RUN_TEST_LOOP_f_l): Likewise.
50603         (RUN_TEST_f_L): Likewise.
50604         (RUN_TEST_LOOP_f_L): Likewise.
50605         (RUN_TEST_sincos): Likewise.
50606         (RUN_TEST_LOOP_sincos): Likewise.
50607
50608 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
50609
50610         [BZ #15480]
50611         [BZ #15485]
50612         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
50613         main case of finite arguments, set rounding mode to FE_TONEAREST
50614         and discard exceptions.
50615         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
50616         exceptions.
50617         (remainder_tonearest_test_data): New variable.
50618         (remainder_test_tonearest): New function.
50619         (remainder_towardzero_test_data): New variable.
50620         (remainder_test_towardzero): New function.
50621         (remainder_downward_test_data): New variable.
50622         (remainder_test_downward): New function.
50623         (remainder_upward_test_data): New variable.
50624         (remainder_test_upward): New function.
50625         (main): Call the new test functions.
50626
50627         * math/libm-test.inc (struct test_f_f1_data): Remove field
50628         extra_init.
50629         (struct test_fF_f1_data): Likewise.
50630         (struct test_ffI_f1_data): Likewise.
50631         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
50632         based on value of EXTRA_EXPECTED.
50633         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
50634         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
50635         EXTRA_VAR based on value of EXTRA_EXPECTED.
50636         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
50637         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
50638         EXTRA_VAR based on value of EXTRA_EXPECTED.
50639         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
50640         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
50641         EXTRA_VAR based on value of EXTRA_EXPECTED.
50642         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
50643         * math/gen-libm-test.pl (parse_args): Don't output initializers
50644         for extra output values.
50645
50646         * math/libm-test.inc (check_int): Expect result to be exactly
50647         equal to expected value and do not handle ulps.
50648         (check_long): Likewise.
50649         (check_longlong): Likewise.
50650
50651         * math/libm-test.inc (ceil_test_data): Test for "inexact"
50652         exceptions.
50653         (cimag_test_data): Likewise.
50654         (conj_test_data): Likewise.
50655         (copysign_test_data): Likewise.
50656         (cproj_test_data): Likewise.
50657         (creal_test_data): Likewise.
50658         (fabs_test_data): Likewise.
50659         (fdim_test_data): Likewise.
50660         (finite_test_data): Likewise.
50661         (floor_test_data): Likewise.
50662         (fmax_test_data): Likewise.
50663         (fmin_test_data): Likewise.
50664         (fmod_test_data): Likewise.
50665         (fpclassify_test_data): Likewise.
50666         (frexp_test_data): Likewise.
50667         (ilogb_test_data): Likewise.
50668         (isfinite_test_data): Likewise.
50669         (isgreater_test_data): Likewise.
50670         (isgreaterequal_test_data): Likewise.
50671         (isinf_test_data): Likewise.
50672         (isless_test_data): Likewise.
50673         (islessequal_test_data): Likewise.
50674         (islessgreater_test_data): Likewise.
50675         (isnan_test_data): Likewise.
50676         (isnormal_test_data): Likewise.
50677         (issignaling_test_data): Likewise.
50678         (isunordered_test_data): Likewise.
50679         (ldexp_test_data): Likewise.
50680         (lrint_test_data): Likewise.
50681         (lrint_test_data) [TEST_FLOAT]: Disable one test.
50682         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
50683         (lrint_tonearest_test_data): Test for "inexact" exceptions.
50684         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
50685         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
50686         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
50687         test input.
50688         (lrint_towardzero_test_data): Test for "inexact" exceptions.
50689         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
50690         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
50691         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
50692         that test input.
50693         (lrint_downward_test_data): Test for "inexact" exceptions.
50694         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
50695         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
50696         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
50697         test input.
50698         (lrint_upward_test_data): Test for "inexact" exceptions.
50699         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
50700         test input.
50701         (llrint_test_data): Test for "inexact" exceptions.
50702         (llrint_test_data) [TEST_FLOAT]: Disable one test.
50703         (llrint_tonearest_test_data): Test for "inexact" exceptions.
50704         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
50705         (llrint_towardzero_test_data): Test for "inexact" exceptions.
50706         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
50707         (llrint_downward_test_data): Test for "inexact" exceptions.
50708         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
50709         (llrint_upward_test_data): Test for "inexact" exceptions.
50710         (logb_test_data): Likewise.
50711         (logb_downward_test_data): Likewise.
50712         (nextafter_test_data): Likewise.
50713         (nexttoward_test_data): Likewise.
50714         (remainder_test_data): Likewise.
50715         (remquo_test_data): Likewise.
50716         (scalbn_test_data): Likewise.
50717         (scalbln_test_data): Likewise.
50718         (signbit_test_data): Likewise.
50719         (sqrt_test_data): Likewise.
50720         (significand_test_data): Likewise.
50721
50722 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
50723
50724         [BZ #15424]
50725         * benchtests/bench-modf.c (struct args): Mark arg0 as
50726         volatile.
50727         * scripts/bench.pl: Mark members of struct args as volatile.
50728
50729 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50730
50731         [BZ # 15497]
50732         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
50733         negative infinity on POWER6 or lower.
50734         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
50735
50736 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
50737
50738         [BZ #15442]
50739         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
50740         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
50741         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
50742         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
50743         (_FP_SETQNAN): New macro.
50744         (_FP_SETQNAN_SEMIRAW): Likewise.
50745         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
50746         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
50747         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
50748         (FP_EXTEND): Use _FP_FRAC_SNANP.
50749         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
50750         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
50751         into account.
50752         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
50753         New macro.
50754         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
50755         Likewise.
50756
50757 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
50758
50759         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
50760         with DIVIDE_BY_ZERO_EXCEPTION.
50761         (gamma_test_data): Likewise.
50762         (lgamma_test_data): Likewise.
50763         (log_test_data): Likewise.
50764         (log10_test_data): Likewise.
50765         (log2_test_data): Likewise.
50766         (tgamma_test_data): Likewise.
50767
50768         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
50769         (acos_test_tonearest): Likewise.
50770         (acos_test_towardzero): Likewise.
50771         (acos_test_downward): Likewise.
50772         (acos_test_upward): Likewise.
50773         (acosh_test): Likewise.
50774         (asin_test): Likewise.
50775         (asin_test_tonearest): Likewise.
50776         (asin_test_towardzero): Likewise.
50777         (asin_test_downward): Likewise.
50778         (asin_test_upward): Likewise.
50779         (asinh_test): Likewise.
50780         (atan_test): Likewise.
50781         (atanh_test): Likewise.
50782         (atan2_test): Likewise.
50783         (cabs_test): Likewise.
50784         (cacos_test): Likewise.
50785         (cacosh_test): Likewise.
50786         (casin_test): Likewise.
50787         (casinh_test): Likewise.
50788         (catan_test): Likewise.
50789         (catanh_test): Likewise.
50790         (cbrt_test): Likewise.
50791         (ccos_test): Likewise.
50792         (ccosh_test): Likewise.
50793         (cexp_test): Likewise.
50794         (clog_test): Likewise.
50795         (clog10_test): Likewise.
50796         (cos_test): Likewise.
50797         (cos_test_tonearest): Likewise.
50798         (cos_test_towardzero): Likewise.
50799         (cos_test_downward): Likewise.
50800         (cos_test_upward): Likewise.
50801         (cosh_test): Likewise.
50802         (cosh_test_tonearest): Likewise.
50803         (cosh_test_towardzero): Likewise.
50804         (cosh_test_downward): Likewise.
50805         (cosh_test_upward): Likewise.
50806         (cpow_test): Likewise.
50807         (csin_test): Likewise.
50808         (csinh_test): Likewise.
50809         (csqrt_test): Likewise.
50810         (ctan_test): Likewise.
50811         (ctan_test_tonearest): Likewise.
50812         (ctan_test_towardzero): Likewise.
50813         (ctan_test_downward): Likewise.
50814         (ctan_test_upward): Likewise.
50815         (ctanh_test): Likewise.
50816         (ctanh_test_tonearest): Likewise.
50817         (ctanh_test_towardzero): Likewise.
50818         (ctanh_test_downward): Likewise.
50819         (ctanh_test_upward): Likewise.
50820         (erf_test): Likewise.
50821         (erfc_test): Likewise.
50822         (exp_test): Likewise.
50823         (exp_test_tonearest): Likewise.
50824         (exp_test_towardzero): Likewise.
50825         (exp_test_downward): Likewise.
50826         (exp_test_upward): Likewise.
50827         (exp10_test): Likewise.
50828         (exp2_test): Likewise.
50829         (expm1_test): Likewise.
50830         (fmod_test): Likewise.
50831         (gamma_test): Likewise.
50832         (hypot_test): Likewise.
50833         (j0_test): Likewise.
50834         (j1_test): Likewise.
50835         (jn_test): Likewise.
50836         (lgamma_test): Likewise.
50837         (log_test): Likewise.
50838         (log10_test): Likewise.
50839         (log1p_test): Likewise.
50840         (log2_test): Likewise.
50841         (logb_test_downward): Likewise.
50842         (pow_test): Likewise.
50843         (pow_test_tonearest): Likewise.
50844         (pow_test_towardzero): Likewise.
50845         (pow_test_downward): Likewise.
50846         (pow_test_upward): Likewise.
50847         (remainder_test): Likewise.
50848         (remquo_test): Likewise.
50849         (sin_test): Likewise.
50850         (sin_test_tonearest): Likewise.
50851         (sin_test_towardzero): Likewise.
50852         (sin_test_downward): Likewise.
50853         (sin_test_upward): Likewise.
50854         (sincos_test): Likewise.
50855         (sinh_test): Likewise.
50856         (sinh_test_tonearest): Likewise.
50857         (sinh_test_towardzero): Likewise.
50858         (sinh_test_downward): Likewise.
50859         (sinh_test_upward): Likewise.
50860         (sqrt_test): Likewise.
50861         (tan_test): Likewise.
50862         (tan_test_tonearest): Likewise.
50863         (tan_test_towardzero): Likewise.
50864         (tan_test_downward): Likewise.
50865         (tan_test_upward): Likewise.
50866         (tanh_test): Likewise.
50867         (tgamma_test): Likewise.
50868         (y0_test): Likewise.
50869         (y1_test): Likewise.
50870         (yn_test): Likewise.
50871
50872         * math/gen-libm-test.pl (adjust_arg): Remove function.
50873         (special_function): Remove argument $in_func.  Only handle
50874         generating output for tables of tests, not inside functions.
50875         (parse_args): Likewise.
50876         (generate_testfile): Remove variable $in_func.  Update call to
50877         parse_args.
50878         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
50879         (MINUS_ZERO_INIT): Rename macro to minus_zero.
50880         (PLUS_INFTY_INIT): Rename macro to plus_infty.
50881         (MINUS_INFTY_INIT): Rename macro to minus_infty.
50882         (QNAN_VALUE_INIT): Rename macro to qnan_value.
50883         (MAX_VALUE_INIT): Rename macro to max_value.
50884         (MIN_VALUE_INIT): Rename macro to min_value.
50885         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
50886         (plus_zero): Remove variable.
50887         (minus_zero): Likewise.
50888         (plus_infty): Likewise.
50889         (minus_infty): Likewise.
50890         (qnan_value): Likewise.
50891         (max_value): Likewise.
50892         (min_value): Likewise.
50893         (min_subnorm_value): Likewise.
50894
50895 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
50896
50897         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
50898         uint64_t or uint32_t usage.
50899         * crypt/sha256-block.c: Likewise.
50900         * crypt/sha256-crypt.c: Likewise.
50901         * crypt/sha256.c: Likewise.
50902         * crypt/sha512-block.c: Likewise.
50903         * crypt/sha512-crypt.c: Likewise.
50904         * crypt/sha512.c: Likewise.
50905         * debug/backtrace-tst.c: Likewise.
50906         * debug/pcprofiledump.c: Likewise.
50907         * elf/cache.c: Likewise.
50908         * elf/dl-cache.c: Likewise.
50909         * elf/dl-misc.c: Likewise.
50910         * elf/dl-profile.c: Likewise.
50911         * elf/dl-support.c: Likewise.
50912         * elf/ldconfig.c: Likewise.
50913         * elf/sprof.c: Likewise.
50914         * iconv/dummy-repertoire.c: Likewise.
50915         * iconv/iconv_charmap.c: Likewise.
50916         * iconv/skeleton.c: Likewise.
50917         * iconvdata/8bit-generic.c: Likewise.
50918         * iconvdata/cp737.h: Likewise.
50919         * iconvdata/cp775.h: Likewise.
50920         * iconvdata/ibm1008.h: Likewise.
50921         * iconvdata/ibm1025.h: Likewise.
50922         * iconvdata/ibm1046.h: Likewise.
50923         * iconvdata/ibm1097.h: Likewise.
50924         * iconvdata/ibm1112.h: Likewise.
50925         * iconvdata/ibm1122.h: Likewise.
50926         * iconvdata/ibm1123.h: Likewise.
50927         * iconvdata/ibm1124.h: Likewise.
50928         * iconvdata/ibm1129.h: Likewise.
50929         * iconvdata/ibm1130.h: Likewise.
50930         * iconvdata/ibm1132.h: Likewise.
50931         * iconvdata/ibm1133.h: Likewise.
50932         * iconvdata/ibm1137.h: Likewise.
50933         * iconvdata/ibm1140.h: Likewise.
50934         * iconvdata/ibm1141.h: Likewise.
50935         * iconvdata/ibm1142.h: Likewise.
50936         * iconvdata/ibm1143.h: Likewise.
50937         * iconvdata/ibm1144.h: Likewise.
50938         * iconvdata/ibm1145.h: Likewise.
50939         * iconvdata/ibm1146.h: Likewise.
50940         * iconvdata/ibm1147.h: Likewise.
50941         * iconvdata/ibm1148.h: Likewise.
50942         * iconvdata/ibm1149.h: Likewise.
50943         * iconvdata/ibm1153.h: Likewise.
50944         * iconvdata/ibm1154.h: Likewise.
50945         * iconvdata/ibm1155.h: Likewise.
50946         * iconvdata/ibm1156.h: Likewise.
50947         * iconvdata/ibm1157.h: Likewise.
50948         * iconvdata/ibm1158.h: Likewise.
50949         * iconvdata/ibm1160.h: Likewise.
50950         * iconvdata/ibm1161.h: Likewise.
50951         * iconvdata/ibm1162.h: Likewise.
50952         * iconvdata/ibm1163.h: Likewise.
50953         * iconvdata/ibm1164.h: Likewise.
50954         * iconvdata/ibm1166.h: Likewise.
50955         * iconvdata/ibm1167.h: Likewise.
50956         * iconvdata/ibm12712.h: Likewise.
50957         * iconvdata/ibm1390.h: Likewise.
50958         * iconvdata/ibm1399.h: Likewise.
50959         * iconvdata/ibm16804.h: Likewise.
50960         * iconvdata/ibm4517.h: Likewise.
50961         * iconvdata/ibm4899.h: Likewise.
50962         * iconvdata/ibm4909.h: Likewise.
50963         * iconvdata/ibm4971.h: Likewise.
50964         * iconvdata/ibm5347.h: Likewise.
50965         * iconvdata/ibm803.h: Likewise.
50966         * iconvdata/ibm856.h: Likewise.
50967         * iconvdata/ibm901.h: Likewise.
50968         * iconvdata/ibm902.h: Likewise.
50969         * iconvdata/ibm9030.h: Likewise.
50970         * iconvdata/ibm9066.h: Likewise.
50971         * iconvdata/ibm921.h: Likewise.
50972         * iconvdata/ibm922.h: Likewise.
50973         * iconvdata/ibm9448.h: Likewise.
50974         * iconvdata/isiri-3342.h: Likewise.
50975         * iconvdata/jis0201.h: Likewise.
50976         * include/link.h: Likewise.
50977         * include/netdb.h: Likewise.
50978         * inet/check_native.c: Likewise.
50979         * inet/check_pf.c: Likewise.
50980         * inet/getipv4sourcefilter.c: Likewise.
50981         * inet/getnameinfo.c: Likewise.
50982         * inet/getsourcefilter.c: Likewise.
50983         * inet/htonl.c: Likewise.
50984         * inet/setipv4sourcefilter.c: Likewise.
50985         * inet/setsourcefilter.c: Likewise.
50986         * inet/test-inet6_opt.c: Likewise.
50987         * inet/tst-network.c: Likewise.
50988         * locale/C-collate.c: Likewise.
50989         * locale/C-ctype.c: Likewise.
50990         * locale/C-time.c: Likewise.
50991         * locale/C-translit.h: Likewise.
50992         * locale/loadarchive.c: Likewise.
50993         * locale/programs/3level.h: Likewise.
50994         * locale/programs/charmap.c: Likewise.
50995         * locale/programs/charmap.h: Likewise.
50996         * locale/programs/ld-address.c: Likewise.
50997         * locale/programs/ld-collate.c: Likewise.
50998         * locale/programs/ld-ctype.c: Likewise.
50999         * locale/programs/ld-identification.c: Likewise.
51000         * locale/programs/ld-measurement.c: Likewise.
51001         * locale/programs/ld-messages.c: Likewise.
51002         * locale/programs/ld-monetary.c: Likewise.
51003         * locale/programs/ld-name.c: Likewise.
51004         * locale/programs/ld-numeric.c: Likewise.
51005         * locale/programs/ld-paper.c: Likewise.
51006         * locale/programs/ld-telephone.c: Likewise.
51007         * locale/programs/ld-time.c: Likewise.
51008         * locale/programs/linereader.c: Likewise.
51009         * locale/programs/locale.c: Likewise.
51010         * locale/programs/locarchive.c: Likewise.
51011         * locale/programs/locfile.h: Likewise.
51012         * locale/programs/repertoire.c: Likewise.
51013         * locale/programs/simple-hash.c: Likewise.
51014         * locale/programs/simple-hash.h: Likewise.
51015         * malloc/memusage.c: Likewise.
51016         * malloc/memusagestat.c: Likewise.
51017         * nis/nis_defaults.c: Likewise.
51018         * nis/nis_hash.c: Likewise.
51019         * nis/nis_print.c: Likewise.
51020         * nis/nis_xdr.c: Likewise.
51021         * nscd/connections.c: Likewise.
51022         * nscd/hstcache.c: Likewise.
51023         * nscd/nscd_gethst_r.c: Likewise.
51024         * nscd/nscd_getserv_r.c: Likewise.
51025         * nscd/nscd_helper.c: Likewise.
51026         * nscd/servicescache.c: Likewise.
51027         * nss/makedb.c: Likewise.
51028         * nss/nss_db/db-XXX.c: Likewise.
51029         * nss/nss_db/db-initgroups.c: Likewise.
51030         * nss/nss_db/db-netgrp.c: Likewise.
51031         * nss/nss_files/files-network.c: Likewise.
51032         * nss/nss_files/files-parse.c: Likewise.
51033         * posix/bug-regex5.c: Likewise.
51034         * posix/fnmatch_loop.c: Likewise.
51035         * posix/regcomp.c: Likewise.
51036         * posix/regexec.c: Likewise.
51037         * posix/tst-rfc3484-2.c: Likewise.
51038         * posix/tst-rfc3484-3.c: Likewise.
51039         * posix/tst-rfc3484.c: Likewise.
51040         * resolv/nss_dns/dns-canon.c: Likewise.
51041         * resolv/nss_dns/dns-network.c: Likewise.
51042         * resolv/res_init.c: Likewise.
51043         * resolv/res_mkquery.c: Likewise.
51044         * resolv/tst-aton.c: Likewise.
51045         * stdlib/cxa_atexit.c: Likewise.
51046         * stdlib/cxa_finalize.c: Likewise.
51047         * stdlib/gen-fpioconst.c: Likewise.
51048         * stdlib/strtol_l.c: Likewise.
51049         * string/tst-endian.c: Likewise.
51050         * sunrpc/auth_des.c: Likewise.
51051         * sunrpc/clnt_udp.c: Likewise.
51052         * sunrpc/rtime.c: Likewise.
51053         * sunrpc/svcauth_des.c: Likewise.
51054         * sunrpc/xdr.c: Likewise.
51055         * sunrpc/xdr_intXX_t.c: Likewise.
51056         * sunrpc/xdr_rec.c: Likewise.
51057         * sysdeps/generic/ldconfig.h: Likewise.
51058         * sysdeps/generic/ldsodefs.h: Likewise.
51059         * sysdeps/generic/memusage.h: Likewise.
51060         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
51061         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
51062         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
51063         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
51064         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
51065         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
51066         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
51067         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
51068         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
51069         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
51070         * sysdeps/posix/getaddrinfo.c: Likewise.
51071         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
51072         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
51073         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
51074         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
51075         * sysdeps/powerpc/test-gettimebase.c: Likewise.
51076         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
51077         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
51078         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
51079         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
51080         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
51081         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
51082         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
51083         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
51084         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
51085         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
51086         * sysdeps/x86_64/dl-tls.h: Likewise.
51087         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
51088         * time/alt_digit.c: Likewise.
51089         * time/era.c: Likewise.
51090         * wcsmbs/tst-c16c32-1.c: Likewise.
51091
51092 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
51093
51094         * math/libm-test.inc (struct test_sincos_data): New type.
51095         (RUN_TEST_LOOP_sincos): New macro.
51096         (sincos_test_data): New variable.
51097         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
51098
51099 2013-05-16  Richard Henderson  <rth@redhat.com>
51100
51101         * math/atest-exp2.c (LIMB64): New macro.
51102         (CONSTSZ): New macro.
51103         (mp_exp1, mp_exp_m1, mp_log2): New variables.
51104         (hexdig): Move ...
51105         (print_mpn_fp): ... to function scope.
51106         (read_mpn_hex): Remove.
51107         (get_log2): Remove.
51108         (exp2_mpn): Use mp_log2.
51109         (main): Use mp_exp1.
51110
51111 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
51112
51113         * math/libm-test.inc: Remove comment about not testing "inexact"
51114         exceptions.
51115         (INEXACT_EXCEPTION): New macro.
51116         (NO_INEXACT_EXCEPTION): Likewise.
51117         (INVALID_EXCEPTION_OK): Update value.
51118         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
51119         (OVERFLOW_EXCEPTION_OK): Likewise.
51120         (UNDERFLOW_EXCEPTION_OK): Likewise.
51121         (IGNORE_ZERO_INF_SIGN): Likewise.
51122         (ERRNO_UNCHANGED): Likewise.
51123         (ERRNO_EDOM): Likewise.
51124         (ERRNO_ERANGE): Likewise.
51125         (test_exceptions): Handle testing "inexact" exceptions.
51126         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
51127         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
51128         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
51129         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
51130         INEXACT_EXCEPTION.
51131         (rint_towardzero_test_data): Likewise.
51132         (rint_downward_test_data): Likewise.
51133         (rint_upward_test_data): Likewise.
51134
51135         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
51136         with OVERFLOW_EXCEPTION.
51137         (exp10_test_data): Likewise.
51138         (exp2_test_data): Likewise.
51139         (expm1_test_data): Likewise.
51140         (lgamma_test_data): Likewise.
51141         (pow_test_data): Likewise.
51142         (tgamma_test_data): Likewise.
51143         (yn_test_data): Remove duplicate test of overflow.
51144
51145         * math/libm-test.inc (struct test_cc_c_data): New type.
51146         (RUN_TEST_LOOP_cc_c): New macro.
51147         (cpow_test_data): New variable.
51148         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
51149
51150         * math/libm-test.inc (struct test_f_L_data): New type.
51151         (RUN_TEST_LOOP_f_L): New macro.
51152         (llrint_test_data): New variable.
51153         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
51154         (llrint_tonearest_test_data): New variable.
51155         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
51156         (llrint_towardzero_test_data): New variable.
51157         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
51158         (llrint_downward_test_data): New variable.
51159         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
51160         (llrint_upward_test_data): New variable.
51161         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
51162         (llround_test_data): New variable.
51163         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
51164
51165 2013-05-13  Peter Collingbourne  <pcc@google.com>
51166
51167         * math/atest-exp2.c (get_log2): Remove const attribute.
51168
51169 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
51170
51171         * math/libm-test.inc (struct test_f_l_data): New type.
51172         (RUN_TEST_LOOP_f_l): New macro.
51173         (lrint_test_data): New variable.
51174         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
51175         (lrint_tonearest_test_data): New variable.
51176         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
51177         (lrint_towardzero_test_data): New variable.
51178         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
51179         (lrint_downward_test_data): New variable.
51180         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
51181         (lrint_upward_test_data): New variable.
51182         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
51183         (lround_test_data): New variable.
51184         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
51185
51186 2013-05-15  Peter Collingbourne  <pcc@google.com>
51187
51188         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
51189         (EXTRACT_WORDS64) Use where appropriate.
51190         (INSERT_WORDS64) Likewise.
51191
51192         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
51193         constraints with x constraints.
51194         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
51195
51196         * malloc/obstack.c (_obstack_compat): Add initializer.
51197
51198 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
51199
51200         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
51201         si_trapno and add si_addr_lsb to _sifields.sigfault.
51202         (si_trapno): Remove macro.
51203         (si_addr_lsb): Define new macro.
51204         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
51205
51206 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
51207
51208         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
51209         instead of TEST_f_l.
51210         (llrint_test_tonearest): Likewise.
51211         (llrint_test_towardzero): Likewise.
51212         (llrint_test_downward): Likewise.
51213         (llrint_test_upward): Likewise.
51214         (llround_test): Likewise.
51215
51216         * math/libm-test.inc (struct test_f_i_data): Add comment.
51217         (RUN_TEST_LOOP_f_b): New macro.
51218         (RUN_TEST_LOOP_f_b_tg): Likewise.
51219         (finite_test_data): New variable.
51220         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
51221         (isfinite_test_data): New variable.
51222         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51223         (isinf_test_data): New variable.
51224         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51225         (isnan_test_data): New variable.
51226         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51227         (isnormal_test_data): New variable.
51228         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51229         (issignaling_test_data): New variable.
51230         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51231         (signbit_test_data): New variable.
51232         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
51233
51234         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
51235         with INVALID_EXCEPTION.
51236         (acosh_test_data): Likewise.
51237         (asin_test_data): Likewise.
51238         (atanh_test_data): Likewise.
51239         (fmod_test_data): Likewise.
51240         (log_test_data): Likewise.
51241         (log10_test_data): Likewise.
51242         (log2_test_data): Likewise.
51243         (pow_test_data): Likewise.
51244         (sqrt_test_data): Likewise.
51245         (y0_test_data): Likewise.
51246         (y1_test_data): Likewise.
51247         (yn_test_data): Likewise.
51248
51249         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
51250         function contents.
51251
51252         * math/libm-test.inc (struct test_ff_i_data): New type.
51253         (RUN_TEST_LOOP_ff_i_tg): New macro.
51254         (isgreater_test_data): New variable.
51255         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51256         (isgreaterequal_test_data): New variable.
51257         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51258         (isless_test_data): New variable.
51259         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51260         (islessequal_test_data): New variable.
51261         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51262         (islessgreater_test_data): New variable.
51263         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51264         (isunordered_test_data): New variable.
51265         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
51266
51267 2013-05-14  David S. Miller  <davem@davemloft.net>
51268
51269         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51270
51271 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
51272
51273         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
51274
51275         * math/libm-test.inc (struct test_fF_f1_data): Change type of
51276         extra_test to int.
51277         (struct test_f_i_data): Change type of max_ulp to int.
51278
51279         * math/libm-test.inc (test_ffI_f1_data): New type.
51280         (RUN_TEST_LOOP_ffI_f1): New macro.
51281         (remquo_test_data): New variable.
51282         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
51283
51284         * setjmp/tst-setjmp-fp.c: New file.
51285         * setjmp/Makefile (tests): Add tst-setjmp-fp.
51286         (link-libm): New variable.
51287         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
51288
51289         * math/libm-test.inc (struct test_f_i_data): New type.
51290         (RUN_TEST_LOOP_f_i): New macro.
51291         (RUN_TEST_LOOP_f_i_tg): Likewise.
51292         (fpclassify_test_data): New variable.
51293         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
51294         (ilogb_test_data): New variable.
51295         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
51296
51297         * math/libm-test.inc (scalbln_test): Correct function name in END
51298         call.
51299
51300         * math/libm-test.inc (struct test_f_f1_data): Add comment.
51301         (RUN_TEST_LOOP_fI_f1): New macro.
51302         (frexp_test_data): New variable.
51303         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
51304
51305         * math/libm-test.inc (struct test_fF_f1_data): New type.
51306         (RUN_TEST_LOOP_fF_f1): New macro.
51307         (modf_test_data): New variable.
51308         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
51309
51310         * math/libm-test.inc (struct test_f_f1_data): New type.
51311         (RUN_TEST_LOOP_f_f1): New macro.
51312         (gamma_test_data): New variable.
51313         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
51314         (lgamma_test_data): New variable.
51315         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
51316
51317 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
51318
51319         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
51320         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
51321         (main): Comment "tls" pseudo-hwcap.
51322
51323 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
51324
51325         * math/libm-test.inc (struct test_fl_f_data): New type.
51326         (RUN_TEST_LOOP_fl_f): New variable.
51327         (scalbln_test_data): New variable.
51328         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
51329
51330         * math/libm-test.inc (struct test_fi_f_data): New type.
51331         (RUN_TEST_LOOP_fi_f): New macro.
51332         (ldexp_test_data): New variable.
51333         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
51334         (scalbn_test_data): New variable.
51335         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
51336
51337         * math/libm-test.inc (struct test_c_f_data): New type.
51338         (RUN_TEST_LOOP_c_f): New macro.
51339         (cabs_test_data): New variable.
51340         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
51341         (carg_test_data): New variable.
51342         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
51343         (cimag_test_data): New variable.
51344         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
51345         (creal_test_data): New variable.
51346         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
51347
51348         * math/libm-test.inc (struct test_if_f_data): New type.
51349         (RUN_TEST_LOOP_if_f): New macro.
51350         (jn_test_data): New variable.
51351         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
51352         (yn_test_data): New variable.
51353         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
51354
51355         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
51356
51357 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51358
51359         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
51360         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
51361
51362 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51363
51364         * benchtests/Makefile (CPPFLAGS-nonlib): Add
51365         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
51366         (bench-deps): Add bench-timing.h.
51367         * benchtests-bench-skeleton.c: Include bench-timing.h.
51368         (main): Use TIMING_* macros instead of clock_gettime.
51369         * benchtests/bench-timing.h: New file.
51370
51371         [BZ #14582]
51372         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
51373         Renamed from _LIB_VERSION.
51374         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
51375
51376 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
51377
51378         * math/libm-test.inc (struct test_fff_f_data): New type.
51379         (RUN_TEST_LOOP_fff_f): New macro.
51380         (fma_test_data): New variable.
51381         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
51382         (fma_towardzero_test_data): New variable.
51383         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
51384         (fma_downward_test_data): New variable.
51385         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
51386         (fma_upward_test_data): New variable.
51387         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
51388
51389         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
51390         (struct test_c_c_data): New type.
51391         (RUN_TEST_LOOP_c_c): New macro.
51392         (cacos_test_data): New variable.
51393         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
51394         (cacosh_test_data): New variable.
51395         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
51396         (casin_test_data): New variable.
51397         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
51398         (casinh_test_data): New variable.
51399         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
51400         (catan_test_data): New variable.
51401         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
51402         (catanh_test_data): New variable.
51403         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
51404         (ccos_test_data): New variable.
51405         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
51406         (ccosh_test_data): New variable.
51407         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
51408         (cexp_test_data): New variable.
51409         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
51410         (clog_test_data): New variable.
51411         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
51412         (clog10_test_data): New variable.
51413         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
51414         (conj_test_data): New variable.
51415         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
51416         (cproj_test_data): New variable.
51417         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
51418         (csin_test_data): New variable.
51419         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
51420         (csinh_test_data): New variable.
51421         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
51422         (csqrt_test_data): New variable.
51423         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
51424         (ctan_test_data): New variable.
51425         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
51426         (ctan_tonearest_test_data): New variable.
51427         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
51428         (ctan_towardzero_test_data): New variable.
51429         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
51430         (ctan_downward_test_data): New variable.
51431         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
51432         (ctan_upward_test_data): New variable.
51433         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
51434         (ctanh_test_data): New variable.
51435         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
51436         (ctanh_tonearest_test_data): New variable.
51437         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
51438         (ctanh_towardzero_test_data): New variable.
51439         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
51440         (ctanh_downward_test_data): New variable.
51441         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
51442         (ctanh_upward_test_data): New variable.
51443         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
51444         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
51445         of BUILD_COMPLEX.
51446
51447         * math/libm-test.inc (struct test_ff_f_data): New type.
51448         (struct test_ff_f_data_nexttoward): Likewise.
51449         (RUN_TEST_LOOP_2_f): New macro.
51450         (RUN_TEST_LOOP_ff_f): Likewise.
51451         (atan2_test_data): New variable.
51452         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
51453         (copysign_test_data): New variable.
51454         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
51455         (fdim_test_data): New variable.
51456         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
51457         (fmax_test_data): New variable.
51458         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
51459         (fmin_test_data): New variable.
51460         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
51461         (fmod_test_data): New variable.
51462         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
51463         (hypot_test_data): New variable.
51464         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
51465         (nextafter_test_data): New variable.
51466         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
51467         (nexttoward_test_data): New variable.
51468         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
51469         (pow_test_data): New variable.
51470         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
51471         (pow_tonearest_test_data): New variable.
51472         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
51473         (pow_towardzero_test_data): New variable.
51474         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
51475         (pow_downward_test_data): New variable.
51476         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
51477         (pow_upward_test_data): New variable.
51478         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
51479         (remainder_test_data): New variable.
51480         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
51481         (scalb_test_data): New variable.
51482         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
51483         * sysdeps/i386/fpu/libm-test-ulps: Update.
51484
51485 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
51486
51487         * math/libm-test.inc (fma_test): Use max_value instead of local
51488         variable fltmax.
51489         (nextafter_test): Likewise.
51490
51491         * math/libm-test.inc (acos_towardzero_test_data): New variable.
51492         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51493         (acos_downward_test_data): New variable.
51494         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51495         (acos_upward_test_data): New variable.
51496         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51497         (acosh_test_data): New variable.
51498         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
51499         (asin_test_data): New variable.
51500         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
51501         (asin_tonearest_test_data): New variable.
51502         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51503         (asin_towardzero_test_data): New variable.
51504         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51505         (asin_downward_test_data): New variable.
51506         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51507         (asin_upward_test_data): New variable.
51508         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51509         (asinh_test_data): New variable.
51510         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
51511         (atan_test_data): New variable.
51512         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
51513         (atanh_test_data): New variable.
51514         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
51515         (cbrt_test_data): New variable.
51516         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
51517         (ceil_test_data): New variable.
51518         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
51519         (cos_test_data): New variable.
51520         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
51521         (cos_tonearest_test_data): New variable.
51522         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51523         (cos_towardzero_test_data): New variable.
51524         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51525         (cos_downward_test_data): New variable.
51526         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51527         (cos_upward_test_data): New variable.
51528         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51529         (cosh_test_data): New variable.
51530         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
51531         (cosh_tonearest_test_data): New variable.
51532         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51533         (cosh_towardzero_test_data): New variable.
51534         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51535         (cosh_downward_test_data): New variable.
51536         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51537         (cosh_upward_test_data): New variable.
51538         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51539         (erf_test_data): New variable.
51540         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
51541         (erfc_test_data): New variable.
51542         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
51543         (exp_test_data): New variable.
51544         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
51545         (exp_tonearest_test_data): New variable.
51546         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51547         (exp_towardzero_test_data): New variable.
51548         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51549         (exp_downward_test_data): New variable.
51550         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51551         (exp_upward_test_data): New variable.
51552         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51553         (exp10_test_data): New variable.
51554         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
51555         (exp2_test_data): New variable.
51556         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
51557         (expm1_test_data): New variable.
51558         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
51559         (fabs_test_data): New variable.
51560         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
51561         (floor_test_data): New variable.
51562         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
51563         (j0_test_data): New variable.
51564         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
51565         (j1_test_data): New variable.
51566         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
51567         (log_test_data): New variable.
51568         (log_test): Run tests with RUN_TEST_LOOP_f_f.
51569         (log10_test_data): New variable.
51570         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
51571         (log1p_test_data): New variable.
51572         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
51573         (log2_test_data): New variable.
51574         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
51575         (logb_test_data): New variable.
51576         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
51577         (logb_downward_test_data): New variable.
51578         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51579         (nearbyint_test_data): New variable.
51580         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
51581         (rint_test_data): New variable.
51582         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
51583         (rint_tonearest_test_data): New variable.
51584         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51585         (rint_towardzero_test_data): New variable.
51586         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51587         (rint_downward_test_data): New variable.
51588         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51589         (rint_upward_test_data): New variable.
51590         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51591         (round_test_data): New variable.
51592         (round_test): Run tests with RUN_TEST_LOOP_f_f.
51593         (sin_test_data): New variable.
51594         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
51595         (sin_tonearest_test_data): New variable.
51596         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51597         (sin_towardzero_test_data): New variable.
51598         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51599         (sin_downward_test_data): New variable.
51600         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51601         (sin_upward_test_data): New variable.
51602         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51603         (sinh_test_data): New variable.
51604         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
51605         (sinh_tonearest_test_data): New variable.
51606         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51607         (sinh_towardzero_test_data): New variable.
51608         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51609         (sinh_downward_test_data): New variable.
51610         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51611         (sinh_upward_test_data): New variable.
51612         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51613         (sqrt_test_data): New variable.
51614         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
51615         (tan_test_data): New variable.
51616         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
51617         (tan_tonearest_test_data): New variable.
51618         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51619         (tan_towardzero_test_data): New variable.
51620         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
51621         (tan_downward_test_data): New variable.
51622         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
51623         (tan_upward_test_data): New variable.
51624         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
51625         (tanh_test_data): New variable.
51626         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
51627         (tgamma_test_data): New variable.
51628         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
51629         (trunc_test_data): New variable.
51630         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
51631         (y0_test_data): New variable.
51632         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
51633         (y1_test_data): New variable.
51634         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
51635         (significand_test_data): New variable.
51636         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
51637
51638 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
51639
51640         [BZ #12387]
51641         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
51642
51643 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
51644
51645         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
51646
51647 2013-05-10  Andreas Jaeger  <aj@suse.de>
51648
51649         [BZ #15448]
51650         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
51651         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
51652
51653 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
51654
51655         * math/gen-libm-test.pl (adjust_arg): New function.
51656         (special_functions): Handle generating output in both functions
51657         and arrays.
51658         (parse_args): Likewise.
51659         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
51660         $in_func argument to parse_args.
51661         * math/libm-test.inc (struct test_f_f_data): New type.
51662         (IF_ROUND_INIT_): New macro.
51663         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
51664         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
51665         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
51666         (IF_ROUND_INIT_FE_UPWARD): Likewise.
51667         (ROUND_RESTORE_): Likewise.
51668         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
51669         (ROUND_RESTORE_FE_TONEAREST): Likewise.
51670         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
51671         (ROUND_RESTORE_FE_UPWARD): Likewise.
51672         (RUN_TEST_LOOP_f_f): New macro.
51673         (acos_test_data): New variable.
51674         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
51675         (acos_tonearest_test_data): New variable.
51676         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
51677
51678 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
51679
51680         * benchtests/bench-skeleton.c (startup): Fix coding style.
51681
51682 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
51683
51684         [BZ #6809]
51685         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
51686         negative infinity argument.
51687         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
51688         negative infinity argument.
51689         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
51690         negative infinity argument.
51691         * math/libm-test.inc (tgamma_test): Expect errno to be set for
51692         domain errors.
51693
51694 2013-05-10  Florian Weimer  <fweimer@redhat.com>
51695
51696         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
51697         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
51698         * iconv/iconv_prog.c (main): Likewise.
51699         * locale/programs/charmap-dir.c (charmap_readdir)
51700         (fopen_uncompressed): Likewise.
51701         * locale/programs/locfile.c (siblings_uncached)
51702         (write_locale_data): Use lstat64 instead of lstat.
51703         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
51704         stat.
51705
51706 2013-05-10  Andreas Jaeger  <aj@suse.de>
51707
51708         [BZ #15395]
51709         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
51710         localization.
51711         Include <locale.h>.
51712
51713 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
51714
51715         * elf/dl-close.c (_dl_close_worker): Add comments.
51716
51717 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
51718
51719         [BZ #15359]
51720         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
51721         high part of pi/2.
51722         (__ieee754_rem_pio2l): Update comments.
51723
51724         [BZ #15429]
51725         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
51726         high part of pi/2.
51727         (__ieee754_rem_pio2l): Update comments.
51728
51729         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
51730         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
51731
51732         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
51733         M_PI_4l.
51734
51735         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
51736         (M_PI_34_LOG10El): Likewise.
51737         (M_PI2_LOG10El): Likewise.
51738         (M_PI4_LOG10El): Likewise.
51739         (M_PI_LOG10El): Likewise.
51740
51741 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51742
51743         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51744
51745 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
51746
51747         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
51748         (MINUS_ZERO_INIT): Likewise.
51749         (PLUS_INFTY_INIT): Likewise.
51750         (MINUS_INFTY_INIT): Likewise.
51751         (QNAN_VALUE_INIT): Likewise.
51752         (MAX_VALUE_INIT): Likewise.
51753         (MIN_VALUE_INIT): Likewise.
51754         (MIN_SUBNORM_VALUE_INIT): Likewise.
51755         (plus_zero): Initialize with PLUS_ZERO_INIT.
51756         (minus_zero): Initialize with MINUS_ZERO_INIT.
51757         (plus_infty): Initialize with PLUS_INFTY_INIT.
51758         (minus_infty): Initialize with MINUS_INFTY_INIT.
51759         (qnan_value): Initialize with QNAN_VALUE_INIT.
51760         (max_value): Initialize with MAX_VALUE_INIT.
51761         (min_value): Initialize with MIN_VALUE_INIT.
51762         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
51763
51764         * math/libm-test.inc (RUN_TEST_if_f): New macro.
51765         (jn_test): Use TEST_if_f instead of TEST_ff_f.
51766         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
51767         (yn_test): Use TEST_if_f instead of TEST_ff_f.
51768
51769         * math/libm-test.inc (RUN_TEST_f_f): New macro.
51770         (RUN_TEST_2_f): Likewise.
51771         (RUN_TEST_ff_f): Likewise.
51772         (RUN_TEST_fi_f): Likewise.
51773         (RUN_TEST_fl_f): Likewise.
51774         (RUN_TEST_fff_f): Likewise.
51775         (RUN_TEST_c_f): Likewise.
51776         (RUN_TEST_f_f1): Likewise.
51777         (RUN_TEST_fF_f1): Likewise.
51778         (RUN_TEST_fI_f1): Likewise.
51779         (RUN_TEST_ffI_f1): Likewise.
51780         (RUN_TEST_c_c): Likewise.
51781         (RUN_TEST_cc_c): Likewise.
51782         (RUN_TEST_f_i): Likewise.
51783         (RUN_TEST_f_i_tg): Likewise.
51784         (RUN_TEST_ff_i_tg): Likewise.
51785         (RUN_TEST_f_b): Likewise.
51786         (RUN_TEST_f_b_tg): Likewise.
51787         (RUN_TEST_f_l): Likewise.
51788         (RUN_TEST_f_L): Likewise.
51789         (RUN_TEST_sincos): Likewise.
51790         * math/gen-libm-test.pl (new_test): Take new argument to indicate
51791         whether to show exceptions.  Do not include ");\n" in return
51792         value.
51793         (special_functions): Output call to RUN_TEST_sincos instead of
51794         check_float calls.  Update calls to new_test.
51795         (parse_args): Output call to single RUN_TEST_* macro instead of
51796         check_* calls and other assignments.  Update calls to new_test.
51797
51798         [BZ #2546]
51799         [BZ #2560]
51800         [BZ #5159]
51801         [BZ #15426]
51802         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
51803         input to result for tgamma overflow.
51804         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
51805         (gamma_coeff): New variable.
51806         (NCOEFF): New macro.
51807         (gamma_positive): New function.
51808         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
51809         underflow here.  Use gamma_positive instead of exp (lgamma) for
51810         other arguments.
51811         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
51812         (gamma_coeff): New variable.
51813         (NCOEFF): New macro.
51814         (gammaf_positive): New function.
51815         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
51816         underflow here.  Use gamma_positive instead of exp (lgamma) for
51817         other arguments.
51818         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
51819         (gamma_coeff): New variable.
51820         (NCOEFF): New macro.
51821         (gammal_positive): New function.
51822         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
51823         underflow here.  Use gamma_positive instead of exp (lgamma) for
51824         other arguments.
51825         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
51826         (gamma_coeff): New variable.
51827         (NCOEFF): New macro.
51828         (gammal_positive): New function.
51829         (__ieee754_gammal_r): Handle positive infinity, overflow and
51830         underflow here.  Handle NaN the same as positive infinity.  Remove
51831         check x < 0xffffffff for negative integers.  Use gamma_positive
51832         instead of exp (lgamma) for other arguments.
51833         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
51834         (gamma_coeff): New variable.
51835         (NCOEFF): New macro.
51836         (gammal_positive): New function.
51837         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
51838         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
51839         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
51840         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
51841         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
51842         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
51843         * sysdeps/generic/math_private.h (__gamma_productf): New
51844         prototype.
51845         (__gamma_product): Likewise.
51846         (__gamma_productl): Likewise.
51847         * math/Makefile (libm-calls): Add gamma_product.
51848         * math/libm-test.inc (tgamma_test): Add more tests.
51849         * sysdeps/i386/fpu/libm-test-ulps: Update.
51850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51851
51852 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
51853
51854         * benchtests/bench-skeleton.c (main): Preheat CPU.
51855
51856 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
51857
51858         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
51859
51860 2013-05-07  Roland McGrath  <roland@hack.frob.com>
51861
51862         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
51863         and _dl_skip_args_internal.
51864
51865 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
51866
51867         * manual/message.texi (Message Translation): Talk about users.
51868         Message to key mapping impacts design.
51869
51870 2013-05-06  Roland McGrath  <roland@hack.frob.com>
51871
51872         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
51873
51874         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
51875
51876         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
51877         * sysdeps/wordsize-64/glob64.c: ... here.
51878
51879         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
51880         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
51881         New macros.
51882
51883         * debug/getlogin_r_chk.c: Moved to ...
51884         * login/getlogin_r_chk.c: ... here.
51885         * debug/Makefile (routines): Move getlogin_r_chk to ...
51886         * login/Makefile (routines): ... here.
51887         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
51888         * login/Versions (libc: GLIBC_2.4): ... here.
51889
51890         * io/poll.c (__poll): Renamed from poll.
51891         Add libc_hidden_def.
51892         (poll): Define as weak alias.
51893
51894         * debug/ptsname_r_chk.c: Moved to ...
51895         * login/ptsname_r_chk.c: ... here.
51896         * debug/Makefile (routines): Move ptsname_r_chk to ...
51897         * login/Makefile (routines): ... here.
51898         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
51899         * login/Versions (libc: GLIBC_2.4): ... here.
51900
51901         * posix/getlogin.c: Moved to ...
51902         * login/getlogin.c: ... here.
51903         * posix/getlogin_r.c: Moved to ...
51904         * login/getlogin_r.c: ... here.
51905         * posix/getlogin_r.c: Moved to ...
51906         * login/getlogin_r.c: ... here.
51907         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
51908         * login/Makefile (routines): ... here.
51909         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
51910         * login/Versions (libc: GLIBC_2.0): ... here.
51911
51912         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
51913         (setrlimit): Define as weak alias.
51914
51915         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
51916         Call __ names for open, ftruncate, and close.
51917         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
51918         (truncate): Define as weak alias.
51919
51920 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
51921
51922         * math/gen-libm-test.pl (parse_args): Initialize x before each
51923         test of frexp, modf and remquo.
51924
51925         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
51926         test signgam value.
51927
51928 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51929
51930         [BZ #15418]
51931         [BZ #15419]
51932         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
51933         internal tests.
51934         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
51935
51936 2013-05-06  Roland McGrath  <roland@hack.frob.com>
51937
51938         * elf/dl-writev.h: New file.
51939         * elf/dl-misc.c: Include it.
51940         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
51941         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
51942
51943 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
51944
51945         * math/libm-test.inc (noXFails): Remove variable.
51946         (noXPasses): Likewise.
51947         (BUILD_COMPLEX_INT): Remove macro.
51948         (print_screen): Remove xfail argument.
51949         (print_screen_max_error): Likewise.
51950         (update_stats): Likewise.
51951         (print_max_error): Likewise.  Update calls to other affected
51952         functions.
51953         (print_complex_max_error): Likewise.
51954         (test_single_exception): Update calls to print_screen.
51955         (test_single_errno): Likewise.
51956         (check_float_internal): Remove xfail argument.  Update calls to
51957         other affected functions.
51958         (check_float): Likewise.
51959         (check_complex): Likewise.
51960         (check_int): Likewise.
51961         (check_long): Likewise.
51962         (check_bool): Likewise.
51963         (check_longlong): Likewise.
51964         (main): Don't print noXFails and noXPasses.
51965         * math/gen-libm-test.pl (top level): Don't mention expected
51966         failure handling in comment.
51967         (new_test): Don't handle expected failures.
51968         (parse_args): Don't mention expected failure handling in comment.
51969         (generate_testfile): Don't handle expected failures.
51970         (parse_ulps): Likewise.
51971         (print_ulps_file): Likewise.
51972         (get_failure): Remove function.
51973         (output_test): Don't handle expected failures.
51974         * make/README.libm-test: Don't mention expected failure handling.
51975
51976         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
51977         (minus_zero): Likewise.
51978         (plus_infty): Likewise.
51979         (minus_infty): Likewise.
51980         (qnan_value): Likewise.
51981         (max_value): Likewise.
51982         (min_value): Likewise.
51983         (min_subnorm_value): Likewise.
51984         (initialize): Do not initialize those variables dynamically.
51985
51986 2013-05-03  Roland McGrath  <roland@hack.frob.com>
51987
51988         * io/open.c (__open_2): Moved to ...
51989         * io/open_2.c: ... this new file.
51990         * io/open64.c (__open64_2): Moved to ...
51991         * io/open64_2.c: ... this new file.
51992         * io/openat.c (__openat_2): Moved to ...
51993         * io/openat_2.c: ... this new file.
51994         * io/openat64.c (__openat64_2): Moved to ...
51995         * io/openat64_2.c: ... this new file.
51996         * io/Makefile (routines): Add them.
51997         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
51998         * sysdeps/unix/sysv/linux/open_2.c: File removed.
51999         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
52000         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
52001         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
52002         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
52003         (__openat64): Add hidden_ver.
52004         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
52005         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
52006
52007         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
52008         Separately conditionalize setting of GLRO(dl_sysinfo) so
52009         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
52010         as well, but the actual setting is only under [NEED_DL_SYSINFO].
52011
52012 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52013
52014         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
52015         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
52016         definition.
52017         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
52018         * sysdeps/unix/sysv/linux/powerpc/init-first.c
52019         (_libc_vdso_platform_setup): Add __vdso_time initialization.
52020         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
52021         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
52022
52023 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
52024
52025         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
52026         test signgam value.
52027
52028         * math/libm-test.inc (hypot_test): Do not use
52029         IGNORE_ZERO_INF_SIGN.
52030
52031 2013-05-03  Andreas Jaeger  <aj@suse.de>
52032
52033         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
52034         Linux 3.9.
52035         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
52036         (PF_MAX): Adjust for VSOCK change.
52037
52038 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52039
52040         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52041
52042 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
52043
52044         [BZ #15264]
52045         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
52046         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
52047         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
52048
52049 2013-05-02  David S. Miller  <davem@davemloft.net>
52050
52051         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52052
52053 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
52054
52055         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
52056
52057 2013-05-01  Roland McGrath  <roland@hack.frob.com>
52058
52059         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
52060
52061 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
52062
52063         [BZ #14952]
52064         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
52065         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
52066         Use __attribute__ ((__gnu_inline__)).
52067         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
52068         Don't use __attribute__ ((__gnu_inline__)).
52069
52070 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
52071
52072         [BZ #15423]
52073         * math/s_catan.c (__catan): Handle small real or imaginary part of
52074         input specially to avoid spurious underflow.
52075         * math/s_catanf.c (__catanf): Likewise.
52076         * math/s_catanh.c (__catanh): Likewise.
52077         * math/s_catanhf.c (__catanhf): Likewise.
52078         * math/s_catanhl.c (__catanhl): Likewise.
52079         * math/s_catanl.c (__catanl): Likewise.
52080         * math/libm-test.inc (catan_test): Add more tests.
52081         (catanh_test): Likewise.
52082         * sysdeps/i386/fpu/libm-test-ulps: Update.
52083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52084
52085 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52086
52087         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52088
52089 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
52090
52091         [BZ #15416]
52092         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
52093         accurately for denominator in atan2.
52094         * math/s_catanf.c (__catanf): Likewise.
52095         * math/s_catanh.c (__catanh): Likewise.
52096         * math/s_catanhf.c (__catanhf): Likewise.
52097         * math/s_catanhl.c (__catanhl): Likewise.
52098         * math/s_catanl.c (__catanl): Likewise.
52099         * math/libm-test.inc (catan_test): Add more tests.
52100         (catanh_test): Likewise.
52101         * sysdeps/i386/fpu/libm-test-ulps: Update.
52102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52103
52104 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
52105
52106         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
52107
52108         * benchtests/Makefile (bench): Remove slow benchmarks.
52109         * benchtests/atan-inputs: Add slow benchmark inputs.
52110         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
52111         (BENCH_FUNC): Accept variant offset.
52112         (VARIANT): Define.
52113         * benchtests/bench-skeleton.c (main): Run benchmark for each
52114         variant.
52115         * benchtests/cos-inputs: Add slow benchmark inputs.
52116         * benchtests/exp-inputs: Likewise.
52117         * benchtests/pow-inputs: Likewise.
52118         * benchtests/sin-inputs: Likewise.
52119         * benchtests/slowatan-inputs: Remove.
52120         * benchtests/slowatan.c: Remove.
52121         * benchtests/slowcos-inputs: Remove.
52122         * benchtests/slowcos.c: Remove.
52123         * benchtests/slowexp-inputs: Remove.
52124         * benchtests/slowexp.c: Remove.
52125         * benchtests/slowpow-inputs: Remove.
52126         * benchtests/slowpow.c: Remove.
52127         * benchtests/slowsin-inputs: Remove.
52128         * benchtests/slowsin.c: Remove.
52129         * benchtests/slowtan-inputs: Remove.
52130         * benchtests/slowtan.c: Remove.
52131         * benchtests/tan-inputs: Add slow benchmark inputs.
52132         * scripts/bench.pl: Parse comments and directives.
52133
52134         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
52135         in CPPFLAGS.
52136         ($(objpfx)bench-%.c): Remove *-ITER.
52137         * benchtests/bench-modf.c: Remove definition of ITER.
52138         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
52139         (main): Loop for DURATION seconds instead of fixed number of
52140         iterations.
52141         * scripts/bench.pl: Don't expect iterations in parameters.
52142
52143 2013-04-29  Roland McGrath  <roland@hack.frob.com>
52144
52145         * io/fchdir.c (__fchdir): Renamed from fchdir.
52146         (fchdir): Define as weak alias.
52147
52148 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
52149
52150         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
52151         (ERRNO_EDOM): Likewise.
52152         (ERRNO_ERANGE): Likewise.
52153         (noErrnoTests): New variable.
52154         (init_max_error): Set errno to 0.
52155         (test_single_errno): New function.
52156         (test_errno): Likewise.
52157         (check_float_internal): Call test_errno.  Set errno to 0.
52158         (check_complex): Refer to errno tests in comment.
52159         (check_int): Call test_errno.  Set errno to 0.
52160         (check_long): Likewise.
52161         (check_bool): Likewise.
52162         (check_longlong): Likewise.
52163         (cos_test): Use ERRNO_* flags for errno tests instead of
52164         check_int.
52165         (expm1_test): Likewise.
52166         (fmod_test): Likewise.
52167         (ilogb_test): Likewise.
52168         (lgamma_test): Likewise.
52169         (pow_test): Likewise.
52170         (remainder_test): Likewise.
52171         (sin_test): Likewise.
52172         (tan_test): Likewise.
52173         (yn_test): Likewise.
52174         (initialize): Set errno to 0.
52175         (main): Print number of errno tests.
52176         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
52177
52178 2013-04-29  Andreas Jaeger  <aj@suse.de>
52179
52180         [BZ #15084]
52181         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
52182         and RES_USEVC.
52183
52184         [BZ #15085]
52185         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
52186         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
52187         unimplemented.
52188
52189         [BZ #15380]
52190         * stdlib/random.c (__initstate): Return NULL if
52191         __initstate fails.
52192
52193         [BZ #15086]
52194         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
52195         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
52196         RES_SNGLKUPREOP.
52197
52198 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52199
52200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52201
52202 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
52203
52204         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
52205         of individual tests.
52206         (casin_test): Likewise.
52207         (casinh_test): Likewise.
52208
52209 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
52210
52211         [BZ #15409]
52212         * math/s_catan.c (__catan): Handle arguments with large real or
52213         imaginary part separately without squaring.
52214         * math/s_catanf.c (__catanf): Likewise.
52215         * math/s_catanh.c (__catanh): Likewise.
52216         * math/s_catanhf.c (__catanhf): Likewise.
52217         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
52218         and redefine.
52219         (__catanhl): Handle arguments with large real or imaginary part
52220         separately without squaring.
52221         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
52222         and redefine.
52223         (__catanl): Handle arguments with large real or imaginary part
52224         separately without squaring.
52225         * math/libm-test.inc (catan_test): Add more tests.
52226         (catanh_test): Likewise.
52227         * sysdeps/i386/fpu/libm-test-ulps: Update.
52228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52229
52230 2013-04-27  Andreas Jaeger  <aj@suse.de>
52231
52232         [BZ #15007]
52233         * stdlib/stdlib.h: Update guards for qecvt.
52234         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
52235         <stdlib.h>.
52236
52237 2013-04-27  Allan McRae  <allan@archlinux.org>
52238
52239         * sysdeps/i386/fpu/libm-test-ulps: Update.
52240
52241 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
52242
52243         [BZ #15406]
52244         * math/s_catan.c: Include <float.h>.
52245         (__catan): Ensure underflow exception occurs for underflowed
52246         result.
52247         * math/s_catanf.c: Include <float.h>.
52248         (__catanf): Ensure underflow exception occurs for underflowed
52249         result.
52250         * math/s_catanh.c: Include <float.h>.
52251         (__catanh): Ensure underflow exception occurs for underflowed
52252         result.
52253         * math/s_catanhf.c: Include <float.h>.
52254         (__catanhf): Ensure underflow exception occurs for underflowed
52255         result.
52256         * math/s_catanhl.c: Include <float.h>.
52257         (__catanhl): Ensure underflow exception occurs for underflowed
52258         result.
52259         * math/s_catanl.c: Include <float.h>.
52260         (__catanl): Ensure underflow exception occurs for underflowed
52261         result.
52262         * math/libm-test.inc (catan_test): Add more tests.
52263         (catanh_test): Likewise.
52264
52265         [BZ #15405]
52266         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
52267         underflowed result.
52268         * math/s_ccoshf.c (__ccoshf): Likewise.
52269         * math/s_ccoshl.c (__ccoshl): Likewise.
52270         * math/s_csin.c (__csin): Likewise.
52271         * math/s_csinf.c (__csinf): Likewise.
52272         * math/s_csinh.c (__csinh): Likewise.
52273         * math/s_csinhf.c (__csinhf): Likewise.
52274         * math/s_csinhl.c (__csinhl): Likewise.
52275         * math/s_csinl.c (__csinl): Likewise.
52276         * math/libm-test.inc (ccos_test): Add more tests.
52277         (ccosh_test): Likewise.
52278         (csin_test): Likewise.
52279         (csinh_test): Likewise.
52280
52281 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52282
52283         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
52284         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
52285         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
52286         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
52287         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
52288         powerpc/power5+/fpu folders.
52289         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
52290
52291
52292 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
52293
52294         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
52295
52296 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
52297
52298         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
52299         additions to variable.
52300         [$(config-machine) = x86_64] (modules-names): Likewise.
52301         ($(objpfx)tst-audit3): Remove dependency.
52302         ($(objpfx)tst-audit3.out): Likewise.
52303         ($(objpfx)tst-audit4): Likewise.
52304         ($(objpfx)tst-audit4.out): Likewise.
52305         ($(objpfx)tst-audit5): Likewise.
52306         ($(objpfx)tst-audit5.out): Likewise.
52307         ($(objpfx)tst-audit6): Likewise.
52308         ($(objpfx)tst-audit6.out): Likewise.
52309         ($(objpfx)tst-audit7): Likewise.
52310         ($(objpfx)tst-audit7.out): Likewise.
52311         (tst-audit3-ENV): Remove variable.
52312         (tst-audit4-ENV): Likewise.
52313         (tst-audit5-ENV): Likewise.
52314         (tst-audit6-ENV): Likewise.
52315         (tst-audit7-ENV): Likewise.
52316         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
52317         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
52318         addition to variable.
52319         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
52320         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
52321         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
52322         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
52323         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
52324         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
52325         tst-audit3, tst-audit4 and tst-audit5.
52326         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
52327         tst-audit6 and tst-audit7.
52328         [$(subdir) = elf] (modules-names): Add audit modules for those
52329         tests.
52330         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
52331         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
52332         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
52333         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
52334         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
52335         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
52336         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
52337         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
52338         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
52339         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
52340         [$(subdir) = elf] (tst-audit3-ENV): New variable.
52341         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
52342         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
52343         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
52344         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
52345         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
52346         Likewise.
52347         [$(subdir) = elf && $(config-cflags-avx) = yes]
52348         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
52349         [$(subdir) = elf && $(config-cflags-avx) = yes]
52350         (CFLAGS-tst-auditmod4a.c): Likewise.
52351         [$(subdir) = elf && $(config-cflags-avx) = yes]
52352         (CFLAGS-tst-auditmod4b.c): Likewise.
52353         [$(subdir) = elf && $(config-cflags-avx) = yes]
52354         (CFLAGS-tst-auditmod6b.c): Likewise.
52355         [$(subdir) = elf && $(config-cflags-avx) = yes]
52356         (CFLAGS-tst-auditmod6c.c): Likewise.
52357         [$(subdir) = elf && $(config-cflags-avx) = yes]
52358         (CFLAGS-tst-auditmod7b.c): Likewise.
52359         * elf/tst-audit3.c: Move to ...
52360         * sysdeps/x86_64/tst-audit3.c: ... here.
52361         * elf/tst-audit4.c: Move to ...
52362         * sysdeps/x86_64/tst-audit4.c: ... here.
52363         * elf/tst-audit5.c: Move to ...
52364         * sysdeps/x86_64/tst-audit5.c: ... here.
52365         * elf/tst-audit6.c: Move to ...
52366         * sysdeps/x86_64/tst-audit6.c: ... here.
52367         * elf/tst-audit7.c: Move to ...
52368         * sysdeps/x86_64/tst-audit7.c: ... here.
52369         * elf/tst-auditmod3a.c: Move to ...
52370         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
52371         * elf/tst-auditmod3b.c: Move to ...
52372         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
52373         * elf/tst-auditmod4a.c: Move to ...
52374         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
52375         * elf/tst-auditmod4b.c: Move to ...
52376         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
52377         * elf/tst-auditmod5a.c: Move to ...
52378         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
52379         * elf/tst-auditmod5b.c: Move to ...
52380         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
52381         * elf/tst-auditmod6a.c: Move to ...
52382         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
52383         * elf/tst-auditmod6b.c: Move to ...
52384         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
52385         * elf/tst-auditmod6c.c: Move to ...
52386         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
52387         * elf/tst-auditmod7a.c: Move to ...
52388         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
52389         * elf/tst-auditmod7b.c: Move to ...
52390         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
52391
52392 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
52393
52394         [BZ #15366]
52395         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
52396         define unconditionally.
52397         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
52398         define unconditionally.
52399         (INT8_C, INT16_C, etc.): Likewise.
52400
52401 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
52402
52403         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
52404         __ehdr_start with hidden visibility.
52405
52406         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
52407
52408 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
52409
52410         * math/libm-test.inc (cos_test): Use accurate hex constants.
52411         (sincost_test): Likewise.
52412
52413 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
52414
52415         * math/libm-test.inc (catan_test): Add more tests.
52416         (catanh_test): Likewise.
52417
52418         * math/s_catanf.c (__catanf): Use suffixed floating-point
52419         constants.
52420         * math/s_catanhf.c (__catanhf): Likewise.
52421         * math/s_catanhl.c (__catanhl): Likewise.
52422         * math/s_catanl.c (__catanl): Likewise.
52423
52424         [BZ #15394]
52425         * math/s_catan.c (__catan): Calculate imaginary part of result
52426         with log1p not log unless computing log of number close to 0.
52427         * math/s_catanf.c (__catanf): Likewise.
52428         * math/s_catanl.c (__catanl): Likewise.
52429         * math/s_catanh.c (__catanh): Calculate real part of result with
52430         log1p not log unless computing log of number close to 0.
52431         * math/s_catanhf.c (__catanhf): Likewise.
52432         * math/s_catanhl.c (__catanhl): Likewise.
52433         * math/libm-test.inc (catan_test): Add more tests.
52434         (catanh_test): Likewise.
52435         * sysdeps/i386/fpu/libm-test-ulps: Update.
52436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52437
52438 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
52439
52440         * benchtests/Makefile: Mention files in which fast and slow
52441         paths of math functions are implemented.
52442
52443 2013-04-23  Roland McGrath  <roland@hack.frob.com>
52444
52445         * sysdeps/posix/timespec_get.c: New file.
52446
52447 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52448
52449         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
52450         POWER.
52451         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
52452         for POWER.
52453         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
52454         powerpc/power5/fpu folders.
52455         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
52456         * benchtests/Makefile: Add modf testcase.
52457         * benchtests/bench-modf.c: New file: Benchmark test for mo
52458
52459 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
52460
52461         [BZ #14888]
52462         * time/Makefile (tests): Add tst-strptime-whitespace.
52463         * time/strptime_l.c (get_number): Use ISSPACE.
52464         (__strptime_internal): Likewise.
52465         * time/tst-strptime-whitespace.c: New test case.
52466
52467 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
52468
52469         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
52470         member.
52471         (_nss_files_init): Set it here.
52472
52473 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
52474
52475         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
52476         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
52477         unsigned.
52478
52479 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
52480
52481         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
52482
52483 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
52484
52485         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
52486         size just once.
52487
52488 2013-04-21  David S. Miller  <davem@davemloft.net>
52489
52490         * po/ru.po: Update Russion translation from translation project.
52491
52492 2013-04-17  Adam Conrad  <adconrad@0c3.net>
52493
52494         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
52495         and setfsgid.
52496
52497 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
52498
52499         * configure.in: Remove i386 configure warning. Remove i386 case.
52500         * configure: Regenerate.
52501         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
52502         Add example to error message.
52503         * sysdeps/i386/configure: Regenerate.
52504
52505 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52506
52507         * benchtests/Makefile (bench): Add cos, tan, slowcos and
52508         slowtan.
52509         * benchtests/cos-inputs: New file.
52510         * benchtests/slowcos-inputs: New file.
52511         * benchtests/slowcos.c: New file.
52512         * benchtests/slowtan-inputs: New file.
52513         * benchtests/slowtan.c: New file.
52514         * benchtests/tan-inputs: New file.
52515
52516 2013-04-16  Roland McGrath  <roland@hack.frob.com>
52517
52518         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
52519         considered kosher.
52520
52521 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52522
52523         * benchtests/Makefile: Include cppflags-iterator.mk to add
52524         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
52525
52526         * Makefile.in (bench-clean): New target.
52527         * benchtests/Makefile (bench-clean): Likewise.
52528
52529 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
52530
52531         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
52532
52533 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
52534
52535         * stdio-common/tstdiomisc.c: Fix coding-style violation.
52536
52537 2013-04-15  Andreas Schwab  <schwab@suse.de>
52538
52539         * nscd/grpcache.c (cache_addgr): Properly check for short write.
52540         * nscd/initgrcache.c (addinitgroupsX): Likewise.
52541         * nscd/pwdcache.c (cache_addpw): Likewise.
52542         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
52543         more than recsize.
52544
52545 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
52546
52547         * benchtests/Makefile (bench): Write all output to
52548         bench-out.tmp together.
52549
52550 2013-04-15  Andreas Schwab  <schwab@suse.de>
52551
52552         * nscd/nscd.c (main): Don't fork again after closing files.
52553
52554 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
52555
52556         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
52557
52558         * benchtests/Rules (bench-deps): Collect dependencies into a
52559         single variable.  Add Makefile to dependencies.
52560         ($(objpfx)bench-%.c): Depend on bench-deps.
52561
52562 2013-04-12  Roland McGrath  <roland@hack.frob.com>
52563             Xavier Roche  <roche+kml2@exalead.com>
52564
52565         [BZ #15361]
52566         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
52567         just that it's a file descriptor.
52568         * manual/llio.texi (Synchronizing AIO Operations): Update description
52569         for EBADF error from aio_fsync.
52570
52571 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
52572
52573         * Rules (bench): Move target definition...
52574         * benchtests/Makefile: ... here.
52575
52576 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
52577
52578         * math/libm-test.inc (cos_test): Fix PI/2 test.
52579         (sincos_test): Likewise.
52580         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
52581         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
52582
52583 2013-04-11  Andreas Schwab  <schwab@suse.de>
52584
52585         [BZ #13988]
52586         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
52587         accept exponent character only when digits were seen.
52588         * stdio-common/Makefile (tests): Add bug26.
52589         * stdio-common/bug26.c: New file.
52590
52591         [BZ #14293]
52592         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
52593         non-freeable.
52594
52595 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52596
52597         * Makeconfig (rtld-prefix): Define built linker prefix.
52598         * Rules (run-bench): Use it.
52599         * math/Makefile (run-regen-ulps): Likewise.
52600
52601         * Rules (bench): Remove eval.
52602
52603 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52604             Roland McGrath  <roland@hack.frob.com>
52605             Ondrej Bilka  <neleai@seznam.cz>
52606
52607         [BZ #15346]
52608         * time/getdate.c: Include ctype.h and alloca.h.
52609         (__getdate_r): Trim leading and trailing spaces of input.
52610         * time/tst-getdate.c (tests): Add tests with leading and
52611         trailing spaces.
52612
52613 2013-04-08  Roland McGrath  <roland@hack.frob.com>
52614
52615         [BZ #14280]
52616         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
52617         when computing value.
52618
52619 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
52620
52621         * math/README.libm-test (How can I generate "libm-test-ulps"?):
52622         Use testrun.sh to run libm tests.
52623
52624         [BZ #15309]
52625         * elf/dl-open.c (dl_open_worker): memset all of seen array.
52626
52627 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
52628
52629         [BZ #15264]
52630         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
52631
52632 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
52633
52634         * Makefile.in (regen-ulps): New target.
52635         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
52636         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
52637         [ifneq (no,$(PERL)] (regen-ulps): New target.
52638         [ifeq (no,$(PERL)] (regen-ulps): New target.
52639         * math/libm-test.inc (ulps_file_name): Define.
52640         (output_dir): New variable.
52641         (options): Add "output-dir" option.
52642         (parse_opt): Handle 'o' case.
52643         (main): If output_dir is non-NULL use it as a prefix
52644         otherwise use "".
52645         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
52646
52647 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
52648
52649         [BZ #10060, #10062]
52650         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
52651         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
52652         fail configure if __sync_val_compare_and_swap is not inlined.
52653         * sysdeps/i386/configure: Regenerate.
52654         * configure.in: Build for i686 when configured for i386.
52655         * configure: Regenerate.
52656         * README: Remove i386 reference.
52657
52658 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
52659
52660         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
52661         * sysdeps/s390/s390-64/sysdep.h: Likewise.
52662
52663 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
52664
52665         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
52666         (lmsnanval): New variables.
52667         (F): Add conversion tests.
52668         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
52669         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
52670
52671         * stdio-common/tstdiomisc.c (F): Properly collect individual
52672         tests' results.
52673
52674         [BZ #14686, #15336]
52675         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
52676         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
52677         Instead, use input NaN values or generate a qNaN by arithmetic
52678         operation.  Also fix bugs to comply with the standard.
52679         * math/libm-test.inc (remainder_test): Add more tests.
52680
52681         [BZ #15335, #15342]
52682         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
52683         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
52684         input NaN values or generate a qNaN by arithmetic operation.
52685
52686         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
52687         unreachable code.
52688
52689         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
52690         definitions.
52691
52692 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
52693
52694         [BZ #14478]
52695         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
52696         underflowed result.
52697         * math/s_cexpf.c (__cexpf): Likewise.
52698         * math/s_cexpl.c (__cexpl): Likewise.
52699         * math/libm-test.inc (cexp_test): Add more tests.
52700
52701 2013-04-03  Andreas Schwab  <schwab@suse.de>
52702
52703         [BZ #15330]
52704         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
52705         order arrays from heap if bigger than alloca cutoff.
52706
52707 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
52708
52709         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
52710         (SNAN_TESTS_double): Refer to GCC PR56831.
52711         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
52712         GCC PR56828.
52713
52714 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
52715
52716         * Rules (bench): Move bench.out after the run is complete.
52717
52718         * Rules (bench): Echo currently running benchmark.
52719
52720         * benchtests/Makefile (bench): Add atan and slowatan.
52721         * benchtests/atan-inputs: New file.
52722         * benchtests/slowatan-inputs: New file.
52723         * benchtests/slowatan.c: New file.
52724
52725         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
52726         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
52727         its value.
52728
52729         [BZ #15305]
52730         * sysdeps/unix/sysv/linux/kernel-features.h
52731         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
52732         __ASSUME_XFS_RESTRICTED_CHOWN.
52733         * sysdeps/unix/sysv/linux/pathconf.c
52734         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
52735         Save and restore errno.
52736
52737 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
52738
52739         [BZ #15327]
52740         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
52741         arguments using __kernel_casinh.
52742         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
52743         arguments using __kernel_casinhf.
52744         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
52745         arguments using __kernel_casinhl.
52746         * math/libm-test.inc (cacosh_test): Add more tests.
52747         * sysdeps/i386/fpu/libm-test-ulps: Update.
52748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52749
52750 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
52751
52752         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
52753         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
52754
52755         * bench/Makefile (bench): Add sin and slowsin.
52756         * benchtests/sin-inputs: New file.
52757         * benchtests/slowsin-inputs: New file.
52758         * benchtests/slowsin.c: New file.
52759
52760         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
52761         (bench): Add slowexp and slowpow.
52762         (exp-ITER): Increase iterations.
52763         (pow-ITER): Likewise.
52764         * benchtests/exp-inputs: Change input.
52765         * benchtests/pow-inputs: Likewise.
52766         * benchtests/slowexp-inputs: New file.
52767         * benchtests/slowexp.c: New file.
52768         * benchtests/slowpow-inputs: New file.
52769         * benchtests/slowpow.c: New file.
52770
52771 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52772
52773         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
52774         instructions.
52775         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
52776         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
52777         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
52778         * benchtests/Makefile: Add rint benchtest.
52779         * benchtests/rint-inputs: Input for rint benchtest.
52780
52781 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
52782
52783         * Versions.def (libm): Add GLIBC_2.18.
52784         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
52785         hidden libm prototypes.
52786         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
52787         * math/Makefile (libm-calls): Add s_issignaling.
52788         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
52789         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
52790         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
52791         declaration.
52792         * math/math.h [__USE_GNU] (issignaling): New macro.
52793         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
52794         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
52795         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
52796         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
52797         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
52798         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
52799         * manual/arith.texi (issignaling): New section.
52800         * manual/libm-err-tab.pl (@all_functions): Update comment.
52801         * math/gen-libm-test.pl (parse_args): Apply special handling for
52802         issignaling.
52803         * math/libm-test.inc (print_float, issignaling_test): New
52804         functions.
52805         (check_float_internal): Add issignaling checks.
52806         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
52807         default definition.
52808         * sysdeps/powerpc/math-tests.h: New file.
52809         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
52810         tests.
52811         * math/test-snan.c (TEST_FUNC): Likewise.
52812
52813 2013-03-30  David S. Miller  <davem@davemloft.net>
52814
52815         * po/de.po: Update from translation team.
52816
52817 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
52818
52819         [BZ #10357]
52820         * math/k_casinh.c (__kernel_casinh): Handle arguments with
52821         imaginary part less than 1.0 and real part less than 0.5
52822         specially.
52823         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52824         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52825         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
52826         (cacos_test): Add more tests.
52827         (casin_test): Likewise.
52828         (casinh_test): Likewise.
52829         * sysdeps/i386/fpu/libm-test-ulps: Update.
52830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52831
52832 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
52833
52834         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
52835         ONE with its value.
52836
52837         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
52838         (__pow_mp): Replace ONE and MONE with their values.
52839         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
52840         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
52841         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
52842         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
52843         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
52844         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
52845
52846         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
52847
52848         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
52849         (__pow_mp): Replace ZERO and MZERO with their values.
52850         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
52851         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
52852         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
52853         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
52854         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
52855         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
52856         (__sqr): Likewise.
52857
52858         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
52859
52860         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
52861
52862 2013-03-28  Roland McGrath  <roland@hack.frob.com>
52863
52864         * include/stdlib.h [!SHARED] (__call_tls_dtors):
52865         Declare with __attribute__ ((weak)).
52866         * stdlib/exit.c (__libc_atexit) [!SHARED]:
52867         Call __call_tls_dtors only if it's not NULL.
52868
52869 2013-03-28  Roland McGrath  <roland@hack.frob.com>
52870
52871         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
52872         didn't do it already, then set _dl_phdr and _dl_phnum based on the
52873         magic __ehdr_start linker symbol if it's defined.
52874         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
52875         them up here if it was already done.
52876
52877         * elf/dl-support.c (_dl_phdr): Make pointer to const.
52878         (_dl_aux_init): Use const in cast when setting it.
52879         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
52880         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
52881         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
52882
52883         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
52884         Declare them here.
52885         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
52886         * csu/libc-tls.c: Nor here.
52887         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
52888
52889         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
52890         (__libc_message): Never call vsyslog.
52891
52892 2013-03-28  Alan Modra  <amodra@gmail.com>
52893
52894         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
52895         Define as empty.
52896         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
52897         Likewise.
52898
52899 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52900
52901         [BZ #15214]
52902         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
52903         underflow.
52904         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52905
52906 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
52907
52908         [BZ #15304]
52909         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
52910         Don't add gid passed as argument.
52911
52912         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
52913
52914 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
52915
52916         [BZ #15307]
52917         * math/k_casinh.c (__kernel_casinh): Handle arguments with
52918         imaginary part between 1.0 and 1.5 and real part less than 0.5
52919         specially.
52920         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52921         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52922         * math/libm-test.inc (cacos_test): Add more tests.
52923         (casin_test): Likewise.
52924         (casinh_test): Likewise.
52925         * sysdeps/i386/fpu/libm-test-ulps: Update.
52926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52927
52928 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
52929
52930         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
52931         constants.
52932         (norm): Likewise.
52933         (denorm): Likewise.
52934         (__dbl_mp): Likewise.
52935         (add_magnitudes): Likewise.
52936         (sub_magnitudes): Likewise.
52937         (__add): Likewise.
52938         (__sub): Likewise.
52939         (__mul): Likewise.
52940         (__sqr): Likewise.
52941         (__inv): Likewise.
52942         (__dvd): Likewise.
52943
52944         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
52945         commented code.
52946         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
52947         (__dubcos): Likewise.
52948         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
52949         (__ieee754_acos): Likewise.
52950         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
52951         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
52952         (__exp1): Likewise.
52953         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
52954         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
52955         (log1): Likewise.
52956         (my_log2): Likewise.
52957         (checkint): Likewise.
52958         * sysdeps/ieee754/dbl-64/e_remainder.c
52959         (__ieee754_remainder): Likewise.
52960         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
52961         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
52962         (bsloww): Likewise.
52963         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
52964
52965         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
52966         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
52967         MANTISSA_STORE_T to store computations on mantissa.  Use
52968         macros for rounding and division.
52969         (denorm): Likewise.
52970         (__dbl_mp): Likewise.
52971         (add_magnitudes): Likewise.
52972         (sub_magnitudes): Likewise.
52973         (__mul): Likewise.
52974         (__sqr): Likewise.
52975         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
52976         powers of two in terms of TWOPOW macro.
52977         (mp_no): Make type of mantissa as MANTISSA_T.
52978         [!RADIXI]: Define RADIXI.
52979         [!TWO52]: Define TWO52.
52980         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
52981
52982 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52983
52984         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
52985         llroundl symbol when building for PPC32.
52986
52987 2013-03-24  Mark H Weaver  <mhw@netris.org>
52988
52989         * manual/arith.texi (Normalization Functions): Fix prototypes for
52990         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
52991
52992 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52993
52994         [BZ #13889]
52995         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
52996         high value to check if expl overflow.
52997         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
52998         to check for underflow and overflow.
52999         * math/libm-test.inc: Add exp test.
53000
53001 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
53002
53003         [BZ #11120]
53004         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
53005         with NOT_IN_libc.
53006
53007 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53008
53009         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
53010         symbol.
53011
53012 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
53013
53014         * math/gen-libm-test.pl (parse_args, special_functions): Properly
53015         wrap blocks consisting of several statements.
53016
53017         * sysdeps/generic/math-tests.h: New file.
53018         * sysdeps/i386/fpu/math-tests.h: Likewise.
53019         * math/test-snan.c: Include it.
53020         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
53021
53022 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
53023
53024         [BZ #15285]
53025         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
53026         (__ieee754_j0l): Do not improve calculations using cos of twice
53027         input for inputs above LDBL_MAX / 2.0L.
53028         (__ieee754_y0l): Likewise.
53029         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
53030         (__ieee754_j1l): Do not improve calculations using cos of twice
53031         input for inputs above LDBL_MAX / 2.0L.
53032         (__ieee754_y1l): Likewise.
53033         * math/libm-test.inc (j0_test): Add another test.
53034         (j1_test): Likewise.
53035         (y0_test): Likewise.
53036         (y1_test): Likewise.
53037         * sysdeps/i386/fpu/libm-test-ulps: Update.
53038
53039 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53040
53041         * Rules ($(objpfx)bench-%.c): Include code from a C source
53042         file.
53043
53044 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
53045
53046         [BZ #15287]
53047         * math/k_casinh.c (__kernel_casinh): Handle arguments with
53048         imaginary part 1.0 and real part less than 0.5 specially.
53049         * math/k_casinhf.c (__kernel_casinhf): Likewise.
53050         * math/k_casinhl.c (__kernel_casinhl): Likewise.
53051         * math/libm-test.inc (cacos_test): Add more tests.
53052         (casin_test): Likewise.
53053         (casinh_test): Likewise.
53054         * sysdeps/i386/fpu/libm-test-ulps: Update.
53055         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53056
53057 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53058
53059         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
53060         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
53061
53062 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
53063
53064         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
53065         * config.make.in (config-cflags-sse4): Remove variable.
53066         (config-cflags-avx): Likewise.
53067         (config-cflags-sse2avx): Likewise.
53068         (config-cflags-novzeroupper): Likewise.
53069         (config-asflags-i686): Likewise.
53070         (have-mfma4): Likewise.
53071         (have-as-vis3): Likewise.
53072         (MIG): Likewise.
53073         * configure.in (MIG): Do not AC_SUBST.
53074         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
53075         (libc_cv_cc_sse4): Do not AC_SUBST.
53076         (libc_cv_cc_avx): Likewise.
53077         (libc_cv_cc_sse2avx): Likewise.
53078         (libc_cv_cc_novzeroupper): Likewise.
53079         (libc_cv_cc_fma4): Likewise.
53080         (libc_cv_as_i686): Likewise.
53081         (libc_cv_sparc_as_vis3): Likewise.
53082         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
53083         LIBC_CONFIG_VAR.
53084         (config-asflags-i686): Likewise.
53085         (config-cflags-avx): Likewise.
53086         (config-cflags-sse2avx): Likewise.
53087         (have-mfma4): Likewise.
53088         (config-cflags-novzeroupper): Likewise.
53089         * sysdeps/mach/configure.in (MIG): Likewise.
53090         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
53091         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
53092         LIBC_CONFIG_VAR.
53093         (config-cflags-avx): Likewise.
53094         (config-cflags-sse2avx): Likewise.
53095         (have-mfma4): Likewise.
53096         (config-cflags-novzeroupper): Likewise.
53097         * configure: Regenerated.
53098         * sysdeps/i386/configure: Likewise.
53099         * sysdeps/mach/configure: Likewise.
53100         * sysdeps/sparc/configure: Likewise.
53101         * sysdeps/x86_64/configure: Likewise.
53102
53103 2013-03-20  Roland McGrath  <roland@hack.frob.com>
53104
53105         [BZ #14812]
53106         * locale/programs/localedef.c (options): Put N_ translation marker
53107         on argument names, not just descriptions.
53108
53109 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53110
53111         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
53112
53113 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
53114
53115         [BZ #14176]
53116         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
53117
53118 2013-03-19  Roland McGrath  <roland@hack.frob.com>
53119
53120         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
53121         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
53122         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
53123         [!BEFORE_ABORT] (before_abort): New function.
53124         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
53125         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
53126         (writev_for_fatal): New function.
53127         (WRITEV_FOR_FATAL): New macro; call that.
53128         (backtrace_and_maps): New function.
53129         (BEFORE_ABORT): New macro; call that.
53130         (struct str_list): Type removed.
53131         (__libc_message, __libc_fatal): Functions removed.
53132         Include <sysdeps/posix/libc_fatal.c> instead.
53133
53134 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
53135
53136         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
53137         constants.
53138         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
53139         double constants.
53140
53141 2013-03-19  Andreas Schwab  <schwab@suse.de>
53142
53143         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
53144         * sysdeps/gnu/configure: Regenerate.
53145
53146         * configure.in: Substitute libc_cv_rtlddir.
53147         * configure: Regenerate.
53148         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
53149         * Makeconfig (rtlddir, inst_rtlddir): New variables.
53150         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
53151         * elf/Makefile (install-others, CFLAGS-interp.c)
53152         (ldso_install, common-ldd-rewrite): Likewise.
53153         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
53154         $(inst_slibdir)/$(rtld-installed-name).
53155         * scripts/rellns-sh: Add -p option.
53156         * Makerules (make-shlib-link): Use rellns-sh to get relative name
53157         for source.
53158
53159 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
53160
53161         * manual/nptl.texi: Renamed to ...
53162         * manual/threads.texi: ... this.
53163         * manual/Makefile (chapters): Update.
53164
53165 2013-03-18  Roland McGrath  <roland@hack.frob.com>
53166
53167         [BZ #14812]
53168         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
53169         on argument names, not just descriptions.
53170         * malloc/memusagestat.c (options): Likewise.
53171         * nss/getent.c (options): Likewise.
53172
53173 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
53174
53175         [BZ #14812]
53176         * iconv/iconv_prog.c (options): Put N_ translation marker
53177         on argument names, not just descriptions.
53178         * iconv/iconvconfig.c (options): Likewise.
53179
53180 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
53181
53182         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
53183         implementation which is faster on all x86_64 architectures.
53184         Tested on AMD, Intel Nehalem, SNB, IVB.
53185         * sysdeps/x86_64/strnlen.S: Likewise.
53186
53187         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
53188         Remove all multiarch strlen and strnlen versions.
53189         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
53190         Remove strlen and strnlen related parts.
53191
53192         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
53193         Inline strlen part.
53194         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
53195
53196         * sysdeps/x86_64/multiarch/strlen.S: Remove.
53197         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
53198         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
53199         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
53200         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
53201         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
53202
53203 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
53204
53205         * manual/memory.texi (Malloc Tunable Parameters):
53206         Sort parameters alphabetically. Add comments for missing entries.
53207
53208 2013-03-17  David S. Miller  <davem@davemloft.net>
53209
53210         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53211
53212 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
53213
53214         [BZ #15283]
53215         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
53216         for arguments at most half maximum finite value.
53217         * math/libm-test.inc (j0_test): Add more tests.
53218         (j1_test): Likewise.
53219         (y0_test): Likewise.
53220         (y1_test): Likewise.
53221         * sysdeps/i386/fpu/libm-test-ulps: Update.
53222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53223
53224         [BZ #14155]
53225         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
53226         1 / x and functions P and Q for arguments above 0x1p256L.
53227         (__ieee754_y0l): Likewise.
53228         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
53229         (__ieee754_y1l): Likewise.
53230         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
53231         (j1_test): Likewise.
53232         (y0_test): Likewise.
53233         (y1_test): Likewise.
53234
53235 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
53236
53237         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
53238         variable.
53239
53240 2013-03-15  Roland McGrath  <roland@hack.frob.com>
53241
53242         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
53243         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
53244         zero since it's initialized to EXEC_PAGESIZE.
53245
53246         * sysdeps/unix/sysv/linux/ldsodefs.h
53247         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
53248         * sysdeps/generic/ldsodefs.h: ... here.
53249
53250 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
53251
53252         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
53253
53254         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
53255         math/test-snan.c.
53256         * math/test-snan.c: Renamed from
53257         sysdeps/powerpc/fpu/test-powerpc-snan.c.
53258         * math/Makefile (tests): Add test-snan.
53259         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
53260         test-powerpc-snan.
53261
53262         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
53263         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
53264         functions.
53265         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
53266         __builtin_nan family of functions.
53267         * math/libm-test.inc (initialize): Initialize qnan_value with
53268         __builtin_nan family of functions.
53269         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
53270         Remove variables.
53271         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
53272         Remove functions.
53273         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
53274         storage class.  Initialize qNaN_var and sNaN_var with
53275         __builtin_nan and __builtin_nans families of functions,
53276         respectively.
53277
53278         * math/libm-test.inc (acosh_test): Also test with qNaN input.
53279         (sqrt_test): Remove duplicate test with qNaN input.
53280         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
53281         (round_test, signbit_test, significand_test): Note missing +/-Inf
53282         as well as qNaN tests.
53283
53284         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
53285         qNaN_var.  Fix a few strings, too.
53286         * math/libm-test.inc (nan_value): Rename to qnan_value.
53287         * math/gen-libm-test.pl (%beautify): Adjust to that.
53288         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
53289         * math/test-misc.c (main): Likewise.
53290         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
53291         to __qnan_bytes, and __qnan_union, respectively.
53292         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
53293         Likewise.
53294         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
53295         and lqnanval, respectively.
53296         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
53297         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
53298         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
53299         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
53300
53301         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
53302         * math/test-misc.c (main) [__x86_64__]: Enable test for long
53303         doubles.
53304
53305         * math/test-misc.c (main): Fix copy'n'pastos.
53306         * misc/tst-efgcvt.c (special): Likewise.
53307
53308         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
53309         Remove declarations.
53310
53311 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
53312
53313         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
53314         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
53315         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
53316         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
53317
53318 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53319
53320         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
53321         macro to return vdso values correctly in IFUNC implementations.
53322         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
53323         Optimization by using IFUNC.
53324
53325 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
53326             Richard Henderson  <rth@redhat.com>
53327             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
53328
53329         * Makefile.in (bench): New target.
53330         * NEWS: Mention the benchmark framework.
53331         * Rules (bench): Likewise.
53332         (binaries-bench): Generate binaries for functions to
53333         benchmark.
53334         * benchtests/Makefile: New makefile for benchmark tests.
53335         * benchtests/bench-skeleton.c: New skeleton file for benchmark
53336         programs.
53337         * benchtests/exp-inputs: New input file for EXP function.
53338         * benchtests/pow-inputs: New input file for POW function.
53339         * scripts/bench.pl: New script to generate source files for
53340         benchmark programs.
53341
53342 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
53343
53344         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
53345         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
53346         computations on mantissa.  Use macros for rounding and
53347         division.
53348         (denorm): Likewise.
53349         (__dbl_mp): Likewise.
53350         (add_magnitudes): Likewise.
53351         (sub_magnitudes): Likewise.
53352         (__mul): Likewise.
53353         (__sqr): Likewise.
53354         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
53355         powers of two in terms of TWOPOW macro.
53356         (mp_no): Make type of mantissa as MANTISSA_T.
53357         [!RADIXI]: Define RADIXI.
53358         [!TWO52]: Define TWO52.
53359         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
53360
53361         * manual/nptl.texi (cindex): Modify threads to pthreads.
53362
53363 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
53364
53365         * sysdeps/x86_64/preconfigure: Regenerated.
53366
53367 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
53368
53369         [BZ #14155]
53370         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
53371         0x1p28 and above.
53372         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
53373         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
53374         0x1p28 and above.
53375         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
53376         * math/libm-test.inc (j0_test): Do not allow one spurious
53377         underflow exception.
53378         (y1_test): Likewise.
53379
53380 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53381
53382         * manual/Makefile (chapters): Add nptl.
53383         * manual/debug.texi (Debugging Support): Add link to Threads
53384         chapter.
53385         * manual/nptl.texi: New file.
53386
53387         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
53388
53389 2013-03-14  Petr Baudis  <pasky@ucw.cz>
53390
53391         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
53392         for non-NULL pointer before the memory validity test. Pointed
53393         out by Holger Brunck <holger.brunck@keymile.com>.
53394
53395 2013-03-13  Andreas Schwab  <schwab@suse.de>
53396
53397         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
53398         instead of .os.
53399
53400 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
53401
53402         * timezone/zic.c: Update from tzcode 2013b.
53403
53404 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
53405
53406         * manual/install.texi (Configuring and compiling):
53407         Mention i686 and i586.
53408         * INSTALL: Regenerate.
53409
53410 2013-03-12  Roland McGrath  <roland@hack.frob.com>
53411
53412         * sysdeps/init_array/elf-init.c: New file.
53413         * csu/elf-init.c
53414         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
53415         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
53416
53417         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
53418         __gmon_start__ as global, but as static with a .preinit_array pointer.
53419         * sysdeps/init_array/gmon-start.c: New file.  Use that.
53420         * sysdeps/init_array/crti.S: New file, empty except for comments.
53421         * sysdeps/init_array/crtn.S: Likewise.
53422
53423 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
53424
53425         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
53426         definining bcopy.
53427         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53428         Remove Prefer_SSE_for_memop.
53429         * sysdeps/x86_64/multiarch/init-arch.h: Remove
53430         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
53431         HAS_PREFER_SSE_FOR_MEMOP.
53432         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
53433         memset-x86-64.
53434         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
53435         Remove bzero, memset ifunc support.
53436         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
53437         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
53438         * sysdeps/x86_64/multiarch/memset.S: Likewise.
53439         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
53440
53441 2013-03-11  Andreas Schwab  <schwab@suse.de>
53442
53443         [BZ #15234]
53444         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
53445         by SHLIB_COMPAT.
53446         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
53447         (GLIBC_2.16): Remove pthread_atfork.
53448
53449 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
53450
53451         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
53452         (ptestcases.h): Likewise.
53453
53454 2013-03-08  Roland McGrath  <roland@hack.frob.com>
53455
53456         * Makeconfig ($(common-objpfx)config.status): Depend on
53457         sysdeps/*/preconfigure{,.in} too.
53458
53459 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
53460
53461         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
53462         (__free_hook): Use void * instead of __malloc_ptr_t.
53463         (__malloc_hook): Likewise.
53464         (__realloc_hook): Likewise.
53465         (__memalign_hook): Likewise.
53466         (__after_morecore_hook): Likewise.
53467         * malloc/arena.c (save_malloc_hook): Likewise.
53468         (save_free_hook): Likewise.
53469         * malloc/hooks.c (malloc_hook_ini): Likewise.
53470         (realloc_hook_ini): Likewise.
53471         (memalign_hook_ini): Likewise.
53472         * malloc/malloc.c (malloc_hook_ini): Likewise.
53473         (realloc_hook_ini): Likewise.
53474         (memalign_hook_ini): Likewise.
53475         (__free_hook): Likewise.
53476         (__malloc_hook): Likewise.
53477         (__realloc_hook): Likewise.
53478         (__memalign_hook): Likewise.
53479         (__libc_malloc): Likewise.
53480         (__libc_free): Likewise.
53481         (__libc_realloc): Likewise.
53482         (__libc_memalign): Likewise.
53483         (__libc_valloc): Likewise.
53484         (__libc_pvalloc): Likewise.
53485         (__libc_calloc): Likewise.
53486         (__posix_memalign): Likewise.
53487         * malloc/morecore.c (__sbrk): Likewise.
53488         (__default_morecore): Likewise.
53489
53490         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
53491
53492         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
53493         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
53494         __malloc_ptrdiff_t.
53495
53496         * malloc/malloc.h (__malloc_size_t): Remove macro.
53497         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
53498         __malloc_size_t.
53499         (old_memalign_hook): Likewise.
53500         (old_realloc_hook): Likewise.
53501         (struct hdr): Likewise.
53502         (flood): Likewise.
53503         (mallochook): Likewise.
53504         (memalignhook): Likewise.
53505         (reallochook): Likewise.
53506         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
53507         (tr_old_realloc_hook): Likewise.
53508         (tr_old_memalign_hook): Likewise.
53509         (tr_mallochook): Likewise.
53510         (tr_reallochook): Likewise.
53511         (tr_memalignhook): Likewise.
53512
53513 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53514
53515         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
53516         default_ldbl_pack and using as default implementation.
53517         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
53518         implementation.
53519         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
53520         redundant definition.
53521         (ldbl_insert_mantissa): Likewise.
53522         (ldbl_canonicalize): Likewise.
53523         (ldbl_nearbyint): Likewise.
53524         (ldbl_pack): Rename to ldbl_pack_ppc.
53525         (ldbl_unpack): Rename to ldbl_unpack_ppc.
53526         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
53527         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
53528
53529 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53530
53531         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
53532         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
53533         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
53534         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
53535         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
53536         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
53537         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
53538         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
53539
53540 2013-03-07  Andreas Jaeger  <aj@suse.de>
53541
53542         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
53543         bits/mman-linux.h.
53544
53545 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
53546
53547         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
53548         Include mpa.h and declare __MPEXP.
53549         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
53550         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
53551         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
53552         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
53553         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
53554         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
53555         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
53556
53557         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
53558         (__slowpow): Use long double EXPL and LOGL functions to
53559         compute POW.
53560         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
53561         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
53562         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
53563         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
53564         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
53565         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
53566
53567         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
53568         intermediate variable to calculate exponent.
53569         (__sqr): Likewise.
53570         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
53571         Likewise.
53572         (__sqr): Likewise.
53573
53574         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
53575         [!NO__SQR]: Define __sqr.
53576         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
53577         and NO__SQR.  Remove all code except __mul and __sqr.  Include
53578         sysdeps/ieee754/dbl-64/mpa.c.
53579         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53580
53581         [BZ #12723]
53582         * posix/Makefile (tests): Add tst-pathconf.
53583         * posix/tst-pathconf.c: New test case.
53584         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
53585         _PC_PIPE_BUF.
53586         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
53587
53588 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
53589
53590         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
53591
53592 2013-03-06  Andreas Jaeger  <aj@suse.de>
53593
53594         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
53595         definition via __MAP_ANONYMOUS.
53596
53597         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
53598         it's not part of Linux headers.
53599
53600         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
53601         (MAP_HUGE_MASK): Define.
53602
53603         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
53604         Define.
53605         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
53606         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
53607         Define.
53608         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
53609         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
53610         Define.
53611         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
53612         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
53613         Define.
53614         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
53615
53616         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
53617         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
53618         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
53619         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
53620         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
53621         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
53622
53623         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
53624         Handle f2fs.
53625
53626         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
53627         Handle f2fs and efivarfs.
53628
53629         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
53630         f2fs.
53631
53632         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
53633         (EFIVARFS_MAGIC): Add.
53634         (F2FS_LINK_MAX): Add.
53635
53636 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
53637
53638         * stdio-common/vfprintf.c: Replace __builtin_expect with
53639         __glibc_unlikely.
53640
53641 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
53642
53643         [BZ #13550]
53644         * sysdeps/generic/bp-sym.h: Remove file.
53645         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
53646         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
53647         <bp-sym.h> and <bp-asm.h>.
53648         (__longjmp): Don't use BP_SYM.
53649         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
53650         and <bp-asm.h>.
53651         (memcpy): Don't use BP_SYM.
53652         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
53653         <bp-sym.h> and <bp-asm.h>.
53654         (memcpy): Don't use BP_SYM.
53655         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
53656         <bp-asm.h>.
53657         (memcpy): Don't use BP_SYM.
53658         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
53659         <bp-asm.h>.
53660         (memset): Don't use BP_SYM.
53661         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
53662         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
53663         (__bzero): Don't use BP_SYM.
53664         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
53665         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
53666         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
53667         <bp-sym.h> and <bp-asm.h>.
53668         (memcmp): Don't use BP_SYM.  Remove comment about bounded
53669         pointers.
53670         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
53671         <bp-sym.h> and <bp-asm.h>.
53672         (memcpy): Don't use BP_SYM.
53673         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
53674         <bp-sym.h> and <bp-asm.h>.
53675         (memset): Don't use BP_SYM.
53676         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
53677         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
53678         (__bzero): Don't use BP_SYM.
53679         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
53680         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
53681         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
53682         <bp-sym.h> and <bp-asm.h>.
53683         (strncmp): Don't use BP_SYM.  Remove comment about bounded
53684         pointers.
53685         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
53686         <bp-sym.h> and <bp-asm.h>.
53687         (memcpy): Don't use BP_SYM.
53688         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
53689         <bp-sym.h> and <bp-asm.h>.
53690         (memset): Don't use BP_SYM.
53691         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
53692         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
53693         (__bzero): Don't use BP_SYM.
53694         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
53695         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
53696         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
53697         <bp-sym.h> and <bp-asm.h>.
53698         (__memchr): Don't use BP_SYM.
53699         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
53700         <bp-sym.h> and <bp-asm.h>.
53701         (memcmp): Don't use BP_SYM.  Remove comment about bounded
53702         pointers.
53703         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
53704         <bp-sym.h> and <bp-asm.h>.
53705         (memcpy): Don't use BP_SYM.
53706         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
53707         <bp-sym.h> and <bp-asm.h>.
53708         (__mempcpy): Don't use BP_SYM.
53709         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
53710         <bp-sym.h> and <bp-asm.h>.
53711         (__memrchr): Don't use BP_SYM.
53712         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
53713         <bp-sym.h> and <bp-asm.h>.
53714         (memset): Don't use BP_SYM.
53715         (__bzero): Likewise.
53716         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
53717         <bp-sym.h> and <bp-asm.h>.
53718         (__rawmemchr): Don't use BP_SYM.
53719         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
53720         <bp-sym.h> and <bp-asm.h>.
53721         (__STRCMP): Don't use BP_SYM.
53722         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
53723         <bp-sym.h> and <bp-asm.h>.
53724         (strchr): Don't use BP_SYM.
53725         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
53726         <bp-sym.h> and <bp-asm.h>.
53727         (__strchrnul): Don't use BP_SYM.
53728         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
53729         <bp-sym.h> and <bp-asm.h>.
53730         (strlen): Don't use BP_SYM.
53731         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
53732         <bp-sym.h> and <bp-asm.h>.
53733         (strncmp): Don't use BP_SYM.  Remove comment about bounded
53734         pointers.
53735         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
53736         <bp-sym.h> and <bp-asm.h>.
53737         (__strnlen): Don't use BP_SYM.
53738         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
53739         <bp-sym.h> and <bp-asm.h>.
53740         (__GI__setjmp): Don't use BP_SYM.
53741         (_setjmp): Likewise.
53742         (__sigsetjmp): Likewise.
53743         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
53744         (L(start_addresses)): Don't use BP_SYM.
53745         (_start): Likewise.
53746         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
53747         <bp-asm.h>.
53748         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
53749         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
53750         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
53751         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
53752         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
53753         <bp-asm.h>.
53754         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
53755         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
53756         about bounded pointers.
53757         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
53758         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
53759         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
53760         <bp-asm.h>.
53761         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
53762         about bounded pointers.  Remove GKM FIXME comments.
53763         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
53764         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
53765         <bp-asm.h>.
53766         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
53767         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
53768         Remove GKM FIXME comments.
53769         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
53770         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
53771         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
53772         <bp-asm.h>.
53773         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
53774         about bounded pointers.  Remove GKM FIXME comment.
53775         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
53776         and <bp-asm.h>.
53777         (strncmp): Don't use BP_SYM.  Remove comment about bounded
53778         pointers.
53779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
53780         <bp-sym.h> and <bp-asm.h>.
53781         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
53782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
53783         <bp-sym.h> and <bp-asm.h>.
53784         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
53785         comment.
53786
53787 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
53788
53789         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
53790         call free(NULL).
53791
53792 2013-03-05  David S. Miller  <davem@davemloft.net>
53793
53794         * po/es.po: Update from translation team.
53795
53796 2013-03-05  Andreas Jaeger  <aj@suse.de>
53797
53798         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
53799         <bits/mman-linux.h>.
53800         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
53801         is fine.
53802         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
53803         <bits/mman-linux.h> to end of file.
53804         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
53805         is fine.
53806         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
53807         <bits/mman-linux.h> to end of file.
53808         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
53809         is fine.
53810         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
53811         <bits/mman-linux.h> to end of file.
53812
53813         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
53814         (MCL_CURRENT, MCL_FUTURE): Define here.
53815
53816 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53817
53818         [BZ #15232]
53819         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
53820         attribute_hidden.
53821         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
53822
53823 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53824
53825         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
53826         fourth parameter needed for rt_sigprocmask syscall.
53827         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
53828         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
53829         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
53830         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
53831         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
53832         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
53833
53834 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
53835
53836         [BZ #13550]
53837         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
53838         comment about bounded pointers.
53839         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
53840         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
53841
53842 2013-03-04  Andreas Jaeger  <aj@suse.de>
53843
53844         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
53845         common definitions.
53846
53847         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
53848         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
53849         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
53850         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
53851         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
53852         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
53853
53854 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53855
53856         [BZ #15055]
53857         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
53858         __ieee754_sqrl instead of __sqrl.
53859
53860 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
53861
53862         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
53863         * sysdeps/powerpc/fpu_control.h: ... here.
53864         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
53865         * sysdeps/powerpc/bits/fenvinline.h: ... here.
53866         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
53867         * sysdeps/powerpc/bits/mathinline.h: ... here.
53868
53869 2013-03-01  Roland McGrath  <roland@hack.frob.com>
53870
53871         * elf/dl-hwcaps.c (_dl_important_hwcaps):
53872         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
53873         to just [NEED_DL_SYSINFO_DSO].
53874         * elf/dl-support.c: Likewise.
53875         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
53876         * elf/rtld.c (dl_main): Likewise.
53877         * elf/setup-vdso.h (setup_vdso): Likewise.
53878         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
53879         * sysdeps/unix/sysv/linux/dl-sysdep.c
53880         (_dl_discover_osversion): Likewise.
53881
53882 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
53883
53884         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
53885         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
53886
53887 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
53888
53889         * NEWS: Mention libm performance improvements and non-x86 PI
53890         futex support.
53891
53892         * csu/libc-start.c (__pthread_initialize_minimal): Change
53893         function arguments.
53894         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
53895
53896 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
53897
53898         [BZ #13550]
53899         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
53900         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
53901         <bp-sym.h> and <bp-asm.h>.
53902         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
53903         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
53904         and <bp-asm.h>.
53905         (memcpy): Don't use BP_SYM.
53906         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
53907         <bp-asm.h>.
53908         (__mpn_add_n): Don't use BP_SYM.
53909         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
53910         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
53911         and <bp-asm.h>.
53912         (__mpn_addmul_1): Don't use BP_SYM.
53913         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
53914         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
53915         <bp-sym.h>.
53916         (_setjmp): Don't use BP_SYM.
53917         (__novmx_setjmp): Likewise.
53918         (__GI__setjmp): Likewise.
53919         (__vmx_setjmp): Likewise.
53920         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
53921         <bp-sym.h>.
53922         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
53923         (__bzero): Don't use BP_SYM.
53924         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
53925         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
53926         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
53927         <bp-sym.h> and <bp-asm.h>.
53928         (memcpy): Don't use BP_SYM.
53929         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
53930         <bp-sym.h> and <bp-asm.h>.
53931         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
53932         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
53933         <bp-sym.h> and <bp-asm.h>.
53934         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
53935         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
53936         <bp-asm.h>.
53937         (__mpn_lshift): Don't use BP_SYM.
53938         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
53939         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
53940         <bp-asm.h>.
53941         (memset): Don't use BP_SYM.
53942         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
53943         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
53944         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
53945         <bp-asm.h>.
53946         (__mpn_mul_1): Don't use BP_SYM.
53947         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
53948         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
53949         <bp-sym.h> and <bp-asm.h>.
53950         (memcmp): Don't use BP_SYM.
53951         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
53952         <bp-sym.h> and <bp-asm.h>.
53953         (memcpy): Don't use BP_SYM.
53954         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
53955         <bp-sym.h> and <bp-asm.h>.
53956         (memset): Don't use BP_SYM.
53957         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
53958         <bp-sym.h> and <bp-asm.h>.
53959         (strncmp): Don't use BP_SYM.
53960         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
53961         <bp-sym.h> and <bp-asm.h>.
53962         (memcpy): Don't use BP_SYM.
53963         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
53964         <bp-sym.h> and <bp-asm.h>.
53965         (memset): Don't use BP_SYM.
53966         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
53967         <bp-sym.h> and <bp-asm.h>.
53968         (__memchr): Don't use BP_SYM.
53969         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
53970         <bp-sym.h> and <bp-asm.h>.
53971         (memcmp): Don't use BP_SYM.
53972         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
53973         <bp-sym.h> and <bp-asm.h>.
53974         (memcpy): Don't use BP_SYM.
53975         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
53976         <bp-sym.h> and <bp-asm.h>.
53977         (__mempcpy): Don't use BP_SYM.
53978         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
53979         <bp-sym.h> and <bp-asm.h>.
53980         (__memrchr): Don't use BP_SYM.
53981         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
53982         <bp-sym.h> and <bp-asm.h>.
53983         (memset): Don't use BP_SYM.
53984         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
53985         <bp-sym.h> and <bp-asm.h>.
53986         (__rawmemchr): Don't use BP_SYM.
53987         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
53988         <bp-sym.h> and <bp-asm.h>.
53989         (__STRCMP): Don't use BP_SYM.
53990         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
53991         <bp-sym.h> and <bp-asm.h>.
53992         (strchr): Don't use BP_SYM.
53993         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
53994         <bp-sym.h> and <bp-asm.h>.
53995         (__strchrnul): Don't use BP_SYM.
53996         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
53997         <bp-sym.h> and <bp-asm.h>.
53998         (strlen): Don't use BP_SYM.
53999         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
54000         <bp-sym.h> and <bp-asm.h>.
54001         (strncmp): Don't use BP_SYM.
54002         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
54003         <bp-sym.h> and <bp-asm.h>.
54004         (__strnlen): Don't use BP_SYM.
54005         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
54006         <bp-asm.h>.
54007         (__mpn_rshift): Don't use BP_SYM.
54008         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54009         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
54010         <bp-sym.h> and <bp-asm.h>.
54011         (__sigsetjmp): Don't use BP_SYM.
54012         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
54013         (L(start_addresses)): Don't use BP_SYM.
54014         (_start): Likewise.
54015         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
54016         <bp-asm.h>.
54017         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
54018         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
54019         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
54020         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
54021         <bp-asm.h>.
54022         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
54023         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
54024         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
54025         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
54026         <bp-asm.h>.
54027         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
54028         comments.
54029         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
54030         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
54031         <bp-asm.h>.
54032         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
54033         FIXME comments.
54034         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
54035         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
54036         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
54037         <bp-asm.h>.
54038         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
54039         comment.
54040         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
54041         and <bp-asm.h>.
54042         (strncmp): Don't use BP_SYM,
54043         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
54044         <bp-asm.h>.
54045         (__mpn_sub_n): Don't use BP_SYM.
54046         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54047         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
54048         and <bp-asm.h>.
54049         (__mpn_submul_1): Don't use BP_SYM.
54050         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
54052         <bp-sym.h> and <bp-asm.h>.
54053         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
54054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
54055         <bp-sym.h> and <bp-asm.h>.
54056         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
54057         comment.
54058
54059 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54060
54061         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
54062         Use ZK to minimize writes to Z.
54063         (sub_magnitudes): Simplify code a bit.
54064         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
54065         Use ZK to minimize writes to Z.
54066         (sub_magnitudes): Simplify code a bit.
54067
54068 2013-02-27  Roland McGrath  <roland@hack.frob.com>
54069
54070         * csu/gmon-start.c: Add special exception to license text.
54071
54072 2013-02-27  Richard Henderson  <rth@redhat.com>
54073
54074         * scripts/config.guess: Update from config.git.
54075         * scripts/config.sub: Likewise.
54076
54077 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54078
54079         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
54080
54081         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
54082
54083         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
54084
54085         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
54086
54087         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
54088
54089 2013-02-26  Roland McGrath  <roland@hack.frob.com>
54090
54091         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
54092         [$(build-shared = yes].
54093
54094 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
54095
54096         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
54097         (__mul): Reduce iterations for calculating mantissa.
54098
54099         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
54100         MPTWO.
54101         (__mpranred): Likewise.
54102
54103         [BZ #15160]
54104         * malloc/memusagestat.c (main): Draw graphs for heap and stack
54105         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
54106
54107 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54108
54109         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
54110         Define __attribute__.
54111
54112 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
54113
54114         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
54115         unused.
54116         * posix/regex_internal.h (__attribute): Remove.
54117         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
54118         (re_string_context_at): Likewise.
54119         (bitset_not): Use __attribute__ and mark function as possibly
54120         unused.
54121         (bitset_merge): Likewise.
54122         (bitset_mask): Likewise.
54123         (re_string_char_size_at): Likewise.
54124         (re_string_wchar_at): Likewise.
54125         (re_string_elem_size_at): Likewise.
54126
54127 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
54128
54129         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
54130         code.
54131         (cc32): Likewise.
54132
54133         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
54134         (__acr): Likewise.
54135         (__cpy): Likewise.
54136         (norm): Likewise.
54137         (denorm): Likewise.
54138         (__dbl_mp): Likewise.
54139         (add_magnitudes): Likewise.
54140         (sub_magnitudes): Likewise.
54141         (__mul): Likewise.
54142         (__inv): Likewise.
54143
54144         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
54145         style.
54146
54147         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
54148         style.
54149
54150         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
54151         code.
54152
54153         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
54154         up changes with default code.
54155         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
54156         Likewise.
54157
54158 2013-02-24  Allan McRae  <allan@archlinux.org>
54159
54160         * manual/socket.texi (The Internet Namespace): Order menu items
54161         to match that in the file.
54162
54163         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
54164         node listing of the info page menu.
54165
54166 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
54167
54168         [BZ #13550]
54169         * sysdeps/i386/bp-asm.h: Remove file.
54170         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
54171         (PARMS): Do not use macros from bp-asm.h.
54172         (S1): Likewise.
54173         (S2): Likewise.
54174         (SIZE): Likewise.
54175         (__mpn_add_n): Do not use BP_SYM
54176         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
54177         "bp-asm.h".
54178         (PARMS): Do not use macros from bp-asm.h.
54179         (S1): Likewise.
54180         (SIZE): Likewise.
54181         (__mpn_addmul_1): Do not use BP_SYM
54182         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
54183         "bp-asm.h".
54184         (PARMS): Do not use macros from bp-asm.h.
54185         (SIGMSK): Likewise.
54186         (_setjmp): Likewise.  Do not use BP_SYM.
54187         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
54188         "bp-asm.h".
54189         (PARMS): Do not use macros from bp-asm.h.
54190         (SIGMSK): Likewise.
54191         (setjmp): Likewise.  Do not use BP_SYM.
54192         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
54193         "bp-asm.h".
54194         (PARMS): Do not use macros from bp-asm.h.
54195         (__frexp): Do not use BP_SYM.
54196         (frexp): Likewise.
54197         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
54198         "bp-asm.h".
54199         (PARMS): Do not use macros from bp-asm.h.
54200         (__frexpf): Do not use BP_SYM.
54201         (frexpf): Likewise.
54202         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
54203         "bp-asm.h".
54204         (PARMS): Do not use macros from bp-asm.h.
54205         (__frexpl): Do not use BP_SYM.
54206         (frexpl): Likewise.
54207         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
54208         "bp-asm.h".
54209         (PARMS): Do not use macros from bp-asm.h.
54210         (__remquo): Do not use BP_SYM.
54211         (remquo): Likewise.
54212         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
54213         "bp-asm.h".
54214         (PARMS): Do not use macros from bp-asm.h.
54215         (__remquof): Do not use BP_SYM.
54216         (remquof): Likewise.
54217         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
54218         "bp-asm.h".
54219         (PARMS): Do not use macros from bp-asm.h.
54220         (__remquol): Do not use BP_SYM.
54221         (remquol): Likewise.
54222         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
54223         "bp-asm.h".
54224         (PARMS): Do not use macros from bp-asm.h.
54225         (DEST): Likewise.
54226         (SRC): Likewise.
54227         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
54228         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
54229         "bp-asm.h".
54230         (PARMS): Do not use macros from bp-asm.h.
54231         (strlen): Do not use BP_SYM.
54232         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
54233         "bp-asm.h".
54234         (PARMS): Do not use macros from bp-asm.h.
54235         (S1): Likewise.
54236         (S2): Likewise.
54237         (SIZE): Likewise.
54238         (__mpn_add_n): Do not use BP_SYM.
54239         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
54240         "bp-asm.h".
54241         (PARMS): Do not use macros from bp-asm.h.
54242         (S1): Likewise.
54243         (SIZE): Likewise.
54244         (__mpn_addmul_1): Do not use BP_SYM.
54245         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
54246         weak_alias.
54247         (bzero): Likewise.
54248         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
54249         "bp-asm.h".
54250         (PARMS): Do not use macros from bp-asm.h.
54251         (S): Likewise.
54252         (SIZE): Likewise.
54253         (__mpn_lshift): Do not use BP_SYM.
54254         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
54255         "bp-asm.h".
54256         (PARMS): Do not use macros from bp-asm.h.
54257         (DEST): Likewise.
54258         (SRC): Likewise.
54259         (LEN): Likewise.
54260         (memcpy): Likewise.  Do not use BP_SYM.
54261         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
54262         libc_hidden_def and weak_alias.
54263         (mempcpy): Do not use BP_SYM in weak_alias.
54264         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
54265         "bp-asm.h".
54266         (PARMS): Do not use macros from bp-asm.h.
54267         (DEST): Likewise.
54268         (LEN): Likewise.
54269         [!BZERO_P] (CHR): Likewise.
54270         (memset): Likewise.  Do not use BP_SYM.
54271         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
54272         "bp-asm.h".
54273         (PARMS): Do not use macros from bp-asm.h.
54274         (S1): Likewise.
54275         (SIZE): Likewise.
54276         (__mpn_mul_1): Do not use BP_SYM.
54277         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
54278         "bp-asm.h".
54279         (PARMS): Do not use macros from bp-asm.h.
54280         (S): Likewise.
54281         (SIZE): Likewise.
54282         (__mpn_rshift): Do not use BP_SYM.
54283         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
54284         "bp-asm.h".
54285         (PARMS): Do not use macros from bp-asm.h.
54286         (STR): Likewise.
54287         (CHR): Likewise.
54288         (strchr): Likewise.  Do not use BP_SYM.
54289         (index): Do not use BP_SYM in weak_alias.
54290         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
54291         "bp-asm.h".
54292         (PARMS): Do not use macros from bp-asm.h.
54293         (DEST): Likewise.
54294         (SRC): Likewise.
54295         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
54296         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
54297         "bp-asm.h".
54298         (PARMS): Do not use macros from bp-asm.h.
54299         (strlen): Do not use BP_SYM.
54300         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
54301         "bp-asm.h".
54302         (PARMS): Do not use macros from bp-asm.h.
54303         (S1): Likewise.
54304         (S2): Likewise.
54305         (SIZE): Likewise.
54306         (__mpn_sub_n): Do not use BP_SYM.
54307         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
54308         "bp-asm.h".
54309         (PARMS): Do not use macros from bp-asm.h.
54310         (S1): Likewise.
54311         (SIZE): Likewise.
54312         (__mpn_submul_1): Do not use BP_SYM.
54313         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
54314         "bp-asm.h".
54315         (PARMS): Do not use macros from bp-asm.h.
54316         (S1): Likewise.
54317         (S2): Likewise.
54318         (SIZE): Likewise.
54319         (__mpn_add_n): Do not use BP_SYM.
54320         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
54321         weak_alias.
54322         (bzero): Likewise.
54323         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
54324         "bp-asm.h".
54325         (PARMS): Do not use macros from bp-asm.h.
54326         (BLK2): Likewise.
54327         (LEN): Likewise.
54328         (memcmp): Do not use BP_SYM.
54329         (bcmp): Do not use BP_SYM in weak_alias.
54330         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
54331         "bp-asm.h".
54332         (PARMS): Do not use macros from bp-asm.h.
54333         (DEST): Likewise.
54334         (SRC): Likewise.
54335         (LEN): Likewise.
54336         (memcpy): Likewise.  Do not use BP_SYM.
54337         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
54338         "bp-asm.h".
54339         (PARMS): Do not use macros from bp-asm.h.
54340         (DEST): Likewise.
54341         (SRC): Likewise.
54342         (LEN): Likewise.
54343         (memmove): Likewise.  Do not use BP_SYM.
54344         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
54345         "bp-asm.h".
54346         (PARMS): Do not use macros from bp-asm.h.
54347         (DEST): Likewise.
54348         (SRC): Likewise.
54349         (LEN): Likewise.
54350         (__mempcpy): Likewise.  Do not use BP_SYM.
54351         (mempcpy): Do not use BP_SYM in weak_alias.
54352         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
54353         "bp-asm.h".
54354         (PARMS): Do not use macros from bp-asm.h.
54355         (DEST): Likewise.
54356         (LEN): Likewise.
54357         [!BZERO_P] (CHR): Likewise.
54358         (memset): Likewise.  Do not use BP_SYM.
54359         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
54360         "bp-asm.h".
54361         (PARMS): Do not use macros from bp-asm.h.
54362         (STR2): Likewise.
54363         (strcmp): Do not use BP_SYM.
54364         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
54365         "bp-asm.h".
54366         (PARMS): Do not use macros from bp-asm.h.
54367         (STR): Likewise.
54368         (DELIM): Likewise.
54369         [USE_AS_STRTOK_R] (SAVE): Likewise.
54370         (FUNCTION): Likewise.  Do not use BP_SYM.
54371         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
54372         aliases.
54373         (strtok_r): Likewise.
54374         (__GI___strtok_r): Likewise.
54375         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
54376         (PARMS): Do not use macros from bp-asm.h.
54377         (S): Likewise.
54378         (SIZE): Likewise.
54379         (__mpn_lshift): Do not use BP_SYM.
54380         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
54381         (PARMS): Do not use macros from bp-asm.h.
54382         (STR): Likewise.
54383         (CHR): Likewise.
54384         (__memchr): Do not use BP_SYM.
54385         (memchr): Do not use BP_SYM in weak_alias.
54386         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
54387         (PARMS): Do not use macros from bp-asm.h.
54388         (BLK2): Likewise.
54389         (LEN): Likewise.
54390         (memcmp): Do not use BP_SYM.
54391         (bcmp): Do not use BP_SYM in weak_alias.
54392         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
54393         (PARMS): Do not use macros from bp-asm.h.
54394         (S1): Likewise.
54395         (SIZE): Likewise.
54396         (__mpn_mul_1): Do not use BP_SYM.
54397         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
54398         "bp-asm.h".
54399         (PARMS): Do not use macros from bp-asm.h.
54400         (STR): Likewise.
54401         (CHR): Likewise.
54402         (__rawmemchr): Do not use BP_SYM.
54403         (rawmemchr): Do not use BP_SYM in weak_alias.
54404         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
54405         (PARMS): Do not use macros from bp-asm.h.
54406         (S): Likewise.
54407         (SIZE): Likewise.
54408         (__mpn_rshift): Do not use BP_SYM.
54409         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
54410         (PARMS): Do not use macros from bp-asm.h.
54411         (SIGMSK): Likewise.
54412         (__sigsetjmp): Likewise.  Do not use BP_SYM.
54413         * sysdeps/i386/start.S: Do not include "bp-sym.h".
54414         (_start): Do not use BP_SYM.
54415         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
54416         (PARMS): Do not use macros from bp-asm.h.
54417         (DEST): Likewise.
54418         (SRC): Likewise.
54419         (__stpcpy): Likewise.  Do not use BP_SYM.
54420         (stpcpy): Do not use BP_SYM in weak_alias.
54421         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
54422         "bp-asm.h".
54423         (PARMS): Do not use macros from bp-asm.h.
54424         (DEST): Likewise.
54425         (SRC): Likewise.
54426         (LEN): Likewise.
54427         (__stpncpy): Likewise.  Do not use BP_SYM.
54428         (stpncpy): Do not use BP_SYM in weak_alias.
54429         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
54430         (PARMS): Do not use macros from bp-asm.h.
54431         (STR): Likewise.
54432         (CHR): Likewise.
54433         (strchr): Likewise.  Do not use BP_SYM.
54434         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
54435         "bp-asm.h".
54436         (PARMS): Do not use macros from bp-asm.h.
54437         (STR): Likewise.
54438         (CHR): Likewise.
54439         (__strchrnul): Likewise.  Do not use BP_SYM.
54440         (strchrnul): Do not use BP_SYM in weak_alias.
54441         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
54442         "bp-asm.h".
54443         (PARMS): Do not use macros from bp-asm.h.
54444         (STOP): Likewise.
54445         (strcspn): Do not use BP_SYM.
54446         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
54447         "bp-asm.h".
54448         (PARMS): Do not use macros from bp-asm.h.
54449         (STR): Likewise.
54450         (STOP): Likewise.
54451         (strpbrk): Likewise.  Do not use BP_SYM.
54452         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
54453         "bp-asm.h".
54454         (PARMS): Do not use macros from bp-asm.h.
54455         (STR): Likewise.
54456         (CHR): Likewise.
54457         (strrchr): Likewise.  Do not use BP_SYM.
54458         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
54459         (PARMS): Do not use macros from bp-asm.h.
54460         (SKIP): Likewise.
54461         (strspn): Do not use BP_SYM.
54462         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
54463         (PARMS): Do not use macros from bp-asm.h.
54464         (STR): Likewise.
54465         (DELIM): Likewise.
54466         (SAVE): Likewise.
54467         (FUNCTION): Likewise.  Do not use BP_SYM.
54468         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
54469         aliases.
54470         (strtok_r): Likewise.
54471         (__GI___strtok_r): Likewise.
54472         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
54473         (PARMS): Do not use macros from bp-asm.h.
54474         (S1): Likewise.
54475         (S2): Likewise.
54476         (SIZE): Likewise.
54477         (__mpn_sub_n): Do not use BP_SYM.
54478         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
54479         "bp-asm.h".
54480         (PARMS): Do not use macros from bp-asm.h.
54481         (S1): Likewise.
54482         (SIZE): Likewise.
54483         (__mpn_submul_1): Do not use BP_SYM.
54484         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
54485         <bp-sym.h>.
54486         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
54487         and <bp-asm.h>.
54488         (PARMS): Do not use macros from bp-asm.h.
54489         (FLAGS): Likewise.
54490         (PTID): Likewise.
54491         (TLS): Likewise.
54492         (CTID): Likewise.
54493         (__clone): Do not use BP_SYM.
54494         (clone): Do not use BP_SYM in weak_alias.
54495         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
54496         and <bp-asm.h>.
54497         (PARMS): Do not use macros from bp-asm.h.
54498         (LEN): Likewise.
54499         (__mmap64): Do not use BP_SYM.
54500         (mmap64): Do not use BP_SYM in weak_alias.
54501         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
54502         <bp-sym.h> and <bp-asm.h>.
54503         (PARMS): Do not use macros from bp-asm.h.
54504         (__posix_fadvise64_l64): Do not use BP_SYM.
54505         * sysdeps/unix/sysv/linux/i386/semtimedop.S
54506         (PARMS): Do not use macros from bp-asm.h.
54507         (NSOPS): Likewise.
54508         (semtimedop): Do not use BP_SYM.
54509         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
54510         and <bp-asm.h>.
54511
54512 2013-02-21  Allan McRae  <allan@archlinux.org>
54513
54514         * manual/message.texi (Charset conversion in gettext):
54515         Move @end statement to beginning of line.
54516
54517 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
54518
54519         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
54520         static.
54521         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
54522         Likewise.
54523
54524         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
54525         (denorm): Likewise.
54526         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
54527         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
54528
54529 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54530
54531         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
54532         tail-call to the resolved function if pltexit isn't needed.
54533
54534 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
54535
54536         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
54537         or Y being zero as being unlikely.
54538         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
54539         Likewise.
54540
54541 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
54542
54543         * manual/nss.texi (System Databases and Name Service Switch):
54544         Remove frobnicate @pxref.
54545
54546 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
54547
54548         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
54549         __attribute__ ((unused)) to __attribute__ ((__unused__)).
54550
54551 2013-02-20  Petr Machata  <pmachata@redhat.com>
54552
54553         * elf/elf.h (R_ARM_TARGET1): New macro.
54554         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
54555         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
54556         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
54557         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
54558         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
54559         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
54560         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
54561         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
54562         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
54563         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
54564         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
54565         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
54566         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
54567         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
54568         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
54569         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
54570         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
54571         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
54572         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
54573         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
54574         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
54575         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
54576         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
54577         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
54578         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
54579         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
54580         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
54581         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
54582         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
54583         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
54584         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
54585         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
54586         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
54587         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
54588         (R_ARM_THM_GOT_BREL12): Likewise.
54589         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
54590         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
54591         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
54592         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
54593         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
54594         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
54595         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
54596         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
54597         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
54598
54599 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
54600
54601         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
54602         __attribute_used__ to __attribute__ ((unused)).
54603
54604 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
54605
54606         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
54607         powerpc mpa.c.
54608         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
54609         comment formatting.
54610         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
54611
54612 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
54613
54614         [BZ #13550]
54615         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
54616         Remove macro.
54617         (ENTER): Remove both macro definitions.
54618         (LEAVE): Likewise.
54619         (CHECK_BOUNDS_LOW): Likewise.
54620         (CHECK_BOUNDS_HIGH): Likewise.
54621         (CHECK_BOUNDS_BOTH): Likewise.
54622         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
54623         (RETURN_BOUNDED_POINTER): Likewise.
54624         (RETURN_NULL_BOUNDED_POINTER): Likewise.
54625         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
54626         (POP_ERRNO_LOCATION_RETURN): Likewise.
54627         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
54628         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54629         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
54630         macros.
54631         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54632         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
54633         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
54634         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
54635         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
54636         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
54637         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
54638         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
54639         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
54640         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
54641         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
54642         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
54643         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54644         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
54645         removed macros.
54646         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54647         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
54648         macros.
54649         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54650         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
54651         * sysdeps/i386/i586/memset.S (memset): Likewise.
54652         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
54653         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54654         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
54655         macros.
54656         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54657         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
54658         Change uses of L(2) to L(out).
54659         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
54660         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
54661         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
54662         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54663         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
54664         removed macros.
54665         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54666         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
54667         macros.
54668         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54669         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
54670         (RETURN): Do not use macro LEAVE.
54671         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
54672         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
54673         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
54674         * sysdeps/i386/i686/memset.S (memset): Likewise.
54675         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
54676         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
54677         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
54678         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
54679         Likewise.
54680         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
54681         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
54682         L(1_2) and L(1_3) into L(1).
54683         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
54684         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
54685         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54686         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
54687         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
54688         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
54689         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
54690         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54691         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
54692         macros.
54693         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
54694         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
54695         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
54696         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
54697         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
54698         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
54699         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
54700         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
54701         * sysdeps/i386/strcspn.S (strcspn): Likewise.
54702         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
54703         * sysdeps/i386/strrchr.S (strrchr): Likewise.
54704         * sysdeps/i386/strspn.S (strspn): Likewise.
54705         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
54706         conditional code.
54707         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
54708         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
54709         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
54710         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
54711         L(1_3) into L(1_1).
54712         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
54713         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
54714         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
54715         macros.
54716         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
54717
54718 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
54719
54720         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
54721         macro.
54722
54723 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54724
54725         * math/atest-exp.c (exp_mpn): Remove ROUND.
54726         * math/atest-exp2.c (exp_mpn): Likewise.
54727         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
54728
54729         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
54730         * stdlib/tst-tls-atexit-lib.c: Likewise.
54731         * stdlib/tst-tls-atexit.c: Likewise.
54732
54733 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
54734
54735         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
54736         and __attribute_alloc_size__.
54737
54738 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
54739
54740         * include/programs/xmalloc.h: Change __attribute_alloc_size to
54741         __attribute_alloc_size__.
54742         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
54743         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
54744
54745 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
54746
54747         * include/programs/xmalloc.h: New file.
54748         * catgets/gencat.c: Include it.
54749         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
54750         * elf/pldd.c: Likewise.
54751         * iconv/iconv_charmap.c: Likewise.
54752         * iconv/iconvconfig.c: Likewise.
54753         * iconv/strtab.c: Likewise.
54754         * locale/programs/locale.c: Likewise.
54755         * locale/programs/localedef.h: Likewise.
54756         * locale/programs/simple-hash.c: Likewise.
54757         * nscd/nscd.h: Likewise.
54758         * nss/makedb.c: Likewise.
54759         * sysdeps/generic/ldconfig.h: Likewise.
54760
54761 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
54762
54763         * Versions.def: Add GLIBC_2.18.
54764         * include/link.h (struct link_map): New member l_tls_dtor_count.
54765         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
54766         (__call_tls_dtors): Likewise.
54767         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
54768         __cxa_thread_atexit_impl.
54769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
54770         Likewise.
54771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
54772         Likewise.
54773         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
54774         Likewise.
54775         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
54776         Likewise.
54777         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
54778         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
54779         Likewise.
54780         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
54781         Likewise.
54782         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
54783         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
54784         Likewise.
54785         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
54786         (tests): Add test case tst-tls-atexit.
54787         (modules-names): Add shared library for tst-tls-atexit.
54788         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
54789         (GLIBC_PRIVATE): Add __call_tls_dtors.
54790         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
54791         for libstdc++.
54792         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
54793         * stdlib/tst-tls-atexit.c: New test case.
54794         * stdlib/tst-tls-atexit-lib.c: New test case.
54795
54796         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
54797
54798         * elf/Versions (ld): Add _dl_find_dso_for_object.
54799         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
54800         * elf/dl-open.c (_dl_find_dso_for_object): New function.
54801         (dl_open_worker): Use _dl_find_dso_for_object.
54802         * elf/dl-sym.c (do_sym): Likewise.
54803         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
54804
54805 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54806
54807         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
54808         Syntactic changes only.
54809         (_dl_runtime_profile): Do a tail-call to the resolved function.
54810
54811 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
54812
54813         [BZ #13550]
54814         * sysdeps/x86_64/bp-asm.h: Remove file.
54815         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
54816         <bp-sym.h> and <bp-asm.h>.
54817         (__clone): Do not use BP_SYM.
54818         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
54819         <bp-sym.h> and <bp-asm.h>.
54820         * sysdeps/unix/x86_64/sysdep.S: Likewise.
54821         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
54822         "bp-asm.h".
54823         (_setjmp): Do not use BP_SYM.
54824         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
54825         "bp-asm.h".
54826         (setjmp): Do not use BP_SYM.
54827         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
54828         libc_hidden_def.
54829         (mempcpy): Do not use BP_SYM in weak_alias.
54830         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
54831         "bp-asm.h".
54832         (strchr): Do not use BP_SYM.
54833         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
54834         "bp-asm.h".
54835         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
54836         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
54837         (_start): Do not use BP_SYM.
54838         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
54839         "bp-asm.h".
54840         (strcat): Do not use BP_SYM.
54841         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
54842         "bp-asm.h".
54843         (STRCMP): Do not use BP_SYM.
54844         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
54845         "bp-asm.h".
54846         (STRCPY): Do not use BP_SYM.
54847         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
54848         "bp-asm.h".
54849         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
54850         "bp-asm.h".
54851         (FUNCTION): Do not use BP_SYM.
54852         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
54853         weak_alias.
54854         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
54855
54856 2013-02-17  Andreas Jaeger  <aj@suse.de>
54857
54858         * time/Versions: Sort entries.
54859         * string/Versions: Likewise.
54860         * resolv/Versions: Likewise.
54861         * posix/Versions: Likewise.
54862         * iconv/Versions: Likewise.
54863         * elf/Versions: Likewise.
54864         * wcsmbs/Versions: Likewise.
54865
54866 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
54867
54868         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
54869         loop termination condition.
54870
54871         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
54872         variable to calculate EZ.
54873         (__sqr): Likewise.
54874
54875         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
54876         the lower precision input.
54877
54878 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
54879
54880         [BZ #13550]
54881         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
54882         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
54883         (run-via-rtld-prefix): Do not handle %-bp tests.
54884         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
54885         (all-object-suffixes): Remove .ob.
54886         (bppfx): Remove variable.
54887         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
54888         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
54889         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
54890         [$(build-bounded) = yes] (libtype.ob): Likewise.
54891         * Makerules (elide-routines.ob): Remove variable.
54892         (do-tests-clean): Do not handle *-bp.out.
54893         (common-mostlyclean): Do not handle *-bp and *-bp.out.
54894         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
54895         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
54896         (tests): Do not include $(tests-bp.out).
54897         (xtests): Do not include $(xtests-bp.out).
54898         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
54899         [$(build-bounded) = yes] ($(addprefix
54900         $(objpfx),$(binaries-bounded))): Remove rule.
54901         ($(objpfx)%-bp.out): Remove rule.
54902         * config.make.in (build-bounded): Remove variable.
54903         * crypt/Makefile [$(build-bounded) = yes]
54904         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
54905         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
54906         append to variable.
54907         [$(build-bounded) = yes] (install-lib): Likewise.
54908         [$(build-bounded) = yes] (generated): Likewise.
54909         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
54910         Remove rule.
54911         * intl/Makefile [$(build-bounded) = yes]
54912         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
54913         * math/Makefile [$(build-bounded) = yes]
54914         ($(tests:%=$(objpfx)%-bp): Likewise.
54915         * misc/Makefile [$(build-bounded) = yes]
54916         ($(objpfx)tst-tsearch-bp): Likewise.
54917         * nptl/Makeconfig (bounded-thread-library): Remove variable.
54918         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
54919         Remove dependency.
54920         * string/Makefile (o-objects.ob): Remove variable.
54921         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
54922         (CFLAGS-.ob): Remove variable.
54923         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
54924         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
54925         both definitions of variable.
54926         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
54927         (ASFLAGS-.ob): Remove variable.
54928
54929 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
54930
54931         [BZ #13550]
54932         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
54933         Remove __BOUNDED_POINTERS__ from condition.
54934         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
54935         * string/bits/string2.h [!__NO_STRING_INLINES &&
54936         !__BOUNDED_POINTERS__]: Likewise.
54937         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
54938         Likewise.
54939         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
54940         Remove conditional code.
54941         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
54942         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
54943         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
54944         condition.
54945
54946         [BZ #13550]
54947         * csu/libc-start.c: Do not include <bp-sym.h>.
54948         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
54949         * elf/dl-open.c: Do not include <bp-sym.h>.
54950         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
54951         * math/fegetenv.c: Do not include <bp-sym.h>.
54952         (fegetenv): Do not use BP_SYM in versioned symbols.
54953         * nptl/sysdeps/pthread/bits/libc-lockP.h
54954         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
54955         <bp-sym.h>.
54956         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54957         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
54958         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54959         (__pthread_mutex_destroy): Likewise.
54960         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54961         (__pthread_mutex_lock): Likewise.
54962         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54963         (__pthread_mutex_trylock): Likewise.
54964         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54965         (__pthread_mutex_unlock): Likewise.
54966         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54967         (__pthread_mutexattr_init): Likewise.
54968         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54969         (__pthread_mutexattr_destroy): Likewise.
54970         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54971         (__pthread_mutexattr_settype): Likewise.
54972         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54973         (__pthread_rwlock_init): Likewise.
54974         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54975         (__pthread_rwlock_destroy): Likewise.
54976         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54977         (__pthread_rwlock_rdlock): Likewise.
54978         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54979         (__pthread_rwlock_tryrdlock): Likewise.
54980         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54981         (__pthread_rwlock_wrlock): Likewise.
54982         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54983         (__pthread_rwlock_trywrlock): Likewise.
54984         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54985         (__pthread_rwlock_unlock): Likewise.
54986         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54987         (__pthread_key_create): Likewise.
54988         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54989         (__pthread_setspecific): Likewise.
54990         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54991         (__pthread_getspecific): Likewise.
54992         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
54993         Likewise.
54994         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54995         (_pthread_cleanup_push_defer): Likewise.
54996         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54997         (_pthread_cleanup_pop_restore): Likewise.
54998         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
54999         (pthread_setcancelstate): Likewise.
55000         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
55001         <bp-sym.h>.
55002         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
55003         (memchr): Do not use BP_SYM in weak_alias.
55004         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
55005         (fegetenv): Do not use BP_SYM in versioned symbols.
55006         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
55007         (fesetenv): Do not use BP_SYM in versioned symbols.
55008         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
55009         (feupdateenv): Do not use BP_SYM in versioned symbols.
55010         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
55011         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
55012         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
55013         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
55014         (open64): Do not use BP_SYM in weak_alias.
55015         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
55016         (fegetenv): Do not use BP_SYM in versioned symbols.
55017         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
55018         (fesetenv): Do not use BP_SYM in versioned symbols.
55019         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
55020         (feupdateenv): Do not use BP_SYM in versioned symbols.
55021         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
55022         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
55023         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
55024         (feraiseexcept): Do not use BP_SYM in versioned symbols.
55025         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
55026         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
55027         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
55028         <bp-sym.h>.
55029         (__libc_start_main): Do not use BP_SYM.
55030
55031 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
55032
55033         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
55034         redundant return line.
55035         (norm): Likewise.
55036         (denorm): Likewise.
55037         (dbl_mp): Likewise.
55038         (sub_magnitudes): Likewise.
55039         (__add): Likewise.
55040         (__sub): Likewise.
55041         (__mul): Likewise.
55042         (__inv): Likewise.
55043         (__dvd): Likewise.
55044         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
55045         (norm): Likewise.
55046         (denorm): Likewise.
55047         (dbl_mp): Likewise.
55048         (sub_magnitudes): Likewise.
55049         (__add): Likewise.
55050         (__sub): Likewise.
55051         (__mul): Likewise.
55052         (__inv): Likewise.
55053         (__dvd): Likewise.
55054
55055         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
55056         instead of __mul.
55057         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
55058         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
55059         (cc32): Likewise.
55060
55061         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
55062         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
55063         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
55064         of __mul for squares.
55065         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
55066         function
55067         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
55068         Likewise.
55069         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
55070         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
55071
55072 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
55073
55074         [BZ #13550]
55075         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
55076         code.
55077         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
55078         prototype or function definition.  Rename ubp_* variables and
55079         parameters.  Remove argv definitions conditional on
55080         [__BOUNDED_POINTERS__].
55081         * debug/backtrace.c (__backtrace): Do not use __unbounded.
55082         * elf/dl-runtime.c (_dl_fixup): Likewise.
55083         * include/set-hooks.h (RUN_HOOK): Likewise.
55084         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
55085         definition.
55086         * string/strcpy.c (strcpy): Do not use __unbounded.
55087         * sysdeps/generic/frame.h (struct layout): Likewise.
55088         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
55089         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
55090         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
55091         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
55092         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
55093         (__backtrace): Likewise.
55094         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
55095         use __ptrvalue.
55096         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
55097         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
55098         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
55099         Likewise.
55100         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
55101         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
55102         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
55103         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
55104         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
55105         Do not use __unbounded.
55106         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
55107         Rename __unboundedrlimits parameter to rlimits in prototype.
55108         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
55109         Do not use __unbounded.
55110         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
55111         not use __ptrvalue.
55112         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
55113         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
55114         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
55115         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
55116         __ptrvalue or __unbounded.
55117         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
55118         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
55119         use __unbounded.
55120         (__new_msgctl): Do not use __ptrvalue.
55121         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
55122         __unbounded.
55123         (__libc_msgrcv): Do not use __ptrvalue.
55124         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
55125         startup_info): Do not use __unbounded.
55126         (__libc_start_main): Likewise.  Rename ubp_* variables and
55127         parameters.  Remove argv definitions conditional on
55128         [__BOUNDED_POINTERS__].
55129         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
55130         __ptrvalue.
55131         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
55132         use __unbounded.
55133         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
55134         or __ptrvalue.
55135         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
55136         use __unbounded.
55137         (__new_shmctl): Do not use __ptrvalue.
55138         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
55139         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
55140         Likewise.
55141         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
55142         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
55143         (__libc_sigaction): Likewise.
55144         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
55145         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
55146         Likewise.
55147         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
55148
55149 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
55150
55151         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
55152
55153         * string/mempcpy.c: Implement by calling memcpy.
55154
55155 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
55156
55157         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
55158
55159         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
55160         evaluation.
55161
55162         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
55163         values in the mantissa.
55164
55165         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
55166         minimize writes to Z.
55167         (sub_magnitudes): Simplify code a bit.
55168
55169 2013-02-12  Roland McGrath  <roland@hack.frob.com>
55170
55171         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
55172         from the message.  The linker prefixes all warnings with that already.
55173
55174 2013-02-12  Andreas Schwab  <schwab@suse.de>
55175
55176         [BZ #15078]
55177         * posix/regexec.c (extend_buffers): Add parameter min_len.
55178         (check_matching): Pass minimum needed length.
55179         (clean_state_log_if_needed): Likewise.
55180         (get_subexp): Likewise.
55181         * posix/Makefile (tests): Add bug-regex34.
55182         (bug-regex34-ENV): Define.
55183         * posix/bug-regex34.c: New file.
55184
55185         [BZ #11561]
55186         * posix/regcomp.c (parse_bracket_exp): When looking up collating
55187         elements compare against the byte sequence of it, not its name.
55188         * posix/Makefile (tests): Add bug-regex35.
55189         (bug-regex35-ENV): Define.
55190         * posix/bug-regex35.c: New file.
55191
55192 2013-02-11  Tom de Vries  <tom@codesourcery.com>
55193
55194         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
55195         comment.
55196         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
55197         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
55198         (CHECK_EOL): Add undef.
55199
55200 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
55201
55202         * bits/stdlib-bsearch.h: New file.
55203         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
55204         * stdlib/stdlib.h: Likewise.
55205
55206 2013-02-11  Roland McGrath  <roland@hack.frob.com>
55207
55208         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
55209         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
55210         declaration.
55211         * manual/search.texi (Array Search Function): Add missing const in
55212         lfind prototype.
55213         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
55214         declaration to use rlim_t.
55215         (Basic Scheduling Functions): Remove erroneous const from
55216         sched_getparam prototype.  Remove erroneous * from
55217         sched_get_priority_max and sched_get_priority_min prototypes.
55218         (Resource Usage): Fix summary @comment on vtimes to refer to
55219         sys/vtimes.h rather than vtimes.h.
55220         Add missing *s in vtimes prototype.
55221         (Limits on Resources): Fix ulimit prototype to return long int.
55222         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
55223         prototypes to use long int rather than double.
55224         (BSD Random): Fix initstate and setstate to use char *, not void *.
55225         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
55226         prototype to make second argument 'struct aiocb64 *const[]'.
55227         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
55228         (Status of AIO Operations): Remove erroneous const in aio_return and
55229         aio_return64 prototypes.
55230         (Synchronizing I/O): Fix sync prototype to return void.
55231         * manual/startup.texi (Suboptions): Remove an erroneous const in
55232         getsubopt prototype.
55233         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
55234         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
55235         use size_t rather than int.
55236         (Scanning All Users): Likewise for getpwent_r.
55237         (Setting Groups): Add missing const to setgroups prototype.
55238         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
55239         * manual/socket.texi (Host Names): Fix gethostbyaddr and
55240         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
55241         'const void *' rather than 'const char *'.
55242         (Host Address Functions): Likewise for inet_ntop.
55243         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
55244         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
55245         ssize_t for return value.
55246         (Sending Data): Likewise for send, sendto, sendmsg.
55247         (Socket Option Functions): Add a missing const in setsockopt prototype.
55248         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
55249         use wchar_t for the argument.
55250         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
55251         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
55252         take no arguments.
55253         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
55254         double/float/long double for second argument.
55255         Fix return types of significand, significandf, significandl.
55256         * manual/filesys.texi (Setting Permissions): Use mode_t for second
55257         argument in fchmod prototype.
55258         (File Owner): Use uid_t and gid_t in fchown prototype.
55259         (File Times): Add const to utimes, futimes, and lutimes prototypes.
55260         (Making Special Files): Use mode_t and dev_t in mknod prototype.
55261         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
55262         use 'const struct dirent **' as argument types to CMP function pointer
55263         argument.
55264         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
55265         (File Times): Fix summary magic @comment for struct utimbuf and utime
55266         to refer to utime.h, not time.h.
55267         * manual/string.texi (Argz Functions): Add missing const in
55268         argz_extract and argz_next prototypes.
55269         (Finding Tokens in a String): Likewise for basename.
55270         (String/Array Comparison): Fix typo in wcscasecmp prototype.
55271         (Copying and Concatenation): Fix typo in wmemmove prototype.
55272         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
55273         (Signal Stack): Remove erroneous const in sigstack prototype.
55274         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
55275         prototype.
55276         (Simple Calendar Time): Likewise for stime.
55277         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
55278         prototype.
55279         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
55280         say sys/sysctl.h instead.
55281         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
55282         and vsyslog prototypes.
55283
55284 2013-02-11  Tom de Vries  <tom@codesourcery.com>
55285
55286         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
55287         Remove.
55288
55289 2013-02-11  Roland McGrath  <roland@hack.frob.com>
55290
55291         * misc/sys/mman.h: Fix typo in mremap comment.
55292
55293 2013-02-08  Roland McGrath  <roland@hack.frob.com>
55294
55295         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
55296         the '\0' terminator.
55297
55298 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
55299
55300         [BZ #13550]
55301         * debug/segfault.c: Don't include <bp-checks.h>.
55302         * sysdeps/generic/bp-checks.h: Remove file.
55303         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
55304         (__GETDENTS): Don't use CHECK_N.
55305         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
55306         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
55307         (__getgroups): Don't use CHECK_N.
55308         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
55309         (setgroups): Don't use CHECK_N.
55310         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
55311         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
55312         (__libc_msgrcv): Don't use CHECK_N.
55313         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
55314         (__libc_msgsnd): Don't use CHECK_N.
55315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
55316         <bp-checks.h>.
55317         (__libc_pread): Don't use CHECK_N.
55318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
55319         include <bp-checks.h>.
55320         (__libc_pread64): Don't use CHECK_N.
55321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
55322         include <bp-checks.h>.
55323         (__libc_pwrite): Don't use CHECK_N.
55324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
55325         include <bp-checks.h>.
55326         (__libc_pwrite64): Don't use CHECK_N.
55327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
55328         <bp-checks.h>.
55329         (__libc_pread): Don't use CHECK_N.
55330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
55331         include <bp-checks.h>.
55332         (__libc_pread64): Don't use CHECK_N.
55333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
55334         include <bp-checks.h>.
55335         (__libc_pwrite): Don't use CHECK_N.
55336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
55337         include <bp-checks.h>.
55338         (__libc_pwrite64): Don't use CHECK_N.
55339         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
55340         (do_pread): Don't use CHECK_N.
55341         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
55342         (do_pread64): Don't use CHECK_N.
55343         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
55344         (do_pwrite): Don't use CHECK_N.
55345         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
55346         (do_pwrite64): Don't use CHECK_N.
55347         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
55348         (__libc_readv): Don't use CHECK_N.
55349         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
55350         (semop): Don't use CHECK_N.
55351         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
55352         <bp-checks.h>.
55353         (semtimedop): Don't use CHECK_N.
55354         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
55355         (__libc_pread): Don't use CHECK_N.
55356         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
55357         <bp-checks.h>.
55358         (__libc_pread64): Don't use CHECK_N.
55359         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
55360         <bp-checks.h>.
55361         (__libc_pwrite): Don't use CHECK_N.
55362         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
55363         <bp-checks.h>.
55364         (__libc_pwrite64): Don't use CHECK_N.
55365         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
55366         <bp-checks.h>.
55367         (__libc_msgrcv): Don't use CHECK_N.
55368         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
55369         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
55370         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
55371         (__libc_writev): Don't use CHECK_N.
55372
55373 2013-02-08  Roland McGrath  <roland@hack.frob.com>
55374
55375         * string/strcpy.c: Removed unused variable.
55376
55377         * Makeconfig (+sysdep-includes): Define with := rather than =.
55378         Use an existing include/ subdir of each sysdeps dir before it.
55379
55380 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
55381
55382         * nscd/connection.c (register_traced_file): Comment function.
55383         [HAVE_INOTIFY] (union __inev): Define.
55384         [HAVE_INOTIFY] (inotify_check_files): New function.
55385         [HAVE_INOTIFY] (clear_db_cache): Likewise.
55386         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
55387         clear_db_cache.
55388         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
55389
55390 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
55391
55392         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
55393         loaded if not already and that a failure is permanent.
55394
55395 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
55396
55397         [BZ #15006]
55398         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
55399         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
55400
55401 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
55402
55403         [BZ #13550]
55404         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
55405         (CHECK_1_NULL_OK): Likewise.
55406         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
55407         (__fxstat): Do not use CHECK_1.
55408         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
55409         <bp-checks.h>.
55410         (___fxstat64): Do not use CHECK_1.
55411         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
55412         <bp-checks.h>.
55413         (__fxstatat): Do not use CHECK_1.
55414         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
55415         <bp-checks.h>.
55416         (__fxstatat64): Do not use CHECK_1.
55417         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
55418         <bp-checks.h>.
55419         (__fxstat): Do not use CHECK_1.
55420         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
55421         <bp-checks.h>.
55422         (__fxstatat): Do not use CHECK_1.
55423         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
55424         <bp-checks.h>.
55425         (__getresgid): Do not use CHECK_1.
55426         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
55427         <bp-checks.h>.
55428         (__getresuid): Do not use CHECK_1.
55429         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
55430         <bp-checks.h>.
55431         (__lxstat): Do not use CHECK_1.
55432         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
55433         <bp-checks.h>.
55434         (__old_msgctl): Do not use CHECK_1.
55435         (__new_msgctl): Likewise.
55436         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
55437         <bp-checks.h>.
55438         (__new_setrlimit): Do not use CHECK_1.
55439         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
55440         <bp-checks.h>.
55441         (__old_shmctl): Do not use CHECK_1.
55442         (__new_shmctl): Likewise.
55443         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
55444         <bp-checks.h>.
55445         (__xstat): Do not use CHECK_1.
55446         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
55447         (__lxstat): Do not use CHECK_1.
55448         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
55449         <bp-checks.h>.
55450         (___lxstat64): Do not use CHECK_1.
55451         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
55452         (__old_msgctl): Do not use CHECK_1.
55453         (__new_msgctl): Likewise.
55454         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
55455         <bp-checks.h>.
55456         (__gettimeofday): Do not use CHECK_1.
55457         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
55458         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
55459         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
55460         <bp-checks.h>.
55461         (__gettimeofday): Do not use CHECK_1.
55462         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
55463         (__old_shmctl): Do not use CHECK_1_NULL_OK.
55464         (__new_shmctl): Do not use CHECK_1.
55465         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
55466         <bp-checks.h>.
55467         (do_sigtimedwait): Do not use CHECK_1.
55468         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
55469         <bp-checks.h>.
55470         (do_sigwaitinfo): Do not use CHECK_1.
55471         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
55472         <bp-checks.h>.
55473         (msgctl): Do not use CHECK_1.
55474         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
55475         <bp-checks.h>.
55476         (shmctl): Do not use CHECK_1.
55477         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
55478         (ustat): Do not use CHECK_1.
55479         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
55480         <bp-checks.h>.
55481         (__fxstat): Do not use CHECK_1.
55482         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
55483         <bp-checks.h>.
55484         (__fxstatat): Do not use CHECK_1.
55485         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
55486         <bp-checks.h>.
55487         (__lxstat): Do not use CHECK_1.
55488         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
55489         <bp-checks.h>.
55490         (__xstat): Do not use CHECK_1.
55491         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
55492         (__xstat): Do not use CHECK_1.
55493         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
55494         (___xstat64): Do not use CHECK_1.
55495
55496         [BZ #13550]
55497         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
55498         definitions.
55499         (CHECK_BOUNDS_HIGH): Likewise.
55500         * string/strcpy.c: Do not include <bp-checks.h>.
55501         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
55502
55503 2013-02-07  Roland McGrath  <roland@hack.frob.com>
55504
55505         * nscd/nscd-client.h (__nscd_drop_map_ref):
55506         Add __attribute__ ((unused)).
55507         * nis/nss-nisplus.h (niserr2nss): Likewise.
55508
55509         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
55510         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
55511
55512         * csu/libc-tls.c (init_static_tls, init_slotinfo):
55513         Remove inline keyword.
55514         * include/rounding-mode.h (round_away): Likewise.
55515         * libio/wfileops.c (adjust_wide_data): Likewise.
55516         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
55517         (__m128i_strloadu_tolower): Likewise.
55518         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
55519         (__m128i_strloadu_tolower): Likewise.
55520         * time/mktime.c (ydhms_diff): Likewise.
55521         * locale/elem-hash.h (elem_hash): Likewise.
55522         * locale/setlocale.c (setdata): Likewise.
55523         * posix/regex_internal.h (re_string_char_size_at): Likewise.
55524         (re_string_wchar_at): Likewise.
55525         (bitset_not, bitset_merge, bitset_mask): Likewise.
55526         [!(__GNUC__ > 3)] (inline): Remove macro.
55527         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
55528         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
55529         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
55530         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
55531         * string/memcmp.c (memcmp_bytes): Likewise.
55532         * locale/programs/locarchive.c (compute_hashval): Likewise.
55533         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
55534         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
55535         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
55536         * nss/getent.c (print_rpc, print_protocols): Likewise.
55537         (print_passwd, print_group, print_aliases): Likewise.
55538         * nis/nss-nisplus.h (niserr2nss): Likewise.
55539         * nscd/connections.c (restart_p): Likewise.
55540         Change return type to bool.
55541
55542 2013-02-05  Roland McGrath  <roland@hack.frob.com>
55543
55544         * Makeconfig (all-Depend-files): Add existing
55545         $(sorted-subdirs:=/Depend) files.
55546         (all-subdirs): Remove nss.
55547         * sysdeps/unix/inet/Subdirs: Add it here instead.
55548         * hesiod/Depend: New file.
55549
55550         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
55551         instead of calling alloca.
55552
55553         * io/lseek.c (__lseek): Rename to __libc_lseek.
55554         Define __lseek as an alias.
55555
55556         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
55557
55558 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
55559
55560         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
55561         else clause and remove check for non-standard endianness.
55562
55563 2013-02-04  David S. Miller  <davem@davemloft.net>
55564
55565         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55566
55567 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
55568
55569         [BZ #13550]
55570         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
55571         (__ubp_memchr): Remove prototype.
55572         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
55573         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
55574         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
55575         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
55576         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
55577         Remove alias.
55578         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
55579         (__ubp_memchr): Likewise.
55580         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
55581         (__ubp_memchr): Likewise.
55582         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
55583         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
55584         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
55585         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
55586         CHECK_STRING.
55587         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
55588         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
55589         (__getcwd): Do not use CHECK_STRING.
55590         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
55591         <bp-checks.h>.
55592         (__real_chown): Do not use CHECK_STRING.
55593         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
55594         <bp-checks.h>.
55595         (fchownat): Do not use CHECK_STRING.
55596         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
55597         CHECK_STRING.
55598         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
55599         <bp-checks.h>.
55600         (__lchown): Do not use CHECK_STRING.
55601         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
55602         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
55603         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
55604         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
55605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
55606         include <bp-checks.h>.
55607         (truncate64): Do not use CHECK_STRING.
55608         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
55609         <bp-checks.h>.
55610         (__real_chown): Do not use CHECK_STRING.
55611         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
55612         <bp-checks.h>.
55613         (__lchown): Do not use CHECK_STRING.
55614         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
55615         <bp-checks.h>.
55616         (__chown): Do not use CHECK_STRING.
55617         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
55618         <bp-checks.h>.
55619         (truncate64): Do not use CHECK_STRING.
55620         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
55621         Likewise.
55622         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
55623         (__xmknod): Do not use CHECK_STRING.
55624         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
55625         <bp-checks.h>.
55626         (__xmknodat): Do not use CHECK_STRING.
55627         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
55628         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
55629
55630 2013-02-04  Andreas Schwab  <schwab@suse.de>
55631
55632         [BZ #14142]
55633         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
55634         * include/netdb.h: Likewise for h_errno.
55635         * elf/tst-stackguard1.c: Include <tls.h>.
55636
55637 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
55638
55639         * elf/link.h (struct link_map): Extend the l_addr comment.
55640         * include/link.h (struct link_map): Likewise.
55641
55642 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
55643
55644         [BZ #13550]
55645         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
55646         (BOUNDED_1): Remove macro.
55647         * debug/backtrace.c: Don't include <bp-checks.h>.
55648         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
55649         (__backtrace): Likewise.
55650         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
55651         <bp-checks.h>.
55652         (__backtrace): Don't use BOUNDED_1.
55653         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
55654         <bp-checks.h>.
55655         (__backtrace): Don't use BOUNDED_1.
55656         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
55657         (__backtrace): Don't use BOUNDED_1.
55658         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
55659         (shmat): Don't use BOUNDED_N.
55660
55661 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
55662
55663         [BZ #13550]
55664         * sysdeps/generic/bp-start.h: Remove file.
55665         * csu/libc-start.c: Don't include <bp-start.h>.
55666         (LIBC_START_MAIN): Set up __environ directly instead of using
55667         INIT_ARGV_and_ENVIRON.
55668         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
55669         <bp-start.h>.
55670
55671         [BZ #13550]
55672         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
55673         definitions.
55674         (CHECK_FCNTL): Likewise.
55675         (CHECK_N_PAGES): Likewise.
55676
55677         [BZ #13550]
55678         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
55679         definitions.
55680         (CHECK_SIGSET_NULL_OK): Likewise.
55681         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
55682         <bp-checks.h>.
55683         (sigpending): Don't use CHECK_SIGSET.
55684         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
55685         <bp-checks.h>.
55686         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
55687         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
55688         <bp-checks.h>.
55689         (do_sigsuspend): Don't use CHECK_SIGSET.
55690         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
55691         use CHECK_SIGSET.
55692         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
55693         (do_sigwait): Don't use CHECK_SIGSET.
55694         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
55695         use CHECK_SIGSET.
55696         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
55697         include <bp-checks.h>.
55698         (sigpending): Don't use CHECK_SIGSET.
55699         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
55700         include <bp-checks.h>.
55701         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
55702         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
55703         <bp-checks.h>.
55704         (sigpending): Don't use CHECK_SIGSET.
55705         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
55706         <bp-checks.h>.
55707         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
55708
55709         [BZ #13550]
55710         * sysdeps/generic/bp-semctl.h: Remove file.
55711         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
55712         <bp-checks.h> and <bp-semctl.h>.
55713         (__old_semctl): Don't use CHECK_SEMCTL.
55714         (__new_semctl): Likewise.
55715         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
55716         and <bp-semctl.h>.
55717         (__old_semctl): Don't use CHECK_SEMCTL.
55718         (__new_semctl): Likewise.
55719         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
55720         <bp-checks.h> and <bp-semctl.h>.
55721         (__old_semctl): Don't use CHECK_SEMCTL.
55722         (__new_semctl): Likewise.
55723         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
55724         <bp-checks.h> and <bp-semctl.h>.
55725         (semctl): Don't use CHECK_SEMCTL.
55726
55727         [BZ #13550]
55728         * Makerules (elide-bp-thunks): Remove variable.
55729         (elide-routines.oS): Don't use $(elide-bp-thunks).
55730         (elide-routines.os): Likewise.
55731         (elide-routines.o): Likewise.
55732         (elide-routines.op): Likewise.
55733         (elide-routines.og): Likewise.
55734         (objects): Don't use $(bp-thunks).
55735         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
55736         include.
55737         (common-generated): Do not add s-proto-bp.d.
55738         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
55739         (int): Likewise.
55740         (typ): Likewise.
55741         Do not generate makefile rules for bounded-pointer thunks.
55742         * sysdeps/generic/bp-thunks.h: Remove file.
55743         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
55744         * sysdeps/unix/s-proto-bp.S: Likewise.
55745
55746         [BZ #15062]
55747         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
55748         parts of result separately when argument is not close to line from
55749         -i to i and one part of argument is small.
55750         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55751         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55752         * math/libm-test.inc (cacos_test): Add more tests.
55753         (casin_test): Likewise.
55754         (casinh_test): Likewise.
55755         * sysdeps/i386/fpu/libm-test-ulps: Update.
55756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55757
55758 2013-01-31  David S. Miller  <davem@davemloft.net>
55759
55760         * po/de.po: Update from translation team.
55761
55762 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
55763
55764         * time/tzfile.c: Include stdint.h for SIZE_MAX.
55765
55766 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
55767
55768         * configure.in (_AC_PROG_CC_C89): New definition.
55769         * configure: Regenerate.
55770
55771         * configure.in (AC_PROG_CPP): New definition.
55772         * configure: Regenerate.
55773
55774 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
55775
55776         * debug/tst-backtrace.h: New file.
55777         * debug/tst-backtrace2.c: Include tst-backtrace.h.
55778         (ret): Remove variable.
55779         (x): Likewise.
55780         (FAIL): Remove macro.
55781         (NO_INLINE): Likewise.
55782         (fn1): Use match function instead of strstr.
55783         * debug/tst-backtrace3.c: Include tst-backtrace.h.
55784         (ret): Remove variable.
55785         (x): Likewise.
55786         (FAIL): Remove macro.
55787         (NO_INLINE): Likewise.
55788         (fn): Use match function instead of strstr.
55789         * debug/tst-backtrace4.c: Include tst-backtrace.h.
55790         (ret): Remove variable.
55791         (x): Likewise.
55792         (FAIL): Remove macro.
55793         (NO_INLINE): Likewise.
55794         (handle_signal): Use match function instead of strstr.
55795         * debug/tst-backtrace5.c: Include tst-backtrace.h.
55796         (ret): Remove variable.
55797         (x): Likewise.
55798         (FAIL): Remove macro.
55799         (NO_INLINE): Likewise.
55800         (handle_signal): Use match function instead of strstr.
55801
55802 2013-01-23  Roland McGrath  <roland@hack.frob.com>
55803
55804         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
55805
55806 2013-01-23  David S. Miller  <davem@davemloft.net>
55807
55808         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
55809         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
55810         argument of CAS if possible.
55811         * sysdeps/sparc/sparc64/bits/atomic.h
55812         (__arch_compare_and_exchange_val_32_acq): Likewise.
55813         (__arch_compare_and_exchange_val_64_acq): Likewise.
55814
55815 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
55816
55817         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
55818         * sysdeps/posix/ulimit.c: ... this.
55819         Include <limits.h>.
55820         * sysdeps/unix/bsd/ulimit.c: Remove file.
55821
55822 2013-01-23  Adam Conrad  <adconrad@0c3.net>
55823
55824         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
55825         (LDFLAGS-tst-array5): Likewise.
55826
55827 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
55828
55829         [BZ #15036]
55830         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
55831         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
55832         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
55833         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
55834
55835 2013-01-21  David S. Miller  <davem@davemloft.net>
55836
55837         * sysdeps/sparc/backtrace.c: New file.
55838         * sysdeps/sparc/sparc32/backtrace.h: New file.
55839         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
55840         * sysdeps/sparc/sparc64/backtrace.h: New file.
55841         * sysdeps/sparc/sparc64/backtrace.c: Delete.
55842         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
55843         -funwind-tables.
55844
55845 2013-01-21  Andreas Schwab  <schwab@suse.de>
55846
55847         [BZ #15020]
55848         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
55849         closed its stdout.
55850
55851 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
55852
55853         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
55854         "mpa2.h".
55855         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
55856
55857 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
55858             Mark Mitchell  <mark@codesourcery.com>
55859             Tom de Vries  <tom@codesourcery.com>
55860             Paul Pluzhnikov  <ppluzhnikov@google.com>
55861
55862         * debug/tst-backtrace2.c: New file.
55863         * debug/tst-backtrace3.c: Likewise.
55864         * debug/tst-backtrace4.c: Likewise.
55865         * debug/tst-backtrace5.c: Likewise.
55866         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
55867         (CFLAGS-tst-backtrace3.c): Likewise.
55868         (CFLAGS-tst-backtrace4.c): Likewise.
55869         (CFLAGS-tst-backtrace5.c): Likewise.
55870         (LDFLAGS-tst-backtrace2): Likewise.
55871         (LDFLAGS-tst-backtrace3): Likewise.
55872         (LDFLAGS-tst-backtrace4): Likewise.
55873         (LDFLAGS-tst-backtrace5): Likewise.
55874         (tests): Add new tests tst-backtrace2, tst-backtrace3,
55875         tst-backtrace4 and tst-backtrace5.
55876
55877 2013-01-18  Anton Blanchard  <anton@samba.org>
55878             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
55879
55880         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
55881         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
55882         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
55883         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
55884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
55885         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
55886         "+r" and remove output regs list as redundant.  Add explicit inline
55887         asm to specify register of return val to work around compiler codegen
55888         bug.  Remove (int) cast on return value.  Add return type parameter to
55889         use in macro so that this macro does not truncate return value for
55890         64-bit values.
55891         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
55892         pass to INTERNAL_VSYSCALL_NCS.
55893         (INLINE_VSYSCALL): Add 'long int' as return type to
55894         INTERNAL_VSYSCALL_NCS macro invocation.
55895         (INTERNAL_VSYSCALL): Add 'long int' as return type to
55896         INTERNAL_VSYSCALL_NCS macro invocation.
55897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
55898
55899 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
55900
55901         [BZ #14496]
55902         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
55903         Fix application of SIMD FP exception mask.
55904
55905         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
55906         mp_no from a power of two.
55907         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
55908         __mpexp_twomm1.  Use __pow_mp.
55909
55910         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
55911         multiplication.
55912
55913 2013-01-17  David S. Miller  <davem@davemloft.net>
55914
55915         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55916
55917 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
55918
55919         [BZ #15023]
55920         * include/complex.h: Condition contents on [!_COMPLEX_H].
55921         (__kernel_casinhf): New prototype.
55922         (__kernel_casinh): Likewise.
55923         (__kernel_casinhl): Likewise.
55924         * math/Makefile (libm_calls): Add k_casinh.
55925         * math/k_casinh.c: New file.
55926         * math/k_casinhf.c: Likewise.
55927         * math/k_casinhl.c: Likewise.
55928         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
55929         finite nonzero arguments.
55930         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
55931         finite nonzero arguments.
55932         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
55933         finite nonzero arguments.
55934         * math/s_casinh.c: Do not include <float.h>.
55935         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
55936         * math/s_casinhf.c: Do not include <float.h>.
55937         (__casinhf): Move code for finite nonzero arguments to
55938         k_casinhf.c.
55939         * math/s_casinhl.c: Do not include <float.h>.
55940         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
55941         redefine.
55942         (__casinhl): Move code for finite nonzero arguments to
55943         k_casinhl.c.
55944         * math/libm-test.inc (cacos_test): Add more tests.
55945         * sysdeps/i386/fpu/libm-test-ulps: Update.
55946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55947
55948 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
55949
55950         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
55951         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
55952         [!HAVE_MREMAP]: Remove [defined linux] case.
55953         * malloc/arena.c: Do not include <malloc-sysdep.h>.
55954
55955 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
55956
55957         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
55958
55959 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
55960
55961         * elf/elf.h (R_386_SIZE32): New relocation.
55962         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
55963         R_386_SIZE32.
55964         (elf_machine_rela): Likewise.
55965         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
55966         R_X86_64_SIZE64 and R_X86_64_SIZE32.
55967
55968 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
55969
55970         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
55971         (FP_FAST_FMA): Do not define.
55972         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
55973         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
55974         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
55975         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
55976         !_SOFT_FLOAT]: Likewise.
55977         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
55978         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
55979         value.
55980         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
55981         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
55982         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
55983         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
55984         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
55985         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
55986         file.
55987
55988 2013-01-16  Andreas Schwab  <schwab@suse.de>
55989
55990         [BZ #14327]
55991         * include/stdlib.h (__mktemp): Add declaration.
55992         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
55993         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
55994
55995 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55996
55997         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
55998         definitions.
55999         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
56000         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
56001         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
56002         definitions here.
56003         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
56004         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
56005         definitions.
56006         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
56007         and ONE.
56008         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
56009         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
56010         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
56011         definitions.
56012         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
56013         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
56014         definitions.
56015         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
56016
56017         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
56018
56019 2013-01-15  David S. Miller  <davem@davemloft.net>
56020
56021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
56022         trunc{,f} to libm-sysdep_routes.
56023         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
56024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
56025         file.
56026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
56027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
56028         file.
56029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
56030         file.
56031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
56032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
56033         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
56034         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
56035         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
56036         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
56037         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
56038         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
56039
56040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
56041         nearbyint{,f} to libm-sysdep_routes.
56042         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
56043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
56044         New file.
56045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
56046         file.
56047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
56048         New file.
56049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
56050         file.
56051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
56052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
56053         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
56054         file.
56055         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
56056         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
56057         file.
56058         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
56059         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
56060         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
56061
56062         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
56063         libc_feholdexcept and libc_fesetenv.
56064
56065 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
56066
56067         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
56068
56069 2013-01-14  David S. Miller  <davem@davemloft.net>
56070
56071         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
56072         (SPARC_ASM_VIS2_IFUNC): Likewise.
56073         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
56074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
56075         use of 'siam' instruction.
56076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
56077         Likewise.
56078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
56079         Likewise.
56080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
56081         Likewise.
56082         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
56083         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
56084         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
56085         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
56086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
56087         file.
56088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
56089         file.
56090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
56091         file.
56092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
56093         file.
56094         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
56095         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
56096         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
56097         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
56098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
56099         new VIS2 routines.
56100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
56101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
56102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
56103         Likewise.
56104         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
56105         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
56106         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
56107         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
56108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
56109         routines to libm-sysdep_routines.
56110         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
56111
56112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
56113         fdim/fdimf to libm-sysdep_routines.
56114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
56115         file.
56116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
56117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
56118         file.
56119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
56120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
56121         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
56122         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
56123         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
56124         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
56125         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
56126
56127 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
56128
56129         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
56130         to optimize copies.
56131
56132         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
56133         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
56134         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56135
56136         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
56137         local variable MPTWO.
56138         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
56139         Likewise.
56140
56141 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
56142
56143         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
56144         GLOB_NOESCAPE.
56145
56146 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
56147
56148         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
56149
56150 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
56151
56152         * manual/pattern.texi (glob_t): Document gl_flags.
56153         (glob64_t): Likewise.
56154
56155 2013-01-11  David S. Miller  <davem@davemloft.net>
56156
56157         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
56158         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
56159         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
56160         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
56161         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
56162         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
56163         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
56164         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
56165         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
56166         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
56167         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
56168         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
56169         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
56170
56171         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
56172         sparc V9 rather than using V8 code.
56173         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
56174         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
56175
56176         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
56177         Move to...
56178         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
56179         Here.
56180
56181 2013-01-11  Roland McGrath  <roland@hack.frob.com>
56182
56183         [BZ #14941]
56184         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
56185         not in the main loop.
56186         * configure: Regenerated.
56187
56188 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
56189
56190         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
56191         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
56192         to just #else.
56193         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
56194         [!__GLIBC_HAVE_LONG_LONG] case.
56195         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
56196         condition to just #else.
56197         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
56198         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
56199         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
56200         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
56201         unconditional.
56202         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
56203         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
56204         #elif condition to just #else.
56205         * sysdeps/unix/sysv/linux/sys/sysmacros.h
56206         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
56207         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
56208         #elif condition to just #else.
56209
56210 2013-01-11  Steve Ellcey  <sellcey@mips.com>
56211
56212         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
56213         (EF_MIPS_ARCH_64): Fix value.
56214         (EF_MIPS_ARCH_32R2): New.
56215         (EF_MIPS_ARCH_64R2): New.
56216
56217 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
56218
56219         * Makeconfig (+link-pie-before-libc): New.
56220         (+link-pie-after-libc): Likewise.
56221         (+link-pie-tests): Likewise.
56222         (+link-pie): Rewritten.
56223         (link-before-libc): Remove $(config-LDFLAGS).
56224         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
56225         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
56226         (config-LDFLAGS): Renamed to ...
56227         (rtld-LDFLAGS): This.
56228         (rtld-tests-LDFLAGS): New macro.
56229         (link-libc-rpath-link): Likewise.
56230         (link-libc-tests-rpath-link): Likewise.
56231         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
56232         (link-libc): Prepand $(link-libc-rpath-link).
56233         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
56234         (test-program-prefix): New macro.
56235         (test-via-rtld-prefix): Likewise.
56236         (test-program-cmd): Likewise.
56237         (host-test-program-cmd): Likewise.
56238         * Makefile ($(common-objpfx)testrun.sh): Replace
56239         $(run-program-prefix) with $(test-program-prefix).
56240         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
56241         $(rtld-LDFLAGS).
56242         ($(common-objpfx)shlib.lds): Likewise.
56243         (build-module-helper): Likewise.
56244         ($(common-objpfx)format.lds): Likewise.
56245         * Rules (binaries-pie-tests): New.
56246         (binaries-pie-notests): Likewise.
56247         (binaries-pie): Rewritten.
56248         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
56249         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
56250         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
56251         (make-test-out): Replace $(host-built-program-cmd) with
56252         $(host-test-program-cmd).
56253         * config.make.in (build-hardcoded-path-in-tests): New variable.
56254         * configure.in (--enable-hardcoded-path-in-tests): New configure
56255         option.
56256         (hardcoded_path_in_tests): New AC_SUBST.
56257         * configure: Regenerated.
56258         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
56259         $(built-program-cmd) with $(test-program-cmd).
56260         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
56261         (test_program_cmd): This.
56262         * elf/Makefile ($(objpfx)order.out): Run test with
56263         $(test-program-prefix).
56264         ($(objpfx)order2.out): Likewise.
56265         ($(objpfx)tst-initorder.out): Likewise.
56266         ($(objpfx)tst-initorder2.out): Likewise.
56267         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
56268         $(test-program-cmd).
56269         ($(objpfx)tst-array1-static.out): Likewise.
56270         ($(objpfx)tst-array2.out): Likewise.
56271         ($(objpfx)tst-array3.out): Likewise.
56272         ($(objpfx)tst-array4.out): Likewise.
56273         ($(objpfx)tst-array5.out): Likewise.
56274         ($(objpfx)tst-array5-static.out): Likewise.
56275         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
56276         $(test-program-cmd).
56277         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
56278         $(run-program-prefix) with $(test-program-prefix).
56279         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
56280         (test_program_prefix): This.
56281         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
56282         $(run-program-prefix) with $(test-program-prefix).
56283         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
56284         (test_program_prefix): This.
56285         * iconvdata/tst-tables.sh: Likewise.
56286         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
56287         $(run-program-prefix) with $(test-program-prefix).
56288         ($(objpfx)tst-translit.out): Likewise.
56289         ($(objpfx)tst-gettext2.out): Likewise.
56290         ($(objpfx)tst-gettext4.out): Likewise.
56291         ($(objpfx)tst-gettext6.out): Likewise.
56292         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
56293         (test_program_prefix): This.
56294         * intl/tst-gettext2.sh: Likewise.
56295         * intl/tst-gettext4.sh  Likewise.
56296         * intl/tst-gettext6.sh: Likewise.
56297         * intl/tst-translit.sh: Likewise.
56298         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
56299         with $(test-program-cmd).
56300         * libio/Makefile ($(objpfx)test-freopen.out): Replace
56301         $(run-program-prefix) with $(test-program-prefix).
56302         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
56303         (test_program_prefix): This.
56304         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
56305         $(run-program-prefix) with $(test-program-prefix).
56306         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
56307         (test_program_prefix): This.
56308         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
56309         * posix/Makefile ($(objpfx)globtest.out): Replace
56310         $(run-via-rtld-prefix) and $(test-wrapper) with
56311         $(test-program-prefix) and $(test-via-rtld-prefix).
56312         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
56313         $(test-program-prefix).
56314         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
56315         $(host-test-program-cmd).
56316         (tst-spawn-ARGS): Likewise.
56317         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
56318         $(test-program-prefix).
56319         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
56320         (test_via_rtld_prefix): This.
56321         (test_wrapper): Renamed to ...
56322         (test_program_prefix): This.
56323         (run_program_prefix): Replaced by test_program_prefix.
56324         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
56325         (test_program_prefix): This.
56326         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
56327         with $(host-test-program-cmd).
56328         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
56329         $(run-program-prefix) with $(test-program-prefix).
56330         ($(objpfx)tst-printf.out): Likewise.
56331         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
56332         $(test-program-cmd).
56333         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
56334         (test_program_prefix): This.
56335         * stdio-common/tst-unbputc.sh: Likewise.
56336         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
56337         $(run-program-prefix) with $(test-program-prefix).
56338         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
56339         (test_program_prefix): This.
56340         * string/Makefile ($(objpfx)tst-svc.out):  Replace
56341         $(built-program-cmd) with $(test-program-cmd).
56342
56343 2013-01-11  Andreas Jaeger  <aj@suse.de>
56344
56345         [BZ #15003]
56346         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
56347         value. Sync with Linux 3.7.
56348
56349 2013-01-10  David S. Miller  <davem@davemloft.net>
56350
56351         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
56352         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
56353         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
56354
56355 2013-01-10  Roland McGrath  <roland@hack.frob.com>
56356
56357         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
56358         never set.
56359         * configure: Regenerated.
56360
56361 2013-01-10  David S. Miller  <davem@davemloft.net>
56362
56363         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
56364         sparc V9 rather than using V8 code.
56365         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
56366         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
56367
56368 2013-01-10  Roland McGrath  <roland@hack.frob.com>
56369
56370         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
56371         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
56372         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
56373         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
56374         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
56375         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
56376         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
56377         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
56378         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
56379         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
56380         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
56381         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
56382         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
56383         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
56384         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
56385         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
56386         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
56387         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
56388         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
56389         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
56390         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
56391         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
56392         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
56393         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
56394         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
56395         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
56396         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
56397
56398 2013-01-10  David S. Miller  <davem@davemloft.net>
56399
56400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56401
56402 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
56403
56404         * posix/Makefile (tests-static): New variable.
56405         (tests): Add $(tests-static).
56406         (tst-exec-static-ARGS): New variable.
56407         (tst-spawn-static-ARGS): Likewise.
56408         * posix/tst-exec-static.c: New file.
56409         * posix/tst-spawn-static.c: Likewise.
56410         * posix/tst-exec.c: Support run directly.
56411         * posix/tst-spawn.c: Likewise.
56412
56413 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
56414
56415         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
56416         long.
56417         * math/bits/mathcalls.h (llrint): Likewise.
56418         (llround): Likewise.
56419         * stdlib/stdlib.h (struct drand48_data): Likewise.
56420         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
56421         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
56422         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
56423         Likewise.
56424         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
56425         Likewise.
56426         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
56427         (elf_greg_t): Likewise.
56428         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
56429         (__jmp_buf): Likewise.
56430         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
56431         definitions.
56432         (llrint): Likewise, for all definitions.
56433         (llrintl): Likewise.
56434
56435         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
56436         Remove [__GNUC__] condition.
56437         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
56438         condition to just [__USE_ISOC99].
56439         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
56440
56441 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
56442
56443         [BZ #14200]
56444         * sysdeps/unix/sysv/linux/x86/bits/environments.h
56445         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
56446         defined.
56447         (_POSIX_V6_ILP32_OFF32): Likewise.
56448         (_XBS5_ILP32_OFF32): Likewise.
56449         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
56450         (__ILP32_OFFBIG_LDFLAGS): Likewise.
56451
56452 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
56453
56454         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
56455
56456         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
56457         doubles __mpexp_twomm1.  Adjust usage.
56458         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
56459         Remove.
56460
56461 2013-01-10  Andreas Schwab  <schwab@suse.de>
56462
56463         [BZ #14964]
56464         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
56465         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
56466
56467 2013-01-09  David S. Miller  <davem@davemloft.net>
56468
56469         [BZ #15003]
56470         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
56471         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
56472         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
56473         (TCP_FASTOPEN): Define.
56474         (tcp_repair_opt): New structure.
56475         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
56476         enum values.
56477         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
56478         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
56479         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
56480         (tcp_cookie_transactions): New structure.
56481
56482 2013-01-09  Anton Blanchard  <anton@samba.org>
56483
56484         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
56485         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
56486         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
56487         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
56488
56489 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
56490
56491         * include/features.h (__USE_ANSI): Remove.
56492
56493 2013-01-09  Roland McGrath  <roland@hack.frob.com>
56494
56495         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
56496
56497         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
56498
56499 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
56500
56501         * sysdeps/s390/fpu/libm-test-ulps: Update.
56502
56503         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56504
56505         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
56506         (__acr): Likewise.
56507         (__cpy): Likewise.
56508         (norm): Likewise.
56509         (denorm): Likewise.
56510         (__mp_dbl): Likewise.
56511         (__dbl_mp): Likewise.
56512         (add_magnitudes): Likewise.
56513         (sub_magnitudes): Likewise.
56514         (__add): Likewise.
56515         (__sub): Likewise.
56516         (__mul): Likewise.
56517         (__inv): Likewise.
56518         (__dvd): Likewise.
56519         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
56520         (__acr): Likewise.
56521         (__cpy): Likewise.
56522         (norm): Likewise.
56523         (denorm): Likewise.
56524         (__mp_dbl): Likewise.
56525         (__dbl_mp): Likewise.
56526         (add_magnitudes): Likewise.
56527         (sub_magnitudes): Likewise.
56528         (__add): Likewise.
56529         (__sub): Likewise.
56530         (__mul): Likewise.
56531         (__inv): Likewise.
56532         (__dvd): Likewise.
56533         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
56534         (__acr): Likewise.
56535         (__cpy): Likewise.
56536         (norm): Likewise.
56537         (denorm): Likewise.
56538         (__mp_dbl): Likewise.
56539         (__dbl_mp): Likewise.
56540         (add_magnitudes): Likewise.
56541         (sub_magnitudes): Likewise.
56542         (__add): Likewise.
56543         (__sub): Likewise.
56544         (__mul): Likewise.
56545         (__inv): Likewise.
56546         (__dvd): Likewise.
56547
56548 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
56549
56550         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
56551         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
56552         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
56553         2 && __USE_EXTERN_INLINES]: Likewise.
56554
56555 2013-01-08  Andreas Jaeger  <aj@suse.de>
56556
56557         [BZ# 14985]
56558         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
56559         Remove.
56560         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
56561         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
56562
56563 2013-01-07  Anton Blanchard  <anton@samba.org>
56564
56565         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
56566         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
56567         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
56568         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
56569         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
56570         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
56571         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
56572         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
56573         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
56574         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
56575         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
56576         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
56577         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
56578         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
56579         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
56580         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
56581         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
56582         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
56583         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
56584         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
56585         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
56586         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
56587         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
56588         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
56589         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
56590         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
56591         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
56592         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
56593         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
56594         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
56595         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
56596         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56597         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
56598         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
56599         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
56600         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
56601         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
56602         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
56603         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
56604         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
56605         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
56606         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
56607         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
56608
56609 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
56610
56611         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
56612         (__MALLOC_PMT): Likewise.
56613         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
56614         [__GNUC__], only on [_LIBC].
56615         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
56616         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
56617         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
56618         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
56619         forward declaration.
56620         (realloc_hook_ini): Likewise.
56621         (memalign_hook_ini): Likewise.
56622         (__libc_memalign): Do not use __MALLOC_PMT in variable
56623         declaration.
56624         (__libc_valloc): Likewise.
56625         (__libc_pvalloc): Likewise.
56626         (__libc_calloc): Likewise.
56627         (__posix_memalign): Likewise.
56628
56629         [BZ #14996]
56630         * math/s_casinh.c: Include <float.h>.
56631         (__casinh): Do not do computation with squaring and square root
56632         for large arguments.
56633         * math/s_casinhf.c: Include <float.h>.
56634         (__casinhf): Do not do computation with squaring and square root
56635         for large arguments.
56636         * math/s_casinhl.c: Include <float.h>.
56637         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
56638         (__casinhl): Do not do computation with squaring and square root
56639         for large arguments.
56640         * math/libm-test.inc (casin_test): Add more tests.
56641         (casinh_test): Likewise.
56642         * sysdeps/i386/fpu/libm-test-ulps: Update.
56643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56644
56645 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
56646
56647         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
56648         (__x86_64_raw_data_cache_size): Likewise.
56649         (__x86_64_data_cache_size_half): Likewise.
56650         (__x86_64_raw_data_cache_size_half): Likewise.
56651         (__x86_64_shared_cache_size): Likewise.
56652         (__x86_64_raw_shared_cache_size): Likewise.
56653         (__x86_64_shared_cache_size_half): Likewise.
56654         (__x86_64_raw_shared_cache_size_half): Likewise.
56655         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
56656         to ...
56657         (__x86_data_cache_size): This.
56658         (__x86_64_raw_data_cache_size): Renamed to ...
56659         (__x86_raw_data_cache_size): This.
56660         (__x86_64_data_cache_size_half): Renamed to ...
56661         (__x86_data_cache_size_half): This.
56662         (__x86_64_raw_data_cache_size_half): Renamed to ...
56663         (__x86_raw_data_cache_size_half): This.
56664         (__x86_64_shared_cache_size): Renamed to ...
56665         (__x86_shared_cache_size): This.
56666         (__x86_64_raw_shared_cache_size): Renamed to ...
56667         (__x86_raw_shared_cache_size): This.
56668         (__x86_64_shared_cache_size_half): Renamed to ...
56669         (__x86_shared_cache_size_half): This.
56670         (__x86_64_raw_shared_cache_size_half): Renamed to ...
56671         (__x86_raw_shared_cache_size_half): This.
56672         * sysdeps/x86_64/memcpy.S: Updated.
56673         * sysdeps/x86_64/memset.S: Likewise.
56674         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
56675         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
56676         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
56677
56678 2013-01-04  David S. Miller  <davem@davemloft.net>
56679
56680         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56681
56682 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
56683
56684         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
56685         1 to avoid redefinition warning.
56686         (__USE_GNU): Don't define.
56687         (init_signaling_nan): Protoize.
56688
56689         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56690
56691 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
56692
56693         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
56694         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
56695         (__cpymn): Likewise.
56696         (norm): Remove commented code.
56697         (denorm): Likewise.
56698         (__mp_dbl): Likewise.
56699         (__inv): Likewise.
56700         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
56701         (__cpymn): Likewise.
56702         (norm): Remove commented code.
56703         (denorm): Likewise.
56704         (__mp_dbl): Likewise.
56705         (__inv): Likewise.
56706
56707         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
56708         mp_no value for 1.0 and 2.0.
56709         (norm): Use RADIXI instead of radixi.d.
56710         (denorm): Likewise.
56711         (__mul): Use 0.0 instead of zero.d.
56712         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
56713         mp_no value for 1.0 and 2.0.
56714         (norm): Use RADIXI instead of radixi.d.
56715         (denorm): Likewise.
56716         (__mul): Use 0.0 instead of zero.d.
56717
56718 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
56719
56720         [BZ #14994]
56721         * math/s_casinh.c (__casinh): Reduce finite argument to first
56722         quadrant then set signs of results at the end.
56723         * math/s_casinhf.c (__casinhf): Likewise.
56724         * math/s_casinhl.c (__casinhl): Likewise.
56725         * math/libm-test.inc (casin_test): Add more tests.
56726         (casinh_test): Likewise.
56727         * sysdeps/i386/fpu/libm-test-ulps: Update.
56728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56729
56730 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
56731
56732         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
56733
56734         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
56735
56736         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
56737         declarations.
56738         (denorm): Likewise.
56739         (__mp_dbl): Likewise.
56740         (__inv): Likewise.
56741
56742         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
56743         and adjust the header comment.
56744
56745         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
56746         variable name from declaration.
56747
56748 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
56749
56750         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56751         Initialize COMMON_CPUID_INDEX_7 element.
56752         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
56753         (CPUID_RTM): Likewise.
56754         (HAS_RTM): Likewise.
56755         (COMMON_CPUID_INDEX_7): New enum.
56756
56757 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
56758
56759         [BZ #14981]
56760         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
56761         size is zero, record memory as freed.
56762
56763 2013-01-03  Andreas Jaeger  <aj@suse.de>
56764
56765         * po/ia.po: Add new Interlingua translation.
56766
56767 2012-01-03  Allan McRae  <allan@archlinux.org>
56768
56769         * locale/programs/localedef.c: Fix description of '--posix' flag.
56770
56771 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
56772
56773         * NEWS: Update dates in second copyright notice.
56774         * README: Update copyright dates in example.
56775         * manual/libc.texinfo: Update copyright dates.
56776         * scripts/test-installation.pl: Update copyright date in --version
56777         output.
56778
56779         * hurd/ctty-input.c: Fix copyright notice formatting.
56780         * hurd/ctty-output.c: Likewise.
56781         * hurd/dtable.c: Likewise.
56782         * hurd/hurd-raise.c: Likewise.
56783         * hurd/hurdprio.c: Likewise.
56784         * hurd/msgportdemux.c: Likewise.
56785         * misc/sys/file.h: Likewise.
56786         * misc/sys/ioctl.h: Likewise.
56787         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
56788         * sysdeps/mach/hurd/chdir.c: Likewise.
56789         * sysdeps/mach/hurd/fchdir.c: Likewise.
56790         * sysdeps/mach/hurd/rename.c: Likewise.
56791         * sysdeps/mach/hurd/rmdir.c: Likewise.
56792         * sysdeps/mach/hurd/seekdir.c: Likewise.
56793         * sysdeps/mach/hurd/setsid.c: Likewise.
56794         * sysdeps/posix/wait3.c: Likewise.
56795
56796         * All files with FSF copyright notices: Update copyright dates
56797         using scripts/update-copyrights.
56798         * intl/plural.c: Regenerated.
56799         * locale/programs/charmap-kw.h: Likewise.
56800         * locale/programs/locfile-kw.h: Likewise.
56801
56802 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
56803
56804         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
56805         four values.
56806
56807         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
56808         calculation loop and add branch prediction.
56809
56810         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
56811         check access beyond bounds of m1np.
56812
56813         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
56814         MPTWO.
56815         (__inv): Remove local variable MPTWO to use the global
56816         constant.
56817         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
56818         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
56819         variable MPTWO.
56820         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
56821         MP3HALFS static const.
56822
56823 2013-01-01  David S. Miller  <davem@davemloft.net>
56824
56825         * po/ca.po: Update from translation team.
56826
56827 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
56828
56829         * scripts/update-copyrights: New file.
56830         * Makeconfig: Reformat copyright notice.
56831         * ctype/ctype.h: Likewise.
56832         * debug/swprintf_chk.c: Likewise.
56833         * elf/dl-cache.c: Likewise.
56834         * elf/dl-debug.c: Likewise.
56835         * elf/dl-object.c: Likewise.
56836         * grp/initgroups.c: Likewise.
56837         * hurd/Makefile: Likewise.
56838         * hurd/hurd/signal.h: Likewise.
56839         * hurd/hurdfault.c: Likewise.
56840         * hurd/hurdioctl.c: Likewise.
56841         * hurd/hurdlookup.c: Likewise.
56842         * hurd/intr-msg.c: Likewise.
56843         * iconv/gconv_open.c: Likewise.
56844         * libio/swprintf.c: Likewise.
56845         * locale/lc-ctype.c: Likewise.
56846         * locale/nl_langinfo.c: Likewise.
56847         * mach/Machrules: Likewise.
56848         * mach/Makefile: Likewise.
56849         * malloc/obstack.h: Likewise.
56850         * manual/Makefile: Likewise.
56851         * manual/tsort.awk: Likewise.
56852         * misc/bits/stab.def: Likewise.
56853         * nis/nis_print_group_entry.c: Likewise.
56854         * nis/nis_table.c: Likewise.
56855         * nis/nss_compat/compat-pwd.c: Likewise.
56856         * nis/nss_compat/compat-spwd.c: Likewise.
56857         * po/Makefile: Likewise.
56858         * posix/fnmatch.c: Likewise.
56859         * posix/regex.h: Likewise.
56860         * resolv/Makefile: Likewise.
56861         * resolv/nss_dns/dns-network.c: Likewise.
56862         * resolv/res_hconf.c: Likewise.
56863         * scripts/gen-sorted.awk: Likewise.
56864         * soft-fp/soft-fp.h: Likewise.
56865         * stdio-common/printf.h: Likewise.
56866         * stdlib/monetary.h: Likewise.
56867         * stdlib/random.c: Likewise.
56868         * stdlib/random_r.c: Likewise.
56869         * sysdeps/generic/Makefile: Likewise.
56870         * sysdeps/gnu/Makefile: Likewise.
56871         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
56872         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
56873         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
56874         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
56875         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
56876         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
56877         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
56878         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
56879         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
56880         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
56881         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
56882         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
56883         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
56884         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
56885         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
56886         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
56887         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
56888         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
56889         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56890         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
56891         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
56892         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
56893         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
56894         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
56895         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
56896         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
56897         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
56898         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
56899         * sysdeps/mach/hurd/errnos.awk: Likewise.
56900         * sysdeps/mach/hurd/fork.c: Likewise.
56901         * sysdeps/mach/hurd/getcwd.c: Likewise.
56902         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
56903         * sysdeps/mach/hurd/mmap.c: Likewise.
56904         * sysdeps/mach/hurd/utimes.c: Likewise.
56905         * sysdeps/mach/hurd/xmknod.c: Likewise.
56906         * sysdeps/posix/profil.c: Likewise.
56907         * sysdeps/posix/readdir_r.c: Likewise.
56908         * sysdeps/powerpc/bits/mathdef.h: Likewise.
56909         * sysdeps/powerpc/bits/setjmp.h: Likewise.
56910         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
56911         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
56912         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
56913         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
56914         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
56915         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
56916         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56917         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
56918         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
56919         * sysdeps/pthread/lio_listio.c: Likewise.
56920         * sysdeps/sparc/dl-procinfo.h: Likewise.
56921         * sysdeps/unix/i386/sysdep.S: Likewise.
56922         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
56923         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
56924         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
56925         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
56926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
56927         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
56928         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
56929         * sysdeps/unix/sysv/linux/speed.c: Likewise.
56930         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
56931         * sysdeps/wordsize-32/divdi3.c: Likewise.
56932         * time/sys/time.h: Likewise.
56933         * wcsmbs/Makefile: Likewise.
56934
56935 2013-01-01  David S. Miller  <davem@davemloft.net>
56936
56937         * po/fr.po: Update from translation team.
56938
56939         * catgets/gencat.c: Update copyright year.
56940         * csu/version.c: Likewise.
56941         * debug/catchsegv.sh: Likewise.
56942         * debug/pcprofiledump.c: Likewise.
56943         * debug/xtrace.sh: Likewise.
56944         * elf/ldconfig.c: Likewise.
56945         * elf/ldd.bash.in: Likewise.
56946         * elf/pldd.c: Likewise.
56947         * elf/sotruss.ksh: Likewise.
56948         * elf/sprof.c: Likewise.
56949         * iconv/iconv_prog.c: Likewise.
56950         * iconv/iconvconfig.c: Likewise.
56951         * locale/programs/locale.c: Likewise.
56952         * locale/programs/localedef.c: Likewise.
56953         * login/programs/pt_chown.c: Likewise.
56954         * malloc/memusage.sh: Likewise.
56955         * malloc/memusagestat.c: Likewise.
56956         * malloc/mtrace.pl: Likewise.
56957         * nscd/nscd.c: Likewise.
56958         * nss/getent.c: Likewise.
56959         * nss/makedb.c: Likewise.
56960         * posix/getconf.c: Likewise.
56961
56962 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
56963
56964         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
56965         numbers.
56966
56967 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
56968
56969         * math/bits/mathcalls.h (modf): Use __nonnull.
56970
56971 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
56972
56973         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
56974         (split): Use macro CN instead of the bare value.
56975         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
56976         could be used.
56977         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
56978         instead of the bare value.
56979         (power1): Likewise.
56980
56981 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56982
56983         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
56984         __ATAN_TWOM.
56985         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
56986
56987         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
56988         their values.
56989         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
56990         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
56991         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
56992         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
56993
56994 2012-12-28  Andreas Jaeger  <aj@suse.de>
56995
56996         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
56997         values are from Linux 3.7.
56998
56999         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
57000         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
57001
57002 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57003
57004         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
57005         TRUE case.
57006
57007         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
57008         (norm): Likewise.
57009         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
57010         variables with preprocessor constants.
57011         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
57012         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
57013         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
57014
57015 2012-12-27  Bruno Haible  <bruno@clisp.org>
57016
57017         [BZ #14317]
57018         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
57019         only if needed.
57020
57021 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
57022
57023         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
57024         and use variable directly.
57025         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
57026
57027         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
57028         MPONE.
57029         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
57030         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
57031         variable MPONE.
57032         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
57033         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
57034         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
57035         include directive.  Remove local variable MPONE.
57036         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
57037         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
57038         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
57039
57040 2012-12-25  David S. Miller  <davem@davemloft.net>
57041
57042         * version.h (RELEASE): Set to "development".
57043         (VERSION): Set to "2.17.90".
57044         * NEWS: Add 2.18 section.
57045
57046 2012-12-21  David S. Miller  <davem@davemloft.net>
57047
57048         * po/hr.po: Update from translation team.
57049
57050 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57051
57052         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
57053
57054 2012-12-19  Steve Ellcey  <sellcey@mips.com>
57055
57056         * NEWS:  Mention new memcpy for MIPS.
57057
57058 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
57059
57060         * manual/contrib.texi (Contributors): Spelling correction.
57061
57062 2012-12-15  David S. Miller  <davem@davemloft.net>
57063
57064         * po/ru.po: Update from translation team.
57065
57066 2012-12-13  David S. Miller  <davem@davemloft.net>
57067
57068         * NEWS: Mention IFUNC testsuite enhancements.
57069
57070         * po/pl.po: Update from translation team.
57071         * po/bg.po: Likewise.
57072
57073         * manual/contrib.texi (Contributors): Update entries for Hongjiu
57074         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
57075
57076 2012-12-11  David S. Miller  <davem@davemloft.net>
57077
57078         * po/sv.po: Update from translation team.
57079
57080         * po/vi.po: Update from translation team.
57081
57082         * po/cs.po: Update from translation team.
57083
57084         * po/de.po: Update from translation team.
57085         * po/eo.po: Likewise.
57086         * po/nl.po: Likewise.
57087
57088 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
57089
57090         [BZ #14246]
57091         * manual/argp.texi (Argp Helper Functions): Move node to follow
57092         Argp Parsing State.
57093
57094         [BZ #14872]
57095         * manual/conf.texi (Limits on File System Capacity): Mention if
57096         terminating null is included in the max size.
57097
57098 2012-12-10  Andreas Jaeger  <aj@suse.de>
57099
57100         * po/cs.po: Update from translation team.
57101
57102 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
57103
57104         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
57105         void pointer and cast to uintptr_t.
57106         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
57107         path.
57108         * sysdeps/s390/s390-64/memcpy.S: Likewise.
57109         * sysdeps/s390/s390-64/memset.S: Likewise.
57110
57111 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
57112
57113         [BZ #14833]
57114         * menual/message.texi (Message Translation): Fix typos.
57115         (Helper programs for gettext): Likewise.
57116
57117 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
57118
57119         [BZ #14898]
57120         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
57121         Change to -1.
57122
57123 2012-12-07  David S. Miller  <davem@davemloft.net>
57124
57125         * po/libc.pot: Update.
57126
57127 2012-12-07  Richard Henderson  <rth@redhat.com>
57128
57129         [BZ #10114]
57130         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
57131         normal/normal case to before the switch.
57132         (_FP_DIV): Likewise.
57133
57134 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
57135             Mike Frysinger  <vapier@gentoo.org>
57136
57137         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
57138         check for __NR_fadvise64_64.
57139
57140 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
57141
57142         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
57143         0, not just to plain "0" as a statement.
57144         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
57145         with cw.
57146
57147 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
57148
57149         * NEWS: Use sourceware.org in Bugzilla URL.
57150
57151 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
57152
57153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
57154         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
57155
57156         * stdio-common/tst-put-error.c (do_test): Add newline to the
57157         padded test to ensure flush.
57158
57159 2012-12-05  Jeff Law  <law@redhat.com>
57160
57161         * sunrpc/etc.rpc (fedfs_admin): Add entry.
57162
57163 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
57164
57165         * README: Don't refer to ports add-on as distributed separately.
57166         Mention AArch64 in list of systems supported in the ports add-on.
57167
57168         * LICENSES: Add more non-FSF copyright and license notices.
57169
57170         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
57171         ((unused)).
57172
57173         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
57174
57175         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
57176         10000 as width of padded output.
57177
57178 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
57179
57180         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
57181
57182         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
57183         variable LX with __attribute__ ((unused)).
57184         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
57185         Likewise.
57186         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
57187         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
57188         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
57189         with __attribute__ ((unused)).
57190
57191 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
57192
57193         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
57194
57195 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
57196
57197         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
57198         (CFLAGS-nldbl-acos.c): New variable.
57199         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
57200         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
57201         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
57202         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
57203         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
57204         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
57205         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
57206         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
57207         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
57208         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
57209         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
57210         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
57211         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
57212         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
57213         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
57214         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
57215         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
57216         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
57217         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
57218         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
57219         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
57220         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
57221         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
57222         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
57223         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
57224         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
57225         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
57226         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
57227         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
57228         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
57229         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
57230         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
57231         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
57232         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
57233         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
57234         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
57235         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
57236         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
57237         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
57238         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
57239         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
57240         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
57241         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
57242         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
57243         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
57244         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
57245         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
57246         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
57247         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
57248         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
57249         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
57250         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
57251         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
57252         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
57253         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
57254         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
57255         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
57256         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
57257         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
57258         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
57259         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
57260         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
57261         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
57262         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
57263         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
57264         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
57265         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
57266         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
57267         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
57268         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
57269         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
57270         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
57271         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
57272         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
57273         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
57274         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
57275         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
57276         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
57277         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
57278         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
57279         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
57280         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
57281         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
57282         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
57283         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
57284         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
57285         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
57286         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
57287         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
57288         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
57289         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
57290         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
57291         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
57292         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
57293         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
57294         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
57295         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
57296
57297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
57298         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
57299
57300         [BZ #14914]
57301         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
57302         whole low double instead of just low 47 bits when splitting values
57303         into two parts.
57304
57305 2012-12-03  Allan McRae  <allan@archlinux.org>
57306
57307         * manual/stdio.texi (Predefined Printf Handlers): Remove
57308         @hsep and @vsep usage.
57309
57310 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
57311
57312         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
57313         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
57314
57315 2012-12-03  Jeff Law  <law@redhat.com>
57316
57317         * time/sys/time.h (settimeofday): Do not mark TV argument
57318         as __nonnull.
57319
57320 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
57321
57322         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
57323         when currently writing and seek to current position when not.
57324         * libio/Makefile (tests): Remove bug-fclose1.
57325         * libio/bug-fclose1.c: Delete.
57326
57327 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
57328
57329         * manual/arith.texi (feenableexcept): Fix typo.
57330         (fedisableexcept): Likewise.
57331
57332 2012-11-30  Roland McGrath  <roland@hack.frob.com>
57333
57334         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
57335         second, differently-typed declaration, rather than a cast.
57336
57337 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
57338
57339         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
57340         * include/rpc/svc.h: ... here.
57341
57342 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
57343
57344         [BZ #13013]
57345         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
57346         depending n and resplen2 to catch cases where answer
57347         equals answerp2.
57348
57349 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
57350
57351         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
57352         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
57353
57354 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
57355
57356         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
57357
57358 2012-11-29  Roland McGrath  <roland@hack.frob.com>
57359
57360         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
57361
57362 2012-11-28  Jeff Law  <law@redhat.com>
57363
57364         [BZ #13761]
57365         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
57366         dataset_temporary.  Track alloca usage into alloca_used.
57367         If dataset is large allocate and release it via malloc/free.
57368
57369 2012-06-04  Florian Weimer  <fweimer@redhat.com>
57370
57371         [BZ #14197]
57372         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
57373
57374 2012-11-28  David S. Miller  <davem@davemloft.net>
57375
57376         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57377
57378 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
57379
57380         [BZ #14803]
57381         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
57382         of pi/2 rounded to nearest to 64 bits.
57383         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
57384         nearest to 64 bits.
57385         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
57386         bits.
57387
57388 2012-11-28  Jeff Law <law@redhat.com>
57389             Martin Osvald <mosvald@redhat.com>
57390
57391         [BZ #14889]
57392         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
57393         * sunrpc/svc.c: Include time.h.
57394         (__svc_accept_failed): New function.
57395         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
57396         any reason other than EINTR, call __svc_accept_failed.
57397         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
57398         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
57399
57400 2012-11-28  Andreas Schwab  <schwab@suse.de>
57401
57402         * scripts/abilist.awk: Also handle indirect functions in .opd
57403         section.
57404
57405 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
57406
57407         [BZ #13881]
57408         * sysdeps/x86/fpu/powl_helper.c: New file.
57409         * sysdeps/x86/fpu/Makefile: Likewise.
57410         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
57411         (p3): New object.
57412         (__ieee754_powl): Use __powl_helper for finite arguments except
57413         integer exponents below 8.
57414         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
57415         (p3): New object.
57416         (__ieee754_powl): Use __powl_helper for finite arguments except
57417         integer exponents below 8.
57418         * math/libm-test.inc (pow_test): Add more tests and enable some
57419         previously disabled tests.
57420         * sysdeps/i386/fpu/libm-test-ulps: Update.
57421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57422
57423 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57424             Carlos O'Donell  <carlos_odonell@mentor.com>
57425
57426         * nss/makedb.c (is_prime): Assert that input is odd and greater
57427         than 4.  Note that fact in a comment too.
57428         (next_prime): Add 4 to input.
57429
57430 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
57431
57432         [BZ #11741]
57433         * libio/Makefile (tests): Add test case tst-fwrite-error.
57434         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
57435         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
57436         * libio/tst-fwrite-error.c: New test case.
57437
57438 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
57439
57440         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
57441         before casting to void *.
57442         * include/libc-internal.h (__pointer_type): New macro.
57443         (__integer_if_pointer_type_sub): Likewise.
57444         (__integer_if_pointer_type): Likewise.
57445         (cast_to_integer): Likewise.
57446         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
57447         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
57448         before casting to atomic64_t.
57449         (atomic_exchange_acq): Likewise.
57450         (__arch_exchange_and_add_body): Likewise.
57451         (__arch_add_body): Likewise.
57452         (atomic_add_negative): Likewise.
57453         (atomic_add_zero): Likewise.
57454
57455 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
57456
57457         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
57458         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
57459         (add_fdes): Likewise.
57460         (linear_search_fdes): Likewise.
57461         (binary_search_unencoded_fdes): Likewise.
57462
57463 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
57464
57465         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
57466
57467 2012-11-24  Adam Conrad  <adconrad@0c3.net>
57468
57469         * configure.in: Autodetect C++ header directories.
57470         * configure: Regenerated.
57471
57472 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
57473
57474         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
57475
57476 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
57477
57478         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57479
57480 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
57481
57482         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
57483         LDBL_MANT_DIG == 106]: Disable some tests.
57484         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
57485         Likewise.
57486         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
57487         Likewise.
57488
57489         [BZ #14871]
57490         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
57491         input for small inputs.  Return +/- pi/2 for large inputs.
57492         * math/libm-test.inc (atan_test): Add more tests.
57493
57494         * sysdeps/generic/unwind-dw2-fde-glibc.c
57495         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
57496         __attribute__ ((unused)).
57497
57498         [BZ #14645]
57499         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
57500         x * y if x and y are nonzero and z is zero.
57501
57502         [BZ #14811]
57503         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
57504         nonzero exponents with absolute value below 0x1p-117 to +/-
57505         0x1p-117.
57506
57507         [BZ #14869]
57508         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
57509         up arguments below 2**-450, not just those below 2**-500.
57510         * math/libm-test.inc (hypot_test): Add another test.
57511
57512         [BZ #14868]
57513         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
57514         Return a+b for ratio over 2**120, not 2**60.
57515         * math/libm-test.inc (hypot_test): Add another test.
57516
57517         * math/libm-test.inc (clog_test): Use
57518         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
57519         (clog10_test): Likewise.
57520
57521         [BZ #6778]
57522         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
57523
57524 2012-11-22  Andreas Schwab  <schwab@suse.de>
57525
57526         * sysdeps/i386/fpu/libm-test-ulps: Update.
57527
57528 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
57529
57530         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
57531         printf output with newline.
57532
57533 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
57534
57535         [BZ #14865]
57536         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
57537         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
57538         -z nodlopen, -z initfirst and -z execstack support.
57539         * configure: Regenerated.
57540
57541         * elf/elf.h (DF_1_NODIRECT): New macro.
57542         (DF_1_IGNMULDEF): Likewise.
57543         (DF_1_NOKSYMS): Likewise.
57544         (DF_1_NOHDR): Likewise.
57545         (DF_1_EDITED): Likewise.
57546         (DF_1_NORELOC): Likewise.
57547         (DF_1_SYMINTPOSE): Likewise.
57548         (DF_1_GLOBAUDIT): Likewise.
57549         (DF_1_SINGLETON): Likewise.
57550         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
57551         DT_1_SUPPORTED_MASK bits.
57552         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
57553
57554 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
57555
57556         * sysdeps/unix/make-syscalls.sh: Document prefixes.
57557
57558 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
57559
57560         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
57561         macro.
57562
57563         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
57564         (sendmmsg): Move declarations...
57565         * socket/sys/socket.h: ... here.
57566         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
57567         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
57568         include it from...
57569         * socket/recvmmsg.c: ... this new file.
57570         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
57571         (sendmmsg): Rename to __sendmmsg, create weak alias and make
57572         definition of __sendmmsg hidden.
57573         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
57574         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
57575         Move ENOSYS stub into and include it from...
57576         * socket/sendmmsg.c: ... this new file.
57577         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
57578         (sysdep_routines): Move recvmmsg and sendmmsg...
57579         * socket/Makefile (routines): ... here.
57580         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
57581         (GLIBC_PRIVATE): Add __sendmmsg.
57582         * include/sys/socket.h (__sendmmsg): Add declarations.
57583         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
57584         sendmmsg.
57585
57586 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
57587
57588         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
57589         variable I1 with __attribute__ ((unused)).
57590         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
57591
57592 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
57593
57594         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
57595         DUMMY variables with __attribute__ ((unused)).
57596
57597         * bits/byteswap.h: Include <bits/types.h>.
57598         (__bswap_64): Use __uint64_t instead of unsigned long long int.
57599
57600 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
57601
57602         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
57603         string_t.  Do not manually set errno.
57604         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
57605         length with __strnlen.  Make sure to both set errno and return it on
57606         failure.
57607
57608 2012-11-19  David S. Miller  <davem@davemloft.net>
57609
57610         With help from Joseph Myers.
57611         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
57612         very large arguments properly.
57613         * math/libm-test.inc (atan_test): New tests.
57614         (atan2_test): New tests.
57615         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57616         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57617
57618 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
57619
57620         [BZ #14856]
57621         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
57622         Define to 3.
57623
57624         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
57625         [POSIX] (EADDRNOTAVAIL): Likewise.
57626         [POSIX] (EAFNOSUPPORT): Likewise.
57627         [POSIX] (EALREADY): Likewise.
57628         [POSIX] (ECONNABORTED): Likewise.
57629         [POSIX] (ECONNREFUSED): Likewise.
57630         [POSIX] (ECONNRESET): Likewise.
57631         [POSIX] (EDESTADDRREQ): Likewise.
57632         [POSIX] (EDQUOT): Likewise.
57633         [POSIX] (EHOSTUNREACH): Likewise.
57634         [POSIX] (EIDRM): Likewise.
57635         [POSIX] (EISCONN): Likewise.
57636         [POSIX] (ELOOP): Likewise.
57637         [POSIX] (EMULTIHOP): Likewise.
57638         [POSIX] (ENETDOWN): Likewise.
57639         [POSIX] (ENETUNREACH): Likewise.
57640         [POSIX] (ENOBUFS): Likewise.
57641         [POSIX] (ENODATA): Likewise.
57642         [POSIX] (ENOLINK): Likewise.
57643         [POSIX] (ENOMSG): Likewise.
57644         [POSIX] (ENOPROTOOPT): Likewise.
57645         [POSIX] (ENOSR): Likewise.
57646         [POSIX] (ENOSTR): Likewise.
57647         [POSIX] (ENOTCONN): Likewise.
57648         [POSIX] (ENOTSOCK): Likewise.
57649         [POSIX] (EOPNOTSUPP): Likewise.
57650         [POSIX] (EOVERFLOW): Likewise.
57651         [POSIX] (EPROTO): Likewise.
57652         [POSIX] (EPROTONOSUPPORT): Likewise.
57653         [POSIX] (EPROTOTYPE): Likewise.
57654         [POSIX] (ESTALE): Likewise.
57655         [POSIX] (ETIME): Likewise.
57656         [POSIX] (ETXTBSY): Likewise.
57657         [POSIX] (EWOULDBLOCK): Likewise.
57658         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
57659         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
57660         [POSIX] (SEEK_CUR): Likewise.
57661         [POSIX] (SEEK_END): Likewise.
57662         [POSIX || UNIX98] (mode_t): Do not require.
57663         [POSIX] (off_t): Likewise.
57664         [POSIX] (pid_t): Likewise.
57665         [POSIX] (sys/stat.h): Do not allow header.
57666         [POSIX] (unistd.h): Likewise.
57667         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
57668         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
57669         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
57670         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
57671         require.
57672         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
57673         sigevent): Specify elements.
57674         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
57675         entry.
57676         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
57677         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
57678
57679         * conform/data/cpio.h-data [POSIX]: Disable whole file.
57680         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
57681         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
57682         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
57683         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
57684         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
57685         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
57686         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
57687         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
57688         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
57689         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
57690         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
57691         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
57692         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
57693         Likewise.
57694         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
57695         Likewise.
57696         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
57697         Likewise.
57698         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
57699         Likewise.
57700         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
57701         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
57702         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
57703         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
57704         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
57705         Specify lower bound on value.
57706         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
57707         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
57708         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
57709         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
57710         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
57711         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
57712         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
57713         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
57714         value.
57715         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
57716         as optional.
57717         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
57718         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
57719         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
57720         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
57721         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
57722         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
57723         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
57724         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
57725         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
57726         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
57727         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
57728         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
57729         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
57730         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
57731         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
57732         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
57733         entry.
57734         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
57735         optional.
57736         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
57737         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
57738         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
57739         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
57740         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
57741         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
57742         Likewise.
57743         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
57744         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
57745         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
57746         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
57747         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
57748         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
57749         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
57750         as optional.
57751         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
57752         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
57753         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
57754         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
57755         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
57756         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
57757         specify as optional.
57758         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
57759         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
57760         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
57761         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
57762         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
57763         [XPG3] (NL_LANGMAX): Likewise.
57764         [POSIX || XPG3] (NL_MSGMAX): Likewise.
57765         [POSIX || XPG3] (NL_NMAX): Likewise.
57766         [POSIX || XPG3] (NL_SETMAX): Likewise.
57767         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
57768         [XPG3] (NZERO): Likewise.
57769         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
57770         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
57771         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
57772         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
57773         (REG_ERANGE): Expect.
57774         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
57775         optional-constant.
57776         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
57777         Use (void) in prototype.
57778         [POSIX] (*_t): Allow.
57779         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
57780         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
57781         (WRDE_BADVAL): Expect.
57782
57783         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
57784         expect.
57785         [XPG3 || XPG4] (O_RSYNC): Likewise.
57786         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
57787         Likewise.
57788         [XPG3 || XPG4] (pthread_sigmask): Likewise.
57789         [XPG3 || XPG4] (sigqueue): Likewise.
57790         [XPG3 || XPG4] (sigtimedwait): Likewise.
57791         [XPG3 || XPG4] (sigwaitinfo): Likewise.
57792         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
57793         [XPG3 || XPG4] (vsnprintf): Likewise.
57794         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
57795         Likewise.
57796         [XPG3 || XPG4] (blksize_t): Likewise.
57797         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
57798         Likewise.
57799         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
57800         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
57801         [XPG3 || XPG4] (struct itimerspec): Likewise.
57802         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
57803         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
57804         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
57805         [XPG3 || XPG4] (clockid_t): Likewise.
57806         [XPG3 || XPG4] (timer_t): Likewise.
57807         [XPG3 || XPG4] (clock_getres): Likewise.
57808         [XPG3 || XPG4] (clock_gettime): Likewise.
57809         [XPG3 || XPG4] (clock_settime): Likewise.
57810         [XPG3 || XPG4] (nanosleep): Likewise.
57811         [XPG3 || XPG4] (timer_create): Likewise.
57812         [XPG3 || XPG4] (timer_delete): Likewise.
57813         [XPG3 || XPG4] (timer_gettime): Likewise.
57814         [XPG3 || XPG4] (timer_getoverrun): Likewise.
57815         [XPG3 || XPG4] (timer_settime): Likewise.
57816         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
57817         [XPG3 || XPG4] (getlogin_r): Likewise.
57818         [XPG3 || XPG4] (pread): Likewise.
57819         [XPG3 || XPG4] (pthread_atfork): Likewise.
57820         [XPG3 || XPG4] (pwrite): Likewise.
57821
57822         [BZ #14835]
57823         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
57824         <bits/siginfo.h>.
57825
57826 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
57827
57828         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
57829         finalizing MALLSTREAM.
57830
57831         * sysdeps/mach/hurd/syncfs.c: New file.
57832
57833 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57834
57835         [BZ #14719]
57836         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
57837         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
57838         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
57839         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
57840         (_nss_dns_gethostbyname4_r): Likewise.
57841         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
57842         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
57843
57844 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
57845
57846         [BZ #13763]
57847         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
57848
57849 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
57850
57851         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
57852         * elf/cache.c (print_entry): Print ",AArch64" for
57853         FLAG_AARCH64_LIB64
57854
57855         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
57856         * elf/cache.c (print_entry): Print ",hard-float" for
57857         FLAG_ARM_LIBHF.
57858
57859 2012-11-18  David S. Miller  <davem@davemloft.net>
57860
57861         With help from Joseph Myers.
57862         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
57863         cutoff to 2**-13.
57864         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
57865         cutoff to 2**-25.
57866         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
57867         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
57868         small.
57869         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
57870         * math/libm-test.inc (y0_test): New tests.
57871         (y1_test): New tests.
57872         * sysdeps/i386/fpu/libm-test-ulps: Update.
57873         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57874         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57875
57876 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
57877
57878         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
57879         64-bit targets.
57880         * configure: Regenerated.
57881
57882 2012-11-17  David S. Miller  <davem@davemloft.net>
57883
57884         [BZ #14811]
57885         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
57886         nonzero exponents with absolute value below 0x1p-128 to +/-
57887         0x1p-128.
57888
57889 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
57890
57891         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
57892
57893         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
57894
57895         * posix/getconf-speclist.c: New file.
57896         * posix/posix-envs.def: Likewise.
57897         * posix/confstr.c (START_ENV_GROUP): New macro.
57898         (END_ENV_GROUP): Likewise.
57899         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
57900         (KNOWN_PRESENT_ENV_STRING): Likewise.
57901         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
57902         (UNKNOWN_ENVIRONMENT): Likewise.
57903         (confstr): Include posix-envs.def instead of handling
57904         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
57905         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
57906         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
57907         (END_ENV_GROUP): Likewise.
57908         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
57909         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
57910         (UNKNOWN_ENVIRONMENT): Likewise.
57911         (__sysconf): Include posix-envs.def instead of handling associated
57912         cases directly here.
57913         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
57914         preprocessing getconf-speclist.c rather than running getconf or
57915         generating empty file.
57916
57917 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
57918
57919         * scripts/check-local-headers.sh: Ignore 'mach' headers.
57920
57921 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
57922
57923         [BZ #14672]
57924         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
57925
57926 2012-11-16  David S. Miller  <davem@davemloft.net>
57927
57928         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
57929         smaller than LDBL_EPSILON/2.0L, just return xm1.
57930
57931 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
57932
57933         * elf/tst-array1.c (init): Set constructor priority to 1000.
57934         (fini): Set destructor priority to 1000.
57935         * elf/tst-array2dep.c: Likewise.
57936
57937 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
57938
57939         [BZ #11741]
57940         * libio/fileops.c (_IO_new_file_write): Correctly return error.
57941         (_IO_new_file_xsputn): Also return EOF if none of the input
57942         data was written when overflow failed.
57943         * libio/iopadn.c (_IO_padn): Likewise.
57944         * libio/iowpadn.c (_IO_wpadn): Likewise.
57945         * stdio-common/tst-put-error.c: Add copyright notice.
57946         (do_test): Add case for printing padded string.
57947         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
57948         _IO_padn returned error.
57949         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
57950         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
57951         return EOF.
57952
57953 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
57954
57955         * libio/libioP.h: Add comment note that the references to C++
57956         bits are now obsolete.
57957
57958 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
57959
57960         * math/libm-test.inc (check_complex): Use asprintf.
57961
57962 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
57963
57964         * debug/pcprofiledump.c (print_version): Update copyright year.
57965         * malloc/memusagestat.c (print_version): Likewise.
57966
57967 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
57968
57969         [BZ #14831]
57970         * elf/Makefile (tests): Add tst-audit8.
57971         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
57972         ($(objpfx)tst-audit8.out): New target.
57973         (tst-audit8-ENV): New variable.
57974         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
57975         audit if l_reloc_result is NULL.
57976         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
57977         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
57978         * elf/tst-audit8.c: New file.
57979
57980 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
57981
57982         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
57983         * misc/Makefile (CFLAGS-select.c): Define.
57984         * posix/Makefile (CFLAGS-pause.c): Define.
57985
57986 2012-11-13  David S. Miller  <davem@davemloft.net>
57987
57988         * crypt/Makefile: Move test targets after toplevel Rules
57989         inclusion.  Grab any necessary sysdep routines when linking.
57990         * crypt/md5.c (md5_process_block): Remove define, we will always
57991         name it __md5_process_block.
57992         (md5_finish_ctx): Update md5_process_block call.
57993         (md5_stream): Likewise.
57994         (md5_process_bytes): Likewise.
57995         (md5_process_block): Rename to __md5_process_block and move to ...
57996         * crypt/md5-block.c: ... here.
57997         * crypt/sha256.c (sha256_process_block): Move to ...
57998         * crypt/sha256-block.c: ... here.
57999         * crypt/sha512.c (sha512_process_block): Move to ...
58000         * crypt/sha512-block.c: ... here.
58001         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
58002         path.
58003         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
58004         * sysdeps/sparc/sparc64/multiarch/Makefile
58005         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
58006         crypt subdir.
58007         (localedef-aux): Add md5 crypto assembler when in locale subdir.
58008         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
58009         multiarch changes.
58010         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
58011         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
58012         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
58013         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
58014         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
58015         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
58016         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
58017         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
58018         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
58019         file.
58020         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
58021         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
58022         file.
58023         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
58024
58025 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
58026
58027         * timezone/tzselect.ksh: Update from tzcode git revision
58028         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
58029         * timezone/zdump.c: Likewise.
58030         * timezone/zic.c: Likewise.
58031         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
58032         in TZVERSION setting, not $(PKGVERSION).
58033         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
58034         REPORT_BUGS_TO settings.
58035
58036         [BZ #14838]
58037         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
58038         macro.
58039
58040 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
58041
58042         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
58043         detection to immediately after _FP_ROUND().
58044         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
58045         bits are 0.
58046
58047 2012-11-11  David S. Miller  <davem@davemloft.net>
58048
58049         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
58050         inttypes.h
58051         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
58052         __close rather than their public counterparts.
58053
58054 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
58055
58056         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
58057         file.
58058         [UNIX98] (sem_timedwait): Do not expect.
58059         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
58060         [XPG4 || UNIX98] (sockatmark): Do not expect.
58061         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
58062         (clock_getcpuclockid): Do not expect.
58063         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
58064         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
58065         Do not expect.
58066         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
58067         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
58068         [UNIX98] (vwscanf): Likewise.
58069         [UNIX98] (vswscanf): Likewise.
58070
58071 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
58072
58073         * timezone/version.h: Remove file.
58074         * timezone/README: Do not refer to version.h.
58075         * timezone/Makefile ($(objpfx)zic.o): New dependency on
58076         $(objpfx)version.h.
58077         ($(objpfx)zdump.o): Likewise.
58078         ($(objpfx)version.h): New target.
58079
58080         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
58081         2012i.
58082         * timezone/README: Don't mention modification to tzselect.ksh.
58083         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
58084         work on unmodified tzselect.ksh.  Substitute version numbers in
58085         tzselect.ksh.
58086
58087         * Makefile (format-me): Remove.
58088         (INSTALL): Adjust indentation.  Use commands directly instead of
58089         using $(format-me).
58090
58091         * aclocal.m4 (ACX_PKGVERSION): New macro.
58092         (ACX_BUGURL): Likewise.
58093         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
58094         (PKGVERSION): New AC_DEFINE_UNQUOTED.
58095         (REPORT_BUGS_TO): Likewise.
58096         * configure: Regenerated.
58097         * config.h.in (PKGVERSION): New macro.
58098         (REPORT_BUGS_TO): Likewise.
58099         * config.make.in (PKGVERSION): New variable.
58100         (PKGVERSION_TEXI): Likewise.
58101         (REPORT_BUGS_TO): Likewise.
58102         (REPORT_BUGS_TEXI): Likewise.
58103         * Makefile (format-me): Use -I$(common-objpfx)manual.
58104         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
58105         ($(common-objpfx)manual/%): New target.
58106         (manual/%): Remove target.
58107         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
58108         (print_version): Use PKGVERSION.
58109         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
58110         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
58111         and REPORT_BUGS_TO.
58112         ($(objpfx)xtrace): Likewise.
58113         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
58114         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
58115         (print_version): Use PKGVERSION.
58116         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
58117         (do_version): Use PKGVERSION.
58118         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
58119         REPORT_BUGS_TO.
58120         (common-ldd-rewrite): Likewise.
58121         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
58122         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
58123         (print_version): Use PKGVERSION.
58124         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
58125         * elf/pldd.c (argp_program_bug_address): Remove variable.
58126         (more_help): New function.
58127         (argp): Use more_help.
58128         (print_version): Use PKGVERSION.
58129         * elf/sln.c (main): Use PKGVERSION.
58130         (usage): Use REPORT_BUGS_TO.
58131         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
58132         (top level): Use PKGVERSION.
58133         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
58134         (print_version): Use PKGVERSION.
58135         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
58136         (print_version): Use PKGVERSION.
58137         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
58138         (print_version): Use PKGVERSION.
58139         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
58140         (print_version): Use PKGVERSION.
58141         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
58142         (print_version): Use PKGVERSION.
58143         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
58144         (print_version): Use PKGVERSION.
58145         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
58146         and BUGURL.
58147         ($(objpfx)memusage): Likewise.
58148         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
58149         (do_version): Use PKGVERSION.
58150         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
58151         (print_version): Use PKGVERSION.
58152         * malloc/mtrace.pl ($PACKAGE): Remove variable.
58153         ($PKGVERSION): New variable.
58154         ($REPORT_BUGS_TO): Likewise.
58155         (usage): Use $REPORT_BUGS_TO.
58156         (top level): Use $PKGVERSION.
58157         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
58158         ($(objpfx)pkgvers.texi): New rule.
58159         ($(objpfx)stamp-pkgvers): Likewise.
58160         * manual/install.texi: Include pkgvers.texi.
58161         (--with-pkgversion): Document new configure option.
58162         (--with-bugurl): Likewise.
58163         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
58164         than necessarily for this particular distribution.  Use
58165         REPORT_BUGS_TO for where to report bugs.
58166         * INSTALL: Regenerated.
58167         * manual/libc.texinfo: Include pkgvers.texi.
58168         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
58169         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
58170         (print_version): Use PKGVERSION.
58171         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
58172         (print_version): Use PKGVERSION.
58173         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
58174         (print_version): Use PKGVERSION.
58175         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
58176         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
58177         macro.
58178         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
58179         (print_version): Use PKGVERSION.
58180         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
58181         (print_version): Use PKGVERSION.
58182         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
58183         and PKGVERSION.
58184
58185         * timezone/checktab.awk: Update from tzcode 2012i.
58186         * timezone/ialloc.c: Likewise.
58187         * timezone/private.h: Likewise.
58188         * timezone/scheck.c: Likewise.
58189         * timezone/tzfile.h: Likewise.
58190         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
58191         (TZVERSION): Hardcode tzcode version number.
58192         * timezone/zdump.c: Update from tzcode 2012i.
58193         * timezone/zic.c: Likewise.
58194         * timezone/version.h: New file.
58195         * timezone/README: Describe version.h.  Update upstream location.
58196
58197         [BZ #14824]
58198         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
58199         (mktemp): Enable declaration.
58200         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
58201         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
58202         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
58203         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
58204         Likewise.
58205         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
58206         Likewise.
58207         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
58208         Likewise.
58209         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
58210         Likewise.
58211         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
58212         Likewise.
58213         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
58214         Likewise.
58215
58216         [BZ #14821]
58217         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
58218         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
58219         for copies of such integer values.
58220         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
58221         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
58222
58223 2012-11-09  Andreas Jaeger  <aj@suse.de>
58224
58225         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
58226         definitions and declarations that are provided by
58227         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
58228
58229 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58230
58231         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
58232         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
58233         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
58234         definition.
58235
58236 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
58237
58238         * elf/elf.h: Update comment before AArch64 relocations.
58239
58240 2012-11-07  David S. Miller  <davem@davemloft.net>
58241
58242         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
58243         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
58244         (__start_context): Declare.
58245         (__makecontext_ret): Delete.
58246         (__makecontext): Hook up __start_context instead of
58247         __makecontext_ret.
58248         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
58249         (sysdep_routines): Add __start_context when in stdlib.
58250
58251 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
58252
58253         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
58254         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
58255         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
58256         hardcoded "nm".
58257         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
58258         (READELF): New variable.  Use it instead of hardcoded "readelf".
58259
58260 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
58261
58262         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
58263         * sysdeps/x86/Makefile: Here.
58264         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
58265         * sysdeps/x86/tst-xmmymm.sh: This.
58266
58267 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
58268
58269         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
58270         expectations.
58271         [UNIX98] (pthread_barrier_t): Do not expect.
58272         [UNIX98] (pthread_barrierattr_t): Likewise.
58273         [UNIX98] (pthread_spinlock_t): Likewise.
58274         [UNIX98] (pthread_barrier_destroy): Likewise.
58275         [UNIX98] (pthread_barrier_init): Likewise.
58276         [UNIX98] (pthread_barrier_wait): Likewise.
58277         [UNIX98] (pthread_barrierattr_destroy): Likewise.
58278         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
58279         [UNIX98] (pthread_barrierattr_init): Likewise.
58280         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
58281         [UNIX98] (pthread_getcpuclockid): Likewise.
58282         [UNIX98] (pthread_mutex_timedlock): Likewise.
58283         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
58284         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
58285         [UNIX98] (pthread_sigmask): Likewise.
58286         [UNIX98] (pthread_spin_destroy): Likewise.
58287         [UNIX98] (pthread_spin_init): Likewise.
58288         [UNIX98] (pthread_spin_lock): Likewise.
58289         [UNIX98] (pthread_spin_trylock): Likewise.
58290         [UNIX98] (pthread_spin_unlock): Likewise.
58291         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
58292         Do not expect.
58293         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
58294         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
58295         [XPG3 || XPG4] (pthread_cond_t): Likewise.
58296         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
58297         [XPG3 || XPG4] (pthread_key_t): Likewise.
58298         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
58299         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
58300         [XPG3 || XPG4] (pthread_once_t): Likewise.
58301         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
58302         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
58303         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
58304         [XPG3 || XPG4] (pthread_t): Likewise.
58305
58306         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
58307         not expect.
58308         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
58309
58310         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
58311         Change function return type to int.
58312
58313         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
58314         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
58315         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
58316         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
58317         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
58318         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
58319         [!POSIX] (posix_madvise): Likewise.
58320         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
58321         && !UNIX98].
58322         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
58323         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
58324         (mode_t): Likewise.
58325         (posix_mem_offset): Likewise.
58326         (posix_typed_mem_get_info): Likewise.
58327         (posix_typed_mem_open): Likewise.
58328
58329         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
58330         Change condition to [XOPEN2K8].
58331
58332         * conform/conformtest.pl: Preprocess allow-header data with -x c
58333         instead of from stdin.
58334         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
58335         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
58336         [C99-based standards] (cerfc): Likewise.
58337         [C99-based standards] (cexp2): Likewise.
58338         [C99-based standards] (cexpm1): Likewise.
58339         [C99-based standards] (clog10): Likewise.
58340         [C99-based standards] (clog1p): Likewise.
58341         [C99-based standards] (clog2): Likewise.
58342         [C99-based standards] (clgamma): Likewise.
58343         [C99-based standards] (ctgamma): Likewise.
58344         [C99-based standards] (cerff): Likewise.
58345         [C99-based standards] (cerfcf): Likewise.
58346         [C99-based standards] (cexp2f): Likewise.
58347         [C99-based standards] (cexpm1f): Likewise.
58348         [C99-based standards] (clog10f): Likewise.
58349         [C99-based standards] (clog1pf): Likewise.
58350         [C99-based standards] (clog2f): Likewise.
58351         [C99-based standards] (clgammaf): Likewise.
58352         [C99-based standards] (ctgammaf): Likewise.
58353         [C99-based standards] (cerfl): Likewise.
58354         [C99-based standards] (cerfcl): Likewise.
58355         [C99-based standards] (cexp2l): Likewise.
58356         [C99-based standards] (cexpm1l): Likewise.
58357         [C99-based standards] (clog10l): Likewise.
58358         [C99-based standards] (clog1pl): Likewise.
58359         [C99-based standards] (clog2l): Likewise.
58360         [C99-based standards] (clgammal): Likewise.
58361         [C99-based standards] (ctgammal): Likewise.
58362         * conform/data/inttypes.h-data [C99-based standards]: Include
58363         stdint.h-data.  Remove all expectations for stdint.h contents.
58364         [C99-based standards] (PRI*): Do not allow.
58365         [C99-based standards] (SCN*): Likewise.
58366         [C99-based standards] (*_t): Likewise.
58367         [C99-based-standards] (PRId8): Expect macro.
58368         [C99-based-standards] (PRIi8): Likewise.
58369         [C99-based-standards] (PRIo8): Likewise.
58370         [C99-based-standards] (PRIu8): Likewise.
58371         [C99-based-standards] (PRIx8): Likewise.
58372         [C99-based-standards] (PRIX8): Likewise.
58373         [C99-based-standards] (SCNd8): Likewise.
58374         [C99-based-standards] (SCNi8): Likewise.
58375         [C99-based-standards] (SCNo8): Likewise.
58376         [C99-based-standards] (SCNu8): Likewise.
58377         [C99-based-standards] (SCNx8): Likewise.
58378         [C99-based-standards] (PRIdLEAST8): Likewise.
58379         [C99-based-standards] (PRIiLEAST8): Likewise.
58380         [C99-based-standards] (PRIoLEAST8): Likewise.
58381         [C99-based-standards] (PRIuLEAST8): Likewise.
58382         [C99-based-standards] (PRIxLEAST8): Likewise.
58383         [C99-based-standards] (PRIXLEAST8): Likewise.
58384         [C99-based-standards] (SCNdLEAST8): Likewise.
58385         [C99-based-standards] (SCNiLEAST8): Likewise.
58386         [C99-based-standards] (SCNoLEAST8): Likewise.
58387         [C99-based-standards] (SCNuLEAST8): Likewise.
58388         [C99-based-standards] (SCNxLEAST8): Likewise.
58389         [C99-based-standards] (PRIdFAST8): Likewise.
58390         [C99-based-standards] (PRIiFAST8): Likewise.
58391         [C99-based-standards] (PRIoFAST8): Likewise.
58392         [C99-based-standards] (PRIuFAST8): Likewise.
58393         [C99-based-standards] (PRIxFAST8): Likewise.
58394         [C99-based-standards] (PRIXFAST8): Likewise.
58395         [C99-based-standards] (SCNdFAST8): Likewise.
58396         [C99-based-standards] (SCNiFAST8): Likewise.
58397         [C99-based-standards] (SCNoFAST8): Likewise.
58398         [C99-based-standards] (SCNuFAST8): Likewise.
58399         [C99-based-standards] (SCNxFAST8): Likewise.
58400         [C99-based-standards] (PRId16): Likewise.
58401         [C99-based-standards] (PRIi16): Likewise.
58402         [C99-based-standards] (PRIo16): Likewise.
58403         [C99-based-standards] (PRIu16): Likewise.
58404         [C99-based-standards] (PRIx16): Likewise.
58405         [C99-based-standards] (PRIX16): Likewise.
58406         [C99-based-standards] (SCNd16): Likewise.
58407         [C99-based-standards] (SCNi16): Likewise.
58408         [C99-based-standards] (SCNo16): Likewise.
58409         [C99-based-standards] (SCNu16): Likewise.
58410         [C99-based-standards] (SCNx16): Likewise.
58411         [C99-based-standards] (PRIdLEAST16): Likewise.
58412         [C99-based-standards] (PRIiLEAST16): Likewise.
58413         [C99-based-standards] (PRIoLEAST16): Likewise.
58414         [C99-based-standards] (PRIuLEAST16): Likewise.
58415         [C99-based-standards] (PRIxLEAST16): Likewise.
58416         [C99-based-standards] (PRIXLEAST16): Likewise.
58417         [C99-based-standards] (SCNdLEAST16): Likewise.
58418         [C99-based-standards] (SCNiLEAST16): Likewise.
58419         [C99-based-standards] (SCNoLEAST16): Likewise.
58420         [C99-based-standards] (SCNuLEAST16): Likewise.
58421         [C99-based-standards] (SCNxLEAST16): Likewise.
58422         [C99-based-standards] (PRIdFAST16): Likewise.
58423         [C99-based-standards] (PRIiFAST16): Likewise.
58424         [C99-based-standards] (PRIoFAST16): Likewise.
58425         [C99-based-standards] (PRIuFAST16): Likewise.
58426         [C99-based-standards] (PRIxFAST16): Likewise.
58427         [C99-based-standards] (PRIXFAST16): Likewise.
58428         [C99-based-standards] (SCNdFAST16): Likewise.
58429         [C99-based-standards] (SCNiFAST16): Likewise.
58430         [C99-based-standards] (SCNoFAST16): Likewise.
58431         [C99-based-standards] (SCNuFAST16): Likewise.
58432         [C99-based-standards] (SCNxFAST16): Likewise.
58433         [C99-based-standards] (PRId32): Likewise.
58434         [C99-based-standards] (PRIi32): Likewise.
58435         [C99-based-standards] (PRIo32): Likewise.
58436         [C99-based-standards] (PRIu32): Likewise.
58437         [C99-based-standards] (PRIx32): Likewise.
58438         [C99-based-standards] (PRIX32): Likewise.
58439         [C99-based-standards] (SCNd32): Likewise.
58440         [C99-based-standards] (SCNi32): Likewise.
58441         [C99-based-standards] (SCNo32): Likewise.
58442         [C99-based-standards] (SCNu32): Likewise.
58443         [C99-based-standards] (SCNx32): Likewise.
58444         [C99-based-standards] (PRIdLEAST32): Likewise.
58445         [C99-based-standards] (PRIiLEAST32): Likewise.
58446         [C99-based-standards] (PRIoLEAST32): Likewise.
58447         [C99-based-standards] (PRIuLEAST32): Likewise.
58448         [C99-based-standards] (PRIxLEAST32): Likewise.
58449         [C99-based-standards] (PRIXLEAST32): Likewise.
58450         [C99-based-standards] (SCNdLEAST32): Likewise.
58451         [C99-based-standards] (SCNiLEAST32): Likewise.
58452         [C99-based-standards] (SCNoLEAST32): Likewise.
58453         [C99-based-standards] (SCNuLEAST32): Likewise.
58454         [C99-based-standards] (SCNxLEAST32): Likewise.
58455         [C99-based-standards] (PRIdFAST32): Likewise.
58456         [C99-based-standards] (PRIiFAST32): Likewise.
58457         [C99-based-standards] (PRIoFAST32): Likewise.
58458         [C99-based-standards] (PRIuFAST32): Likewise.
58459         [C99-based-standards] (PRIxFAST32): Likewise.
58460         [C99-based-standards] (PRIXFAST32): Likewise.
58461         [C99-based-standards] (SCNdFAST32): Likewise.
58462         [C99-based-standards] (SCNiFAST32): Likewise.
58463         [C99-based-standards] (SCNoFAST32): Likewise.
58464         [C99-based-standards] (SCNuFAST32): Likewise.
58465         [C99-based-standards] (SCNxFAST32): Likewise.
58466         [C99-based-standards] (PRId64): Likewise.
58467         [C99-based-standards] (PRIi64): Likewise.
58468         [C99-based-standards] (PRIo64): Likewise.
58469         [C99-based-standards] (PRIu64): Likewise.
58470         [C99-based-standards] (PRIx64): Likewise.
58471         [C99-based-standards] (PRIX64): Likewise.
58472         [C99-based-standards] (SCNd64): Likewise.
58473         [C99-based-standards] (SCNi64): Likewise.
58474         [C99-based-standards] (SCNo64): Likewise.
58475         [C99-based-standards] (SCNu64): Likewise.
58476         [C99-based-standards] (SCNx64): Likewise.
58477         [C99-based-standards] (PRIdLEAST64): Likewise.
58478         [C99-based-standards] (PRIiLEAST64): Likewise.
58479         [C99-based-standards] (PRIoLEAST64): Likewise.
58480         [C99-based-standards] (PRIuLEAST64): Likewise.
58481         [C99-based-standards] (PRIxLEAST64): Likewise.
58482         [C99-based-standards] (PRIXLEAST64): Likewise.
58483         [C99-based-standards] (SCNdLEAST64): Likewise.
58484         [C99-based-standards] (SCNiLEAST64): Likewise.
58485         [C99-based-standards] (SCNoLEAST64): Likewise.
58486         [C99-based-standards] (SCNuLEAST64): Likewise.
58487         [C99-based-standards] (SCNxLEAST64): Likewise.
58488         [C99-based-standards] (PRIdFAST64): Likewise.
58489         [C99-based-standards] (PRIiFAST64): Likewise.
58490         [C99-based-standards] (PRIoFAST64): Likewise.
58491         [C99-based-standards] (PRIuFAST64): Likewise.
58492         [C99-based-standards] (PRIxFAST64): Likewise.
58493         [C99-based-standards] (PRIXFAST64): Likewise.
58494         [C99-based-standards] (SCNdFAST64): Likewise.
58495         [C99-based-standards] (SCNiFAST64): Likewise.
58496         [C99-based-standards] (SCNoFAST64): Likewise.
58497         [C99-based-standards] (SCNuFAST64): Likewise.
58498         [C99-based-standards] (SCNxFAST64): Likewise.
58499         [C99-based-standards] (PRIdMAX): Likewise.
58500         [C99-based-standards] (PRIiMAX): Likewise.
58501         [C99-based-standards] (PRIoMAX): Likewise.
58502         [C99-based-standards] (PRIuMAX): Likewise.
58503         [C99-based-standards] (PRIxMAX): Likewise.
58504         [C99-based-standards] (PRIXMAX): Likewise.
58505         [C99-based-standards] (SCNdMAX): Likewise.
58506         [C99-based-standards] (SCNiMAX): Likewise.
58507         [C99-based-standards] (SCNoMAX): Likewise.
58508         [C99-based-standards] (SCNuMAX): Likewise.
58509         [C99-based-standards] (SCNxMAX): Likewise.
58510         [C99-based-standards] (PRIdPTR): Likewise.
58511         [C99-based-standards] (PRIiPTR): Likewise.
58512         [C99-based-standards] (PRIoPTR): Likewise.
58513         [C99-based-standards] (PRIuPTR): Likewise.
58514         [C99-based-standards] (PRIxPTR): Likewise.
58515         [C99-based-standards] (PRIXPTR): Likewise.
58516         [C99-based-standards] (SCNdPTR): Likewise.
58517         [C99-based-standards] (SCNiPTR): Likewise.
58518         [C99-based-standards] (SCNoPTR): Likewise.
58519         [C99-based-standards] (SCNuPTR): Likewise.
58520         [C99-based-standards] (SCNxPTR): Likewise.
58521         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
58522         allow.
58523         * conform/data/stdint.h-data: Update comments to clarify
58524         requirements.
58525         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
58526         type.
58527         [C99-based standards] (INT8_MAX): Likewise.
58528         [C99-based standards] (INT16_MIN): Likewise.
58529         [C99-based standards] (INT16_MAX): Likewise.
58530         [C99-based standards] (INT32_MIN): Likewise.
58531         [C99-based standards] (INT32_MAX): Likewise.
58532         [C99-based standards] (INT64_MIN): Likewise.
58533         [C99-based standards] (INT64_MAX): Likewise.
58534         [C99-based standards] (UINT8_MAX): Likewise.
58535         [C99-based standards] (UINT16_MAX): Likewise.
58536         [C99-based standards] (UINT32_MAX): Likewise.
58537         [C99-based standards] (UINT64_MAX): Likewise.
58538         [C99-based standards] (INT_LEAST8_MIN): Likewise.
58539         [C99-based standards] (INT_LEAST8_MAX): Likewise.
58540         [C99-based standards] (INT_LEAST16_MIN): Likewise.
58541         [C99-based standards] (INT_LEAST16_MAX): Likewise.
58542         [C99-based standards] (INT_LEAST32_MIN): Likewise.
58543         [C99-based standards] (INT_LEAST32_MAX): Likewise.
58544         [C99-based standards] (INT_LEAST64_MIN): Likewise.
58545         [C99-based standards] (INT_LEAST64_MAX): Likewise.
58546         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
58547         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
58548         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
58549         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
58550         [C99-based standards] (INT_FAST8_MIN): Likewise.
58551         [C99-based standards] (INT_FAST8_MAX): Likewise.
58552         [C99-based standards] (INT_FAST16_MIN): Likewise.
58553         [C99-based standards] (INT_FAST16_MAX): Likewise.
58554         [C99-based standards] (INT_FAST32_MIN): Likewise.
58555         [C99-based standards] (INT_FAST32_MAX): Likewise.
58556         [C99-based standards] (INT_FAST64_MIN): Likewise.
58557         [C99-based standards] (INT_FAST64_MAX): Likewise.
58558         [C99-based standards] (UINT_FAST8_MAX): Likewise.
58559         [C99-based standards] (UINT_FAST16_MAX): Likewise.
58560         [C99-based standards] (UINT_FAST32_MAX): Likewise.
58561         [C99-based standards] (UINT_FAST64_MAX): Likewise.
58562         [C99-based standards] (INTPTR_MIN): Likewise.
58563         [C99-based standards] (INTPTR_MAX): Likewise.
58564         [C99-based standards] (UINTPTR_MAX): Likewise.
58565         [C99-based standards] (INTMAX_MIN): Likewise.
58566         [C99-based standards] (INTMAX_MAX): Likewise.
58567         [C99-based standards] (UINTMAX_MAX): Likewise.
58568         [C99-based standards] (PTRDIFF_MIN): Likewise.
58569         [C99-based standards] (PTRDIFF_MAX): Likewise.
58570         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
58571         [C99-based standards] (SIZE_MAX): Likewise.
58572         [C99-based standards] (WCHAR_MAX): Likewise.
58573         [C99-based standards] (WINT_MAX): Likewise.
58574         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
58575         constraint on value.
58576         [C99-based standards] (WCHAR_MIN): Likewise.
58577         [C99-based standards] (WINT_MIN): Likewise.
58578         [C99-based standards] (*_t): Allow.
58579         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
58580         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
58581         Include math.h-data and complex.h-data.  Remove all expectations
58582         of math.h and complex.h contents.
58583         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
58584         at end of line.
58585         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
58586         (struct tm): Expect tag.
58587         [C99-based-standards] (wcstof): Expect function.
58588         [C99-based-standards] (wcstold): Likewise.
58589         [C99-based-standards] (wcstoll): Likewise.
58590         [C99-based-standards] (wcstoull): Likewise.
58591         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
58592         macro-int-constant.  Specify type.
58593         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
58594         constraint on value.
58595         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
58596         Specify type.
58597         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
58598         Specify value.
58599         [ISO C standards]: Do not allow headers.
58600         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
58601         wcs[abcdefghijklmnopqrstuvwxyz]*.
58602         [ISO C standards] (*_t): Do not allow.
58603         * conform/data/wctype.h-data [C99-based standards] (iswblank):
58604         Expect function.
58605         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
58606         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
58607         Specify type.
58608         [ISO C standards]: Do not allow headers.
58609         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
58610         is[abcdefghijklmnopqrstuvwxyz]*.
58611         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
58612         to[abcdefghijklmnopqrstuvwxyz]*.
58613         [ISO C standards] (*_t): Do not allow.
58614         * conform/data/stdalign.h-data: New file.
58615         * conform/data/stdbool.h-data: Likewise.
58616         * conform/data/stdnoreturn.h-data: Likewise.
58617
58618 2012-11-07  Roland McGrath  <roland@hack.frob.com>
58619
58620         [BZ #14815]
58621         * manual/filesys.texi (Directory Entries): Typo fix.
58622         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
58623
58624 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
58625
58626         * elf/elf.h (EM_AARCH64): New macro.
58627         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
58628         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
58629         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
58630         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
58631         (R_AARCH64_TLSDESC): Likewise.
58632         (NT_ARM_TLS): Likewise.
58633         (NT_ARM_HW_BREAK): Likewise.
58634         (NT_ARM_HW_WATCH): Likewise.
58635
58636 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
58637
58638         [BZ #14811]
58639         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
58640         (__ieee754_powl): Saturate nonzero exponents with absolute value
58641         below 0x1p-79 to +/- 0x1p-79.
58642         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
58643         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
58644         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
58645         nonzero exponents with absolute value below 0x1p-32 to +/-
58646         0x1p-32.
58647         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
58648         (__ieee754_powl): Saturate nonzero exponents with absolute value
58649         below 0x1p-79 to +/- 0x1p-79.
58650         * math/libm-test.inc (pow_test): Add more tests.
58651
58652 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58653
58654         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
58655         _dl_s390_cap_flags with kernel. Increase string length.
58656         (_dl_s390_platforms): Add z196 and zEC12.
58657
58658 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
58659
58660         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
58661         Change XOPEN21K to XOPEN2K.
58662
58663 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
58664
58665         * string/memmove.c: Use memcpy when possible.
58666
58667 2012-11-06  Andreas Jaeger  <aj@suse.de>
58668
58669         * po/eo.po: Update from translation team.
58670
58671 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
58672
58673         [BZ #14793]
58674         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
58675         exponent and small x and y exponents, scale x or y up.  Increase
58676         by 2 the exponent used in scaling up.
58677         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
58678         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
58679         * math/libm-test.inc (fma_test): Add more tests.
58680         (fma_test_towardzero): Likewise.
58681         (fma_test_downward): Likewise.
58682         (fma_test_upward): Likewise.
58683
58684 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
58685
58686         [BZ #14805]
58687         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
58688         fenv_t *.
58689
58690         [BZ #14801]
58691         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
58692         namespace for names of struct fields.
58693         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
58694         fenv_t fields.
58695         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
58696         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
58697
58698 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
58699
58700         [BZ #3665]
58701         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
58702
58703 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
58704
58705         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
58706         PTR_DEMANGLE.
58707
58708         [BZ #5246]
58709         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
58710         PTR_DEMANGLE.
58711
58712 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
58713
58714         [BZ #14797]
58715         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
58716         definitely overflow as x * y not x * y + z.
58717         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
58718         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
58719         * math/libm-test.inc (fma_test): Add more tests.
58720         (fma_test_towardzero): Likewise.
58721         (fma_test_downward): Likewise.
58722         (fma_test_upward): Likewise.
58723
58724 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
58725
58726         [BZ #157]
58727
58728         * include/stub-tag.h: Remove file.
58729         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
58730         '#include' of it.
58731         * manual/maint.texi (Porting): Don't reference it.
58732         * Makerules ($(objpfx)stubs): Likewise.
58733         * dirent/closedir.c: Don't include <stub-tag.h>.
58734         * dirent/dirfd.c: Likewise.
58735         * dirent/fdopendir.c: Likewise.
58736         * dirent/getdents.c: Likewise.
58737         * dirent/getdents64.c: Likewise.
58738         * dirent/opendir.c: Likewise.
58739         * dirent/readdir.c: Likewise.
58740         * dirent/readdir64.c: Likewise.
58741         * dirent/readdir64_r.c: Likewise.
58742         * dirent/readdir_r.c: Likewise.
58743         * dirent/rewinddir.c: Likewise.
58744         * dirent/seekdir.c: Likewise.
58745         * dirent/telldir.c: Likewise.
58746         * gmon/profil.c: Likewise.
58747         * grp/setgroups.c: Likewise.
58748         * inet/if_index.c: Likewise.
58749         * io/access.c: Likewise.
58750         * io/chdir.c: Likewise.
58751         * io/chmod.c: Likewise.
58752         * io/chown.c: Likewise.
58753         * io/close.c: Likewise.
58754         * io/dup.c: Likewise.
58755         * io/dup2.c: Likewise.
58756         * io/dup3.c: Likewise.
58757         * io/euidaccess.c: Likewise.
58758         * io/faccessat.c: Likewise.
58759         * io/fchdir.c: Likewise.
58760         * io/fchmod.c: Likewise.
58761         * io/fchmodat.c: Likewise.
58762         * io/fchown.c: Likewise.
58763         * io/fchownat.c: Likewise.
58764         * io/fcntl.c: Likewise.
58765         * io/flock.c: Likewise.
58766         * io/fstatfs.c: Likewise.
58767         * io/fstatfs64.c: Likewise.
58768         * io/fstatvfs.c: Likewise.
58769         * io/fstatvfs64.c: Likewise.
58770         * io/futimens.c: Likewise.
58771         * io/fxstat.c: Likewise.
58772         * io/fxstat64.c: Likewise.
58773         * io/fxstatat.c: Likewise.
58774         * io/fxstatat64.c: Likewise.
58775         * io/getcwd.c: Likewise.
58776         * io/isatty.c: Likewise.
58777         * io/lchmod.c: Likewise.
58778         * io/lchown.c: Likewise.
58779         * io/link.c: Likewise.
58780         * io/linkat.c: Likewise.
58781         * io/lseek.c: Likewise.
58782         * io/lseek64.c: Likewise.
58783         * io/lxstat64.c: Likewise.
58784         * io/mkdir.c: Likewise.
58785         * io/mkdirat.c: Likewise.
58786         * io/mkfifo.c: Likewise.
58787         * io/mkfifoat.c: Likewise.
58788         * io/open.c: Likewise.
58789         * io/open64.c: Likewise.
58790         * io/openat.c: Likewise.
58791         * io/openat64.c: Likewise.
58792         * io/pipe.c: Likewise.
58793         * io/pipe2.c: Likewise.
58794         * io/poll.c: Likewise.
58795         * io/posix_fadvise.c: Likewise.
58796         * io/posix_fadvise64.c: Likewise.
58797         * io/posix_fallocate.c: Likewise.
58798         * io/posix_fallocate64.c: Likewise.
58799         * io/read.c: Likewise.
58800         * io/readlink.c: Likewise.
58801         * io/readlinkat.c: Likewise.
58802         * io/rmdir.c: Likewise.
58803         * io/sendfile.c: Likewise.
58804         * io/sendfile64.c: Likewise.
58805         * io/statfs.c: Likewise.
58806         * io/statfs64.c: Likewise.
58807         * io/statvfs.c: Likewise.
58808         * io/statvfs64.c: Likewise.
58809         * io/symlink.c: Likewise.
58810         * io/symlinkat.c: Likewise.
58811         * io/ttyname.c: Likewise.
58812         * io/ttyname_r.c: Likewise.
58813         * io/umask.c: Likewise.
58814         * io/unlink.c: Likewise.
58815         * io/unlinkat.c: Likewise.
58816         * io/utime.c: Likewise.
58817         * io/utimensat.c: Likewise.
58818         * io/write.c: Likewise.
58819         * io/xmknod.c: Likewise.
58820         * io/xmknodat.c: Likewise.
58821         * io/xstat.c: Likewise.
58822         * io/xstat64.c: Likewise.
58823         * login/getpt.c: Likewise.
58824         * login/grantpt.c: Likewise.
58825         * login/unlockpt.c: Likewise.
58826         * math/e_acoshl.c: Likewise.
58827         * math/e_acosl.c: Likewise.
58828         * math/e_asinl.c: Likewise.
58829         * math/e_atan2l.c: Likewise.
58830         * math/e_atanhl.c: Likewise.
58831         * math/e_coshl.c: Likewise.
58832         * math/e_expl.c: Likewise.
58833         * math/e_fmodl.c: Likewise.
58834         * math/e_gammal_r.c: Likewise.
58835         * math/e_hypotl.c: Likewise.
58836         * math/e_j0l.c: Likewise.
58837         * math/e_j1l.c: Likewise.
58838         * math/e_jnl.c: Likewise.
58839         * math/e_lgammal_r.c: Likewise.
58840         * math/e_log10l.c: Likewise.
58841         * math/e_log2l.c: Likewise.
58842         * math/e_logl.c: Likewise.
58843         * math/e_powl.c: Likewise.
58844         * math/e_rem_pio2l.c: Likewise.
58845         * math/e_sinhl.c: Likewise.
58846         * math/e_sqrtl.c: Likewise.
58847         * math/fclrexcpt.c: Likewise.
58848         * math/fedisblxcpt.c: Likewise.
58849         * math/feenablxcpt.c: Likewise.
58850         * math/fegetenv.c: Likewise.
58851         * math/fegetexcept.c: Likewise.
58852         * math/fegetround.c: Likewise.
58853         * math/feholdexcpt.c: Likewise.
58854         * math/fesetenv.c: Likewise.
58855         * math/fesetround.c: Likewise.
58856         * math/feupdateenv.c: Likewise.
58857         * math/fgetexcptflg.c: Likewise.
58858         * math/fraiseexcpt.c: Likewise.
58859         * math/fsetexcptflg.c: Likewise.
58860         * math/ftestexcept.c: Likewise.
58861         * math/k_cosl.c: Likewise.
58862         * math/k_rem_pio2l.c: Likewise.
58863         * math/k_sinl.c: Likewise.
58864         * math/k_tanl.c: Likewise.
58865         * math/s_asinhl.c: Likewise.
58866         * math/s_atanl.c: Likewise.
58867         * math/s_cbrtl.c: Likewise.
58868         * math/s_erfl.c: Likewise.
58869         * math/s_expm1l.c: Likewise.
58870         * math/s_log1pl.c: Likewise.
58871         * math/s_tanhl.c: Likewise.
58872         * misc/acct.c: Likewise.
58873         * misc/brk.c: Likewise.
58874         * misc/chflags.c: Likewise.
58875         * misc/chroot.c: Likewise.
58876         * misc/fchflags.c: Likewise.
58877         * misc/fgetxattr.c: Likewise.
58878         * misc/flistxattr.c: Likewise.
58879         * misc/fremovexattr.c: Likewise.
58880         * misc/fsetxattr.c: Likewise.
58881         * misc/fsync.c: Likewise.
58882         * misc/ftruncate.c: Likewise.
58883         * misc/futimes.c: Likewise.
58884         * misc/futimesat.c: Likewise.
58885         * misc/getdomain.c: Likewise.
58886         * misc/getdtsz.c: Likewise.
58887         * misc/gethostid.c: Likewise.
58888         * misc/gethostname.c: Likewise.
58889         * misc/getloadavg.c: Likewise.
58890         * misc/getpagesize.c: Likewise.
58891         * misc/getsysstats.c: Likewise.
58892         * misc/getxattr.c: Likewise.
58893         * misc/gtty.c: Likewise.
58894         * misc/ioctl.c: Likewise.
58895         * misc/lgetxattr.c: Likewise.
58896         * misc/listxattr.c: Likewise.
58897         * misc/llistxattr.c: Likewise.
58898         * misc/lremovexattr.c: Likewise.
58899         * misc/lsetxattr.c: Likewise.
58900         * misc/lutimes.c: Likewise.
58901         * misc/madvise.c: Likewise.
58902         * misc/mincore.c: Likewise.
58903         * misc/mlock.c: Likewise.
58904         * misc/mlockall.c: Likewise.
58905         * misc/mmap.c: Likewise.
58906         * misc/mprotect.c: Likewise.
58907         * misc/msync.c: Likewise.
58908         * misc/munlock.c: Likewise.
58909         * misc/munlockall.c: Likewise.
58910         * misc/munmap.c: Likewise.
58911         * misc/preadv.c: Likewise.
58912         * misc/preadv64.c: Likewise.
58913         * misc/ptrace.c: Likewise.
58914         * misc/pwritev.c: Likewise.
58915         * misc/pwritev64.c: Likewise.
58916         * misc/readv.c: Likewise.
58917         * misc/reboot.c: Likewise.
58918         * misc/remap_file_pages.c: Likewise.
58919         * misc/removexattr.c: Likewise.
58920         * misc/revoke.c: Likewise.
58921         * misc/select.c: Likewise.
58922         * misc/setdomain.c: Likewise.
58923         * misc/setegid.c: Likewise.
58924         * misc/seteuid.c: Likewise.
58925         * misc/sethostid.c: Likewise.
58926         * misc/sethostname.c: Likewise.
58927         * misc/setregid.c: Likewise.
58928         * misc/setreuid.c: Likewise.
58929         * misc/setxattr.c: Likewise.
58930         * misc/sstk.c: Likewise.
58931         * misc/stty.c: Likewise.
58932         * misc/swapoff.c: Likewise.
58933         * misc/swapon.c: Likewise.
58934         * misc/sync.c: Likewise.
58935         * misc/syncfs.c: Likewise.
58936         * misc/syscall.c: Likewise.
58937         * misc/truncate.c: Likewise.
58938         * misc/ualarm.c: Likewise.
58939         * misc/usleep.c: Likewise.
58940         * misc/ustat.c: Likewise.
58941         * misc/utimes.c: Likewise.
58942         * misc/vhangup.c: Likewise.
58943         * misc/writev.c: Likewise.
58944         * posix/_exit.c: Likewise.
58945         * posix/alarm.c: Likewise.
58946         * posix/execve.c: Likewise.
58947         * posix/fexecve.c: Likewise.
58948         * posix/fork.c: Likewise.
58949         * posix/fpathconf.c: Likewise.
58950         * posix/getaddrinfo.c: Likewise.
58951         * posix/getegid.c: Likewise.
58952         * posix/geteuid.c: Likewise.
58953         * posix/getgid.c: Likewise.
58954         * posix/getgroups.c: Likewise.
58955         * posix/getlogin.c: Likewise.
58956         * posix/getlogin_r.c: Likewise.
58957         * posix/getpgid.c: Likewise.
58958         * posix/getpid.c: Likewise.
58959         * posix/getppid.c: Likewise.
58960         * posix/getresgid.c: Likewise.
58961         * posix/getresuid.c: Likewise.
58962         * posix/getsid.c: Likewise.
58963         * posix/getuid.c: Likewise.
58964         * posix/glob64.c: Likewise.
58965         * posix/nanosleep.c: Likewise.
58966         * posix/pathconf.c: Likewise.
58967         * posix/pause.c: Likewise.
58968         * posix/posix_madvise.c: Likewise.
58969         * posix/pread.c: Likewise.
58970         * posix/pread64.c: Likewise.
58971         * posix/pwrite.c: Likewise.
58972         * posix/pwrite64.c: Likewise.
58973         * posix/sched_getaffinity.c: Likewise.
58974         * posix/sched_getp.c: Likewise.
58975         * posix/sched_gets.c: Likewise.
58976         * posix/sched_primax.c: Likewise.
58977         * posix/sched_primin.c: Likewise.
58978         * posix/sched_rr_gi.c: Likewise.
58979         * posix/sched_setaffinity.c: Likewise.
58980         * posix/sched_setp.c: Likewise.
58981         * posix/sched_sets.c: Likewise.
58982         * posix/sched_yield.c: Likewise.
58983         * posix/setgid.c: Likewise.
58984         * posix/setlogin.c: Likewise.
58985         * posix/setpgid.c: Likewise.
58986         * posix/setresgid.c: Likewise.
58987         * posix/setresuid.c: Likewise.
58988         * posix/setsid.c: Likewise.
58989         * posix/setuid.c: Likewise.
58990         * posix/sleep.c: Likewise.
58991         * posix/spawni.c: Likewise.
58992         * posix/sysconf.c: Likewise.
58993         * posix/times.c: Likewise.
58994         * posix/wait.c: Likewise.
58995         * posix/wait3.c: Likewise.
58996         * posix/wait4.c: Likewise.
58997         * posix/waitpid.c: Likewise.
58998         * resolv/gai_sigqueue.c: Likewise.
58999         * resource/getpriority.c: Likewise.
59000         * resource/getrlimit.c: Likewise.
59001         * resource/getrusage.c: Likewise.
59002         * resource/nice.c: Likewise.
59003         * resource/setpriority.c: Likewise.
59004         * resource/setrlimit.c: Likewise.
59005         * resource/ulimit.c: Likewise.
59006         * rt/aio_cancel.c: Likewise.
59007         * rt/aio_fsync.c: Likewise.
59008         * rt/aio_read.c: Likewise.
59009         * rt/aio_sigqueue.c: Likewise.
59010         * rt/aio_suspend.c: Likewise.
59011         * rt/aio_write.c: Likewise.
59012         * rt/clock_getres.c: Likewise.
59013         * rt/clock_gettime.c: Likewise.
59014         * rt/clock_nanosleep.c: Likewise.
59015         * rt/clock_settime.c: Likewise.
59016         * rt/lio_listio.c: Likewise.
59017         * rt/mq_close.c: Likewise.
59018         * rt/mq_getattr.c: Likewise.
59019         * rt/mq_notify.c: Likewise.
59020         * rt/mq_open.c: Likewise.
59021         * rt/mq_receive.c: Likewise.
59022         * rt/mq_send.c: Likewise.
59023         * rt/mq_setattr.c: Likewise.
59024         * rt/mq_timedreceive.c: Likewise.
59025         * rt/mq_timedsend.c: Likewise.
59026         * rt/mq_unlink.c: Likewise.
59027         * rt/shm_open.c: Likewise.
59028         * rt/shm_unlink.c: Likewise.
59029         * rt/timer_create.c: Likewise.
59030         * rt/timer_delete.c: Likewise.
59031         * rt/timer_getoverr.c: Likewise.
59032         * rt/timer_gettime.c: Likewise.
59033         * rt/timer_settime.c: Likewise.
59034         * setjmp/__longjmp.c: Likewise.
59035         * setjmp/setjmp.c: Likewise.
59036         * signal/kill.c: Likewise.
59037         * signal/killpg.c: Likewise.
59038         * signal/raise.c: Likewise.
59039         * signal/sigaction.c: Likewise.
59040         * signal/sigaltstack.c: Likewise.
59041         * signal/sigblock.c: Likewise.
59042         * signal/sigignore.c: Likewise.
59043         * signal/sigintr.c: Likewise.
59044         * signal/signal.c: Likewise.
59045         * signal/sigpause.c: Likewise.
59046         * signal/sigpending.c: Likewise.
59047         * signal/sigqueue.c: Likewise.
59048         * signal/sigreturn.c: Likewise.
59049         * signal/sigset.c: Likewise.
59050         * signal/sigsetmask.c: Likewise.
59051         * signal/sigstack.c: Likewise.
59052         * signal/sigsuspend.c: Likewise.
59053         * signal/sigtimedwait.c: Likewise.
59054         * signal/sigvec.c: Likewise.
59055         * signal/sigwait.c: Likewise.
59056         * signal/sigwaitinfo.c: Likewise.
59057         * signal/sysv_signal.c: Likewise.
59058         * socket/accept.c: Likewise.
59059         * socket/accept4.c: Likewise.
59060         * socket/bind.c: Likewise.
59061         * socket/connect.c: Likewise.
59062         * socket/getpeername.c: Likewise.
59063         * socket/getsockname.c: Likewise.
59064         * socket/getsockopt.c: Likewise.
59065         * socket/isfdtype.c: Likewise.
59066         * socket/listen.c: Likewise.
59067         * socket/recv.c: Likewise.
59068         * socket/recvfrom.c: Likewise.
59069         * socket/recvmsg.c: Likewise.
59070         * socket/send.c: Likewise.
59071         * socket/sendmsg.c: Likewise.
59072         * socket/sendto.c: Likewise.
59073         * socket/setsockopt.c: Likewise.
59074         * socket/shutdown.c: Likewise.
59075         * socket/sockatmark.c: Likewise.
59076         * socket/socket.c: Likewise.
59077         * socket/socketpair.c: Likewise.
59078         * stdio-common/ctermid.c: Likewise.
59079         * stdio-common/cuserid.c: Likewise.
59080         * stdio-common/remove.c: Likewise.
59081         * stdio-common/rename.c: Likewise.
59082         * stdio-common/renameat.c: Likewise.
59083         * stdio-common/tempname.c: Likewise.
59084         * stdlib/getcontext.c: Likewise.
59085         * stdlib/makecontext.c: Likewise.
59086         * stdlib/setcontext.c: Likewise.
59087         * stdlib/swapcontext.c: Likewise.
59088         * stdlib/system.c: Likewise.
59089         * streams/fattach.c: Likewise.
59090         * streams/fdetach.c: Likewise.
59091         * streams/getmsg.c: Likewise.
59092         * streams/getpmsg.c: Likewise.
59093         * streams/putmsg.c: Likewise.
59094         * streams/putpmsg.c: Likewise.
59095         * sysdeps/unix/bsd/getpt.c: Likewise.
59096         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
59097         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
59098         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
59099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
59100         Likewise.
59101         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
59102         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
59103         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
59104         * sysvipc/msgctl.c: Likewise.
59105         * sysvipc/msgget.c: Likewise.
59106         * sysvipc/msgrcv.c: Likewise.
59107         * sysvipc/msgsnd.c: Likewise.
59108         * sysvipc/semctl.c: Likewise.
59109         * sysvipc/semget.c: Likewise.
59110         * sysvipc/semop.c: Likewise.
59111         * sysvipc/semtimedop.c: Likewise.
59112         * sysvipc/shmat.c: Likewise.
59113         * sysvipc/shmctl.c: Likewise.
59114         * sysvipc/shmdt.c: Likewise.
59115         * sysvipc/shmget.c: Likewise.
59116         * termios/tcdrain.c: Likewise.
59117         * termios/tcflow.c: Likewise.
59118         * termios/tcflush.c: Likewise.
59119         * termios/tcgetattr.c: Likewise.
59120         * termios/tcgetpgrp.c: Likewise.
59121         * termios/tcsendbrk.c: Likewise.
59122         * termios/tcsetattr.c: Likewise.
59123         * termios/tcsetpgrp.c: Likewise.
59124         * time/adjtime.c: Likewise.
59125         * time/clock.c: Likewise.
59126         * time/getitimer.c: Likewise.
59127         * time/gettimeofday.c: Likewise.
59128         * time/setitimer.c: Likewise.
59129         * time/settimeofday.c: Likewise.
59130         * time/stime.c: Likewise.
59131         * time/time.c: Likewise.
59132
59133 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
59134
59135         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
59136         /usr/old/bin.
59137
59138         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
59139         instead of spaces.
59140         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
59141
59142 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
59143
59144         [BZ #14796]
59145         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
59146         FE_TONEAREST before applying Dekker multiplication and Knuth
59147         addition.  Clear inexact exceptions and check for exact zero
59148         results afterwards.
59149         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
59150         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
59151         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
59152         * math/libm-test.inc (fma_test): Add more tests.
59153         (fma_test_towardzero): Likewise.
59154         (fma_test_downward): Likewise.
59155         (fma_test_upward): Likewise.
59156         * sysdeps/generic/math_private.h (default_libc_fesetround): New
59157         function.
59158         (libc_fesetround): New macro.
59159         (libc_fesetroundf): Likewise.
59160         (libc_fesetroundl): Likewise.
59161         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
59162         function.
59163         (libc_fesetround_387): Likewise.
59164         (libc_fesetroundf): New macro.
59165         (libc_fesetround): Likewise.
59166         (libc_fesetroundl): Likewise.
59167         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
59168         function.
59169         (libc_fesetroundf): New macro.
59170         (libc_fesetround): Likewise.
59171         (libc_fesetroundl): Likewise.
59172         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
59173         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
59174         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
59175         libm_hidden_ver.
59176         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
59177         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
59178         libm_hidden_def.
59179         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
59180         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
59181         libm_hidden_ver.
59182         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
59183         libm_hidden_def.
59184
59185         [BZ #3439]
59186         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
59187         integer constant usable in #if and use that to give value to enum
59188         constant.
59189         (FE_DIVBYZERO): Likewise.
59190         (FE_UNDERFLOW): Likewise.
59191         (FE_OVERFLOW): Likewise.
59192         (FE_INVALID): Likewise.
59193         (FE_INVALID_SNAN): Likewise.
59194         (FE_INVALID_ISI): Likewise.
59195         (FE_INVALID_IDI): Likewise.
59196         (FE_INVALID_ZDZ): Likewise.
59197         (FE_INVALID_IMZ): Likewise.
59198         (FE_INVALID_COMPARE): Likewise.
59199         (FE_INVALID_SOFTWARE): Likewise.
59200         (FE_INVALID_SQRT): Likewise.
59201         (FE_INVALID_INTEGER_CONVERSION): Likewise.
59202         (FE_TONEAREST): Likewise.
59203         (FE_TOWARDZERO): Likewise.
59204         (FE_UPWARD): Likewise.
59205         (FE_DOWNWARD): Likewise.
59206         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
59207         (FE_DIVBYZERO): Likewise.
59208         (FE_OVERFLOW): Likewise.
59209         (FE_UNDERFLOW): Likewise.
59210         (FE_INEXACT): Likewise.
59211         (FE_TONEAREST): Likewise.
59212         (FE_DOWNWARD): Likewise.
59213         (FE_UPWARD): Likewise.
59214         (FE_TOWARDZERO): Likewise.
59215         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
59216         (FE_UNDERFLOW): Likewise.
59217         (FE_OVERFLOW): Likewise.
59218         (FE_DIVBYZERO): Likewise.
59219         (FE_INVALID): Likewise.
59220         (FE_TONEAREST): Likewise.
59221         (FE_TOWARDZERO): Likewise.
59222         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
59223         (FE_OVERFLOW): Likewise.
59224         (FE_UNDERFLOW): Likewise.
59225         (FE_DIVBYZERO): Likewise.
59226         (FE_INEXACT): Likewise.
59227         (FE_TONEAREST): Likewise.
59228         (FE_TOWARDZERO): Likewise.
59229         (FE_UPWARD): Likewise.
59230         (FE_DOWNWARD): Likewise.
59231         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
59232         (FE_DIVBYZERO): Likewise.
59233         (FE_OVERFLOW): Likewise.
59234         (FE_UNDERFLOW): Likewise.
59235         (FE_INEXACT): Likewise.
59236         (FE_TONEAREST): Likewise.
59237         (FE_DOWNWARD): Likewise.
59238         (FE_UPWARD): Likewise.
59239         (FE_TOWARDZERO): Likewise.
59240
59241 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
59242
59243         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
59244
59245 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
59246
59247         * scripts/cross-test-ssh.sh (command): Use newlines to separate
59248         commands.  Quote $PWD.
59249         (blacklist_exports): Don't use remove_newlines.  Replace "declare
59250         -x" by "export".
59251         (remove_newlines): Remove.
59252
59253 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
59254
59255         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
59256         * stdlib/stdlib.h (atof): Moved to ...
59257         * include/bits/stdlib-float.h: Here.  New file.
59258         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
59259         * stdlib/bits/stdlib-float.h: New file.
59260         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
59261         -mno-sse -mno-mmx.
59262         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
59263         <xmmintrin.h>.
59264
59265 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
59266
59267         * conform/conformtest.pl (@headers): Add fenv.h.
59268         * conform/data/fenv.h-data: New file.
59269         * include/fenv.h [_ISOMAC]: Disable all contents of file except
59270         include of <math/fenv.h>.
59271
59272         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
59273         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
59274         && !UNIX98].  Enables tests for XOPEN2K8.
59275         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
59276         POSIX2008]: Likewise.
59277
59278         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
59279         (struct rusage): Do not expect type or its members.
59280
59281         [BZ #3439]
59282         * math/math.h (FP_NAN): Define macro to integer constant usable in
59283         #if and use that to give value to enum constant.
59284         (FP_INFINITE): Likewise.
59285         (FP_ZERO): Likewise.
59286         (FP_SUBNORMAL): Likewise.
59287         (FP_NORMAL): Likewise.
59288
59289 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
59290
59291         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
59292         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
59293         arguments.
59294
59295 2012-11-02  Roland McGrath  <roland@hack.frob.com>
59296
59297         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
59298         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
59299         autoconf-time if not.
59300         * configure.in: Remove AC_PREREQ.
59301
59302 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
59303
59304         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
59305         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
59306         of the internal implementation.
59307
59308 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
59309
59310         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
59311         except include of <misc/sys/syslog.h>.
59312
59313 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
59314
59315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
59316         function returns with a NULL context exit with zero.
59317
59318 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
59319
59320         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
59321
59322 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
59323
59324         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
59325         (run_program_cmd): This.
59326         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
59327         (tst_langinfo): New variable.  Use it.
59328
59329 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
59330
59331         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
59332         floating point opcodes.
59333
59334 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
59335
59336         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
59337         variable.
59338
59339         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
59340
59341         * sysdeps/mach/hurd/powerpc: Remove directory.
59342         * sysdeps/mach/powerpc: Likewise.
59343
59344 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
59345
59346         * scripts/check-local-headers.sh: Ignore c++ headers.
59347
59348 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
59349
59350         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
59351         __libc_cleanup_region_start argument.
59352
59353 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
59354
59355         [BZ #14784]
59356         [BZ #14785]
59357         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
59358         x * y using scaling, not as x * y + z.
59359         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
59360         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
59361         * math/libm-test.inc (fma_test): Add more tests.
59362         (fma_test_towardzero): Likewise.
59363         (fma_test_downward): Likewise.
59364         (fma_test_upward): Likewise.
59365
59366 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
59367
59368         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
59369
59370 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
59371
59372         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
59373         New variable.
59374
59375 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
59376
59377         * rt/tst-shm.c (worker): Correct checking for mmap failure.
59378
59379 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
59380
59381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59382         Fix sort order.
59383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59384         Likewise.
59385
59386 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
59387
59388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59389         Fix the order of the list for glibc 2.17.
59390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59391         Likewise.
59392
59393 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
59394
59395         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59396
59397 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
59398
59399         [BZ #14610]
59400         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
59401         for low part of x being zero before using __atanl (y).
59402         * math/libm-test.inc (atan2_test): Add another test.
59403
59404         * manual/install.texi (Configuring and compiling): Document
59405         general use of test-wrapper and test-wrapper-env.
59406         * INSTALL: Regenerated.
59407
59408         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
59409         (__fma): Do not extract and scale down low bits on after-rounding
59410         systems when result rounded to normal precision would have normal
59411         exponent.
59412         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
59413         (__fmal): Do not extract and scale down low bits on after-rounding
59414         systems when result rounded to normal precision would have normal
59415         exponent.
59416         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
59417         (__fmal): Do not extract and scale down low bits on after-rounding
59418         systems when result rounded to normal precision would have normal
59419         exponent.
59420         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
59421         macro.
59422         (fma_test): Add more tests.
59423         (fma_test_towardzero): Likewise.
59424         (fma_test_downward): Likewise.
59425         (fma_test_upward): Likewise.
59426
59427 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
59428
59429         * sysdeps/i386/tininess.h: Renamed to ...
59430         * sysdeps/x86/tininess.h: This.
59431         * sysdeps/x86_64/tininess.h: Removed.
59432
59433 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
59434
59435         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
59436         input.  Use $(build-program-cmd).
59437         ($(objpfx)tst-array1-static.out): Likewise.
59438         ($(objpfx)tst-array2.out): Likewise.
59439         ($(objpfx)tst-array3.out): Likewise.
59440         ($(objpfx)tst-array4.out): Likewise.
59441         ($(objpfx)tst-array5.out): Likewise.
59442         ($(objpfx)tst-array5-static.out): Likewise.
59443
59444 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
59445
59446         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
59447         if defined.
59448
59449         * nss/nsswitch.h (nss_interface_function): Provide new
59450         macro for use with NSS functions.
59451         * grp/initgroups.c: Use new macro.
59452         * nss/getXXbyYY.c: Likewise.
59453         * nss/getXXbyYY_r.c: Likewise.
59454         * nss/getXXent.c: Likewise.
59455         * nss/getXXent_r.c: Likewise.
59456         * sysdeps/posix/getaddrinfo.c: Likewise.
59457
59458 2012-10-30  Andreas Jaeger  <aj@suse.de>
59459
59460         * po/ru.po: Update Russion translation from translation project.
59461
59462 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
59463
59464         [BZ #14152]
59465         [BZ #14783]
59466         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
59467         result and shift together with sticky bit instead of replicating
59468         round-to-nearest rounding.
59469         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
59470         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
59471         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
59472         missing underflow exceptions.
59473         (fma_test_towardzero): Add more tests.
59474         (fma_test_downward): Likewise.
59475         (fma_test_upward): Likewise.
59476
59477         [BZ #14047]
59478         * sysdeps/generic/tininess.h: New file.
59479         * sysdeps/i386/tininess.h: Likewise.
59480         * sysdeps/sh/tininess.h: Likewise.
59481         * sysdeps/x86_64/tininess.h: Likewise.
59482         * stdlib/tst-strtod-underflow.c: Likewise.
59483         * stdlib/tst-tininess.c: Likewise.
59484         * stdlib/strtod_l.c: Include <tininess.h>.
59485         (round_and_return): Do not set errno for exact underflow cases.
59486         Force an underflow exception when setting errno for underflow.
59487         Determine underflow based on rounding to normal precision if
59488         TININESS_AFTER_ROUNDING.
59489         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
59490         ERANGE for exact underflow cases.
59491         * stdlib/Makefile (tests): Add tst-tininess and
59492         tst-strtod-underflow.
59493         ($(objpfx)tst-tininess): Use $(link-libm).
59494         ($(objpfx)tst-strtod-underflow): Likewise.
59495
59496 2012-10-30  Andreas Jaeger  <aj@suse.de>
59497
59498         [BZ#14767]
59499         * elf/Makefile (tests): Remove conditional for have-initfini-array
59500         since this is now always required and the variable does not exist
59501         anymore.
59502         (tests-static): Likewise.
59503         (modules-names): Likewise.
59504
59505         * po/eo.po: Add Esperanto translation from translation project.
59506
59507         * elf/tst-array1.c (fini_array): Make writeable so that it can be
59508         merged with constructor/destructor.
59509         (init_array): Likewise.
59510         * elf/tst-array2dep.c (fini_array): Likewise.
59511         (init_array): Likewise.
59512
59513 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
59514
59515         * manual/message.texi: Delete @cartouche tags.
59516
59517 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
59518
59519         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
59520         EOPNOTSUPP.
59521         * sysdeps/mach/hurd/fsync.c: Likewise.
59522
59523         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
59524         [_POSIX_REALTIME_SIGNALS]: Change condition to
59525         [_POSIX_REALTIME_SIGNALS > 0].
59526
59527 2012-10-27  Andreas Jaeger  <aj@suse.de>
59528
59529         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
59530         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
59531         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
59532         [__WORDSIZE != 64]: Likewise.
59533
59534 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
59535
59536         *  iconvdata/tst-table.sh: Remove ${SHELL}.
59537         *  iconvdata/tst-tables.sh: Likewise.
59538
59539 2012-10-25  David S. Miller  <davem@davemloft.net>
59540
59541         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
59542         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
59543         of strtoull.
59544
59545         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
59546         ifunc-impl-list.c
59547         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
59548         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
59549         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
59550         file.
59551
59552 2012-10-25  Roland McGrath  <roland@hack.frob.com>
59553
59554         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
59555         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
59556         __getdirentries.
59557
59558 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
59559             Jim Blandy  <jimb@codesourcery.com>
59560
59561         * scripts/cross-test-ssh.sh: New file.
59562         * manual/install.texi (Configuring and compiling): Document use of
59563         cross-test-ssh.sh.
59564         * INSTALL: Regenerated.
59565
59566 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
59567
59568         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
59569         EOPNOTSUPP.
59570
59571 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
59572
59573         * Makeconfig (run-program-prefix): Fix comment.
59574
59575 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
59576             Jim Blandy  <jimb@codesourcery.com>
59577
59578         * Makeconfig (test-wrapper): New variable,
59579         (test-wrapper-env): Likewise.
59580         [$(cross-compiling) = yes && $(test-wrapper) != ""]
59581         (run-built-tests): Define to yes.
59582         (run-program-prefix): Use $(test-wrapper).
59583         (built-program-cmd): Likewise.
59584         * Rules (make-test-out): Use $(test-wrapper-env) and
59585         $(host-built-program-cmd).
59586         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
59587         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
59588         tst-pathopt.sh.
59589         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
59590         $(test-wrapper-env) to tst-rtld-load-self.sh.
59591         ($(objpfx)order2.out): Use $(test-wrapper).
59592         ($(objpfx)tst-initorder.out): Likewise.
59593         ($(objpfx)tst-initorder2.out): Likewise.
59594         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
59595         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
59596         (test_wrapper_env): New variable.  Use it to run ld.so.
59597         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
59598         Use it to run ld.so.
59599         (test_wrapper_env): Likewise.
59600         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
59601         $(test-wrapper) to run-iconv-test.sh.
59602         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
59603         (ICONV): Use $test_wrapper.
59604         * posix/Makefile ($(objpfx)globtest.out): Pass
59605         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
59606         globtest.sh, not $(run-program-prefix).
59607         * posix/globtest.sh (run_via_rtld_prefix): New variable.
59608         (test_wrapper): Likewise.
59609         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
59610         set together with run_via_rtld_prefix.
59611         (run_program_prefix): Define in terms of test_wrapper and
59612         run_via_rtld_prefix.
59613
59614 2012-10-24  Roland McGrath  <roland@hack.frob.com>
59615
59616         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
59617         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
59618         Targets removed.
59619
59620         [BZ #14743]
59621         * include/time.h: Remove librt_hidden_proto (clock_gettime).
59622         Declare __clock_getres, __clock_gettime, __clock_settime,
59623         __clock_nanosleep, and __clock_getcpuclockid.
59624         * rt/clock_gettime.c: Define __clock_gettime as an alias.
59625         Remove librt_hidden_def (clock_gettime).
59626         * sysdeps/unix/clock_gettime.c: Likewise.
59627         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
59628         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
59629         * rt/clock_getres.c: Define __clock_getres as an alias.
59630         * sysdeps/posix/clock_getres.c: Likewise.
59631         * rt/clock_settime.c: Define __clock_settime as an alias.
59632         * sysdeps/unix/clock_settime.c: Likewise.
59633         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
59634         * sysdeps/unix/clock_nanosleep.c: Likewise.
59635         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
59636         * rt/clock-compat.c: New file.
59637         * rt/Makefile (librt-routines): Add clock-compat and move
59638         $(clock-routines) to ...
59639         (routines): ... here, new variable.
59640         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
59641         Don't add get_clockfreq here.
59642         * rt/Versions (libc: GLIBC_2.17): New version set.
59643         Add clock_* symbols here.
59644         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
59645         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
59646         (GLIBC_2.17): Add clock_* symbols.
59647         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59648         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59649         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59651         Likewise.
59652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59653         Likewise.
59654         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59655         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59656         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59657         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59658         * NEWS: Mention the move.
59659
59660         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
59661         Use __open, __read, __close rather than their public counterparts.
59662         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
59663         (__get_clockfreq_via_cpuinfo): Likewise.
59664         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
59665         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
59666
59667         * config.h.in (HAVE_IFUNC): New #undef.
59668         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
59669         was successful.
59670         * configure: Regenerated.
59671
59672 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
59673
59674         * configure.in: Move READELF check to start of file.
59675         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
59676         libc_cv_asm_gnu_indirect_function in the process.
59677         * configure: Regenerated.
59678
59679 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
59680
59681         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
59682         send the output to /dev/null.
59683         (libc_cv_cc_with_libunwind): Likewise.
59684         (libc_cv_as_noexecstack): Likewise.
59685         * configure: Regenerate.
59686
59687 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
59688
59689         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
59690
59691         * posix/globtest.sh (TMPDIR): Do not set.
59692         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
59693         (testout): Likewise.
59694
59695 2012-10-24  Andreas Jaeger  <aj@suse.de>
59696
59697         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
59698         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
59699         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
59700         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
59701         posix_fadvise64, posix_fallocate64.
59702
59703         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
59704         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
59705         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
59706         Likewise.
59707         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
59708         Likewise.
59709         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
59710
59711         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
59712         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
59713         <bits/fcntl-linux.h>.
59714         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
59715
59716         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
59717         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
59718         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
59719         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
59720         [__WORDSIZE != 64]: Likewise.
59721
59722 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
59723
59724         * Makeconfig (run-built-tests): New variable.
59725         * Rules [$(cross-compiling) = yes]: Change condition to
59726         [$(run-built-tests) = no].
59727         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
59728         to [$(run-built-tests) = yes].
59729         * elf/Makefile [$(cross-compiling) = no]: Likewise.
59730         * grp/Makefile [$(cross-compiling) = no]: Likewise.
59731         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
59732         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
59733         * intl/Makefile [$(cross-compiling) = no]: Likewise.
59734         * io/Makefile [$(cross-compiling) = no]: Likewise.
59735         * libio/Makefile [$(cross-compiling) = no]: Likewise.
59736         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
59737         * misc/Makefile [$(cross-compiling) = no]: Likewise.
59738         * posix/Makefile [$(cross-compiling) = no]: Likewise.
59739         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
59740         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
59741         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
59742         * string/Makefile [$(cross-compiling) = no]: Likewise.
59743
59744         * posix/Makefile ($(objpfx)globtest.out): Pass
59745         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
59746         $(rtld-installed-name).
59747         * posix/globtest.sh (elf_objpfx): Remove variable.
59748         (rtld_installed_name): Likewise.
59749         (library_path): Likewise.
59750         (run_program_prefix): New variable.  Use for running globtest
59751         binary.
59752
59753 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
59754             Joseph Myers  <joseph@codesourcery.com>
59755
59756         * Makeconfig (host-built-program-cmd): New variable.
59757         * elf/Makefile (tst-stackguard1-ARGS): Use
59758         $(host-built-program-cmd).
59759         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
59760         (tst-spawn-ARGS): Likewise.
59761         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
59762
59763 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
59764             Jim Blandy  <jimb@codesourcery.com>
59765
59766         * Makeconfig (run-via-rtld-prefix): New variable.
59767         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
59768         (built-program-cmd): Likewise.
59769
59770 2012-10-22  Andreas Jaeger  <aj@suse.de>
59771
59772         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
59773         __O_RSYNC if it exists, otherwise to O_SYNC.
59774
59775 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
59776             Joseph Myers  <joseph@codesourcery.com>
59777
59778         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
59779         /dev/null.
59780         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
59781         from /dev/null
59782         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
59783         /dev/null.
59784
59785 2012-10-22  Andreas Jaeger  <aj@suse.de>
59786
59787         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
59788         Define always.
59789         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
59790
59791         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
59792         bits/fcntl-linux.h.
59793
59794         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
59795         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
59796
59797         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
59798         to __O_LARGEFILE.
59799         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
59800         to __O_LARGEFILE.
59801
59802 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
59803             Joseph Myers  <joseph@codesourcery.com>
59804
59805         * config.make.in (NM): New variable.
59806
59807 2012-10-21  Andreas Jaeger  <aj@suse.de>
59808
59809         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
59810         definitions and declarations that are provided by
59811         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
59812
59813 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
59814
59815         [BZ #14683]
59816         * elf/Makefile (tests-static): Add tst-leaks1-static.
59817         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
59818         ($(objpfx)tst-leaks1-static): New rule.
59819         ($(objpfx)tst-leaks1-static-mem): Likewise.
59820         (tst-leaks1-static-ENV): New macro.
59821         * elf/dl-open.c (dl_open_worker): Check the main application
59822         only if SHARED is defined.
59823         * elf/tst-leaks1-static.c: New file.
59824
59825 2012-10-20  Andreas Jaeger  <aj@suse.de>
59826
59827         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
59828         generic values for Linux.
59829         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
59830         and declarations that are provided by <bits/fcntl-linux.h> and
59831         include <bits/fcntl-linux.h>.
59832         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
59833         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
59834
59835 2012-10-20  Roland McGrath  <roland@hack.frob.com>
59836
59837         * io/fcntl.h: Move include of <bits/types.h> to the top and
59838         include it unconditionally.
59839
59840 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
59841
59842         * wcsmbs/Makefile (tests-ifunc): New variable.
59843         (tests): Add $(tests-ifunc).
59844         * wcsmbs/test-wcschr-ifunc.c: New file.
59845         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
59846         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
59847         * wcsmbs/test-wcslen-ifunc.c: Likewise.
59848         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
59849         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
59850
59851         * string/Makefile (tests-ifunc): New variable.
59852         (tests): Add $(tests-ifunc).
59853         * string/test-memccpy.c (TEST_NAME): New macro.
59854         * string/test-memchr.c (TEST_NAME): Likewise.
59855         * string/test-memcmp.c (TEST_NAME): Likewise.
59856         * string/test-memcpy.c (TEST_NAME): Likewise.
59857         * string/test-memmem.c (TEST_NAME): Likewise.
59858         * string/test-memmove.c (TEST_NAME): Likewise.
59859         * string/test-memset.c (TEST_NAME): Likewise.
59860         * string/test-rawmemchr.c (TEST_NAME): Likewise.
59861         * string/test-stpcpy.c (TEST_NAME): Likewise.
59862         * string/test-stpncpy.c (TEST_NAME): Likewise.
59863         * string/test-strcasecmp.c (TEST_NAME): Likewise.
59864         * string/test-strcasestr.c (TEST_NAME): Likewise.
59865         * string/test-strcat.c (TEST_NAME): Likewise.
59866         * string/test-strchr.c (TEST_NAME): Likewise.
59867         * string/test-strcmp.c(TEST_NAME): Likewise.
59868         * string/test-strcpy.c (TEST_NAME): Likewise.
59869         * string/test-strcspn.c (TEST_NAME): Likewise.
59870         * string/test-strlen.c (TEST_NAME): Likewise.
59871         * string/test-strncasecmp.c (TEST_NAME): Likewise.
59872         * string/test-strncmp.c (TEST_NAME): Likewise.
59873         * string/test-strncpy.c (TEST_NAME): Likewise.
59874         * string/test-strnlen.c (TEST_NAME): Likewise.
59875         * string/test-strpbrk.c (TEST_NAME): Likewise.
59876         * string/test-strrchr.c (TEST_NAME): Likewise.
59877         * string/test-strspn.c (TEST_NAME): Likewise.
59878         * string/test-strstr.c (TEST_NAME): Likewise.
59879         * string/test-bcopy-ifunc.c: New file.
59880         * string/test-bzero-ifunc.c: Likewise.
59881         * string/test-memccpy-ifunc.c: Likewise.
59882         * string/test-memchr-ifunc.c: Likewise.
59883         * string/test-memcmp-ifunc.c: Likewise.
59884         * string/test-memcpy-ifunc.c: Likewise.
59885         * string/test-memmem-ifunc.c: Likewise.
59886         * string/test-memmove-ifunc.c: Likewise.
59887         * string/test-mempcpy-ifunc.c: Likewise.
59888         * string/test-memset-ifunc.c: Likewise.
59889         * string/test-rawmemchr-ifunc.c: Likewise.
59890         * string/test-stpcpy-ifunc.c: Likewise.
59891         * string/test-stpncpy-ifunc.c: Likewise.
59892         * string/test-strcasecmp-ifunc.c: Likewise.
59893         * string/test-strcasestr-ifunc.c: Likewise.
59894         * string/test-strcat-ifunc.c: Likewise.
59895         * string/test-strchr-ifunc.c: Likewise.
59896         * string/test-strchrnul-ifunc.c: Likewise.
59897         * string/test-strcmp-ifunc.c: Likewise.
59898         * string/test-strcpy-ifunc.c: Likewise.
59899         * string/test-strcspn-ifunc.c: Likewise.
59900         * string/test-strlen-ifunc.c: Likewise.
59901         * string/test-strncasecmp-ifunc.c: Likewise.
59902         * string/test-strncat-ifunc.c: Likewise.
59903         * string/test-strncmp-ifunc.c: Likewise.
59904         * string/test-strncpy-ifunc.c: Likewise.
59905         * string/test-strnlen-ifunc.c: Likewise.
59906         * string/test-strpbrk-ifunc.c: Likewise.
59907         * string/test-strrchr-ifunc.c: Likewise.
59908         * string/test-strspn-ifunc.c: Likewise.
59909         * string/test-strstr-ifunc.c: Likewise.
59910
59911         * debug/Makefile (tests-ifunc): New variable.
59912         (tests): Add $(tests-ifunc).
59913         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
59914         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
59915         * debug/test-stpcpy_chk-ifunc.c: New file.
59916         * debug/test-strcpy_chk-ifunc.c: Likewise.
59917
59918 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
59919
59920         [BZ #13601]
59921         * elf/dl-load.c (open_verify): Retry read if the entire ELF
59922         header is not read in.
59923
59924 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
59925
59926         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
59927         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
59928         directly.  Pass built executable to script as
59929         $(built-program-cmd).
59930         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
59931         $testprogram without using LD_LIBRARY_PATH and $ldso.
59932
59933         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
59934         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
59935         $(rtld-installed-name).
59936         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
59937         (rtld_installed_name): Likewise.
59938         (library_path): Likewise.
59939         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
59940         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
59941         $(run-program-prefix) to tst-tables.sh.
59942         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
59943         it to run tst-table-from and tst-table-to.
59944         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
59945         Pass it to tst-table.sh.
59946         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
59947         $(run-program-prefix) to tst-gettext.sh.
59948         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
59949         tst-translit.sh.
59950         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
59951         tst-gettext2.sh.
59952         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
59953         to run tst-gettext.
59954         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
59955         to run tst-gettext2.
59956         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
59957         to run tst-translit.
59958         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
59959         $(run-program-prefix) to tst-mtrace.sh.
59960         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
59961         to run tst-mtrace.
59962         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
59963         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
59964         $(rtld-installed-name).
59965         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
59966         (rtld_installed_name): Likewise.
59967         (run_program_prefix): New variable.  Use it to run wordexp-test.
59968
59969         * Makeconfig (ARCH): Remove all definitions.
59970         (machine): Likewise.
59971         [ARCH]: Remove conditional code.
59972         [!objdir]: Give error.
59973         [!objdir] (objpfx): Remove.
59974         [!objdir] (common-objpfx): Likewise.
59975         [!objdir] (common-objdir): Likewise.
59976         * configure.in (config_makefile): Remove.  Hardcode Makefile in
59977         AC_CONFIG_FILES call.
59978         * configure: Regenerated.
59979
59980         [BZ #13888]
59981         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
59982         or TMPDIR.
59983         (testout): Likewise.
59984
59985         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
59986         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
59987         $(rtld-installed-name).
59988         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
59989         (rtld_installed_name): Likwise.
59990         (runit): Remove function.
59991         (run_getconf): New variable,  Use it for running getconf binary.
59992
59993 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
59994
59995         [BZ #14716]
59996         * string/test-memmem.c (check_result): New function.
59997         (do_one_test): Use it.
59998         (check1): New function.
59999         (test_main): Use it.
60000
60001 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
60002
60003         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
60004
60005 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
60006
60007         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
60008         (_G_LSEEK64): Likewise.
60009         (_G_MMAP64): Likewise.
60010         (_G_FSTAT64): Likewise.
60011         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
60012         (_G_LSEEK64): Likewise.
60013         (_G_MMAP64): Likewise.
60014         (_G_FSTAT64): Likewise.
60015         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
60016         unconditional.  Call __mmap64 directly.
60017         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
60018         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
60019         __lseek64 directly.
60020         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
60021         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
60022         __mmap64 directly.
60023         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
60024         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
60025         __lseek64 directly.
60026         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
60027         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
60028         __lseek64 directly.
60029         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
60030         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
60031         __lseek64 directly.
60032         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
60033         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
60034         __fxstat64 directly.
60035         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
60036         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
60037         unconditional.
60038         (freopen64) [!_G_OPEN64]: Remove conditional code.
60039         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
60040         unconditional.
60041         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
60042         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
60043         unconditional.
60044         (ftello64) [!_G_LSEEK64]: Remove conditional code.
60045         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
60046         unconditional.
60047         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
60048         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
60049         unconditional.
60050         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
60051         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
60052         unconditional.
60053         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
60054         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
60055         unconditional.
60056         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
60057         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
60058         unconditional.
60059         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
60060
60061 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
60062
60063         [BZ #12140]
60064         * manual/memory.texi (Malloc Tunable Parameters): Add note
60065         about free list pointers overwriting some perturb bytes.
60066         Wording suggested by Roland McGrath.
60067
60068 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
60069
60070         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
60071         (lgamma_test): Likewise.
60072         (tgamma_test): Likewise.
60073
60074 2012-10-16  Florian Weimer  <fweimer@redhat.com>
60075
60076         [BZ #14700]
60077         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
60078         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
60079
60080 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
60081
60082         * NEWS: Mention BZ #14716.
60083         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
60084         when removing AVAILABLE1_USES_J macro.
60085
60086 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
60087
60088         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
60089         (__bswap_64): __uint64_t for unsigned 64-bit int.
60090
60091 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
60092
60093         * include/string.h (memmem): Declare libc hidden alias.
60094         * string/memmem.c (memmem): Define libc hidden alias.
60095         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
60096         __read, __close instead of open, read, close.
60097
60098 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
60099
60100         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
60101         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
60102         global and hidden.
60103         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
60104         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
60105         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
60106         Likewise.
60107         (__rawmemchr_sse2): Likewise.
60108         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
60109         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
60110         (__strchr_sse2): Likewise.
60111         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
60112         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
60113         (__strcasecmp_sse2): Likewise.
60114         (__strncasecmp_sse2): Likewise.
60115         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
60116         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
60117         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
60118         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
60119         (__strrchr_sse2): Likewise.
60120         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
60121         ifunc-impl-list.c.
60122         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
60123         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
60124         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
60125         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
60126         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
60127         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
60128         * sysdeps/x86_64/multiarch/memset.S: Likewise.
60129         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
60130         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
60131         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
60132         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
60133         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
60134         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
60135         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
60136         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
60137         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
60138         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
60139         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
60140         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
60141         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
60142         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
60143         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
60144         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
60145         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
60146         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
60147         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
60148         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
60149         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
60150         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
60151         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
60152
60153         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
60154         global and hidden.
60155         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
60156         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
60157         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
60158         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
60159         Likewise.
60160         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
60161         Likewise.
60162         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
60163         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
60164         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
60165         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
60166         ifunc-impl-list.c.
60167         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
60168         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
60169         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
60170         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
60171         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
60172         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
60173         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
60174         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
60175         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
60176         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
60177         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
60178         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
60179         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
60180         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
60181         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
60182         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
60183         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
60184         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
60185         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
60186         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
60187         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
60188         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
60189         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
60190         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
60191         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
60192         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
60193         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
60194         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
60195         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
60196         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
60197         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
60198         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
60199         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
60200         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
60201         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
60202         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
60203         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
60204         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
60205         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
60206         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
60207         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
60208
60209         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
60210         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
60211         * include/ifunc-impl-list.h: New file.
60212         * misc/ifunc-impl-list.c: Likewise.
60213         * misc/Makefile (routines): Add ifunc-impl-list.
60214         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
60215         * string/test-string.h: Include <ifunc-impl-list.h>.
60216         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
60217         TEST_NAME]: New variables.
60218         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
60219         are defined.
60220         (test_init): Call __libc_ifunc_impl_list to initialize
60221         func_list if TEST_IFUNC and TEST_NAME are defined.
60222
60223         * string/Makefile (strop-tests): Add bcopy and bzero.
60224         * string/test-bcopy.c: New file.
60225         * string/test-bzero.c: Likewise.
60226         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
60227         defined.
60228         * string/test-memset.c: Support bzero test if TEST_BZERO is
60229         defined.
60230         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
60231         __libc_memmove.
60232         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
60233         __libc_memset.
60234         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
60235         of memset.
60236
60237 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
60238
60239         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
60240         * configure: Regenerated.
60241
60242         * Makeconfig (+link-static-before-libc): Don't include
60243         $(link-static-libc).
60244
60245         * libio/libio.h (_IO_pos_t): Remove.
60246
60247 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
60248
60249         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
60250         McGrath.
60251
60252 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
60253
60254         * crypt/crypt-entry.c: Include fips-private.h.
60255         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
60256         * crypt/md5c-test.c (main): Tolerate disabled MD5.
60257         * sysdeps/unix/sysv/linux/fips-private.h: New file.
60258         * sysdeps/generic/fips-private.h: New file, dummy fallback.
60259
60260 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
60261
60262         * crypt/crypt-private.h: Include stdbool.h.
60263         (_ufc_setup_salt_r): Return bool.
60264         * crypt/crypt-entry.c: Include errno.h.
60265         (__crypt_r): Return NULL with EINVAL for bad salt.
60266         * crypt/crypt_util.c (bad_for_salt): New.
60267         (_ufc_setup_salt_r): Check that salt is long enough and within
60268         the specified alphabet.
60269         * crypt/badsalttest.c: New file.
60270         * crypt/Makefile (tests): Add it.
60271         ($(objpfx)badsalttest): New.
60272
60273 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
60274
60275         * NEWS: Add entry for BZ #14602.
60276
60277 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
60278
60279         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
60280         type-generic.
60281         * math/libm-test.inc: Update comment listing what functions and
60282         macros are tested.
60283         (isgreater_test): New function.
60284         (isgreaterequal_test): Likewise.
60285         (isless_test): Likewise.
60286         (islessequal_test): Likewise.
60287         (islessgreater_test): Likewise.
60288         (isunordered_test): Likewise.
60289         (main): Call the new functions.
60290
60291 2012-10-09  Roland McGrath  <roland@hack.frob.com>
60292
60293         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
60294         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
60295         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
60296         * sysdeps/i386/configure: Regenerated.
60297         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
60298         * sysdeps/mach/configure: Regenerated.
60299         * sysdeps/mach/hurd/configure: Regenerated.
60300         * sysdeps/powerpc/configure: Regenerated.
60301         * sysdeps/powerpc/powerpc32/configure: Regenerated.
60302         * sysdeps/powerpc/powerpc64/configure: Regenerated.
60303         * sysdeps/s390/s390-32/configure: Regenerated.
60304         * sysdeps/s390/s390-64/configure: Regenerated.
60305         * sysdeps/sh/configure: Regenerated.
60306         * sysdeps/sparc/configure: Regenerated.
60307         * sysdeps/unix/sysv/linux/configure: Regenerated.
60308         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
60309         * sysdeps/x86_64/configure: Regenerated.
60310
60311         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
60312         defined.  Don't check if MAP is NULL.
60313
60314 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
60315
60316         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
60317         (_G_stat64): Likewise.
60318         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
60319         (_G_stat64): Likewise.
60320         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
60321         instead of struct _G_stat64.
60322         * libio/fileops.c (mmap_remap_check): Likewise.
60323         (decide_maybe_mmap): Likewise.
60324         (_IO_new_file_seekoff): Likewise.
60325         (_IO_file_stat): Likewise.
60326         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
60327         _G_off64_t.
60328         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
60329         instead of struct _G_stat64.
60330         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
60331
60332 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
60333
60334         [BZ #14602]
60335         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
60336         Replace with ...
60337         (CHECK_EOL): New macro.
60338         (two_way_short_needle): Check beginning of haystack for EOL.  Use
60339         CHECK_EOL.
60340         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
60341         Replace with CHECK_EOL.
60342         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
60343         Replace with CHECK_EOL.
60344
60345 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
60346
60347         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
60348         type-generic.
60349         * math/libm-test.inc: Update comment listing what functions and
60350         macros are tested.
60351         (finite_test): New function.
60352         (isinf_test): Likewise.
60353         (isnan_test): Likewise.
60354         (fpclassify_test): Test subnormal input.
60355         (isfinite_test): Likewise.
60356         (isnormal_test): Likewise.
60357         (main): Call the new functions.
60358
60359 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
60360
60361         [BZ #14660]
60362         * Makerules (%.dynsym): Force C locale when running
60363         $(OBJDUMP) --dynamic-syms.
60364
60365 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
60366
60367         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
60368         <stdint.h>.
60369
60370 2012-10-06  David S. Miller  <davem@davemloft.net>
60371
60372         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
60373         upper 32-bits of the length value in %o2 since we use branch-on-register
60374         tests which consider the entire 64-bit register.
60375
60376 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
60377
60378         * string/test-strstr.c (check2): Add a test for page boundary.
60379
60380 2012-10-05  David S. Miller  <davem@davemloft.net>
60381
60382         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
60383         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
60384         file.
60385         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
60386         sysdep_routines.
60387         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
60388         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
60389         and bzero when HWCAP_SPARC_CRYPTO is present.
60390
60391 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
60392
60393         [BZ #14602]
60394         * string/test-strstr.c (check2): New function.
60395         (test_main): Call check2.
60396
60397         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
60398         and bug-strchr1.
60399         * string/bug-strcasestr1.c (do_test): Moved to ...
60400         * string/test-strcasestr.c (check1): Here.  New function.
60401         (do_one_test): Break out result checking code into ...
60402         (check_result): This.  New function.
60403         (do_one_test): Call check_result.
60404         (test_main): Call check1.
60405         * string/bug-strchr1.c (do_test): Moved to ...
60406         * string/test-strchr.c (check1): Here.  New function.
60407         (do_one_test): Break out result checking code into ...
60408         (check_result): This.  New function.
60409         (do_one_test): Call check_result.
60410         (test_main): Call check1.
60411         * string/bug-strstr1.c (main): Moved to ...
60412         * string/test-strstr.c (check1): Here.  New function.
60413         (do_one_test): Break out result checking code into ...
60414         (check_result): This.  New function.
60415         (do_one_test): Call check_result.
60416         (test_main): Call check1.
60417         * string/bug-strcasestr1.c: Removed.
60418         * string/bug-strchr1.c: Likewise.
60419         * string/bug-strstr1.c: Likewise.
60420
60421         * elf/Makefile (dl-routines): Add hwcaps.
60422         * elf/dl-support.c (_dl_important_hwcaps): Removed.
60423         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
60424         (_dl_important_hwcaps): Moved to ...
60425         * elf/dl-hwcaps.c: Here.  New file.
60426         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
60427
60428         [BZ #14557]
60429         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
60430         if IS_IN_rtld isn't defined.
60431
60432         * elf/dl-support.c (_dl_sysinfo_map): New.
60433         Include "get-dynamic-info.h" and "setup-vdso.h".
60434         (_dl_non_dynamic_init): Call setup_vdso.
60435         * elf/dynamic-link.h: Don't include <assert.h>.
60436         (elf_get_dynamic_info): Moved to ...
60437         * elf/get-dynamic-info.h: Here.  New file.
60438         * elf/dynamic-link.h: Include "get-dynamic-info.h".
60439         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
60440         * elf/setup-vdso.h: Here.  New file.
60441         * elf/rtld.c: Include "setup-vdso.h".
60442         (dl_main): Call setup_vdso.
60443
60444 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
60445
60446         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
60447         creal in comment listing functions tested.  List finite, isinf,
60448         isnan, isless, islessequal, isgreater, isgreaterequal,
60449         islessgreater, isunordered, lgamma_r and pow10 as functions and
60450         macros not tested.  Mention which functions not tested are aliases
60451         for other functions.  Fix typo.  Note that signs of NaNs are not
60452         tested.
60453
60454         * scripts/config.guess: Update from config.git.
60455         * scripts/config.sub: Likewise.
60456
60457 2012-10-04  Roland McGrath  <roland@hack.frob.com>
60458
60459         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
60460         * misc/madvise.c (madvise): Renamed to __madvise.
60461         Make madvise a weak alias.
60462         * include/sys/mman.h: Declare __madvise.
60463         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
60464         * sysdeps/unix/syscalls.list
60465         (madvise): Make __madvise the strong name, and madvise a weak alias.
60466         * sysdeps/unix/sysv/linux/syscalls.list
60467         (madvise, mmap): Remove redundant entries.
60468         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
60469         * malloc/malloc.c (mtrim): Likewise.
60470         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
60471
60472 2012-10-03  Roland McGrath  <roland@hack.frob.com>
60473
60474         * sysdeps/mach/hurd/dl-cache.c: File removed.
60475         * config.h.in (USE_LDCONFIG): New #undef.
60476         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
60477         * configure: Regenerated.
60478         * elf/Makefile (dl-routines): Add dl-cache only under
60479         [$(use-ldconfig) = yes].
60480         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
60481         cache on [USE_LDCONFIG].
60482         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
60483         [USE_LDCONFIG].
60484         * elf/rtld.c (dl_main): Likewise.
60485
60486 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
60487
60488         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
60489         _SC_LEVEL4_CACHE_LINESIZE.
60490
60491 2012-10-03  Roland McGrath  <roland@hack.frob.com>
60492
60493         * sysdeps/unix/bsd/confstr.h: File removed.
60494
60495 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
60496
60497         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
60498         sys/sdt-config.h.
60499
60500 2012-10-02  Roland McGrath  <roland@hack.frob.com>
60501
60502         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
60503         Make 'mapoff' field ElfW(Off) rather than off_t.
60504
60505 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60506
60507         * nscd/Makefile: Remove nscd-cflags and all its users.
60508         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
60509         (CFLAGS-nonlib): Add compiler flags for nscd modules.
60510
60511         [BZ #10631]
60512         * malloc.c (malloc_printerr): Clarify error message.
60513
60514 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
60515
60516         [BZ #14648]
60517         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
60518         Set bit_FMA_Usable if FMA is supported.
60519         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
60520         macro.
60521         (bit_FMA4_Usable): Updated.
60522         (index_FMA_Usable): New macro.
60523         (CPUID_FMA): Likewise.
60524         (HAS_FMA): Defined with bit_FMA_Usable.
60525
60526 2012-10-01  Roland McGrath  <roland@hack.frob.com>
60527
60528         * bits/types.h (__swblk_t): Type removed.
60529         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
60530         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
60531         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
60532         (__SWBLK_T_TYPE): Likewise.
60533         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
60534         (__SWBLK_T_TYPE): Likewise.
60535         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
60536         (__SWBLK_T_TYPE): Likewise.
60537         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
60538         (__SWBLK_T_TYPE): Likewise.
60539
60540 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
60541             Honza Horak <hhorak@redhat.com>
60542
60543         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
60544         (xdr_mapname): Use YPMAXMAP as maxsize.
60545         (xdr_peername): Use YPMAXPEER as maxsize.
60546         (xdr_keydat): Use YPAXRECORD as maxsize.
60547         (xdr_valdat): Use YPMAXRECORD as maxsize.
60548
60549 2012-10-01  Roland McGrath  <roland@hack.frob.com>
60550
60551         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
60552
60553         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
60554         * csu/init-first.c: ... here.
60555         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
60556         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
60557         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
60558         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
60559         * sysdeps/i386/init-first.c: File removed.
60560         * sysdeps/sh/init-first.c: File removed.
60561
60562 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
60563
60564         [BZ #14645]
60565         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
60566         if x * y might underflow to zero and z is zero.
60567         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
60568         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
60569         * math/libm-test.inc (min_subnorm_value): New variable.
60570         (fma_test): Add more tests.
60571         (fma_test_towardzero): Likewise.
60572         (fma_test_downward): Likewise.
60573         (fma_test_upward): Likewise.
60574         (initialize): Set min_subnorm_value.
60575
60576 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
60577
60578         [BZ #14638]
60579         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
60580         0 + 0.
60581         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
60582         mode for addition resulting in exact zero.
60583         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
60584         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
60585         exact 0 + 0.
60586         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
60587         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
60588         * math/libm-test.inc (fma_test): Add more tests.
60589         (fma_test_towardzero): New function.
60590         (fma_test_downward): Likewise.
60591         (fma_test_upward): Likewise.
60592         (main): Call the new functions.
60593
60594 2012-09-28  David S. Miller  <davem@davemloft.net>
60595
60596         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
60597
60598 2012-09-28  Roland McGrath  <roland@hack.frob.com>
60599
60600         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
60601         instead of SIGALRM.
60602
60603         * sysdeps/gnu/_G_config.h: Moved to ...
60604         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
60605         * sysdeps/mach/hurd/_G_config.h: Moved to ...
60606         * sysdeps/generic/_G_config.h: ... here.
60607
60608         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
60609
60610         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
60611
60612         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
60613         Conditionalize target on [libnss_test1.so-version].
60614
60615         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
60616
60617         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
60618         (elfobjdir): Move out of conditionals.
60619
60620         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
60621         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
60622         (__nss_lookup_function): Conditionalize label remove_from_tree on
60623         [!DO_STATIC_NSS || SHARED], matching its only use.
60624
60625 2012-09-28  David S. Miller  <davem@davemloft.net>
60626
60627         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
60628         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
60629         file.
60630         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
60631         sysdep_routines.
60632         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
60633         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
60634         when HWCAP_SPARC_CRYPTO is present.
60635
60636 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
60637
60638         * io/tst-mknodat.c: Create a FIFO instead of a socket.
60639
60640 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
60641
60642         [BZ #6530]
60643         * stdio-common/vfprintf.c (process_string_arg): Revert
60644         2000-07-22 change.
60645
60646 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
60647
60648         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
60649         for testcase.
60650         * stdio-common/tst-sprintf.c: Include <locale.h>
60651         (main): Test sprintf's handling of incomplete multibyte
60652         characters.
60653
60654 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
60655
60656         * elf/dl-runtime.c (VERSYMIDX): Removed.
60657         * elf/dl-version.c (VERSYMIDX): Likewise.
60658         * elf/do-rel.h (VERSYMIDX): Likewise.
60659         (VALIDX): Likewise.
60660         * elf/dynamic-link.h (VERSYMIDX): Likewise.
60661         * elf/rtld.c (VALIDX): Likewise.
60662         (ADDRIDX): Likewise.
60663         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
60664         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
60665         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
60666         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
60667         (VALIDX): Likewise.
60668         (ADDRIDX): Likewise.
60669
60670 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
60671
60672         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
60673
60674 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
60675
60676         [BZ #11438]
60677         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
60678         to global scope.
60679         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
60680         addresses are in the same scope as 192.0.2/24.
60681         * posix/gai.conf: Document new scope table defaults.
60682
60683 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60684
60685         [BZ #5298]
60686         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
60687         for ftell.  Compute offsets from write pointers instead.
60688         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
60689
60690 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60691
60692         [BZ #14543]
60693         * libio/Makefile (tests): New test case tst-fseek.
60694         * libio/tst-fseek.c: New test case to verify that fseek/ftell
60695         combination works in wide mode.
60696         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
60697         state when the external buffer state changes.
60698
60699 2012-09-27  David S. Miller  <davem@davemloft.net>
60700
60701         [BZ #14376]
60702         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
60703         pass reloc->r_addend in as the 'high' argument to
60704         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
60705
60706         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60707
60708 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
60709
60710         * rt/tst-aio2.c: Include <pthread.h>.
60711         * rt/tst-aio3.c: Likewise.
60712
60713 2012-09-27  Steve Ellcey  <sellcey@mips.com>
60714
60715         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
60716
60717 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
60718
60719         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
60720         contents on [SHARED].
60721
60722 2012-09-26  Marek Polacek  <polacek@redhat.com>
60723
60724         [BZ #14530]
60725         [BZ #13741]
60726         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
60727         for C++ and GCC <4.3 as well as for non GCC compilers.
60728
60729 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
60730
60731         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60732
60733 2012-09-25  Roland McGrath  <roland@hack.frob.com>
60734
60735         * Makefile.in (all, install): Declare with .PHONY.
60736         Reported by Michael Hope <michael.hope@linaro.org>.
60737
60738 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60739
60740         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
60741         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
60742         system header.
60743         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
60744         Likewise.
60745         (sydep_routines): Add the new and the internal functions.
60746         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
60747         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
60748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
60749         (GLIBC_2.17): Add the new function.
60750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60751         (GLIBC_2.17): Likewise.
60752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
60753         (GLIBC_2.17): Likewise.
60754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
60755         (GLIBC_2.17): Likewise.
60756         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
60757
60758 2012-09-25  Alan Modra  <amodra@gmail.com>
60759
60760         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
60761         Add release barrier before setting once_control to say
60762         initialisation is done.  Add hints on lwarx.  Use macro in
60763         place of isync.
60764         (clear_once_control): Add release barrier.
60765
60766 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
60767
60768         [BZ #13629]
60769         * math/s_clog.c (__clog): Handle more values close to |z| = 1
60770         specially.
60771         * math/s_clog10.c (__clog10): Likewise.
60772         * math/s_clog10f.c (__clog10f): Likewise.
60773         * math/s_clog10l.c (__clog10l): Likewise.
60774         * math/s_clogf.c (__clogf): Likewise.
60775         * math/s_clogl.c (__clogl): Likewise.
60776         * math/Makefile (libm-calls): Add x2y2m1.
60777         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
60778         (__x2y2m1): Likewise.
60779         (__x2y2m1l): Likewise.
60780         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
60781         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
60782         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
60783         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
60784         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
60785         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
60786         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
60787         * sysdeps/i386/fpu/libm-test-ulps: Update.
60788         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60789
60790         [BZ #14621]
60791         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
60792         int as type of variable DEPTH.
60793         (glob): Use size_t instead of int as type of variables NEWCOUNT
60794         and OLD_PATHC.
60795
60796 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
60797
60798         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
60799         Add s_sincosf-sse2.
60800         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
60801         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
60802         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
60803         macros for using routine as __sincosf_ia32.
60804         Use macro for function declaration and weak_alias.
60805         * sysdeps/i386/fpu/libm-test-ulps: Update.
60806
60807         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
60808         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60809
60810         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
60811         subnormal argument.
60812         * math/s_cexpf.c (__cexpf): Likewise.
60813         * math/s_csinf.c (__csinf): Likewise.
60814         * math/s_csinhf.c (__csinhf): Likewise.
60815         * math/s_ctanf.c (__ctanf): Likewise.
60816         * math/s_ctanhf.c (__ctanhf): Likewise.
60817         * math/s_ccosh.c (__ccoshf): Likewise.
60818         * math/s_cexp.c (__cexpl): Likewise.
60819         * math/s_csin.c (__csin): Likewise.
60820         * math/s_csinh.c (__csinh): Likewise.
60821         * math/s_ctan.c (__ctan): Likewise.
60822         * math/s_ctanh.c (ctanh): Likewise.
60823         * math/s_ccoshl.c (__ccoshl): Likewise.
60824         * math/s_cexpl.c (__cexpl): Likewise.
60825         * math/s_csinl.c (__csinl): Likewise.
60826         * math/s_csinhl.c (__csinhl): Likewise.
60827         * math/s_ctanl.c (__ctanl): Likewise.
60828         * math/s_ctanhl.c (__ctanhl): Likewise.
60829
60830 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
60831
60832         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
60833         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
60834         (_IO_off_t): Define to __off_t, not _G_off_t.
60835         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
60836         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
60837         (_IO_wint_t): Define to wint_t, not _G_wint_t.
60838         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
60839         type of __dummy and __dummy2 fields.
60840         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
60841         (_G_ssize_t): Likewise.
60842         (_G_off_t): Likewise.
60843         (_G_pid_t): Likewise.
60844         (_G_uid_t): Likewise.
60845         (_G_wchar_t): Likewise.
60846         (_G_wint_t): Likewise.
60847         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
60848         (_G_ssize_t): Likewise.
60849         (_G_off_t): Likewise.
60850         (_G_pid_t): Likewise.
60851         (_G_uid_t): Likewise.
60852         (_G_wchar_t): Likewise.
60853         (_G_wint_t): Likewise.
60854         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
60855         (_G_ssize_t): Likewise.
60856         (_G_off_t): Likewise.
60857         (_G_pid_t): Likewise.
60858         (_G_uid_t): Likewise.
60859         (_G_wchar_t): Likewise.
60860         (_G_wint_t): Likewise.
60861
60862 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
60863
60864         * malloc/arena.c: Include malloc-sysdep.h.
60865         (shrink_heap): Use check_may_shrink_heap to decide if madvise
60866         is sufficient to shrink the heap or an unmap is needed.
60867         * sysdeps/generic/malloc-sysdep.h: New file.  Define
60868         new function check_may_shrink_heap.
60869         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
60870         new function check_may_shrink_heap.
60871
60872 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
60873
60874         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
60875         comments.
60876
60877 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
60878
60879         * catgets/test-gencat.sh: Add "set -e".
60880         * elf/tst-pathopt.sh: Likewise.
60881         * grp/tst_fgetgrent.sh: Likewise.
60882         * iconvdata/run-iconv-test.sh: Likewise.
60883         * intl/tst-gettext.sh: Likewise.
60884         * intl/tst-gettext2.sh: Likewise.
60885         * intl/tst-gettext4.sh: Likewise.
60886         * intl/tst-gettext6.sh: Likewise.
60887         * intl/tst-translit.sh: Likewise.
60888         * io/ftwtest-sh: Likewise.
60889         * libio/test-freopen.sh: Likewise.
60890         * malloc/tst-mtrace.sh: Likewise.
60891         * posix/globtest.sh: Likewise.
60892         * posix/tst-getconf.sh: Likewise.
60893         * posix/wordexp-tst.sh: Likewise.
60894         * stdio-common/tst-printf.sh: Likewise.
60895         * stdio-common/tst-unbputc.sh: Likewise.
60896         * stdlib/tst-fmtmsg.sh: Likewise.
60897         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
60898         * catgets/Makefile: Do not specify -e option when running
60899         testsuite shell scripts.
60900         * elf/Makefile: Likewise.
60901         * grp/Makefile: Likewise.
60902         * iconvdata/Makefile: Likewise.
60903         * intl/Makefile: Likewise.
60904         * io/Makefile: Likewise.
60905         * libio/Makefile: Likewise.
60906         * malloc/Makefile: Likewise.
60907         * posix/Makefile: Likewise.
60908         * stdio-common/Makefile: Likewise.
60909         * stdlib/Makefile: Likewise.
60910         * sysdeps/x86_64/Makefile: Likewise.
60911
60912         * io/ftwtest-sh: Add copyright header.
60913         * posix/globtest.sh: Likewise.
60914         * posix/tst-getconf.sh: Likewise.
60915         * posix/wordexp-tst.sh: Likewise.
60916         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
60917
60918 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
60919
60920         [BZ #13679]
60921         * Makeconfig (+link): Defined as $(+link-static) if
60922         $(build-shared) isn't yes.
60923         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
60924         isn't yes.
60925         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
60926
60927         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
60928
60929         [BZ #14562]
60930         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
60931         new chunk size with MALLOC_ALIGN_MASK.
60932
60933 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
60934
60935         [BZ #5044]
60936         * stdio-common/printf_fphex.c: Include <stdbool.h> and
60937         <rounding-mode.h>.
60938         (__printf_fphex): Determine rounding using get_rounding_mode and
60939         round_away.
60940         * stdio-common/tst-printf-round.c (struct hex_test): New
60941         structure.
60942         (hex_tests): New variable.
60943         (test_hex_in_one_mode): New function.
60944         (do_test): Also run tests for hex float output.
60945
60946 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
60947
60948         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
60949         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
60950         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
60951         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
60952         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
60953         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
60954         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
60955         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
60956
60957 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
60958
60959         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
60960         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
60961         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
60962         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
60963
60964 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
60965
60966         [BZ #14579]
60967         * elf/rtld.c (dl_main): Limit the check for self loading to normal
60968         mode only.
60969         * elf/tst-rtld-load-self.sh: New test.
60970         * elf/Makefile: Run it.
60971
60972 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
60973
60974         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
60975         (tst-writev-ENV): Remove.
60976         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
60977
60978 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
60979
60980         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
60981
60982 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
60983
60984         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
60985         unconditional.
60986         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
60987         Likewise.
60988         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
60989         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
60990         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
60991         Likewise.
60992
60993 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
60994
60995         [BZ #14587]
60996         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
60997         * config.make.in (have-cpp-asm-debuginfo): Removed.
60998         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
60999         * configure: Regenerated.
61000
61001 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
61002
61003         [BZ #5044]
61004         * stdio-common/printf_fp.c: Include <stdbool.h> and
61005         <rounding-mode.h>.
61006         (___printf_fp): Determine rounding using get_rounding_mode and
61007         round_away.
61008         * stdio-common/tst-printf-round.c: New file.
61009         * stdio-common/Makefile (tests): Add tst-printf-round.
61010         (link-libm): New variable.
61011         ($(objpfx)tst-printf-round): Depend in $(link-libm).
61012
61013 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
61014
61015         [BZ #14576]
61016         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
61017         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
61018         Likewise.
61019         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
61020         Likewise.
61021
61022 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
61023
61024         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
61025         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
61026         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
61027         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
61028
61029 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
61030
61031         [BZ #14518]
61032         * include/rounding-mode.h: New file.
61033         * sysdeps/generic/get-rounding-mode.h: Likewise.
61034         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
61035         * stdlib/strtod_l.c: Include <rounding-mode.h>.
61036         (MAX_VALUE): New macro.
61037         (MIN_VALUE): Likewise.
61038         (overflow_value): New function.
61039         (underflow_value): Likewise.
61040         (round_and_return): Use overflow_value and underflow_value to
61041         determine return values in overflow and underflow cases.  Use
61042         round_away to determine rounding depending on rounding mode.
61043         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
61044         determine return values in overflow and underflow cases.
61045         * stdlib/tst-strtod-round.c: Include <fenv.h>.
61046         (struct test_results): New structure.
61047         (struct test): Use struct test_results to store expected results
61048         for all rounding modes.
61049         (TEST): Include expected results for all rounding modes.
61050         (test_in_one_mode): New function.
61051         (do_test): Use test_in_one_mode to compute and check results.
61052         Check results for all rounding modes.
61053         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
61054         $(link-libm).
61055
61056 2012-12-09  Allan McRae  <allan@archlinux.org>
61057
61058         * sysdeps/i386/fpu/libm-test-ulps: Update
61059
61060 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
61061
61062         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
61063         (_G_int32_t): Likewise.
61064         (_G_uint16_t): Likewise.
61065         (_G_uint32_t): Likewise.
61066         (_G_HAVE_BOOL): Likewise.
61067         (_G_HAVE_ATEXIT): Likewise.
61068         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
61069         (_G_HAVE_IO_FILE_OPEN): Likewise.
61070         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
61071         (_G_int32_t): Likewise.
61072         (_G_uint16_t): Likewise.
61073         (_G_uint32_t): Likewise.
61074         (_G_HAVE_BOOL): Likewise.
61075         (_G_HAVE_ATEXIT): Likewise.
61076         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
61077         (_G_HAVE_IO_FILE_OPEN): Likewise.
61078         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
61079         (_G_int32_t): Likewise.
61080         (_G_uint16_t): Likewise.
61081         (_G_uint32_t): Likewise.
61082         (_G_HAVE_BOOL): Likewise.
61083         (_G_HAVE_ATEXIT): Likewise.
61084         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
61085         (_G_HAVE_IO_FILE_OPEN): Likewise.
61086
61087 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
61088
61089         * csu/libc-tls.c: Update copyright years.
61090
61091 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
61092
61093         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
61094         [!_G_USING_THUNKS]: Remove conditional code.
61095         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
61096         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
61097
61098         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
61099         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
61100         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
61101         (_G_VTABLE_LABEL_PREFIX): Likewise.
61102         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
61103         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
61104         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
61105         (_G_VTABLE_LABEL_PREFIX): Likewise.
61106         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
61107         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
61108         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
61109         (_G_VTABLE_LABEL_PREFIX): Likewise.
61110         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
61111
61112 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
61113
61114         * libio/Makefile: Include ../Makeconfig before tests.
61115         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
61116         only if $(build-shared) is yes.
61117
61118         * iconv/gconv_db.c: Update copyright years.
61119
61120 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
61121
61122         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
61123         unwind info if defined PIC. Fix special cases description.
61124         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
61125
61126         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
61127         DP_HI_MASK entry.
61128         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
61129
61130 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
61131
61132         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
61133
61134         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
61135         is NULL.
61136
61137         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
61138         (LDLIBS-tst-chk4): This.
61139         (LDFLAGS-tst-chk5): Renamed to ...
61140         (LDLIBS-tst-chk5): This.
61141         (LDFLAGS-tst-chk6): Renamed to ...
61142         (LDLIBS-tst-chk6): This.
61143         (LDFLAGS-tst-lfschk4): Renamed to ...
61144         (LDLIBS-tst-lfschk4): This.
61145         (LDFLAGS-tst-lfschk5): Renamed to ...
61146         (LDLIBS-tst-lfschk5): This.
61147         (LDFLAGS-tst-lfschk6): Renamed to ...
61148         (LDLIBS-tst-lfschk6): This.
61149
61150         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
61151         on $(common-objpfx)soversions.mk.
61152
61153 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
61154
61155         [BZ #10014]
61156         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
61157         example host name.
61158
61159 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
61160
61161         * malloc/arena.c (arena_get_retry): New function that gets
61162         another arena for the caller to try its request on.
61163         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
61164         current arena cannot fulfill the request.
61165         (__libc_memalign): Likewise.
61166         (__libc_memalign): Likewise.
61167         (__libc_pvalloc): Likewise.
61168         (__libc_calloc): Likewise.
61169
61170 2012-09-05  John Tobey  <john.tobey@gmail.com>
61171
61172         [BZ #13542]
61173         * manual/arith.texi (Operations on Complex): Fix description
61174         of carg branch cut.
61175
61176 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
61177
61178         [BZ #10014]
61179         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
61180         host name.
61181
61182         [BZ #10038]
61183         * manual/memory.texi (Memory): Make order of menu items match
61184         order of sections.
61185
61186 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
61187
61188         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
61189         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
61190         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
61191
61192 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
61193
61194         * csu/libc-tls.c (static_dtv): Renamed to ...
61195         (_dl_static_dtv): This.  Make it global.
61196         (_dl_initial_dtv): Removed.
61197         (__libc_setup_tls): Updated.
61198         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
61199         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
61200         DL_INITIAL_DTV.
61201
61202 2012-09-06  Petr Machata  <pmachata@redhat.com>
61203
61204         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
61205         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
61206         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
61207         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
61208
61209 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
61210
61211         [BZ #14545]
61212         * csu/libc-tls.c (_dl_initial_dtv): New variable.
61213         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
61214         freeing dtv[-1].
61215
61216 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
61217
61218         [BZ #14544]
61219         * Makeconfig (link-static-before-libc): Replace $(+prector)
61220         with $(+prectorT).
61221         (link-static-after-libc): Replace $(+postctor) with
61222         $(+postctorT).
61223         (link-bounded): Replace $(+prector)/$(+postctor) with
61224         $(+prectorT)/$(+postctorT).
61225         (+prectorT): New macro.
61226         (+postctorT): Likewise.
61227
61228 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
61229
61230         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
61231         (round_str): Handle values above the maximum for IBM long double
61232         as inexact.
61233         * stdlib/tst-strtod-round.c (tests): Regenerated.
61234
61235 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61236
61237         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
61238         assembler flag.
61239         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
61240         zarch_nohighgprs around the zarch optimized routines.
61241         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
61242         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
61243         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
61244         for zarch.
61245
61246 2012-09-05  David S. Miller  <davem@davemloft.net>
61247
61248         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61249
61250         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
61251         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
61252         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
61253         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
61254         entries.
61255
61256 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61257
61258         * malloc/arena.c: Fold copyright years.
61259         * malloc/mcheck.c, malloc/memusage.c: Likewise.
61260
61261 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61262
61263         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
61264
61265 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61266
61267         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
61268
61269 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61270
61271         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
61272         change internal state upon failure.
61273
61274 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
61275
61276         * malloc/mcheck.c (mcheck_check_all): Fix typo.
61277         * malloc/memusage.c (mmap): Likewise.
61278         (mmap64, mremap): Likewise.  Adjust name in comment.
61279
61280 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
61281
61282         * libio/fileops.c: Fix typos in comments.
61283         * libio/oldfileops.c: Likewise.
61284         * libio/wfileops.c: Likewise.
61285
61286 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
61287
61288         [BZ #1349]
61289         * malloc/Makefile (tests): Add tst-malloc-usable test case.
61290         (tst-malloc-usable-ENV): Set environment for test case.
61291         * malloc/hooks.c (malloc_check_get_size): New function to get
61292         requested size.
61293         * malloc/malloc.c (musable): Use malloc_check_get_size.
61294         * malloc/tst-malloc-usable.c: New test case.
61295
61296 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
61297
61298         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
61299
61300 2012-09-05  Allan McRae  <allan@archlinux.org>
61301
61302         [BZ #13966]
61303         * configure.in (CXX_SYSINCLUDES): Use compiler output to
61304         determine header location.
61305         * configure: Regenerated.
61306
61307 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
61308
61309         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
61310         float format.
61311         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
61312         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
61313         format.
61314         (test): Regenerate.
61315
61316 2012-09-04  David S. Miller  <davem@davemloft.net>
61317
61318         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
61319         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
61320         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
61321
61322 2012-09-04  Florian Weimer  <fweimer@redhat.com>
61323
61324         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
61325         failures.
61326
61327         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
61328
61329 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
61330
61331         [BZ #9914]
61332         * libio/iogetdelim.c: Include <limits.h>.
61333         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
61334         + len + 1 would overflow.
61335
61336 2012-09-03  Andreas Jaeger  <aj@suse.de>
61337
61338         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
61339         * sysdeps/i386/fpu/libm-test-ulps: Update.
61340
61341 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
61342
61343         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
61344         Add s_sinf-sse2, s_conf-sse2.
61345
61346         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
61347         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
61348         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
61349         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
61350
61351         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
61352         for using routine as __sinf_ia32.
61353         Use macro for function declaration and weak_alias.
61354         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
61355         for using routine as __cosf_ia32.
61356         Use macro for function declaration and weak_alias.
61357
61358         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
61359         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
61360
61361         * sysdeps/x86_64/fpu/s_sinf.S: New file.
61362         * sysdeps/x86_64/fpu/s_cosf.S: New file.
61363         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
61364
61365         * math/libm-test.inc (cos_test): Add more test cases.
61366         (sin_test): Likewise.
61367         (sincos_test): Likewise.
61368
61369 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61370
61371         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
61372         (IFUNC_RESOLVE): Make pointers to the specialized implementations
61373         hidden.
61374         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
61375
61376 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
61377
61378         [BZ #14538]
61379         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
61380         first element of the GOT.
61381         (elf_machine_load_address): Return the difference between
61382         the runtime address of _DYNAMIC and elf_machine_dynamic ().
61383
61384 2012-09-01  Allan McRae  <allan@archlinux.org>
61385
61386         [BZ #13412]
61387         * configure.in (AWK): Require gawk version 3.0 or later.
61388         * configure: Regenerated.
61389
61390 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
61391
61392         * sysdeps/unix/sysv/linux/kernel-features.h
61393         (__ASSUME_POSIX_CPU_TIMERS): Remove.
61394         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
61395         [__NR_clock_getres]: Make code unconditional.
61396         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
61397         (clock_getcpuclockid): Remove code left unreachable by removal of
61398         conditionals.
61399         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
61400         code unconditional.
61401         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
61402         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
61403         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
61404         Make code unconditional.
61405         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
61406         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
61407         * sysdeps/unix/sysv/linux/clock_settime.c
61408         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
61409         conditional code.
61410         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
61411         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
61412
61413 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
61414
61415         [BZ #14476]
61416         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
61417         scripts/test-installation.pl.
61418
61419         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
61420         and $ld_so_version if it is set.
61421
61422 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
61423
61424         [BZ #14516]
61425         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
61426         failure if reading from procfs failed.
61427         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
61428
61429 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
61430
61431         * sysdeps/unix/sysv/linux/kernel-features.h
61432         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
61433         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
61434         Remove conditional code.
61435         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61436         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
61437         Remove conditional code.
61438         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61439         * sysdeps/unix/sysv/linux/i386/fxstat.c
61440         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
61441         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61442         * sysdeps/unix/sysv/linux/i386/fxstatat.c
61443         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
61444         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61445         * sysdeps/unix/sysv/linux/i386/lxstat.c
61446         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
61447         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61448         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
61449         Remove conditional code.
61450         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61451         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
61452         Remove conditional code.
61453         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61454         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
61455         <kernel-features.h>.
61456         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
61457         Remove.
61458         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
61459         Remove conditional code.
61460         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
61461         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
61462         Remove conditional.
61463
61464 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
61465
61466         [BZ #5400]
61467         * NEWS: Add fixed bug number.
61468
61469 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
61470
61471         [BZ #14519]
61472         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
61473         underflowing exponent in case of negative sign.
61474         * stdlib/tst-strtod-round-data: Add more tests.
61475         * stdlib/tst-strtod-round.c (tests): Regenerated.
61476
61477         [BZ #3479]
61478         * stdlib/strtod_l.c (NDIG): Remove.
61479         (HEXNDIG): Likewise.
61480         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
61481         smallest representable value.
61482         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
61483         lie within an exact representation of 1/2 ulp of the result.
61484         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
61485         unconditionally.
61486         (TENS_P9_IDX): Define unconditionally.
61487         (TENS_P9_SIZE): Likewise.
61488         (TENS_P10_IDX): Likewise.
61489         (TENS_P10_SIZE): Likewise.
61490         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
61491         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
61492         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
61493         entries for 10^2^13 and 10^2^14.
61494         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
61495         (TENS_P13_IDX): Define.
61496         (TENS_P13_SIZE): Likewise.
61497         (TENS_P14_IDX): Likewise.
61498         (TENS_P14_SIZE): Likewise.
61499         (_fpioconst_pow10): Change array size to
61500         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
61501         unconditional.
61502         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
61503         1024]: Add entries for 10^2^13 and 10^2^14.
61504         [LAST_POW10 > _LAST_POW10]: Remove #error.
61505         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
61506         (_fpioconst_pow10): Change array size to
61507         FPIOCONST_POW10_ARRAY_SIZE.
61508         * stdlib/gen-fpioconst.c: New file.
61509         * stdlib/gen-tst-strtod-round.c: Likewise.
61510         * stdlib/tst-strtod-round-data: Likewise.
61511         * stdlib/tst-strtod-round.c: Likewise.
61512         * stdlib/Makefile (tests): Add tst-strtod-round.
61513
61514         [BZ #14459]
61515         * stdlib/strtod_l.c: Include <stdint.h>.
61516         (NDEBUG): Do not define.
61517         (round_and_return): Change EXPONENT parameter to type intmax_t.
61518         Rearrange calculations to avoid internal overflow possibilities.
61519         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
61520         Rearrange calculations to avoid internal overflow possibilities.
61521         Assert that number fits inside MPNSIZE limbs.
61522         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
61523         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
61524         calculations and add assertions to avoid internal overflow
61525         possibilities.  Add casts to avoid signed/unsigned operations.
61526         * stdlib/tst-strtod-overflow.c: New file.
61527         * stdlib/Makefile (tests): Add tst-strtod-overflow.
61528
61529 2012-08-25  Marek Polacek  <polacek@redhat.com>
61530
61531         * time/time.h: Fix some typos in comments.
61532
61533 2012-08-23  Roland McGrath  <roland@hack.frob.com>
61534
61535         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
61536         * posix/tst-rfc3484-2.c: Likewise.
61537         * posix/tst-rfc3484-3.c: Likewise.
61538
61539 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
61540
61541         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
61542         (EF_ARM_ABI_FLOAT_HARD): Likewise.
61543
61544 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
61545
61546         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
61547         #include of fxstatat64.c.
61548
61549 2012-08-22  Roland McGrath  <roland@hack.frob.com>
61550
61551         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
61552         * shadow/getspent_r.c: Likewise.
61553         * shadow/getspnam.c: Likewise.
61554         * shadow/getspnam_r.c: Likewise.
61555         * gshadow/getsgent.c: Likewise.
61556         * gshadow/getsgent_r.c: Likewise.
61557         * gshadow/getsgnam.c: Likewise.
61558         * gshadow/getsgnam_r.c: Likewise.
61559         * inet/getnetbyad.c: Likewise.
61560         * inet/getnetbyad_r.c: Likewise.
61561         * inet/getnetbynm.c: Likewise.
61562         * inet/getnetbynm_r.c: Likewise.
61563         * inet/getnetent.c: Likewise.
61564         * inet/getnetent_r.c: Likewise.
61565         * inet/getproto.c: Likewise.
61566         * inet/getproto_r.c: Likewise.
61567         * inet/getprtent.c: Likewise.
61568         * inet/getprtent_r.c: Likewise.
61569         * inet/getprtname.c: Likewise.
61570         * inet/getprtname_r.c: Likewise.
61571         * inet/getrpcbyname.c: Likewise.
61572         * inet/getrpcbyname_r.c: Likewise.
61573         * inet/getrpcbynumber.c: Likewise.
61574         * inet/getrpcbynumber_r.c: Likewise.
61575         * inet/getrpcent.c: Likewise.
61576         * inet/getrpcent_r.c: Likewise.
61577         * inet/getaliasent.c: Likewise.
61578         * inet/getaliasent_r.c: Likewise.
61579         * inet/getaliasname.c: Likewise.
61580         * inet/getaliasname_r.c: Likewise.
61581         * nscd/getgrgid_r.c: Likewise.
61582         * nscd/getgrnam_r.c: Likewise.
61583         * nscd/gethstbyad_r.c: Likewise.
61584         * nscd/gethstbynm3_r.c: Likewise.
61585         * nscd/getpwnam_r.c: Likewise.
61586         * nscd/getpwuid_r.c: Likewise.
61587         * nscd/getsrvbynm_r.c: Likewise.
61588         * nscd/getsrvbypt_r.c: Likewise.
61589         * nscd/gai.c: Likewise.
61590
61591         * configure.in (build_nscd): New substituted variable, set
61592         by --disable-build-nscd and defaults to $use_nscd.
61593         * configure: Regenerated.
61594         * config.make.in (build-nscd): New substituted variable.
61595         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
61596         Change conditional to require [$(build-nscd) = yes] as well.
61597         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
61598
61599         [BZ# 13696]
61600         * configure.in (use_nscd): New substituted variable, set by
61601         --disable-nscd.  If enabled, define USE_NSCD.
61602         * configure: Regenerated.
61603         * config.h.in: Add USE_NSCD.
61604         * config.make.in (use-nscd): New substituted variable.
61605         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
61606         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
61607         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
61608         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
61609         (CFLAGS-getgrnam_r.c): Likewise.
61610         (CFLAGS-initgroups.c): Likewise.
61611         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
61612         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
61613         Variables removed.
61614         * inet/getnetgrent_r.c
61615         (nscd_setnetgrent): New function, broken out of ...
61616         (setnetgrent): ... here.  Call it.
61617         (innetgr): Conditionalize nscd bits on [USE_NSCD].
61618         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
61619         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
61620         * nscd/Makefile (routines, aux): Move definitions after include of
61621         Makeconfig.  Conditionalize on [$(use-nscd) != no].
61622         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
61623         Conditionalize on [USE_NSCD].
61624         (is_nscd, nscd_init_cb): Likewise.
61625         (nss_load_library): Conditionalize init callback on [USE_NSCD].
61626         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
61627         * nss/nss_db/db-init.c: Likewise.
61628         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
61629         [USE_NSCD].
61630         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
61631         (make_request): Use it.
61632         (cache_valid_p): New function.
61633         (__check_pf): Use it.
61634         * NEWS: Add item for --disable-nscd.
61635
61636 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
61637
61638         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
61639         to support sed >= 4.2.1-20-ga9bf076.
61640         * configure: Regenerated.
61641
61642 2012-08-22  Roland McGrath  <roland@hack.frob.com>
61643
61644         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
61645         Conditionalize whole body on [IREL].
61646
61647 2012-08-22  Jeff Law <law@redhat.com>
61648
61649         [BZ #14505]
61650         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
61651         if the family is PF_UNSPEC.
61652
61653 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
61654
61655         * Makerules (lib-version): Rename from V.
61656         (install-lib-nosubdir): Change V to lib-version.
61657
61658 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
61659
61660         [BZ #14252]
61661         * powerpc32/power6/wcschr.c: New file.
61662         * powerpc32/power6/wcscpy.c: New file.
61663         * powerpc32/power6/wcsrchr.c: New file.
61664         * powerpc64/power6/wcschr.c: New file.
61665         * powerpc64/power6/wcscpy.c: New file.
61666         * powerpc64/power6/wcsrchr.c: New file.
61667
61668 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
61669
61670         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
61671         (two_way_short_needle): Use it.
61672         * string/strstr.c (AVAILABLE1_USES_J): Define.
61673         * string/strcasestr.c: Likewise.
61674
61675         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
61676         array references.
61677         * string/strcasestr.c (TOLOWER): Make side-effect safe.
61678
61679         [BZ #11607]
61680         * NEWS: Add an entry.
61681         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
61682         define their defaults.
61683         (two_way_short_needle): Detect end-of-string on-the-fly.
61684         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
61685         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
61686         * string/bug-strcasestr1.c: New test.
61687         * string/Makefile: Run it.
61688
61689 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
61690
61691         [BZ #11607]
61692         * string/str-two-way.h (two_way_short_needle): Optimize matching of
61693         the first character.
61694
61695 2012-08-21  Roland McGrath  <roland@hack.frob.com>
61696
61697         * csu/elf-init.c (__libc_csu_irel): Function removed.
61698         * csu/libc-start.c (apply_irel): New function.
61699         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
61700
61701 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
61702
61703         * sysdeps/unix/sysv/linux/kernel-features.h
61704         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
61705         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
61706         <kernel-features.h>.
61707         [__NR_fadvise64_64]: Make code unconditional.
61708         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
61709         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
61710         !__NR_fadvise64_64)]: Likewise.
61711         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
61712         !__NR_fadvise64_64))]: Likewise.
61713         [__NR_fadvise64]: Make code unconditional.
61714         [!__NR_fadvise64]: Remove conditional code.
61715         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
61716         <kernel-features.h>.
61717         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
61718         unconditional.
61719         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
61720         conditional code.
61721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
61722         not include <kernel-features.h>.
61723         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
61724         unconditional.
61725         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
61726         conditional code.
61727         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
61728         include <kernel-features.h>.
61729         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
61730         unconditional.
61731         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
61732         conditional code.
61733
61734 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
61735
61736         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
61737         slight instruction rearrangements per scrollpipe analysis.
61738         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
61739
61740 2012-08-20  Roland McGrath  <roland@hack.frob.com>
61741
61742         * manual/syslog.texi (syslog; vsyslog, closelog):
61743         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
61744         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
61745
61746         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
61747         DSOCAPS to match condition on defining it.
61748
61749 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
61750
61751         * sysdeps/unix/sysv/linux/kernel-features.h
61752         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
61753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
61754         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
61755         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
61756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
61757         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
61758         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
61759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
61760         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
61761         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
61762
61763         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
61764         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
61765
61766         * sysdeps/unix/sysv/linux/kernel-features.h
61767         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
61768         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
61769         unconditional.
61770         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
61771         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
61772         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
61773         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
61774         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
61775         Make code unconditional.
61776         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
61777         (__mmap64) [!__NR_mmap2]: Likewise.
61778         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
61779         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
61780         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
61781         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
61782         [__NR_mmap2]: Make code unconditional.
61783         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
61784         (__mmap64) [!__NR_mmap2]: Likewise.
61785
61786 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61787
61788         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
61789
61790 2012-08-18  Andreas Jaeger  <aj@suse.de>
61791
61792         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
61793
61794 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
61795
61796         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
61797         * include/unistd.h (__have_sock_cloexec): Likewise.
61798         (__have_pipe2): Likewise.
61799         (__have_dup3): Likewise.
61800
61801 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
61802
61803         [BZ #9685]
61804         * include/unistd.h (__have_pipe2): Change define into an extern int.
61805         (__have_dup3): Likewise.
61806         * socket/have_sock_cloexec.c: Include fcntl.h.
61807         (__have_pipe2): New variable.
61808         (__have_dup3): Likewise.
61809
61810 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
61811
61812         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
61813
61814 2012-08-17  Marek Polacek  <polacek@redhat.com>
61815
61816         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
61817         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
61818
61819 2012-08-17  Roland McGrath  <roland@hack.frob.com>
61820
61821         * configure.in: Add AC_SUBST for sysheaders.
61822         * configure: Regenerated.
61823         * config.make.in (sysheaders): New substituted variable.
61824
61825         * sysdeps/unix/mkfifo.c: Moved ...
61826         * sysdeps/posix/mkfifo.c: ... here.
61827         * sysdeps/unix/mkfifoat.c: Moved ...
61828         * sysdeps/posix/mkfifoat.c: ... here.
61829
61830         * sysdeps/unix/utime.c: Moved ...
61831         * sysdeps/posix/utime.c: ... here.
61832
61833         * sysdeps/unix/time.c: Moved ...
61834         * sysdeps/posix/time.c: ... here.
61835         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
61836         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
61837
61838         * sysdeps/unix/nice.c: Moved ...
61839         * sysdeps/posix/nice.c: ... here.
61840
61841         * sysdeps/unix/alarm.c: Moved ...
61842         * sysdeps/posix/alarm.c: ... here.
61843
61844         * intl/Makefile ($(codeset_mo)): Depend on the input file.
61845
61846 2012-08-17  Jeff Law <law@redhat.com>
61847
61848         * intl/Makefile (codeset_mo): New variable.
61849         ($(codeset_mo)): New target.
61850         (tst-codeset.out): Depend on that.  Remove explicit rule.
61851         (tst-gettext3.out, tst-gettext5.out): Likewise.
61852         (LOCPATH-ENV, tst-codeset-ENV): New variables.
61853         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
61854         * intl/tst-codeset.sh: Remove.
61855         * intl/tst-gettext3.sh: Likewise.
61856         * intl/tst-gettext5.sh: Likewise.
61857
61858 2012-08-17  Roland McGrath  <roland@hack.frob.com>
61859
61860         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
61861         * sysdeps/unix/syscalls.list: ... here.
61862
61863         * sysdeps/posix/getaddrinfo.c
61864         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
61865         (gaiconf_init, gaiconf_reload): Use them.
61866         [!_STATBUF_ST_NSEC]
61867         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
61868         Define using time_t rather than struct timespec.
61869
61870         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
61871         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
61872         Macros removed.
61873         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
61874         [!NO_THREADS].
61875         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
61876         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
61877         Likewise.
61878
61879         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
61880         __libc_cleanup_push argument.
61881
61882         * bits/param.h: New file.
61883         * misc/sys/param.h: New file.
61884         * include/sys/param.h: New file.
61885         * misc/Makefile (headers): Add bits/param.h.
61886         * sysdeps/generic/sys/param.h: File removed.
61887         * sysdeps/unix/sysv/linux/bits/param.h: New file.
61888         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
61889         * sysdeps/mach/hurd/bits/param.h: New file.
61890         * sysdeps/mach/hurd/sys/param.h: File removed.
61891
61892         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
61893         last change.
61894
61895         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
61896         [_IO_MTSAFE_IO].
61897         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
61898         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
61899         New macros.
61900
61901         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
61902         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
61903         rather than -D_IO_MTSAFE_IO conditionally.
61904         * stdio-common/Makefile (CPPFLAGS): Likewise.
61905         * wcsmbs/Makefile (CPPFLAGS): Likewise.
61906         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
61907         Use $(libio-mtsafe).
61908         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
61909         of -D_IO_MTSAFE_IO.
61910         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
61911         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
61912         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
61913         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
61914         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
61915         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
61916         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
61917         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
61918         (CFLAGS-fread_u_chk.c): Likewise.
61919         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
61920         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
61921         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
61922         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
61923         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
61924         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
61925         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
61926         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
61927         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
61928
61929         * libio/Makefile: Test [$(libc-reentrant) = yes]
61930         instead of [$(filter %REENTRANT, $(defines)) nonempty].
61931
61932         * Makeconfig
61933         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
61934         * sysdeps/pthread/configure: File removed.
61935         * sysdeps/pthread/Makeconfig: New file.
61936         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
61937         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
61938
61939 2012-08-16  Gary Benson  <gbenson@redhat.com>
61940
61941         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
61942         unmapping the first object in a namespace.
61943
61944 2012-08-16  Roland McGrath  <roland@hack.frob.com>
61945
61946         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
61947         (__internal_setnetgrent): ... this.  Add internal_function to
61948         definition.  Add libc_hidden_def.
61949         (setnetgrent): Update caller.
61950         (internal_endnetgrent): Renamed to ...
61951         (__internal_endnetgrent): ... this.  Add internal_function to
61952         definition.  Add libc_hidden_def.
61953         (endnetgrent): Update caller.
61954         (internal_getnetgrent_r): Renamed to ...
61955         (__internal_getnetgrent_r): ... this.  Add internal_function to
61956         definition.  Add libc_hidden_def.
61957         (__getnetgrent_r): Update caller.
61958         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
61959
61960 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
61961
61962         * stdlib/longlong.h: Update from GCC.
61963
61964 2012-08-16  Roland McGrath  <roland@hack.frob.com>
61965
61966         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
61967         on _QL, which is set by umul_ppmm but never used.
61968         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
61969         variables, which are set by GMP macros but never used.
61970         * stdio-common/_itowa.c (_itowa): Likewise.
61971         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
61972         * stdlib/mod_1.c (mpn_mod_1): Likewise.
61973
61974 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
61975
61976         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
61977         struct La_sh_regs is not constant.
61978         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
61979         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
61980         and struct La_sparc64_regs are not constant.
61981
61982 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
61983
61984         * sysdeps/unix/sysv/linux/kernel-features.h
61985         (__ASSUME_POSIX_TIMERS): Remove.
61986         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
61987         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
61988         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
61989         Make code unconditional.
61990         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
61991         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
61992         Make code unconditional.
61993         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
61994         * sysdeps/unix/sysv/linux/clock_nanosleep.c
61995         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
61996         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
61997         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
61998         Make code unconditional.
61999         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
62000         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
62001         (__libc_missing_posix_timers): Remove.
62002
62003 2012-08-15  Roland McGrath  <roland@hack.frob.com>
62004
62005         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
62006         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
62007
62008         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
62009
62010         * elf/dl-sym.c: Include <stdlib.h>.
62011
62012         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
62013         constants, which avoids warnings in 32-bit builds.
62014
62015         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
62016         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
62017
62018         * misc/lseek.c: File moved to ...
62019         * io/lseek.c: ... here.
62020
62021         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
62022
62023         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
62024         shifting LEN more than 31 bits at once.
62025
62026 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
62027
62028         [BZ #14195]
62029         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
62030         segmentation fault for a case of two empty input strings.
62031         * string/test-strncasecmp.c (check1): Renamed to...
62032         (bz12205): ...this.
62033         (bz14195): Add new testcase for two empty input strings and N > 0.
62034         (test_main): Call new testcase, adapt for renamed function.
62035
62036 2012-08-15  Andreas Jaeger  <aj@suse.de>
62037
62038         [BZ #14090]
62039         * crypt/md5test2.c: New test, based on test supplied by Serge
62040         Belyshev <belyshev@depni.sinp.msu.ru>.
62041         * crypt/Makefile (xtests): Add md5test-giant..
62042         * crypt/Makefile ($(objpfx)md5test-giant): Add.
62043
62044 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62045
62046         [BZ #14090]
62047         * crypt/md5.c (md5_process_block): Don't assume the buffer
62048         length is less than 2**32.
62049         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
62050         length is less than 2**64.
62051
62052 2012-08-15  Roland McGrath  <roland@hack.frob.com>
62053
62054         * string/str-two-way.h: Include <sys/param.h>.
62055         (MAX): Macro removed.
62056
62057         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
62058         Move #define and #undef of memmove to just before and after
62059         including <string.h>.
62060
62061         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
62062         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
62063         and after including <string.h>.  Move declarations of
62064         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
62065         to before #include "string/memmove.c".
62066
62067         * include/dirent.h: Declare __getdirentries.
62068
62069         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
62070         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
62071
62072 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
62073
62074         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
62075         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
62076         * sysdeps/i386/configure: Regenerated.
62077         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
62078         STABS_CURRENT_FILE, and STABS_FUN.
62079         (END): Remove call to STABS_FUN_END.
62080         (STABS_CURRENT_FILE1): Delete.
62081         (STABS_CURRENT_FILE): Likewise.
62082         (STABS_FUN): Likewise.
62083         (STABS_FUN_END): Likewise.
62084         (STABS_FUN2): Likewise.
62085         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
62086         * sysdeps/x86_64/configure: Regenerated.
62087
62088 2012-08-14  Roland McGrath  <roland@hack.frob.com>
62089
62090         * elf/dl-open.c: Include <atomic.h>.
62091         * elf/dl-lookup.c: Likewise.
62092
62093 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
62094
62095         * sysdeps/unix/sysv/linux/kernel-features.h
62096         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
62097         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
62098         unconditionally.
62099         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
62100         unconditionally.
62101         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
62102         condition on __ASSUME_CLONE_THREAD_FLAGS.
62103
62104 2012-08-14  Andreas Jaeger  <aj@suse.de>
62105
62106         * sysdeps/i386/fpu/libm-test-ulps: Update.
62107
62108 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
62109
62110         * include/atomic.h (atomic_exchange_and_add): Split into ...
62111         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
62112         New atomic macros.
62113
62114 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
62115
62116         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
62117
62118 2012-08-13  Jeff Law <law@redhat.com>
62119
62120         * manual/stdio.texi (snprintf): Clarify handling of the trailing
62121         null byte in the output string.
62122
62123 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
62124
62125         * sysdeps/unix/sysv/linux/kernel-features.h
62126         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
62127         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
62128         (__ASSUME_ARG_MAX_STACK_BASED): Define.
62129         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
62130         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
62131         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
62132         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
62133
62134 2012-08-09  Jeff Law <law@redhat.com>
62135
62136         [BZ #13939]
62137         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
62138         When avoid_arena is set, don't retry in the that arena.  Pick the
62139         next one, whatever it might be.
62140         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
62141         (arena_lock): Pass in new parameter to arena_get2.
62142         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
62143         arena_get2.
62144         (__libc_malloc): Unify retrying after main arena failure with
62145         __libc_memalign version.
62146         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
62147
62148 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
62149
62150         [BZ #14166]
62151         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
62152         to __redirect_strstr.
62153         (__strstr_sse42): Use typeof __redirect_strstr.
62154         (__strstr_ia32): Likewise.
62155         (__libc_strstr): New prototype.
62156         (strstr): Renamed to ...
62157         (__libc_strstr): This.
62158         (strstr): New strong alias of __libc_strstr.
62159         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
62160         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
62161         __redirect_time.
62162         Include <time.h>.
62163         (__libc_time): New prototype.
62164         (time_ifunc): Replace time with __libc_time.
62165         (time): New strong alias and hidden definition of __libc_time.
62166         (__GI_time): Remove strong alias.
62167         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
62168         Include <stddef.h>.
62169         (memmove): Redefined to __redirect_memmove.
62170         (__memmove_sse2): Use typeof __redirect_memmove.
62171         (__memmove_ssse3): Likewise.
62172         (__memmove_ssse3_back): Likewise.
62173         (__libc_memmove): New prototype.
62174         (memmove): Renamed to ...
62175         (__libc_memmove): This.
62176         (memmove): New strong alias of __libc_memmove.
62177
62178 2012-08-08  Mark Salter  <msalter@redhat.com>
62179
62180         * elf/elf.h
62181         (R_MN10300_TLS_GD): Define.
62182         (R_MN10300_TLS_LD): Likewise.
62183         (R_MN10300_TLS_LDO): Likewise.
62184         (R_MN10300_TLS_GOTIE): Likewise.
62185         (R_MN10300_TLS_IE): Likewise.
62186         (R_MN10300_TLS_LE): Likewise.
62187         (R_MN10300_TLS_DTPMOD): Likewise.
62188         (R_MN10300_TLS_DTPOFF): Likewise.
62189         (R_MN10300_TLS_TPOFF): Likewise.
62190         (R_MN10300_SYM_DIFF): Likewise.
62191         (R_MN10300_ALIGN): Likewise.
62192         (R_MN10300_NUM): Update.
62193
62194 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
62195
62196         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
62197         Remove.
62198
62199 2012-08-08  Roland McGrath  <roland@hack.frob.com>
62200
62201         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
62202
62203         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
62204         sysdeps/unix -> sysdeps/posix move.
62205         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
62206
62207 2012-08-07      Allan McRae     <allan@archlinux.org>
62208
62209         [BZ #14303]
62210         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
62211         (SUNOS_CPP): Likewise.
62212         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
62213         not found.
62214         (open_input): Call CPP using execvp.
62215
62216 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
62217
62218         * sysdeps/unix/sysv/linux/kernel-features.h
62219         (__ASSUME_PROT_GROWSUPDOWN): Remove.
62220         (__ASSUME_NO_CLONE_DETACHED): Likewise.
62221         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
62222         (__ASSUME_WAITID_SYSCALL): Likewise.
62223         * sysdeps/unix/sysv/linux/dl-execstack.c
62224         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
62225         code unconditional.
62226         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
62227         conditional code.
62228         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
62229         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
62230         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
62231         code.
62232         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
62233         unconditional.
62234         [__ASSUME_WAITID_SYSCALL]: Likewise.
62235         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
62236
62237 2012-08-07  Roland McGrath  <roland@hack.frob.com>
62238
62239         * sysdeps/unix/closedir.c: Renamed to ...
62240         * sysdeps/posix/closedir.c: ... here.
62241         * sysdeps/unix/dirfd.c: Renamed to ...
62242         * sysdeps/posix/dirfd.c: ... here.
62243         * sysdeps/unix/dirstream.h: Renamed to ...
62244         * sysdeps/posix/dirstream.h: ... here.
62245         * sysdeps/unix/fdopendir.c: Renamed to ...
62246         * sysdeps/posix/fdopendir.c: ... here.
62247         * sysdeps/unix/opendir.c: Renamed to ...
62248         * sysdeps/posix/opendir.c: ... here.
62249         * sysdeps/unix/readdir.c: Renamed to ...
62250         * sysdeps/posix/readdir.c: ... here.
62251         * sysdeps/unix/readdir_r.c: Renamed to ...
62252         * sysdeps/posix/readdir_r.c: ... here.
62253         * sysdeps/unix/rewinddir.c: Renamed to ...
62254         * sysdeps/posix/rewinddir.c: ... here.
62255         * sysdeps/unix/seekdir.c: Renamed to ...
62256         * sysdeps/posix/seekdir.c: ... here.
62257         * sysdeps/unix/telldir.c: Renamed to ...
62258         * sysdeps/posix/telldir.c: ... here.
62259         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
62260         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
62261         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
62262         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
62263
62264         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
62265         * bits/fcntl.h: ... here.
62266
62267         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
62268         not 0.
62269         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
62270         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
62271         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
62272         (struct flock): Move l_start, l_len to the beginning.
62273         Use __pid_t for l_pid.
62274         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
62275         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
62276         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
62277         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
62278         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
62279         [__USE_LARGEFILE64] (struct flock64): New type.
62280         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
62281
62282         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
62283         * bits/dirent.h: ... here.
62284
62285         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
62286         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
62287
62288 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
62289
62290         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
62291         Change from 2.6.0 to 2.6.16.
62292         * sysdeps/unix/sysv/linux/configure: Regenerated.
62293         * sysdeps/unix/sysv/linux/kernel-features.h
62294         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
62295         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
62296         version.
62297         (__ASSUME_UTIMES): Likewise.
62298         (__ASSUME_CLONE_STOPPED): Remove.
62299         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
62300         architectures, not kernel version.
62301         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
62302         (__ASSUME_NO_CLONE_DETACHED): Likewise.
62303         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
62304         (__ASSUME_WAITID_SYSCALL): Likewise.
62305         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
62306         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
62307         * README: State 2.6.16 as minimum Linux kernel version.  Do not
62308         refer to older versions.
62309
62310 2012-08-06  Roland McGrath  <roland@hack.frob.com>
62311
62312         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
62313         Define alphasort64 as an alias.
62314         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
62315         Define versionsort64 as an alias.
62316         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
62317         Define scandir64 as an alias.
62318         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
62319         Define scandirat64 as an alias.
62320         * dirent/alphasort64.c (alphasort64):
62321         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
62322         * dirent/versionsort64.c: Likewise.
62323         * dirent/scandir64.c: Likewise.
62324         * dirent/scandirat64.c: Likewise.
62325         * sysdeps/wordsize-64/alphasort.c: File removed.
62326         * sysdeps/wordsize-64/alphasort64.c: File removed.
62327         * sysdeps/wordsize-64/scandir.c: File removed.
62328         * sysdeps/wordsize-64/scandir64.c: File removed.
62329         * sysdeps/wordsize-64/scandirat.c: File removed.
62330         * sysdeps/wordsize-64/scandirat64.c: File removed.
62331         * sysdeps/wordsize-64/versionsort.c: File removed.
62332         * sysdeps/wordsize-64/versionsort64.c: File removed.
62333         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
62334         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
62335         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
62336         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
62337         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
62338         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
62339         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
62340         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
62341
62342         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
62343         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
62344         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
62345         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62346         [defined __arch64__ || defined __sparcv9]
62347         (__INO_T_MATCHES_INO64_T): New macro.
62348         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
62349         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
62350         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
62351         * sysdeps/unix/sysv/linux/bits/dirent.h
62352         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
62353         (_DIRENT_MATCHES_DIRENT64): New macro.
62354
62355         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
62356         Define lockf64 as an alias.
62357         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
62358         Define fseeko64 as an alias.
62359         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
62360         Define ftello64 as an alias.
62361         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
62362         Define _IO_fgetpos64 and fgetpos64 as aliases.
62363         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
62364         Define _IO_fsetpos64 and fsetpos64 as aliases.
62365         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
62366         Conditionalize body on this.
62367         * libio/fseeko64.c: Likewise.
62368         * libio/ftello64.c: Likewise.
62369         * libio/iofgetpos64.c: Likewise.
62370         * libio/iofsetpos64.c: Likewise.
62371         * sysdeps/wordsize-64/lockf.c: File removed.
62372         * sysdeps/wordsize-64/lockf64.c: File removed.
62373         * sysdeps/wordsize-64/fseeko.c: File removed.
62374         * sysdeps/wordsize-64/fseeko64.c: File removed.
62375         * sysdeps/wordsize-64/ftello.c: File removed.
62376         * sysdeps/wordsize-64/ftello64.c: File removed.
62377         * sysdeps/wordsize-64/iofgetpos.c: File removed.
62378         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
62379         * sysdeps/wordsize-64/iofsetpos.c: File removed.
62380         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
62381         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
62382         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
62383         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
62384         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
62385         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
62386         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
62387         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
62388         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
62389         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
62390         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
62391
62392         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
62393         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
62394         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
62395         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62396         [defined __arch64__ || defined __sparcv9]
62397         (__OFF_T_MATCHES_OFF64_T): New macro.
62398         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
62399         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
62400         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62401         (__OFF_T_MATCHES_OFF64_T): New macro.
62402
62403 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
62404
62405         * stdlib/secure-getenv.c (__secure_getenv): Replace
62406         GLIBC_2_16 with GLIBC_2_17.
62407
62408 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
62409
62410         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
62411         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62412
62413 2012-08-03  David S. Miller  <davem@davemloft.net>
62414
62415         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62416
62417 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
62418
62419         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
62420         Remove.
62421         (__ASSUME_CORRECT_SI_PID): Likewise.
62422         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
62423         (__ASSUME_TMPFS_NAME): Likewise.
62424         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
62425         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
62426         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
62427         (HAVE_AUX_SECURE): Make definition unconditional.
62428         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
62429         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
62430
62431 2012-08-03  Roland McGrath  <roland@hack.frob.com>
62432
62433         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
62434         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
62435         * sysdeps/mach/hurd/eloop-threshold.h: New file.
62436         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
62437         __eloop_threshold instead of SYMLOOP_MAX.
62438
62439         * sysdeps/generic/eloop-threshold.h: New file.
62440         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
62441         of MAXSYMLINKS.
62442         * elf/chroot_canon.c (chroot_canon): Likewise.
62443
62444 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
62445
62446         [BZ #13717]
62447         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
62448         Change to 2.6.0 everywhere.
62449         * sysdeps/unix/sysv/linux/configure: Regenerated.
62450         * sysdeps/unix/sysv/linux/kernel-features.h
62451         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
62452         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
62453         kernel versions.
62454         (__ASSUME_POSIX_TIMERS): Define unconditionally.
62455         (__ASSUME_FUTEX_REQUEUE): Remove.
62456         (__ASSUME_STATFS64): Define unconditionally.
62457         (__ASSUME_AT_SECURE): Likewise.
62458         (__ASSUME_CORRECT_SI_PID): Likewise.
62459         (__ASSUME_TGKILL): Define without depending on kernel version for
62460         i386.
62461         (__ASSUME_UTIMES): Likewise.
62462         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
62463         kernel version.
62464         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
62465         (__ASSUME_TMPFS_NAME): Likewise.
62466         * README: Update reference to Linux kernel versions.
62467
62468 2012-08-02  Marek Polacek  <polacek@redhat.com>
62469
62470         [BZ# 14150]
62471         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
62472         libc_cv_asm_type_prefix with %.
62473         * configure: Regenerated.
62474         * include/libc-symbols.h: Remove comment about
62475         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
62476         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
62477         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
62478         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
62479         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
62480         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
62481         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
62482         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
62483         * elf/tst-unique2mod1.c: Likewise.
62484         * elf/tst-unique1mod2.c: Likewise.
62485         * elf/tst-unique1mod1.c: Likewise.
62486         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
62487         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
62488         Replace ASM_TYPE_DIRECTIVE with .type.
62489         * sysdeps/s390/s390-64/sysdep.h: Likewise.
62490         * sysdeps/i386/sysdep.h: Likewise.
62491         * sysdeps/x86_64/sysdep.h: Likewise.
62492         * sysdeps/sh/sysdep.h: Likewise.
62493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
62494         Do not define ASM_TYPE_DIRECTIVE.
62495         * sysdeps/powerpc/sysdep.h: Likewise.
62496         * sysdeps/powerpc/powerpc32/sysdep.h:
62497         Replace ASM_TYPE_DIRECTIVE with .type.
62498         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
62499         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
62500         * sysdeps/i386/fpu/e_powf.S: Likewise.
62501         * sysdeps/i386/fpu/e_expl.S: Likewise.
62502         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
62503         * sysdeps/i386/fpu/e_acosh.S: Likewise.
62504         * sysdeps/i386/fpu/e_pow.S: Likewise.
62505         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
62506         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
62507         * sysdeps/i386/fpu/s_expm1.S: Likewise.
62508         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
62509         * sysdeps/i386/fpu/e_log2.S: Likewise.
62510         * sysdeps/i386/fpu/e_log2l.S: Likewise.
62511         * sysdeps/i386/fpu/e_scalb.S: Likewise.
62512         * sysdeps/i386/fpu/e_powl.S: Likewise.
62513         * sysdeps/i386/fpu/e_log10f.S: Likewise.
62514         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
62515         * sysdeps/i386/fpu/e_logl.S: Likewise.
62516         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
62517         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
62518         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
62519         * sysdeps/i386/fpu/e_log2f.S: Likewise.
62520         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
62521         * sysdeps/i386/fpu/e_log.S: Likewise.
62522         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
62523         * sysdeps/i386/fpu/e_logf.S: Likewise.
62524         * sysdeps/i386/fpu/e_log10l.S: Likewise.
62525         * sysdeps/i386/fpu/e_atanh.S: Likewise.
62526         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
62527         * sysdeps/i386/fpu/e_log10.S: Likewise.
62528         * sysdeps/i386/fpu/s_frexp.S: Likewise.
62529         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
62530         * sysdeps/i386/fpu/s_asinh.S: Likewise.
62531         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
62532         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
62533         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
62534         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
62535         * sysdeps/i386/i686/strtok.S: Likewise.
62536         * sysdeps/i386/i386-mcount.S: Likewise.
62537         * sysdeps/i386/strtok.S: Likewise.
62538         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
62539         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
62540         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
62541         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
62542         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
62543         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
62544         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
62545         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
62546         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
62547         * sysdeps/x86_64/_mcount.S: Likewise.
62548         * sysdeps/x86_64/strtok.S: Likewise.
62549         * sysdeps/sh/_mcount.S: Likewise.
62550
62551 2012-08-01  Roland McGrath  <roland@hack.frob.com>
62552
62553         * libio/iofopen.c: Include <fcntl.h>.
62554         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
62555         (_IO_fopen64, fopen64): Define as aliases.
62556         * libio/iofopen64.c: Include <fcntl.h>.
62557         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
62558         Conditionalize body on this.
62559         * sysdeps/wordsize-64/iofopen.c: File removed.
62560         * sysdeps/wordsize-64/iofopen64.c: File removed.
62561
62562 2012-08-01  Marek Polacek  <polacek@redhat.com>
62563
62564         * libc/Makeconfig: Use elf in place of binfmt-subdir.
62565         Use dlfcn directly instead of a variable.
62566         (binfmt-subdir): Do not define.
62567         (dlfcn): Likewise.
62568
62569 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
62570
62571         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
62572         Remove all definitions.
62573         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
62574         <kernel-features.h>.
62575         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
62576         (miss_F_GETOWN_EX): Remove all definitions.
62577         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
62578         macro definition.
62579         [!__ASSUME_FCNTL64]: Remove conditional code.
62580         [__ASSUME_FCNTL64]: Make code unconditional.
62581         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
62582         <kernel-features.h>.
62583         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
62584         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
62585         (lockf64) [__NR_fcntl64]: Make code unconditional.
62586         (lockf64) [__ASSUME_FCNTL64]: Likewise.
62587
62588         * sysdeps/unix/sysv/linux/kernel-features.h
62589         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
62590         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
62591         Make code unconditional.
62592         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
62593         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
62594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
62595         [__NR_vfork]: Make code unconditional.
62596         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
62597         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
62598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
62599         [__NR_vfork]: Make code unconditional.
62600         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
62601         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
62602
62603 2012-08-01  Roland McGrath  <roland@hack.frob.com>
62604
62605         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
62606         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
62607
62608         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
62609         Define mkstemp64 as an alias.
62610         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
62611         Define mkstemps64 as an alias.
62612         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
62613         Define mkostemp64 as an alias.
62614         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
62615         Define mkostemps64 as an alias.
62616         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
62617         Conditionalize body on this.
62618         * misc/mkostemp64.c: Likewise.
62619         * misc/mkostemps64.c: Likewise.
62620         * misc/mkstemps64.c: Likewise.
62621         * sysdeps/wordsize-64/mkstemp64.c: File removed.
62622         * sysdeps/wordsize-64/mkostemp64.c: File removed.
62623         * sysdeps/wordsize-64/mkostemp.c: File removed.
62624         * sysdeps/wordsize-64/mkstemp.c: File removed.
62625         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
62626         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
62627         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
62628         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
62629
62630         [BZ #14138]
62631         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
62632         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
62633         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
62634         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
62635
62636         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
62637         compat_symbol macros from <shlib-compat.h> rather than the underlying
62638         default_symbol_version and symbol_version macros, so that DEFAULT
62639         lines in shlib-versions are respected.
62640         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
62641
62642 2012-08-01  Florian Weimer  <fweimer@redhat.com>
62643
62644         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
62645         Declare with warn_unused_result.
62646         (setgid, setregid, setegid, setresgid): Likewise.
62647         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
62648         Likewise.
62649         * WUR-REPORT: Remove set*id functions.
62650
62651 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
62652
62653         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
62654
62655 2012-07-31  Roland McGrath  <roland@hack.frob.com>
62656
62657         [BZ #10191]
62658         * include/sys/socket.h (__libc_accept, __libc_accept4):
62659         Add attribute_hidden.
62660         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
62661
62662         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
62663         use of PTR_MANGLE.
62664         * inet/getnetgrent_r.c (setup): Likewise.
62665
62666         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
62667
62668 2012-07-31  David S. Miller  <davem@davemloft.net>
62669
62670         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62671
62672 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
62673
62674         [BZ #13629]
62675         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
62676         value between 1.0 and 2.0 and smaller part has absolute value less
62677         than 1.0.
62678         * math/s_clog10.c (__clog10): Likewise.
62679         * math/s_clog10f.c (__clog10f): Likewise.
62680         * math/s_clog10l.c (__clog10l): Likewise.
62681         * math/s_clogf.c (__clogf): Likewise.
62682         * math/s_clogl.c (__clogl): Likewise.
62683         * math/libm-test.inc (clog_test): Add more tests.
62684         (clog10_test): Likewise.
62685         * sysdeps/i386/fpu/libm-test-ulps: Update.
62686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62687
62688 2012-07-31  Florian Weimer  <fweimer@redhat.com>
62689
62690         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
62691         Exit with zero in case no suitable GID is found, and write a
62692         message to standard error.
62693
62694 2012-07-30  Roland McGrath  <roland@hack.frob.com>
62695
62696         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
62697         rather than to 1.
62698         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
62699         (MAXPATHLEN): Removed.
62700         (NOGROUP, NODEV): New macros.
62701         (setbit, clrbit, isset, isclr): New macros.
62702         (howmany, roundup, powerof2): New macros.
62703         (DEV_BSIZE): New macro.
62704
62705         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
62706         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
62707
62708         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
62709         definition on [!__NO_LONG_DOUBLE_MATH].
62710
62711         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
62712         PTR_MANGLE and PTR_DEMANGLE.
62713
62714         * socket/accept4.c (accept4): Rename to __libc_accept4.
62715         Define accept4 as a weak alias.
62716
62717         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
62718         on [_DIRENT_HAVE_D_TYPE].
62719         * io/ftw.c (ftw_dir): Likewise.
62720
62721         * io/xmknod.c (__xmknod): Don't check PATH for being null.
62722
62723         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
62724
62725         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
62726         Use the BSD numbers rather than the arbitrary ones we had.
62727         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
62728         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
62729         (SIGXCPU, SIGXFSZ): New macros.
62730         (_NSIG): Now 32.
62731
62732         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
62733         initializer on [_LIBC_REENTRANT].
62734
62735         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
62736         definitions inside [_POSIX_MAPPED_FILES].
62737
62738         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
62739
62740         * dirent/opendir.c: Include <fcntl.h>.
62741
62742         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
62743         (__libc_getspecific): Likewise.
62744         (__libc_key_create): Likewise.
62745
62746         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
62747         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
62748         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
62749         (tmpfile64): Define as alias.
62750         * sysdeps/wordsize-64/tmpfile.c: File removed.
62751         * sysdeps/wordsize-64/tmpfile64.c: File removed.
62752         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
62753         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
62754
62755         * stdio-common/vfscanf.c: Include <stdbool.h>.
62756         * nss/makedb.c: Likewise.
62757         * stdio-common/_i18n_number.h: Likewise.
62758         * argp/argp-help.c: Likewise.
62759         * posix/wordexp.c: Likewise.
62760         * sysdeps/posix/spawni.c: Likewise.
62761         * nss/nss_files/files-initgroups.c: Likewise.
62762         * stdio-common/reg-modifier.c: Include <stdlib.h>.
62763         * nss/nss_files/files-initgroups.c: Likewise.
62764         * nss/nss_db/db-netgrp.c: Likewise.
62765         * nss/nss_db/db-initgroups.c: Likewise.
62766         * io/fchmodat.c: Include <sys/stat.h>.
62767
62768         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
62769         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
62770
62771         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
62772         [HAVE_MMAP].
62773
62774         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
62775         Add multiple inclusion protection.
62776
62777 2012-07-27  David S. Miller  <davem@davemloft.net>
62778
62779         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62780
62781 2012-07-27  Gary Benson  <gbenson@redhat.com>
62782
62783         [BZ #14298]
62784         * elf/rtld.c: Include <stap-probe.h>.
62785         (dl_main): Added static probes "init_start" and "init_complete".
62786         * elf/dl-load.c: Include <stap-probe.h>.
62787         (lose): Take new parameter "nsid".
62788         Added static probe "map_failed".
62789         (_dl_map_object_from_fd): Pass namespace id to lose.
62790         Added static probe "map_start".
62791         (open_verify): Pass namespace id to lose.
62792         * elf/dl-open.c: Include <stap-probe.h>.
62793         (dl_open_worker) Added static probes "map_complete", "reloc_start"
62794         and "reloc_complete".
62795         * elf/dl-close.c: Include <stap-probe.h>.
62796         (_dl_close_worker): Added static probes "unmap_start" and
62797         "unmap_complete".
62798         * elf/rtld-debugger-interface.txt: New file documenting the above.
62799
62800 2012-07-26  Roland McGrath  <roland@hack.frob.com>
62801
62802         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
62803         rather than a string variable.
62804         * sunrpc/rpc_main.c (h_output): Likewise.
62805         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
62806
62807 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
62808
62809         * inet/check_native.c: New file.
62810
62811 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
62812
62813         [BZ #13629]
62814         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
62815         if larger part has absolute value 1.0.
62816         * math/s_clog10.c (__clog10): Likewise.
62817         * math/s_clog10f.c (__clog10f): Likewise.
62818         * math/s_clog10l.c (__clog10l): Likewise.
62819         * math/s_clogf.c (__clogf): Likewise.
62820         * math/s_clogl.c (__clogl): Likewise.
62821         * math/libm-test.inc (clog_test): Add more tests.
62822         (clog10_test): Likewise.
62823         * sysdeps/i386/fpu/libm-test-ulps: Update.
62824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62825
62826         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
62827         (pltexit): Likewise.
62828         (La_regs): Likewise.
62829         (La_retval): Likewise.
62830         (int_retval): Likewise.
62831         Update #error for removed macros to refer only to definitions in
62832         tst-audit.h.
62833         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
62834         macro.
62835         (pltexit): Likewise.
62836         (La_regs): Likewise.
62837         (La_retval): Likewise.
62838         (int_retval): Likewise.
62839         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
62840         macro.
62841         (pltexit): Likewise.
62842         (La_regs): Likewise.
62843         (La_retval): Likewise.
62844         (int_retval): Likewise.
62845         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
62846         macro.
62847         (pltexit): Likewise.
62848         (La_regs): Likewise.
62849         (La_retval): Likewise.
62850         (int_retval): Likewise.
62851         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
62852         macro.
62853         (pltexit): Likewise.
62854         (La_regs): Likewise.
62855         (La_retval): Likewise.
62856         (int_retval): Likewise.
62857         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
62858         macro.
62859         (pltexit): Likewise.
62860         (La_regs): Likewise.
62861         (La_retval): Likewise.
62862         (int_retval): Likewise.
62863         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
62864         macro.
62865         (pltexit): Likewise.
62866         (La_regs): Likewise.
62867         (La_retval): Likewise.
62868         (int_retval): Likewise.
62869         * sysdeps/generic/tst-audit.h: Update comment to refer only to
62870         macro definitions in tst-audit.h.
62871         * sysdeps/i386/tst-audit.h: New file.
62872         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
62873         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
62874         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
62875         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
62876         * sysdeps/sh/tst-audit.h: Likewise.
62877         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
62878         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
62879         * sysdeps/x86_64/tst-audit.h: Likewise.
62880
62881 2012-07-26  Andreas Jaeger  <aj@suse.de>
62882
62883         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
62884         ptrace.
62885
62886         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
62887         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
62888         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
62889         PTRACE_O_MASK.
62890         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
62891         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
62892         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
62893
62894         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
62895         value.
62896
62897         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
62898         _sigsys.
62899         (si_call_addr, si_syscall, si_arch): Define new macro.
62900         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
62901         _sigsys.
62902         (si_call_addr, si_syscall, si_arch): Define new marcro.
62903         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
62904         _sigsys.
62905         (si_call_addr, si_syscall, si_arch): Define new macro.
62906         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
62907         _sigsys.
62908         (si_call_addr, si_syscall, si_arch): Define new macro.
62909
62910 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
62911
62912         [BZ #13717]
62913         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
62914         Change to 2.4.21 where previously 2.4.1.
62915         * sysdeps/unix/sysv/linux/configure: Regenerated.
62916         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
62917         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
62918         Linux kernel version.
62919         (__ASSUME_STD_AUXV): Remove.
62920         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
62921         kernel version.
62922         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
62923         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
62924         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
62925         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
62926         (__ASSUME_NETLINK_SUPPORT): Likewise.
62927         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
62928         (__no_netlink_support): Remove conditional definition.
62929         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
62930         Remove.
62931         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
62932         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
62933         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
62934         (if_nameindex_ioctl): Remove.
62935         (if_nameindex_netlink): Do not handle __no_netlink_support.
62936         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
62937         code.
62938         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
62939         Remove conditional code.
62940         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
62941         code.
62942         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
62943         unconditional.
62944         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
62945         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
62946         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
62947         Remove.
62948         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
62949         [!__ASSUME_STD_AUXV]: Remove conditional code.
62950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
62951         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
62952         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
62953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
62954         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
62955         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
62956         code.
62957         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
62958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
62959         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
62960         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
62961         conditional code.
62962         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
62963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
62964         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
62965         code.
62966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
62967         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
62968         conditional code.
62969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
62970         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
62971         code unconditional.
62972         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
62973         conditional code.
62974         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
62975         unconditional.
62976         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
62977         conditional code.
62978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
62979         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
62980         unconditional.
62981         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
62982         conditional code.
62983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
62984         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
62985         code unconditional.
62986         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
62987         conditional code.
62988         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
62989         unconditional.
62990         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
62991         conditional code.
62992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
62993         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
62994         code unconditional.
62995         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
62996         conditional code.
62997         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
62998         unconditional.
62999         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
63000         conditional code.
63001
63002 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
63003
63004         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
63005         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
63006         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
63007         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
63008         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
63009         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
63010         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
63011         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
63012         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
63013         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
63014         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
63015         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
63016         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
63017         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
63018         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
63019         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
63020         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
63021         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
63022         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
63023         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
63024         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
63025         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
63026         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63027
63028 2012-07-25  Florian Weimer  <fweimer@redhat.com>
63029
63030         * Versions.def: Add GLIBC_2.17.
63031         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
63032         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
63033         Introduce __libc_secure_getenv.
63034         * stdlib/Versions (2.17): Add secure_getenv
63035         (GLIBC_PRIVATE): Add __libc_secure_getenv.
63036         * stdlib/secure-getenv.c: Rename __secure_getenv to
63037         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
63038         symbol __secure_getenv for GLIBC_2.0.
63039         * stdlib/tst-secure-getenv.c: New.
63040         * stdlib/Makefile (tests): Add testcase.
63041         * manual/startup.texi (Environment Access): Document
63042         secure_getenv.
63043         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
63044         __libc_secure_getenv.
63045         * inet/ruserpass.c (ruserpass): Likewise.
63046         * malloc/mtrace.c (mtrace): Likewise.
63047         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
63048         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
63049         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
63050         * sysdeps/posix/tempname.c: Likewise.  Evaluate
63051         HAVE_SECURE_GETENV.
63052         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
63053         __secure_getenv to __libc_secure_getenv.
63054         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
63055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
63056         Likewise.
63057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
63058         Likewise.
63059         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
63060         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
63061         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
63062         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
63063         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
63064         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
63065         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
63066
63067 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
63068
63069         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
63070         (struct La_i86_retval): Likewise.
63071         (struct La_x86_64_regs): Likewise.
63072         (struct La_x86_64_retval): Likewise.
63073         (struct La_x32_regs): Likewise.
63074         (struct La_x32_retval): Likewise.
63075         (struct La_ppc32_regs): Likewise.
63076         (struct La_ppc32_retval): Likewise.
63077         (struct La_ppc64_regs): Likewise.
63078         (struct La_ppc64_retval): Likewise.
63079         (struct La_sh_regs): Likewise.
63080         (struct La_sh_retval): Likewise.
63081         (struct La_s390_32_regs): Likewise.
63082         (struct La_s390_32_retval): Likewise.
63083         (struct La_s390_64_regs): Likewise.
63084         (struct La_s390_64_retval): Likewise.
63085         (struct La_sparc32_regs): Likewise.
63086         (struct La_sparc32_retval): Likewise.
63087         (struct La_sparc64_regs): Likewise.
63088         (struct La_sparc64_retval): Likewise.
63089         (struct audit_ifaces): Remove architecture-specific pltenter and
63090         pltexit members.
63091         * sysdeps/i386/ldsodefs.h: New file.
63092         * sysdeps/powerpc/ldsodefs.h: Likewise.
63093         * sysdeps/s390/ldsodefs.h: Likewise.
63094         * sysdeps/sh/ldsodefs.h: Likewise.
63095         * sysdeps/sparc/ldsodefs.h: Likewise.
63096         * sysdeps/x86_64/ldsodefs.h: Likewise.
63097
63098 2012-07-25  Marek Polacek  <polacek@redhat.com>
63099
63100         [BZ #6808]
63101         * math/libm-test.inc (yn_test): Add another test.
63102         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
63103         to ERANGE when the result is +-Inf.
63104         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
63105         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
63106         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
63107         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
63108
63109 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
63110
63111         * conform/data/time.h-data (NULL): Use macro-constant.  Require
63112         equal to 0.
63113         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
63114         clock_t.
63115         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
63116
63117 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
63118
63119         * configure.in <sysdeps resolving>: Correct printing
63120         Implies_before.
63121         * configure: Regenerate.
63122
63123 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
63124
63125         * math/w_ilogb.c: Include <limits.h>.
63126         * math/w_ilogbl.c: Likewise.
63127
63128 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
63129
63130         * manual/lang.texi (__va_copy): Document primarily as ISO C99
63131         va_copy.  Document allowing for unavailable va_copy only as
63132         pre-C99 compatibility.
63133         * manual/string.texi (Copying and Concatenation): Use va_copy
63134         instead of __va_copy in concat example.
63135
63136 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
63137
63138         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
63139         (__sendto): Use create_address_port.  Initialize APORT and deallocate
63140         it if not null.
63141
63142         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
63143         with O_NOLINK passed to __file_name_lookup.
63144
63145         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
63146         with O_NOLINK passed to __file_name_lookup.
63147
63148         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
63149         negative N or less than NGIDS.
63150
63151         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
63152         type to string_t.  Set ERANGE as errno and return it if NAME is not big
63153         enough.  Use memcpy instead of strncpy.
63154
63155 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
63156
63157         * elf/Makefile (check-data): Remove.
63158         (localplt.data): New vpath directive.
63159         ($(objpfx)check-localplt.out): Use localplt.data from vpath
63160         instead of $(check-data).
63161         * scripts/data/localplt-generic.data: Move to ...
63162         * sysdeps/generic/localplt.data: ... here.
63163         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
63164         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
63165         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
63166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
63167         ... here.
63168         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
63169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
63170         ... here.
63171         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
63172         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
63173         ... here.
63174         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
63175         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
63176         ... here.
63177         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
63178         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
63179         ... here.
63180         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
63181         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
63182         ... here.
63183
63184 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63185
63186         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
63187         PPC32 and PPC64 files.
63188         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
63189         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
63190
63191 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63192
63193         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
63194         __makecontext_ret to ...
63195         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
63196         ... here and call exit if uc_link is NULL.  New file.
63197         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
63198         __makecontext_ret.S.
63199         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
63200         __makecontext_ret to ...
63201         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
63202         ... here and call exit if uc_link is NULL.  New file.
63203         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
63204         __makecontext_ret.S.
63205
63206 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63207
63208         * elf/elf.h (R_390_IRELATIVE): New definition.
63209         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
63210         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
63211         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
63212         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
63213         (elf_machine_lazy_rel): Likewise.
63214         * sysdeps/s390/dl-irel.h: New file.
63215         * sysdeps/s390/s390-64/memcpy.S: New asm code.
63216         * sysdeps/s390/s390-64/memset.S: New asm code.
63217         * sysdeps/s390/s390-64/memcmp.S: New asm code.
63218         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
63219         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
63220         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
63221         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
63222         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
63223         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
63224         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
63225         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
63226         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
63227         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
63228         * sysdeps/s390/s390-32/memcpy.S: New asm code.
63229         * sysdeps/s390/s390-32/memset.S: New asm code.
63230         * sysdeps/s390/s390-32/memcmp.S: New asm code.
63231
63232 2012-07-17  Marek Polacek  <polacek@redhat.com>
63233
63234         [BZ #14349]
63235         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
63236         * sysdeps/s390/s390-64/configure.in: Likewise.
63237         * sysdeps/sparc/configure.in: Likewise.
63238         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
63239         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
63240         * sysdeps/i386/configure.in: Likewise.
63241         * sysdeps/x86_64/configure.in: Likewise.
63242         * sysdeps/sh/configure.in: Likewise.
63243         * sysdeps/s390/s390-32/configure: Regenerated.
63244         * sysdeps/s390/s390-64/configure: Likewise.
63245         * sysdeps/x86_64/configure: Likewise.
63246         * sysdeps/sh/configure: Likewise.
63247         * sysdeps/powerpc/powerpc64/configure: Likewise.
63248         * sysdeps/powerpc/powerpc32/configure: Likewise.
63249         * sysdeps/sparc/configure: Likwise.
63250         * sysdeps/i386/configure: Likewise.
63251
63252         * elf/dl-open.c: Comment fixes.
63253
63254 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
63255
63256         * Makefile [CXX] (check-data): Remove.
63257         [CXX] (c++-types.data): New vpath directive.
63258         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
63259         vpath.  Do not allow for C++ type data being missing.
63260         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
63261         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
63262         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
63263         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
63264         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
63265         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
63266         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
63267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
63268         ... here.
63269         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
63270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
63271         ... here.
63272         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
63273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
63274         ... here.
63275         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
63276         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
63277         ... here.
63278         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
63279         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
63280         ... here.
63281         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
63282         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
63283         ... here.
63284         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
63285         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
63286         ... here.
63287         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
63288         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
63289
63290         * elf/tls-macros.h (TLS_LE): Move architecture-specific
63291         definitions to architecture-specific files.
63292         (TLS_IE): Likewise.
63293         (TLS_LD): Likewise.
63294         (TLS_GD): Likewise.
63295         * sysdeps/i386/tls-macros.h: New file.
63296         * sysdeps/powerpc/tls-macros.h: Likewise.
63297         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
63298         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
63299         * sysdeps/sh/tls-macros.h: Likewise.
63300         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
63301         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
63302         * sysdeps/x86_64/tls-macros.h: Likewise.
63303
63304 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
63305
63306         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
63307         zero value for regular exit case.
63308
63309         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
63310         (__start_context): Preserve zero value for regular exit case.
63311
63312 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
63313             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63314
63315         * manual/setjmp.texi (setcontext): Clarify normal process
63316         termination when uc_link is the null pointer.
63317         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
63318         exit call.
63319
63320 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
63321
63322         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
63323         preprocessor.  Test for each exception mask separately.
63324
63325 2012-07-16  Andreas Jaeger  <aj@suse.de>
63326
63327         * po/ru.po: Update from translation team.
63328
63329 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
63330
63331         * conform/data/string.h-data (NULL): Use macro-constant.  Require
63332         equal to 0.
63333         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
63334         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
63335         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
63336         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
63337         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63338
63339 2012-07-13  Andreas Jaeger  <aj@suse.de>
63340
63341         * po/fr.po: Update from translation team.
63342
63343 2012-07-12  Marek Polacek  <polacek@redhat.com>
63344
63345         [BZ #14173]
63346         * math/libm-test.inc (yn_test): Add test for BZ #14173.
63347         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
63348         loop condition.
63349
63350 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
63351
63352         [BZ #13717]
63353         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
63354         Change to 2.4.1 where previously 2.4.0.
63355         * sysdeps/unix/sysv/linux/configure: Regenerated.
63356         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
63357         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
63358         version.
63359         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
63360         (__ASSUME_AT_CLKTCK): Remove.
63361         (__ASSUME_AT_PAGESIZE): Likewise.
63362         (__ASSUME_AT_XID): Likewise.
63363         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
63364         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
63365         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
63366         unconditionally.
63367         (HAVE_AUX_PAGESIZE): Likewise.
63368         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
63369         [__ASSUME_AT_CLKTCK]: Make code unconditional.
63370         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
63371
63372 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
63373
63374         [BZ #14307]
63375         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
63376         the temporary buffer used to invoke __gethostbyname2_r,
63377         __gethostbyaddr_r and gethostbyname4_r to make room for struct
63378         host_data / struct gaih_addrtuple.
63379         * resolv/nss_dns/dns-host.c (global scope): Move definition of
63380         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
63381         header file nss/nsswitch.h.
63382         * nss/nsswitch.h (global scope): Add definition of implementation
63383         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
63384         resolv/nss_dns/dns-host.c).
63385
63386 2012-07-11  Andreas Jaeger  <aj@suse.de>
63387
63388         * po/fr.po: Update from translation team.
63389
63390         * po/sv.po: Update from translation team
63391         * po/fr.po: Another update from translation team.
63392
63393 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63394
63395         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
63396         for subnormals or multiply small sinh result by itself.
63397         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
63398         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63399
63400 2012-07-11  David S. Miller  <davem@davemloft.net>
63401
63402         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63403
63404 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
63405
63406         [BZ #14347]
63407         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
63408         (INTERNAL_MARK): Shift it here.
63409
63410 2012-07-10  Marek Polacek  <polacek@redhat.com>
63411
63412         [BZ #14151]
63413         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
63414         libc_cv_asm_global_directive with .globl.
63415         * configure: Regenerated.
63416         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
63417         with .globl.
63418         * sysdeps/i386/configure: Regenerated.
63419         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
63420         with .globl.
63421         * sysdeps/x86_64/configure: Regenerated.
63422         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
63423         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
63424         * elf/tst-unique2mod2.c: Likewise.
63425         * elf/tst-unique2mod1.c: Likewise.
63426         * elf/tst-unique1mod2.c: Likewise.
63427         * elf/tst-unique1mod1.c: Likewise.
63428         * sysdeps/s390/s390-32/sysdep.h: Likewise.
63429         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
63430         * sysdeps/s390/s390-64/sysdep.h: Likewise.
63431         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
63432         * sysdeps/mach/sysdep.h: Likewise.
63433         * sysdeps/i386/sysdep.h: Likewise.
63434         * sysdeps/i386/i386-mcount.S: Likewise.
63435         * sysdeps/x86_64/_mcount.S: Likewise.
63436         * sysdeps/x86_64/sysdep.h: Likewise.
63437         * sysdeps/sh/_mcount.S: Likewise.
63438         * sysdeps/sh/sysdep.h: Likewise.
63439         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
63440         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
63441         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
63442         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
63443         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
63444         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
63445         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
63446         * locale/localeinfo.h: Likewise.
63447         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
63448         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
63449
63450 2012-07-09  Roland McGrath  <roland@hack.frob.com>
63451
63452         [BZ #14336]
63453         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
63454         system".
63455         * manual/message.texi (The Uniforum approach): Likewise.
63456         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
63457         (glibc iconv Implementation): Likewise.
63458
63459 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
63460
63461         [BZ #14337]
63462         * math/s_clog.c (__clog): Avoid scaling a value down where that
63463         could result in underflow.
63464         * math/s_clog10.c (__clog10): Likewise.
63465         * math/s_clog10f.c (__clog10f): Likewise.
63466         * math/s_clog10l.c (__clog10l): Likewise.
63467         * math/s_clogf.c (__clogf): Likewise.
63468         * math/s_clogl.c (__clogl): Likewise.
63469         * math/libm-test.inc (clog_test): Add more tests.
63470         (clog10_test): Likewise.
63471         * sysdeps/i386/fpu/libm-test-ulps: Update.
63472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63473
63474 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
63475
63476         [BZ #14283]
63477         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
63478         by 7 not 8 to examine high bit of fractional part.
63479
63480         [BZ #14042]
63481         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
63482         for call to __mcount_internal.
63483         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
63484         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
63485         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
63486
63487 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
63488
63489         [BZ #14154]
63490         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
63491         approximation for values within 0x1p-13f of an odd multiple of
63492         pi/4.
63493         * math/libm-test.inc (tan_test): Do not allow spurious underflow
63494         exception.  Add more tests.
63495         * sysdeps/i386/fpu/libm-test-ulps: Update.
63496
63497         [BZ #6778]
63498         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
63499         inputs and return -1 for them.  Do not check for +Inf in case not
63500         reachable for +Inf.
63501         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
63502         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
63503         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
63504         and return -1 for them.  Do not check for +Inf in case not
63505         reachable for +Inf.
63506         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
63507         define.
63508         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
63509         and return -1 for them.  Do not check for +Inf in case not
63510         reachable for +Inf.
63511         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
63512         spurious underflow.
63513         * sysdeps/i386/fpu/libm-test-ulps: Update.
63514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63515
63516 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
63517
63518         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
63519
63520 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
63521
63522         [BZ #14157]
63523         [BZ #14331]
63524         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
63525         could result in spurious underflow.  Scale down values above
63526         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
63527         * math/s_csqrtf.c (__csqrtf): Likewise.
63528         * math/s_csqrtl.c (__csqrtl): Likewise.
63529         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
63530         spurious underflow.
63531         * sysdeps/i386/fpu/libm-test-ulps: Update.
63532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63533
63534 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
63535
63536         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
63537         xopen-msg.sed.
63538         * catgets/xopen-msg.awk: New file.
63539         * catgets/xopen-msg.sed: Removed.
63540
63541         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
63542         po2text.sed.
63543         * intl/po2test.awk: New file.
63544         * intl/po2test.sed: Removed.
63545
63546 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
63547
63548         [BZ #14328]
63549         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
63550         or multiply small sinh result by itself.
63551         * math/s_ctanf.c (__ctanf): Likewise.
63552         * math/s_ctanh.c (__ctanh): Likewise.
63553         * math/s_ctanhf.c (__ctanhf): Likewise.
63554         * math/s_ctanhl.c (__ctanhl): Likewise.
63555         * math/s_ctanl.c (__ctanl): Likewise.
63556         * math/libm-test.inc (ctan_test_tonearest): New function.
63557         (ctan_test_towardzero): Likewise.
63558         (ctan_test_downward): Likewise.
63559         (ctan_test_upward): Likewise.
63560         (ctanh_test_tonearest): Likewise.
63561         (ctanh_test_towardzero): Likewise.
63562         (ctanh_test_downward): Likewise.
63563         (ctanh_test_upward): Likewise.
63564         (main): Call these new functions.
63565         * sysdeps/i386/fpu/libm-test-ulps: Update.
63566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63567
63568 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
63569
63570         * .gitignore: Delete /ports entry.
63571
63572 2012-07-03  Andreas Jaeger  <aj@suse.de>
63573
63574         * po/bg.po: Update from translation team.
63575         * po/cs.po: Likewise.
63576         * po/de.po: Likewise.
63577         * po/hr.po: Likewise.
63578         * po/nl.pl: Likewise.
63579         * po/pl.po: Likewise.
63580         * po/vi.po: Likewise.
63581
63582 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
63583
63584         * Makeconfig [!+link] (+link-before-libc): New variable.
63585         [!+link] (+link-after-libc): Likewise.
63586         [!+link] (+link-tests): Likewise.
63587         [!+link] (+link): Define in terms of $(+link-before-libc) and
63588         $(+link-after-libc).
63589         [!+link-static] (+link-static-before-libc): New variable.
63590         [!+link-static] (+link-static-after-libc): Likewise.
63591         [!+link-static] (+link-static-tests): Likewise.
63592         [!+link-static] (+link-static): Define in terms of
63593         $(+link-static-before-libc) and $(+link-static-after-libc).
63594         [build-shared] (link-libc-before-gnulib): New variable.
63595         [build-shared] (link-libc-tests): Likewise.
63596         [build-shared] (link-libc): Define in terms of
63597         $(link-libc-before-gnulib).
63598         [!build-shared] (link-libc-tests): New variable.
63599         (link-libc-static-tests): New variable.
63600         [!gnulib] (gnulib-arch): New variable.
63601         [!gnulib] (gnulib-tests): Likewise.
63602         [!gnulib] (static-gnulib-arch): Likewise.
63603         [!gnulib] (static-gnulib-tests): Likewise.
63604         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
63605         Define with "=" instead of ":=".
63606         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
63607         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
63608         * Rules (binaries-all-notests): New variable.
63609         (binaries-all-tests): Likewise.
63610         (binaries-static-notests): Likewise.
63611         (binaries-static-tests): Likewise.
63612         (binaries-all): Define using $(binaries-all-notests) and
63613         $(binaries-all-tests).
63614         (binaries-static): Define using $(binaries-static-notests) and
63615         $(binaries-static-tests).
63616         (binaries-shared-tests): New variable.
63617         (binaries-shared-notests): Likewise.
63618         (binaries-shared): Remove variable.
63619         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
63620         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
63621         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
63622         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
63623         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
63624         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
63625         * elf/Makefile (sln-modules): New variable.
63626         (extra-objs): Add $(sln-modules:=.o).
63627         (ldconfig-modules): Add static-stubs.
63628         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
63629         * elf/static-stubs.c: New file.
63630
63631         [BZ #14283]
63632         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
63633         by 7 not 8 to examine high bit of fractional part.  Use volatile
63634         variables when splitting into final array of floats if
63635         __FLT_EVAL_METHOD__ != 0.
63636         * math/libm-test.inc (cos_test): Add another test.
63637         (sin_test): Likewise.
63638         * sysdeps/i386/fpu/libm-test-ulps: Update.
63639
63640         [BZ #14273]
63641         * math/libm-test.inc (cosh_test): Add more tests.
63642
63643         * version.h (RELEASE): Set to "development".
63644         (VERSION): Set to "2.16.90".
63645
63646 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
63647
63648         * NEWS: Update copyright. Remove last-updated date.
63649         Mention math library bug fixes and timezone data changes.
63650         * README: Mention GNU/Hurd, x32, and HPPA support status.
63651
63652 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
63653
63654         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
63655
63656 2012-06-27  Andreas Jaeger  <aj@suse.de>
63657
63658         * manual/contrib.texi (Contributors): Add Samuel Thibault.
63659
63660 2012-06-25  Andreas Jaeger  <aj@suse.de>
63661
63662         * sysdeps/s390/fpu/libm-test-ulps: Update.
63663
63664 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
63665             Thomas Schwinge  <thomas@codesourcery.com>
63666
63667         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
63668         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
63669         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
63670         fanotify_mark.
63671
63672 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
63673
63674         * sysdeps/mach/start.c: Remove file.
63675         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
63676         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
63677         * sysdeps/sh/init-first.c: Likewise.
63678
63679         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
63680         registers for frame unwinding purposes, add CFI directives.
63681         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
63682         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
63683         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
63684         Likewise.
63685
63686         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
63687         __fortify_fail returning.
63688         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
63689
63690         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
63691         sysdeps/sh/____longjmp_chk.S.
63692         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
63693         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
63694         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
63695         (gen-as-const-headers): Append sigaltstack-offsets.sym.
63696
63697         * sysdeps/sh/abort-instr.h: New file.
63698         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
63699         process in case exit returns.
63700
63701         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
63702         initialize the GOT register before use.
63703
63704         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
63705         calculation of ARGC > 4.
63706
63707         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
63708         meaningful names to some local labels.
63709
63710 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
63711             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
63712
63713         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
63714         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
63715         (__arch_compare_and_exchange_val_16_acq): Likewise.
63716         (__arch_compare_and_exchange_val_32_acq): Likewise.
63717         (atomic_exchange_and_add): Fix gUSA sequence.
63718         (atomic_add): Likewise.
63719         (atomic_add_negative): Likewise.
63720         (atomic_add_zero): Likewise.
63721         (atomic_bit_test_set): Likewise.
63722
63723 2012-06-22  Andreas Schwab  <schwab@redhat.com>
63724
63725         [BZ #13579]
63726         * include/link.h (struct link_map): Add l_free_initfini.
63727         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
63728         l_initfini.
63729         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
63730         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
63731         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
63732         set.
63733
63734 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
63735
63736         * configure.in: Use AC_LANG_SOURCE.
63737         * configure: Regenerate.
63738
63739 2012-06-22  Roland McGrath  <roland@hack.frob.com>
63740
63741         * configure.in (libc_cv_localstatedir): New substituted variable.
63742         * configure: Regenerated.
63743         * config.make.in (localstatedir): New variable, substituted from
63744         libc_cv_localstatedir.
63745         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
63746         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
63747         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
63748         * sysdeps/gnu/configure: Regenerated.
63749
63750 2012-06-21  Jeff Law  <law@redhat.com>
63751
63752         [BZ #14277]
63753         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
63754         free.  Simplify list management for _LIBC case.
63755
63756 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
63757
63758         [BZ #14273]
63759         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
63760         Clear sign bit of 64-bit integer value before comparing against
63761         overflow value.
63762
63763         * sysdeps/mach/configure: Regenerated.
63764
63765 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
63766
63767         [BZ #14278]
63768         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
63769
63770 2012-06-21  Jeff Law  <law@redhat.com>
63771
63772         [BZ #13882]
63773         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
63774         uint16_t for elements in the "seen" array to avoid char overflows.
63775         * elf/dl-fini.c (_dl_sort_fini): Likewise.
63776         * elf/dl-open.c (dl_open_worker): Likewise.
63777
63778 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
63779
63780         * scripts/list-sources.sh: Scan PORTS for translations.
63781         * po/libc.pot: Regenerated.
63782
63783 2012-06-21  Andreas Jaeger  <aj@suse.de>
63784
63785         [BZ #12194]
63786         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
63787         warning.
63788         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
63789         * bits/byteswap-16.h (__bswap_16): Likewise.
63790         * bits/byteswap.h (__bswap_constant_16): Likewise.
63791
63792 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
63793
63794         [BZ #14117]
63795         * sysdeps/i386/fpu_control.h: Removed.
63796         * sysdeps/x86_64/fpu_control.h: Moved to ...
63797         * sysdeps/x86/fpu_control.h: Here.
63798
63799         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
63800         (_FPU_SETCW): Likewise.
63801
63802 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
63803
63804         [BZ #14117]
63805         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
63806         * sysdeps/x86/fpu/bits/mathinline.h: This.
63807         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
63808
63809         [BZ #14050]
63810         [BZ #14117]
63811         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
63812         functions if __x86_64__ is defined.
63813
63814 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
63815
63816         * string/endian.h: Add !__ASSEMBLER__ condition for including
63817         conversion interfaces.
63818
63819 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
63820
63821         [BZ #14241]
63822         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
63823         of ABS(x) in calculating zero to negative powers other than odd
63824         integers.
63825         * math/libm-test.inc (pow_test): Add more tests.
63826
63827 2012-06-15  Andreas Jaeger  <aj@suse.de>
63828
63829         * manual/contrib.texi (Contributors): Update entry of Liubov
63830         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
63831         Machado Filho.
63832
63833 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
63834
63835         * string/string.h: Add __wur to GNU version of strerror_r.
63836
63837 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
63838
63839         [BZ #14229]
63840         * string/Makefile (tests): Add tst-strtok_r.
63841         * string/tst-strtok_r.c: New file.
63842         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
63843         RAX_LP/RDX_LP on SAVE_PTR.
63844
63845 2012-06-14  Roland McGrath  <roland@hack.frob.com>
63846
63847         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
63848
63849 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
63850
63851         * libm_test.inc (csqrt_test): Allow more spurious underflow
63852         exceptions.
63853         (j0_test): Likewise.
63854         (j1_test): Likewise.
63855         (y0_test): Likewise.
63856         (y1_test): Likewise.
63857
63858 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
63859
63860         * po/Makefile (libc.pot): Use UTF-8 charset.
63861
63862 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
63863
63864         [BZ #14210]
63865         Suppress sign-conversion warning from FD_SET.
63866         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
63867         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
63868         not unsigned long int.
63869         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
63870
63871 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
63872
63873         [BZ #14050]
63874         [BZ #14117]
63875         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
63876         __extern_always_inline instead of __extern_inline.
63877         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
63878         (__signbit): Likewise.
63879         (__signbitl): Support C++ namespace.
63880         (lrintf): New inline function.
63881         (lrint): Likewise.
63882         (llrintf): Likewise.
63883         (llrint): Likewise.
63884         (fmaxf): Likewise.
63885         (fmax): Likewise.
63886         (fminf): Likewise.
63887         (fmin): Likewise.
63888         (rint): Likewise.
63889         (rintf): Likewise.
63890         (ceil): Likewise.
63891         (ceilf): Likewise.
63892         (floor): Likewise.
63893         (floorf): Likewise.
63894         (nearbyint): Likewise.
63895         (nearbyintf): Likewise.
63896
63897 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
63898
63899         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
63900         non-default versions.
63901
63902 2012-06-11  Roland McGrath  <roland@hack.frob.com>
63903
63904         [BZ #14218]
63905         * manual/argp.texi (Argp): Reword argp_parse description slightly.
63906
63907 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
63908
63909         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
63910         (FE_UPWARD, FE_DOWNWARD): Don't define.
63911         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
63912         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
63913
63914         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
63915         reading it.
63916         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
63917         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
63918
63919 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
63920
63921         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
63922         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
63923         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
63924         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
63925
63926 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
63927
63928         [BZ #14117]
63929         * sysdeps/i386/fpu/bits/fenv.h: Removed.
63930         * sysdeps/i386/fpu/Implies: New file.
63931         * sysdeps/x86_64/fpu/Implies: Likewise.
63932         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
63933         * sysdeps/x86/fpu/bits/fenv.h: This.
63934
63935         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
63936         __SSE_MATH__.
63937
63938 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
63939
63940         [BZ #14134]
63941         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
63942         character 0xffff that matches the last element of the
63943         conversion table.
63944
63945 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63946
63947         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
63948         fmodl commit.
63949
63950 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63951
63952         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
63953         values higher than 25.6283.
63954
63955 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63956
63957         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
63958         subnormal exponent extraction and add some __builtin_expect.
63959         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
63960         Fix for subnormal mantissa calculation.
63961
63962 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
63963
63964         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
63965         cpu2 is -1 and errno is not ENOSYS.
63966
63967 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
63968
63969         [BZ #14117]
63970         * sysdeps/i386/i486/bits/string.h: Renamed to ...
63971         * sysdeps/x86/bits/string.h: This.
63972         * sysdeps/x86_64/bits/string.h: Removed.
63973
63974         * sysdeps/i386/i486/bits/string.h: Define inline functions only
63975         if not compiling for x86-64, but compiling for >= i486.
63976
63977         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
63978         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
63979
63980         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
63981         New macro from Linux kernel 3.4.0.
63982         (FP_XSTATE_MAGIC2): Likewise.
63983         (FP_XSTATE_MAGIC2_SIZE): Likewise.
63984         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
63985         (struct _fpx_sw_bytes): New struct.
63986         (struct _xsave_hdr): Likewise.
63987         (struct _ymmh_state): Likewise.
63988         (struct _xstate): Likewise.
63989
63990         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
63991         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
63992         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
63993         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
63994         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
63995         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
63996
63997         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
63998         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
63999         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
64000         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
64001         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
64002         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
64003
64004 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
64005
64006         [BZ #13743]
64007         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
64008         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
64009         (sysdep_headers): Include sys/platform/ppc.h.
64010         * sysdeps/powerpc/test-gettimebase.c: Test for
64011         __ppc_get_timebase() to catch future ISA opcode/insn changes.
64012         * manual/Makefile (appendices): Include platform.texi.
64013         * manual/contrib.texi (Contributors): Update @node pointers.
64014         * manual/maint.texi (Maintenance): Likewise.
64015         (Platform): New node.
64016         * manual/platform.texi: New file.  Document the new features.
64017
64018 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
64019             Jakub Jelinek  <jakub@redhat.com>
64020
64021         [BZ #14188]
64022         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
64023         where __builtin_expect is unavailable.
64024
64025 2012-06-03  David S. Miller  <davem@davemloft.net>
64026
64027         * stdlib/longlong.h: Updated from GCC.
64028
64029 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
64030
64031         [BZ #14042]
64032         * sysdeps/powerpc/powerpc32/mcount.c: New file.
64033         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
64034         __mcount_internal.
64035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
64036         (GLIBC_2.16): Likewise.
64037
64038 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
64039
64040         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
64041
64042 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
64043
64044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
64045         (default-abi): New variable.
64046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
64047         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
64048         variable.
64049         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
64050         Likewise.
64051         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
64052         Likewise.
64053         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
64054         Likewise.
64055
64056         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
64057         definition.  Document in comment.
64058
64059 2012-06-01  David S. Miller  <davem@davemloft.net>
64060
64061         * stdlib/longlong.h: Updated from GCC.
64062
64063 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
64064
64065         [BZ #14117]
64066         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
64067         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
64068         sys/debugreg.h sys/io.h here.
64069         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
64070         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
64071         sys/io.h.
64072         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
64073         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
64074         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
64075         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
64076         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
64077         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
64078
64079         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
64080         Define only if __x86_64__ is defined.
64081
64082 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
64083
64084         [BZ #14048]
64085         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
64086         Use int64_t for variable i.
64087         * math/libm-test.inc (fmod_test): Add more tests.
64088
64089         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
64090         z computation is not scheduled after fetestexcept.
64091         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
64092         Use math_force_eval instead of asm to ensure calculation scheduled
64093         before exception test.
64094         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
64095         Ensure a1 + u.d computation is not scheduled after fetestexcept.
64096
64097 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
64098
64099         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
64100         computation is not scheduled after fetestexcept.
64101
64102 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
64103
64104         [BZ #14117]
64105         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
64106         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
64107
64108 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64109
64110         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
64111         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
64112
64113 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
64114
64115         [BZ #14117]
64116         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
64117         <bits/wordsize.h>.
64118         (__WCHAR_MIN): Support __WORDSIZE == 64.
64119         (__WCHAR_MAX): Likewise.
64120
64121         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
64122         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
64123
64124         [BZ #14183]
64125         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
64126         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
64127
64128         [BZ #14117]
64129         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
64130         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
64131
64132         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
64133         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
64134
64135         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
64136         Defined to 1 if __x86_64__ isn't defined.
64137         (_STAT_VER_LINUX_OLD): New.
64138         (st_atime): Remove duplicate.
64139         (st_mtime): Likewise.
64140         (st_ctime): Likewise.
64141
64142 2012-05-31  David S. Miller  <davem@davemloft.net>
64143
64144         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
64145         entries.
64146
64147 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
64148
64149         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
64150         gen-libm-test.pl.
64151
64152         [BZ #14132]
64153         * elf/dl-reloc.c: Include <_itoa.h>.
64154         (_dl_reloc_bad_type): Remove use of INTUSE.
64155         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
64156         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
64157         * stdio-common/psiginfo.c (psiginfo): Likewise.
64158         * stdio-common/psignal.c (psignal): Likewise.
64159         * string/strsignal.c (strsignal): Likewise.
64160         * include/signal.h (_sys_siglist): Declare hidden proto.
64161         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
64162         INTVARDEF with libc_hidden_data_def.
64163         * stdio-common/itoa-udigits.c: Likewise.
64164         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
64165         (_itoa_lower_digits_internal): Remove declaration.
64166         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
64167         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
64168         (_sys_sigabbrev_internal): Remove aliases.
64169         (_sys_siglist): Define hidden alias.
64170
64171 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
64172
64173         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
64174         bits/sysctl.h.
64175
64176 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
64177
64178         [BZ #14117]
64179         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
64180         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
64181
64182         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
64183         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
64184         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
64185         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
64186         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
64187         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
64188
64189         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
64190         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
64191         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
64192
64193         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
64194         with __addr.
64195         (insw): Likewise.
64196         (insl): Likewise.
64197         (outsb): Likewise.
64198         (outsw): Likewise.
64199         (outsl): Likewise.
64200
64201         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
64202         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
64203         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
64204
64205         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
64206         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
64207         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
64208         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
64209         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
64210         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
64211
64212         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
64213         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
64214
64215         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
64216         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
64217
64218         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
64219         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
64220         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
64221
64222         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
64223         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
64224         to ...
64225         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
64226
64227         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
64228         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
64229         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
64230
64231         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
64232         for x86-64.
64233         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
64234
64235 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
64236
64237         * math/math.h (M_El): Use two more decimal places.
64238         (M_LOG2El): Likewise.
64239         (M_LOG10El): Likewise.
64240         (M_LN2l): Likewise.
64241         (M_LN10l): Likewise.
64242         (M_PIl): Likewise.
64243         (M_PI_2l): Likewise.
64244         (M_PI_4l): Likewise.
64245         (M_1_PIl): Likewise.
64246         (M_2_PIl): Likewise.
64247         (M_2_SQRTPIl): Likewise.
64248         (M_SQRT2l): Likewise.
64249         (M_SQRT1_2l): Likewise.
64250
64251 2012-05-31  David S. Miller  <davem@davemloft.net>
64252
64253         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
64254         values between float registers.
64255         * sysdeps/sparc/sparc64/memset.S: Likewise.
64256         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
64257
64258 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
64259
64260         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
64261         -D_FORTIFY_SOURCE=1.
64262         (CPPFLAGS-tst-longjmp_chk.c): Define.
64263         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
64264         (CPPFLAGS-tst-longjmp_chk2.c): Define.
64265         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
64266         CFLAGS-tst-wchar-h.c.
64267
64268 2012-05-31  Marek Polacek  <polacek@redhat.com>
64269
64270         [BZ #14132]
64271         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
64272         __endmntent_internal): Remove declaration.
64273         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
64274         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
64275         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
64276
64277 2012-05-30  David S. Miller  <davem@davemloft.net>
64278
64279         * sysdeps/sparc/sparc32/soft-fp/q_util.c
64280         (___Q_simulate_exceptions): Use real FP ops rather than writing
64281         into the %fsr.
64282         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
64283         Likewise.
64284
64285 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
64286
64287         [BZ #14117]
64288         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
64289         * sysdeps/x86/bits/xtitypes.h: This.
64290
64291         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
64292         * sysdeps/x86/bits/wordsize.h: This.
64293
64294         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
64295         * sysdeps/x86/bits/huge_vall.h: This.
64296
64297         * sysdeps/i386/bits/select.h: Removed.
64298         * sysdeps/x86_64/bits/select.h: Renamed to ...
64299         * sysdeps/x86/bits/select.h: This.
64300
64301         * sysdeps/i386/bits/setjmp.h: Removed.
64302         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
64303         * sysdeps/x86/bits/setjmp.h: This.
64304
64305         * sysdeps/i386/bits/mathdef.h: Removed.
64306         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
64307         * sysdeps/x86/bits/mathdef.h: This.
64308
64309 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
64310
64311         [BZ #14132]
64312         * include/sys/socket.h (__connect_internal)
64313         (__libc_sa_len_internal): Remove declaration.
64314         (__connect, __libc_sa_len): Declare hidden_proto.
64315         (SA_LEN): Remove use of INTUSE.
64316         * socket/connect.c: Add libc_hidden_def.
64317         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
64318         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
64319         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
64320         alias.
64321         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
64322         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
64323         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
64324         of adding _internal alias.
64325
64326 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
64327
64328         [BZ #14117]
64329         * sysdeps/i386/bits/link.h: Removed.
64330         * sysdeps/i386/bits/linkmap.h: Likewise.
64331         * sysdeps/x86_64/bits/link.h: Renamed to ...
64332         * sysdeps/x86/bits/link.h: This.
64333         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
64334         * sysdeps/x86/bits/linkmap.h: This.
64335
64336         * sysdeps/i386/bits/endian.h: Removed.
64337         * sysdeps/x86_64/bits/endian.h: Renamed to ...
64338         * sysdeps/x86/bits/endian.h: This.
64339
64340         * sysdeps/i386/bits/byteswap.h: Removed.
64341         * sysdeps/i386/bits/byteswap-16.h: Likewise.
64342         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
64343         * sysdeps/x86/bits/byteswap.h: This.
64344         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
64345         * sysdeps/x86/bits/byteswap-16.h: This.
64346         * sysdeps/i386/Implies: Add x86.
64347         * sysdeps/x86_64/Implies: Likewise.
64348
64349 2012-05-30  David S. Miller  <davem@davemloft.net>
64350
64351         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
64352         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
64353         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
64354         (FP_TRAPPING_EXCEPTIONS): Define.
64355         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
64356         (FP_TRAPPING_EXCEPTIONS): Define.
64357         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
64358         subnormals only when inexact has been signalled or underflow
64359         exceptions are enabled.
64360         (_FP_PACK_CANONICAL): Likewise.
64361
64362 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
64363
64364         [BZ #14183]
64365         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
64366         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
64367
64368 2012-05-30  Richard Henderson  <rth@twiddle.net>
64369
64370         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
64371         with #ifndef NOT_IN_libc.
64372
64373         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
64374         marked to avoid plt entry.
64375
64376 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
64377
64378         [BZ #14112]
64379         * Makeconfig (default-abi): New macro.
64380         (abi-includes): Likewise.
64381         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
64382         $(abi-$(default-abi)-lib-soname) for soname if defined.
64383         ($(common-objpfx)gnu/lib-names.stmp): Generate from
64384         abi-variants.
64385         * Makefile (installed-stubs): Likewise.
64386         * include/stubs-biarch.h: Removed.
64387         * scripts/lib-names.awk: Only handle one library at a time.
64388         * scripts/soversions.awk: Remove WORDSIZE support.
64389         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
64390         entries.
64391         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
64392         Removed.
64393         (syscall-list-default-condition): Likewise.
64394         (syscall-list-default-condition): Likewise.
64395         (syscall-list-includes): Likewise.
64396         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
64397         syscall-list-* with abi-*.  Handle undefined abi-variants.
64398         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
64399         * sysdeps/unix/sysv/linux/i386/Implies: New file.
64400         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
64401         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
64402         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
64403         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
64404         Removed.
64405         (syscall-list-32-options): Likewise.
64406         (syscall-list-32-condition): Likewise.
64407         (syscall-list-64-options): Likewise.
64408         (syscall-list-64-condition): Likewise.
64409         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
64410         macro.
64411         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
64412         Renamed to ...
64413         (abi-*): This.
64414         (abi-64-ld-soname): New macro.
64415         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
64416         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
64417         Renamed to ...
64418         (abi-*): This.
64419         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
64420         * sysdeps/x86_64/x32/shlib-versions: Likewise.
64421
64422 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
64423
64424         * sysdeps/unix/sysv/linux/kernel-features.h
64425         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
64426         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
64427         include <kernel-features.h>.
64428         [!__NR_ftruncate64]: Remove conditional code.
64429         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64430         [__NR_ftruncate64]: Make code unconditional.
64431         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64432         * sysdeps/unix/sysv/linux/truncate64.c: Do not
64433         include <kernel-features.h>.
64434         [!__NR_ftruncate64]: Remove conditional code.
64435         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64436         [__NR_ftruncate64]: Make code unconditional.
64437         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
64439         include <kernel-features.h>.
64440         [!__NR_ftruncate64]: Remove conditional code.
64441         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64442         [__NR_ftruncate64]: Make code unconditional.
64443         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
64445         include <kernel-features.h>.
64446         [!__NR_ftruncate64]: Remove conditional code.
64447         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64448         [__NR_ftruncate64]: Make code unconditional.
64449         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
64450
64451         * configure.in (libc_cv_fpie): Weaken to a compile test using
64452         LIBC_TRY_CC_OPTION.
64453         * configure: Regenerated.
64454
64455 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64456
64457         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
64458         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
64459         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
64460         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64461         Refreshed.
64462         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
64463         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
64464         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
64465         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
64466         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
64467         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64468         Refreshed.
64469
64470 2012-05-27  David S. Miller  <davem@davemloft.net>
64471
64472         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
64473         (___Q_zero): New.
64474         (__Q_simulate_exceptions): Return void.  Change to simulate
64475         exceptions by writing into the %fsr.
64476         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
64477         (__Qp_handle_exceptions): Likewise.
64478         (numbers): Delete.
64479         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
64480         __Qp_handle_exceptions.
64481         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
64482         __Qp_handle_exceptions.
64483         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
64484         as unused and give dummy FP_RND_NEAREST initializer.
64485         (FP_INHIBIT_RESULTS): Define.
64486         (___Q_simulate_exceptions): Update declaration.
64487         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
64488         formatting.
64489         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
64490         as unused and give dummy FP_RND_NEAREST initializer.
64491         (__Qp_handle_exceptions): Update declaration.
64492         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
64493         formatting.
64494
64495 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
64496
64497         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
64498         the temporary FPU control word.
64499         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
64500         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
64501         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
64502         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
64503         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
64504         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
64505         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
64506         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
64507         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
64508         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
64509         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
64510
64511 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
64512
64513         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
64514         fields.
64515
64516 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
64517
64518         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
64519         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
64520         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
64521         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
64522         Likewise.
64523         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
64524         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
64525         Likewise.
64526
64527 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
64528
64529         * po/h.po: Update from translation team.
64530
64531 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
64532
64533         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
64534
64535         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
64536         handling of denormals.
64537         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
64538         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
64539         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
64540         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
64541         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
64542         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
64543         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
64544         Likewise.
64545
64546 2012-05-26  Marek Polacek  <polacek@redhat.com>
64547
64548         [BZ #14152]
64549         * math/libm-test.inc (fma_test): Don't always expect underflow
64550         exception.
64551
64552 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64553
64554         [BZ #12416]
64555         * elf/tst-execstack.c: Include stackinfo.h.
64556         (do_test): Adjust test case to ensure that pthread_getattr_np
64557         behaviour remains the same after marking stack executable.
64558
64559 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
64560
64561         * sysdeps/unix/sysv/linux/kernel-features.h
64562         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
64563         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
64564         kernel-features.h.
64565         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
64566         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
64567         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
64568         kernel-features.h.
64569         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
64570         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
64571
64572 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
64573
64574         * configure.in: Define the default includes to being none.
64575         * configure: Regenerated.
64576
64577 2012-05-25  Roland McGrath  <roland@hack.frob.com>
64578
64579         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
64580         * sysdeps/x86_64/setjmp.S: Likewise.
64581         * sysdeps/i386/bsd-setjmp.S: Likewise.
64582         * sysdeps/i386/bsd-_setjmp.S: Likewise.
64583         * sysdeps/i386/setjmp.S: Likewise.
64584         * sysdeps/i386/__longjmp.S: Likewise.
64585         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
64586         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
64587
64588         * include/stap-probe.h: New file.
64589         * configure.in: Handle --enable-systemtap.
64590         * configure: Regenerated.
64591         * config.h.in (USE_STAP_PROBE): New #undef.
64592         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
64593         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
64594         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
64595
64596 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
64597
64598         [BZ #13717]
64599         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
64600         to 2.4.0 where earlier.
64601         * sysdeps/unix/sysv/linux/configure: Regenerated.
64602         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
64603         <kernel-features.h>.
64604         [__ASSUME_32BITUIDS]: Make code unconditional.
64605         [!__ASSUME_32BITUIDS]: Remove conditional code.
64606         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
64607         <kernel-features.h>.
64608         [__ASSUME_32BITUIDS]: Make code unconditional.
64609         [!__ASSUME_32BITUIDS]: Remove conditional code.
64610         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
64611         [__ASSUME_32BITUIDS]: Make code unconditional.
64612         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
64613         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
64614         <kernel-features.h>.
64615         [__ASSUME_32BITUIDS]: Make code unconditional.
64616         [!__ASSUME_32BITUIDS]: Remove conditional code.
64617         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
64618         <kernel-features.h>.
64619         [__ASSUME_32BITUIDS]: Make code unconditional.
64620         [!__ASSUME_32BITUIDS]: Remove conditional code.
64621         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
64622         <kernel-features.h>.
64623         [__ASSUME_32BITUIDS]: Make code unconditional.
64624         [!__ASSUME_32BITUIDS]: Remove conditional code.
64625         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
64626         <kernel-features.h>.
64627         [__ASSUME_32BITUIDS]: Make code unconditional.
64628         [!__ASSUME_32BITUIDS]: Remove conditional code.
64629         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
64630         <kernel-features.h>.
64631         [__ASSUME_32BITUIDS]: Make code unconditional.
64632         [!__ASSUME_32BITUIDS]: Remove conditional code.
64633         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
64634         <kernel-features.h>.
64635         [__ASSUME_32BITUIDS]: Make code unconditional.
64636         [!__ASSUME_32BITUIDS]: Remove conditional code.
64637         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
64638         <kernel-features.h>.
64639         [__ASSUME_32BITUIDS]: Make code unconditional.
64640         [!__ASSUME_32BITUIDS]: Remove conditional code.
64641         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
64642         <kernel-features.h>.
64643         [__ASSUME_32BITUIDS]: Make code unconditional.
64644         [!__ASSUME_32BITUIDS]: Remove conditional code.
64645         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
64646         <kernel-features.h>.
64647         [__ASSUME_32BITUIDS]: Make code unconditional.
64648         [!__ASSUME_32BITUIDS]: Remove conditional code.
64649         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
64650         <kernel-features.h>.
64651         [__ASSUME_32BITUIDS]: Make code unconditional.
64652         [!__ASSUME_32BITUIDS]: Remove conditional code.
64653         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
64654         <kernel-features.h>.
64655         [__NR_setresgid] (__setresgid): Do not declare.
64656         [__ASSUME_32BITUIDS]: Make code unconditional.
64657         [!__ASSUME_32BITUIDS]: Remove conditional code.
64658         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
64659         <kernel-features.h>.
64660         [__NR_setresuid] (__setresuid): Do not declare.
64661         [__ASSUME_32BITUIDS]: Make code unconditional.
64662         [!__ASSUME_32BITUIDS]: Remove conditional code.
64663         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
64664         <kernel-features.h>.
64665         [__ASSUME_32BITUIDS]: Make code unconditional.
64666         [!__ASSUME_32BITUIDS]: Remove conditional code.
64667         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
64668         <kernel-features.h>.
64669         [__ASSUME_32BITUIDS]: Make code unconditional.
64670         [!__ASSUME_32BITUIDS]: Remove conditional code.
64671         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
64672         <kernel-features.h>.
64673         [__ASSUME_32BITUIDS]: Make code unconditional.
64674         [!__ASSUME_32BITUIDS]: Remove conditional code.
64675         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
64676         <kernel-features.h>.
64677         [__ASSUME_32BITUIDS]: Make code unconditional.
64678         [!__ASSUME_32BITUIDS]: Remove conditional code.
64679         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
64680         <kernel-features.h>.
64681         [__ASSUME_32BITUIDS]: Make code unconditional.
64682         [!__ASSUME_32BITUIDS]: Remove conditional code.
64683         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
64684         <kernel-features.h>.
64685         [__ASSUME_32BITUIDS]: Make code unconditional.
64686         [!__ASSUME_32BITUIDS]: Remove conditional code.
64687         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
64688         <kernel-features.h>.
64689         [__ASSUME_32BITUIDS]: Make code unconditional.
64690         [!__ASSUME_32BITUIDS]: Remove conditional code.
64691         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
64692         <kernel-features.h>.
64693         [__ASSUME_32BITUIDS]: Make code unconditional.
64694         [!__ASSUME_32BITUIDS]: Remove conditional code.
64695         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
64696         <kernel-features.h>.
64697         [__ASSUME_32BITUIDS]: Make code unconditional.
64698         [!__ASSUME_32BITUIDS]: Remove conditional code.
64699         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
64700         <kernel-features.h>.
64701         [__ASSUME_32BITUIDS]: Make code unconditional.
64702         [!__ASSUME_32BITUIDS]: Remove conditional code.
64703         * sysdeps/unix/sysv/linux/kernel-features.h
64704         (__ASSUME_SETRESUID_SYSCALL): Remove.
64705         (__ASSUME_SETRESGID_SYSCALL): Likewise.
64706         (__ASSUME_32BITUIDS): Likewise.
64707         (__ASSUME_LDT_WORKS): Likewise.
64708         (__ASSUME_O_DIRECTORY): Likewise.
64709         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
64710         architecture but not kernel version.
64711         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
64712         (__ASSUME_MMAP2_SYSCALL): Likewise.
64713         (__ASSUME_STAT64_SYSCALL): Likewise.
64714         (__ASSUME_IPC64): Likewise.
64715         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
64716         <kernel-features.h>.
64717         [__ASSUME_32BITUIDS]: Make code unconditional.
64718         [!__ASSUME_32BITUIDS]: Remove conditional code.
64719         * sysdeps/unix/sysv/linux/opendir.c: Do not include
64720         <kernel-features.h>.
64721         [__ASSUME_O_DIRECTORY]: Make code unconditional.
64722         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
64723         132096]: Remove conditional code.
64724         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
64725         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
64726         <kernel-features.h>.
64727         [__ASSUME_32BITUIDS]: Make code unconditional.
64728         [!__ASSUME_32BITUIDS]: Remove conditional code.
64729         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
64730         <kernel-features.h>.
64731         [__ASSUME_32BITUIDS]: Make code unconditional.
64732         [!__ASSUME_32BITUIDS]: Remove conditional code.
64733         * sysdeps/unix/sysv/linux/setegid.c: Do not include
64734         <kernel-features.h>.
64735         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
64736         unconditional.
64737         (__setresgid): Do not declare.
64738         [__ASSUME_32BITUIDS]: Make code unconditional.
64739         [!__ASSUME_32BITUIDS]: Remove conditional code.
64740         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
64741         <kernel-features.h>.
64742         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
64743         unconditional.
64744         (__setresuid): Do not declare.
64745         [__ASSUME_32BITUIDS]: Make code unconditional.
64746         [!__ASSUME_32BITUIDS]: Remove conditional code.
64747         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
64748         <kernel-features.h>.
64749         [__ASSUME_32BITUIDS]: Make code unconditional.
64750         [!__ASSUME_32BITUIDS]: Remove conditional code.
64751         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
64752         <kernel-features.h>.
64753         [__ASSUME_32BITUIDS]: Make code unconditional.
64754         [!__ASSUME_32BITUIDS]: Remove conditional code.
64755
64756 2012-05-25  Richard Henderson  <rth@twiddle.net>
64757
64758         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
64759         dl_hwcap to ifunc resolver.
64760         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
64761         elf_ifunc_invoke.
64762         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
64763         dl_hwcap to ifunc resolver.
64764         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
64765
64766 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
64767
64768         [BZ #14153]
64769         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
64770         for |x| <= 2**-26, not 2**-57.
64771         * math/libm-test.inc (acos_test): Do not allow spurious underflow
64772         exception.
64773
64774 2012-05-24  Jeff Law  <law@redhat.com>
64775
64776         * stdio-common/Makefile (tests): Add bug25.
64777         * stdio-common/bug25.c: New test.
64778
64779 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
64780
64781         [BZ #13576]
64782         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
64783         multiple of MALLOC_ALIGNMENT in size.
64784         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
64785
64786 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
64787
64788         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
64789         Require >= 256.
64790         (FILENAME_MAX): Use macro-int-constant.
64791         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
64792         (_IOFBF): Use macro-int-constant.
64793         (_IOLBF): Likewise.
64794         (_IONBF): Likewise.
64795         (SEEK_CUR): Likewise.
64796         (SEEK_END): Likewise.
64797         (SEEK_SET): Likewise.
64798         (TMP_MAX): Likewise.
64799         (EOF): Use macro-int-constant.  Require < 0.
64800         (NULL): Use macro-constant.  Require == 0.
64801         (stdin): Require type to be FILE *.
64802         (stdout): Likewise.
64803         (stderr): Likewise.
64804         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
64805         macro-int-constant.
64806         (EXIT_SUCCESS): Likewise.
64807         (NULL): Use macro-constant.  Require == 0.
64808         (RAND_MAX): Use macro-int-constant.
64809         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
64810         [C99-based standards] (strtof): Require function.
64811         [C99-based standards] (strtold): Likewise.
64812         [C99-based standards] (strtoll): Likewise.
64813         [C99-based standards] (strtoull): Likewise.
64814         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
64815         [ISO || ISO99 || ISO11] (limits.h): Likewise.
64816         [ISO || ISO99 || ISO11] (math.h): Likewise.
64817         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
64818         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
64819         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64820
64821 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
64822
64823         [BZ #14132]
64824         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
64825         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
64826         * intl/dgettext.c (DCGETTEXT): Likewise.
64827         * intl/gettext.c (DCGETTEXT): Likewise.
64828         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
64829         * posix/regex_internal.h (gettext): Likewise.
64830         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
64831         Remove declaration.
64832         * include/argz.h (__argz_count_internal)
64833         (__argz_stringify_internal): Remove declaration.
64834         (__argz_count, __argz_stringify): Declare hidden proto.
64835         * intl/dcgettext.c: Remove use of INTDEF.
64836         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
64837         * string/argz-stringify.c: Likewise.
64838         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
64839         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
64840         Declare hidden proto.
64841         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
64842         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
64843         Declare hidden proto.
64844         * include/stdio.h (__asprintf_internal): Don't declare.
64845         (__asprintf): Don't define as macro.  Declare hidden proto.
64846         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
64847         (__fsetlocking): Declare hidden proto.
64848         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
64849         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
64850         hidden proto.
64851         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
64852         (_IO_setlinebuf): Remove use of INTUSE.
64853         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
64854         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
64855         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
64856         Remove declaration.
64857         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
64858         (_IO_do_flush): Remove use of INTUSE.
64859         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
64860         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
64861         (_IO_adjust_column, _IO_least_wmarker)
64862         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
64863         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
64864         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
64865         (_IO_default_doallocate, _IO_wdefault_doallocate)
64866         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
64867         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
64868         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
64869         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
64870         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
64871         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
64872         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
64873         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
64874         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
64875         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
64876         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
64877         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
64878         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
64879         proto.
64880         (_IO_flush_all_internal, _IO_adjust_column_internal)
64881         (_IO_default_uflow_internal, _IO_default_finish_internal)
64882         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
64883         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
64884         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
64885         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
64886         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
64887         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
64888         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
64889         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
64890         (_IO_file_close_internal, _IO_file_close_it_internal)
64891         (_IO_file_underflow_internal, _IO_file_overflow_internal)
64892         (_IO_file_init_internal, _IO_file_attach_internal)
64893         (_IO_file_fopen_internal, _IO_file_read_internal)
64894         (_IO_file_sync_internal, _IO_file_seek_internal)
64895         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
64896         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
64897         (_IO_str_underflow_internal, _IO_str_overflow_internal)
64898         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
64899         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
64900         (_IO_list_all_internal, _IO_link_in_internal)
64901         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
64902         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
64903         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
64904         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
64905         (_IO_do_write_internal, _IO_padn_internal)
64906         (_IO_getline_info_internal, _IO_getline_internal)
64907         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
64908         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
64909         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
64910         (_IO_vfscanf_internal, _IO_vfprintf_internal)
64911         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
64912         (_IO_init_internal, _IO_un_link_internal): Don't declare.
64913         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
64914         with libc_hidden_ver, remove use of INTUSE.
64915         * libio/genops.c: Likewise.
64916         * libio/freopen.c: Likewise.
64917         * libio/freopen64.c: Likewise.
64918         * libio/iofclose.c: Likewise.
64919         * libio/iofdopen.c: Likewise.
64920         * libio/iofflush.c: Likewise.
64921         * libio/iofflush_u.c: Likewise.
64922         * libio/iofgets.c: Likewise.
64923         * libio/iofgets_u.c: Likewise.
64924         * libio/iofopen.c: Likewise.
64925         * libio/iofopncook.c: Likewise.
64926         * libio/iofread.c: Likewise.
64927         * libio/iofread_u.c: Likewise.
64928         * libio/ioftell.c: Likewise.
64929         * libio/iofwrite.c: Likewise.
64930         * libio/iogetline.c: Likewise.
64931         * libio/iogets.c: Likewise.
64932         * libio/iogetwline.c: Likewise.
64933         * libio/iopadn.c: Likewise.
64934         * libio/iopopen.c: Likewise.
64935         * libio/ioseekoff.c: Likewise.
64936         * libio/ioseekpos.c: Likewise.
64937         * libio/iosetbuffer.c: Likewise.
64938         * libio/iosetvbuf.c: Likewise.
64939         * libio/ioungetc.c: Likewise.
64940         * libio/ioungetwc.c: Likewise.
64941         * libio/iovdprintf.c: Likewise.
64942         * libio/iovsprintf.c: Likewise.
64943         * libio/iovsscanf.c: Likewise.
64944         * libio/memstream.c: Likewise.
64945         * libio/obprintf.c: Likewise.
64946         * libio/oldfileops.c: Likewise.
64947         * libio/oldiofclose.c: Likewise.
64948         * libio/oldiofdopen.c: Likewise.
64949         * libio/oldiofopen.c: Likewise.
64950         * libio/oldiopopen.c: Likewise.
64951         * libio/oldstdfiles.c: Likewise.
64952         * libio/putc.c: Likewise.
64953         * libio/setbuf.c: Likewise.
64954         * libio/setlinebuf.c: Likewise.
64955         * libio/stdfiles.c: Likewise.
64956         * libio/strops.c: Likewise.
64957         * libio/vasprintf.c: Likewise.
64958         * libio/vscanf.c: Likewise.
64959         * libio/vsnprintf.c: Likewise.
64960         * libio/vswprintf.c: Likewise.
64961         * libio/wfiledoalloc.c: Likewise.
64962         * libio/wfileops.c: Likewise.
64963         * libio/wgenops.c: Likewise.
64964         * libio/wmemstream.c: Likewise.
64965         * libio/wstrops.c: Likewise.
64966         * libio/__fpurge.c: Likewise.
64967         * libio/__fsetlocking.c: Likewise.
64968         * assert/assert.c: Likewise.
64969         * debug/fgets_chk.c: Likewise.
64970         * debug/fgets_u_chk.c: Likewise.
64971         * debug/fread_chk.c: Likewise.
64972         * debug/fread_u_chk.c: Likewise.
64973         * debug/gets_chk.c: Likewise.
64974         * debug/obprintf_chk.c: Likewise.
64975         * debug/vasprintf_chk.c: Likewise.
64976         * debug/vdprintf_chk.c: Likewise.
64977         * debug/vsnprintf_chk.c: Likewise.
64978         * debug/vsprintf_chk.c: Likewise.
64979         * malloc/mtrace.c: Likewise.
64980         * misc/error.c: Likewise.
64981         * misc/syslog.c: Likewise.
64982         * stdio-common/asprintf.c: Likewise.
64983         * stdio-common/fxprintf.c: Likewise.
64984         * stdio-common/getw.c: Likewise.
64985         * stdio-common/isoc99_fscanf.c: Likewise.
64986         * stdio-common/isoc99_scanf.c: Likewise.
64987         * stdio-common/isoc99_vfscanf.c: Likewise.
64988         * stdio-common/isoc99_vscanf.c: Likewise.
64989         * stdio-common/isoc99_vsscanf.c: Likewise.
64990         * stdio-common/printf-prs.c: Likewise.
64991         * stdio-common/printf_fp.c: Likewise.
64992         * stdio-common/printf_fphex.c: Likewise.
64993         * stdio-common/printf_size.c: Likewise.
64994         * stdio-common/putw.c: Likewise.
64995         * stdio-common/scanf.c: Likewise.
64996         * stdio-common/sprintf.c: Likewise.
64997         * stdio-common/tmpfile.c: Likewise.
64998         * stdio-common/vfprintf.c: Likewise.
64999         * stdio-common/vfscanf.c: Likewise.
65000         * stdlib/strfmon_l.c: Likewise.
65001         * sunrpc/openchild.c: Likewise.
65002         * sunrpc/xdr_stdio.c: Likewise.
65003         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
65004         * sysdeps/mach/hurd/tmpfile.c: Likewise.
65005
65006 2012-05-24  Roland McGrath  <roland@hack.frob.com>
65007
65008         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
65009
65010         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
65011         in the third column, to generate for the shared library an IFUNC
65012         that uses _dl_vdso_vsym.
65013         * Makerules (COMPILE.c, compile-stdin.c): New variables.
65014         * Makeconfig (object-suffixes-noshared): New variable.
65015
65016         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
65017         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
65018         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
65019         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
65020
65021         [BZ #14132]
65022         * include/sys/time.h (__gettimeofday): Remove macro.
65023         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
65024         * time/gettimeofday.c (__gettimeofday): Remove #undef.
65025         Remove INTDEF.
65026         (__gettimeofday): Add libc_hidden_def.
65027         (gettimeofday): Add libc_hidden_weak.
65028         * sysdeps/mach/gettimeofday.c: Likewise.
65029         * sysdeps/posix/gettimeofday.c: Likewise.
65030         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
65031         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
65032         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
65033         (__gettimeofday_internal): Remove strong_alias.
65034         (__gettimeofday): Add libc_hidden_def.
65035         (gettimeofday): Add libc_hidden_weak.
65036         * sysdeps/unix/syscalls.list (gettimeofday):
65037         Remove __gettimeofday_internal alias.
65038
65039 2012-05-24  Daniel Jacobowitz  <drow@false.org>
65040             H.J. Lu  <hongjiu.lu@intel.com>
65041
65042         [BZ #12495]
65043         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
65044         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
65045         (largebin_index_32_big): New.
65046         (largebin_index): Use it for 16-byte alignment.
65047         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
65048         correction with front_misalign.
65049
65050 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
65051
65052         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
65053         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
65054         Likewise.
65055         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
65056         Likewise.
65057         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
65058         Likewise.
65059         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
65060         Likewise.
65061         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
65062         Likewise.
65063         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
65064         Likewise.
65065         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
65066         Likewise.
65067         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
65068         Likewise.
65069         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
65070         Likewise.
65071         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
65072         Likewise.
65073         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
65074         Likewise.
65075         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
65076         Likewise.
65077
65078         * scripts/data/c++-types-x32-linux-gnu.data: New file.
65079         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
65080
65081 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
65082
65083         [BZ #10846]
65084         [BZ #14036]
65085         * math/libm-test.inc (exp_test): Add test from bug 14036.
65086         (pow_test): Add test from bug 10846.
65087
65088         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
65089         and other flags.
65090         (special_function): Do not include flags in test name.
65091         (parse_args): Likewise.
65092         * sysdeps/i386/fpu/libm-test-ulps: Update.
65093         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
65094         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
65095         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
65096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65097
65098         * math/gen-libm-test.pl (%beautify): Add entries for underflow
65099         exceptions.
65100         * math/libm-test.inc ("Philosophy"): Update comment about
65101         exception testing.
65102         (UNDERFLOW_EXCEPTION): New macro.
65103         (UNDERFLOW_EXCEPTION_OK): Likewise.
65104         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
65105         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
65106         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
65107         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
65108         (INVALID_EXCEPTION_OK): Update value.
65109         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
65110         (OVERFLOW_EXCEPTION_OK): Likewise.
65111         (IGNORE_ZERO_INF_SIGN): Likewise.
65112         (test_exceptions): Handle underflow exceptions.
65113         (acos_test): Update for underflow exception expectations.
65114         (cexp_test): Likewise.
65115         (clog_test): Likewise.
65116         (clog10_test): Likewise.
65117         (csqrt_test): Likewise.
65118         (ctan_test): Likewise.
65119         (ctanh_test): Likewise.
65120         (exp_test): Likewise.
65121         (exp10_test): Likewise.
65122         (exp2_test): Likewise.
65123         (expm1_test): Likewise.
65124         (fma_test): Likewise.
65125         (j0_test): Likewise.
65126         (jn_test): Likewise.
65127         (nexttoward_test): Likewise.
65128         (pow_test): Likewise.
65129         (scalbn_test): Likewise.
65130         (scalbln_test): Likewise.
65131         (tan_test): Likewise.
65132         (y1_test): Likewise.
65133         * sysdeps/i386/fpu/libm-test-ulps: Update.
65134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65135
65136 2012-05-23  David S. Miller  <davem@davemloft.net>
65137
65138         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
65139         (__libc_sigaction): Remove unused local variables.
65140
65141 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
65142
65143         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
65144
65145 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
65146
65147         mktime: avoid signed integer overflow
65148         * time/mktime.c (__mktime_internal): Do not mishandle the case
65149         where diff == INT_MIN.
65150
65151         mktime: simplify computation of average
65152         * time/mktime.c (ranged_convert): Use new time_t_avg function
65153         instead of rolling our own (probably-slower) code.
65154
65155         mktime: do not assume signed right shift propagates sign bit
65156         * time/mktime.c (isdst_differ): New static function.
65157         (__mktime_internal): No need to normalize tm_isdst now.
65158         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
65159         tm_isdst values.
65160
65161         mktime: merge another wrapv change from gnulib
65162         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
65163         from some compilers.
65164
65165         mktime: remove incorrect attempt at unusual arithmetics
65166         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
65167         The code didn't really work on such machines anyway.
65168         (TYPE_MINIMUM): Assume two's complement.
65169         (twos_complement_arithmetic): Verify that long_int and time_t
65170         are two's complement (or unsigned, in the latter case).
65171
65172         mktime: check signed shifts on long_int and time_t, too
65173         * time/mktime.c (SHR): Check that shifts work as desired
65174         on the types long_int and time_t too, as SHR is used on
65175         such types.
65176
65177         mktime: do not assume 'long' is wide enough
65178         * time/mktime.c (verify): Move decl up.
65179         (long_int): New type.
65180         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
65181         to remove assumption in the code that 'long' is wide enough to
65182         store year values.  This assumption is not true on x32 and on
65183         some non-glibc platforms.
65184
65185         mktime: merge wrapv change from gnulib
65186         * time/mktime.c (WRAPV): New macro.
65187         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
65188         (guess_time_tm, __mktime_internal): Do not assume that signed
65189         integer overflow wraps around; modern compilers generate code
65190         where this assumption is no longer valid.
65191
65192 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
65193
65194         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
65195         Replace "jmp L(pseudo_end)" with "ret".
65196         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
65197         Likewise.
65198
65199 2012-05-23  Andreas Jaeger  <aj@suse.de>
65200
65201         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
65202         * sysdeps/unix/sysv/linux/poll.c: Remove file.
65203
65204 2012-05-23  Andreas Jaeger  <aj@suse.de>
65205             Maximilian Attems  <max@stro.at>
65206
65207         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
65208         New macros.
65209
65210 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
65211
65212         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
65213         code so that pseudo_end is just ret and the stack pointer is
65214         correct also for static library in error case.
65215
65216 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
65217
65218         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
65219         move to syscalls.list.
65220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
65221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
65222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
65223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
65224
65225         * manual/install.texi (Running make install): Do not mention Linux
65226         kernel version for which pt_chown is not needed.
65227         (Linux): Do not mention problems with nscd with 2.0 kernels.
65228         * INSTALL: Regenerated.
65229
65230 2012-05-23  Andreas Jaeger  <aj@suse.de>
65231
65232         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
65233         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
65234         macro.
65235         * sysdeps/unix/sysv/linux/s390/bits/mman.h
65236         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65237         * sysdeps/unix/sysv/linux/sh/bits/mman.h
65238         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65239         * sysdeps/unix/sysv/linux/i386/bits/mman.h
65240         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65241         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
65242         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65243         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
65244         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
65245         * sysdeps/unix/sysv/linux/bits/in.h
65246         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
65247
65248 2012-05-22  Roland McGrath  <roland@hack.frob.com>
65249
65250         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
65251         (PREPARE_VERSION): Just use assert instead, it will be elided
65252         under [NDEBUG] anyway.
65253
65254 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
65255
65256         * sysdeps/unix/sysv/linux/Makefile: Include
65257         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
65258         (sysdep_routines): Remove sysctl.
65259         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
65260         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
65261         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
65262         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
65263         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
65264
65265 2012-05-22  Andreas Jaeger  <aj@suse.de>
65266
65267         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
65268         that pseudo_end is just ret and the stack pointer is correct also
65269         for static library in error case.
65270
65271 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
65272
65273         [BZ #14122]
65274         * nss/nsswitch.c (defconfig_entries): New variable.
65275         (__nss_database_lookup): Don't leak defconfig entries.
65276         (nss_parse_service_list): Don't leak on error paths.
65277         (free_database_entries): New function.
65278         (free_defconfig): New function.
65279         (free_mem): Move common code to free_database_entries.
65280
65281 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
65282
65283         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
65284         Add arch_prctl.
65285         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
65286
65287         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
65288         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
65289         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
65290         New macro.
65291         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
65292         (INTERNAL_SYSCALL_TYPES): Likewise.
65293         (LOAD_ARGS_TYPES_[1-6]): Likewise.
65294         (LOAD_REGS_TYPES_[1-6]): Likewise.
65295         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
65296         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
65297
65298 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65299
65300         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
65301         copysignl for GLIBC_2_0.
65302         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
65303         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
65304         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
65305         logbl for GLIBC_2_0.
65306         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
65307         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
65308
65309 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
65310
65311         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
65312         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
65313
65314         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
65315         Use "neg %eax".
65316
65317         * time/mktime.c: Update copyright years.
65318
65319 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65320
65321         mktime: merge comment-quoting-style change from gnulib
65322         * time/mktime.c: Quote 'like this' in comments.
65323         The GNU coding standards suggest that we no longer quote `like this',
65324         as "`" and "'" are typically rendered asymmetrically nowadays.
65325         The typical gnulib style is to quote 'like this' when quoting
65326         code, and "like this" when quoting English.
65327
65328         * time/mktime.c (compile-command): Add "-I.".
65329
65330         mktime: merge mktime-internal.h change from gnulib
65331         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
65332
65333         mktime: merge time_r change from gnulib
65334         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
65335
65336         mktime: merge DEBUG change from gnulib
65337         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
65338         case system <time.h> has a #define.
65339
65340         mktime: merge <sys/types.h> change from gnulib
65341         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
65342         since <time.t> is now guaranteed to define time_t.
65343
65344         mktime: merge HAVE_CONFIG_H change from gnulib
65345         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
65346
65347 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
65348
65349         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
65350         Use "neg %eax".
65351
65352         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
65353         __rlim_t cast.
65354         (struct rusage): Use anonymous union to pad each field to
65355         __syscall_slong_t.
65356
65357 2012-05-21  David S. Miller  <davem@davemloft.net>
65358
65359         * Makefules (o-iterator): Remove .s cases.
65360         (compile-command.s): Delete.
65361         (COMPILE.s): Delete.
65362         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
65363
65364 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
65365
65366         * configure.in (libc_cv_predef_stack_protector): Only consider
65367         "foobar" and "__stack_chk_fail" lines in libc_undefs.
65368         * configure: Regenerated.
65369
65370 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
65371
65372         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
65373         New macro.  Use R*LP on int and pointer.
65374         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
65375         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
65376         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
65377         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
65378
65379         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
65380         [__WORDSIZE_TIME64_COMPAT32] instead of
65381         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
65382         (struct utmp): Likewise.
65383         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
65384         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
65385         Renamed to ...
65386         (__WORDSIZE_TIME64_COMPAT32): This.
65387         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
65388         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
65389         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
65390         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
65391         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
65392         (__WORDSIZE_TIME64_COMPAT32): New macro.
65393
65394 2012-05-21  Andreas Jaeger  <aj@suse.de>
65395
65396         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
65397         only if [SHARED]. Add prototype for __wcschr_ia32.
65398
65399 2012-05-21  Roland McGrath  <roland@hack.frob.com>
65400
65401         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
65402         of %rbp unmolested in the jmp_buf while mangling the low bits.
65403         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
65404         unmolested high bits of %rbp while demangling the low bits.
65405         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
65406
65407 2012-05-21  Andreas Jaeger  <aj@suse.de>
65408
65409         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
65410         * sunrpc/svc_simple.c: Use it for registerrpc.
65411         * sunrpc/xcrypt.c: Use it for passwd2des.
65412
65413         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
65414
65415 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
65416
65417         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
65418         Don't define if [__SYSCALL_WORDSIZE != 32].
65419         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
65420         New macro.
65421
65422 2012-05-21  Bruno Haible  <bruno@clisp.org>
65423             Andreas Jaeger  <aj@suse.de>
65424
65425         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
65426         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
65427         inptr and inend for must_buffer_ch.
65428         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
65429         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
65430         * stdio-common/Makefile (tests): Remove bug15.
65431         (bug15-ENV): Remove macro.
65432         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
65433         anymore.
65434
65435 2012-05-19  Andreas Jaeger  <aj@suse.de>
65436             Roland McGrath  <roland@hack.frob.com>
65437
65438         * manual/contrib.texi: Completely rewritten. It contains now an
65439         alphabetical list of contributors and their contributions.
65440
65441 2012-05-21  Richard Henderson  <rth@twiddle.net>
65442
65443         * misc/getauxval.c (__getauxval): Use unsigned long int.
65444         * misc/sys/auxv.h: Include <sys/cdefs.h>.
65445         (getauxval): Use unsigned long int.
65446
65447 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
65448
65449         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
65450
65451 2012-05-21  Roland McGrath  <roland@hack.frob.com>
65452
65453         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
65454         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
65455         __alignof__ (long double).
65456
65457 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65458
65459         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65460
65461 2012-05-20  Richard Henderson  <rth@twiddle.net>
65462
65463         * misc/getauxval.c: New file.
65464         * misc/sys/auxv.h: New file.
65465         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
65466         (routines): Add getauxval.
65467         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
65468         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
65469         * elf/dl-sysdep.c (_dl_auxv): Remove.
65470         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
65471         * elf/dl-support.c (_dl_auxv): New variable.
65472         (_dl_aux_init): Initialize it.
65473         * manual/startup.texi (Auxiliary Vector): New node.
65474         * sysdeps/generic/bits/hwcap.h: New file.
65475         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
65476         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
65477         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
65478         * sysdeps/sparc/sysdep.h: ... here.  Include it.
65479         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
65480         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
65481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65482         Update.
65483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
65484         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
65485         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
65486         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
65487         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
65488         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
65489         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
65490         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
65491
65492 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65493
65494         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65495
65496 2012-05-19  David S. Miller  <davem@davemloft.net>
65497
65498         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65499
65500 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
65501
65502         [BZ #14123]
65503         * math/s_ccosh.c: Include <float.h>
65504         (__ccosh): Avoid internal overflow calculating sinh and cosh
65505         values before multiplying by sin and cos values.
65506         * math/s_ccoshf.c: Likewise.
65507         * math/s_ccoshl.c: Likewise.
65508         * math/s_csin.c: Likewise.
65509         * math/s_csinf.c: Likewise.
65510         * math/s_csinl.c: Likewise.
65511         * math/s_csinh.c: Likewise.
65512         * math/s_csinhf.c: Likewise.
65513         * math/s_csinhl.c: Likewise.
65514         * math/libm-test.inc (ccos_test): Add more tests.
65515         (ccosh_test): Likewise.
65516         (csin_test): Likewise.
65517         (csinh_test): Likewise.
65518         * sysdeps/i386/fpu/libm-test-ulps: Update.
65519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65520
65521 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
65522
65523         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
65524         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
65525
65526         * sysdeps/x86_64/x32/_itoa.h: Add comment.
65527
65528 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
65529
65530         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
65531         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
65532         * sysdeps/powerpc/soft-fp/Versions: Likewise.
65533         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
65534         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
65535         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
65536         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
65537         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
65538         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
65539         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
65540         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
65541         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
65542         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
65543         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
65544         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
65545         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
65546         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
65547         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
65548         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
65549         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
65550         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
65551         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
65552         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
65553         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
65554         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
65555         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
65556         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
65557         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
65558         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
65559         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
65560         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
65561
65562 2012-05-18  Andreas Jaeger  <aj@suse.de>
65563
65564         * csu/.gitignore: Delete.
65565
65566 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
65567
65568         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
65569         (timex): Use __syscall_slong_t.
65570
65571 2012-05-18  Andreas Jaeger  <aj@suse.de>
65572             Carlos O'Donell  <carlos_odonell@mentor.com>
65573
65574         * manual/install.texi (Configuring and compiling): Update
65575         description about files modified in the source directory.
65576         * INSTALL: Regenerated.
65577
65578 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
65579
65580         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
65581         value.  Use "or" to set return value to -1.
65582         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
65583         negate return value.
65584
65585 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65586
65587         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
65588         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
65589         failure if the compiler has Graphite support disabled.
65590         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
65591         Likewise.
65592         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
65593         (CFLAGS-memmove.c): Likewise.
65594         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
65595         Likewise.
65596
65597 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
65598
65599         * sysdeps/x86_64/x32/_itoa.h: New file.
65600
65601         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
65602         getdents system call only if kernel and user dirents have the
65603         same d_ino and d_off.
65604
65605         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
65606         LLONG_MAX != LONG_MAX.
65607         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65608         (_fitoa_word): Likewise.
65609
65610         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
65611         years.
65612         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
65613         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
65614         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
65615
65616         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
65617         include <bits/wordsize.h>.  Check __x86_64__ instead of
65618         __WORDSIZE.
65619         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
65620         if __x86_64__ is defined.  Use anonymous union on fpstate.
65621
65622         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
65623         anonymous union.
65624
65625 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
65626
65627         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
65628         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
65629         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
65630         Refer to _rtld_local_ro instead of _rtld_global_ro.
65631         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
65632         Likewise.
65633         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
65634         Likewise.
65635         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
65636         Likewise.
65637         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
65638         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
65639         of _rtld_global, and rtld_progname instead of _dl_argv[0].
65640
65641         [BZ #10882]
65642         * sysdeps/powerpc/powerpc32/dl-machine.c
65643         (__elf_machine_runtime_setup) [PROF]: Don't reference
65644         _dl_prof_resolve.
65645
65646 2012-05-18  Andreas Jaeger  <aj@suse.de>
65647
65648         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
65649         function only available for GCCs before 3.4 since GCC 3.4
65650         introduced a builtin.
65651         (lrint): Likewise.
65652         (llrintf): Likewise.
65653         (llrint): Likewise.
65654         (fmaxf): Likewise.
65655         (fmax): Likewise.
65656         (fminf): Likewise.
65657         (fmin): Likewise.
65658         (rint): Likewise.
65659         (rintf): Likewise.
65660         (nearbyint): Likewise.
65661         (nearbyintf): Likewise.
65662         (ceil): Likewise.
65663         (ceilf): Likewise.
65664         (floor): Likewise.
65665         (floorf): Likewise.
65666
65667 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
65668
65669         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
65670         on both fields and cast pointer to __syscall_ulong_t.
65671
65672         * bits/types.h (__fsword_t): New type.
65673         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
65674         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
65675         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65676         (__FSWORD_T_TYPE): Likewise.
65677         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65678         (__FSWORD_T_TYPE): Likewise.
65679         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65680         (__FSWORD_T_TYPE): Likewise.
65681         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
65682         (__FSWORD_T_TYPE): Likewise.
65683         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
65684         __SWORD_TYPE with __fsword_t.
65685         (statfs64): Likewise.
65686
65687 2012-05-17  David S. Miller  <davem@davemloft.net>
65688
65689         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
65690
65691 2012-05-17  Andreas Jaeger  <aj@suse.de>
65692
65693         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
65694         warning.
65695
65696 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
65697
65698         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
65699
65700 2012-05-17  Andreas Jaeger  <aj@suse.de>
65701
65702         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
65703         when it is used.
65704
65705 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
65706
65707         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
65708
65709 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
65710
65711         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
65712         * sysdeps/x86_64/tst-mallocalign1.c: New file.
65713
65714 2012-05-17  Andreas Jaeger  <aj@suse.de>
65715             Carlos O'Donell  <carlos_odonell@mentor.com>
65716
65717         [BZ #14059]
65718         * sysdeps/x86_64/multiarch/init-arch.h
65719         (bit_YMM_Usable): Rename to...
65720         (bit_AVX_Usable): ... this.
65721         (bit_FMA4_Usable): New macro.
65722         (bit_XMM_state): New macro.
65723         (bit_YMM_state): New macro.
65724         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
65725         [__ASSEMBLER__] (index_AVX_Usable): ... this.
65726         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
65727         (CPUID_OSXSAVE): New macro.
65728         (CPUID_AVX): New macro.
65729         (CPUID_FMA4): New macro.
65730         (index_YMM_Usable): Rename to...
65731         (index_AVX_Usable): ... this.
65732         (HAS_AVX): Use HAS_ARCH_FEATURE.
65733         (HAS_FMA4): Likewise.
65734         (HAS_YMM_USABLE): Remove.
65735         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
65736         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
65737         are present.
65738         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
65739         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
65740         * sysdeps/x86_64/multiarch/Makefile: Likewise.
65741         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
65742         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
65743
65744 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
65745
65746         * math/libm-test.c: Support platforms without multiple rounding modes.
65747         * math/bug-nextafter.c: Support platforms without FP exceptions.
65748         * math/bug-nexttoward.c: Likewise.
65749         * math/test-fenv.c: Likewise.
65750         * math/test-misc.c: Likewise.
65751         * stdlib/bug-getcontext.c: Likewise.
65752
65753 2012-05-17  Andreas Jaeger  <aj@suse.de>
65754
65755         * manual/examples/search.c (critter_cmp): Change signature to
65756         avoid warnings.
65757         * manual/string.texi (Collation Functions): Likewise.
65758
65759 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
65760
65761         * bits/types.h: Fold copyright years.
65762         * bits/typesizes.h: Likewise.
65763         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
65764         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
65765         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
65766         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
65767         * time/time.h: Likewise.
65768
65769 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
65770
65771         [BZ #208]
65772         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
65773         in instead of returning them.  Return void.
65774         (__libc_mallinfo): Accumulate over all arenas.
65775         (__malloc_stats): Adjust for change in int_mallinfo interface.
65776
65777 2012-05-16  Roland McGrath  <roland@hack.frob.com>
65778
65779         [BZ #10375]
65780         * configure.in (NM): Add AC_CHECK_TOOL for it.
65781         (libc_extra_cflags): New substituted variable.
65782         Check for -fstack-protector being used implicitly.
65783         * configure: Regenerated.
65784         * config.make.in (config-extra-cflags): New variable,
65785         gets @libc_extra_cflags@.
65786         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
65787
65788         [BZ #10375]
65789         * configure.in: Check for _FORTIFY_SOURCE being predefined.
65790         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
65791         * configure: Regenerated.
65792         * config.make.in (CPPUNDEFS): New substituted variable.
65793         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
65794         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
65795         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
65796
65797 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
65798
65799         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
65800         (mq_attr): Use __syscall_slong_t.
65801
65802 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
65803
65804         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
65805         Check __x86_64__ instead of __WORDSIZE.
65806         (_STAT_VER_LINUX): Likewise.
65807         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
65808         __syscall_ulong_t and __syscall_slong_t.
65809         (stat64): Likewise.
65810
65811 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
65812
65813         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
65814
65815 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
65816
65817         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
65818
65819 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
65820
65821         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
65822         __syscall_ulong_t.
65823
65824         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
65825         include <bits/wordsize.h>.  Check __x86_64__ instead of
65826         __WORDSIZE.
65827         (greg_t): Use "__extension__ long long int" if __x86_64__ is
65828         defined.
65829         (mcontext_t): Replace "unsigned long" with "unsigned long long".
65830
65831         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
65832         include <bits/wordsize.h>.  Check __x86_64__ instead of
65833         __WORDSIZE.
65834         (user_regs_struct): Use "__extension__ unsigned long long"
65835         instead of "unsigned long" if __x86_64__ is defined.
65836         (user): Likewise.  Pad after pointer field if __ILP32__ is
65837         defined.
65838
65839 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
65840
65841         * configure.in (makeinfo): Require version 4.5 or later.  Allow
65842         versions 5 to 9.
65843         * configure: Regenerated.
65844         * manual/install.texi (texinfo): Increase version requirement to
65845         4.5 or later.
65846         * INSTALL: Regenerated.
65847
65848         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
65849
65850 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
65851
65852         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
65853
65854         * sysdeps/x86_64/x32/ffs.c: New file.
65855
65856         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
65857         __syscall_ulong_t.
65858         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
65859         defined.  Use __syscall_ulong_t.
65860         (shminfo): Use __syscall_ulong_t.
65861         (shm_info): Likewise.
65862
65863         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
65864         __syscall_ulong_t.
65865
65866         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
65867         <bits/wordsize.h>.
65868         (msgqnum_t): Use __syscall_ulong_t.
65869         (msglen_t): Likewise.
65870         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
65871         __syscall_ulong_t.
65872
65873         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
65874         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
65875
65876         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
65877
65878         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
65879         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
65880
65881         * sysvipc/sys/msg.h (msgbuf): Replace long int with
65882         __syscall_slong_t.
65883
65884         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
65885         include <bits/wordsize.h>.  Check __x86_64__ instead of
65886         __WORDSIZE.
65887
65888         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
65889         "unsigned long long int" if __x86_64__ is defined.
65890         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
65891
65892         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
65893         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
65894         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
65895
65896         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
65897         <stdint.h>.
65898         (GET_PC): Cast to uintptr_t first.
65899         (GET_FRAME): Likewise.
65900         (GET_STACK): Likewise.
65901
65902         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
65903         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
65904         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
65905         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
65906         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
65907         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
65908         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
65909         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
65910         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
65911         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
65912         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
65913         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
65914         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
65915         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
65916         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
65917         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
65918         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
65919         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
65920         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
65921         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
65922         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
65923         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
65924         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
65925         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
65926         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
65927         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
65928         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
65929         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
65930         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
65931
65932 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
65933
65934         * Makerules (+depfiles): Also collect depfiles from .oS in
65935         $(extra-objs).
65936         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
65937         .oS, $(libnldbl-routines)).
65938
65939         * Makerules (native-compile-mkdep-flags): Define.
65940         * sunrpc/Makefile (extra-objs): Add $(addprefix
65941         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
65942         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
65943         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
65944         calling $(make-target-directory).
65945
65946 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
65947
65948         * bits/types.h (__snseconds_t): Removed.
65949         * time/time.h (struct timespec): Replace __snseconds_t with
65950         __syscall_slong_t.
65951         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
65952         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
65953         Likewise.
65954         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65955         (__SNSECONDS_T_TYPE): Likewise.
65956         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65957         (__SNSECONDS_T_TYPE): Likewise.
65958         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65959         (__SNSECONDS_T_TYPE): Likewise.
65960
65961 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
65962
65963         * sysdeps/mach/hurd/bits/typesizes.h
65964         (__SYSCALL_SLONG_TYPE): New macro.
65965         (__SYSCALL_ULONG_TYPE): Likewise.
65966
65967 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
65968
65969         * bits/types.h (__syscall_slong_t): New type.
65970         (__syscall_ulong_t): Likewise.
65971
65972         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
65973         (__SYSCALL_ULONG_TYPE): Likewise.
65974         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65975         (__SYSCALL_SLONG_TYPE): Likewise.
65976         (__SYSCALL_ULONG_TYPE): Likewise.
65977         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65978         (__SYSCALL_SLONG_TYPE): Likewise.
65979         (__SYSCALL_ULONG_TYPE): Likewise.
65980         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65981         (__SYSCALL_SLONG_TYPE): Likewise.
65982         (__SYSCALL_ULONG_TYPE): Likewise.
65983
65984 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
65985
65986         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
65987         Add sigaltstack-offsets.sym.
65988         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
65989         <sigaltstack-offsets.h>.
65990         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
65991         longjmp_msg pointer.
65992         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
65993         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
65994         signal stack.
65995         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
65996
65997 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
65998
65999         * elf/stackguard-macros.h: Remove file.
66000         * sysdeps/generic/stackguard-macros.h: New file.
66001         * sysdeps/i386/stackguard-macros.h: Likewise.
66002         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
66003         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
66004         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
66005         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
66006         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
66007         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
66008         * sysdeps/x86_64/stackguard-macros.h: Likewise.
66009         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
66010         <elf/stackguard-macros.h>.
66011
66012         [BZ #14109]
66013         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
66014         __aligned__ in attribute.
66015         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
66016         (gregset_t): Likewise.
66017
66018 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66019
66020         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
66021         * sysdeps/x86_64/64/Implies-after: Here.  New file.
66022         * sysdeps/x86_64/x32/Implies-after: New file.
66023
66024 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66025
66026         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
66027         and access return value for _dl_profile_fixup.  Use R10_LP to
66028         load frame size.
66029
66030 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66031
66032         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
66033
66034 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66035
66036         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
66037         * sysdeps/x86_64/x32/sysdep.h: New file.
66038
66039 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66040
66041         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
66042         * sysdeps/x86_64/setjmp.S: Likewise.
66043
66044 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66045
66046         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
66047         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
66048         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
66049         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
66050         remove unused global constant.
66051
66052 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
66053
66054         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
66055         include of <not-cancel.h>.
66056
66057 2012-05-15  Roland McGrath  <roland@hack.frob.com>
66058
66059         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
66060
66061 2012-05-15  Jeff Law  <law@redhat.com>
66062             Andreas Jaeger  <aj@suse.de>
66063
66064         [BZ #13594]
66065         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
66066         out from...
66067         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
66068         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
66069         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
66070         code changing __hst_map_handle.map.
66071
66072 2012-05-15  Roland McGrath  <roland@hack.frob.com>
66073
66074         * configure.in (sysnames): Look for Implies-before and Implies-after
66075         files.
66076         * configure: Regenerated.
66077
66078 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66079
66080         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
66081         8-byte data alignment with LP_SIZE alignment.
66082
66083 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66084
66085         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
66086         into R10_LP.
66087
66088 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66089
66090         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
66091
66092 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66093
66094         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
66095         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
66096         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
66097         Likewise.
66098         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
66099
66100 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66101
66102         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
66103         (stackinfo_sub_sp): Likewise.
66104
66105 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66106
66107         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
66108         RAX_LP.
66109
66110 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66111
66112         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
66113         into R*_LP.
66114
66115 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66116
66117         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
66118         sizes into R*_LP.
66119
66120 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66121
66122         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
66123
66124 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66125
66126         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
66127         into R11_LP and load __x86_64_shared_cache_size_half into
66128         R8_LP.
66129
66130 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
66131
66132         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
66133         R8_LP.
66134
66135 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66136
66137         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
66138         logb for POWER7.
66139         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
66140         logbf for POWER7.
66141         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
66142         logbl for POWER7.
66143         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
66144         powerpc32/power7/fpu/s_logb.c via #include.
66145         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
66146         powerpc32/power7/fpu/s_logbf.c via #include.
66147         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
66148         powerpc32/power7/fpu/s_logbl.c via #include.
66149
66150 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
66151
66152         * README.libm: Remove file.
66153
66154 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66155
66156         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
66157         count for x32.  Use R*_LP and omit operand-size suffix.
66158
66159 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66160
66161         * shlib-versions: Move x86_64-.*-linux.* entries to ...
66162         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
66163         * sysdeps/x86_64/x32/shlib-versions: New file.
66164
66165 2012-05-14  Roland McGrath  <roland@hack.frob.com>
66166
66167         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
66168         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
66169         Use _dl_fatal_printf instead.
66170
66171 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
66172
66173         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
66174         set if not set by the user.  Do not allow for being unset.
66175         * sysdeps/unix/sysv/linux/configure: Regenerated.
66176
66177 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66178
66179         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
66180         the `q' suffix from lea and replace .quad with ASM_ADDR.
66181
66182 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66183
66184         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
66185         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
66186         instead of $17.
66187         (PTR_DEMANGLE): Likewise.
66188
66189 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66190
66191         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
66192         (LP_OP): Likewise.
66193         (ASM_ADDR): Likewise.
66194         (RAX_LP): Likewise.
66195         (RBP_LP): Likewise.
66196         (RBX_LP): Likewise.
66197         (RCX_LP): Likewise.
66198         (RDI_LP): Likewise.
66199         (RSI_LP): Likewise.
66200         (RSP_LP): Likewise.
66201         (R8_LP): Likewise.
66202         (R9_LP): Likewise.
66203         (R10_LP): Likewise.
66204         (R10_LP): Likewise.
66205         (R11_LP): Likewise.
66206         (R12_LP): Likewise.
66207         (R13_LP): Likewise.
66208         (R14_LP): Likewise.
66209         (R15_LP): Likewise.
66210
66211 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66212
66213         * sysdeps/x86_64/x32/dl-machine.h: New file.
66214
66215 2012-05-14  Andreas Jaeger  <aj@suse.de>
66216
66217         * manual/Makefile (subdir): Remove export of subdir.
66218         (all): Remove target.
66219         (.PHONY): Remove all from list.
66220         (mkinstalldirs): Remove.
66221         (.PHONY): Remove installdirs from list.
66222         ($(inst_infodir)/libc.info): Use make-target-directory.
66223         (installdirs): Remove.
66224         (subdir_%): Remove.
66225         (glibc-targets): Remove.
66226         (lib): Remove.
66227         (stubs): Remove.
66228         ($(objpfx)stubs ../po/manual.pot): Remove.
66229         ($(objpfx)stamp%): Remove.
66230         (make-target-directory): Remove.
66231         (subdir_install): Remove.
66232         (routines): Remove.
66233         (aux): Remove.
66234         (sources): Remove.
66235         (objects): Remove.
66236         (headers): Remove.
66237
66238         [BZ #13750]
66239         * manual/.gitignore: Remove, it's not needed anymore.
66240         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
66241         all files in it.
66242         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
66243         directory.
66244         (texis): Renamed to $(objpfx)texis.
66245         (texis-path): New, contains path to generated files.
66246         (chapters.%): Use texis-path for complete path, add extra argument
66247         libc-texinfo.sh.
66248         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
66249         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
66250         (summary,texi, stamp-summary): Use complete path of
66251         files. Generate files in build dir.
66252         (dir-add.texi): Build in build dir.
66253         (libm-err.texi,stamp-libm-err): Likewise.
66254         (version.texi, stamp-version): Likewise.
66255         (.%c.texi): Likewise.
66256         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
66257         (mostlyclean): Remove target.
66258         (realclean): Remove target.
66259         (generated): Add new variable with contents from mostlyclean and
66260         realclean, remove entries duplicated in common-mostlyclean, add
66261         stamp-libm-err and stamp-version.
66262         (generated-dirs): Add libc directory.
66263         ($(inst_infodir)/libc.info): Install files from build dir.
66264
66265         * manual/install.texi (Configuring and compiling): Adjust since
66266         the info files are not part of the tar ball anymore.
66267
66268 2012-05-14  Andreas Jaeger  <aj@suse.de>
66269
66270         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
66271         variable.
66272
66273 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
66274
66275         [BZ #13717]
66276         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
66277         to 2.2.0 where earlier.
66278         * sysdeps/unix/sysv/linux/configure: Regenerated.
66279         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
66280         Remove conditional code.
66281         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
66282         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
66283         Remove conditional code.
66284         [!__NR_lchown]: Likewise.
66285         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
66286         [__NR_lchown]: Likewise.
66287         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
66288         comment referencing __ASSUME_LCHOWN_SYSCALL.
66289         * sysdeps/unix/sysv/linux/i386/sigaction.c
66290         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66291         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66292         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
66293         Remove conditional code.
66294         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
66295         (__protocol_available): Remove #if 0 code.
66296         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
66297         conditional code.
66298         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
66299         * sysdeps/unix/sysv/linux/kernel-features.h
66300         (__ASSUME_GETCWD_SYSCALL): Don't define.
66301         (__ASSUME_REALTIME_SIGNALS): Likewise.
66302         (__ASSUME_PREAD_SYSCALL): Likewise.
66303         (__ASSUME_PWRITE_SYSCALL): Likewise.
66304         (__ASSUME_POLL_SYSCALL): Likewise.
66305         (__ASSUME_LCHOWN_SYSCALL): Likewise.
66306         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
66307         non-SPARC.
66308         (__ASSUME_SIOCGIFNAME): Don't define.
66309         (__ASSUME_MSG_NOSIGNAL): Likewise.
66310         (__ASSUME_SENDFILE): Define unconditionally.
66311         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
66312         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
66313         conditional code.
66314         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
66315         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
66316         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
66317         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
66318         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
66319         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
66320         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
66321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
66322         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
66323         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
66325         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
66326         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
66328         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66329         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
66331         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66332         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
66334         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
66335         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
66337         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
66338         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
66340         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66341         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
66343         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66344         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66345         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
66346         Remove conditional code.
66347         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66348         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
66349         Remove conditional code.
66350         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66351         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
66352         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
66353         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
66354         Remove conditional code.
66355         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66356         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
66357         Remove conditional code.
66358         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66359         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
66360         Remove conditional code.
66361         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66362         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
66363         Remove conditional code.
66364         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
66365         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
66366         Remove conditional code.
66367         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66368         * sysdeps/unix/sysv/linux/sh/pwrite64.c
66369         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
66370         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
66371         * sysdeps/unix/sysv/linux/sigaction.c
66372         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66373         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66374         * sysdeps/unix/sysv/linux/sigpending.c
66375         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66376         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66377         * sysdeps/unix/sysv/linux/sigprocmask.c
66378         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66379         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66380         * sysdeps/unix/sysv/linux/sigsuspend.c
66381         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
66382         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
66383         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
66384         (__libc_missing_rt_sigs): Remove.
66385         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
66386         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
66387         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
66388         Remove conditional code.
66389         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
66390         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
66391         return 1.
66392         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
66393         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
66394         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
66395         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
66396
66397 2012-05-14  Andreas Jaeger  <aj@suse.de>
66398
66399         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
66400         it's not used in glibc.
66401         (__coshm1): Likewise.
66402         (__acosh1p): Likewise.
66403         (__sgn): Likewise.
66404
66405         * manual/string.texi (Copying and Concatenation): Add missing
66406         variable in concat example.
66407         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
66408
66409 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66410
66411         [BZ #14103]
66412         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
66413         __builtin_clzl with __builtin_clzll.
66414
66415 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
66416
66417         [BZ #14104]
66418         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
66419         libc_freeres_ptr.
66420
66421 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66422
66423         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
66424         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
66425         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
66426         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
66427
66428 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
66429
66430         * NEWS: Update ia64 info.
66431
66432 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
66433
66434         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
66435         used as bcopy.
66436
66437 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
66438
66439         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
66440         * sysdeps/unix/syscalls.list (dup3): Likewise.
66441         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
66442         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
66443
66444 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
66445
66446         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
66447         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
66448
66449 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
66450
66451         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
66452         thread pointer.
66453         (TLS_IE): Use mov/add instead of movq/addq to load thread
66454         pointer.
66455         (TLS_GD_PREFIX): New.
66456         (TLS_GD): Use it.
66457
66458 2012-05-11  David S. Miller  <davem@davemloft.net>
66459
66460         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
66461         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
66462         (_FPU_SETCW): Likewise.
66463
66464 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
66465
66466         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
66467         is 32-byte aligned.
66468
66469 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
66470
66471         [BZ #11837]
66472         * iconvdata/gb18030.c: Update tables.
66473         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
66474         characters specially.
66475         (BODY for TO_LOOP): Add encoding of missing ranges.
66476
66477 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
66478
66479         [BZ #13673]
66480         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
66481         * sysdeps/mach/hurd/dup3.c: Likewise.
66482         * sysdeps/mach/hurd/readlinkat.c: Likewise.
66483         * sysdeps/powerpc/memmove.c:: Likewise.
66484
66485 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
66486
66487         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
66488         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
66489
66490 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
66491
66492         * elf/elf.h (R_X86_64_RELATIVE64): New.
66493         (R_X86_64_NUM): Updated.
66494         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
66495         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
66496         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
66497         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
66498         tst-quad1pie tst-quad2pie
66499         (modules-names): Add tst-quadmod1 tst-quadmod2.
66500         ($(objpfx)tst-quad1): New dependency.
66501         ($(objpfx)tst-quad2): Likewise.
66502         ($(objpfx)tst-quad1pie): Likewise.
66503         ($(objpfx)tst-quad2pie): Likewise.
66504         * sysdeps/x86_64/tst-quad1.c: New file.
66505         * sysdeps/x86_64/tst-quad1pie.c: New file.
66506         * sysdeps/x86_64/tst-quad2.c: Likewise.
66507         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
66508         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
66509         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
66510         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
66511         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
66512
66513 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66514
66515         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
66516         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
66517         * streams/stropts.h (t_scalar_t): Define type.
66518
66519         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
66520         (_PATH_PRESERVE): Set to "/var/lib".
66521         (_PATH_RWHODIR): Set to "/var/spool/rwho".
66522
66523         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
66524         instead of int.
66525
66526         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
66527         if __dir_mkfile succeeded.
66528
66529         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
66530         checking for _hurd_dtablesize.  Unlock it right after having
66531         finished _hurd_dtable allocation.
66532
66533 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66534
66535         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
66536         * sysdeps/mach/hurd/configure: Regenerated.
66537         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
66538         special-casing to...
66539         * sysdeps/gnu/configure.in: ... this new file.
66540         * sysdeps/unix/sysv/linux/configure: Regenerated.
66541         * sysdeps/gnu/configure: New generated file.
66542
66543         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
66544         for Linux: use nsec instead of usec, as well as:
66545         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
66546         members of type struct timespec.
66547         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
66548         New macros.
66549         (struct stat64): Likewise.
66550         (_STATBUF_ST_NSEC): New macro.
66551         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
66552
66553         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
66554         __strtoul_internal rather than strtoul.
66555
66556 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
66557
66558         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
66559         and reject them.
66560
66561 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66562
66563         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
66564         which preserves existing values.
66565         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
66566
66567 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
66568
66569         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
66570         TIMEOUT values.  Return EINVAL for NFDS values either negative or
66571         greater than FD_SETSIZE.
66572
66573 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66574
66575         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
66576         allocated, call __vm_protect to finish enabling the existing space, and
66577         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
66578         allocate the remainder.
66579
66580 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
66581
66582         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
66583         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
66584
66585 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66586
66587         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
66588         sysdeps/mach/hurd/readlink.c.
66589
66590         * posix/tst-sysconf.c (posix_options): Only use
66591         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
66592         _POSIX_SYNCHRONIZED_IO when they are defined
66593         * sysdeps/mach/hurd/bits/posix_opt.h:
66594         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
66595         (_XOPEN_REALTIME): Undefine macro.
66596         (_XOPEN_REALTIME_THREADS): Undefine macro.
66597         (_XOPEN_SHM): Undefine macro.
66598         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
66599         macro to -1.
66600         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
66601         macro to -1.
66602         (_POSIX_ASYNC_IO): Undefine macro.
66603         (_POSIX_PRIORITIZED_IO): Undefine macro.
66604         (_POSIX_SPIN_LOCKS): Define macro to -1.
66605
66606         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
66607         SA_NODEFER, SA_RESETHAND.
66608         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
66609         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
66610         F_DUPFD_CLOEXEC.
66611
66612 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66613
66614         * elf/Makefile (pldd-modules): Define unconditionally.
66615
66616 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66617
66618         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
66619
66620 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66621
66622         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
66623         Return ENOENT when name is empty.
66624         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
66625
66626 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66627
66628         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
66629
66630         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
66631
66632 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66633
66634         Fix mlock in all cases except non-readable pages.
66635         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
66636         instead of VM_PROT_ALL as parameter to __vm_wire function.
66637
66638         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
66639         (__mkdir): When path is `/', just fail with EEXIST.
66640         * sysdeps/mach/hurd/mkdirat.c: Likewise.
66641
66642 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66643
66644         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
66645         <sys/uio.h> (for writev).
66646         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
66647         and <sys/param.h> (for MIN).
66648
66649 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
66650
66651         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
66652         REQUESTED_TIME.  Properly set the remaining time and return EINTR
66653         if interrupted.
66654
66655 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66656
66657         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
66658         Depend on against $(link-rpcuserlibs).
66659
66660 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66661
66662         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
66663         (__libc_stack_end): Do not use attribute_relro.
66664         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
66665         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
66666         to libthread-provided value.
66667         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
66668         attribute_relro.
66669
66670 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66671
66672         [BZ #3748]
66673         * bits/libc-lock.h (__libc_once_get): New macro.
66674         * sysdeps/mach/bits/libc-lock.h: Likewise.
66675         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
66676         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
66677         instead of using implementation details.
66678
66679         * libio/fileops.c: Unconditionally include <kernel-features.h>.
66680         * libio/freopen.c: Likewise.
66681         * libio/freopen64.c: Likewise.
66682         * misc/syslog.c: Likewise.
66683         * nscd/connections.c: Likewise.
66684         * nscd/netgroupcache.c: Likewise.
66685         * sysdeps/posix/getcwd.c: Likewise.
66686
66687 2012-05-10  Roland McGrath  <roland@hack.frob.com>
66688
66689         * math/w_ilogbf.c: Add #include <limits.h>.
66690
66691 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66692
66693         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
66694         path instead of returning without unlocking.
66695
66696         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
66697         immediate-write ioctls.
66698         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
66699
66700 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66701
66702         * sysdeps/mach/hurd/i386/init-first.c (init): Use
66703         __builtin_frame_address instead of making assumptions about the
66704         location of the return address relative to DATA.  Force early load of
66705         the return address.
66706         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
66707         __builtin_frame_address.
66708
66709         dup3 for GNU Hurd.
66710         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
66711         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
66712         implement dup3 and do some further code clean-ups.
66713         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
66714         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
66715
66716 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66717
66718         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
66719
66720         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
66721         HURD_CRITICAL_END around holding _hurd_dtable_lock.
66722         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
66723         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
66724         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
66725         d->port.lock.
66726
66727         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
66728         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
66729         when handler == SIG_ERR, not when handler != SIG_ERR.
66730
66731 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66732
66733         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
66734         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
66735         definitions.
66736
66737         accept4 for GNU Hurd.
66738         * include/sys/socket.h (__libc_accept4): New prototype.
66739         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
66740         to implement __libc_accept4.
66741         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
66742         __libc_accept4.
66743         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
66744
66745         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
66746         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
66747         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
66748         signal-defines.sym.
66749
66750 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66751
66752         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
66753
66754 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
66755
66756         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
66757         assertion on O_CLOEXEC flag.
66758         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
66759         * hurd/intern-fd.c: Likewise.
66760         * hurd/port2fd.c: Likewise.
66761
66762 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
66763
66764         [BZ #3906]
66765         * bits/in.h (IPV6_PKTINFO): Define new macro.
66766         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
66767
66768 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66769
66770         [BZ #13954]
66771         [BZ #13955]
66772         [BZ #13956]
66773         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
66774         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
66775         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
66776         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
66777         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
66778         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
66779         * math/libm-test.inc (logb_test) : Additional logb tests.
66780
66781 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
66782             Andreas Jaeger  <aj@suse.de>
66783
66784         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
66785         * configure: Regenerated.
66786         * config.h.in (LINK_OBSOLETE_RPC): New macro.
66787         * config.make.in (link-obsolete-rpc): New substituted variable.
66788         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
66789         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
66790         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
66791         (shared-only-routines): Don't set it under [link-obsolete-rpc],
66792         so that libc.a contains the symbols.
66793         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
66794         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
66795         * sunrpc/auth_none.c: Likewise.
66796         * sunrpc/auth_unix.c: Likewise.
66797         * sunrpc/authdes_prot.c: Likewise.
66798         * sunrpc/authuxprot.c: Likewise.
66799         * sunrpc/clnt_gen.c: Likewise.
66800         * sunrpc/clnt_perr.c: Likewise.
66801         * sunrpc/clnt_raw.c: Likewise.
66802         * sunrpc/clnt_simp.c: Likewise.
66803         * sunrpc/clnt_tcp.c: Likewise.
66804         * sunrpc/clnt_udp.c: Likewise.
66805         * sunrpc/clnt_unix.c: Likewise.
66806         * sunrpc/des_crypt.c: Likewise.
66807         * sunrpc/des_soft.c: Likewise.
66808         * sunrpc/get_myaddr.c: Likewise.
66809         * sunrpc/key_call.c: Likewise.
66810         * sunrpc/key_prot.c: Likewise.
66811         * sunrpc/netname.c: Likewise.
66812         * sunrpc/pm_getmaps.c: Likewise.
66813         * sunrpc/pm_getport.c: Likewise.
66814         * sunrpc/pmap_clnt.c: Likewise.
66815         * sunrpc/pmap_prot.c: Likewise.
66816         * sunrpc/pmap_prot2.c: Likewise.
66817         * sunrpc/pmap_rmt.c: Likewise.
66818         * sunrpc/publickey.c: Likewise.
66819         * sunrpc/rpc_cmsg.c: Likewise.
66820         * sunrpc/rpc_common.c: Likewise.
66821         * sunrpc/rpc_dtable.c: Likewise.
66822         * sunrpc/rpc_prot.c: Likewise.
66823         * sunrpc/rpc_thread.c: Likewise.
66824         * sunrpc/rtime.c: Likewise.
66825         * sunrpc/svc.c: Likewise.
66826         * sunrpc/svc_auth.c: Likewise.
66827         * sunrpc/svc_raw.c: Likewise.
66828         * sunrpc/svc_run.c: Likewise.
66829         * sunrpc/svc_tcp.c: Likewise.
66830         * sunrpc/svc_udp.c: Likewise.
66831         * sunrpc/svc_unix.c: Likewise.
66832         * sunrpc/svcauth_des.c: Likewise.
66833         * sunrpc/xcrypt.c: Likewise.
66834         * sunrpc/xdr.c: Likewise.
66835         * sunrpc/xdr_array.c: Likewise.
66836         * sunrpc/xdr_float.c: Likewise.
66837         * sunrpc/xdr_intXX_t.c: Likewise.
66838         * sunrpc/xdr_mem.c: Likewise.
66839         * sunrpc/xdr_rec.c: Likewise.
66840         * sunrpc/xdr_ref.c: Likewise.
66841         * sunrpc/xdr_sizeof.c: Likewise.
66842         * sunrpc/xdr_stdio.c: Likewise.
66843
66844 2012-05-10  Roland McGrath  <roland@hack.frob.com>
66845
66846         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
66847         change.  Update copyright years.
66848
66849 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
66850
66851         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
66852
66853 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
66854             Joseph Myers  <joseph@codesourcery.com>
66855             Paul Pluzhnikov  <ppluzhnikov@google.com>
66856
66857         [BZ #14012]
66858         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
66859         requiring rpcgen.
66860         [cross-compiling] (extra-libs): Likewise.
66861         [cross-compiling] (extra-libs-others): Likewise.
66862         [cross-compiling] (librpcsvc-routines): Likewise.
66863         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
66864         [cross-compiling] (omit-deps): Likewise.
66865         (sunrpc-CPPFLAGS): New variable.
66866         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
66867         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
66868         (cross-rpcgen-objs): New variable.
66869         (extra-objs): Append $(cross-rpcgen-objs).
66870         ($(cross-rpcgen-objs)): New rule.
66871         ($(objpfx)cross-rpcgen): Likewise.
66872         (rpcgen-cmd): Define to use $(built-program-file).  Expand
66873         comment.
66874         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
66875         ($(objpfx)x%.stmp): Likewise.
66876         * sunrpc/proto.h [IS_IN_build] (_): Define.
66877         [IS_IN_build] (_libc_intl_domainname): Likewise.
66878
66879 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
66880
66881         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
66882         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
66883         and R_X86_64_TPOFF64.
66884
66885 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
66886
66887         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
66888         sysdeps/unix/sysv/syscalls.list.
66889         (stime): Likewise.
66890         (utime): Likewise.
66891         * sysdeps/unix/sysv/syscalls.list: Remove file.
66892
66893 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         [BZ #3440]
66896         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
66897         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
66898         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
66899         (__LC_IDENTIFICATION): Make these macros useful in #if
66900         expressions, as required by C99.
66901
66902 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
66903
66904         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
66905         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
66906         after this.
66907
66908 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
66909
66910         * stdlib/longlong.h: Updated from GCC.
66911
66912 2012-05-09  Andreas Jaeger  <aj@suse.de>
66913
66914         * nscd/nscd.c (run_modes): Make named enum, reorder so that
66915         default is first entry.
66916         (run_mode): Set type.
66917         (main): Remove informal message about syslog.
66918         (options): Fix typo.
66919
66920         [BZ #14053]
66921         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
66922         to asm.
66923         (lrint): Likewise.
66924         (llrintf): Likewise.
66925         (llrint): Likewise.
66926         (rint): Likewise.
66927         (rintf): Likewise.
66928         (nearbyint): Likewise.
66929         (nearbyintf): Likewise.
66930
66931 2012-05-09  Andreas Jaeger  <aj@suse.de>
66932             Pedro Alves  <palves@redhat.com>
66933
66934         * nscd/nscd.c (run_mode): Use enum.
66935         (main): Cleanup coding style issue.
66936
66937 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
66938             Andreas Jaeger  <aj@suse.de>
66939
66940         * nscd/nscd.c (go_background): Replaced with...
66941         (run_mode): ... this.
66942         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
66943         (options): Add -F --foreground.
66944         (main): Implement it.
66945         (parse_opt): Parse it.
66946
66947 2012-05-09  Andreas Jaeger  <aj@suse.de>
66948
66949         [BZ #14083]
66950         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
66951         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
66952         -Wconversion warning.
66953         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
66954         Likewise.
66955
66956 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
66957
66958         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
66959         == 0.
66960         (LC_ALL): Use macro-int-constant.
66961         (LC_COLLATE): Likewise.
66962         (LC_CTYPE): Likewise.
66963         (LC_MESSAGES): Likewise.
66964         (LC_MONETARY): Likewise.
66965         (LC_NUMERIC): Likewise.
66966         (LC_TIME): Likewise.
66967         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
66968         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
66969         [ISO || ISO99 || ISO11] (*_t): Do not allow.
66970         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
66971         Specify type.
66972         [C99-based standards] (float_t): Expect type.
66973         [C99-based standards] (double_t): Expect type.
66974         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
66975         type.
66976         [C99-based standards] (HUGE_VALL): Likewise.
66977         [C99-based standards] (INFINITY): Likewise.
66978         [C99-based standards] (NAN): Likewise.
66979         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
66980         [C99-based standards] (FP_NAN): Likewise.
66981         [C99-based standards] (FP_NORMAL): Likewise.
66982         [C99-based standards] (FP_SUBNORMAL): Likewise.
66983         [C99-based standards] (FP_ZERO): Likewise.
66984         [C99-based standards] (FP_FAST_FMA): Use
66985         optional-macro-int-constant.  Specify type.  Require == 1.
66986         [C99-based standards] (FP_FAST_FMAF): Likewise.
66987         [C99-based standards] (FP_FAST_FMAL): Likewise.
66988         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
66989         [C99-based standards] (FP_ILOGBNAN): Likewise.
66990         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
66991         Specify type.
66992         [C99-based standards] (MATH_ERREXCEPT): Likewise.
66993         [C99-based standards] (math_errhandling): Specify type.
66994         [ISO99 || ISO11] (signgam): Do not allow.
66995         [non-C99-based standards] (copysignf): Do not allow.
66996         [non-C99-based standards] (exp2f): Likewise.
66997         [non-C99-based standards] (log2f): Likewise.
66998         [non-C99-based standards] (modff): Allow.
66999         [non-C99-based standards] (erff): Do not allow.
67000         [non-C99-based standards] (erfcf): Likewise.
67001         [non-C99-based standards] (gammaf): Likewise.
67002         [non-C99-based standards] (hypotf): Likewise.
67003         [non-C99-based standards] (j0f): Likewise.
67004         [non-C99-based standards] (j1f): Likewise.
67005         [non-C99-based standards] (jnf): Likewise.
67006         [non-C99-based standards] (lgammaf): Likewise.
67007         [non-C99-based standards] (tgammaf): Likewise.
67008         [non-C99-based standards] (y0f): Likewise.
67009         [non-C99-based standards] (y1f): Likewise.
67010         [non-C99-based standards] (ynf): Likewise.
67011         [non-C99-based standards] (isnanf): Likewise.
67012         [non-C99-based standards] (acoshf): Likewise.
67013         [non-C99-based standards] (asinhf): Likewise.
67014         [non-C99-based standards] (atanhf): Likewise.
67015         [non-C99-based standards] (cbrtf): Likewise.
67016         [non-C99-based standards] (expm1f): Likewise.
67017         [non-C99-based standards] (ilogbf): Likewise.
67018         [non-C99-based standards] (log1pf): Likewise.
67019         [non-C99-based standards] (logbf): Likewise.
67020         [non-C99-based standards] (nextafterf): Likewise.
67021         [non-C99-based standards] (remainderf): Likewise.
67022         [non-C99-based standards] (rintf): Likewise.
67023         [non-C99-based standards] (scalbf): Likewise.
67024         [non-C99-based standards] (copysignl): Likewise.
67025         [non-C99-based standards] (exp2l): Likewise.
67026         [non-C99-based standards] (log2l): Likewise.
67027         [non-C99-based standards] (modfl): Allow.
67028         [non-C99-based standards] (erfl): Do not allow.
67029         [non-C99-based standards] (erfcl): Likewise.
67030         [non-C99-based standards] (gammal): Likewise.
67031         [non-C99-based standards] (hypotl): Likewise.
67032         [non-C99-based standards] (j0l): Likewise.
67033         [non-C99-based standards] (j1l): Likewise.
67034         [non-C99-based standards] (jnl): Likewise.
67035         [non-C99-based standards] (lgammal): Likewise.
67036         [non-C99-based standards] (tgammal): Likewise.
67037         [non-C99-based standards] (y0l): Likewise.
67038         [non-C99-based standards] (y1l): Likewise.
67039         [non-C99-based standards] (ynl): Likewise.
67040         [non-C99-based standards] (isnanl): Likewise.
67041         [non-C99-based standards] (acoshl): Likewise.
67042         [non-C99-based standards] (asinhl): Likewise.
67043         [non-C99-based standards] (atanhl): Likewise.
67044         [non-C99-based standards] (cbrtl): Likewise.
67045         [non-C99-based standards] (expm1l): Likewise.
67046         [non-C99-based standards] (ilogbl): Likewise.
67047         [non-C99-based standards] (log1pl): Likewise.
67048         [non-C99-based standards] (logbl): Likewise.
67049         [non-C99-based standards] (nextafterl): Likewise.
67050         [non-C99-based standards] (remainderl): Likewise.
67051         [non-C99-based standards] (rintl): Likewise.
67052         [non-C99-based standards] (scalbl): Likewise.
67053         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67054         [non-C99-based standards] (FP_*): Do not allow.
67055         [C99-based standards] (FP_*): Change to
67056         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
67057         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
67058         allow.
67059         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
67060         (SIG_ERR): Likewise.
67061         [X/Open-based standards] (SIG_HOLD): Likewise.
67062         (SIG_IGN): Likewise.
67063         (SIGABRT): Use macro-int-constant.  Specify type.  Require
67064         positive value.
67065         (SIGFPE): Likewise.
67066         (SIGILL): Likewise.
67067         (SIGINT): Likewise.
67068         (SIGSEGV): Likewise.
67069         (SIGTER): Likewise.
67070         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
67071         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
67072         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
67073         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
67074         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
67075         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
67076         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
67077         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
67078         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
67079         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
67080         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
67081         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
67082         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
67083         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
67084         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
67085         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
67086         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
67087         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
67088         [X/Open-based standards] (SIGTRAP): Likewise.
67089         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
67090         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
67091         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
67092         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
67093         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
67094         allow.
67095
67096 2012-05-08  Ian Wienand  <ianw@vmware.com>
67097
67098         [BZ #14080]
67099         * time/tzset.c (__tzset_parse_tz): Update default rules for
67100         daylight time changes in the Energy Policy Act of 2005.
67101
67102 2012-05-09  Andreas Jaeger  <aj@suse.de>
67103
67104         [BZ #13983]
67105         * elf/ldconfig.c (parse_conf): Change string to make clear that
67106         ldconfig only issued a warning if ld.so.conf does not exist.
67107
67108 2012-05-08  David S. Miller  <davem@davemloft.net>
67109
67110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
67111         movxtod instead of popping the value on the stack.
67112
67113         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67114
67115 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
67116
67117         * config.h.in: Add HAVE_ARM_PCS_VFP.
67118
67119 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
67120
67121         [BZ #13979]
67122         * include/features.h: Warn if user requests __FORTIFY_SOURCE
67123         checking but the checks are disabled for any reason.
67124
67125 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
67126
67127         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
67128         and ELF64_R_TYPE with ELFW(R_TYPE).
67129
67130 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
67131
67132         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
67133         (ulimit): Likewise.
67134
67135         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
67136         (settimeofday): Likewise.
67137
67138 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
67139
67140         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
67141         a struct th_u2 inside the union, and move tu_block/tu_code into
67142         a new th_u3 union of tu_block/tu_code inside of that.  Move
67143         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
67144         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
67145         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
67146         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
67147         (th_stuff): Change to th_u1.tu_stuff.
67148         (th_data): Define.
67149         (th_msg): Change to th_u1.th_u2.tu_data.
67150
67151 2012-05-07  David S. Miller  <davem@davemloft.net>
67152
67153         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67154
67155         [BZ #14074]
67156         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
67157         (SETUP_PIC_REG): Use it.
67158         (SETUP_PIC_REG_LEAF): Use it.
67159
67160 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
67161
67162         [BZ #13885]
67163         [BZ #13923]
67164         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
67165         USE_AS_EXPM1L.
67166         (EXPL_FINITE): Likewise.
67167         (FLDLOG): Likewise.
67168         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
67169         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
67170         e_expl.S.
67171         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
67172         USE_AS_EXPM1L.
67173         (EXPL_FINITE): Likewise.
67174         (FLDLOG): Likewise.
67175         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
67176         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
67177         e_expl.S.
67178         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
67179         test of -max_value argument for long double.
67180         * sysdeps/i386/fpu/libm-test-ulps: Update.
67181         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67182
67183 2012-05-06  David S. Miller  <davem@davemloft.net>
67184
67185         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
67186         quad soft-float symbols whose references which are compiler
67187         generated.
67188         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
67189
67190 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
67191
67192         [BZ #13884]
67193         [BZ #13914]
67194         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
67195         USE_AS_EXP10L.
67196         (EXPL_FINITE): Likewise.
67197         (FLDLOG): Likewise.
67198         (c0): Likewise.
67199         (c1): Likewise.
67200         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
67201         Adjust comments for base varying.
67202         (__expl_finite): Change alias to EXPL_FINITE.
67203         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
67204         e_expl.S.
67205         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
67206         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
67207         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
67208         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
67209         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
67210         USE_AS_EXP10L.
67211         (EXPL_FINITE): Likewise.
67212         (FLDLOG): Likewise.
67213         (c0): Likewise.
67214         (c1): Likewise.
67215         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
67216         Adjust comments for base varying.
67217         (__expl_finite): Change alias to EXPL_FINITE.
67218         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
67219         tests for bugs.
67220         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
67221
67222         [BZ #14064]
67223         * math/libm-test.inc (check_float_internal): Correct ulp
67224         calculation for subnormal expected results.
67225
67226 2012-05-06  Andreas Jaeger  <aj@suse.de>
67227
67228         * Makeconfig (+math-flags): New, set to -frounding-math.
67229         (+cflags): Add +math-flags so that all of glibc gets compiled with
67230         it.
67231
67232         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
67233
67234 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
67235
67236         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
67237         Disable one test.
67238
67239         [BZ #13787]
67240         [BZ #13922]
67241         [BZ #14036]
67242         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
67243         (__ieee754_expl): Allow for and saturate large arguments.
67244         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
67245         (u_threshold): Likewise.
67246         (__exp): Call __ieee754_exp before checking for overflow and
67247         underflow.
67248         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
67249         (u_threshold): Likewise.
67250         (__expf): Call __ieee754_expf before checking for overflow and
67251         underflow.
67252         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
67253         (u_threshold): Likewise.
67254         (__expl): Call __ieee754_expl before checking for overflow and
67255         underflow.
67256         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
67257         (__ieee754_expl): Allow for and saturate large arguments.
67258         * math/libm-test.inc (exp_test): Add another test.  Do not allow
67259         missing overflow exception on overflow.
67260         (expm1_test): Do not allow missing overflow exception on overflow.
67261
67262         * sysdeps/i386/fpu/e_expl.c: Move to ...
67263         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
67264         rather than using inline asm.
67265         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
67266         * sysdeps/x86_64/fpu/e_expl.S: Copy from
67267         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
67268
67269         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
67270         (nice): Likewise.
67271         (poll): Likewise.
67272         (signal): Likewise.
67273         (time): Likewise.
67274         (times): Likewise.
67275
67276 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
67277
67278         * sysdeps/unix/syscalls.list (adjtime): Add entry from
67279         sysdeps/unix/common/syscalls.list.
67280         (fchmod): Likewise.
67281         (fchown): Likewise.
67282         (ftruncate): Likewise.
67283         (getrusage): Likewise.
67284         (gettimeofday): Likewise.
67285         (setpgid): Likewise.
67286         (setregid): Likewise.
67287         (setreuid): Likewise.
67288         (sigaction): Likewise.
67289         (truncate): Likewise.
67290         (vhangup): Likewise.
67291         * sysdeps/unix/common/syscalls.list: Remove file.
67292         * sysdeps/unix/bsd/Implies: Don't include unix/common.
67293         * sysdeps/unix/sysv/linux/Implies: Likewise.
67294
67295 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
67296
67297         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
67298         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
67299         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
67300         Moved to ...
67301         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
67302         Here.
67303         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
67304         to ...
67305         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
67306         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
67307         to ...
67308         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
67309         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
67310         to ...
67311         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
67312         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
67313         to ...
67314         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
67315         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
67316         to ...
67317         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
67318         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
67319         to ...
67320         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
67321         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
67322         to ...
67323         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
67324         Here.
67325         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
67326         to ...
67327         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
67328         Here.
67329         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
67330         to ...
67331         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
67332         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
67333         Moved to ...
67334         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
67335         Here.
67336         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
67337         to ...
67338         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
67339
67340 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
67341
67342         * sysdeps/unix/common/bits/dirent.h: Remove file.
67343         * sysdeps/unix/common/bits/fcntl.h: Likewise.
67344
67345         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
67346         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
67347         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
67348         * sysdeps/unix/bsd/isatty.c: Likewise.
67349         * sysdeps/unix/bsd/tcdrain.c: Likewise.
67350         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
67351         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
67352
67353 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67354
67355         [BZ #13563]
67356         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
67357         long double comparison inaccuracies.
67358         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
67359         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67360
67361 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
67362
67363         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
67364         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
67365
67366 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
67367
67368         [BZ #14049]
67369         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
67370         nonzero digits before rounding a hex value.
67371         * stdlib/tst-strtod.c (tests): Add another test.
67372
67373 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67374
67375         * sysdeps/s390/fpu/libm-test-ulps: Update.
67376
67377 2012-05-03  Andreas Jaeger  <aj@suse.de>
67378
67379         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
67380         does not get optimized out.
67381         (malloc_opt_barrier): New.
67382
67383 2012-05-03  Andreas Jaeger  <aj@suse.de>
67384             Roland McGrath  <roland@hack.frob.com>
67385
67386         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
67387         intermediate file deletion.
67388         (generated): Add .symlist files.
67389
67390 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
67391
67392         [BZ #13775]
67393         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
67394         Redirect under this condition.
67395         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
67396         [__USE_GNU] (__dprintf_chk): Not under this condition.
67397         [__USE_GNU] (__vdprintf_chk): Likewise.
67398         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
67399         under this condition.
67400         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
67401         [__USE_XOPEN2K8] (dprintf): Define under this condition.
67402         [__USE_XOPEN2K8] (vdprintf): Likewise.
67403         [__USE_GNU] (__dprintf_chk): Not under this condition.
67404         [__USE_GNU] (__vdprintf_chk): Likewise.
67405         [__USE_GNU] (dprintf): Likewise.
67406         [__USE_GNU] (vdprintf): Likewise.
67407
67408 2012-05-03  Roland McGrath  <roland@hack.frob.com>
67409
67410         * elf/Makefile (common-generated): Set this instead of generated for
67411         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
67412         $(all-built-dso)-derived lists.
67413
67414 2012-05-03  Andreas Jaeger  <aj@suse.de>
67415
67416         * sysdeps/i386/fpu/libm-test-ulps: Update.
67417
67418         * FAQ: Removed.
67419         * FAQ.in: Likewise.
67420         * scripts/gen-FAQ.pl: Likewise.
67421         * manual/install.texi (Installation): Point to online location of
67422         FAQ.
67423         * Makefile (files-for-dist): Remove FAQ.
67424         (FAQ): Remove.
67425
67426 2012-05-02  Allan McRae  <allan@archlinux.org>
67427
67428         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
67429         (LDFLAGS-reldepmod5.so): Likewise.
67430         (LDFLAGS-reldep6mod1.so): Likewise.
67431         (LDFLAGS-reldep6mod4.so): Likewise.
67432         (LDFLAGS-reldep8mod3.so): Likewise.
67433         (LDFLAGS-unload4mod1.so): Likewise.
67434         (LDFLAGS-unload4mod2.so): Likewise.
67435         (LDFLAGS-tst-initorder): Likewise.
67436         (LDFLAGS-tst-initordera2.so): Likewise.
67437         (LDFLAGS-tst-initordera3.so): Likewise.
67438         (LDFLAGS-tst-initordera4.so): Likewise.
67439         (LDFLAGS-tst-initorderb2.so): Likewise.
67440         (LDFLAGS-noload): Likewise.
67441         (LDFLAGS-next): Likewise.
67442         (LDFLAGS-order2mod1.so): Likewise.
67443         (LDFLAGS-order2mod2.so): Likewise.
67444         (LDFLAGS-tst-initorder2): Likewise.
67445         (LDFLAGS-tst-initorder2a.so): Likewise.
67446         (LDFLAGS-tst-initorder2b.so): Likewise.
67447         (LDFLAGS-tst-initorder2c.so): Likewise.
67448         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
67449
67450 2012-05-02  David S. Miller  <davem@davemloft.net>
67451
67452         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67453
67454 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
67455
67456         [BZ #14055]
67457         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
67458
67459 2012-05-02  Andreas Jaeger  <aj@suse.de>
67460
67461         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
67462         since we manipulate rounding mode.
67463         (CPPFLAGS-test-idouble.c): Likewise.
67464         (CPPFLAGS-test-ifloat.c): Likewise.
67465         (CFLAGS-test-ldouble.c): Likewise.
67466         (CFLAGS-test-double.c): Likewise.
67467         (CFLAGS-test-float.c): Likewise.
67468         (CFLAGS-test-misc.c): Likewise.
67469         (CFLAGS-test-test-fenv.c): Likewise.
67470
67471 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67472
67473         [BZ #2550]
67474         [BZ #2570]
67475         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
67476         comparisons to determine direction to adjust input.
67477
67478 2012-05-01  Roland McGrath  <roland@hack.frob.com>
67479
67480         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
67481         output to the target.
67482
67483         * scripts/localplt.awk: New file.
67484         * elf/Makefile ($(objpfx)check-localplt): Target removed.
67485         (check-localplt-CFLAGS): Variable removed.
67486         ($(all-built-dso:=.jmprel)): New static pattern rule.
67487         (generated): Add those targets.
67488         (localplt-built-dso): New variable.
67489         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
67490
67491         * elf/check-localplt.c: File removed.
67492
67493         * scripts/check-execstack.awk: New file.
67494         * elf/Makefile ($(objpfx)check-execstack): Target removed.
67495         (check-execstack-CFLAGS): Variable removed.
67496         ($(objpfx)check-execstack.h): Target removed.
67497         ($(objpfx)execstack-default): New target.
67498         (generated): Add that instead of check-execstack.h.
67499         ($(all-built-dso:=.phdr)): New static pattern rule.
67500         (generated): Add those targets.
67501         * elf/check-execstack.c: File removed.
67502
67503         * scripts/check-textrel.awk: New file.
67504         * elf/Makefile ($(objpfx)check-textrel): Target removed.
67505         (check-textrel-CFLAGS): Variable removed.
67506         (all-built-dso): Use := to define.o
67507         ($(all-built-dso:=.dyn)): New static pattern rule.
67508         (generated): Add those targets.
67509         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
67510         * config.make.in (READELF): New substituted variable.
67511         * elf/check-textrel.c: File removed.
67512
67513 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
67514
67515         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
67516         allow.
67517         * conform/data/ctype.h-data [C99-based standards] (isblank):
67518         Expect function.
67519         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
67520         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
67521         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67522         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
67523         Specify type.  Require positive value.
67524         (EILSEQ): Likewise.
67525         (ERANGE): Likewise.
67526         [ISO || POSIX] (EILSEQ): Do not expect.
67527         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
67528         Specify type.  Require positive value.
67529         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
67530         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
67531         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
67532         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
67533         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
67534         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
67535         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
67536         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
67537         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
67538         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
67539         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
67540         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
67541         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
67542         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
67543         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
67544         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
67545         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
67546         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
67547         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
67548         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
67549         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
67550         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
67551         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
67552         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
67553         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
67554         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
67555         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
67556         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
67557         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
67558         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
67559         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
67560         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
67561         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
67562         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
67563         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
67564         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
67565         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
67566         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
67567         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
67568         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
67569         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
67570         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
67571         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
67572         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
67573         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
67574         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
67575         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
67576         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
67577         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
67578         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
67579         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
67580         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
67581         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
67582         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
67583         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
67584         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
67585         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
67586         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
67587         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
67588         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
67589         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
67590         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
67591         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
67592         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
67593         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
67594         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
67595         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
67596         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
67597         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
67598         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
67599         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
67600         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
67601         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
67602         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
67603         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
67604         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
67605         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
67606         Require >= 2.
67607         (FLT_ROUNDS): Expect as macro, not constant.
67608         (FLT_MANT_DIG): Use macro-int-constant.
67609         (DBL_MANT_DIG): Likewise.
67610         (LDBL_MANT_DIG): Likewise.
67611         (FLT_DIG): Likewise.
67612         (DBL_DIG): Likewise.
67613         (LDBL_DIG): Likewise.
67614         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
67615         (DBL_MIN_EXP): Likewise.
67616         (LDBL_MIN_EXP): Likewise.
67617         (FLT_MAX_EXP): Use macro-int-constant.
67618         (DBL_MAX_EXP): Likewise.
67619         (LDBL_MAX_EXP): Likewise.
67620         (FLT_MAX_10_EXP): Likewise.
67621         (DBL_MAX_10_EXP): Likewise.
67622         (LDBL_MAX_10_EXP): Likewise.
67623         (FLT_MAX): Use macro-constant.
67624         (DBL_MAX): Likewise.
67625         (LDBL_MAX): Likewise.
67626         (FLT_EPSILON): Use macro-constant.  Give upper bound.
67627         (DBL_EPSILON): Likewise.
67628         (LDBL_EPSILON): Likewise.
67629         (FLT_MIN): Likewise.
67630         (DBL_MIN): Likewise.
67631         (LDBL_MIN): Likewise.
67632         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
67633         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
67634         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
67635         [ISO11] (FLT_HAS_SUBNORM): Likewise.
67636         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
67637         [ISO11] (DBL_DECIMAL_DIG): Likewise.
67638         [ISO11] (FLT_DECIMAL_DIG): Likewise.
67639         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
67640         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
67641         [ISO11] (FLT_TRUE_MIN): Likewise.
67642         [ISO11] (LDBL_TRUE_MIN): Likewise.
67643         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67644         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
67645         (SCHAR_MIN): Use macro-int-constant.  Specify type.
67646         (SCHAR_MAX): Likewise.
67647         (UCHAR_MAX): Likewise.
67648         (CHAR_MIN): Likewise.
67649         (CHAR_MAX): Likewise.
67650         (MB_LEN_MAX): Use macro-int-constant.
67651         (SHRT_MIN): Use macro-int-constant.  Specify type.
67652         (SHRT_MAX): Likewise.
67653         (USHRT_MAX): Likewise.
67654         (INT_MAX): Likewise.
67655         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
67656         bound negative.
67657         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
67658         bound with "U".
67659         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
67660         bound with "L".
67661         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
67662         bound negative.  Suffix upper bound with "L".
67663         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
67664         bound with "UL".
67665         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
67666         Specify type.
67667         [C99-based standards] (LLONG_MAX): Likewise.
67668         [C99-based standards] (ULLONG_MAX): Likewise.
67669         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
67670         == 0.
67671         [ISO11] (max_align_t): Require type.
67672         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67673
67674         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
67675         from $CFLAGS, without defining away __attribute__ calls.
67676         (checknamespace): Use $CFLAGS_namespace.
67677
67678         * conform/conformtest.pl (@keywords): Only include C99 keywords
67679         for standards based on C99 or C11.
67680
67681         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
67682         Disable tests.
67683         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
67684         UNIX98]: Likewise.
67685
67686         * conform/conformtest.pl: Handle "macro-int-constant" and test for
67687         usability of symbols in #if.
67688
67689         * conform/conformtest.pl: If macro or constant types start
67690         "promoted:", expect the symbol to be of the following type
67691         promoted by the integer promotions.
67692
67693         * conform/conformtest.pl: Parse all "constant" and "macro" lines
67694         in one place.  Also handle "macro-constant".
67695
67696         * conform/conformtest.pl: Only accept expected macro values with
67697         "==".  Parse all "macro" lines in one place.
67698         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
67699
67700         * conform/conformtest.pl: Handle braced types on "constant" lines
67701         instead of handling "typed-constant".
67702         * conform/data/signal.h-data: Use "constant" instead of
67703         "typed-constant".
67704
67705         * conform/conformtest.pl: Handle "optional-" at start of lines in
67706         one place rather than duplicating several cases.  Handle each
67707         format of "macro" line with initial "optional-".
67708
67709         * conform/conformtest.pl: Only accept expected constant or
67710         optional-constant values with "==".  Parse all "constant" lines in
67711         one place.  Parse all "optional-constant" lines in one place.
67712         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
67713         * conform/data/fmtmsg.h-data: Likewise.
67714         * conform/data/netinet/in.h-data: Likewise.
67715         * conform/data/tar.h-data: Likewise.
67716         * conform/data/limits.h-data: Use "==" form on "constant" and
67717         "optional-constant" lines.
67718
67719         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
67720         Use -std=c99 for XOPEN2K.
67721         (@knownproblems): Remove.
67722         (newtoken): Don't check %isknown.
67723
67724         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
67725         Do not expect macro.
67726         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
67727         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
67728         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
67729         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
67730         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
67731         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
67732         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
67733         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
67734         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
67735         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
67736         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
67737         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
67738         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
67739         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
67740         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
67741         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
67742         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
67743         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
67744         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
67745         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
67746         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
67747         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
67748         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
67749         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
67750         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
67751         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
67752         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
67753         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
67754         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
67755         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
67756         [XPG3] (acosh): Likewise.
67757         [XPG3] (asinh): Likewise.
67758         [XPG3] (atanh): Likewise.
67759         [XPG3] (cbrt): Likewise.
67760         [XPG3] (expm1): Likewise.
67761         [XPG3] (ilogb): Likewise.
67762         [XPG3] (log1p): Likewise.
67763         [XPG3] (logb): Likewise.
67764         [XPG3] (nextafter): Likewise.
67765         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
67766         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
67767         [XPG3] (remainder): Likewise.
67768         [XPG3] (rint): Likewise.
67769         [XPG3 || XPG4 || UNIX98] (round): Likewise.
67770         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
67771         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
67772         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
67773         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
67774         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
67775         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
67776         [UNIX98 || XOPEN2K] (scalb): Expect.
67777         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
67778         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
67779         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
67780         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
67781         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
67782         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
67783         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
67784         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
67785         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
67786         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
67787         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
67788         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
67789         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
67790         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
67791         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
67792         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
67793         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
67794         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
67795         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
67796         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
67797         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
67798         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
67799         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
67800         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
67801         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
67802         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
67803         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
67804         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
67805         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
67806         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
67807         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
67808         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
67809         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
67810         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
67811         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
67812         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
67813         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
67814         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
67815         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
67816         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
67817         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
67818         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
67819         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
67820         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
67821         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
67822         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
67823         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
67824         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
67825         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
67826         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
67827         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
67828         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
67829         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
67830         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
67831         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
67832         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
67833         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
67834         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
67835         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
67836         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
67837         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
67838         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
67839         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
67840         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
67841         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
67842         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
67843         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
67844         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
67845         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
67846         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
67847         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
67848         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
67849         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
67850         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
67851         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
67852         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
67853         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
67854         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
67855         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
67856         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
67857         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
67858         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
67859         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
67860         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
67861         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
67862         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
67863         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
67864         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
67865         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
67866         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
67867         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
67868         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
67869         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
67870         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
67871         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
67872         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
67873         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
67874         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
67875         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
67876         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
67877         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
67878         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
67879         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
67880         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
67881         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
67882         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
67883         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
67884         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
67885         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
67886         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
67887         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
67888         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
67889         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
67890         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
67891         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
67892         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
67893         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
67894         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
67895         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
67896         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
67897         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
67898         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
67899         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
67900         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
67901         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
67902         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
67903         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
67904         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
67905         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
67906         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
67907         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
67908         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
67909         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
67910         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
67911         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
67912         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
67913         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
67914
67915         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
67916         _XOPEN_SOURCE_EXTENDED for XPG4.
67917
67918         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
67919
67920         * Makeconfig (localtime): Remove variable.
67921         (inst_localtime-file): Likewise.
67922
67923 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
67924
67925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
67926         Update.
67927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
67928         Update.
67929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
67930         Update.
67931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
67932         Update.
67933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
67934         Update.
67935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
67936         Update.
67937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
67938         Update.
67939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
67940         Update.
67941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
67942         Update.
67943
67944 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
67945
67946         [BZ #2550]
67947         [BZ #2570]
67948         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
67949         comparisons to determine direction to adjust input.
67950         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
67951         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
67952         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
67953         Likewise.
67954         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
67955         Likewise.
67956         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
67957         Likewise.
67958         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
67959         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
67960         Likewise.
67961         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
67962         Likewise.
67963         * math/libm-test.inc (nexttoward_test): Add more tests.
67964
67965 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
67966
67967         [BZ #14040]
67968         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
67969         in version GLIBC_2.1, not GLIBC_2.0.
67970         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
67971         Likewise.
67972
67973 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
67974
67975         [BZ #13942]
67976         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
67977         (1 - x) * (1 + x).
67978         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
67979         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
67980         * math/libm-test.inc (acos_test): Add more tests.
67981         (asin_test): Likewise.
67982         * sysdeps/i386/fpu/libm-test-ulps: Update.
67983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67984
67985         [BZ #14034]
67986         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
67987         of square root.
67988         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
67989         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
67990         * math/libm-test.inc (acos_test_tonearest): New function.
67991         (acos_test_towardzero): Likewise.
67992         (acos_test_downward): Likewise.
67993         (acos_test_upward): Likewise.
67994         (asin_test_tonearest): Likewise.
67995         (asin_test_towardzero): Likewise.
67996         (asin_test_downward): Likewise.
67997         (asin_test_upward): Likewise.
67998         (main): Call the new functions.
67999         * sysdeps/i386/fpu/libm-test-ulps: Update.
68000         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68001
68002         [BZ #13884]
68003         [BZ #13924]
68004         * math/e_exp10.c: Include <float.h>.
68005         (__ieee754_exp10): Handle underflow here rather than multiplying
68006         large negative argument by M_LN10.
68007         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
68008         of __ieee754_expf.
68009         * math/e_exp10l.c: Include <float.h>.
68010         (__ieee754_exp10l): Handle underflow here rather than multiplying
68011         large negative argument by M_LN10l.
68012         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
68013         spurious overflow exception on underflow.
68014
68015 2012-04-29  Marek Polacek  <polacek@redhat.com>
68016
68017         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
68018         (__fortify_function): New macro.
68019         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
68020         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
68021         __extern_always_inline.
68022         * libio/bits/stdio2.h: Likewise.
68023         * libio/bits/stdio.h: Likewise.
68024         * string/string.h: Likewise.
68025         * string/bits/string3.h: Likewise.
68026         * include/stdio.h: Likewise.
68027         * stdlib/bits/stdlib.h: Likewise.
68028         * stdlib/stdlib.h: Likewise.
68029         * rt/bits/mqueue2.h: Likewise.
68030         * rt/mqueue.h: Likewise.
68031         * posix/bits/unistd.h: Likewise.
68032         * posix/unistd.h: Likewise.
68033         * io/bits/poll2.h: Likewise.
68034         * io/bits/fcntl2.h: Likewise.
68035         * io/fcntl.h: Likewise.
68036         * io/sys/poll.h: Likewise.
68037         * misc/bits/syslog.h: Likewise.
68038         * misc/bits/syslog-ldbl.h: Likewise.
68039         * misc/sys/syslog.h: Likewise.
68040         * socket/bits/socket2.h: Likewise.
68041         * socket/sys/socket.h: Likewise.
68042         * debug/tst-chk1.c: Likewise.
68043         * wcsmbs/bits/wchar2.h: Likewise.
68044         * wcsmbs/bits/wchar-ldbl.h: Likewise.
68045         * wcsmbs/wchar.h: Likewise.
68046
68047 2012-04-29  Andreas Jaeger  <aj@suse.de>
68048
68049         * Makerules (tests): Remove enable-check-abi protection.
68050         (check-abi-warn): Remove.
68051         (check-abi-%): Remove check-abi-warn usage.
68052
68053         * configure.in: Remove check-abi configure option.
68054         * configure: Regenerated.
68055         * config.make.in (enable-check-abi): Remove.
68056
68057 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
68058
68059         [BZ #14033]
68060         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
68061         double functions to double *_finite functions.
68062
68063         [BZ #13941]
68064         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
68065         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
68066         LDBL_MIN_EXP.
68067         * stdio-common/Makefile (tests): Add tst-sprintf3.
68068         * stdio-common/tst-sprintf3.c: New file.
68069
68070         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
68071         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
68072
68073 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
68074
68075         * conform/conformtest.pl: Remove duplicate typed-constant
68076         handling.
68077
68078 2012-04-28  David S. Miller  <davem@davemloft.net>
68079
68080         * Makerules (%.abilist): Add vpath on sysdep_dirs.
68081         (check-abi-%): Remove AWK script prerequisite and explicit
68082         abilist directory.
68083         (check-abi): Rewrite to just diff the symlist with the abilist.
68084         (config-tls, config-abi-config): Delete, no longer used.
68085         (update-abi-%): Remove AWK script and explicit abilist directory.
68086         (update-abi): Rewrite to simply compare and conditionally copy the
68087         symlist and the sysdep abilist file.  Remove update-abi-config
68088         checks.
68089         * abilist/ld.abilist: Remove.
68090         * abilist/libBrokenLocale.abilist: Remove.
68091         * abilist/libanl.abilist: Remove.
68092         * abilist/libcrypt.abilist: Remove.
68093         * abilist/libdl.abilist: Remove.
68094         * abilist/librt.abilist: Remove.
68095         * abilist/libthread_db.abilist: Remove.
68096         * abilist/libutil.abilist: Remove.
68097         * scripts/extract-abilist.awk: Remove.
68098         * scripts/merge-abilist.awk: Remove.
68099         * sysdeps/generic/libcidn.abilist: New file.
68100         * sysdeps/generic/libnss_compat.abilist: New file.
68101         * sysdeps/generic/libnss_db.abilist: New file.
68102         * sysdeps/generic/libnss_dns.abilist: New file.
68103         * sysdeps/generic/libnss_files.abilist: New file.
68104         * sysdeps/generic/libnss_hesiod.abilist: New file.
68105         * sysdeps/generic/libnss_nis.abilist: New file.
68106         * sysdeps/generic/libnss_nisplus.abilist: New file.
68107         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
68108         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
68109         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
68110         file.
68111         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
68112         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
68113         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
68114         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
68115         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
68116         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
68117         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
68118         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
68119         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
68120         file.
68121         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
68122         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
68123         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
68124         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
68125         file.
68126         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
68127         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
68128         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
68129         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
68130         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
68131         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
68132         file.
68133         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
68134         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
68135         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
68136         file.
68137         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
68138         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
68139         New file.
68140         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
68141         New file.
68142         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
68143         New file.
68144         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
68145         New file.
68146         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
68147         New file.
68148         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
68149         New file.
68150         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
68151         New file.
68152         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
68153         New file.
68154         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
68155         New file.
68156         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
68157         New file.
68158         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
68159         New file.
68160         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
68161         New file.
68162         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
68163         New file.
68164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
68165         file.
68166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
68167         New file.
68168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
68169         New file.
68170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
68171         file.
68172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
68173         New file.
68174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
68175         New file.
68176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
68177         file.
68178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
68179         New file.
68180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
68181         New file.
68182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
68183         New file.
68184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
68185         New file.
68186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
68187         New file.
68188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
68189         New file.
68190         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
68191         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
68192         file.
68193         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
68194         New file.
68195         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
68196         file.
68197         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
68198         file.
68199         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
68200         file.
68201         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
68202         file.
68203         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
68204         file.
68205         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
68206         New file.
68207         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
68208         file.
68209         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
68210         file.
68211         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
68212         New file.
68213         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
68214         file.
68215         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
68216         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
68217         file.
68218         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
68219         New file.
68220         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
68221         file.
68222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
68223         file.
68224         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
68225         file.
68226         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
68227         file.
68228         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
68229         file.
68230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
68231         New file.
68232         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
68233         file.
68234         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
68235         file.
68236         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
68237         New file.
68238         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
68239         file.
68240         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
68241         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
68242         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
68243         file.
68244         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
68245         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
68246         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
68247         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
68248         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
68249         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
68250         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
68251         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
68252         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
68253         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
68254         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
68255         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
68256         file.
68257         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
68258         New file.
68259         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
68260         file.
68261         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
68262         file.
68263         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
68264         file.
68265         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
68266         file.
68267         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
68268         file.
68269         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
68270         New file.
68271         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
68272         New file.
68273         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
68274         file.
68275         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
68276         New file.
68277         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
68278         file.
68279         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
68280         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
68281         file.
68282         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
68283         New file.
68284         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
68285         file.
68286         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
68287         file.
68288         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
68289         file.
68290         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
68291         file.
68292         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
68293         file.
68294         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
68295         New file.
68296         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
68297         New file.
68298         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
68299         file.
68300         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
68301         New file.
68302         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
68303         file.
68304
68305 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
68306
68307         * conform/conformtest.pl: Fix typo in handling typed-constant from
68308         allow-header.
68309
68310 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
68311
68312         * README: Cut down references to pre-2.6 Linux kernels and
68313         Linuxthreads.  Update lists of configurations in libc and ports
68314         and sort alphabetically.  Say "or newer" with Linux kernel version
68315         requirements.
68316
68317         * config.h.in [IS_IN_build]: Allow compiling without optimization.
68318
68319 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
68320
68321         [BZ #887]
68322         * math/libm-test.inc (logb_test_downward): New test to expose
68323         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
68324         rounding mode.
68325
68326 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
68327
68328         [BZ #14027]
68329         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
68330         to be done.
68331         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
68332         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
68333
68334 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
68335
68336         * sysdeps/unix/i386/brk.S: Remove file.
68337         * sysdeps/unix/i386/dl-brk.S: Likewise.
68338         * sysdeps/unix/i386/pipe.S: Likewise.
68339         * sysdeps/unix/i386/sigreturn.S: Likewise.
68340         * sysdeps/unix/i386/syscall.S: Likewise.
68341         * sysdeps/unix/i386/vfork.S: Likewise.
68342         * sysdeps/unix/i386/wait.S: Likewise.
68343
68344         * sysdeps/unix/common/tcsendbrk.c: Move to ...
68345         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
68346
68347         * configure.in (arm*-none*): Do not allow without
68348         --enable-hacker-mode.
68349         (netbsd*): Remove case setting base_os.
68350         (386bsd*): Likewise.
68351         (freebsd*): Likewise.
68352         (bsdi*): Likewise.
68353         (osf*): Likewise.
68354         (sunos*): Likewise.
68355         (ultrix*): Likewise.
68356         (newsos*): Likewise.
68357         (dynix*): Likewise.
68358         (*bsd*): Likewise.
68359         (sysv*): Likewise.
68360         (isc*): Likewise.
68361         (esix*): Likewise.
68362         (sco*): Likewise.
68363         (minix*): Likewise.
68364         (irix4*): Likewise.
68365         (irix6*): Likewise.
68366         (solaris[2-9]*): Likewise.
68367         (none): Likewise.
68368         * configure: Regenerated.
68369
68370 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68371
68372         [BZ #11521]
68373         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
68374         overflow or cancellation in calculating denominator.
68375         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
68376         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
68377         down expression to avoid unexpected rounding in newer GCCs.
68378         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
68379
68380 2012-04-26  David S. Miller  <davem@davemloft.net>
68381
68382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
68383         long-double compat symbols.
68384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
68385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
68386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
68387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
68388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
68389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
68390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
68391         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
68392         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
68393         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
68394         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
68395         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
68396         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68397
68398 2012-04-25  David S. Miller  <davem@davemloft.net>
68399
68400         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
68401         HWCAP_* values only after the memory barriers have been defined.
68402         (atomic_full_barrier): Define.
68403         (atomic_read_barrier): Define.
68404         (atomic_write_barrier): Define.
68405
68406 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
68407
68408         * shlib-versions: Add libgcc_s version information.
68409         * sysdeps/generic/libgcc_s.h: Remove.
68410         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
68411         libgcc_s.h.
68412         * sysdeps/gnu/unwind-resume.c: Likewise.
68413         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
68414
68415 2012-04-25  David S. Miller  <davem@davemloft.net>
68416
68417         * sysdeps/unix/sparc/brk.S: Delete.
68418         * sysdeps/unix/sparc/dl-brk.S: Delete.
68419         * sysdeps/unix/sparc/pipe.S: Delete.
68420         * sysdeps/unix/sparc/sysdep.S: Delete.
68421         * sysdeps/unix/sparc/sysdep.h: Delete.
68422         * sysdeps/unix/sparc/vfork.S: Delete.
68423         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
68424         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
68425         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
68426         (ret_ERRVAL, r0, r1, MOVE): Define.
68427         (JUMPTARGET): Remove.
68428         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
68429         sysdeps/unix/sparc/sysdep.h
68430         (ENTRY, END): Remove.
68431         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68432
68433 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
68434
68435         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
68436         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
68437         -DIS_IN_build.
68438
68439         * timezone/README: Update upstream location and email address for
68440         tzcode and tzdata.
68441         * timezone/zdump.c: Update from tzcode 2012b.
68442         * timezone/zic.c: Likewise.
68443
68444         * configure.in (libc_cv_as_needed): Remove test.
68445         * configure: Regenerated.
68446         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
68447         conditional definition.
68448         [$(have-as-needed) != yes] (no-as-needed): Likewise.
68449         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
68450         * config.make.in (have-as-needed): Remove variable.
68451
68452 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
68453             Paul Pluzhnikov  <ppluzhnikov@google.com>
68454
68455         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
68456         strings correctly.
68457
68458 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
68459
68460         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
68461         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
68462         * sysdeps/sh/strlen.S: Likewise.
68463
68464 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
68465
68466         * sysdeps/unix/fork.S: Remove file.
68467         * sysdeps/unix/i386/fork.S: Likewise.
68468         * sysdeps/unix/sparc/fork.S: Likewise.
68469
68470         * sysdeps/unix/system.c: Remove file.
68471         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
68472
68473         * sysdeps/unix/getegid.S: Remove file.
68474         * sysdeps/unix/geteuid.S: Likewise.
68475
68476 2012-04-24  Roland McGrath  <roland@hack.frob.com>
68477
68478         * scripts/check-localplt.awk: New file.
68479         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
68480         of diff.
68481         * scripts/data/localplt-generic.data: Add a comment.
68482
68483         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
68484         NODE when __dir_mkfile failed.
68485         * sysdeps/mach/hurd/symlinkat.c: Likewise.
68486         Reported by Ludovic Courtès <ludo@gnu.org>.
68487
68488 2012-04-24  Andreas Jaeger  <aj@suse.de>
68489
68490         * Makerules (common-clean): Also remove gen-as-const-headers
68491         files.
68492
68493 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
68494
68495         * Makerules (native-compile): Do not change working directory for
68496         build.  Use $(OUTPUT_OPTION) in command.
68497         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
68498
68499 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68500
68501         [BZ #13886]
68502         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
68503         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
68504         * math/libm-test.inc (floor_test): Add more tests.
68505         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
68506
68507 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
68508
68509         * sysdeps/unix/getdents.c: Remove file.
68510         * sysdeps/unix/sysv/getdents.c: Likewise.
68511         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
68512
68513         * sysdeps/unix/syscalls.list (madvise): Add syscall from
68514         sysdeps/unix/mman/syscalls.list.
68515         (mmap): Likewise.
68516         (mprotect): Likewise.
68517         (msync): Likewise.
68518         (munmap): Likewise.
68519         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
68520         * sysdeps/unix/mman/syscalls.list: Remove.
68521         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
68522
68523         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
68524         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
68525         * configure: Regenerated.
68526         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
68527         $(libgcc_s_suffix).
68528         * config.make.in (libgcc_s_suffix): Remove variable.
68529
68530 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
68531
68532         * sysdeps/unix/sysv/gethostname.c: Move to ...
68533         * sysdeps/posix/gethostname.c: ... here.
68534
68535         * sysdeps/unix/execve.S: Remove file.
68536
68537         * sysdeps/unix/_exit.S: Remove file.
68538
68539 2012-04-23  Andreas Jaeger  <aj@suse.de>
68540
68541         [BZ #13739]
68542         * manual/Makefile: Remove make dist support, there's no
68543         need for a stand-alone documentation tar ball.
68544         (TEXI2DVI): Define always, it's not in Makeconfig.
68545         (dist): Removed.
68546         (tar-it): Removed.
68547         (edition): Removed.
68548         (glibc-doc-$(edition).tar): Removed
68549         (%.Z): Removed.
68550         (%.gz): Removed.
68551         (%.uu): Removed.
68552         (ETAGS): Remove, it's in Makeconfig.
68553         (move-if-change): Remove, it's in Makeconfig.
68554
68555 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         [BZ #13970]
68558         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
68559         (strtod, strtof, strtold, strtol, strtoul, strtoq)
68560         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
68561         (strtod_l, strtof_l, strtold_l): Remove __wur.
68562         It is not necessarily an error to ignore strtol's return value.
68563         One can reliably look at the stored endptr to decide whether
68564         the number had valid syntax.
68565
68566 2012-04-21  Andreas Jaeger  <aj@suse.de>
68567
68568         [BZ #13739]
68569         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
68570
68571 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
68572
68573         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
68574         * sysdeps/unix/sysv/Versions: Remove file.
68575
68576 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
68577
68578         [BZ #13927]
68579         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68580
68581 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
68582
68583         [BZ #7064]
68584         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
68585         version from __vm86.
68586
68587 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
68588
68589         * sysdeps/unix/common/lxstat.c: Remove file.
68590         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
68591
68592         * sysdeps/unix/sysv/Makefile: Remove file.
68593
68594         * sysdeps/unix/sysv/direct.h: Remove file.
68595
68596         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
68597         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
68598         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
68599         * sysdeps/unix/sysv/bits/signum.h: Likewise.
68600         * sysdeps/unix/sysv/bits/stat.h: Likewise.
68601         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
68602         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
68603
68604         * sysdeps/unix/sysv/setrlimit.c: Remove file.
68605
68606         * sysdeps/unix/xmknod.c: Remove file.
68607         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
68608
68609         * sysdeps/unix/sysv/settimeofday.c: Remove file.
68610
68611         * sysdeps/unix/sysv/i386/time.S: Remove file.
68612
68613         * sysdeps/unix/fxstat.c: Remove file.
68614         * sysdeps/unix/xstat.c: Likewise.
68615         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
68616
68617         * sysdeps/unix/sysv/sigaction.c: Remove file.
68618
68619         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
68620         (sysdep_headers): Remove variable.
68621         [termio.h not in sysdep_headers] (generated): Likewise.
68622         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
68623         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
68624         * sysdeps/unix/sysv/tcdrain.c: Likewise.
68625         * sysdeps/unix/sysv/tcflow.c: Likewise.
68626         * sysdeps/unix/sysv/tcflush.c: Likewise.
68627         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
68628         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
68629         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
68630         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
68631         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
68632
68633         * sysdeps/unix/siglist.c: Remove file.
68634
68635         * sysdeps/unix/getppid.S: Remove file.
68636
68637         * sysdeps/unix/mkdir.c: Remove file.
68638         * sysdeps/unix/rmdir.c: Likewise.
68639
68640 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
68641
68642         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
68643         ERR_MAX value.
68644         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
68645         errlist-compat value.
68646
68647 2012-04-18  David S. Miller  <davem@davemloft.net>
68648
68649         * sysdeps/generic/memcopy.h (reg_char): Delete.
68650         * debug/strcat_chk.c: Use char, not reg_char.
68651         * debug/strcpy_chk.c: Likewise.
68652         * debug/strncat_chk.c: Likewise.
68653         * debug/strncpy_chk.c: Likewise.
68654         * string/memchr.c: Likewise.
68655         * string/memrchr.c: Likewise.
68656         * string/rawmemchr.c: Likewise.
68657         * string/strcat.c: Likewise.
68658         * string/strchr.c: Likewise.
68659         * string/strchrnul.c: Likewise.
68660         * string/strcmp.c: Likewise.
68661         * string/strcpy.c: Likewise.
68662         * string/strncat.c: Likewise.
68663         * string/strncmp.c: Likewise.
68664         * string/strncpy.c: Likewise.
68665
68666 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
68667
68668         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
68669         __builtin_memcopy is called when src and dest ranges are known to not
68670         overlap.
68671
68672 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
68673
68674         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
68675         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
68676         fwd_align_merge macro call.
68677         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
68678         bwd_align_merge macro call.
68679         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
68680
68681 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
68682
68683         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
68684         bwd_align_merge macros.
68685         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
68686         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
68687         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
68688
68689 2012-04-18  David S. Miller  <davem@davemloft.net>
68690
68691         * sysdeps/sparc/sparc64/memcopy.h: Delete.
68692
68693 2012-04-18  Andreas Jaeger  <aj@suse.de>
68694
68695         [BZ# 6794]
68696         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
68697         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
68698         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
68699
68700         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
68701         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
68702         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
68703
68704         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
68705         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
68706         Adjust for changed ldbl-128 files.
68707
68708         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
68709         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
68710         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
68711
68712 2012-04-17  David S. Miller  <davem@davemloft.net>
68713
68714         * sysdeps/sparc/sparc32/memcopy.h: Delete.
68715
68716 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
68717
68718         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
68719         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
68720         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
68721         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
68722         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
68723         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
68724
68725 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68726
68727         [BZ #6794]
68728         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
68729         * math/libm-test.inc: Add ilogb errno and exception tests.
68730         * math/w_ilogb.c: New file: ilogb wrapper.
68731         * math/w_ilogbf.c: New file: ilogbf wrapper.
68732         * math/w_ilogbl.c: New file: ilogbl wrapper.
68733         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
68734         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
68735         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
68736         exception being thrown with 0.0 as argument.
68737         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
68738         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
68739         exception being thrown with 0.0 as argument.
68740         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
68741         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
68742         exception being thrown with 0.0 as argument.
68743         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
68744         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
68745         exception being thrown with 0.0 as argument.
68746         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
68747         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
68748         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
68749         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
68750         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
68751         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
68752         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
68753         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
68754         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
68755
68756 2012-04-17  Petr Baudis  <pasky@ucw.cz>
68757
68758         * include/sys/uio.h: Change __vector to __iovec to avoid clash
68759         with altivec.
68760
68761 2012-04-16  Marek Polacek  <polacek@redhat.com>
68762
68763         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
68764
68765 2012-04-16  Marek Polacek  <polacek@redhat.com>
68766
68767         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
68768         operands of fdivp instruction.
68769
68770 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
68771
68772         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
68773         * elf/tst-auditmod3b.c: Likewise.
68774         * elf/tst-auditmod4b.c: Likewise.
68775         * elf/tst-auditmod5b.c: Likewise.
68776         * elf/tst-auditmod6b.c: Likewise.
68777         * elf/tst-auditmod6c.c: Likewise.
68778         * elf/tst-auditmod7b.c: Likewise.
68779         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
68780         * sysdeps/x86_64/preconfigure.in: Likewise.
68781         * sysdeps/x86_64/preconfigure: Regenerated.
68782
68783 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
68784
68785         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
68786         __ILP32__.
68787
68788 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
68789
68790         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68791         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
68792
68793 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
68794
68795         [BZ #13973]
68796         * locale/iso-639.def: Fix gl language name. Spotted by
68797         Yaron Shahrabani.
68798
68799 2012-04-12  Roland McGrath  <roland@hack.frob.com>
68800
68801         [BZ #2074]
68802         * libio/libio.h (__io_write_fn): Update comment.
68803
68804 2012-04-12  Petr Baudis  <pasky@ucw.cz>
68805
68806         [BZ #2074]
68807         * stdio.texi (Hook Functions): The user provided writer function
68808         is not allowed to return -1.
68809
68810 2012-04-11  David S. Miller  <davem@davemloft.net>
68811
68812         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68813
68814 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
68815
68816         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
68817         Add a leading slash to rtkaio.
68818
68819 2012-04-11  Jim Meyering  <meyering@redhat.com>
68820
68821         [BZ #11959]
68822         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
68823         It is not necessarily an error to ignore fwrite's return
68824         value.  One can reliably use ferror to test for errors after
68825         the fact.
68826
68827 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
68828
68829         * bits/types.h (__snseconds_t): New type.
68830         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
68831
68832         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
68833         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68834         (__SNSECONDS_T_TYPE): Likewise.
68835         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68836         (__SNSECONDS_T_TYPE): Likewise.
68837         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68838         (__SNSECONDS_T_TYPE): Likewise.
68839
68840 2012-04-10  Andreas Jaeger  <aj@suse.de>
68841
68842         [BZ #2636]
68843         * manual/time.texi (Processor Time): Return type of times is
68844         elapsed real time since an arbitrary point in the past.
68845         (CPU Time): Move CLK_TCK from here...
68846         (Processor Time): ...to here.  Correct description.
68847         * manual/conf.texi (Constants for Sysconf): Correct description of
68848         _SC_CLK_TCK.
68849
68850 2012-04-10  David S. Miller  <davem@davemloft.net>
68851
68852         [BZ #13967]
68853         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
68854         where the is a gap between DT_REL(A) and DT_JMPREL.
68855
68856 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
68857
68858         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
68859         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
68860         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
68861
68862 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
68863
68864         * elf/dl-support.c (_dl_inhibit_cache): New variable.
68865         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
68866         (dl_main): Handle --inhibit-cache.
68867         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
68868         _dl_inhibit_cache.
68869         * elf/dl-load.c (_dl_map_object): Use it.
68870         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
68871
68872 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
68873
68874         [BZ #13872]
68875         * sysdeps/i386/fpu/e_powl.S (p78): New object.
68876         (__ieee754_powl): Saturate large exponents rather than testing for
68877         overflow of y*log2(x).
68878         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
68879         * math/libm-test.inc (pow_test): Do not permit spurious overflow
68880         exceptions.
68881
68882         [BZ #11521]
68883         * math/s_ctan.c: Include <float.h>.
68884         (__ctan): Avoid internal overflow or cancellation in calculating
68885         denominator.
68886         * math/s_ctanf.c: Likewise.
68887         * math/s_ctanl.c: Likewise.
68888         * math/s_ctanh.c: Likewise.
68889         * math/s_ctanhf.c: Likewise.
68890         * math/s_ctanhl.c: Likewise.
68891         * math/libm-test.inc (ctan_test): Add more tests.
68892         (ctanh_test): Likewise.
68893         * sysdeps/i386/fpu/libm-test-ulps: Update.
68894         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68895
68896 2012-04-09  Andreas Jaeger  <aj@suse.de>
68897
68898         [BZ #6894]
68899         * manual/filesys.texi (Directory Entries): Mention that d_namlen
68900         is an optional BSD extension.
68901
68902         [BZ #10254]
68903         * manual/stdio.texi (Opening Streams): Document additional fopen
68904         parameters.
68905
68906 2012-04-09  Roland McGrath  <roland@hack.frob.com>
68907
68908         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
68909         %eax without telling the compiler.
68910
68911 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
68912
68913         [BZ # 13963]
68914         * manual/install.texi: Use sourceware.org.
68915
68916 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
68917
68918         [BZ #13873]
68919         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
68920         (__ieee754_pow): Generate overflow and underflow using huge*huge
68921         and tiny*tiny rather than just returning constant infinity or zero
68922         for large exponents.
68923         * math/libm-test.inc (pow_test): Require overflow exceptions for
68924         applicable cases of large exponents.
68925
68926         [BZ #706]
68927         * sysdeps/i386/fpu/e_pow.S (p10): New object.
68928         (__ieee754_pow): Use iterative multiplication algorithm only for
68929         integer exponents with absolute value below 1024.  Check for odd
68930         integer exponents when using algorithm for real exponents.
68931         * math/libm-test.inc (pow_test): Add more tests.
68932         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68933
68934 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
68935
68936         [BZ #13705]
68937         * math/libm-test.inc (exp_test): Do not allow overflow exception
68938         on underflow test.
68939
68940 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
68941
68942         [BZ #13705]
68943         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
68944         instead of __kernel_standard_f.
68945
68946 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
68947
68948         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
68949         * sysdeps/x86_64/memset_chk.S: Likewise.
68950
68951 2012-04-08  Andreas Jaeger  <aj@suse.de>
68952
68953         [BZ #10153]
68954         * manual/startup.texi (Environment Access): Describe return value
68955         for putenv and setenv.
68956
68957         [BZ #6895]
68958         * manual/filesys.texi (Directory Entries): Add description for
68959         DT_LNK.
68960
68961         [BZ #6890]
68962         * manual/filesys.texi (Directory Entries): Clarify that it's file
68963         system not operating system in the description of DT_UNKNOWN.
68964
68965         [BZ #6578]
68966         * manual/syslog.texi (closelog): Fix reference, it's openlog.
68967
68968 2012-04-08  Stephen Compall  <s11@member.fsf.org>
68969
68970         [BZ #6649]
68971         * manual/llio.texi (Opening and Closing Files): Add cross
68972         reference to explain mode argument.
68973
68974 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
68975
68976         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
68977         * sysdeps/x86_64/memset_chk.S: Likewise.
68978
68979 2012-04-07  David S. Miller  <davem@davemloft.net>
68980
68981         * elf/elf.h (R_SPARC_WDISP10): Define.
68982         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
68983         R_SPARC_SIZE32.
68984         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
68985         R_SPARC_SIZE64 and R_SPARC_H34.
68986
68987 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
68988
68989         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
68990         conditions and remove no longer applicable assertion.
68991
68992 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
68993
68994         * bits/byteswap.h: Include <features.h>.
68995         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
68996         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
68997
68998 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
68999
69000         * bits/byteswap.h (__bswap_16): Removed.
69001         Include <bits/byteswap-16.h> to get __bswap_16.
69002         * sysdeps/i386/bits/byteswap.h: Likewise.
69003         * sysdeps/s390/bits/byteswap.h: Likewise.
69004         * sysdeps/x86_64/bits/byteswap.h: Likewise.
69005         * bits/byteswap-16.h: New file.
69006         * sysdeps/i386/bits/byteswap-16.h: Likewise.
69007         * sysdeps/s390/bits/byteswap-16.h: Likewise.
69008         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
69009         * string/Makefile (headers): Add bits/byteswap-16.h.
69010
69011 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
69012
69013         [BZ #13895]
69014         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
69015         extra indirection.
69016         * nss/Makefile (tests-static, tests): Add tst-nss-static.
69017         * nss/tst-nss-static.c: New.
69018
69019 2012-04-06  Robert Millan  <rmh@gnu.org>
69020
69021         [BZ #6486]
69022         * manual/llio.texi (File Position Primitive): lseek
69023         refers to WHENCE when it really means OFFSET.
69024
69025 2012-04-06  Andreas Jaeger  <aj@suse.de>
69026
69027         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
69028         strncmp declarations.
69029
69030         * abilist/libc.abilist: Add __poll and __ppoll.
69031
69032 2012-04-05  David S. Miller  <davem@davemloft.net>
69033
69034         * scripts/check-local-headers.sh: Accept a host triplet in the
69035         path matched by the exclude regexp.
69036
69037         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
69038         definition.
69039         * sysdeps/powerpc/powerpc32/dl-machine.h
69040         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
69041         * sysdeps/s390/s390-32/dl-machine.h
69042         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
69043         * sysdeps/sparc/sparc32/dl-machine.h
69044         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
69045         * sysdeps/sparc/sparc64/dl-machine.h
69046         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
69047
69048         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
69049         lazy binding.
69050         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
69051         undefined symbol errors.
69052
69053         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
69054         DT_NEEDED entries.
69055
69056 2012-04-05  Michael Matz  <matz@suse.de>
69057
69058         [BZ #13592]
69059         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
69060
69061 2012-04-05  Andreas Jaeger  <aj@suse.de>
69062
69063         [BZ #13908]
69064         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
69065         comment.
69066
69067 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
69068
69069         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
69070         which ROUND is no valid rounding mode.
69071
69072 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
69073
69074         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
69075         read again.
69076         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
69077
69078 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
69079
69080         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
69081         an exception using FPU order intentionally.
69082
69083 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
69084
69085         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
69086         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
69087         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
69088         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
69089
69090 2012-04-05  Simon Josefsson  <simon@josefsson.org>
69091
69092         [BZ #12340]
69093         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
69094         EINVAL when BUFLEN is too smal.
69095
69096 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
69097
69098         [BZ #13553]
69099         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
69100         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
69101
69102 2012-04-03  Andreas Jaeger  <aj@suse.de>
69103
69104         [BZ #13938]
69105         * manual/setjmp.texi (System V contexts): Fix sentence.
69106
69107         [BZ #13926]
69108         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
69109         New macro for this case.
69110         [!__GNUC__] (__bswap_64): New inline function for this case.
69111         * sysdeps/x86_64/bits/byteswap.h: Likewise.
69112         * bits/byteswap.h: Likewise.
69113         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
69114         ull, guard with __GLIBC_HAVE_LONG_LONG.
69115
69116         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
69117         __GLIBC_HAVE_LONG_LONG.
69118
69119         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
69120         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
69121
69122 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
69123
69124         [BZ #13691]
69125         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
69126         inptr and inend, rather than using last_ch.
69127
69128 2012-04-02  David S. Miller  <davem@davemloft.net>
69129
69130         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
69131         * stdio-common/printf-parse.h (read_int): Change return type to
69132         'int', return -1 on INT_MAX overflow.
69133         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
69134         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
69135         overflows INT_MAX.  Check for overflow of in-format-string precision
69136         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
69137         SIZE_MAX not INT_MAX for integer overflow test.
69138         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
69139         skip the construct in the format string but do not record anything.
69140         * stdio-common/bug22.c: Adjust to test both width/prevision
69141         INT_MAX overflow as well as total length INT_MAX overflow.  Check
69142         explicitly for proper errno values.
69143
69144 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
69145
69146         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
69147         CHAR_MAX.
69148         * string/test-strcmp.c [! WIDE]: Likewise.
69149         * time/tst-mktime2.c: Likewise for INT_MAX.
69150         * string/test-string.h: #include <sys/param.h> for MIN.
69151
69152         * csu/init-first.c (__libc_init_first): Call __ctype_init.
69153         * sysdeps/i386/init-first.c (init): Likewise.
69154         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
69155         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
69156         * sysdeps/sh/init-first.c (init): Likewise.
69157
69158 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
69159
69160         * po/ru.po: Update from translation team.
69161         * po/vi.po: Likewise.
69162
69163 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
69164
69165         * resolv/nss_dns/dns-host.c: Merge copyright years.
69166
69167 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69168
69169         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
69170         Optimize memcpy with prefetch if
69171         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
69172         src, dst pointers have unequal 16 byte alignments.
69173
69174 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
69175
69176         [BZ #13928]
69177         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
69178         from a CNAME entry and return the minimum ttl for the query.
69179         (gaih_getanswer_slice): Likewise.
69180
69181 2012-03-30  Jeff Law  <law@redhat.com>
69182
69183         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
69184         due to long keys.
69185         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
69186         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
69187
69188         * resolv/nss_dns/dns-host.c: Update copyright year.
69189
69190 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
69191
69192         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
69193         requests to save a system call.  Fix check that all bytes are sent.
69194
69195         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
69196         comments for sendmmsg.
69197
69198 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69199
69200         [BZ #13691]
69201         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
69202         with only 1 character between 0x0041 and 0x01b0.
69203         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
69204         * wcsmbs/tst-mbsnrtowcs.c: New file.
69205
69206 2012-03-29  David S. Miller  <davem@davemloft.net>
69207
69208         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
69209         small copies by hand.
69210
69211 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
69212
69213         [BZ #13761]
69214         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
69215         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
69216         group memberships.
69217
69218 2012-03-28  David S. Miller  <davem@davemloft.net>
69219
69220         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
69221         that branches into memcpy.
69222         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
69223         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
69224         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
69225         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
69226         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
69227         bits.
69228         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
69229         implementation too.
69230         * sysdeps/sparc/mempcpy.S: New file.
69231
69232         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
69233         the IFUNC routine in the libc case.
69234         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
69235
69236         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
69237         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
69238         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
69239         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
69240         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
69241         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
69242         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
69243         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
69244
69245         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
69246         loop to 256 bytes instead of 64 bytes and fix test signedness.
69247
69248         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
69249         * sysdeps/sparc/sparc32/Makefile: rather than here...
69250         * sysdeps/sparc/sparc64/Makefile: and here.
69251
69252 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
69253
69254         * malloc/mallocbug.c: Avoid warnings about unused variables.
69255
69256 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
69257
69258         [BZ #13760]
69259         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
69260         in the right place. Discard and retry query if response is
69261         larger than input buffer size.
69262
69263 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
69264
69265         [BZ #369]
69266         [BZ #2678]
69267         [BZ #3866]
69268         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
69269         x for large integer exponent.
69270         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
69271         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
69272         sign of result as needed afterwards.
69273         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
69274         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
69275         result for underflowing pow the same as for overflow.
69276         (__kernel_standard_l): Handle powl overflow and underflow here
69277         rather than calling __kernel_standard.
69278         * math/libm-test.inc (pow_test): Add more tests.
69279
69280         [BZ #3868]
69281         [BZ #13879]
69282         [BZ #13910]
69283         [BZ #13911]
69284         [BZ #13912]
69285         [BZ #13913]
69286         [BZ #13915]
69287         [BZ #13916]
69288         [BZ #13917]
69289         [BZ #13918]
69290         [BZ #13919]
69291         [BZ #13920]
69292         [BZ #13921]
69293         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
69294         * sysdeps/ieee754/k_standard.c: Include <float.h>.
69295         (__kernel_standard_l): New function.
69296         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
69297         __kernel_standard.
69298         * math/w_acosl.c (__acosl): Likewise.
69299         * math/w_asinl.c (__asinl): Likewise.
69300         * math/w_atan2l.c (__atan2l): Likewise.
69301         * math/w_atanhl.c (__atanhl): Likewise.
69302         * math/w_coshl.c (__coshl): Likewise.
69303         * math/w_exp10l.c (__exp10l): Likewise.
69304         * math/w_exp2l.c (__exp2l): Likewise.
69305         * math/w_fmodl.c (__fmodl): Likewise.
69306         * math/w_hypotl.c (__hypotl): Likewise.
69307         * math/w_j0l.c (__j0l, __y0l): Likewise.
69308         * math/w_j1l.c (__j1l, __y1l): Likewise.
69309         * math/w_jnl.c (__jnl, __ynl): Likewise.
69310         * math/w_lgammal.c (__lgammal): Likewise.
69311         * math/w_log10l.c (__log10l): Likewise.
69312         * math/w_log2l.c (__log2l): Likewise.
69313         * math/w_logl.c (__logl): Likewise.
69314         * math/w_powl.c (__powl): Likewise.
69315         * math/w_remainderl.c (__remainderl): Likewise.
69316         * math/w_scalbl.c (sysv_scalbl): Likewise.
69317         * math/w_sinhl.c (__sinhl): Likewise.
69318         * math/w_sqrtl.c (__sqrtl): Likewise.
69319         * math/w_tgammal.c (__tgammal): Likewise.
69320         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
69321         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
69322         * math/libm-test.inc (acos_test): Add more tests.
69323         (acosh_test): Likewise.
69324         (asin_test): Likewise.
69325         (atanh_test): Likewise.
69326         (exp_test): Likewise.
69327         (exp10_test): Likewise.
69328         (exp2_test): Likewise.
69329         (expm1_test): Likewise.
69330         (lgamma_test): Likewise.
69331         (log_test): Likewise.
69332         (log10_test): Likewise.
69333         (log1p_test): Likewise.
69334         (log2_test): Likewise.
69335         (pow_test): Do not allow some spurious overflow exceptions.
69336         (sqrt_test): Add more tests.
69337         (tgamma_test): Likewise.
69338         (y0_test): Likewise.
69339         (y1_test): Likewise.
69340         (yn_test): Likewise.
69341
69342 2012-03-27  Anton Blanchard  <anton@samba.org>
69343
69344         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
69345         MAP_HUGETLB.
69346         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
69347         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
69348         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
69349
69350 2012-03-27  David S. Miller  <davem@davemloft.net>
69351
69352         * conform/Makefile: Run run-conformtest.sh using $(BASH).
69353
69354         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
69355         have-as-vis3 check.
69356
69357 2012-03-27  Andreas Jaeger  <aj@suse.de>
69358
69359         * sysdeps/x86_64/elf/configure.in: Moved to ...
69360         * sysdeps/x86_64/configure.in: ... here.
69361         * sysdeps/x86_64/elf/start.S: Moved to ...
69362         * sysdeps/x86_64/start.S: ... here.
69363         * sysdeps/x86_64/elf/configure: Delete.
69364
69365         * sysdeps/x86_64/configure.in: Merge contents from
69366         sysdeps/i386/configure.in (without i686 check).
69367
69368         * sysdeps/i386/elf/Versions: Merge into ...
69369         * sysdeps/i386/Versions: ... this.
69370         * sysdeps/i386/elf/Versions: Delete file.
69371         * sysdeps/i386/elf/start.S: Moved to ...
69372         * sysdeps/i386/start.S: ...here.
69373         * sysdeps/i386/elf/configure.in: Merge into...
69374         * sysdeps/i386/configure.in: ...here.
69375         * sysdeps/i386/elf/configure.in: Delete file.
69376         * sysdeps/i386/elf/configure: Delete file.
69377
69378         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
69379         * debug/backtracesyms.c: ... here.
69380         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
69381         * debug/backtracesymsfd.c: ... here.
69382         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
69383         * sysdeps/generic/ifunc-sel.h: ... here.
69384
69385         * sysdeps/unix/i386/start.c: Delete file.
69386         * sysdeps/unix/sparc/start.c: Delete file.
69387         * sysdeps/unix/start.c: Delete file.
69388
69389         * sysdeps/sh/elf/configure.in: Moved to ...
69390         * sysdeps/sh/configure.in: ... here.
69391         * sysdeps/sh/elf/start.S: Moved to ...
69392         * sysdeps/sh/start.S: ... here.
69393         * sysdeps/sh/elf/configure: Delete file.
69394
69395         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
69396         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
69397         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
69398         * sysdeps/powerpc/powerpc64/entry.h: ... here.
69399         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
69400         * sysdeps/powerpc/powerpc64/start.S: here.
69401         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
69402         * sysdeps/powerpc/powerpc64/Makefile: ... this.
69403         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
69404         * sysdeps/powerpc/powerpc64/configure.in: ... this.
69405         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
69406
69407         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
69408         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
69409         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
69410         * sysdeps/powerpc/powerpc32/start.S: ... here.
69411         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
69412         * sysdeps/powerpc/powerpc32/configure.in: ... this.
69413         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
69414
69415         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
69416         * sysdeps/powerpc/ifunc-sel.h: ... here.
69417         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
69418         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
69419
69420         * sysdeps/sparc/elf/configure.in: Moved to ...
69421         * sysdeps/sparc/configure.in: ... here.
69422         * sysdeps/sparc/elf/configure: Delete file.
69423         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
69424         * sysdeps/sparc/sparc32/start.S: ... here.
69425         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
69426         * sysdeps/sparc/sparc64/start.S: ... here.
69427         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
69428         * sysdeps/sparc/sparc32/Makefile: ... this.
69429         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
69430         * sysdeps/sparc/sparc64/Makefile: ... this.
69431
69432         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
69433         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
69434         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
69435         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
69436         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
69437         * sysdeps/s390/s390-32/setjmp.S: ... here.
69438         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
69439         * sysdeps/s390/s390-32/configure.in: ... here.
69440         * sysdeps/s390/s390-32/elf/configure: Delete file.
69441         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
69442         * sysdeps/s390/s390-32/start.S: ... here.
69443
69444         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
69445         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
69446         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
69447         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
69448         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
69449         * sysdeps/s390/s390-64/setjmp.S: ... here.
69450         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
69451         * sysdeps/s390/s390-64/configure.in: ... here
69452         * sysdeps/s390/s390-64/elf/configure: Delete file.
69453         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
69454         * sysdeps/s390/s390-64/start.S: ... here.
69455         * sysdeps/s390/s390-64/elf/configure: Delete.
69456
69457         * configure.in: Remove support for elf directories in sysdeps.
69458
69459         * configure: Regenerated.
69460         * sysdeps/i386/configure: Regenerated.
69461         * sysdeps/powerpc/powerpc32/configure: Regenerated.
69462         * sysdeps/powerpc/powerpc64/configure: Regenerated.
69463         * sysdeps/s390/s390-32/configure: Regenerated.
69464         * sysdeps/s390/s390-64/configure: Regenerated.
69465         * sysdeps/sh/configure: Regenerated.
69466         * sysdeps/sparc/configure: Regenerated.
69467         * sysdeps/x86_64/configure: Regenerated.
69468
69469 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
69470
69471         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69472
69473         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
69474         denormal result into account.
69475
69476 2012-03-25  Roland McGrath  <roland@hack.frob.com>
69477
69478         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
69479         Reported by Allan McRae <allan@archlinux.org>.
69480
69481 2012-03-23  Jeff Law  <law@redhat.com>
69482
69483         * nss/getnssent.c (__nss_getent): Fix typo.
69484
69485 2012-03-23  David S. Miller  <davem@davemloft.net>
69486
69487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69488
69489 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
69490
69491         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
69492         to pad to uint64_t for each field.
69493         (dl_tls_index): Replace unsigned long with uint64_t.
69494
69495 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
69496         Paul Pluzhnikov  <ppluzhnikov@google.com>
69497
69498         [BZ #6528]
69499         * grp/Makefile (otherlibs): Don't set it.
69500         * inet/Makefile (otherlibs): Likewise.
69501         * login/Makefile (otherlibs): Likewise.
69502         * nscd/Makefile (otherlibs): Likewise.
69503         * posix/Makefile (otherlibs): Likewise.
69504         * pwd/Makefile (otherlibs): Likewise.
69505         * rt/Makefile (otherlibs): Likewise.
69506         * sunrpc/Makefile (otherlibs): Likewise.
69507         * nss/Makefile (otherlibs): Likewise.
69508         Add libnss_files to routines and static-only-routines.
69509         ($(objpfx)getent): Remove rule.
69510         * resolv/Makefile: Add libnss_dns and libresolv to routines and
69511         static-only-routines.
69512
69513 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
69514
69515         [BZ #13892]
69516         * math/s_cexp.c: Include <float.h>.
69517         (__cexp): Handle exp result overflowing not necessarily
69518         overflowing both real and imaginary parts of result.
69519         * math/s_cexpf.c: Likewise.
69520         * math/s_cexpl.c: Likewise.
69521         * math/libm-test.inc (cexp_test): Add more tests.
69522         * sysdeps/i386/fpu/libm-test-ulps: Update.
69523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69524
69525 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
69526
69527         * include/link.h (ELFW): New macro.
69528         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
69529         Replace ELF64_R_TYPE with ELFW(R_TYPE).
69530
69531 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
69532
69533         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
69534         with uint64_t.
69535
69536 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
69537
69538         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
69539         declaration.
69540         (struct La_x32_retval): Likewise.
69541
69542 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
69543
69544         * sysdeps/x86_64/preconfigure.in: New file.
69545         * sysdeps/x86_64/preconfigure: New generated file.
69546
69547 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
69548
69549         [BZ #13824]
69550         * math/e_exp2l.c: Include <float.h>.
69551         (__ieee754_exp2l): Handle overflow and underflow cases
69552         separately.  Only pass fractional part of argument to
69553         __ieee754_expl.
69554         * math/libm-test.inc (exp2_test): Add more tests.
69555
69556         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
69557         negating x to take absolute value.
69558         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
69559         Likewise.
69560         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
69561         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
69562         Likewise.
69563         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
69564         computing low part if x was negated.
69565         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
69566
69567 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
69568
69569         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
69570         la_x32_gnu_pltexit.
69571         (pltexit): Cast int_retval to ptrdiff_t.
69572         * elf/tst-auditmod3b.c: Likewise.
69573         * elf/tst-auditmod4b.c: Likewise.
69574         * elf/tst-auditmod5b.c: Likewise.
69575         * elf/tst-auditmod6b.c: Likewise.
69576         * elf/tst-auditmod6c.c: Likewise.
69577         * elf/tst-auditmod7b.c: Likewise.
69578
69579         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
69580         and x32_gnu_pltexit.
69581
69582         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
69583         __ELF_NATIVE_CLASS.
69584         (La_x32_regs): New macro.
69585         (La_x32_retval): Likewise.
69586         (la_x32_gnu_pltenter): New function prototype.
69587         (la_x32_gnu_pltexit): Likewise.
69588
69589 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
69590
69591         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
69592         exponent.
69593
69594         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69595
69596         * configure.in (libc_cv_cc_nofma): Check for option to disable
69597         generation of FMA instructions.
69598         * configure: Regenerate.
69599         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
69600         * sysdeps/ieee754/dbl-64/Makefile: New file.
69601         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
69602         Remove brandred-fma4.
69603         (CFLAGS-brandred-fma4.c): Remove.
69604         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
69605         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
69606         define.
69607         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
69608         define.
69609
69610 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
69611
69612         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
69613         LLONG_MAX != LONG_MAX.
69614         (_itoa_word): Use _ITOA_WORD_TYPE on value.
69615         (_fitoa_word): Likewise.
69616         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
69617         LLONG_MAX != LONG_MAX.
69618         * stdio-common/_itowa.h: Include <_itoa.h>.
69619         (_itowa_word): Use _ITOA_WORD_TYPE on value.
69620         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
69621         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
69622         only if not defined.
69623         (_ITOA_WORD_TYPE): Likewise.
69624         (_itoa_word): Use _ITOA_WORD_TYPE on value.
69625         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
69626
69627 2012-03-21  David S. Miller  <davem@davemloft.net>
69628
69629         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69630
69631 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
69632
69633         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
69634         of x86_64 when setting libc_cv_slibdir, libdir and
69635         libc_cv_localedir.
69636         * sysdeps/unix/sysv/linux/configure: Regenerated.
69637
69638 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
69639
69640         * manual/lang.texi (Old Varargs): Remove section.
69641         (How Variadic): Update menu.
69642         (va_start): Do not mention varargs.h.
69643
69644 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
69645             Joseph Myers  <joseph@codesourcery.com>
69646
69647         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
69648         link test.
69649         * configure: Regenerated.
69650
69651 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
69652
69653         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
69654         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
69655         conformtest.pl
69656
69657 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
69658
69659         * NOTES: Remove.
69660         * Makefile (files-for-dist): Remove NOTES.
69661         (NOTES): Remove rule.
69662         * README: Don't refer to NOTES.
69663         * manual/creature.texi: Don't include macros.texi.
69664         * manual/intro.texi (creature.texi): Remove comment referring to
69665         NOTES.
69666
69667         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
69668         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
69669         * configure: Regenerated.
69670         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
69671         LIBC_TRY_CC_OPTION.
69672         (libc_cv_as_i686): Likewise.
69673         (libc_cv_cc_avx): Likewise.
69674         (libc_cv_cc_sse2avx): Likewise.
69675         (libc_cv_cc_fma4): Likewise.
69676         (libc_cv_cc_novzeroupper): Likewise.
69677         * sysdeps/i386/configure: Regenerated.
69678
69679         [BZ #13883]
69680         * sysdeps/i386/fpu/s_cexp.S: Remove.
69681         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69682         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69683         * math/libm-test.inc (cexp_test): Add more tests.
69684         * sysdeps/i386/fpu/libm-test-ulps: Update.
69685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69686
69687 2012-03-21  Allan McRae  <allan@archlinux.org>
69688
69689         * timezone/Makefile: Do not install iso3166.tab and zone.tab
69690
69691 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
69692
69693         [BZ #13871]
69694         * math/w_exp2.c: Do not include <float.h>.
69695         (o_threshold, u_threshold): Remove.
69696         (__exp2): Calculate result before checking finiteness and calling
69697         __kernel_standard.
69698         * math/w_exp2f.c: Likewise.
69699         * math/w_exp2l.c: Likewise.
69700         * math/libm-test.inc (exp2_test): Require overflow exception for
69701         1e6 input.
69702
69703         [BZ #3866]
69704         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
69705         range of signed 64-bit integers before using fistpll.  Remove
69706         checks for whether integers fit in mantissa bits.
69707         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
69708         the range of signed 32-bit integers before using fistpl.  Remove
69709         checks for whether integers fit in mantissa bits.
69710         * sysdeps/i386/fpu/e_powl.S (p64): New object.
69711         (__ieee754_powl): Test for y outside the range of signed 64-bit
69712         integers before using fistpll.  Reduce 64-bit values to 63-bit
69713         ones as needed.
69714         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
69715         divide-by-zero is raised for zero to large negative powers.
69716         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
69717         (__ieee754_powl): Test for y outside the range of signed 64-bit
69718         integers before using fistpll.  Reduce 64-bit values to 63-bit
69719         ones as needed.
69720         * math/libm-test.inc (pow_test): Add more tests.
69721
69722 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
69723
69724         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
69725         <stdio-common/_itoa.h>.
69726         * debug/segfault.c: Likewise.
69727         * elf/dl-cache.c: Likewise.
69728         * elf/dl-minimal.c: Likewise.
69729         * elf/dl-misc.c: Likewise.
69730         * elf/dl-sysdep.c: Likewise.
69731         * elf/dl-version.c: Likewise.
69732         * elf/rtld.c: Likewise.
69733         * hurd/hurdsock.c: Likewise.
69734         * hurd/lookup-retry.c: Likewise.
69735         * malloc/malloc.c: Likewise.
69736         * malloc/mtrace.c: Likewise.
69737         * nscd/nscd_getgr_r.c: Likewise.
69738         * nscd/nscd_getpw_r.c: Likewise.
69739         * nscd/nscd_getserv_r.c: Likewise.
69740         * posix/getopt_init.c: Likewise.
69741         * posix/wordexp.c: Likewise.
69742         * stdio-common/_itoa.c: Likewise.
69743         * stdio-common/printf_fphex.c: Likewise.
69744         * stdio-common/vfprintf.c: Likewise.
69745         * string/_strerror.c: Likewise.
69746         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
69747         * sysdeps/i386/i686/hp-timing.h: Likewise.
69748         * sysdeps/mach/_strerror.c: Likewise.
69749         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
69750         * sysdeps/mach/hurd/sethostid.c: Likewise.
69751         * sysdeps/mach/hurd/xmknodat.c: Likewise.
69752         * sysdeps/mach/xpg-strerror.c: Likewise.
69753         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
69754         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
69755         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
69756         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
69757         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
69758         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
69759         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
69760         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
69761         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
69762         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
69763         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
69764         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
69765         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
69766         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
69767         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
69768         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
69769         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
69770         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
69771         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
69772         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
69773         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
69774
69775         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
69776
69777         * stdio-common/_itoa.h: Moved to ...
69778         * sysdeps/generic/_itoa.h: Here.
69779
69780         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
69781
69782         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
69783         instead of "_itoa.h" and "_itowa.h".
69784         * stdio-common/vfprintf.: Likewise.
69785
69786 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
69787
69788         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
69789         <bits/wordsize.h>.
69790         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
69791         (__signbit): Likwise.
69792         (llrintf): Likwise.
69793         (llrint): Likwise.
69794
69795 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
69796
69797         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
69798         __WORDSIZE != 64.
69799
69800 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
69801
69802         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
69803         OVERFLOW_EXCEPTION_OK.
69804         * math/libm-test.inc ("Philosophy"): Update comment about
69805         exception testing.
69806         (OVERFLOW_EXCEPTION): Define.
69807         (OVERFLOW_EXCEPTION_OK): Likewise.
69808         (INVALID_EXCEPTION_OK): Renumber.
69809         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
69810         (IGNORE_ZERO_INF_SIGN): Likewise.
69811         (test_exceptions): Handle FE_OVERFLOW.
69812         (exp10_test): Expect overflow exceptions.
69813         (exp2_test): Likewise.
69814         (expm1_test): Likewise.
69815         (nextafter_test): Likewise.
69816         (pow_test): Likewise.
69817         (scalbn_test): Likewise.
69818         (scalbln_test): Likewise.
69819
69820 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
69821
69822         * sysdeps/x86_64/bits/atomic.h
69823         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
69824         64bit integer.
69825         (atomic_exchange_acq): Likewise.
69826         (__arch_exchange_and_add_body): Likewise.
69827         (__arch_add_body): Likewise.
69828         (atomic_add_negative): Likewise.
69829         (atomic_add_zero): Likewise.
69830
69831 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
69832
69833         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
69834         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
69835
69836 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
69837
69838         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
69839         Check __x86_64__ instead of __WORDSIZE.
69840
69841 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
69842
69843         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
69844
69845 2012-03-19  David S. Miller  <davem@davemloft.net>
69846
69847         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69848
69849         * sysdeps/sparc/fpu/fenv_private.h: New file.
69850         * sysdeps/sparc/fpu/math_private.h: Use it.
69851         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
69852         Remove.
69853         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
69854         (libc_feholdexcept_setroundl): Remove.
69855         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
69856         Remove.
69857         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
69858         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
69859
69860 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
69861
69862         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
69863         int64_t instead of long int.
69864         (INSERT_WORDS64): Likwise.
69865
69866 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
69867
69868         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
69869         _Unwind_GetCFA return to _Unwind_Ptr first.
69870
69871 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
69872
69873         [BZ #13629]
69874         * math/s_clog.c: Include <float.h>.
69875         (__clog): Scale large or subnormal inputs.
69876         * math/s_clogf.c: Likewise.
69877         * math/s_clogl.c: Likewise.
69878         * math/s_clog10.c: Include <float.h>.
69879         (M_LOG10_2): Define.
69880         (__clog10): Scale large or subnormal inputs.
69881         * math/s_clog10f.c: Likewise.
69882         * math/s_clog10l.c: Likewise.
69883         * math/libm-test.inc (clog_test): Add more tests.
69884         (clog10_test): Likewise.
69885         * sysdeps/i386/fpu/libm-test-ulps: Update.
69886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69887
69888         [BZ #11451]
69889         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
69890         x and y.
69891         * math/libm-test.inc (atan2_test): Add another test.
69892
69893         * Makerules (common-objdir-compile): Remove.
69894         * sysdeps/unix/Makefile (config-generated): Do not add
69895         $(unix-generated) to variable.
69896         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
69897         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
69898         Remove rule.
69899         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
69900         Likewise.
69901         [generic bits/local_lim.h] (before-compile): Do not append to
69902         variable.
69903         [generic bits/local_lim.h] (common-generated): Likewise.
69904         [generic sys/param.h] (before-compile): Do not append to variable.
69905         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
69906         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
69907         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
69908         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
69909         include.
69910         [generic sys/param.h] (sys/param.h-includes): Remove variable.
69911         [generic sys/param.h] (sys/param.h-includes): Remove rule.
69912         [generic sys/param.h] ($(addprefix
69913         $(common-objpfx),$(sys/param.h-includes))): Likewise.
69914         [generic sys/param.h] (common-generated): Do not append to
69915         variable.
69916         [generic sys/param.h] (sysdep_headers): Likewise.
69917         [generic bits/errno.h] (before-compile): Do not append to
69918         variable.
69919         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
69920         rule.
69921         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
69922         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
69923         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
69924         [generic bits/errno.h] (common-generated): Do not append to
69925         variable.
69926         [generic bits/ioctls.h] (before-compile): Do not append to
69927         variable.
69928         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
69929         rule.
69930         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
69931         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
69932         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
69933         rule.
69934         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
69935         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
69936         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
69937         [generic bits/ioctls.h] (common-generated): Do not append to
69938         variable.
69939         [generic sys/syscall.h] (syscall.h): Remove variable.
69940         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
69941         rule.
69942         [generic sys/syscall.h] (before-compile): Do not append to
69943         variable.
69944         [generic sys/syscall.h] (common-generated): Likewise.
69945         * sysdeps/unix/errnos-tmpl.c: Remove file.
69946         * sysdeps/unix/errnos.awk: Likewise.
69947         * sysdeps/unix/ioctls-tmpl.c: Likewise.
69948         * sysdeps/unix/ioctls.awk: Likewise.
69949         * sysdeps/unix/mk-local_lim.c: Likewise.
69950         * sysdeps/unix/snarf-ioctls: Likewise.
69951
69952 2012-03-19  Richard Henderson  <rth@twiddle.net>
69953
69954         * sysdeps/i386/fpu/fenv_private.h: New file.
69955         * sysdeps/i386/fpu/math_private.h: Use it.
69956         (math_opt_barrier, math_force_eval): Remove.
69957         (libc_feholdexcept_setround_53bit): Remove.
69958         (libc_feupdateenv_53bit): Remove.
69959         * sysdeps/x86_64/fpu/math_private.h: Likewise.
69960         (math_opt_barrier, math_force_eval): Remove.
69961         (libc_feholdexcept): Remove.
69962         (libc_feholdexcept_setround): Remove.
69963         (libc_fetestexcept, libc_fesetenv): Remove.
69964         (libc_feupdateenv_test): Remove.
69965         (libc_feupdateenv, libc_feholdsetround): Remove.
69966         (libc_feresetround): Remove.
69967
69968         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
69969         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
69970
69971         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
69972         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
69973         (libc_feupdateenv_testl): New.
69974         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
69975         (libc_feupdateenv_testf): New.
69976         (libc_feupdateenv): Use libc_feupdateenv_test.
69977         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
69978         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
69979
69980         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
69981         (libc_feholdsetroundf, libc_feholdsetroundl): New.
69982         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
69983         (libc_feresetround_noex): New.
69984         (libc_feresetround_noexf): New.
69985         (libc_feresetround_noexl): New.
69986         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
69987         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
69988         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
69989         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
69990         SET_RESTORE_ROUND.
69991         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
69992         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
69993         (__cos): Likewise.
69994         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
69995         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
69996         SET_RESTORE_ROUND_NOEX.
69997         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
69998         SET_RESTORE_ROUND_NOEXF.
69999         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
70000         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
70001         (libc_feholdsetroundf): New.
70002         (libc_feresetround, libc_feresetroundf): New.
70003
70004         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
70005         (libc_feholdexcept_setround_53bit): Convert from macro to function.
70006         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
70007
70008         * sysdeps/generic/math_private.h: Include <fenv.h>.
70009         (default_libc_feholdexcept): New.
70010         (default_libc_feholdexcept_setround): New.
70011         (default_libc_fesetenv, default_libc_feupdateenv): New.
70012         (libc_feholdexcept): Only define if undefined.
70013         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
70014         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
70015         (libc_feholdexcept_setroundl): Likewise.
70016         (libc_feholdexcept_setround_53bit): Likewise.
70017         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
70018         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
70019         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
70020         (libc_feupdateenv_53bit): Likewise.
70021         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
70022         (libc_feholdexcept): Convert from macro to inline function.
70023         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
70024         (libc_fesetenv, libc_feupdateenv): Likewise.
70025
70026         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
70027         not previously defined.
70028         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
70029         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
70030         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
70031         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
70032         * sysdeps/ieee754/flt-32/math_private.h: New file.
70033         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
70034         math_private.h below SET_FLOAT_WORD.
70035         (__isnan, __isinf_ns, __finite): Remove.
70036         (__isnanf, __isinf_nsf, __finitef): Remove.
70037
70038 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
70039
70040         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70041
70042 2012-03-17  David S. Miller  <davem@davemloft.net>
70043
70044         [BZ #6471]
70045         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
70046         for 2.16.
70047
70048 2012-03-16  David S. Miller  <davem@davemloft.net>
70049
70050         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
70051         warnings.
70052
70053         [BZ #6471]
70054         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
70055         properly.
70056         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
70057         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
70058         sysdep_routines when subdir is sysvipc.
70059         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
70060         __getshmlba helper.
70061
70062         * sysdeps/sparc/fpu/libm-test/ulps: Update.
70063
70064 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70065
70066         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
70067         [__LP64__].
70068
70069 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70070
70071         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
70072         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
70073         (__lround): Renamed to ...
70074         (__llround): This.  Replace long int with long long int.
70075         Define lround functions as aliases of llround functions.
70076         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
70077
70078 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70079
70080         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
70081         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
70082         adresses to uintptr_t.  Replace "long int" and "unsigned long
70083         int" with "greg_t" on va_arg.
70084
70085 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70086
70087         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
70088         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
70089
70090         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
70091         Move e_machine check before EI_CLASS check.  Handle x32
70092         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
70093         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
70094         SKIP_EM_IA_64 and include
70095         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
70096
70097         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
70098         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
70099         (add_system_dir): New macro.
70100
70101         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
70102         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
70103
70104 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
70105
70106         [BZ #2551]
70107         [BZ #2552]
70108         [BZ #2553]
70109         [BZ #2554]
70110         [BZ #2562]
70111         [BZ #2563]
70112         [BZ #2565]
70113         [BZ #2566]
70114         [BZ #2576]
70115         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
70116         (y0): Likewise.
70117         * math/w_j0f.c (j0f): Likewise.
70118         (y0f): Likewise.
70119         * math/w_j0l.c (__j0l): Likewise.
70120         (__y0l): Likewise.
70121         * math/w_j1.c (j1): Likewise.
70122         (y1): Likewise.
70123         * math/w_j1f.c (j1f): Likewise.
70124         (y1f): Likewise.
70125         * math/w_j1l.c (__j1l): Likewise.
70126         (__y1l): Likewise.
70127         * math/w_jn.c (jn): Likewise.
70128         (yn): Likewise.
70129         * math/w_jnf.c (jnf): Likewise.
70130         (ynf): Likewise.
70131         * math/w_jnl.c (__jnl): Likewise.
70132         (__ynl): Likewise.
70133         * math/libm-test.inc (j0_test): Add more tests.
70134         (j1_test): Likewise.
70135         (jn_test): Likewise.  Add trailing semicolon to existing test.
70136         (y0_test): Likewise.
70137         (y1_test): Likewise.
70138         * sysdeps/i386/fpu/libm-test-ulps: Update.
70139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70140
70141         [BZ #13851]
70142         [BZ #13854]
70143         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
70144         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
70145         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
70146         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
70147         (__tanl): Set errno for infinite argument.
70148         * sysdeps/i386/fpu/mptan.c: Remove.
70149         * sysdeps/i386/fpu/s_tan.S: Likewise.
70150         * sysdeps/i386/fpu/s_tanl.S: Likewise.
70151         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
70152         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
70153         * math/libm-test.inc (tan_test): Add more tests and enable more
70154         tests for double and long double.
70155         * sysdeps/i386/fpu/libm-test-ulps: Update.
70156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70157
70158 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
70159
70160         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
70161         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
70162
70163 2012-03-16  Roland McGrath  <roland@hack.frob.com>
70164
70165         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
70166         * configure.in: Use it for both main tree and add-ons.
70167         * configure: Regenerated.
70168
70169 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
70170
70171         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
70172
70173 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
70174
70175         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
70176         in comment.
70177
70178         [BZ #13851]
70179         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
70180         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
70181         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
70182         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
70183         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
70184         infinite argument.
70185         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
70186         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
70187         != 0 for prec == 2.
70188         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
70189         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
70190         * sysdeps/i386/fpu/s_cosl.S: Likewise.
70191         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
70192         * sysdeps/i386/fpu/s_sinl.S: Likewise.
70193         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
70194         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
70195         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
70196         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
70197         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
70198         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
70199         * math/libm-test.inc (cos_test): Add more tests and enable more
70200         tests for long double.
70201         (sin_test): Likewise.
70202         (sincos_test): Likewise.
70203         * sysdeps/i386/fpu/libm-test-ulps: Update.
70204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70205
70206 2012-03-16  David S. Miller  <davem@davemloft.net>
70207
70208         * sysdeps/sparc/fpu/math_private.h: New file.
70209
70210 2012-03-15  David S. Miller  <davem@davemloft.net>
70211
70212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
70213         file.
70214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
70215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
70216         file.
70217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
70218         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
70219         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
70220         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
70221         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
70222         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
70223         sysdep routines.
70224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
70225
70226         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
70227         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
70228
70229         * sysdeps/sparc/sparc-ifunc.h: New file.
70230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
70231         sparc-ifunc.h
70232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
70233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
70234         Likewise.
70235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
70236         Likewise.
70237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
70238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
70239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
70240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
70241         Likewise.
70242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
70243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
70244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
70245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
70246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
70247         Likewise.
70248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
70249         Likewise.
70250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
70251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
70252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
70253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
70254         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
70255         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
70256         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
70257         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
70258         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
70259         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
70260         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
70261         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
70262         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
70263         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
70264         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
70265         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
70266         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
70267         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
70268         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
70269         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
70270         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
70271         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
70272         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
70273         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
70274
70275 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
70276
70277         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
70278         scaling.
70279         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70280
70281 2012-03-15  Andreas Jaeger  <aj@suse.de>
70282
70283         [BZ #13852]
70284         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
70285         ieee754/flt-32 implementation for sin, cos and sincos.
70286         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
70287         * sysdeps/i386/fpu/s_cosf.S: Likewise.
70288         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
70289         * sysdeps/i386/fpu/s_sinf.S: Likewise.
70290         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
70291         ieee754/flt-32 implementation for tan.
70292
70293         * math/libm-test.inc (cos_test): Enable some large input tests for
70294         float as well
70295         (sin_test): Likewise.
70296         (sincos_test): Likewise.
70297         (tan_test): Add tests for large input.
70298
70299         * sysdeps/i386/fpu/libm-test-ulps: Update.
70300
70301 2012-03-15  Andreas Jaeger  <aj@suse.de>
70302
70303         [BZ #13658]
70304         * math/libm-test.inc (cos_test): Add more test cases.
70305         (sin_test): Likewise.
70306         (sincos_test): Likewise.
70307
70308 2012-03-15  Andreas Jaeger  <aj@suse.de>
70309
70310         [BZ #13837]
70311         * math/libm-test.inc (cos_test): Add a test case for large input
70312         value.
70313         (sin_test): Likewise.
70314         (sincos_test): Likewise.
70315
70316 2012-03-15  Andreas Jaeger  <aj@suse.de>
70317             Joseph Myers  <joseph@codesourcery.com>
70318
70319         [BZ #13658]
70320         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
70321         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
70322         * sysdeps/i386/fpu/branred.c: Likewise.
70323         * sysdeps/i386/fpu/dosincos.c: Likewise.
70324         * sysdeps/i386/fpu/mpa.c: Likewise.
70325         * sysdeps/i386/fpu/s_cos.S: Likewise.
70326         * sysdeps/i386/fpu/s_sin.S: Likewise.
70327         * sysdeps/i386/fpu/s_sincos.S: Likewise.
70328         * sysdeps/i386/fpu/sincos32.c: Likewise.
70329
70330         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
70331         Define.
70332         (libc_feupdateenv_53bit): Define.
70333         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
70334         Define.
70335         (libc_feupdateenv_53bit): Define.
70336
70337         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
70338         53 bit (without extend i386 double precision).
70339
70340         * math/libm-test.inc (sincos_test): Add tests for large input.
70341         (sin): Likewise.
70342         (cos): Likewise.
70343
70344         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
70345
70346 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
70347
70348         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70349
70350 2012-03-15  David S. Miller  <davem@davemloft.net>
70351
70352         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
70353         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
70354         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
70355         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
70356         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
70357         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
70358         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
70359         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
70360         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
70361         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
70362         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
70363         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
70364         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
70365         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
70366         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
70367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
70368         file.
70369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
70370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
70371         file.
70372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
70373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
70374         file.
70375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
70376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
70377         file.
70378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
70379         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
70380         fmin/fmax sysdep routines.
70381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
70382
70383 2012-03-14  David S. Miller  <davem@davemloft.net>
70384
70385         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
70386         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
70387         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
70388         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
70389         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
70390         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
70391         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
70392         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
70393         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
70394         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
70395         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
70396         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
70397         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
70398         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
70399         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
70400         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
70401         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
70402         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
70403         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
70404         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
70405         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
70406         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
70407         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
70408         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
70409         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
70410         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
70411         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
70412         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
70413         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
70414         routines.
70415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
70416         file.
70417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
70418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
70419         file.
70420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
70421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
70422         file.
70423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
70424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
70425         file.
70426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
70427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
70428         file.
70429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
70430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
70431         file.
70432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
70433         file.
70434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
70435         file.
70436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
70437         file.
70438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
70439         New file.
70440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
70441         file.
70442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
70443         file.
70444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
70445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
70446         file.
70447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
70448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
70449         file.
70450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
70451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
70452         file.
70453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
70454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
70455         VIS3 routines.
70456
70457         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
70458         New file.
70459
70460         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70461
70462         * sysdeps/sparc/configure.in: New file.
70463         * sysdeps/sparc/configure: Generate.
70464         * configure.in (libc_cv_sparc_as_vis3): Substitute.
70465         * configure: Regenerate.
70466         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
70467         * config.make.in (have-as-vis3): New.
70468         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
70469         available use -Av9d instead of -Av9a.
70470         * sysdeps/sparc/sparc64/Makefile: Likewise.
70471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
70472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
70473         New file.
70474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
70475         file.
70476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
70477         New file.
70478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
70479         file.
70480         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
70481         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
70482         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
70483         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
70484         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
70485
70486         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
70487         fzeros/fnegs to load 0x80000000 into a float register instead of
70488         using the stack.
70489         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
70490
70491 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
70492
70493         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
70494         bits/syscall.h.
70495         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
70496         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
70497         ($(inst_includedir)/bits/syscall.h): Remove rule.
70498         ($(objpfx)bits/syscall.d): Include instead of
70499         $(objpfx)syscall-list.d.
70500         (generated): Change syscall-list.h and syscall-list.d to
70501         bits/syscall.h and bits/syscall.d.
70502
70503 2012-03-14  Roland McGrath  <roland@hack.frob.com>
70504
70505         [BZ #13846]
70506         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
70507
70508 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
70509
70510         [BZ #13841]
70511         * math/s_csqrt.c: Include <float.h>.
70512         (__csqrt): Scale large or subnormal inputs.
70513         * math/s_csqrtf.c: Likewise.
70514         * math/s_csqrtl.c: Likewise.
70515         * math/libm-test.inc (csqrt_test): Add more tests.
70516         * sysdeps/i386/fpu/libm-test-ulps: Update.
70517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70518
70519         [BZ #13840]
70520         * math/libm-test.inc (hypot_test): Add more tests.
70521
70522 2012-03-13  David S. Miller  <davem@davemloft.net>
70523
70524         [BZ #13840]
70525         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
70526         double-precision for the calculation instead of scaling.
70527
70528 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
70529
70530         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
70531         manipulate bits before adding and subtracting TWO52[sx].
70532         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
70533         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
70534         Likewise.
70535         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
70536
70537 2012-03-13  David S. Miller  <davem@davemloft.net>
70538
70539         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
70540         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
70541         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
70542         rtld-global-offsets.h
70543         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
70544
70545         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
70546         large parameters.
70547
70548         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
70549
70550         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
70551         'err' in the ifdef scope in which it is actually used.
70552
70553         * nss/nss_db/db-init.c: Include string.h
70554
70555 2012-03-12  David S. Miller  <davem@davemloft.net>
70556
70557         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
70558         masking out of the most significant byte of random value used.
70559         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
70560         Fix coding style in previous change.
70561
70562         * sysdeps/unix/sysv/linux/kernel-features.h
70563         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
70564         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
70565         expression.
70566         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
70567         later.
70568
70569 2012-03-11  David S. Miller  <davem@davemloft.net>
70570
70571         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
70572         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
70573         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
70574         for 'resultvar' otherwise things get truncated on 64-bit.
70575
70576         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
70577         Fix masking out of the most significant byte of random value used.
70578
70579         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70580
70581 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
70582
70583         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70584
70585 2012-03-09  David S. Miller  <davem@davemloft.net>
70586
70587         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
70588         variables with appropriate CPP guards.
70589         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
70590         from the frame pointer, not the stack pointer.  Correct layout
70591         comments.  Fix test on resulting framesize and the management of
70592         the outregs buffer for pltexit.  Preserve floating point return
70593         values across _dl_call_pltexit call.
70594         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
70595         framesize and the management of the outregs buffer for pltexit.
70596         Preserve floating point return values across _dl_call_pltexit
70597         call.
70598         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
70599         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
70600         (la_sparc64_gnu_pltexit): New functions.
70601         (print_exit): Fix format string for return register value.
70602
70603 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
70604
70605         * sunrpc/Makefile (others): Add rpcgen.
70606         ($(objpfx)rpcgen): Remove special build rule and dependency on
70607         libc.
70608         * sunrpc/rpcgen.c: New file.
70609
70610 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70611
70612         [BZ #13673]
70613         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
70614         * stdio-common/bug-vfprintf-nargs.c: Likewise.
70615         * sysdeps/i386/crti.S: Likewise.
70616         * sysdeps/i386/crtn.S: Likewise.
70617         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
70618         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
70619         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
70620         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
70621         * sysdeps/sh/crti.S: Likewise.
70622         * sysdeps/sh/crtn.S: Likewise.
70623         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
70624
70625         [BZ #13673]
70626         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
70627         with URL.
70628         * locale/programs/locfile-kw.gperf: Likewise.
70629         * locale/programs/charmap-kw.h: Regenerated.
70630         * locale/programs/locfile-kw.h: Likewise.
70631
70632         [BZ #13673]
70633         * intl/plural.y: Replace FSF snail mail address with URL.
70634         * intl/plural.c: Regenerated.
70635
70636 2012-03-09  Richard Henderson  <rth@twiddle.net>
70637
70638         * include/math_private.h: Remove file.
70639         * math/math_private.h: Move file ...
70640         * sysdeps/generic/math_private.h: ... here.
70641
70642         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
70643         * sysdeps/powerpc/fpu/math_private.h: Likewise.
70644         * sysdeps/x86_64/fpu/math_private.h: Likewise.
70645
70646         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
70647         and <math_private.h>.
70648         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
70649         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
70650         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
70651         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
70652         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
70653         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
70654         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70655         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70656         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
70657         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70658         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70659         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
70660         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
70661         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70662         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
70663         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
70664         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
70665         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
70666         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
70667         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
70668         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70669         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
70670         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
70671         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70672         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
70673         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
70674         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
70675         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
70676         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70677         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
70678         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
70679         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70680         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
70681         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
70682         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
70683         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
70684         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
70685         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
70686         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
70687         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70688         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
70689         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
70690         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
70691         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
70692         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
70693         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
70694         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
70695         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
70696         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
70697         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
70698         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
70699         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
70700         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
70701         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
70702         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
70703         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
70704         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70705         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
70706         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
70707         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
70708         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70709         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
70710         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70711         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
70712         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
70713         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70714         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70715         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70716         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
70717         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
70718         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
70719         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
70720         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
70721         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
70722         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
70723         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
70724         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
70725         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
70726         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
70727         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
70728         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
70729         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
70730         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
70731         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
70732         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
70733         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
70734         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
70735         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
70736         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
70737         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
70738         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
70739         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
70740         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
70741         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
70742         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
70743         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
70744         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
70745         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
70746         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
70747         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
70748         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
70749         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
70750         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
70751         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
70752         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
70753         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
70754         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
70755         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
70756         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
70757         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
70758         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
70759         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
70760         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
70761         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
70762         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
70763         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
70764         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
70765         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
70766         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
70767         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
70768         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
70769         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
70770         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
70771         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
70772         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
70773         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
70774         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
70775         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
70776         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
70777         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
70778         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
70779         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
70780         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
70781         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
70782         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
70783         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
70784         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
70785         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
70786         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
70787         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
70788         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70789         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
70790         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
70791         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
70792         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
70793         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
70794         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
70795         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
70796         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
70797         * sysdeps/ieee754/k_standard.c: Likewise.
70798         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
70799         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
70800         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
70801         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
70802         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
70803         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
70804         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
70805         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
70806         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
70807         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
70808         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
70809         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
70810         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
70811         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
70812         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
70813         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
70814         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
70815         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
70816         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
70817         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
70818         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
70819         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
70820         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
70821         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
70822         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
70823         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
70824         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
70825         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
70826         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
70827         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
70828         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
70829         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
70830         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
70831         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
70832         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
70833         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
70834         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
70835         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
70836         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
70837         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
70838         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
70839         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
70840         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
70841         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
70842         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
70843         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
70844         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
70845         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
70846         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
70847         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
70848         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
70849         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
70850         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
70851         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
70852         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
70853         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
70854         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
70855         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
70856         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
70857         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
70858         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
70859         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
70860         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
70861         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
70862         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
70863         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
70864         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
70865         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
70866         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
70867         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
70868         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
70869         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
70870         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
70871         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
70872         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
70873         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
70874         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
70875         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
70876         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
70877         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
70878         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
70879         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
70880         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
70881         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
70882         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
70883         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
70884         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
70885         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
70886         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
70887         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
70888         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
70889         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
70890         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
70891         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
70892         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
70893         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
70894         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
70895         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
70896         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
70897         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
70898         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
70899         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
70900         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
70901         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
70902         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
70903         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
70904         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
70905         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
70906         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
70907         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
70908         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
70909         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
70910         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
70911         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
70912         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
70913         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
70914         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
70915         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
70916         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
70917         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
70918         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
70919         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
70920         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
70921         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
70922         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
70923         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
70924         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
70925         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
70926         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
70927         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
70928         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
70929         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
70930         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
70931         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
70932         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
70933         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
70934         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
70935         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
70936         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
70937         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
70938         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
70939         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
70940         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
70941         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
70942         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
70943         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
70944         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
70945         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
70946         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
70947         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
70948         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
70949         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
70950         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
70951         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
70952         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
70953         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
70954         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
70955         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
70956         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
70957         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
70958         * sysdeps/ieee754/s_lib_version.c: Likewise.
70959         * sysdeps/ieee754/s_matherr.c: Likewise.
70960         * sysdeps/ieee754/s_signgam.c: Likewise.
70961         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
70962         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
70963         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
70964         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
70965         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
70966         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
70967         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
70968         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
70969         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
70970         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
70971         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
70972         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
70973         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
70974         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
70975         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
70976         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
70977         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
70978         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
70979         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
70980         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
70981         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
70982
70983 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
70984
70985         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
70986         * sunrpc/rpc_main.c: Likewise.
70987         * sunrpc/rpc_svcout.c: Likewise.
70988
70989 2012-03-09  David S. Miller  <davem@davemloft.net>
70990
70991         * include/math_private.h: New file.
70992
70993 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
70994
70995         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
70996         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
70997         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
70998         from <bits/socket_type.h>.
70999         (enum __socket_type): Don't define here.
71000         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
71001         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
71002         bits/socket_type.h.
71003
71004         [BZ #13566]
71005         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
71006         checking __USE_GNU.
71007
71008         * Makerules ($(inst_includedir)/%.h): New rule.
71009         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
71010         (install-others): Remove variable setting.
71011         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
71012
71013 2012-03-08  Richard Henderson  <rth@twiddle.net>
71014
71015         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
71016         from macro to inline function; merge with the
71017         !__LIBC_INTERNAL_MATH_INLINES version.
71018         (__ieee754_sqrtf): Likewise.
71019
71020         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
71021         to inline function.
71022         (__rintf, __floor, __floorf): Likewise.
71023
71024         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
71025         macro to inline function.
71026         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
71027
71028         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
71029         not <math/math_private.h>.
71030
71031 2012-03-08  David S. Miller  <davem@davemloft.net>
71032
71033         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
71034         copyright year.
71035         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
71036
71037 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
71038
71039         * resolv/gai_misc.c (handle_requests): Fix struct timespec
71040         normalization.
71041         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
71042         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
71043
71044 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
71045
71046         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
71047         be defined individually, they must be defined as a block.  Define
71048         S for printing a string instead of hidint the different by using a
71049         macro for adding the 'l'.
71050         * stdio-common/tst-fphex-wide.c: Adjust.
71051
71052 2012-03-07  Marek Polacek  <polacek@redhat.com>
71053
71054         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
71055
71056 2012-03-08  Marek Polacek  <polacek@redhat.com>
71057
71058         [BZ #13806]
71059         * stdio-common/Makefile (tests): Add tst-fphex-wide.
71060         * stdio-common/tst-fphex.c: Define a few macros to make the
71061         test reusable.  Use them.
71062         * stdio-common/tst-fphex-wide.c: New file.
71063
71064 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
71065
71066         [BZ #6911]
71067         * manual/macros.texi (gnusystems): New macro.
71068         (nongnusystems): Likewise.
71069         (gnulinuxhurdsystems): Likewise.
71070         (gnuhurdsystems): Likewise..
71071         (gnulinuxsystems): Likewise.
71072         * manual/charset.texi: Use new macros or @theglibc{} to refer to
71073         variants of the GNU system, not "GNU system".
71074         * manual/conf.texi: Likewise.
71075         * manual/errno.texi: Likewise.  Update example of errno macro
71076         expansion.
71077         * manual/filesys.texi: Likewise.
71078         (getumask): Document as specific to GNU/Hurd.
71079         * manual/install.texi: Likewise.  Reword some references to
71080         GNU/Linux.
71081         * manual/intro.texi: Likewise.
71082         * manual/io.texi: Likewise.
71083         (File Name Portability): Detail which constraints are inapplicable
71084         to all GNU systems and which are only inapplicable to GNU/Hurd.
71085         * manual/job.texi: Likewise.
71086         * manual/llio.texi: Likewise.
71087         (O_NOCTTY): Document as present on GNU/Linux.
71088         * manual/maint.texi: Likewise.
71089         * manual/memory.texi: Likewise.
71090         * manual/pattern.texi: Likewise.
71091         * manual/pipe.texi: Likewise.
71092         * manual/process.texi: Likewise.
71093         * manual/resource.texi: Likewise.
71094         (RUSAGE_CHILDREN): Remove statement about specifying a particular
71095         child on GNU/Hurd.
71096         * manual/setjmp.texi: Likewise.
71097         * manual/signal.texi: Likewise.
71098         * manual/startup.texi: Likewise.
71099         * manual/stdio.texi: Likewise.
71100         * manual/terminal.texi: Likewise.
71101         (ONLCR): Document as POSIX.
71102         (OXTABS): Document availability on GNU/Linux as XTABS.
71103         (ONOEOT): Document availability separately from other bits.
71104         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
71105         * manual/time.texi: Likewise.
71106         * manual/users.texi: Likewise.
71107         * INSTALL: Regenerated.
71108         * sysdeps/gnu/errlist.c: Regenerated.
71109
71110         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
71111         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
71112         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
71113         puts.
71114         * configure: Regenerated.
71115
71116 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
71117
71118         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
71119         default includes instead of AC_HEADER_CHECK.
71120         * sysdeps/i386/configure: Regenerated.
71121
71122         [BZ #10716]
71123         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
71124         * math/s_cacoshf.c (__cacoshf): Likewise.
71125         * math/s_cacoshl.c (__cacoshl): Likewise.
71126         * math/s_casinh.c (__casinh): Set signs of result from argument.
71127         * math/s_casinhf.c (__casinhf): Likewise.
71128         * math/s_casinhl.c (__casinhl): Likewise.
71129         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
71130         (casinh_test): Add more tests.
71131         * sysdeps/i386/fpu/libm-test-ulps: Update.
71132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71133
71134 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
71135
71136         * po/zh_TW.po: Update from translation team.
71137
71138         * login/Makefile (distribute): Remove variable.
71139         * catgets/Makefile: Likewise.
71140         * mach/Makefile: Likewise.
71141         * malloc/Makefile: Likewise.
71142         * misc/Makefile: Likewise.
71143         * iconv/Makefile: Likewise.
71144         * nscd/Makefile: Likewise.
71145         * hurd/Makefile: Likewise.
71146         * manual/Makefile: Likewise.
71147         * locale/Makefile: Likewise.
71148         * intl/Makefile: Likewise.
71149         * conform/Makefile: Likewise.
71150         * nss/Makefile: Likewise.
71151         * time/Makefile: Likewise.
71152         * soft-fp/Makefile: Likewise.
71153         * dirent/Makefile: Likewise.
71154         * gmon/Makefile: Likewise.
71155         * po/Makefile: Likewise.
71156         * rt/Makefile: Likewise.
71157         * socket/Makefile: Likewise.
71158         * math/Makefile: Likewise.
71159         * signal/Makefile: Likewise.
71160         * debug/Makefile: Likewise.
71161         * elf/Makefile: Likewise.
71162         * timezone/Makefile: Likewise.
71163         * stdlib/Makefile: Likewise.
71164         * iconvdata/Makefile: Likewise.
71165         * sunrpc/Makefile: Likewise.
71166         * io/Makefile: Likewise.
71167         * argp/Makefile: Likewise.
71168         * inet/Makefile: Likewise.
71169         * hesiod/Makefile: Likewise.
71170         * grp/Makefile: Likewise.
71171         * csu/Makefile: Likewise.
71172         * wctype/Makefile: Likewise.
71173         * crypt/Makefile: Likewise.
71174         * libio/Makefile: Likewise.
71175         * string/Makefile: Likewise.
71176         * nis/Makefile: Likewise.
71177         * resolv/Makefile: Likewise.
71178         * stdio-common/Makefile: Likewise.
71179         * wcsmbs/Makefile: Likewise.
71180         * dlfcn/Makefile: Likewise.
71181         * posix/Makefile: Likewise.
71182
71183         [BZ #6959]
71184         * timezone/Makefile: Don't install timezone files, just the programs
71185         and scripts.
71186
71187 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
71188
71189         * nss/databases.def: Add missing gshadow entry.
71190
71191         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
71192
71193 2012-03-06  Marek Polacek  <polacek@redhat.com>
71194
71195         [BZ #13726]
71196         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
71197         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
71198         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
71199         * stdio-common/tst-long-dbl-fphex.c: New file.
71200
71201 2012-03-06  David S. Miller  <davem@davemloft.net>
71202
71203         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
71204         (set_obp_int): New function.
71205         (get_obp_int): New function.
71206         (__get_clockfreq_via_dev_openprom): Likewise.
71207         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
71208         Avoid unused variable warnings on 'val' and use builtin_expect.
71209         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
71210         __builtin_expect.
71211         (INLINE_CLONE_SYSCALL): Likewise.
71212
71213 2012-03-05  David S. Miller  <davem@davemloft.net>
71214
71215         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71216
71217 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
71218
71219         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
71220
71221         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
71222         only for |x| >= 40.
71223         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71224
71225 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
71226
71227         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
71228         Replace gettimeofday with __vdso_gettimeofday.
71229
71230         * sysdeps/unix/sysv/linux/x86_64/init-first.c
71231         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
71232         __vdso_clock_gettime and __vdso_getcpu.
71233
71234         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
71235         time with __vdso_time.
71236
71237 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
71238
71239         * manual/lang.texi (size_t): Note types to which size_t may be
71240         equivalent with the GNU C Library, but do not describe when
71241         differences between them are significant.
71242
71243 2012-03-05  Andreas Jaeger  <aj@suse.de>
71244
71245         * sysdeps/i386/fpu/libm-test-ulps: Update.
71246
71247 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
71248
71249         [BZ #3976]
71250         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
71251         (__ieee754_pow): Save and restore rounding mode and use
71252         round-to-nearest for main computations.
71253         * math/libm-test.inc (pow_test_tonearest): New function.
71254         (pow_test_towardzero): Likewise.
71255         (pow_test_downward): Likewise.
71256         (pow_test_upward): Likewise.
71257         (main): Call the new functions.
71258         * sysdeps/i386/fpu/libm-test-ulps: Update.
71259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71260
71261         [BZ #3976]
71262         * math/libm-test.inc (cosh_test_tonearest): New function.
71263         (cosh_test_towardzero): Likewise.
71264         (cosh_test_downward): Likewise.
71265         (cosh_test_upward): Likewise.
71266         (sinh_test_tonearest): Likewise.
71267         (sinh_test_towardzero): Likewise.
71268         (sinh_test_downward): Likewise.
71269         (sinh_test_upward): Likewise.
71270         (main): Call the new functions.
71271         * sysdeps/i386/fpu/libm-test-ulps: Update.
71272         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71273
71274 2012-03-05  Tom de Vries  <tom@codesourcery.com>
71275
71276         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
71277         default stack guard is set in last bytes.
71278         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
71279
71280 2012-03-05  Kees Cook  <keescook@chromium.org>
71281
71282         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
71283
71284         [BZ #13656]
71285         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
71286         possibly allocate from heap instead of stack.
71287         * stdio-common/bug-vfprintf-nargs.c: New file.
71288         * stdio-common/Makefile (tests): Add nargs overflow test.
71289
71290 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
71291
71292         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
71293
71294 2012-03-03  Marek Polacek  <polacek@redhat.com>
71295
71296         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
71297         * math/math_private.h: Likewise.
71298         * stdlib/tst-strtod.c: Likewise.
71299         * sysdeps/i386/i486/bits/atomic.h: Likewise.
71300         * sysdeps/x86_64/bits/atomic.h: Likewise.
71301
71302 2012-03-02  David S. Miller  <davem@davemloft.net>
71303
71304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
71305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
71306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
71307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
71308         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
71309         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
71310         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
71311         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
71312
71313 2012-03-02  Roland McGrath  <roland@hack.frob.com>
71314
71315         [BZ #13792]
71316         * manual/examples/README: New file, says the example source files
71317         can be used under GPL>=2.
71318         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
71319         line containing just "*/".
71320         * manual/examples/add.c: Add copyright header (GPL>=2).
71321         * manual/examples/argp-ex1.c: Likewise.
71322         * manual/examples/argp-ex2.c: Likewise.
71323         * manual/examples/argp-ex3.c: Likewise.
71324         * manual/examples/argp-ex4.c: Likewise.
71325         * manual/examples/atexit.c: Likewise.
71326         * manual/examples/db.c: Likewise.
71327         * manual/examples/dir.c: Likewise.
71328         * manual/examples/dir2.c: Likewise.
71329         * manual/examples/execinfo.c: Likewise.
71330         * manual/examples/filecli.c: Likewise.
71331         * manual/examples/filesrv.c: Likewise.
71332         * manual/examples/fmtmsgexpl.c: Likewise.
71333         * manual/examples/genpass.c: Likewise.
71334         * manual/examples/inetcli.c: Likewise.
71335         * manual/examples/inetsrv.c: Likewise.
71336         * manual/examples/isockad.c: Likewise.
71337         * manual/examples/longopt.c: Likewise.
71338         * manual/examples/memopen.c: Likewise.
71339         * manual/examples/memstrm.c: Likewise.
71340         * manual/examples/mkfsock.c: Likewise.
71341         * manual/examples/mkisock.c: Likewise.
71342         * manual/examples/mygetpass.c: Likewise.
71343         * manual/examples/pipe.c: Likewise.
71344         * manual/examples/popen.c: Likewise.
71345         * manual/examples/rprintf.c: Likewise.
71346         * manual/examples/search.c: Likewise.
71347         * manual/examples/select.c: Likewise.
71348         * manual/examples/setjmp.c: Likewise.
71349         * manual/examples/sigh1.c: Likewise.
71350         * manual/examples/sigusr.c: Likewise.
71351         * manual/examples/stpcpy.c: Likewise.
71352         * manual/examples/strdupa.c: Likewise.
71353         * manual/examples/strftim.c: Likewise.
71354         * manual/examples/strncat.c: Likewise.
71355         * manual/examples/subopt.c: Likewise.
71356         * manual/examples/swapcontext.c: Likewise.
71357         * manual/examples/termios.c: Likewise.
71358         * manual/examples/testopt.c: Likewise.
71359         * manual/examples/testpass.c: Likewise.
71360         * manual/examples/timeval_subtract.c: Likewise.
71361
71362         [BZ #13792]
71363         * manual/time.texi (Elapsed Time): Move timeval_subtract example
71364         function to ...
71365         * manual/timeval_subtract.c.texi: ... here, new file.
71366
71367 2012-03-02  David S. Miller  <davem@davemloft.net>
71368
71369         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
71370
71371 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
71372
71373         [BZ #3976]
71374         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
71375         (__sin): Save and restore rounding mode and use round-to-nearest
71376         for all computations.
71377         (__cos): Save and restore rounding mode and use round-to-nearest
71378         for all computations.
71379         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
71380         <fenv.h>.
71381         (tan): Save and restore rounding mode and use round-to-nearest for
71382         all computations.
71383         * math/libm-test.inc (cos_test_tonearest): New function.
71384         (cos_test_towardzero): Likewise.
71385         (cos_test_downward): Likewise.
71386         (cos_test_upward): Likewise.
71387         (sin_test_tonearest): Likewise.
71388         (sin_test_towardzero): Likewise.
71389         (sin_test_downward): Likewise.
71390         (sin_test_upward): Likewise.
71391         (tan_test_tonearest): Likewise.
71392         (tan_test_towardzero): Likewise.
71393         (tan_test_downward): Likewise.
71394         (tan_test_upward): Likewise.
71395         (main): Call the new functions.
71396         * sysdeps/i386/fpu/libm-test-ulps: Update.
71397         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71398
71399         [BZ #10135]
71400         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
71401         small n, then large n, before computing and testing k+n.
71402         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
71403         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
71404         Likewise.
71405         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
71406         Likewise.
71407         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
71408         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
71409         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
71410         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
71411         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
71412         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
71413         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
71414         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
71415         * math/libm-test.inc (scalbn_test): Add more tests.
71416         (scalbln_test): Likewise.
71417
71418         * manual/filesys.texi (mode_t): Describe constraints on size and
71419         signedness, not exact equivalence to a particular type.
71420         (ino_t): Likewise.
71421         (ino64_t): Likewise.
71422         (dev_t): Likewise.
71423         (nlink_t): Likewise.
71424         (blkcnt_t): Likewise.
71425         (blkcnt64_t): Likewise.
71426         * manual/llio.texi (off_t): Likewise.
71427
71428         [BZ #3976]
71429         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
71430         (__ieee754_exp): Save and restore rounding mode and use
71431         round-to-nearest for all computations.
71432         * math/libm-test.inc (exp_test_tonearest): New function.
71433         (exp_test_towardzero): Likewise.
71434         (exp_test_downward): Likewise.
71435         (exp_test_upward): Likewise.
71436         (main): Call the new functions.
71437         * sysdeps/i386/fpu/libm-test-ulps: Update.
71438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71439
71440 2012-03-01  Chris Demetriou  <cgd@google.com>
71441
71442         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
71443         have predictable order.
71444
71445 2012-03-01  David S. Miller  <davem@davemloft.net>
71446
71447         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
71448
71449         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
71450         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
71451         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
71452         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
71453
71454         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
71455         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
71456         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
71457         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
71458         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
71459         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
71460         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
71461         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
71462         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
71463
71464         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71465
71466         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
71467         * sysdeps/sparc/fpu/libm-test-ulps: to here.
71468         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
71469
71470         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
71471         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
71472         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
71473         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
71474         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
71475         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
71476         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
71477         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
71478         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
71479         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
71480         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
71481         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
71482         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
71483         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
71484         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
71485         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
71486         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
71487         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
71488         * sysdeps/sparc/elf/configure: Regenerated.
71489
71490 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
71491
71492         * configure.in (AS, LD): Require binutils 2.20 or later.
71493         * configure: Regenerated.
71494         * manual/install.texi (Tools for Compilation): Give binutils 2.20
71495         as required minimum version.
71496         * INSTALL: Regenerated.
71497
71498         [BZ #2541]
71499         [BZ #4108]
71500         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
71501         before squaring exponent.
71502         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
71503         bottom long double and 27 bits of top long double before squaring
71504         exponent.
71505         * math/libm-test.inc (erfc_test): Add more tests.
71506         * sysdeps/i386/fpu/libm-test-ulps: Update.
71507         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
71508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71509
71510 2012-03-01  Kai Tietz  <ktietz@redhat.com>
71511
71512         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
71513         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
71514         containing bit-fields.
71515         * soft-fp/extended.h (_FP_UNION_E): Likewise.
71516         * soft-fp/single.h (_FP_UNION_S): Likewise.
71517         * soft-fp/double.h (_FP_UNION_D): Likewise.
71518
71519 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
71520
71521         [BZ #13786]
71522         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
71523         not include ../strcmp.S.
71524         [USE_AS_STRNCASECMP_L]: Likewise.
71525         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
71526         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
71527         * sysdeps/i386/i686/multiarch/strncase_l-c.c
71528         (__strncasecmp_l_ia32): Define as alias to
71529         __strncasecmp_l_nonascii.
71530
71531         [BZ #5794]
71532         * math/libm-test.inc (expm1_test): Add test for bug 5794.
71533         * sysdeps/i386/fpu/libm-test-ulps: Update.
71534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71535
71536         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
71537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71538
71539 2012-02-29  Jeff Law  <law@redhat.com>
71540
71541         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
71542         out of bounds read.
71543
71544 2012-02-29  Marek Polacek  <polacek@redhat.com>
71545
71546         [BZ #13706]
71547         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
71548         * elf/Makefile: Add rules to run tst-unused-dep.out.
71549
71550 2012-02-28  David S. Miller  <davem@davemloft.net>
71551
71552         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
71553         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
71554         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
71555         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
71556         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
71557         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
71558
71559 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
71560
71561         * math/libm-test.inc (llround_test): Move one test from
71562         lround_test.  Use TEST_f_L in moved test.
71563         (lround_test): Move misplaced test to llround_test.  Add testcase
71564         from bug 2561.
71565
71566 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
71567
71568         * sysdeps/x86_64/fpu/e_expf.S: New file.
71569         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
71570
71571 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
71572
71573         [BZ #13637]
71574         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
71575         of remain_len that may cause incomplete multi-byte character and
71576         false match.
71577         * posix/bug-regex33.c: New file.
71578         * posix/Makefile (tests): Add bug-regex33.
71579
71580 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
71581
71582         * manual/macros.texi: New file.
71583         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
71584         * manual/libc.texinfo: Include macros.texi.
71585         * manual/creatute.texi: Likewise.
71586         * manual/install.texi: Likewise.
71587         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
71588         @glibcadj{} in references to the GNU C Library.
71589         * manual/charset.texi: Likewise.
71590         * manual/conf.texi: Likewise.
71591         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
71592         when not using those macros.
71593         * manual/creature.texi: Likewise.
71594         * manual/crypt.texi: Likewise.
71595         * manual/errno.texi: Likewise.
71596         * manual/filesys.texi: Likewise.
71597         * manual/header.texi: Likewise.
71598         * manual/install.texi: Likewise.
71599         * manual/intro.texi: Likewise.
71600         * manual/io.texi: Likewise.
71601         * manual/job.texi: Likewise.
71602         * manual/lang.texi: Likewise.
71603         * manual/libc.texiinfo: Likewise.
71604         * manual/llio.texi: Likewise.
71605         * manual/locale.texi: Likewise.
71606         * manual/maint.texi: Likewise.
71607         * manual/math.texi: Likewise.
71608         * manual/memory.texi: Likewise.
71609         * manual/message.texi: Likewise.
71610         * manual/nss.texi: Likewise.
71611         * manual/pattern.texi: Likewise.
71612         * manual/process.texi: Likewise.
71613         * manual/resource.texi: Likewise.
71614         * manual/search.texi: Likewise.
71615         * manual/setjmp.texi: Likewise.
71616         * manual/signal.texi: Likewise.
71617         * manual/socket.texi: Likewise.
71618         * manual/startup.texi: Likewise.
71619         * manual/stdio.texi: Likewise.
71620         * manual/string.texi: Likewise.
71621         * manual/sysinfo.texi: Likewise.
71622         * manual/syslog.texi: Likewise.
71623         * manual/terminal.texi: Likewise.
71624         * manual/time.texi: Likewise.
71625         * manual/users.texi: Likewise.
71626         * INSTALL: Regenerated.
71627         * NOTES: Regenerated.
71628         * sysdeps/gnu/errlist.c: Regenerated.
71629
71630 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
71631
71632         * include/dirent.h: Include <dirstream.h> before
71633         <dirent/dirent.h>.
71634
71635 2012-02-28  David S. Miller  <davem@davemloft.net>
71636
71637         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
71638         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
71639         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
71640         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
71641
71642 2012-02-27  David S. Miller  <davem@davemloft.net>
71643
71644         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
71645         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
71646         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
71647         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
71648
71649         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
71650         frame pointer instead of stack pointer relative arg slot.
71651         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
71652         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
71653         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
71654
71655 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
71656
71657         [BZ #3992]
71658         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
71659
71660 2012-02-27  David S. Miller  <davem@davemloft.net>
71661
71662         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
71663         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
71664         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
71665         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
71666         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
71667         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
71668         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
71669         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
71670
71671 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
71672
71673         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
71674         later.  Allow versions 5-9.
71675         * configure: Regenerated.
71676         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
71677         required minimum version and 4.6 as recommended version.  Do not
71678         mention bugs in GCC 2.7 and 2.8.
71679         * INSTALL: Regenerated.
71680
71681 2012-02-27  David S. Miller  <davem@davemloft.net>
71682
71683         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
71684         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
71685         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
71686         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
71687         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
71688         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
71689         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
71690         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
71691
71692         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
71693         manipulate bits before adding and subtracting TWO112[sx].
71694         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
71695
71696 2012-02-27  Roland McGrath  <roland@hack.frob.com>
71697
71698         [BZ #13775]
71699         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
71700         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
71701         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
71702         being in POSIX, because they are in 1003.1-2008.
71703
71704         * rt/tst-aio.c: Include <fcntl.h>.
71705         * rt/tst-aio7.c: Likewise.
71706         * rt/tst-aio64.c: Likewise.
71707
71708         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
71709
71710 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
71711
71712         * manual/install.texi (--with-headers): Describe headers as
71713         interface headers, not private headers.
71714         (Specific advice for GNU/Linux systems): Describe use of headers
71715         from "make headers_install", not private headers from older
71716         kernels.
71717         * INSTALL: Regenerated.
71718         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
71719         Change to 2.6.19.
71720         * sysdeps/unix/sysv/linux/configure: Regenerated.
71721
71722         * manual/llio.texi (fclean): Remove documentation.
71723
71724         * manual/Makefile (libc-texi-generated): New variable.  Include
71725         version.texi.
71726         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
71727         $(libc-texi-generated), not duplicated list of files.
71728         (version.texi, stamp-version): New rules.
71729         (realclean): Remove $(libc-texi-generated), not individual files
71730         from that list.  Do not remove dir-add.texinfo.
71731         * manual/libc.texinfo: Comment out uses of edition numbers and
71732         references to printed manual.  Remove last-updated dates.
71733         (EDITION): Comment out.
71734         (ISBN): Likewise.
71735         (VERSION, UPDATED): Remove.
71736         (version.texi): Include.
71737
71738 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
71739
71740         * sysdeps/posix/spawni.c: Include <signal.h>.
71741         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
71742         * sysdeps/pthread/aio_fsync.c: Likewise.
71743
71744 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
71745
71746         * conform/Makefile (tests): Run only when not cross-compiling and
71747         when fast-check is not defined.
71748
71749         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
71750         * conform/data/limits.h-data: Fixes for POSIX2008.
71751         * conform/run-conformtest.sh: Run all tests.
71752         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
71753         headers.
71754         * include/bits/dlfcn.h: Likewise.
71755         * include/langinfo.h: Likewise.
71756         * include/monetary.h: Likewise.
71757         * include/sys/poll.h: Likewise.
71758
71759         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
71760         for __USE_GNU.
71761         * posix/spawn.h: Define __need_sigset_t.
71762         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
71763         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
71764         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
71765         to get sigevent_t only.
71766         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
71767         only for __USE_GNU.
71768         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
71769         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71770         process_vm_writev only for __USE_GNU.
71771         * termios/termios.h: Declare tcgetsid also for POSIX2008.
71772
71773         * conform/Makefile: For now ignore errors from run-conformtest.
71774         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
71775         POSIX to avoid namespace pollution.  Don't prepend headers.
71776         * conform/data/aio.h-data: Fixes for POSIX testing.
71777         * conform/data/fcntl.h-data: Likewise.
71778         * conform/data/glob.h-data: Likewise.
71779         * conform/data/grp.h-data: Likewise.
71780         * conform/data/pthread.h-data: Likewise.
71781         * conform/data/pwd.h-data: Likewise.
71782         * conform/data/signal.h-data: Likewise.
71783         * conform/data/spawn.h-data: Likewise.
71784         * conform/data/stdio.h-data: Likewise.
71785         * conform/data/stdlib.h-data: Likewise.
71786         * conform/data/stropts.h-data: Likewise.
71787         * conform/data/sys/mman.h-data: Likewise.
71788         * conform/data/sys/stat.h-data: Likewise.
71789         * conform/data/sys/types.h-data: Likewise.
71790         * conform/data/sys/wait.h-data: Likewise.
71791         * conform/data/time.h-data: Likewise.
71792         * conform/data/unistd.h-data: Likewise.
71793         * conform/data/utime.h-data: Likewise.
71794
71795         * io/sys/stat.h: fchmod was always in POSIX.
71796         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
71797         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
71798         * rt/aio.h: Define __need_timespec before including <time.h>.
71799         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
71800         struct.  Add forward declaration of pthread_attr_t and use it in
71801         sigevent.
71802         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
71803         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
71804         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
71805         always remove CLK_TCK definition.
71806
71807 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
71808
71809         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
71810
71811 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
71812
71813         * conform/run-conformtest.sh: New file.
71814         * conform/Makefile: Run run-conformtest for tests.
71815         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
71816         support.
71817
71818         * conform/data/uchar.h-data: New file.
71819         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
71820         * conform/data/arpa/inet.h-data: Likewise.
71821         * conform/data/assert.h-data: Likewise.
71822         * conform/data/complex.h-data: Likewise.
71823         * conform/data/cpio.h-data: Likewise.
71824         * conform/data/ctype.h-data: Likewise.
71825         * conform/data/dirent.h-data: Likewise.
71826         * conform/data/dlfcn.h-data: Likewise.
71827         * conform/data/errno.h-data: Likewise.
71828         * conform/data/fcntl.h-data: Likewise.
71829         * conform/data/float.h-data: Likewise.
71830         * conform/data/fmtmsg.h-data: Likewise.
71831         * conform/data/fnmatch.h-data: Likewise.
71832         * conform/data/ftw.h-data: Likewise.
71833         * conform/data/glob.h-data: Likewise.
71834         * conform/data/grp.h-data: Likewise.
71835         * conform/data/iconv.h-data: Likewise.
71836         * conform/data/inttypes.h-data: Likewise.
71837         * conform/data/langinfo.h-data: Likewise.
71838         * conform/data/libgen.h-data: Likewise.
71839         * conform/data/limits.h-data: Likewise.
71840         * conform/data/locale.h-data: Likewise.
71841         * conform/data/math.h-data: Likewise.
71842         * conform/data/monetary.h-data: Likewise.
71843         * conform/data/mqueue.h-data: Likewise.
71844         * conform/data/ndbm.h-data: Likewise.
71845         * conform/data/net/if.h-data: Likewise.
71846         * conform/data/netdb.h-data: Likewise.
71847         * conform/data/netinet/in.h-data: Likewise.
71848         * conform/data/nl_types.h-data: Likewise.
71849         * conform/data/poll.h-data: Likewise.
71850         * conform/data/pthread.h-data: Likewise.
71851         * conform/data/pwd.h-data: Likewise.
71852         * conform/data/regex.h-data: Likewise.
71853         * conform/data/sched.h-data: Likewise.
71854         * conform/data/search.h-data: Likewise.
71855         * conform/data/semaphore.h-data: Likewise.
71856         * conform/data/setjmp.h-data: Likewise.
71857         * conform/data/signal.h-data: Likewise.
71858         * conform/data/spawn.h-data: Likewise.
71859         * conform/data/stdarg.h-data: Likewise.
71860         * conform/data/stdio.h-data: Likewise.
71861         * conform/data/stdlib.h-data: Likewise.
71862         * conform/data/string.h-data: Likewise.
71863         * conform/data/strings.h-data: Likewise.
71864         * conform/data/stropts.h-data: Likewise.
71865         * conform/data/sys/ipc.h-data: Likewise.
71866         * conform/data/sys/mman.h-data: Likewise.
71867         * conform/data/sys/msg.h-data: Likewise.
71868         * conform/data/sys/resource.h-data: Likewise.
71869         * conform/data/sys/select.h-data: Likewise.
71870         * conform/data/sys/sem.h-data: Likewise.
71871         * conform/data/sys/shm.h-data: Likewise.
71872         * conform/data/sys/socket.h-data: Likewise.
71873         * conform/data/sys/stat.h-data: Likewise.
71874         * conform/data/sys/statvfs.h-data: Likewise.
71875         * conform/data/sys/time.h-data: Likewise.
71876         * conform/data/sys/timeb.h-data: Likewise.
71877         * conform/data/sys/times.h-data: Likewise.
71878         * conform/data/sys/types.h-data: Likewise.
71879         * conform/data/sys/uio.h-data: Likewise.
71880         * conform/data/sys/un.h-data: Likewise.
71881         * conform/data/sys/utsname.h-data: Likewise.
71882         * conform/data/sys/wait.h-data: Likewise.
71883         * conform/data/syslog.h-data: Likewise.
71884         * conform/data/tar.h-data: Likewise.
71885         * conform/data/termios.h-data: Likewise.
71886         * conform/data/utime.h-data: Likewise.
71887         * conform/data/utmpx.h-data: Likewise.
71888         * conform/data/varargs.h-data: Likewise.
71889         * conform/data/wchar.h-data: Likewise.
71890         * conform/data/wctype.h-data: Likewise.
71891         * conform/data/wordexp.h-data: Likewise.
71892
71893         * include/stropts.h: New file.
71894         * include/uchar.h: New file.
71895         * include/aio.h: Changes to allow conformtest.pl to use the headers.
71896         * include/assert.h: Likewise.
71897         * include/ctype.h: Likewise.
71898         * include/dirent.h: Likewise.
71899         * include/dlfcn.h: Likewise.
71900         * include/fcntl.h: Likewise.
71901         * include/fnmatch.h: Likewise.
71902         * include/glob.h: Likewise.
71903         * include/grp.h: Likewise.
71904         * include/libio.h: Likewise.
71905         * include/locale.h: Likewise.
71906         * include/math.h: Likewise.
71907         * include/net/if.h: Likewise.
71908         * include/netdb.h: Likewise.
71909         * include/netinet/in.h: Likewise.
71910         * include/pthread.h: Likewise.
71911         * include/pwd.h: Likewise.
71912         * include/regex.h: Likewise.
71913         * include/sched.h: Likewise.
71914         * include/search.h: Likewise.
71915         * include/setjmp.h: Likewise.
71916         * include/signal.h: Likewise.
71917         * include/stdio.h: Likewise.
71918         * include/stdlib.h: Likewise.
71919         * include/string.h: Likewise.
71920         * include/sys/cdefs.h: Likewise.
71921         * include/sys/mman.h: Likewise.
71922         * include/sys/msg.h: Likewise.
71923         * include/sys/resource.h: Likewise.
71924         * include/sys/select.h: Likewise.
71925         * include/sys/socket.h: Likewise.
71926         * include/sys/stat.h: Likewise.
71927         * include/sys/statvfs.h: Likewise.
71928         * include/sys/time.h: Likewise.
71929         * include/sys/times.h: Likewise.
71930         * include/sys/uio.h: Likewise.
71931         * include/sys/utsname.h: Likewise.
71932         * include/sys/wait.h: Likewise.
71933         * include/termios.h: Likewise.
71934         * include/time.h: Likewise.
71935         * include/ulimit.h: Likewise.
71936         * include/unistd.h: Likewise.
71937         * include/utime.h: Likewise.
71938         * include/wchar.h: Likewise.
71939         * include/wctype.h: Likewise.
71940         * include/wordexp.h: Likewise.
71941
71942         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
71943
71944         * time/time.h: TIME_UTC must be a macro.
71945         Make timespec_get available for ISO C11 only as well.
71946
71947 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
71948
71949         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
71950         Reported by Peng Haitao <penght@cn.fujitsu.com>.
71951
71952 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
71953
71954         * configure.in: Use -o not -a in test for unsupported multi-arch.
71955
71956 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
71957
71958         * manual/texinfo.tex: Update to version 2012-01-19.16.
71959
71960 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
71961
71962         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
71963
71964 2012-02-24  Roland McGrath  <roland@hack.frob.com>
71965
71966         [BZ #13738]
71967         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
71968         * manual/fdl-1.3.texi: New file.
71969         * manual/fdl-1.1.texi: File removed.
71970
71971         [BZ #13738]
71972         * manual/libc.texinfo (FDL_VERSION): New @set.
71973         Use it for mention of FDL in cover text.
71974         (Documentation License): Use it in @include file name.
71975
71976 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
71977             Roland McGrath  <roland@hack.frob.com>
71978
71979         [BZ #5461]
71980         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
71981         (not LONG_LONG_MAX and LONG_LONG_MIN.
71982         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
71983         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
71984         name.
71985         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
71986
71987 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
71988
71989         [BZ #2547]
71990         [BZ #11365]
71991         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
71992         manipulate bits before adding and subtracting TWO23[sx].
71993         * math/libm-test.inc (nearbyint_test): Add more tests.
71994
71995 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
71996
71997         [BZ #2548]
71998         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
71999         bits before adding and subtracting TWO23[sx].
72000         * math/libm-test.inc (rint_test): Add more tests.
72001         (rint_test_tonearest): Likewise.
72002         (rint_test_towardzero): Likewise.
72003         (rint_test_downward): Likewise.
72004         (rint_test_upward: Likewise.
72005
72006 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
72007
72008         [BZ #10110]
72009         * include/stdc-predef.h: New file.  Extracted from features.h.
72010         * include/features.h: Include stdc-predef.h.
72011         * Makefile (headers): Add stdc-predef.h.
72012         * CONFORMANCE (Compiler limitations): Update.
72013
72014 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
72015
72016         * manual/libc.texinfo (VERSION, UPDATED): Revert.
72017
72018 2012-02-21  David S. Miller  <davem@davemloft.net>
72019
72020         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
72021         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
72022
72023 2012-02-20  David S. Miller  <davem@davemloft.net>
72024
72025         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
72026         using a normal save/restore sequence, rather than allocating a
72027         dummy stack frame just to store a frame pointer and restore.
72028         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
72029
72030 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
72031
72032         * manual/install.texi: Fix stray word in line-wrapped comment.
72033
72034 2012-02-20  David S. Miller  <davem@davemloft.net>
72035
72036         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
72037         both binutils and gcc support GOTDATA.
72038
72039         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
72040         "rd %pc" in the PIC register setup sequences.
72041
72042         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
72043         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
72044         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
72045         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
72046         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
72047         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
72048         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72049         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
72050         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
72051         (SYSCALL_ERROR_HANDLER): Likewise.
72052         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
72053         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
72054         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
72055         (SYSCALL_ERROR_HANDLER): Likewise.
72056
72057         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
72058         (HAVE_GCC_GOTDATA): New.
72059         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
72060         relocation support in both binutils and gcc.
72061         * sysdeps/sparc/elf/configure: Regenerate.
72062
72063         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
72064         * sysdeps/sparc/sparc32/elf/configure: Delete.
72065         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
72066         * sysdeps/sparc/sparc64/elf/configure: Delete.
72067         * sysdeps/sparc/elf/configure.in: New file.
72068         * sysdeps/sparc/elf/configure: Generate.
72069
72070         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
72071         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
72072         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72073         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
72074         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
72075
72076 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
72077
72078         * manual/install.texi: Do not mention specific glibc version
72079         numbers.
72080         * manual/libc.texinfo (VERSION, UPDATED): Update.
72081         (@copying): Use @copyright{} and range of years.
72082
72083 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
72084
72085         [BZ #13695]
72086         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
72087         [crti.S not in sysdirs] (generated): Do not append.
72088         [crti.S not in sysdirs] (omit-deps): Likewise.
72089         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
72090         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
72091         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
72092         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
72093         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
72094         Likewise.
72095         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
72096         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
72097         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
72098         * csu/defs.awk: Remove file.
72099         * sysdeps/generic/initfini.c: Likewise.
72100         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
72101         variable.
72102         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
72103         Likewise.
72104
72105 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
72106
72107         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
72108         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
72109         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
72110         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
72111         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
72112         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
72113         <bits/epoll.h>.
72114         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
72115         (__EPOLL_PACKED): Define to empty if not defined by
72116         <bits/epoll.h>.
72117         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
72118         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72119         bits/epoll.h.
72120
72121 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
72122
72123         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
72124         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
72125         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
72126         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
72127         <bits/timerfd.h>.
72128         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
72129         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72130         bits/timerfd.h.
72131
72132 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
72133
72134         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
72135         in C locale.
72136         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
72137         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
72138         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
72139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72140
72141 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
72142
72143         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72144         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
72145
72146 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
72147
72148         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
72149         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
72150         defined.
72151         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
72152         Likewise.
72153         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
72154         entry for 2.16.
72155
72156 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
72157
72158         * math/w_acos.c: Use non-signaling floating-point comparisons.
72159         * math/w_acosf.c: Likewise.
72160         * math/w_acosh.c: Likewise.
72161         * math/w_acoshf.c: Likewise.
72162         * math/w_acoshl.c: Likewise.
72163         * math/w_acosl.c: Likewise.
72164         * math/w_asin.c: Likewise.
72165         * math/w_asinf.c: Likewise.
72166         * math/w_asinl.c: Likewise.
72167         * math/w_atanh.c: Likewise.
72168         * math/w_atanhf.c: Likewise.
72169         * math/w_atanhl.c: Likewise.
72170         * math/w_exp2.c: Likewise.
72171         * math/w_exp2f.c: Likewise.
72172         * math/w_exp2l.c: Likewise.
72173         * math/w_j0.c: Likewise.
72174         * math/w_j0f.c: Likewise.
72175         * math/w_j0l.c: Likewise.
72176         * math/w_j1.c: Likewise.
72177         * math/w_j1f.c: Likewise.
72178         * math/w_j1l.c: Likewise.
72179         * math/w_jn.c: Likewise.
72180         * math/w_jnf.c: Likewise.
72181         * math/w_log.c: Likewise.
72182         * math/w_log10.c: Likewise.
72183         * math/w_log10f.c: Likewise.
72184         * math/w_log10l.c: Likewise.
72185         * math/w_log2.c: Likewise.
72186         * math/w_log2f.c: Likewise.
72187         * math/w_log2l.c: Likewise.
72188         * math/w_logf.c: Likewise.
72189         * math/w_logl.c: Likewise.
72190         * math/w_sqrt.c: Likewise.
72191         * math/w_sqrtf.c: Likewise.
72192         * math/w_sqrtl.c: Likewise.
72193         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72194         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
72195         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72196         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
72197         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
72198
72199 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
72200
72201         [BZ #9739]
72202         * manual/string.texi (strnlen): Use correct parameter name in
72203         equivalent expression.
72204
72205 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
72206
72207         [BZ #11174]
72208         * manual/users.texi (seteuid): Consistently use neweuid for
72209         argument name.
72210
72211 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
72212
72213         [BZ #13704]
72214         * manual/nss.texi (Services in the NSS configuration): Correct
72215         list of services in example configuration file.
72216
72217 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
72218
72219         [BZ #11322]
72220         * manual/arith.texi: Remove statements about negative zero
72221         behaving identically to zero.
72222
72223 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
72224
72225         [BZ #5993]
72226         * manual/install.texi: Do not document upgrading from libc5.
72227
72228 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
72229
72230         [BZ #4596]
72231         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
72232
72233 2012-02-18  David S. Miller  <davem@davemloft.net>
72234
72235         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
72236         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
72237         %o7 across the call.
72238         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
72239         instead.
72240         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
72241         SETUP_PIC_REG_LEAF.
72242         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72243         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
72244         * sysdeps/sparc/crtn.S: Likewise.
72245
72246 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
72247
72248         * aout/Makefile: Remove.
72249
72250 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
72251
72252         [BZ #13058]
72253         * manual/examples/argp-ex1.c (main): Format definition in GNU
72254         style.
72255         * manual/examples/argp-ex2.c (main): Likewise.
72256         * manual/examples/argp-ex3.c (main): Likewise.
72257         * manual/examples/argp-ex4.c (main): Likewise.
72258         * manual/examples/longopt.c (main): Use new-style prototype
72259         definition.
72260         * manual/examples/strncat.c (main): Specify return type and use
72261         (void) for arguments.
72262         * manual/examples/subopt.c (main): Use char **argv argument.
72263
72264 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72265
72266         [BZ #5077]
72267         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
72268         rounding modes.
72269
72270 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
72271
72272         [BZ #6907]
72273         * manual/string.texi (strchr): Change when strchrnul is
72274         recommended.
72275
72276 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
72277
72278         [BZ #174]
72279         * manual/locale.texi (setlocale): Document LOCPATH.
72280
72281 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72282
72283         [BZ #10210]
72284         * manual/process.texi (execle): Move @dots{} before last argument.
72285
72286 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
72287
72288         [BZ #12047]
72289         * manual/charset.texi (Generic Charset Conversion): Fix typo
72290         (LC_TYPE -> LC_CTYPE).
72291
72292 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
72293
72294         [BZ #5805]
72295         * manual/arith.texi (scalbn): Use @var{} on parameter names.
72296         (scalbnf): Likewise.
72297         (scalbnl): Likewise.
72298         (scalbln): Likewise.
72299         (scalblnf): Likewise.
72300         (scalblnl): Likewise.
72301         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
72302         (vwarnx): Likewise.
72303         (verr): Likewise.
72304         (verrx): Likewise.
72305         * manual/filesys.texi (telldir): Use braces around return type.
72306         * manual/llio.texi (mmap): Add space after comma.
72307         (mmap64): Likewise.
72308         * manual/math.texi (jn): Use @var{} on parameter names.
72309         (jnf): Likewise.
72310         (jnl): Likewise.
72311         (yn): Likewise.
72312         (ynf): Likewise.
72313         (ynl): Likewise.
72314         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
72315         line.
72316         * manual/resource.texi (ulimit): Use @dots{} instead of literal
72317         "...".
72318         (sched_get_priority_min): Remove semicolon on @deftypefun line.
72319         (sched_get_priority_max): Likewise.
72320         * manual/signal.texi (sigvec): Add space after comma.
72321         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
72322         names.
72323         (if_indextoname): Likewise.
72324         (if_freenameindex): Likewise.
72325         (sendto): Use ',' instead of '.' in prototype.
72326         * manual/startup.texi (syscall): Use @dots{} instead of literal
72327         "...".
72328         * manual/stdio.texi (__fpending): Separate initial words of
72329         paragraph from @deftypefun line.
72330         * manual/syslog.texi (syslog): Use @dots{} instead of literal
72331         "...".
72332         (vsyslog): Use @var{} on parameter names.
72333         * manual/terminal.texi (stty): Use @var{} on parameter names.
72334         * manual/users.texi (getutmp): Use @var{} on parameter names.
72335         (getutmpx): Likewise.
72336
72337 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72338
72339         [BZ #6884]
72340         * manual/stdio.texi (fopen): Fix typos in description of
72341         ",ccs=STRING".
72342
72343 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
72344
72345         [BZ #4026]
72346         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
72347         get clock_id definition.
72348
72349 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
72350
72351         [BZ #4822]
72352         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
72353         (madvise): Cast every argument to void on its own.
72354
72355 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72356
72357         [BZ #9902]
72358         * manual/startup.texi (Exit Status): Fix typo.
72359
72360 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
72361
72362         [BZ #10140]
72363         * manual/examples/argp-ex1.c: Include <stdlib.h>.
72364         * manual/examples/argp-ex2.c: Likewise.
72365         * manual/examples/argp-ex3.c: Likewise.
72366
72367 2012-02-16  Richard Henderson  <rth@redhat.com>
72368
72369         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
72370         * sysdeps/s390/s390-32/initfini.c: Remove.
72371         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
72372         * sysdeps/s390/s390-64/initfini.c: Remove.
72373
72374 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
72375
72376         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
72377         compiler output for sysdeps/generic/initfini.c.
72378         * sysdeps/sh/elf/initfini.c: Remove file.
72379
72380 2012-02-16  David S. Miller  <davem@davemloft.net>
72381
72382         [BZ #11494]
72383         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
72384
72385         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
72386         * sysdeps/sparc/crti.S: New file.
72387         * sysdeps/sparc/crtn.S: New file.
72388         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
72389         * sysdeps/sparc/sparc64/Makefile: Likewise.
72390
72391 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
72392
72393         [BZ #3335]
72394         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
72395
72396 2012-02-15  Roland McGrath  <roland@hack.frob.com>
72397
72398         [BZ #4822]
72399         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
72400
72401         * mach/devstream.c (cookie_io_functions_t): Macro removed.
72402         (write, read, close): Likewise.
72403         Patch by Aurelien Jarno <aurelien@aurel32.net>.
72404
72405 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
72406
72407         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
72408         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
72409         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
72410         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
72411         <bits/signalfd.h>.
72412         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
72413         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72414         bits/signalfd.h.
72415
72416 2012-02-14  Marek Polacek  <polacek@redhat.com>
72417
72418         * sysdeps/x86_64/crti.S: New file.
72419         * sysdeps/x86_64/crtn.S: New file.
72420         * sysdeps/x86_64/elf/initfini.c: Remove file.
72421
72422 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
72423
72424         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
72425         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
72426         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
72427         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
72428         <bits/inotify.h>.
72429         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
72430         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72431         bits/inotify.h.
72432
72433 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
72434
72435         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
72436         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
72437         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
72438         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
72439         <bits/eventfd.h>.
72440         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
72441         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
72442         bits/eventfd.h.
72443
72444 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
72445
72446         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
72447         __feraiseexcept instead of feraiseexcept.
72448
72449         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
72450         nanosleep invocations.
72451         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
72452         strings, and add error checking for a nanosleep invocations.
72453
72454 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         Replace FSF snail mail address with URLs, as per GNU coding standards.
72457         Most of the snail mail addresses were wrong anyway, and omitting
72458         them makes the source code easier to maintain.  Almost all of the
72459         changes are to license notices and to locale LC_IDENTIFICATION
72460         addresses, except for this one:
72461         * manual/libc.texinfo: In "Published by", give the FSF's URL,
72462         not its snail mail address.
72463
72464 2012-02-09  Richard Henderson  <rth@twiddle.net>
72465
72466         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
72467         of kernel-features.h.
72468
72469         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
72470
72471 2012-02-08  Marek Polacek  <polacek@redhat.com>
72472
72473         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
72474         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
72475         * sysdeps/gnu/_G_config.h: Likewise.
72476         * sysdeps/generic/_G_config.h: Likewise.
72477
72478 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
72479
72480         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
72481         tests.
72482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72483
72484         * sysdeps/powerpc/powerpc32/crti.S: New file.
72485         * sysdeps/powerpc/powerpc32/crtn.S: New file.
72486         * sysdeps/powerpc/powerpc64/crti.S: New file.
72487         * sysdeps/powerpc/powerpc64/crtn.S: New file.
72488
72489         * Makeconfig (have-initfini): Don't set.
72490         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
72491         * configure.in (nopic_initfini): Don't substitute.
72492         * config.h.in (HAVE_INITFINI): Don't #undef.
72493         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
72494         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
72495
72496 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
72497
72498         Support crti.S and crtn.S provided directly by architectures.
72499         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
72500         [crti.S in sysdirs] (omit-deps): Likewise.
72501         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
72502         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
72503         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
72504         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
72505         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
72506         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
72507         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
72508         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
72509         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
72510         compiler output for sysdeps/generic/initfini.c.
72511         * sysdeps/i386/elf/Makefile: Remove file.
72512         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
72513
72514 2012-02-07  Marek Polacek  <polacek@redhat.com>
72515
72516         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
72517         * sysdeps/gnu/_G_config.h: Likewise.
72518         * sysdeps/mach/hurd/_G_config.h: Likewise.
72519
72520 2012-02-07  Marek Polacek  <polacek@redhat.com>
72521
72522         * math/Makefile (tests): Add tst-CMPLX2.
72523         * math/tst-CMPLX2.c: New file.
72524
72525 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
72526
72527         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72528
72529         * math/libm-test.inc (jn_test): Add missing L suffix.
72530
72531 2012-02-06  Marek Polacek  <polacek@redhat.com>
72532
72533         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
72534         * sysdeps/i386/fpu/e_powf.S: Likewise.
72535         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72536         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
72537         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72538         * sysdeps/i386/fpu/e_pow.S: Likewise.
72539         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
72540         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72541         * sysdeps/i386/fpu/s_expm1.S: Likewise.
72542         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
72543         * sysdeps/i386/fpu/e_log2.S: Likewise.
72544         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72545         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72546         * sysdeps/i386/fpu/e_powl.S: Likewise.
72547         * sysdeps/i386/fpu/s_log1p.S: Likewise.
72548         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72549         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
72550         * sysdeps/i386/fpu/e_logl.S: Likewise.
72551         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
72552         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
72553         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
72554         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
72555         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72556         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72557         * sysdeps/i386/fpu/e_log.S: Likewise.
72558         * sysdeps/i386/fpu/s_cexp.S: Likewise.
72559         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72560         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
72561         * sysdeps/i386/fpu/e_logf.S: Likewise.
72562         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72563         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72564         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
72565         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
72566         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
72567         * sysdeps/i386/fpu/e_log10.S: Likewise.
72568         * sysdeps/i386/fpu/s_frexp.S: Likewise.
72569         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72570         * sysdeps/i386/fpu/s_asinh.S: Likewise.
72571         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
72572         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72573         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
72574         * sysdeps/i386/asm-syntax.h: Likewise.
72575         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72576         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72577         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72578         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
72579         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
72580         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72581         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
72582         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
72583         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72584         * sysdeps/powerpc/sysdep.h: Likewise.
72585         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
72586         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
72587
72588 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
72589
72590         [BZ #411]
72591         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
72592
72593 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
72594
72595         * sysdeps/i386/sysdep.h: Include <features.h>.
72596         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
72597         version.
72598
72599 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
72600
72601         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
72602         Define.
72603         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
72604         LOAD_PIC_REG_STR.
72605
72606 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
72607
72608         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
72609         (SETUP_PIC_REG): Use GET_PC_THUNK.
72610         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
72611         macro.
72612
72613 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
72614
72615         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
72616         for non-PIC compilation.
72617         (SETUP_PIC_REG): Add .p2align directive.
72618         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
72619         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
72620         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
72621         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
72622         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
72623         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
72624         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
72625         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
72626         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
72627         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
72628         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
72629         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
72630         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
72631         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
72632         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
72633         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
72634         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
72635         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
72636         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
72637         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
72638         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
72639         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
72640         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
72641         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
72642         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
72643         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
72644         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
72645         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
72646         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
72647         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
72648         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
72649         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
72650         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
72651         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
72652         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
72653         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
72654         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
72655         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
72656         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
72657         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
72658         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
72659
72660 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
72661
72662         * math/tst-CMPLX.c: Include <stdio.h>.
72663
72664 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
72665
72666         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
72667         float.
72668         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
72669         * sysdeps/sparc/bits/mathdef.h: Likewise.
72670
72671 2012-01-31  Marek Polacek  <polacek@redhat.com>
72672
72673         * libio/libio.h: Don't define _PARAMS.
72674         * locale/programs/config.h: Don't define PARAMS.
72675         * stdlib/strtol_l.c: Likewise.
72676         (__strtol_l): Remove PARAMS from the prototype.
72677
72678 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
72679
72680         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
72681         names.  Just use the correct names.  Remove unnecessary wrapper
72682         functions.
72683         * malloc/arena.c: Likewise.
72684         * malloc/hooks.c: Likewise.
72685
72686         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
72687         ARENA_TEST says not to.  Simplify test for creation of a new arena.
72688         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
72689
72690 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
72691
72692         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
72693         into tail calls.
72694         (update_get_addr): New function.
72695         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
72696         GET_ADDR_MODULE parameter.
72697
72698 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
72699
72700         * crypt/cert.c: Remove __STDC__ conditionals.
72701         * crypt/crypt-entry.c: Likewise.
72702         * crypt/crypt_util.c: Likewise.
72703         * libio/filedoalloc.c: Likewise.
72704         * libio/fileops.c: Likewise.
72705         * libio/genops.c: Likewise.
72706         * libio/iofclose.c: Likewise.
72707         * libio/iofdopen.c: Likewise.
72708         * libio/iofopen.c: Likewise.
72709         * libio/iofopen64.c: Likewise.
72710         * libio/iogetdelim.c: Likewise.
72711         * libio/iopopen.c: Likewise.
72712         * libio/obprintf.c: Likewise.
72713         * libio/oldfileops.c: Likewise.
72714         * libio/oldiofclose.c: Likewise.
72715         * libio/oldiofdopen.c: Likewise.
72716         * libio/oldiofopen.c: Likewise.
72717         * libio/oldiopopen.c: Likewise.
72718         * libio/wfiledoalloc.c: Likewise.
72719         * libio/wgenops.c: Likewise.
72720         * locale/programs/xmalloc.c: Likewise.
72721         * misc/syslog.c: Likewise.
72722         * stdio-common/xbug.c: Likewise.
72723         * string/memchr.c: Likewise.
72724         * string/memcmp.c: Likewise.
72725         * string/memrchr.c: Likewise.
72726         * string/rawmemchr.c: Likewise.
72727         * sysdeps/posix/getcwd.c: Likewise.
72728         * time/strftime_l.c: Likewise.
72729
72730 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
72731
72732         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
72733         * config.make.in (config-cflags-sse2avx): Define.
72734         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
72735         Fix typo.
72736
72737 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
72738
72739         * scripts/config.guess: Update from upstream config git repository.
72740         * scripts/config.sub: Likewise.
72741
72742 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
72743
72744         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
72745         (EM_NUM): Update.
72746         (R_TILEPRO_*, R_TILEGX_*): New macros.
72747
72748         * scripts/firstversions.awk: Fix bug in version range handling.
72749
72750         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
72751
72752         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
72753
72754         * include/sys/epoll.h: New file.
72755         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
72756         libc_hidden_def.
72757
72758 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
72759
72760         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
72761         Avoid unnecessary __WORDSIZE == 64 test.
72762         (fmaxf): Use VEX format if possible.
72763         (fmax): Likewise.
72764         (fminf): Likewise.
72765         (fmin): Likewise.
72766
72767         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
72768         * math/math_private.h: Remove libc_fegetround* and
72769         libc_fesetround*.
72770         * sysdeps/i386/configure.in: Check for -msse2avx.
72771         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
72772         also if SSE2AVX is defined.
72773         Remove libc_fegetround* and libc_fesetround*.
72774         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
72775         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
72776         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
72777         of HAS_YMM_USABLE.
72778         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
72779         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
72780         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
72781         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
72782         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
72783
72784         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
72785
72786 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72787
72788         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
72789         size is not set.
72790         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
72791
72792 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
72793
72794         [BZ #13618]
72795         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
72796         relocation.
72797         * Makeconfig (libm): Define.
72798         * elf/Makefile: Add rules to build and run tst-relsort1.
72799         * elf/tst-relsort1.c: New file.
72800         * elf/tst-relsort1mod1.c: New file.
72801         * elf/tst-relsort1mod2.c: New file.
72802
72803 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
72804
72805         * math/s_ldexp.c: Remove __STDC__ conditionals.
72806         * math/s_ldexpf.c: Likewise.
72807         * math/s_ldexpl.c: Likewise.
72808         * math/s_nextafter.c: Likewise.
72809         * math/s_nexttowardf.c: Likewise.
72810         * math/s_significand.c: Likewise.
72811         * math/s_significandf.c: Likewise.
72812         * math/s_significandl.c: Likewise.
72813         * math/w_jnl.c: Likewise.
72814         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
72815         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
72816         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
72817         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
72818         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
72819         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
72820         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
72821         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
72822         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
72823         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
72824         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
72825         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
72826         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
72827         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
72828         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
72829         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
72830         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
72831         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
72832         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
72833         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72834         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72835         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
72836         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
72837         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
72838         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
72839         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
72840         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
72841         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
72842         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
72843         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
72844         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
72845         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
72846         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
72847         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
72848         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
72849         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
72850         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
72851         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
72852         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
72853         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
72854         * sysdeps/ieee754/k_standard.c: Likewise.
72855         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72856         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
72857         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
72858         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
72859         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
72860         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
72861         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
72862         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
72863         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
72864         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
72865         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
72866         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
72867         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
72868         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
72869         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
72870         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
72871         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
72872         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
72873         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
72874         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
72875         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
72876         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
72877         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
72878         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
72879         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
72880         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
72881         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72882         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72883         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72884         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
72885         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
72886         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
72887         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
72888         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
72889         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
72890         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
72891         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
72892         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
72893         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
72894         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
72895         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
72896         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
72897         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
72898         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
72899         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
72900         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
72901         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
72902         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
72903         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
72904         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
72905         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
72906         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
72907         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
72908         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
72909         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
72910         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
72911         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
72912         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72913         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72914         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72915         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
72916         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
72917         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
72918         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
72919         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
72920         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
72921         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
72922         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
72923         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
72924         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
72925         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
72926         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
72927         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
72928         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
72929         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
72930         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
72931         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
72932         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
72933         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
72934         * sysdeps/ieee754/s_matherr.c: Likewise.
72935         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
72936         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
72937         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
72938         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
72939
72940 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
72941
72942         * crypt/md5.h: Remove __STDC__ conditionals.
72943         * libio/libioP.h: Likewise.
72944         * locale/programs/config.h: Likewise.
72945         * sysdeps/generic/sysdep.h: Likewise.
72946         * sysdeps/i386/asm-syntax.h: Likewise.
72947         * sysdeps/s390/asm-syntax.h: Likewise.
72948         * sysdeps/unix/sysdep.h: Likewise.
72949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
72950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
72951
72952 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
72953
72954         * libio/libio.h: Remove __STDC__ conditionals.
72955         * malloc/obstack.h: Likewise.
72956         * math/complex.h: Likewise.
72957         * math/math.h: Likewise.
72958         * sysdeps/generic/_G_config.h: Likewise.
72959         * sysdeps/gnu/_G_config.h: Likewise.
72960         * sysdeps/mach/hurd/_G_config.h: Likewise.
72961         * sysdeps/powerpc/bits/mathdef.h: Likewise.
72962         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
72963         * sysdeps/sparc/bits/mathdef.h: Likewise.
72964
72965 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
72966
72967         [BZ #13583]
72968         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
72969         Clean up HAS_* macros.
72970         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
72971         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
72972         possible.
72973         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
72974         HAS_AVX.
72975         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
72976         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
72977         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
72978         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
72979         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
72980
72981 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
72982
72983         * elf/tst-unique3.cc (gets): Remove declaration.
72984         * elf/tst-unique3lib.cc (gets): Likewise.
72985         * elf/tst-unique3lib2.cc (gets): Likewise.
72986         * elf/tst-unique4.cc (gets): Likewise.
72987
72988 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
72989
72990         * include/stdio.h: Add C++ protection.  Add gets declarations and
72991         definitions.
72992         * debug/tst-chk1.c: Don't declare gets here.
72993         * stdio-common/tst-gets.c: Likewise.
72994
72995 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
72996
72997         * posix/glob: Remove directory.
72998
72999 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
73000
73001         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
73002
73003 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
73004
73005         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
73006         of the non-standard EPFNOSUPPORT.
73007
73008 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73009
73010         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
73011         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
73012         ANYWHERE set to 1 only on KERN_NO_SPACE error.
73013
73014 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
73015
73016         * wcsmbs/uchar.h: Test __STDC_VERSION__.
73017
73018 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
73019
73020         * nscd/aicache.c (addhstaiX): Do not cache negative results of
73021         transient errors.
73022         * nscd/grpcache.c (cache_addgr): Likewise.
73023         * nscd/hstcache.c (cache_addhst): Likewise.
73024         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73025         * nscd/pwdcache.c (cache_addpw): Likewise.
73026         * nscd/servicescache.c (cache_addserv): Likewise.
73027
73028 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
73029
73030         * malloc/malloc.c: Various cleanups.
73031         * malloc/hooks.c: Likewise.
73032
73033         * stdlib/Makefile (tests): Add bug-fmtmsg1.
73034         * stdlib/bug-fmtmsg1.c: New file.
73035
73036         * stdlib/fmtmsg.c (init): Add missing unlock.
73037         Patch by Peng Haitao <penght@cn.fujitsu.com>.
73038
73039 2012-01-12  Marek Polacek  <polacek@redhat.com>
73040
73041         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
73042         and _GNU_SOURCE.
73043
73044 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73045
73046         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
73047         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
73048         macro to ensure uniqueness of label name.
73049         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
73050         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
73051
73052 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
73053
73054         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
73055
73056         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
73057         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
73058         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
73059         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
73060
73061 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
73062
73063         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
73064
73065         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
73066         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
73067         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
73068
73069         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
73070
73071         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
73072         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
73073         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
73074         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
73075
73076         * math/bits/math-finite.h: Add ldexp support.
73077
73078 2012-01-10  Marek Polacek  <polacek@redhat.com>
73079
73080         * locale/programs/localedef.h (show_archive_content): Add noreturn
73081         attribute.
73082
73083 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
73084
73085         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
73086
73087 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
73088
73089         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
73090
73091         * io/Makefile (headers): Add bits/poll2.h.
73092
73093 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
73094
73095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
73096         typo #include statement.
73097
73098 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
73099
73100         * include/sys/cdefs.h: Define __attribute_alloc_size.
73101         * catgets/gencat.c: Add alloc_size attribute and apply consistently
73102         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
73103         * elf/pldd.c: Likewise.
73104         * iconv/iconv_charmap.c: Likewise.
73105         * iconv/iconvconfig.c: Likewise.
73106         * iconv/strtab.c: Likewise.
73107         * locale/programs/locale.c: Likewise.
73108         * locale/programs/localedef.h: Likewise.
73109         * locale/programs/simple-hash.c: Likewise.
73110         * nscd/nscd.h: Likewise.
73111         * nss/makedb.c: Likewise.
73112         * sysdeps/generic/ldconfig.h: Likewise.
73113         * locale/programs/localedef.c: Remove xmalloc prototype.
73114         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
73115
73116 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
73117
73118         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
73119         appropriate.
73120
73121 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
73122
73123         * math/Makefile (tests): Add tst-CMPLX.
73124         * math/tst-CMPLX.c: New file.
73125
73126         * math/complex.h (CMPLXL): Fix typo.
73127
73128         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
73129         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
73130         GLIBC_2.16.
73131         * debug/tst-chk1.c: Add poll and ppoll tests.
73132         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
73133         * include/sys/poll.h: Add hidden proto for ppoll.
73134         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
73135         * sysdeps/mach/hurd/ppoll.c: Likewise.
73136         * io/ppoll.c: Likewise.
73137         * debug/poll_chk.c: New file.
73138         * debug/ppoll_chk.c: New file.
73139         * include/bits/poll2.h: New file.
73140         * io/bits/poll2.h: New file.
73141
73142         [BZ #1350]
73143         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
73144
73145         * configure.in: static is always set to yes.  Remove.
73146         * config.make.in: Don't set build-static.
73147         * Makeconfig: Remove use of build-static.
73148         * dlfcn/Makefile: Likewise.
73149         * elf/Makefile: Likewise.
73150         * math/Makefile: Likewise.
73151         * misc/Makefile: Likewise.
73152         * nptl/Makefile: Likewise.
73153         * sysdeps/mach/hurd/Makefile: Likewise.
73154
73155         * configure.in: PWD_P is not used anymore.
73156         * config.make.in: Remove PWD_P entry.
73157
73158         * configure.in: Remove last remnants of RANLIB.
73159         No need to check for signed size_t anymore.
73160         Don't set libc_commonpagesize and libc_relro_required here for Alpha
73161         and IA-64.
73162         Remove __builtin_expect test because we require at least gcc 3.4.
73163         * aclocal.m4: Likewise.
73164
73165         * wcsmbs/mbrtoc16.c: Implement using towc function.
73166         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
73167         * wcsmbs/wcsmbsload.c: Likewise.
73168         * iconv/gconv_simple.c: Likewise.
73169         * iconv/gconv_int.h: Likewise.
73170         * iconv/gconv_builtin.h: Likewise.
73171         * iconv/iconv_prog.c: Remove CHAR16 handling.
73172
73173         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
73174
73175         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
73176
73177         * configure.in: Remove --with-elf and --enable-bounded options.
73178         Dont set base_machine for ia64.  More non-ELF conditions removed.
73179         Remove testing and setting of leading underscore information.
73180         * config.make.in (build-bounded): Set to no.
73181         * config.h.in: Remove NO_UNDERSCORES entry.
73182         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
73183         them.
73184         * csu/start.c: Remove !NO_UNDERSCORE code.
73185         * locale/localeinfo.h: Likewise.
73186         * sysdeps/generic/machine-gmon.h: Likewise.
73187         * sysdeps/generic/sysdep.h: Likewise.
73188         * sysdeps/i386/sysdep.h: Likewise.
73189         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
73190         * sysdeps/mach/sysdep.h: Likewise.
73191         * sysdeps/s390/s390-32/sysdep.h: Likewise.
73192         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73193         * sysdeps/sh/sysdep.h: Likewise.
73194         * sysdeps/sparc/sparc32/alloca.S: Likewise.
73195         * sysdeps/unix/i386/sysdep.S: Likewise.
73196         * sysdeps/unix/sparc/start.c: Likewise.
73197         * sysdeps/unix/sparc/sysdep.S: Likewise.
73198         * sysdeps/unix/sparc/sysdep.h: Likewise.
73199         * sysdeps/unix/start.c: Likewise.
73200         * sysdeps/unix/x86_64/sysdep.S: Likewise.
73201         * sysdeps/x86_64/sysdep.h: Likewise.
73202
73203 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
73204
73205         [BZ #13553]
73206         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
73207         for non-gcc.
73208         * argp/argp-fmtstream.h: Use const instead __const.
73209         * argp/argp.h: Likewise.
73210         * assert/assert.h: Likewise.
73211         * bits/fenv.h: Likewise.
73212         * bits/sched.h: Likewise.
73213         * bits/sigset.h: Likewise.
73214         * bits/sigthread.h: Likewise.
73215         * catgets/nl_types.h: Likewise.
73216         * conform/data/pthread.h-data: Likewise.
73217         * crypt/crypt-private.h: Likewise.
73218         * crypt/crypt.h: Likewise.
73219         * crypt/crypt_util.c: Likewise.
73220         * ctype/ctype.h: Likewise.
73221         * debug/execinfo.h: Likewise.
73222         * debug/mbsnrtowcs_chk.c: Likewise.
73223         * debug/mbsrtowcs_chk.c: Likewise.
73224         * debug/wcsnrtombs_chk.c: Likewise.
73225         * debug/wcsrtombs_chk.c: Likewise.
73226         * debug/wcstombs_chk.c: Likewise.
73227         * dirent/dirent.h: Likewise.
73228         * dlfcn/dlfcn.h: Likewise.
73229         * elf/neededtest4.c: Likewise.
73230         * grp/grp.h: Likewise.
73231         * gshadow/gshadow.h: Likewise.
73232         * iconv/gconv.h: Likewise.
73233         * iconv/gconv_int.h: Likewise.
73234         * iconv/gconv_simple.c: Likewise.
73235         * iconv/iconv.h: Likewise.
73236         * iconv/loop.c: Likewise.
73237         * iconv/skeleton.c: Likewise.
73238         * include/aio.h: Likewise.
73239         * include/aliases.h: Likewise.
73240         * include/argz.h: Likewise.
73241         * include/arpa/inet.h: Likewise.
73242         * include/assert.h: Likewise.
73243         * include/dirent.h: Likewise.
73244         * include/dlfcn.h: Likewise.
73245         * include/execinfo.h: Likewise.
73246         * include/fcntl.h: Likewise.
73247         * include/fenv.h: Likewise.
73248         * include/glob.h: Likewise.
73249         * include/grp.h: Likewise.
73250         * include/libintl.h: Likewise.
73251         * include/mntent.h: Likewise.
73252         * include/netdb.h: Likewise.
73253         * include/pwd.h: Likewise.
73254         * include/rpc/netdb.h: Likewise.
73255         * include/sched.h: Likewise.
73256         * include/search.h: Likewise.
73257         * include/shadow.h: Likewise.
73258         * include/signal.h: Likewise.
73259         * include/stdio.h: Likewise.
73260         * include/stdlib.h: Likewise.
73261         * include/string.h: Likewise.
73262         * include/sys/socket.h: Likewise.
73263         * include/sys/stat.h: Likewise.
73264         * include/sys/statfs.h: Likewise.
73265         * include/sys/statvfs.h: Likewise.
73266         * include/sys/syslog.h: Likewise.
73267         * include/sys/time.h: Likewise.
73268         * include/sys/uio.h: Likewise.
73269         * include/time.h: Likewise.
73270         * include/unistd.h: Likewise.
73271         * include/utmp.h: Likewise.
73272         * include/wchar.h: Likewise.
73273         * include/wctype.h: Likewise.
73274         * inet/aliases.h: Likewise.
73275         * inet/arpa/inet.h: Likewise.
73276         * inet/netinet/ether.h: Likewise.
73277         * inet/netinet/in.h: Likewise.
73278         * intl/libintl.h: Likewise.
73279         * io/bits/fcntl2.h: Likewise.
73280         * io/fcntl.h: Likewise.
73281         * io/ftw.h: Likewise.
73282         * io/sys/poll.h: Likewise.
73283         * io/sys/stat.h: Likewise.
73284         * io/sys/statfs.h: Likewise.
73285         * io/sys/statvfs.h: Likewise.
73286         * io/utime.h: Likewise.
73287         * libio/bits/stdio.h: Likewise.
73288         * libio/bits/stdio2.h: Likewise.
73289         * libio/libio.h: Likewise.
73290         * libio/libioP.h: Likewise.
73291         * libio/stdio.h: Likewise.
73292         * locale/lc-ctype.c: Likewise.
73293         * locale/locale.h: Likewise.
73294         * login/utmp.h: Likewise.
73295         * malloc/arena.c: Likewise.
73296         * malloc/malloc.c: Likewise.
73297         * malloc/malloc.h: Likewise.
73298         * malloc/mcheck.c: Likewise.
73299         * malloc/mtrace.c: Likewise.
73300         * math/bits/mathcalls.h: Likewise.
73301         * math/fenv.h: Likewise.
73302         * math/math_private.h: Likewise.
73303         * misc/bits/error.h: Likewise.
73304         * misc/bits/syslog.h: Likewise.
73305         * misc/err.h: Likewise.
73306         * misc/error.h: Likewise.
73307         * misc/fstab.h: Likewise.
73308         * misc/mntent.h: Likewise.
73309         * misc/regexp.h: Likewise.
73310         * misc/search.h: Likewise.
73311         * misc/sgtty.h: Likewise.
73312         * misc/sys/mman.h: Likewise.
73313         * misc/sys/syslog.h: Likewise.
73314         * misc/sys/uio.h: Likewise.
73315         * misc/sys/xattr.h: Likewise.
73316         * misc/ttyent.h: Likewise.
73317         * nis/rpcsvc/ypclnt.h: Likewise.
73318         * nss/nss.h: Likewise.
73319         * posix/bits/unistd.h: Likewise.
73320         * posix/fnmatch.h: Likewise.
73321         * posix/glob.h: Likewise.
73322         * posix/sched.h: Likewise.
73323         * posix/spawn.h: Likewise.
73324         * posix/sys/wait.h: Likewise.
73325         * posix/unistd.h: Likewise.
73326         * posix/wordexp.h: Likewise.
73327         * pwd/pwd.h: Likewise.
73328         * resolv/netdb.h: Likewise.
73329         * resource/sys/resource.h: Likewise.
73330         * rt/aio.h: Likewise.
73331         * rt/bits/mqueue2.h: Likewise.
73332         * rt/mqueue.h: Likewise.
73333         * shadow/shadow.h: Likewise.
73334         * signal/signal.h: Likewise.
73335         * socket/send.c: Likewise.
73336         * socket/sendto.c: Likewise.
73337         * socket/sys/socket.h: Likewise.
73338         * stdio-common/printf.h: Likewise.
73339         * stdlib/bits/stdlib.h: Likewise.
73340         * stdlib/fmtmsg.h: Likewise.
73341         * stdlib/monetary.h: Likewise.
73342         * stdlib/stdlib.h: Likewise.
73343         * stdlib/ucontext.h: Likewise.
73344         * streams/stropts.h: Likewise.
73345         * string/argz.h: Likewise.
73346         * string/bits/string2.h: Likewise.
73347         * string/string.h: Likewise.
73348         * string/strings.h: Likewise.
73349         * sunrpc/rpc/auth.h: Likewise.
73350         * sunrpc/rpc/auth_des.h: Likewise.
73351         * sunrpc/rpc/clnt.h: Likewise.
73352         * sunrpc/rpc/netdb.h: Likewise.
73353         * sunrpc/rpc/pmap_clnt.h: Likewise.
73354         * sunrpc/rpc/xdr.h: Likewise.
73355         * sysdeps/generic/inttypes.h: Likewise.
73356         * sysdeps/generic/net/if.h: Likewise.
73357         * sysdeps/generic/sys/swap.h: Likewise.
73358         * sysdeps/gnu/net/if.h: Likewise.
73359         * sysdeps/gnu/utmpx.h: Likewise.
73360         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
73361         * sysdeps/i386/i486/bits/string.h: Likewise.
73362         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
73363         * sysdeps/s390/bits/string.h: Likewise.
73364         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
73365         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
73366         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
73367         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
73368         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
73369         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
73370         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
73371         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
73372         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
73373         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
73374         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
73375         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
73376         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
73377         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
73378         * sysdeps/unix/sysv/linux/readv.c: Likewise.
73379         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
73380         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
73381         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
73382         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
73383         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
73384         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
73385         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
73386         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
73387         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
73388         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
73389         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
73390         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
73391         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
73392         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
73393         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
73394         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
73395         * sysvipc/sys/ipc.h: Likewise.
73396         * sysvipc/sys/msg.h: Likewise.
73397         * sysvipc/sys/sem.h: Likewise.
73398         * sysvipc/sys/shm.h: Likewise.
73399         * termios/termios.h: Likewise.
73400         * time/sys/time.h: Likewise.
73401         * time/time.h: Likewise.
73402         * wcsmbs/bits/wchar2.h: Likewise.
73403         * wcsmbs/uchar.h: Likewise.
73404         * wcsmbs/wchar.h: Likewise.
73405         * wctype/wctype.h: Likewise.
73406
73407         [BZ #13551]
73408         * Makeconfig: Remove all but ELF support including AIX support.
73409         * Makerules: Likewise.
73410         * config.h.in: Likewise.
73411         * config.make.in: Likewise.
73412         * configure: Likewise.
73413         * configure.in: Likewise.
73414         * csu/Makefile: Likewise.
73415         * csu/version.c: Likewise.
73416         * debug/Makefile: Likewise.
73417         * dlfcn/Makefile: Likewise.
73418         * elf/Makefile: Likewise.
73419         * extra-lib.mk: Likewise.
73420         * iconv/Makefile: Likewise.
73421         * include/libc-symbols.h: Likewise.
73422         * include/shlib-compat.h: Likewise.
73423         * resolv/Makefile: Likewise.
73424         * resolv/res_libc.c: Likewise.
73425         * rt/Makefile: Likewise.
73426         * sysdeps/i386/asm-syntax.h: Likewise.
73427         * sysdeps/i386/sysdep.h: Likewise.
73428         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
73429         * sysdeps/mach/sysdep.h: Likewise.
73430         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
73431         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
73432         * sysdeps/s390/asm-syntax.h: Likewise.
73433         * sysdeps/s390/s390-32/sysdep.h: Likewise.
73434         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73435         * sysdeps/sh/sysdep.h: Likewise.
73436         * sysdeps/unix/sparc/sysdep.h: Likewise.
73437         * sysdeps/wordsize-32/divdi3.c: Likewise.
73438         * sysdeps/x86_64/sysdep.h: Likewise.
73439
73440         * argp/Versions: Remove _argp_unlock_xxx.
73441
73442         [BZ #13559]
73443         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
73444         * abilist/libBrokenLocale.abilist: Likewise.
73445         * abilist/libanl.abilist: Likewise.
73446         * abilist/libc.abilist: Likewise.
73447         * abilist/libcrypt.abilist: Likewise.
73448         * abilist/libdl.abilist: Likewise.
73449         * abilist/libm.abilist: Likewise.
73450         * abilist/libnsl.abilist: Likewise.
73451         * abilist/libpthread.abilist: Likewise.
73452         * abilist/libresolv.abilist: Likewise.
73453         * abilist/librt.abilist: Likewise.
73454         * abilist/libthread_db.abilist: Likewise.
73455         * abilist/libutil.abilist: Likewise.
73456         * abilist/libnss_db.abilist: New file.
73457
73458         * scripts/abilist.awk: Add support for indirect functions.
73459
73460         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
73461
73462         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
73463
73464         * shlib-versions: Remove entries for ports architectures.
73465
73466         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
73467         files in ports.
73468         * elf/stackguard-macros.h: Remove support for IA-64.
73469         * elf/tst-auditmod1.c: Likewise.
73470         * sysdeps/generic/ldsodefs.h: Likewise.
73471
73472         * sysdeps/unix/sysv/linux/configure.in: Ports should define
73473         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
73474         configure files.
73475
73476         [BZ #13552]
73477         * configure.in: Remove --enable-omitfp support.
73478         * FAQ.in: Adjust.
73479         * config.make.in: Likewise.
73480         * Makeconfig: Likewise.
73481         * manual/install.texi: Likewise.
73482
73483         In case anyone cares, the IA-64 architecture could move to ports.
73484         * sysdeps/ia64/*: Removed.
73485         * sysdeps/unix/sysv/linux/ia64/*: Removed.
73486         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
73487
73488         [BZ #13555]
73489         * configure.in: Remove entries for unsupported architectures.
73490
73491         [BZ #13533]
73492         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
73493         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
73494         routines.
73495         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
73496         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
73497         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
73498         fall back to using wcrtomb.
73499         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
73500         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
73501         renaming.
73502         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
73503         * wcsmbs/tst-c16c32-1.c: New file.
73504
73505         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
73506         local variable.
73507
73508         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
73509
73510         * elf/tst-unique3.cc: Add explicit declaration of gets.
73511         * elf/tst-unique3lib.cc: Likewise.
73512         * elf/tst-unique3lib2.cc: Likewise.
73513         * elf/tst-unique4.cc: Likewise.
73514
73515         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
73516
73517 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
73518
73519         [BZ #13566]
73520         * assert/assert.h (static_assert): Don't define for C++.
73521         * libio/stdio.h (gets): Do declare for C++ <= C++11.
73522         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
73523
73524 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
73525
73526         * iconv/loop.c (single loop): Fix assertion in storing of
73527         remaining bytes.
73528
73529         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
73530
73531 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
73532
73533         * posix/getconf.c: Update copyright year.
73534         * nss/getent.c: Likewise.
73535         * nss/makedb.c: Likewise.
73536         * iconv/iconvconfig.c: Likewise.
73537         * iconv/iconv_prog.c: Likewise.
73538         * elf/ldconfig.c: Likewise.
73539         * elf/pldd.c: Likewise.
73540         * elf/sotruss.ksh: Likewise.
73541         * catgets/gencat.c: Likewise.
73542         * csu/version.c: Likewise.
73543         * elf/ldd.bash.in: Likewise.
73544         * elf/sprof.c (print_version): Likewise.
73545         * locale/programs/locale.c: Likewise.
73546         * locale/programs/localedef.c: Likewise.
73547         * login/programs/pt_chown.c: Likewise.
73548         * nscd/nscd.c (print_version): Likewise.
73549         * debug/xtrace.sh: Likewise.
73550         * malloc/memusage.sh: Likewise.
73551         * malloc/mtrace.pl: Likewise.
73552         * debug/catchsegv.sh: Likewise.
73553
73554 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
73555
73556         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
73557         pure attribute.
73558
73559 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
73560
73561         [BZ #13533]
73562         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
73563         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
73564         transformations.
73565         * iconv/gconv_int.h: Likewise.
73566         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
73567         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
73568         from libc for GLIBC_2.16.
73569         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
73570         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
73571         * wcsmbs/uchar.h: Really define mbstate_t.
73572         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
73573         * wcsmbs/c16rtomb.c: New file.
73574         * wcsmbs/mbrtoc16.c: New file.
73575         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
73576         for C/POSIX locale.
73577         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
73578         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
73579
73580         * wcsmbs/wchar.h: Add missing __restrict.
73581
73582 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
73583
73584         [BZ #13532]
73585         * time/Makefile (routines): Add timespec_get.
73586         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
73587         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
73588         timespec for ISO C11.
73589         * time/timespec_get.c: New file.
73590         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
73591         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
73592
73593         [BZ #13531]
73594         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
73595         * stdlib/stdlib.h: Declare aligned_alloc.
73596         * Versions.def: Add GLIBC_2.16 for libc.
73597         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
73598
73599         [BZ 13527]
73600         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
73601         ISO C11.
73602
73603         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
73604         code.
73605
73606         [BZ #13528]
73607         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
73608
73609         [BZ #13529]
73610         * assert/assert.h (static_assert): Define.
73611
73612         * version.h: Update for 2.16 development version.
73613
73614         [BZ #13526]
73615         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
73616         _ISOC11_SOURCE.
73617
73618         * version.h (RELEASE): Bump for 2.15 release.
73619         * include/features.h (__GLIBC_MINOR__): Bump to 15.
73620
73621         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
73622         Patch by Marek Polacek <mpolacek@redhat.com>.
73623
73624         * bits/byteswap.h: Protect long long constants with __extension__.
73625         * sysdeps/i386/bits/byteswap.h: Likewise.
73626         * sysdeps/ia64/bits/byteswap.h: Likewise.
73627         * sysdeps/s390/bits/byteswap.h: Likewise.
73628         * sysdeps/x86_64/bits/byteswap.h: Likewise.
73629
73630 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73631
73632         [BZ #13540]
73633         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
73634         destination buffer.
73635         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
73636
73637 2011-12-23  Marek Polacek  <polacek@redhat.com>
73638
73639         * elf/dl-addr.c (determine_info): Add inline keyword.
73640         * elf/tst-auditmod4b.c (check_avx): Likewise.
73641         * elf/tst-auditmod6b.c (check_avx): Likewise.
73642         * elf/tst-auditmod6c.c (check_avx): Likewise.
73643         * elf/tst-auditmod7b.c (check_avx): Likewise.
73644
73645 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
73646
73647         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
73648         !__SSE_MATH__.
73649
73650 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73651
73652         [BZ #13540]
73653         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
73654         processing for last bytes.
73655
73656 2011-08-06  Bruno Haible  <bruno@clisp.org>
73657
73658         [BZ #13061]
73659         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
73660         U+0385, not to U+1FEE.
73661
73662         [BZ #13062]
73663         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
73664         entry for U+00A5 U+0301.
73665
73666 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
73667
73668         [BZ #13166]
73669         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
73670         buffer for the output is too small.
73671
73672         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
73673         optimization.
73674
73675         [BZ #13185]
73676         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
73677         SSE flags if possible.
73678
73679 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73680
73681         [BZ #13540]
73682         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
73683         processing for last bytes.
73684
73685 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
73686
73687         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
73688         (syscall-list-default-options, syscall-list-default-condition)
73689         (syscall-list-includes): Define.
73690         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
73691         list of ABIs and options and #if conditions for each ABI.  Do not
73692         handle common syscalls between ABIs specially.
73693         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
73694         Remove.
73695         (syscall-list-variants, syscall-list-32bit-options)
73696         (syscall-list-32bit-condition, syscall-list-64bit-options)
73697         (syscall-list-64bit-condition): Define.
73698         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
73699         (syscall-list-variants, syscall-list-32bit-options)
73700         (syscall-list-32bit-condition, syscall-list-64bit-options)
73701         (syscall-list-64bit-condition): Define.
73702         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
73703         Remove.
73704         (syscall-list-variants, syscall-list-32bit-options)
73705         (syscall-list-32bit-condition, syscall-list-64bit-options)
73706         (syscall-list-64bit-condition): Define.
73707         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
73708         Remove.
73709         (syscall-list-variants, syscall-list-32bit-options)
73710         (syscall-list-32bit-condition, syscall-list-64bit-options)
73711         (syscall-list-64bit-condition): Define.
73712
73713 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
73714
73715         * locale/iso-639.def: Add brx entry.
73716
73717         [BZ #13328]
73718         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
73719         Proposed by Mariusz_Cukr <marcukr@op.pl>.
73720
73721         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
73722         __feraiseexcept_renamed.
73723
73724 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
73725
73726         [BZ #13538]
73727         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
73728         EPOLLET with unsigned values.
73729         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
73730         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
73731
73732         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
73733         to large cancellation.
73734         * math/s_cacoshf.c: Likewise.
73735         * math/s_cacoshl.c: Likewise.
73736
73737 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
73738
73739         [BZ #13305]
73740         [BZ #12786]
73741         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
73742         * math/s_cacoshf.c: Likewise.
73743         * math/s_cacoshl.c: Likewise.
73744
73745 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
73746
73747         [BZ #13439]
73748         * iconv/gconv.h: Define __GCONV_SWAP.
73749         * iconvdata/unicode.c: The swap bit must be stored in __flags.
73750         * iconvdata/utf-16.c: Likewise.
73751         * iconvdata/utf-32.c: Likewise.
73752
73753 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
73754
73755         [BZ #13524]
73756         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
73757         numerator after shifting it by one limb.
73758
73759 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
73760
73761         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
73762         under [__USE_EXTERN_INLINES].
73763
73764 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
73765
73766         [BZ #13446]
73767         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
73768
73769 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73770
73771         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
73772         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
73773         optimized code.
73774         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
73775         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
73776         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
73777         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
73778         for strncasecmp/strncasecmp_l compilation.
73779         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
73780         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
73781
73782 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
73783
73784         [BZ #13484]
73785         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
73786         of __asm__.
73787
73788 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
73789
73790         [BZ #13506]
73791         * time/tzfile.c (__tzfile_read): Check values from file header.
73792
73793 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
73794
73795         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
73796         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
73797         * powerpc/powerpc32/dl-start.S: Likewise.
73798         * powerpc/powerpc32/elf/start.S: Likewise.
73799         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
73800         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
73801         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
73802         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
73803         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
73804         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
73805         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
73806         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
73807         * powerpc/powerpc32/fpu/s_round.S: Likewise.
73808         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
73809         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
73810         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
73811         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
73812         * powerpc/powerpc32/memset.S: Likewise.
73813         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
73814         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
73815         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
73816         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
73817         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
73818         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
73819         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
73820         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
73821         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
73822         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
73823         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
73824         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
73825         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
73826
73827 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73828
73829         * math/libm-test.inc: Added more nearbyint tests.
73830         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
73831         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
73832         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
73833         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
73834
73835 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
73836
73837         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
73838         FD_CLOEXEC.
73839
73840 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73841
73842         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
73843         Add wcscpy-ssse3 wcscpy-c.
73844         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
73845         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
73846         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
73847         * sysdeps/x86_64/wcschr.S: New file.
73848         * sysdeps/x86_64/wcsrchr.S: New file.
73849         * string/test-strcmp.c: Remove checking of wcscmp function for
73850         wrong alignments.
73851         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
73852         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
73853         wcsrchr-sse2 wcsrchr-c.
73854         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
73855         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
73856         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
73857         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
73858         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
73859         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
73860         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
73861         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
73862         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
73863         * wcsmbc/wcschr.c (WCSCHR): New macro.
73864
73865 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73866
73867         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
73868         * wcsmbs/test-wcsrchr.c: New file.
73869         * string/test-strrchr.c: Add wcsrchr support.
73870         (WIDE): New macro.
73871         * wcsmbs/test-wcscpy.c: New file.
73872         * string/test-strcpy.c: Add wcscpy support.
73873         (WIDE): New macro.
73874
73875 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
73876
73877         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
73878         the inner loop.
73879
73880 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
73881
73882         [BZ #13472]
73883         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
73884
73885 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
73886
73887         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
73888         Minor optimizations.
73889
73890         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
73891         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
73892         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
73893
73894 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
73895
73896         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
73897         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
73898         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
73899         for gcc to avoid warnings.
73900         * inet/Makefile (tests): Add tst-checks.
73901         * inet/tst-checks.c: New file.
73902
73903         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
73904         warning.
73905
73906         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
73907         __wmemcmp_sse2.
73908
73909         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
73910         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
73911
73912         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
73913
73914 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
73915
73916         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
73917         problem.
73918
73919         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
73920
73921 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
73922
73923         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
73924         conditional on GCC version.
73925         (__arch_compare_and_exchange_val_8_acq)
73926         (__arch_compare_and_exchange_val_16_acq)
73927         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
73928         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
73929         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
73930
73931 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
73932
73933         * sysdeps/sh/backtrace.c: New file.
73934
73935 2011-12-02  Andreas Schwab  <schwab@redhat.com>
73936
73937         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
73938         parenthesis.
73939
73940 2011-12-01  Andreas Schwab  <schwab@redhat.com>
73941
73942         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
73943         falling back to utime.
73944
73945 2011-11-30  Andreas Schwab  <schwab@redhat.com>
73946
73947         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
73948         expectations for float.
73949
73950 2011-11-29  Andreas Schwab  <schwab@redhat.com>
73951
73952         * locale/weight.h (findidx): Add parameter len.
73953         * locale/weightwc.h (findidx): Likewise.
73954         * posix/fnmatch_loop.c (FCT): Adjust caller.
73955         * posix/regcomp.c (build_equiv_class): Likewise.
73956         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
73957         * posix/regexec.c (check_node_accept_bytes): Likewise.
73958         * string/strcoll_l.c (STRCOLL): Likewise.
73959         * string/strxfrm_l.c (STRXFRM): Likewise.
73960
73961 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
73962
73963         * Makefile.in: Remove CVSOPT handling.
73964         * configure.in: Remove use of AC_REVISION.
73965         * iconvdata/Makefile (distribute): No need to filter out CVS.
73966         * scripts/list-sources.sh: Remove CVS, subversion and monotone
73967         handling.
73968
73969 2011-11-16  Andreas Schwab  <schwab@redhat.com>
73970
73971         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
73972         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
73973         [USE_AS_STRNCASECMP_L]: Likewise.
73974         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
73975         NO_TLS_DIRECT_SEG_REFS.
73976         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
73977         Fix argument offsets for non-PIC.
73978         [USE_AS_STRNCASECMP_L]: Likewise.
73979         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
73980         NO_TLS_DIRECT_SEG_REFS.
73981
73982 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
73983
73984         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
73985         O_CLOEXEC.
73986         * locale/loadlocale.c (_nl_load_locale): Likewise.
73987
73988 2011-11-15  Andreas Schwab  <schwab@redhat.com>
73989
73990         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
73991         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
73992         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
73993         (SYSCALL_GETTIME): Set errno on error.
73994
73995         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
73996         count references to noai6ai_cached.
73997
73998 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
73999
74000         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
74001
74002         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
74003         FD_CLOEXEC for /proc/self/maps.
74004
74005         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
74006         FD_CLOEXEC for /proc/meminfo.
74007
74008         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
74009         gai.conf.
74010
74011         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
74012         FD_CLOEXEC for given file.
74013
74014         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
74015
74016         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
74017         FD_CLOEXEC for /etc/hosts.
74018         (_gethtent): Likewise.
74019
74020         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
74021
74022         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
74023         cancellation and set FD_CLOEXEC for /etc/netgroup.
74024
74025         * nss/nss_files/files-key.c (search): Don't allow cancellation when
74026         reading /etc/publickey.
74027
74028         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
74029         allow cancellation when reading /etc/group.
74030
74031         * nss/nss_files/files-alias.c (internal_setent): Don't allow
74032         cancellation.
74033         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
74034
74035         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
74036         when using data file.
74037
74038         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
74039
74040         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
74041         (write_nis_obj): Use "c" and "e" in fopen.
74042
74043         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
74044
74045         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
74046
74047         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
74048
74049         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
74050
74051         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
74052         locale.alias.
74053
74054         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
74055
74056         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
74057
74058         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
74059
74060         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
74061         file parsing and set FD_CLOEXEC.
74062
74063 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
74064
74065         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
74066
74067 2011-11-14  Andreas Schwab  <schwab@redhat.com>
74068
74069         * malloc/arena.c (arena_get2): Don't call reused_arena when
74070         _int_new_arena failed.
74071
74072 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
74073
74074         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
74075         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
74076         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
74077         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
74078         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
74079         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
74080         to compile strcasecmp and strncasecmp.
74081         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
74082         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
74083
74084         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
74085
74086 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
74087
74088         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
74089         locale-defines.sym to gen-as-const-headers.
74090         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
74091         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
74092         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
74093         to compile strcasecmp and strncasecmp.
74094         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
74095         strcasecmp_l and strncasecmp_l.
74096         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
74097         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
74098         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
74099         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
74100         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
74101         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
74102         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
74103         * sysdeps/i386/i686/multiarch/strncase.S: New file.
74104         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
74105         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
74106         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
74107
74108 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
74109
74110         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
74111         result of SYSDEP_GETTIME_CPU to retval.
74112         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
74113         parameter list to macro.  Remove trailing semicolon.  Adjust users.
74114
74115         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
74116         variable.
74117
74118         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
74119         mantissa words.
74120         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
74121
74122         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
74123         from unused variable.
74124
74125         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
74126         DWARF definitions.
74127         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
74128         for assembling.
74129
74130         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
74131         over namespaces.
74132
74133         * sunrpc/rpc_prot.c (rejected): Fix case value.
74134
74135         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
74136         unsigned long long int to avoid warnings in shift.
74137
74138         * posix/regex_internal.c (re_string_reconstruct): Actually use result
74139         of use of trans.
74140         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
74141         variable tmp.
74142
74143         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
74144         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
74145         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
74146
74147         * nis/nis_table.c (nis_list): Use variable of correct type for
74148         result of __follow_path call.
74149
74150 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74151
74152         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
74153         of math functions ceil, trunc, floor, round, and sqrt, when
74154         avaliable on the platform.
74155         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
74156         name clash.
74157         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
74158         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
74159         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
74160
74161 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
74162
74163         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
74164         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
74165
74166 2011-11-11  Roland McGrath  <roland@hack.frob.com>
74167
74168         * include/unistd.h: Fix __readlink return type.
74169         Reported by Chris Metcalf <cmetcalf@tilera.com>.
74170
74171 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
74172
74173         * stdlib/ucontext.h: Undo last change for makecontext.
74174
74175 2011-11-11  Andreas Schwab  <schwab@redhat.com>
74176
74177         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
74178
74179         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
74180         * setjmp/setjmp.h: Mark functions as non-leaf.
74181         * setjmp/bits/setjmp2.h: Likewise.
74182         * stdlib/ucontext.h: Likewise.
74183
74184 2011-11-10  Andreas Schwab  <schwab@redhat.com>
74185
74186         * malloc/arena.c (_int_new_arena): Don't increment narenas.
74187         (reused_arena): Don't check arena limit.
74188         (arena_get2): Atomically check arena limit.
74189
74190 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
74191
74192         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
74193         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
74194
74195         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
74196         instructions.
74197
74198 2011-11-07  Andreas Schwab  <schwab@redhat.com>
74199
74200         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
74201         handler when locking.
74202
74203         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
74204         Fix size of allocated buffer.
74205
74206 2011-11-04  Andreas Schwab  <schwab@redhat.com>
74207
74208         [BZ #10103]
74209         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
74210         declarations for long double functions.
74211         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
74212
74213         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
74214
74215 2011-11-03  Andreas Schwab  <schwab@redhat.com>
74216
74217         * nscd/nscd.c (main): Don't start AVC thread until credentials are
74218         installed.
74219
74220         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
74221         is disabled.
74222
74223 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74224
74225         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
74226
74227 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
74228
74229         * include/alloca.h (stackinfo_alloca_round): Define.
74230         (extend_alloca): Use it.
74231         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
74232         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
74233         here.
74234
74235         * scripts/check-local-headers.sh: Ignore libaudit.h.
74236
74237         * nscd/Makefile (extra-objs): Make recursively expanded.
74238
74239 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
74240
74241         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
74242         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
74243
74244         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
74245         * posix/tst-rfc3484-2.c: Likewise.
74246         * posix/tst-rfc3484-3.c: Likewise.
74247
74248         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
74249         process_vm_writev.
74250         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
74251         process_vm_writev.
74252         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
74253         process_vm_writev from libc using GLIBC_2.15 version.
74254
74255         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
74256
74257 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
74258
74259         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
74260         stack usage.
74261
74262 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
74263
74264         [BZ #13367]
74265         * nss/getent.c (initgroups_keys): Show error message in case no group
74266         names are given.
74267
74268         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
74269         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
74270         __bump_nl_timestamp.
74271         * nscd/connections (nscd_init): When host database is served open
74272         netlink socket and request notification about configuration changes.
74273         (main_loop_poll): Track netlink file descriptor and bump timestamp
74274         in case data becomes available.
74275         (main_loop_epoll): Likewise.
74276         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
74277         (database_pers_head): Add extra_data fileds.
74278         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
74279         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
74280         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
74281         Adjust caller.
74282         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
74283         in6ai data, call __free_in6ai.
74284         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
74285         Add -DHAVE_NETLINK.
74286         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
74287         interface information.  Reuse previous data if netlink timestamp
74288         is not changed.
74289         (__bump_nl_timestamp): New function.
74290         (__free_in6ai): New function.
74291
74292 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
74293
74294         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
74295         close_not_cancel_no_status here.
74296         (__check_pf): Reorganize code a bit to not call close twice if OOM.
74297
74298 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
74299
74300         [BZ #13276]
74301         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
74302         return value.
74303
74304         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
74305         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
74306         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
74307
74308 2011-07-03  Andreas Jaeger  <aj@suse.de>
74309
74310         [BZ #10709]
74311         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
74312         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
74313         * math/libm-test.inc (sin_test): Add test case.
74314
74315 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
74316
74317         [BZ #13337]
74318         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
74319         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
74320
74321         * elf/chroot_canon.c (chroot_canon): Cleanups.
74322
74323         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
74324
74325         [BZ #13335]
74326         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
74327         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
74328
74329         * string/test-strchr.c: Make usable for strchrnul testing.
74330         * string/test-strchrnul.c: New file.
74331         * string/Makefile (strop-tests): Add strchrnul.
74332
74333         * po/it.po: Update from translation team.
74334         * po/es.po: Likewise.
74335
74336 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
74337
74338         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
74339         the three constants needed as parameters.  Drop the others.
74340         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
74341         __m128i_strloadu_tolower.
74342         Create and initialize variable zero and use it in all the places
74343         where _mm_setzero_si128 was used.
74344
74345         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
74346         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
74347         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
74348         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
74349         anymore.
74350         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
74351         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
74352         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
74353         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
74354         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
74355         __mpranred, __mptan.
74356         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
74357         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
74358         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
74359         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
74360         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
74361         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
74362         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
74363         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
74364         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
74365
74366 2011-10-28  Andreas Schwab  <schwab@redhat.com>
74367
74368         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
74369         redefine if SHARED.
74370         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
74371
74372         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
74373         wide char related routines to wcsmbs subdir.
74374
74375 2011-10-27  Andreas Schwab  <schwab@redhat.com>
74376
74377         [BZ #13344]
74378         * misc/sys/cdefs.h (__THROWNL): Define.
74379         * posix/unistd.h: Use __THREADNL instead of __THREAD
74380         for memory synchronization functions.
74381
74382 2011-10-26  Roland McGrath  <roland@hack.frob.com>
74383
74384         [BZ #13349]
74385         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
74386         doesn't exist.
74387         * manual/stdio.texi (Obstack Streams): Node removed.
74388
74389 2011-10-26  Andreas Schwab  <schwab@redhat.com>
74390
74391         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
74392         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
74393         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
74394
74395         * math/math_private.h (math_force_eval): Allow non-addressable
74396         arguments.
74397         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
74398
74399 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
74400
74401         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
74402         file is not needed.
74403
74404         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
74405         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
74406         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
74407         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
74408         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
74409         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
74410         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
74411         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
74412         Add AVX variants.
74413         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
74414         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
74415         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
74416         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
74417         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
74418         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
74419         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
74420         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
74421         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
74422         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
74423         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
74424         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
74425         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
74426         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
74427         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
74428         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
74429         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
74430         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
74431         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
74432
74433         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
74434         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
74435
74436         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
74437         place.  Use VEX encoding when compiling for AVX.
74438
74439 2011-10-25  Andreas Schwab  <schwab@redhat.com>
74440
74441         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
74442         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
74443
74444         * string/test-strchr.c (do_test): Don't generate NUL bytes.
74445
74446 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
74447
74448         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
74449         useless if() expression.
74450         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
74451         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
74452         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
74453         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
74454         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
74455         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
74456         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
74457         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
74458         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
74459         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
74460         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
74461         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
74462         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
74463         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
74464         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
74465         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
74466         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
74467         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
74468         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
74469
74470         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
74471
74472 2011-10-25  Andreas Schwab  <schwab@redhat.com>
74473
74474         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
74475         condition.
74476         * elf/dl-fini.c (_dl_sort_fini): Likewise.
74477
74478 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
74479
74480         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
74481         .text section.  Avoid duplicate constants.
74482         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
74483         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74484         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
74485         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
74486         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
74487         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74488         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74489         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
74490         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
74491         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
74492         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
74493         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
74494         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
74495         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
74496         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
74497         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
74498         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
74499         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
74500         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
74501         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74502         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
74503         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
74504         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
74505         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
74506         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
74507         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
74508         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
74509         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
74510         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
74511         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
74512         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
74513         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
74514         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
74515         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
74516         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
74517         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
74518         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
74519         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
74520         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
74521         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
74522         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
74523         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
74524         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
74525         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
74526         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
74527
74528 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
74529
74530         * sysdeps/x86_64/dla.h: Move to ...
74531         * sysdeps/x86_64/fpu/dla.h: ...here.
74532         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
74533         situations.  Use __builtin_fma only for gcc 4.6 and up.
74534
74535         * config.make.in: Add have-mfma4 entry.
74536         * configure.in: Substitute libc_cv_cc_fma4.
74537         * math/Makefile (dbl-only-routines): Add sincostab.
74538         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
74539         Use __sincostab not sincos.
74540         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
74541         name is a macro.
74542         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
74543         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74544         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74545         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
74546         using __copysign.
74547         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
74548         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
74549         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
74550         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
74551         and __inv.
74552         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
74553         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
74554         __copysign.
74555         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
74556         define aliases when function name is a macro.
74557         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
74558         sysdeps/ieee754/dbl-64/sincos.tbl.
74559         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
74560         fma4-enabled routines.
74561         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
74562         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
74563         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
74564         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
74565         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
74566         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
74567         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
74568         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
74569         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
74570         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
74571         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
74572         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
74573         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
74574         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
74575         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
74576         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
74577         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
74578         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
74579         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
74580         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
74581         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
74582         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
74583         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
74584         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
74585         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
74586         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
74587         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
74588         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
74589         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
74590         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
74591
74592         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
74593         rename.
74594         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74595         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74596         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
74597         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74598         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74599         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
74600         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
74601         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74602
74603 2011-10-24  Andreas Schwab  <schwab@redhat.com>
74604
74605         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
74606
74607 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
74608
74609         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
74610
74611         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
74612         prediction.
74613         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
74614
74615         * string/strnlen.c: Don't define STRNLEN, reverse logic.
74616         Remove unused variable magic_bits.
74617         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
74618
74619         * string/strnlen.c: Define and use STRNLEN macro.
74620         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
74621         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
74622         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
74623         * wcsmbs/wcslen.c: Define and use WCSLEN.
74624         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
74625         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
74626         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
74627         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
74628         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
74629         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
74630         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
74631
74632 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74633
74634         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74635         strnlen-sse2-no-bsf.
74636         Rename strlen-no-bsf to strlen-sse2-no-bsf.
74637         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
74638         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
74639         Add strnlen support.
74640         (USE_AS_STRNLEN): New macro.
74641         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
74642         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
74643         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
74644         * sysdeps/x86_64/wcslen.S: New file.
74645
74646 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
74647
74648         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
74649         XMM-moves are used for copying on small sizes.
74650
74651 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74652
74653         * wcsmbs/Makefile (strop-tests): Add wcschr.
74654         * wcsmbs/test-wcschr.c: New file.
74655         * string/test-strchr.c: Update.
74656         Add wcschr support.
74657         (WIDE): New macro.
74658
74659 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74660
74661         * wcsmbs/Makefile (strop-tests): Add wcslen.
74662         * wcsmbs/test-wcslen.c: New file.
74663         * string/test-strlen.c: Update.
74664         Add wcslen support.
74665         (WIDE): New macro.
74666
74667 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
74668
74669         * po/it.po: Update from translation team.
74670
74671 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74672
74673         * sysdeps/x86_64/wcscmp.S: Update.
74674         Fix wrong comparison semantics.
74675         wcscmp shall use signed comparison not unsigned.
74676         Don't use substraction to avoid overflow bug.
74677         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
74678         * wcsmbc/wcscmp.c: Likewise.
74679         * string/test-strcmp.c: Likewise.
74680         Add new tests to check cases with negative values.
74681
74682 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
74683
74684         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
74685         * sysdeps/x86_64/dla.h: ...here.  New file.
74686         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
74687         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74688         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
74689         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74690         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74691         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
74692         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
74693         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
74694         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74695
74696 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
74697
74698         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
74699         __ynl_finite aliases.
74700
74701 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
74702
74703         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
74704
74705         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
74706         define DLA_FMA.
74707         [DLA_FMA] (EMULV): Use DLA_FMA.
74708         [DLA_FMA] (MUL12): Use EMULV.
74709         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
74710         that are not needed.
74711         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74712         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
74713         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74714         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74715         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
74716         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
74717         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74718
74719 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
74720
74721         * math/s_nan.c: Undef __nan.
74722         * math/s_nanf.c: Undef __nanf.
74723         * math/s_nanl.c: Undef __nanl.
74724         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
74725         "math_private.h".
74726
74727 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
74728
74729         * math/s_catan.c: Add branch predictions.
74730         * math/s_catanf.c: Likewise.
74731         * math/s_catanh.c: Likewise.
74732         * math/s_catanhf.c: Likewise.
74733         * math/s_catanhl.c: Likewise.
74734         * math/s_catanl.c: Likewise.
74735         * math/s_cexp.c: Likewise.
74736         * math/s_cexpf.c: Likewise.
74737         * math/s_cexpl.c: Likewise.
74738         * math/s_clog.c: Likewise.
74739         * math/s_clog10.c: Likewise.
74740         * math/s_clog10f.c: Likewise.
74741         * math/s_clog10l.c: Likewise.
74742         * math/s_clogf.c: Likewise.
74743         * math/s_clogl.c: Likewise.
74744         * math/s_csqrt.c: Likewise.
74745         * math/s_csqrtf.c: Likewise.
74746         * math/s_csqrtl.c: Likewise.
74747         * math/s_ctanf.c: Likewise.
74748         * math/s_ctanh.c: Likewise.
74749         * math/s_ctanhf.c: Likewise.
74750         * math/s_ctanhl.c: Likewise.
74751         * math/s_ctanl.c: Likewise.
74752
74753         * math/math_private.h: Define __nan, __nanf, __nanl.
74754         * math/s_cacosh.c: Include <math_private.h>.
74755         * math/s_cacoshl.c: Likewise.
74756         * math/s_casinh.c: Likewise.
74757         * math/s_casinhf.c: Likewise.
74758         * math/s_casinhl.c: Likewise.
74759         * math/s_ccos.c: Rely entire on ccosh.
74760         * math/s_ccosf.c: Rely entire on ccoshf.
74761         * math/s_ccosl.c: Rely entirely on ccoshl.
74762         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
74763         Remove tests for FE_INVALID.
74764         * math/s_ccoshf.c: Likewise.
74765         * math/s_ccoshl.c: Likewise.
74766         * math/s_csin.c: Likewise.
74767         * math/s_csinf.c: Likewise.
74768         * math/s_csinh.c Likewise.
74769         * math/s_csinhf.c: Likewise.
74770         * math/s_csinhl.c: Likewise.
74771         * math/s_csinl.c: Likewise.
74772         * math/s_ctan.c: Likewise.
74773         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
74774         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
74775         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
74776
74777 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
74778
74779         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
74780         compilation problems.
74781
74782         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
74783         __builtin_expect.
74784
74785 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
74786
74787         * sysdeps/i386/configure.in: Test for -mfma4 option.
74788         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
74789         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
74790         COMMON_CPUID_INDEX_80000001.
74791         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
74792         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
74793         use it if FMA3 is not supported.
74794         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
74795
74796         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
74797         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
74798
74799 2011-10-20  Andreas Schwab  <schwab@redhat.com>
74800
74801         [BZ #12892]
74802         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
74803         it would create a cycle with a link time dependency.
74804
74805 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
74806
74807         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
74808         instruction.
74809         * string/Makefile (strop-tests): Add rawmemchr.
74810         * string/test-rawmemchr.c: New file.
74811
74812         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
74813         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
74814         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
74815         when compiling str{,n}casecmp and when AVX is available.  Hook up
74816         new optimized code in initializers.
74817
74818 2011-10-19  Andreas Schwab  <schwab@redhat.com>
74819
74820         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
74821         __feraiseexcept instead of feraiseexcept.
74822
74823 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
74824
74825         * math/math_private.h: Define defaults for libc_fetestexcept and
74826         libc_feupdateenv.
74827         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
74828         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
74829         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
74830         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
74831         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
74832         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
74833         libc_fetestexcept and libc_feupdateenv.
74834
74835         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
74836         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
74837         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
74838         * sysdeps/x86_64/fpu/math_private.h: Define special version of
74839         libc_feholdexcept_setround.
74840
74841         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
74842         Add s_nearbyint-c and s_nearbyintf-c.
74843         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
74844         nearbyintf inlines.
74845         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
74846         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
74847         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
74848         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
74849
74850         * math/math_private.h: Define defaults for libc_fegetround,
74851         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
74852         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
74853         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
74854         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
74855         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
74856         standard functions.
74857         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
74858         Remove comments and hacks for old compiler versions.
74859         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
74860         libc_fegetround, libc_fesetround, libc_feholdexcept, and
74861         libc_feholdexceptl.
74862
74863 2011-10-18  Andreas Schwab  <schwab@redhat.com>
74864
74865         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
74866         (__feraiseexcept_renamed): Add __NTH.
74867         (feraiseexcept): Add __NTH.  Rename local variables to fix
74868         namespace violations.
74869
74870 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
74871
74872         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
74873
74874         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
74875
74876         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
74877         recently added interfaces.
74878         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
74879
74880         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
74881         about macro parameter expansion.
74882
74883         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
74884         __NO_MATH_INLINES is defined.  Cleanups.
74885
74886         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
74887         and __floorf is target has SSE4.1.
74888         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
74889         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
74890         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
74891         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
74892
74893         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
74894         name.
74895         (floorf): Likewise.
74896
74897         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
74898
74899 2011-10-17  Andreas Schwab  <schwab@redhat.com>
74900
74901         * misc/sys/cdefs.h: Fix last change.
74902
74903         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
74904         database lookup.
74905
74906 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
74907
74908         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
74909
74910         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
74911         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
74912         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
74913         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
74914         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
74915         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
74916         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
74917         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
74918         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
74919         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
74920         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
74921         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
74922         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
74923         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
74924         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
74925         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
74926         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
74927         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
74928         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
74929         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
74930         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
74931         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
74932
74933         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
74934         ceil, ceilf, floor, floorf.
74935
74936         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
74937         Perform IRELATIVE relocations last.
74938
74939         * elf/do-rel.h: Add another parameter nrelative, replacing the
74940         local variable with the same name.  Change name of the function
74941         to end in Rel or Rela (uppercase).
74942         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
74943         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
74944         elf_dynamic_do_##reloc function.
74945
74946 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
74947
74948         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
74949         is sufficient, at least on modern CPUs.
74950
74951         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
74952
74953         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
74954         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
74955
74956         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
74957         __expl_finite.
74958         * math/bits/math-finite.h: Add entries for exp.
74959         * math/e_expl.c: Add __*_finite alias.
74960         * sysdeps/i386/fpu/e_exp.S: Likewise.
74961         * sysdeps/i386/fpu/e_expf.S: Likewise.
74962         * sysdeps/i386/fpu/e_expl.c: Likewise.
74963         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
74964         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
74965         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
74966         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
74967         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
74968         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
74969         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
74970
74971         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
74972         is sufficient, at least on modern CPUs.
74973
74974         * ctype/ctype-info.c (__ctype_init): Define.
74975         * include/ctype.h (__ctype_init): Declare.
74976         (__ctype_b_loc): The variable is always initialized.
74977         (__ctype_toupper_loc): Likewise.
74978         (__ctype_tolower_loc): Likewise.
74979         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
74980         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
74981
74982 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
74983
74984         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
74985
74986         * configure.in: Also look in $cxxmachine/include for C++ system
74987         headers.
74988
74989 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
74990
74991         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
74992         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
74993         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
74994         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
74995         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
74996         (USE_AS_WMEMCMP): New macro.
74997         Fixing indents.
74998         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
74999         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
75000         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
75001         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
75002         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
75003         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
75004         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
75005         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
75006         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
75007         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
75008         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
75009         (USE_AS_WMEMCMP): New macro.
75010         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
75011         * sysdeps/string/test-memcmp.c: Update.
75012         Fix simple_wmemcmp.
75013         Add new tests.
75014         * wcsmbs/wmemcmp.c: Update.
75015         (WMEMCMP): New macro.
75016         Fix overflow bug.
75017
75018 2011-10-12  Andreas Jaeger  <aj@suse.de>
75019
75020         [BZ #13268]
75021         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
75022
75023 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
75024
75025         * libio/iofwide.c (do_length): Avoid warning.
75026
75027         * ctype/ctype.h (__isctype_f): Add missing __THROW.
75028
75029 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
75030
75031         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
75032
75033         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
75034         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
75035         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
75036         * sysdeps/i386/i686/fpu/e_log.S: New file.
75037         * sysdeps/i386/i686/fpu/e_logf.S: New file.
75038         * sysdeps/i386/i686/fpu/e_logl.S: New file.
75039
75040         * ctype/ctype.h: Add support for inlined isXXX functions when
75041         compiling C++ code.
75042
75043 2011-10-14  Andreas Schwab  <schwab@redhat.com>
75044
75045         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75046
75047         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
75048
75049 2011-10-13  Roland McGrath  <roland@hack.frob.com>
75050
75051         [BZ #13291]
75052         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
75053
75054 2011-10-13  Andreas Schwab  <schwab@redhat.com>
75055
75056         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
75057         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
75058         feraiseexcept.
75059
75060         * sysdeps/x86_64/memrchr.S: Check for zero size.
75061
75062         * string/stratcliff.c: Add memrchr tests.
75063
75064 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
75065
75066         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
75067         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
75068         rawmemchr-sse2 rawmemchr-sse2-bsf.
75069         * sysdeps/i386/i686/multiarch/memchr.S: New file.
75070         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
75071         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
75072         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
75073         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
75074         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
75075         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
75076         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
75077         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
75078         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
75079         * string/memrchr.c (MEMRCHR): New macro.
75080
75081 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
75082
75083         Add integration with gcc's -ffinite-math-only and optimize wrapper
75084         functions in libm.
75085         * Versions.def: Define GLIBC_2.15 version for libm.
75086         * math/Makefile (headers): Add bits/math-finite.h.
75087         * math/bits/math-finite.h: New file.
75088         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
75089         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
75090         * math/e_acoshl.c: Add __*_finite alias.
75091         * math/e_acosl.c: Likewise.
75092         * math/e_asinl.c: Likewise.
75093         * math/e_atan2l.c: Likewise.
75094         * math/e_atanhl.c: Likewise.
75095         * math/e_coshl.c: Likewise.
75096         * math/e_exp10.c: Likewise.
75097         * math/e_exp10f.c: Likewise.
75098         * math/e_exp10l.c: Likewise.
75099         * math/e_exp2l.c: Likewise.
75100         * math/e_fmodl.c: Likewise.
75101         * math/e_gammal_r.c: Likewise.
75102         * math/e_hypotl.c: Likewise.
75103         * math/e_j0l.c: Likewise.
75104         * math/e_j1l.c: Likewise.
75105         * math/e_jnl.c: Likewise.
75106         * math/e_lgammal_r.c: Likewise.
75107         * math/e_log10l.c: Likewise.
75108         * math/e_log2l.c: Likewise.
75109         * math/e_logl.c: Likewise.
75110         * math/e_powl.c: Likewise.
75111         * math/e_sinhl.c: Likewise.
75112         * math/e_sqrtl.c: Likewise.
75113         * math/e_scalb.c: Completely rewritten and optimized.
75114         * math/e_scalbf.c: Likewise.
75115         * math/e_scalbl.c: Likewise.
75116         * math/w_acos.c: Likewise.
75117         * math/w_acosf.c: Likewise.
75118         * math/w_acosl.c: Likewise.
75119         * math/w_acosh.c: Likewise.
75120         * math/w_acoshf.c: Likewise.
75121         * math/w_acoshl.c: Likewise.
75122         * math/w_asin.c: Likewise.
75123         * math/w_asinf.c: Likewise.
75124         * math/w_asinl.c: Likewise.
75125         * math/w_atan2.c: Likewise.
75126         * math/w_atan2f.c: Likewise.
75127         * math/w_atan2l.c: Likewise.
75128         * math/w_atanh.c: Likewise.
75129         * math/w_atanhf.c: Likewise.
75130         * math/w_atanhl.c: Likewise.
75131         * math/w_exp10.c: Likewise.
75132         * math/w_exp10f.c: Likewise.
75133         * math/w_exp10l.c: Likewise.
75134         * math/w_fmod.c: Likewise.
75135         * math/w_fmodf.c: Likewise.
75136         * math/w_fmodl.c: Likewise.
75137         * math/w_j0.c: Likewise.
75138         * math/w_j0f.c: Likewise.
75139         * math/w_j0l.c: Likewise.
75140         * math/w_j1.c: Likewise.
75141         * math/w_j1f.c: Likewise.
75142         * math/w_j1l.c: Likewise.
75143         * math/w_jn.c: Likewise.
75144         * math/w_jnf.c: Likewise.
75145         * math/w_log.c: Likewise.
75146         * math/w_logf.c: Likewise.
75147         * math/w_logl.c: Likewise.
75148         * math/w_log10.c: Likewise.
75149         * math/w_log10f.c: Likewise.
75150         * math/w_log10l.c: Likewise.
75151         * math/w_log2.c: Likewise.
75152         * math/w_log2f.c: Likewise.
75153         * math/w_log2l.c: Likewise.
75154         * math/w_pow.c: Likewise.
75155         * math/w_powf.c: Likewise.
75156         * math/w_powl.c: Likewise.
75157         * math/w_remainder.c: Likewise.
75158         * math/w_remainderf.c: Likewise.
75159         * math/w_remainderl.c: Likewise.
75160         * math/w_scalb.c: Likewise.
75161         * math/w_scalbf.c: Likewise.
75162         * math/w_scalbl.c: Likewise.
75163         * math/w_sqrt.c: Likewise.
75164         * math/w_sqrtf.c: Likewise.
75165         * math/w_sqrtl.c: Likewise.
75166         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
75167         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
75168         used.
75169         * math/math_private.h: Declare __kernel_standard_f.
75170         * math/w_cosh.c: Remove cruft and optimize a bit.
75171         * math/w_coshf.c: Likewise.
75172         * math/w_coshl.c: Likewise.
75173         * math/w_exp2.c: Likewise.
75174         * math/w_exp2f.c: Likewise.
75175         * math/w_exp2l.c: Likewise.
75176         * math/w_hypot.c: Likewise.
75177         * math/w_hypotf.c: Likewise.
75178         * math/w_hypotl.c: Likewise.
75179         * math/w_lgamma.c: Likewise.
75180         * math/w_lgamma_r.c: Likewise.
75181         * math/w_lgammaf.c: Likewise.
75182         * math/w_lgammaf_r.c: Likewise.
75183         * math/w_lgammal.c: Likewise.
75184         * math/w_lgammal_r.c: Likewise.
75185         * math/w_sinh.c: Likewise.
75186         * math/w_sinhf.c: Likewise.
75187         * math/w_sinhl.c: Likewise.
75188         * math/w_tgamma.c: Likewise.
75189         * math/w_tgammaf.c: Likewise.
75190         * math/w_tgammal.c: Likewise.
75191         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
75192         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
75193         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
75194         Minor optimizations.  Pretty printing.  Remove cruft.
75195         * sysdeps/i386/fpu/e_acosf.S: Likewise.
75196         * sysdeps/i386/fpu/e_acosh.S: Likewise.
75197         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
75198         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
75199         * sysdeps/i386/fpu/e_acosl.c: Likewise.
75200         * sysdeps/i386/fpu/e_asin.S: Likewise.
75201         * sysdeps/i386/fpu/e_asinf.S: Likewise.
75202         * sysdeps/i386/fpu/e_atan2.S: Likewise.
75203         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
75204         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
75205         * sysdeps/i386/fpu/e_atanh.S: Likewise.
75206         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
75207         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
75208         * sysdeps/i386/fpu/e_exp10.S: Likewise.
75209         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
75210         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
75211         * sysdeps/i386/fpu/e_exp2.S: Likewise.
75212         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
75213         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
75214         * sysdeps/i386/fpu/e_fmod.S: Likewise.
75215         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
75216         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
75217         * sysdeps/i386/fpu/e_hypot.S: Likewise.
75218         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
75219         * sysdeps/i386/fpu/e_log.S: Likewise.
75220         * sysdeps/i386/fpu/e_log10.S: Likewise.
75221         * sysdeps/i386/fpu/e_log10f.S: Likewise.
75222         * sysdeps/i386/fpu/e_log10l.S: Likewise.
75223         * sysdeps/i386/fpu/e_log2.S: Likewise.
75224         * sysdeps/i386/fpu/e_log2f.S: Likewise.
75225         * sysdeps/i386/fpu/e_log2l.S: Likewise.
75226         * sysdeps/i386/fpu/e_logf.S: Likewise.
75227         * sysdeps/i386/fpu/e_logl.S: Likewise.
75228         * sysdeps/i386/fpu/e_pow.S: Likewise.
75229         * sysdeps/i386/fpu/e_powf.S: Likewise.
75230         * sysdeps/i386/fpu/e_powl.S: Likewise.
75231         * sysdeps/i386/fpu/e_remainder.S: Likewise.
75232         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
75233         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
75234         * sysdeps/i386/fpu/e_scalb.S: Likewise.
75235         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
75236         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
75237         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
75238         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
75239         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
75240         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
75241         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
75242         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
75243         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
75244         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
75245         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
75246         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
75247         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
75248         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
75249         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
75250         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
75251         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
75252         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
75253         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
75254         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
75255         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
75256         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
75257         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
75258         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
75259         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
75260         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
75261         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
75262         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
75263         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
75264         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
75265         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
75266         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
75267         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
75268         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
75269         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
75270         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
75271         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
75272         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
75273         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
75274         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
75275         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
75276         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
75277         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
75278         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
75279         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
75280         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
75281         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
75282         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
75283         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
75284         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
75285         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
75286         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
75287         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
75288         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
75289         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
75290         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
75291         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
75292         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
75293         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
75294         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
75295         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
75296         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
75297         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
75298         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
75299         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
75300         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
75301         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
75302         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
75303         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
75304         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
75305         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
75306         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
75307         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
75308         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
75309         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
75310         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
75311         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
75312         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
75313         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
75314         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
75315         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
75316         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
75317         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
75318         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
75319         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
75320         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
75321         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
75322         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
75323         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
75324         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
75325         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
75326         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
75327         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
75328         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
75329         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
75330         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
75331         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
75332         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
75333         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
75334         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
75335         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
75336         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
75337         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
75338         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
75339         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
75340         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
75341         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
75342         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
75343         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
75344         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
75345         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
75346         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
75347         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
75348         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
75349         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
75350         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
75351         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
75352         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
75353         (__isnanf): Likewise.
75354         (__isinf_ns): Likewise.
75355         (__isinf_nsf): Likewise.
75356         (__finite): Likewise.
75357         (__finitef): Likewise.
75358         (__ieee754_sqrt): Define as macro.
75359         (__ieee754_sqrtf): Define as macro.
75360         (__ieee754_sqrtl): Define as macro.
75361         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
75362         inlined copy.
75363         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
75364         __FINITE_MATH_ONLY__ consistent.
75365         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
75366
75367 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
75368
75369         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
75370         of rawmemchr.
75371
75372         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
75373
75374 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
75375
75376         * po/ja.po: Update from translation team.
75377
75378 2011-10-08  Roland McGrath  <roland@hack.frob.com>
75379
75380         * locale/programs/locarchive.c (prepare_address_space): New function.
75381         (create_archive, enlarge_archive, open_archive): Use it.
75382
75383         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
75384         inside [SHARED], where it is used.
75385
75386         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
75387
75388         * nss/getent.c (netgroup_keys): Remove unused variable.
75389         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
75390
75391 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
75392
75393         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
75394         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
75395         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
75396         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
75397         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
75398         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
75399         * math/Makefile (libm-calls): Add s_isinf_ns.
75400         * math/divtc3.c: Use __isinf_nsl instead of isinf.
75401         * math/multc3.c: Likewise.
75402         * math/s_casin.c: Likewise.
75403         * math/s_casinf.c: Likewise.
75404         * math/s_casinl.c: Likewise.
75405         * math/s_ccos.c: Likewise.
75406         * math/s_ccosf.c: Likewise.
75407         * math/s_ccosl.c: Likewise.
75408         * math/s_ctan.c: Likewise.
75409         * math/s_ctanf.c: Likewise.
75410         * math/s_ctanh.c: Likewise.
75411         * math/s_ctanhf.c: Likewise.
75412         * math/s_ctanhl.c: Likewise.
75413         * math/s_ctanl.c: Likewise.
75414         * math/w_fmod.c: Likewise.
75415         * math/w_fmodf.c: Likewise.
75416         * math/w_fmodl.c: Likewise.
75417         * math/w_remainder.c: Likewise.
75418         * math/w_remainderf.c: Likewise.
75419         * math/w_remainderl.c: Likewise.
75420         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
75421         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
75422         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
75423         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
75424         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
75425         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
75426         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
75427         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
75428
75429         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
75430         of the number.
75431         * stdio-common/printf_fphex.c: Likewise.
75432         * stdio-common/printf_size.c: Likewise.
75433
75434         * math/e_exp10.c: Include math_private.h using <...> not "...".
75435         * math/e_exp10f.c: Likewise.
75436         * math/e_exp10l.c: Likewise.
75437         * math/e_exp2l.c: Likewise.
75438         * math/e_j0l.c: Likewise.
75439         * math/e_j1l.c: Likewise.
75440         * math/e_jnl.c: Likewise.
75441         * math/e_lgammal_r.c: Likewise.
75442         * math/e_rem_pio2l.c: Likewise.
75443         * math/e_scalb.c: Likewise.
75444         * math/e_scalbf.c: Likewise.
75445         * math/e_scalbl.c: Likewise.
75446         * math/k_cosl.c: Likewise.
75447         * math/k_sinl.c: Likewise.
75448         * math/k_tanl.c: Likewise.
75449         * math/s_cacoshf.c: Likewise.
75450         * math/s_catan.c: Likewise.
75451         * math/s_catanf.c: Likewise.
75452         * math/s_catanh.c: Likewise.
75453         * math/s_catanhf.c: Likewise.
75454         * math/s_catanhl.c: Likewise.
75455         * math/s_catanl.c: Likewise.
75456         * math/s_ccosh.c: Likewise.
75457         * math/s_ccoshf.c: Likewise.
75458         * math/s_ccoshl.c: Likewise.
75459         * math/s_cexp.c: Likewise.
75460         * math/s_cexpf.c: Likewise.
75461         * math/s_cexpl.c: Likewise.
75462         * math/s_clog.c: Likewise.
75463         * math/s_clog10.c: Likewise.
75464         * math/s_clog10f.c: Likewise.
75465         * math/s_clog10l.c: Likewise.
75466         * math/s_clogf.c: Likewise.
75467         * math/s_clogl.c: Likewise.
75468         * math/s_csin.c: Likewise.
75469         * math/s_csinf.c: Likewise.
75470         * math/s_csinh.c: Likewise.
75471         * math/s_csinhf.c: Likewise.
75472         * math/s_csinhl.c: Likewise.
75473         * math/s_csinl.c: Likewise.
75474         * math/s_csqrt.c: Likewise.
75475         * math/s_csqrtf.c: Likewise.
75476         * math/s_csqrtl.c: Likewise.
75477         * math/s_ctan.c: Likewise.
75478         * math/s_ctanf.c: Likewise.
75479         * math/s_ctanh.c: Likewise.
75480         * math/s_ctanhf.c: Likewise.
75481         * math/s_ctanhl.c: Likewise.
75482         * math/s_ctanl.c: Likewise.
75483         * math/s_ldexp.c: Likewise.
75484         * math/s_ldexpf.c: Likewise.
75485         * math/s_ldexpl.c: Likewise.
75486         * math/s_significand.c: Likewise.
75487         * math/s_significandf.c: Likewise.
75488         * math/s_significandl.c: Likewise.
75489         * math/w_acos.c: Likewise.
75490         * math/w_acosf.c: Likewise.
75491         * math/w_acosh.c: Likewise.
75492         * math/w_acoshf.c: Likewise.
75493         * math/w_acoshl.c: Likewise.
75494         * math/w_acosl.c: Likewise.
75495         * math/w_asin.c: Likewise.
75496         * math/w_asinf.c: Likewise.
75497         * math/w_asinl.c: Likewise.
75498         * math/w_atan2.c: Likewise.
75499         * math/w_atan2f.c: Likewise.
75500         * math/w_atan2l.c: Likewise.
75501         * math/w_atanh.c: Likewise.
75502         * math/w_atanhf.c: Likewise.
75503         * math/w_atanhl.c: Likewise.
75504         * math/w_cosh.c: Likewise.
75505         * math/w_coshf.c: Likewise.
75506         * math/w_coshl.c: Likewise.
75507         * math/w_dremf.c: Likewise.
75508         * math/w_exp10.c: Likewise.
75509         * math/w_exp10f.c: Likewise.
75510         * math/w_exp10l.c: Likewise.
75511         * math/w_exp2.c: Likewise.
75512         * math/w_exp2f.c: Likewise.
75513         * math/w_fmod.c: Likewise.
75514         * math/w_fmodf.c: Likewise.
75515         * math/w_fmodl.c: Likewise.
75516         * math/w_hypot.c: Likewise.
75517         * math/w_hypotf.c: Likewise.
75518         * math/w_hypotl.c: Likewise.
75519         * math/w_j0.c: Likewise.
75520         * math/w_j0f.c: Likewise.
75521         * math/w_j0l.c: Likewise.
75522         * math/w_j1.c: Likewise.
75523         * math/w_j1f.c: Likewise.
75524         * math/w_j1l.c: Likewise.
75525         * math/w_jn.c: Likewise.
75526         * math/w_jnf.c: Likewise.
75527         * math/w_jnl.c: Likewise.
75528         * math/w_lgamma.c: Likewise.
75529         * math/w_lgamma_r.c: Likewise.
75530         * math/w_lgammaf.c: Likewise.
75531         * math/w_lgammaf_r.c: Likewise.
75532         * math/w_lgammal.c: Likewise.
75533         * math/w_lgammal_r.c: Likewise.
75534         * math/w_log.c: Likewise.
75535         * math/w_log10.c: Likewise.
75536         * math/w_log10f.c: Likewise.
75537         * math/w_log10l.c: Likewise.
75538         * math/w_log2.c: Likewise.
75539         * math/w_log2f.c: Likewise.
75540         * math/w_log2l.c: Likewise.
75541         * math/w_logf.c: Likewise.
75542         * math/w_logl.c: Likewise.
75543         * math/w_pow.c: Likewise.
75544         * math/w_powf.c: Likewise.
75545         * math/w_powl.c: Likewise.
75546         * math/w_remainder.c: Likewise.
75547         * math/w_remainderf.c: Likewise.
75548         * math/w_remainderl.c: Likewise.
75549         * math/w_scalb.c: Likewise.
75550         * math/w_scalbf.c: Likewise.
75551         * math/w_scalbl.c: Likewise.
75552         * math/w_sinh.c: Likewise.
75553         * math/w_sinhf.c: Likewise.
75554         * math/w_sinhl.c: Likewise.
75555         * math/w_sqrt.c: Likewise.
75556         * math/w_sqrtf.c: Likewise.
75557         * math/w_sqrtl.c: Likewise.
75558         * math/w_tgamma.c: Likewise.
75559         * math/w_tgammaf.c: Likewise.
75560         * math/w_tgammal.c: Likewise.
75561
75562         * po/ja.po: Update from translation team.
75563
75564 2011-09-29  Andreas Jaeger  <aj@suse.de>
75565
75566         [BZ #13179]
75567         * sunrpc/netname.c (netname2host): Fix logic.
75568
75569         [BZ #6779]
75570         [BZ #6783]
75571         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
75572         correctly.
75573         * math/w_remainder.c (__remainder): Likewise.
75574         * math/w_remainderf.c (__remainderf): Likewise.
75575         * math/libm-test.inc (remainder_test): Add test cases.
75576
75577 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75578
75579         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
75580         sdiv_qrnnd.
75581
75582 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
75583
75584         * string/test-memcmp.c: Avoid unncessary #defines.
75585         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
75586
75587 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
75588
75589         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
75590         Use new sse2 version for core i3 - i7 as it's faster
75591         than sse42 version.
75592         (bit_Prefer_PMINUB_for_stringop): New.
75593         * sysdeps/x86_64/rawmemchr.S: Update.
75594         Replace with faster SSE2 version.
75595         * sysdeps/x86_64/memrchr.S: New file.
75596         * sysdeps/x86_64/memchr.S: Update.
75597         Replace with faster SSE2 version.
75598
75599 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
75600
75601         * elf/dl-load.c (lose): Add cast to avoid warning.
75602
75603 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
75604
75605         * po/ca.po: Update from translation team.
75606
75607         * inet/getnetgrent_r.c: Hook up nscd.
75608         * nscd/Makefile (routines): Add nscd_netgroup.
75609         (nscd-modules): Add netgroupcache.
75610         (CFLAGS-netgroupcache.c): Define.
75611         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
75612         (cache_search): Add const to second parameter.
75613         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
75614         INNETGR.
75615         (dbs): Add netgrdb entry.
75616         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
75617         (verify_persistent_db): Handle netgrdb.
75618         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
75619         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
75620         GETFDNETGR.
75621         (netgroup_response_header): Define.
75622         (innetgroup_response_header): Define.
75623         (datahead): Add netgroup_response_header and innetgroup_response_header
75624         elements.
75625         * nscd/nscd.conf: Add entries for netgroup cache.
75626         * nscd/nscd.h (dbtype): Add netgrdb.
75627         (_PATH_NSCD_NETGROUP_DB): Define.
75628         (netgroup_iov_disabled): Declare.
75629         (xmalloc, xcalloc, xrealloc): Move declarations here.
75630         (cache_search): Adjust prototype.
75631         Add netgroup-related prototypes.
75632         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
75633         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
75634         (__nscd_innetgr): Declare.
75635         * nscd/selinux.c (perms): Use access_vector_t as element type and
75636         add netgroup-related initializers.
75637         * nscd/netgroupcache.c: New file.
75638         * nscd/nscd_netgroup.c: New file.
75639         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
75640         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
75641         For four parameters use innetgr.
75642         * nss/nss_files/files-init.c: Add definition and callback for netgr.
75643         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
75644         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
75645         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
75646
75647         * nscd/connections.c (register_traced_file): Don't register file
75648         for disabled databases.
75649
75650 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
75651
75652         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
75653
75654         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
75655         from tree and freeing node.
75656
75657 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
75658
75659         * nss/nsswitch.c (__nss_database_lookup): Handle
75660         nss_parse_service_list out of memory case.
75661
75662 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
75663
75664         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
75665         out of memory case.
75666
75667 2011-10-04  Andreas Schwab  <schwab@redhat.com>
75668
75669         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
75670         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
75671         pass it down.
75672         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
75673         elf_machine_rela, elf_machine_lazy_rel.
75674         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
75675         (ELF_DYNAMIC_DO_REL): Likewise.
75676         (ELF_DYNAMIC_DO_RELA): Likewise.
75677         (ELF_DYNAMIC_RELOCATE): Likewise.
75678         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
75679         to ELF_DYNAMIC_DO_REL.
75680         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
75681         (dl_main): In trace mode always set __RTLD_NOIFUNC.
75682         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
75683         elf_machine_rela.
75684         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
75685         skip_ifunc, don't call ifunc function if non-zero.
75686         (elf_machine_rela): Likewise.
75687         (elf_machine_lazy_rel): Likewise.
75688         (elf_machine_lazy_rela): Likewise.
75689         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
75690         (elf_machine_lazy_rel): Likewise.
75691         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
75692         Likewise.
75693         (elf_machine_lazy_rel): Likewise.
75694         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75695         Likewise.
75696         (elf_machine_lazy_rel): Likewise.
75697         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
75698         (elf_machine_lazy_rel): Likewise.
75699         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
75700         (elf_machine_lazy_rel): Likewise.
75701         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
75702         (elf_machine_lazy_rel): Likewise.
75703         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
75704         (elf_machine_lazy_rel): Likewise.
75705         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
75706         (elf_machine_lazy_rel): Likewise.
75707         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
75708         (elf_machine_lazy_rel): Likewise.
75709
75710 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
75711
75712         * nss/nss_files/files-init.c (_nss_files_init): Use static
75713         initialization for all the *_traced_file variables.
75714
75715 2011-09-28  Andreas Schwab  <schwab@redhat.com>
75716
75717         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75718
75719 2011-09-27  Roland McGrath  <roland@hack.frob.com>
75720
75721         [BZ #13226]
75722         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
75723
75724 2011-09-27  Andreas Schwab  <schwab@redhat.com>
75725
75726         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
75727         Reread the line before reparsing it.
75728
75729 2011-09-26  Andreas Schwab  <schwab@redhat.com>
75730
75731         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
75732
75733 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
75734             Maxim Kuvyrkov  <maxim@codesourcery.com>
75735             Joseph Myers  <joseph@codesourcery.com>
75736
75737         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
75738         if needed for __stack_chk_guard.
75739
75740 2011-09-19  Roland McGrath  <roland@hack.frob.com>
75741
75742         * sysdeps/posix/spawni.c (script_execute): Always define it.
75743         It will be optimized away if unused.
75744         (maybe_script_execute): New function.
75745         (__spawni): Call it.
75746
75747         * Makerules: Don't include tls.make.
75748         (config-tls): Always set to thread.
75749         * tls.make.c: File removed.
75750
75751 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
75752
75753         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
75754         * config.make.in (CPPFLAGS-config): New substituted variable.
75755
75756 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
75757
75758         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
75759
75760         [BZ #13192]
75761         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
75762         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
75763
75764 2011-09-15  Roland McGrath  <roland@hack.frob.com>
75765
75766         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
75767         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
75768         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
75769         (CALL_FAIL): Likewise.
75770         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
75771         (CALL_FAIL): Macro removed.
75772         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
75773
75774 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
75775
75776         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
75777         for __FINITE_MATH_ONLY__ == 1.
75778
75779 2011-09-15  Andreas Schwab  <schwab@redhat.com>
75780
75781         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
75782         __ieee754_sqrt instead of sqrt.
75783         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
75784         __ieee754_sqrtf instead of sqrtf.
75785         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
75786         __floorf instead of floorf.
75787         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
75788         __floorf, __truncf instead of floorf, truncf.
75789
75790 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
75791
75792         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
75793
75794         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
75795         __extern_always_inline.
75796         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
75797         32-bit.
75798
75799 2011-09-14  Andreas Schwab  <schwab@redhat.com>
75800
75801         * elf/rtld.c (dl_main): Also relocate in dependency order when
75802         doing symbol dependency testing.
75803
75804 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
75805
75806         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75807         Always define `refsym'.
75808
75809 2011-09-13  Andreas Schwab  <schwab@redhat.com>
75810
75811         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
75812         (__FD_ELT): Renamed from __FDELT.
75813         * misc/bits/select2.h (__FD_ELT): Likewise.
75814         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
75815         __FD_MASK instead of __FDELT, __FDMASK.
75816         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
75817         Likewise.
75818         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
75819         Likewise.
75820
75821         * elf/Makefile (gen-ldd): Fix pattern.
75822
75823         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
75824         (init_tls): Likewise.
75825
75826 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
75827
75828         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
75829
75830 2011-09-12  Andreas Schwab  <schwab@redhat.com>
75831
75832         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
75833         `struct cmsghdr *' instead of `void *'.
75834         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
75835         Likewise.
75836
75837 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
75838
75839         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
75840         if non-absolute.
75841         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
75842         ldd_rewrite_script.
75843
75844 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
75845
75846         * configure.in: Remove --with-tls option.
75847         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
75848         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
75849         out in case it is missing.
75850         * sysdeps/ia64/elf/configure.in: Likewise.
75851         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
75852         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
75853         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
75854         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
75855         * sysdeps/sh/elf/configure.in: Likewise.
75856         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
75857         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
75858         * sysdeps/x86_64/elf/configure.in: Likewise.
75859         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
75860         * sysdeps/mach/hurd/tls.h: Likewise.
75861
75862         [BZ #13067]
75863         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
75864
75865         [BZ #13090]
75866         * configure.in: Fix use of AC_INIT.
75867
75868         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
75869
75870 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
75871
75872         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
75873         __set_errno.
75874         * malloc/hooks.c: Likewise.
75875
75876         [BZ #11929]
75877         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
75878         variables statically.
75879         (narenas): Initialize.
75880         (list_lock): Initialize.
75881         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
75882         initializtion of main_arena and list_lock.  Small cleanups.
75883         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
75884         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
75885         Add initializers to main_arena and mp_.
75886         (malloc_state): Remove pagesize member.  Change all users to use
75887         GLRO(dl_pagesize).
75888
75889         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
75890         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
75891         is always initialized.
75892
75893         * malloc/malloc.c: Removed unused configurations and dead code.
75894         * malloc/arena.c: Likewise.
75895         * malloc/hooks.c: Likewise.
75896         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
75897
75898         * include/tls.h: Removed.  USE___THREAD must always be defined.
75899         * bits/libc-tsd.h: Don't handle !USE___THREAD.
75900         * elf/dl-libc.c: Likewise.
75901         * elf/dl-tsd.c: Likewise.
75902         * include/errno.h: Likewise.
75903         * include/netdb.h: Likewise.
75904         * include/resolv.h: Likewise.
75905         * inet/herrno-loc.c: Likewise.
75906         * inet/herrno.c: Likewise.
75907         * malloc/arena.c: Likewise.
75908         * malloc/hooks.c: Likewise.
75909         * malloc/malloc.c: Likewise.
75910         * resolv/res-state.c: Likewise.
75911         * resolv/res_libc.c: Likewise.
75912         * sysdeps/i386/dl-machine.h: Likewise.
75913         * sysdeps/ia64/dl-machine.h: Likewise.
75914         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
75915         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
75916         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
75917         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
75918         * sysdeps/sh/dl-machine.h: Likewise.
75919         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
75920         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
75921         * sysdeps/unix/i386/sysdep.S: Likewise.
75922         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
75923         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
75924         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
75925         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
75926         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
75927         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
75928         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
75929         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
75930         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
75931         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
75932         * sysdeps/unix/x86_64/sysdep.S: Likewise.
75933         * sysdeps/x86_64/dl-machine.h: Likewise.
75934         * tls.make.c: Likewise.
75935
75936         * configure.in: Remove --with-__thread option.  Make tests for
75937         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
75938         tls_model attribute fail if no support is available.  Remove
75939         USE_IN_LIBIO.
75940         * Makeconfig: Adjust for dropped configure option.  All features are
75941         now mandatory.
75942         * Makerules: Likewise.
75943         * Versions.def: Likewise.
75944         * argp/argp-fmtstream.c: Likewise.
75945         * argp/argp-fmtstream.h: Likewise.
75946         * argp/argp-help.c: Likewise.
75947         * assert/assert.c: Likewise.
75948         * config.h.in: Likewise.
75949         * config.make.in: Likewise.
75950         * configure: Likewise.
75951         * configure.in: Likewise.
75952         * csu/Versions: Likewise.
75953         * csu/init.c: Likewise.
75954         * elf/tst-audit2.c: Likewise.
75955         * elf/tst-tls10.c: Likewise.
75956         * elf/tst-tls10.h: Likewise.
75957         * elf/tst-tls11.c: Likewise.
75958         * elf/tst-tls12.c: Likewise.
75959         * elf/tst-tls14.c: Likewise.
75960         * elf/tst-tlsmod11.c: Likewise.
75961         * elf/tst-tlsmod12.c: Likewise.
75962         * elf/tst-tlsmod13.c: Likewise.
75963         * elf/tst-tlsmod13a.c: Likewise.
75964         * elf/tst-tlsmod14a.c: Likewise.
75965         * elf/tst-tlsmod15b.c: Likewise.
75966         * elf/tst-tlsmod16a.c: Likewise.
75967         * elf/tst-tlsmod16b.c: Likewise.
75968         * elf/tst-tlsmod7.c: Likewise.
75969         * elf/tst-tlsmod8.c: Likewise.
75970         * elf/tst-tlsmod9.c: Likewise.
75971         * gmon/gmon.c: Likewise.
75972         * grp/fgetgrent_r.c: Likewise.
75973         * grp/putgrent.c: Likewise.
75974         * hurd/fopenport.c: Likewise.
75975         * include/libc-symbols.h: Likewise.
75976         * include/tls.h: Likewise.
75977         * intl/gettextP.h: Likewise.
75978         * intl/loadinfo.h: Likewise.
75979         * locale/global-locale.c: Likewise.
75980         * locale/localeinfo.h: Likewise.
75981         * mach/devstream.c: Likewise.
75982         * malloc/arena.c: Likewise.
75983         * malloc/set-freeres.c: Likewise.
75984         * misc/err.c: Likewise.
75985         * misc/getttyent.c: Likewise.
75986         * misc/mntent_r.c: Likewise.
75987         * posix/getopt.c: Likewise.
75988         * posix/wordexp.c: Likewise.
75989         * pwd/fgetpwent_r.c: Likewise.
75990         * resolv/Versions: Likewise.
75991         * resolv/res_hconf.c: Likewise.
75992         * shadow/fgetspent_r.c: Likewise.
75993         * shadow/putspent.c: Likewise.
75994         * stdio-common/printf_fphex.c: Likewise.
75995         * stdio-common/tmpfile.c: Likewise.
75996         * stdlib/abort.c: Likewise.
75997         * stdlib/fmtmsg.c: Likewise.
75998         * sunrpc/auth_unix.c: Likewise.
75999         * sunrpc/clnt_perr.c: Likewise.
76000         * sunrpc/clnt_tcp.c: Likewise.
76001         * sunrpc/clnt_udp.c: Likewise.
76002         * sunrpc/clnt_unix.c: Likewise.
76003         * sunrpc/openchild.c: Likewise.
76004         * sunrpc/svc_simple.c: Likewise.
76005         * sunrpc/svc_tcp.c: Likewise.
76006         * sunrpc/svc_udp.c: Likewise.
76007         * sunrpc/svc_unix.c: Likewise.
76008         * sunrpc/xdr.c: Likewise.
76009         * sunrpc/xdr_array.c: Likewise.
76010         * sunrpc/xdr_rec.c: Likewise.
76011         * sunrpc/xdr_ref.c: Likewise.
76012         * sunrpc/xdr_stdio.c: Likewise.
76013
76014 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
76015
76016         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
76017
76018 2011-07-03  Andreas Jaeger  <aj@suse.de>
76019
76020         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
76021         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
76022         regenerate with gen-libm-tests.pl.
76023
76024 2010-05-12  Petr Baudis  <pasky@suse.cz>
76025
76026         [BZ #11589]
76027         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
76028         around j0() zero points by switching to j1().
76029         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
76030         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
76031         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
76032         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
76033
76034 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
76035
76036         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
76037         instead of 0.
76038         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
76039         instead of 0.
76040         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
76041         Patch in part by Pavel Roskin <proski@gnu.org>.
76042
76043         [BZ #13138]
76044         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
76045         realloc.
76046         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
76047         Free memory block if necessary.
76048
76049         [BZ #12847]
76050         * libio/genops.c (INTDEF): For string streams the _lock pointer can
76051         be NULL.  Don't lock in this case.
76052
76053 2011-09-09  Roland McGrath  <roland@hack.frob.com>
76054
76055         * elf/elf.h (ELFOSABI_GNU): New macro.
76056         (ELFOSABI_LINUX): Define to that.
76057
76058 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
76059
76060         * string/strncat.c (strncat): Undef the symbol in case it has been
76061         defined in bits/string.h.
76062
76063 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
76064
76065         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
76066
76067         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
76068         link map.
76069
76070 2011-08-17  Andreas Jaeger  <aj@suse.de>
76071
76072         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
76073
76074 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
76075             Ian Lance Taylor  <iant@google.com>
76076
76077         * math/libm-test.inc (lround_test): New testcase.
76078         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
76079
76080 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
76081
76082         * Makefile: Remove support for automatic cvs check-ins.
76083         * Makerules: Likewise.
76084         * config.make.in: Likewise.
76085         * configure.in: Likewise.
76086         * intl/Makefile: Likewise.
76087         * locale/Makefile: Likewise.
76088         * po/Makefile: Likewise.
76089         * posix/Makefile: Likewise.
76090         * sysdeps/gnu/Makefile: Likewise.
76091         * sysdeps/mach/hurd/Makefile: Likewise.
76092         * sysdeps/sparc/sparc32/Makefile: Likewise.
76093
76094         [BZ #13118]
76095         * posix/Makefile (bug-regex32-ENV): Define.
76096         Patch by John Stanley <jpsinthemix@verizon.net>.
76097
76098         * misc/Makefile (headers): Add bits/select2.h.
76099         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
76100         * misc/bits/select2.h: New file.
76101         * include/bits/select2.h: New file.
76102         * debug/Makefile (routines): Add fdelt_chk.
76103         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
76104         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
76105         FD_ISSET.
76106         * debug/fdelt_chk.c: New file.
76107
76108         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
76109         * wcsmbs/test-wmemcmp.c: Likewise.
76110         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
76111         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
76112
76113 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76114
76115         * string/Makefile (strop-tests): Add memcmp.
76116         * string/test-wmemcmp.c: New file.
76117         * string/test-memcmp.c: Add wmemcmp support.
76118
76119 2011-09-08  Roland McGrath  <roland@hack.frob.com>
76120
76121         [BZ #13153]
76122         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
76123         2011-07-19 change.
76124
76125         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
76126         garbage value in a __mach_port_mod_refs call in the cases of the
76127         task-self and thread-self ports.
76128
76129 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76130
76131         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
76132
76133 2011-09-08  Andreas Schwab  <schwab@redhat.com>
76134
76135         * elf/dl-load.c (lose): Check for non-null L.
76136
76137 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
76138
76139         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
76140
76141         * elf/dl-libc.c (dlerror_run): Pass back error code from
76142         dl_catch_error.
76143
76144         [BZ #13123]
76145         * elf/dl-load.c (lose): Free l_origin if it is valid.
76146
76147         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
76148         names.
76149         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
76150         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
76151         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
76152         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
76153         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
76154         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
76155
76156 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76157
76158         * sysdeps/powerpc/fpu/e_hypot.c: New file.
76159         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
76160         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
76161         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
76162         * sysdeps/powerpc/fpu/k_cosf.c: New file.
76163         * sysdeps/powerpc/fpu/k_sinf.c: New file.
76164         * sysdeps/powerpc/fpu/s_cosf.c: New file.
76165         * sysdeps/powerpc/fpu/s_sinf.c: New file.
76166         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
76167         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
76168
76169 2011-08-15  Alan Modra  <amodra@gmail.com>
76170
76171         [BZ #13092]
76172         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
76173         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
76174         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
76175         ppc_mcount to static-only-routines.
76176         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
76177         __mcount_internal.
76178         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
76179         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
76180
76181 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
76182
76183         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
76184         for finite and infinity parameters.
76185
76186 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
76187
76188         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
76189         and add nop instructions for throughput optimization.
76190         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
76191
76192 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
76193
76194         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
76195         aligned copy for power7 with vector-scalar instructions.
76196         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
76197
76198 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
76199
76200         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
76201         AVX check.
76202
76203 2011-09-07  Andreas Schwab  <schwab@redhat.com>
76204
76205         [BZ #13144]
76206         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
76207         last change.
76208
76209 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
76210
76211         * sysdeps/unix/sysv/linux/x86_64/init-first.c
76212         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
76213         syscall wrapper around clock_gettime in __vdso_clock_gettime.
76214         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
76215         clock_gettime.
76216
76217 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
76218
76219         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
76220         Forgot to demangle the pointer.
76221
76222         * sysdeps/i386/sysdep.h: Define atom_text_section.
76223         * sysdeps/x86_64/sysdep.h: Likewise.
76224         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
76225         section with atom_text_section.
76226         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
76227         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
76228         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
76229         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
76230         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
76231
76232         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
76233         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
76234         already be defined.  Change to take two parameters and don't assign
76235         result to variable.  Adjust all users.
76236         Define INTERNAL_GETTIME if not already defined.
76237         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
76238         call.
76239         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
76240         HAVE_CLOCK_GETTIME_VSYSCALL.
76241         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
76242
76243         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
76244         gettimeofday vsyscall, just use time.
76245
76246 2011-09-06  Andreas Schwab  <schwab@redhat.com>
76247
76248         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
76249         <errno.h>.
76250
76251 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
76252
76253         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
76254         syscall on x86-64.
76255         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
76256         syscall.
76257         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
76258         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
76259         syscall if possible.
76260
76261 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
76262
76263         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
76264         e_ident.  Don't pass to find_mapsXX.
76265         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
76266
76267 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
76268
76269         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76270         strchr-sse2-no-bsf strrchr-sse2-no-bsf
76271         * sysdeps/x86_64/multiarch/strchr.S: Update.
76272         Check bit_slow_BSF bit.
76273         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
76274         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
76275         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
76276
76277 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
76278
76279         [BZ #13134]
76280         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
76281         before glibc 2.15.
76282         (tryshell): Define.
76283         (__spawni): Change last parameter to be flag.  Test
76284         SPAWN_XFLAGS_USE_PATH flag to use path or not.
76285         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
76286         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
76287         * posix/spawni.c: Likewise.
76288         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
76289         * posix/spawnp.c: Likewise.  Change normal version to use
76290         SPAWN_XFLAGS_USE_PATH.
76291         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
76292         SPAWN_XFLAGS_TRY_SHELL.
76293
76294         [BZ #13150]
76295         * posix/glob.h: Remove gcc 1.x support.
76296
76297         [BZ #13068]
76298         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
76299
76300 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
76301
76302         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76303         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
76304         strrchr-sse2-bsf
76305         * sysdeps/i386/i686/multiarch/strchr.S: New file.
76306         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
76307         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
76308         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
76309         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
76310         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
76311
76312 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76313
76314         * sysdeps/x86_64/wcscmp.S: New file.
76315
76316         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
76317         wcscmp-c wcscmp-sse2
76318         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
76319         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
76320         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
76321         * wcsmbs/wcscmp.c: Allow renaming.
76322
76323 2011-09-05  David S. Miller  <davem@davemloft.net>
76324
76325         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
76326         stack slot, rather than the struct return pointer slot.
76327         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
76328         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
76329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
76330         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
76331
76332 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
76333
76334         * po/ja.po: Update from translation team.
76335
76336         [BZ #13144]
76337         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
76338         kernel in 64-bit binaries.
76339
76340 2011-09-01  David S. Miller  <davem@davemloft.net>
76341
76342         * elf/elf.h (HWCAP_SPARC_*): Move to..
76343         * sysdeps/sparc/sysdep.h: this new file and add new values.
76344         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
76345         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
76346         _DL_HWCAP_COUNT to 24.
76347         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
76348         entries.
76349         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
76350         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
76351         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
76352         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
76353         instead of magic constants.
76354         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
76355
76356 2011-08-31  David S. Miller  <davem@davemloft.net>
76357
76358         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
76359         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
76360         Reimplement to do errno handling inline.
76361         (SYSCALL_ERROR_HANDLER): New macro.
76362         (__SYSCALL_STRING): Do not do errno handling in asm.
76363         (__CLONE_SYSCALL_STRING): Delete.
76364         (__INTERNAL_SYSCALL_STRING): Delete.
76365         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
76366         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
76367         (PSEUDO): Reimplement to do errno handling inline.
76368         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
76369         (SYSCALL_ERROR_HANDLER): New macro.
76370         (__SYSCALL_STRING): Do not do errno handling in asm.
76371         (__CLONE_SYSCALL_STRING): Delete.
76372         (__INTERNAL_SYSCALL_STRING): Delete.
76373         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
76374         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
76375         i386.
76376         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
76377         (inline_syscall*): Add 'err' argument.
76378         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
76379         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
76380         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
76381         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
76382
76383         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
76384         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
76385
76386 2011-08-30  Andreas Schwab  <schwab@redhat.com>
76387
76388         * elf/rtld.c (dl_main): Relocate objects in dependency order.
76389
76390 2011-08-29  Jiri Olsa <jolsa@redhat.com>
76391
76392         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
76393         directive.
76394
76395 2011-08-24  David S. Miller  <davem@davemloft.net>
76396
76397         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
76398
76399 2011-08-24  Andreas Schwab  <schwab@redhat.com>
76400
76401         * elf/Makefile: Add rules to build and run unload8 test.
76402         * elf/unload8.c: New file.
76403         * elf/unload8mod1.c: New file.
76404         * elf/unload8mod1x.c: New file.
76405         * elf/unload8mod2.c: New file.
76406         * elf/unload8mod3.c: New file.
76407
76408         * elf/dl-close.c (_dl_close_worker): Reset private search list if
76409         it wasn't used.
76410
76411 2011-08-23  David S. Miller  <davem@davemloft.net>
76412
76413         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
76414         subtract stack bias.
76415         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
76416         %sp not %fp in calculations.
76417         (_JMPBUF_UNWINDS_ADJ): Likewise.
76418
76419         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
76420         (aio_suspend): Call it to force an exception region around the
76421         AIO_MISC_WAIT() invocation.
76422
76423 2011-08-23  Andreas Schwab  <schwab@redhat.com>
76424
76425         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
76426         backslash.
76427
76428 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
76429
76430         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
76431         protection macro.
76432         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
76433         and <dl-machine.h>.
76434         (Elf64_FuncDesc): Remove.
76435
76436 2011-08-22  David S. Miller  <davem@davemloft.net>
76437
76438         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
76439         sigaltstack check, add missing cfi directives.
76440         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
76441         missing cfi directives, and sigaltstack handling.
76442
76443 2011-08-16  Andreas Schwab  <schwab@redhat.com>
76444
76445         [BZ #11724]
76446         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
76447         object is seen twice.
76448         * elf/dl-fini.c (_dl_sort_fini): Likewise.
76449
76450         * elf/Makefile (distribute): Add tst-initorder2.c.
76451         (tests): Add tst-initorder2.
76452         (modules-names): Add tst-initorder2a tst-initorder2b
76453         tst-initorder2c tst-initorder2d.  Add rules to build them.
76454         ($(objpfx)tst-initorder2.out): New rule.
76455         * elf/tst-initorder2.c: New file.
76456         * elf/tst-initorder2.exp: New file.
76457
76458 2011-08-22  Andreas Schwab  <schwab@redhat.com>
76459
76460         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
76461
76462         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
76463         dependencies back to end of function.
76464
76465         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76466         $(elfobjdir)/ld.so.
76467
76468 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
76469
76470         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
76471         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
76472         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
76473         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
76474         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
76475         of __vdso_gettimeofday.
76476         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
76477         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
76478         attribute_hidden.
76479         (_libc_vdso_platform_setup): Remove initialization of
76480         __vdso_gettimeofday and __vdso_time.
76481
76482 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
76483
76484         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
76485         and fgetc_unlocked.
76486         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
76487         getc_unlocked.
76488
76489         * elf/dl-open.c (add_to_global): Report additions to the global scope
76490         for LD_DEBUG=scopes.
76491         (dl_open_worker): Also print scope of newly loaded dependencies.
76492         (_dl_show_scope): Indicate if there is no scope.
76493
76494         [BZ #13114]
76495         * stdio-common/Makefile (tests): Add bug24.
76496         * stdio-common/bug24.c: New file.
76497
76498 2011-08-19  Andreas Jaeger  <aj@suse.de>
76499
76500         [BZ #13114]
76501         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
76502         non-existant file when using close-on-exec mode.
76503
76504 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
76505
76506         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
76507         the very first instruction.
76508
76509         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
76510         the CFI state in the end.
76511         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
76512         inclusion of dl-trampoline.h.
76513         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
76514
76515 2011-08-19  Andreas Schwab  <schwab@redhat.com>
76516
76517         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
76518         expectations for long double.
76519
76520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
76521         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
76522
76523 2011-08-14  David S. Miller  <davem@davemloft.net>
76524
76525         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
76526         artificual limit depends upon the system page size.
76527
76528 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
76529
76530         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
76531         * resolv/Makefile: Define CFLAGS-libresolv.
76532
76533 2011-08-17  Andreas Schwab  <schwab@redhat.com>
76534
76535         * nss/makedb.c (compute_tables): Make variables used in nested
76536         function static.
76537
76538 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
76539
76540         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
76541         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
76542         if buffer was too small.
76543
76544         * elf/pldd.c (main): Attach to all threads in the process.
76545         Rewrite /proc handling to use *at functions.
76546
76547 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
76548
76549         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
76550         specifies first scope to show.
76551         (dl_open_worker): Update callers.  Move printing scope of new
76552         object to before the relocation.
76553         * elf/rtld.c (dl_main): Update _dl_show_scope call.
76554         * sysdeps/generic/ldsodefs.h: Update declaration.
76555
76556         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
76557         string for the scope number.
76558
76559 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
76560
76561         * nscd/servicescache.c (cache_addserv): Make sure written is always
76562         initialized.
76563
76564 2011-08-14  Roland McGrath  <roland@hack.frob.com>
76565
76566         * sysdeps/i386/i486/bits/atomic.h
76567         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
76568         statement expression, so as to suppress "set but not used" warning.
76569         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
76570
76571         * string/strncat.c (STRNCAT): Use prototype definition.
76572
76573         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
76574         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
76575         -Iprograms here.
76576         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
76577         (localedef-modules): Add localedef.
76578         (locale-modules): Add locale.
76579
76580         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
76581         * elf/rtld.c (dl_main): Invert order of assignment in last change,
76582         to avoid a warning.
76583
76584 2011-08-14  David S. Miller  <davem@davemloft.net>
76585
76586         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
76587         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
76588
76589 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
76590
76591         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
76592         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
76593         * elf/rtld.c (dl_main): Set l_name of vDSO.
76594         Call _dl_show_scope when DL_DEBUG_SCOPES.
76595         (process_dl_debug): Recognize scopes flag and also set it for all.
76596         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
76597         Declare _dl_show_scope.
76598
76599         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
76600         (do_dlopen): Pass caller_dlopen to dl_open.
76601         (__libc_dlopen_mode): Initialize caller_dlopen.
76602
76603         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
76604         of libc.  Make tolower call locale-independent.  Optimize a bit by
76605         using isdigit instead of isalnum.
76606         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
76607
76608 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
76609
76610         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
76611         was a dependency or dynamically loaded.
76612
76613 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
76614
76615         * intl/l10nflist.c: Allow architecture-specific pop function.
76616         * sysdeps/x86_64/l10nflist.c: New file.
76617
76618         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
76619         classification.
76620
76621 2011-08-10  Andreas Schwab  <schwab@redhat.com>
76622
76623         * include/dirent.h: Add libc_hidden_proto for scandirat and
76624         scandirat64.  Don't declare __scandirat64.
76625         * dirent/scandirat.c: Add libc_hidden_def.
76626         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
76627         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
76628
76629 2011-08-10  David S. Miller  <davem@davemloft.net>
76630
76631         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
76632         enum.
76633         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
76634         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
76635         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
76636
76637 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
76638
76639         * Versions.def [libc]: Add GLIBC_2.15.
76640         * dirent/Makefile (routines): Add scandirat and scandirat64.
76641         * dirent/Versions [libc]: Export scandirat and scandirat64 for
76642         GLIBC_2.15.
76643         * dirent/dirent.h: Declare scandirat and scandirat64.
76644         * dirent/scandirat.c: New file.
76645         * dirent/scandirat64.c: New file.
76646         * sysdeps/wordsize-64/scandirat.c: New file.
76647         * sysdeps/wordsize-64/scandirat64.c: New file.
76648         * dirent/opendir.c: Define opendirat.
76649         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
76650         using scandirat.
76651         * dirent/scandir64.c: Adjust for scandir.c change.
76652         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
76653         __scandirat64, and __scandir_cancel_handler.
76654         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
76655         additional parameter and use openat instead of open (outside of ld.so).
76656         Add new __opendir as wrapper around __opendirat.
76657         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
76658         here without requiring old scandirat implementation.
76659
76660 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
76661
76662         * dirent/scandir.c (cancel_handler): Renamed to
76663         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
76664         defined.  Adjust users.
76665         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
76666         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
76667
76668 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
76669
76670         * string/test-string.h (IMPL): Use __STRING to expand name and then
76671         stringify it.
76672
76673         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
76674         of cleanups.
76675
76676 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76677
76678         * string/Makefile: Update.
76679         (strop-tests): Append strncat.
76680         * string/test-wcscmp.c: New file.
76681         New comprehensive test for wcscmp.
76682         * string/test-strcmp.c: Update.
76683         (WIDE): New define.
76684
76685 2011-07-22  Andreas Schwab  <schwab@redhat.com>
76686
76687         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
76688         line.
76689
76690 2011-07-26  Andreas Schwab  <schwab@redhat.com>
76691
76692         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
76693         encoding to ACE if AI_IDN.
76694
76695 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
76696
76697         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
76698         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
76699
76700 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
76701
76702         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
76703         Fix overflow bug in strncat.
76704         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
76705
76706         * string/test-strncat.c: Update.
76707         Add new tests for checking overflow bugs.
76708
76709 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
76710
76711         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76712         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
76713         * sysdeps/i386/i686/multiarch/strcat.S: New file.
76714         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
76715         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
76716         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
76717         * sysdeps/i386/i686/multiarch/strncat.S: New file.
76718         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
76719         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
76720
76721         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
76722         (USE_AS_STRCAT): Define.
76723         Add strcat and strncat support.
76724         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
76725
76726 2011-07-25  Andreas Schwab  <schwab@redhat.com>
76727
76728         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
76729         __n bigger than INT_MAX+1.
76730         (__strncmp_g): Likewise.
76731
76732 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
76733
76734         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
76735         * libio/stido.h: Likewise.
76736
76737         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
76738         (AF_NFC): Define.
76739         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
76740         (AF_NFC): Define.
76741
76742         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
76743         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
76744         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
76745         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
76746         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
76747
76748         [BZ #13021]
76749         * scripts/test-installation.pl: Don't expect libnss_test1 to be
76750         installed.
76751
76752         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
76753         typo.
76754         (_dl_x86_64_save_sse): Likewise.
76755
76756 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
76757
76758         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
76759         OSXSAVE.
76760         (_dl_x86_64_save_sse): Likewise.
76761
76762         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
76763
76764         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
76765
76766 2011-07-21  Andreas Schwab  <schwab@redhat.com>
76767
76768         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
76769         change.
76770         (_dl_x86_64_save_sse): Use correct AVX check.
76771
76772 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76773
76774         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
76775         bug in strncpy/strncat.
76776         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
76777
76778 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
76779
76780         * string/tester.c (test_strcat): Add tests for different alignments
76781         of source and destination.
76782         (test_strncat): Likewise.
76783
76784 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
76785
76786         [BZ #12852]
76787         * posix/glob.c (glob): Check passed in values before using them in
76788         expressions to avoid some overflows.
76789         (glob_in_dir): Likewise.
76790
76791         [BZ #13007]
76792         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
76793         check for AVX enablement so that we don't crash with old kernels and
76794         new hardware.
76795         * elf/tst-audit4.c: Add same checks here.
76796         * elf/tst-audit6.c: Likewise.
76797
76798         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
76799
76800 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
76801
76802         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
76803
76804 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
76805
76806         * po/cs.po: Update from translation team.
76807         * po/bg.po: Likewise.
76808
76809 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
76810
76811         * misc/sys/cdefs.h: Add support for const attribute.
76812         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
76813         to gnu_dev_{major,minor,makedev} functions.
76814
76815 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
76816
76817         * intl/dcigettext.c (get_output_charset): Add missing bracket.
76818
76819 2011-07-20  Andreas Schwab  <schwab@redhat.com>
76820
76821         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
76822         strlen results.
76823
76824 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76825
76826         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
76827         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
76828         register in order to avoid conflicts with the soft frame pointer
76829         being held in r11 when necessary.
76830         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
76831         (INTERNAL_VSYSCALL_NCS): Likewise.
76832
76833 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
76834
76835         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
76836         * elf/dl-fini.c (_dl_fini): Adjust caller.
76837         * elf/dl-close.c (_dl_close_worker): Likewise.
76838         * sysdeps/generic/ldsodefs.h: Adjust declaration.
76839
76840 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
76841
76842         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
76843         "aux_cache->nlibs < 0".
76844
76845         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
76846         in the reload-count case.
76847
76848 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
76849
76850         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76851         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
76852         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
76853         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
76854         * sysdeps/x86_64/multiarch/strcat.S: New file.
76855         * sysdeps/x86_64/multiarch/strncat.S: New file.
76856         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
76857         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
76858         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
76859         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
76860         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
76861         (USE_AS_STRCAT): Define.
76862         Add strcat and strncat support.
76863         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
76864         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
76865         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
76866         * string/strncat.c: Update.
76867         (USE_AS_STRNCAT): Define.
76868         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76869         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
76870         and i7.
76871         * sysdeps/x86_64/multiarch/init-arch.h
76872         (bit_Prefer_PMINUB_for_stringop): New.
76873         (index_Prefer_PMINUB_for_stringop): Likewise.
76874         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
76875         bit_Prefer_PMINUB_for_stringop.
76876
76877 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
76878
76879         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
76880         buffer64.
76881         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
76882         of casting of buffer.
76883         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
76884         buffer32 and buffer64.
76885         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
76886         writes instead of casting of buffer.
76887         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
76888         buffer32.
76889         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
76890         casting of buffer.
76891
76892 2011-07-19  Andreas Schwab  <schwab@redhat.com>
76893
76894         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
76895
76896 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
76897
76898         * nscd/nscd.c (termination_handler): Don't do anything for a database
76899         if it has not yet been initialized.
76900
76901 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
76902
76903         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
76904
76905 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
76906
76907         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
76908
76909 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
76910
76911         * po/nl.po: Update from translation team.
76912         * po/sv.po: Likewise.
76913
76914 2011-07-16  Roland McGrath  <roland@hack.frob.com>
76915
76916         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
76917         now disallowed by GCC.
76918
76919         * configure.in (use-default-link): Default to yes if a test -shared
76920         link meets our qualifications.
76921         * configure: Regenerated.
76922
76923         * config.make.in (output-format): New variable.
76924         * configure.in: Check for ld --print-output-format support.
76925         * configure: Regenerated.
76926         * Makerules ($(common-objpfx)format.lds)
76927         [$(output-format) != unknown]: Just use $(output-format),
76928         instead of the linker-script munging.
76929
76930 2011-07-14  Roland McGrath  <roland@hack.frob.com>
76931
76932         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
76933         of $(common-objpfx)shlib.lds.
76934         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
76935
76936         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
76937         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
76938
76939         * configure.in (-z relro check): Adjust test code to add a large
76940         writable data section after it.
76941         * configure: Regenerated.
76942
76943 2011-07-11  Roland McGrath  <roland@hack.frob.com>
76944
76945         * configure.in (-z relro check): Fix test code to make the variable
76946         truly const.
76947         * configure: Regenerated.
76948
76949 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
76950
76951         * nscd/nscd.h (struct traced_file): Define.
76952         (struct database_dyn): Remove inotify_descr, reset_res, and filename
76953         elements.  Add traced_files.
76954         (inotify_fd): Declare.
76955         (register_traced_file): Declare.
76956         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
76957         (inotify_fd): Export.
76958         (resolv_conf_descr): Remove.
76959         (nscd_init): Move inotify descriptor creation to main.
76960         Don't register files for notification here.
76961         (register_traced_file): New function.
76962         (invalidate_cache): Don't use reset_res to determine whether to call
76963         res_init, go through the list of registered files.
76964         (main_loop_poll): The inotify descriptors are now stored in the
76965         structures for the traced files.
76966         (main_loop_epoll): Likewise.
76967         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
76968         to __nss_disable_nscd.
76969         * nscd/cache.c (prune_cache): There is no single inotify descriptor
76970         for a database anymore.  Check the records for all the registered
76971         files instead.
76972         * nss/Makefile (libnss_files-routines): Add files-init.
76973         (libnss_db-routines): Add db-init.
76974         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
76975         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
76976         * nss/nss_db/db-init.c: New file.
76977         * nss/nss_files/files-init.c: New file.
76978         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
76979         __nss_lookup_function.
76980         (__nss_lookup_function): Call nss_load_library.
76981         (nss_load_all_libraries): New function.
76982         (__nss_disable_nscd): Take parameter with callback function for files
76983         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
76984         used for the cached services.
76985         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
76986         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
76987         options for features to all the files in nscd.
76988
76989         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
76990
76991 2011-07-10  Roland McGrath  <roland@hack.frob.com>
76992
76993         * csu/elf-init.c (__libc_csu_init): Comment typo.
76994
76995 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
76996
76997         * po/pl.po: Update from translation team.
76998         * po/ja.po: Likewise.
76999         * po/ru.po: Likewise.
77000         * po/ko.po: Likewise.
77001         * po/fr.po: Likewise.
77002
77003 2011-07-09  Roland McGrath  <roland@hack.frob.com>
77004
77005         * configure.in (.ctors/.dtors header and trailer check):
77006         Use an empirical test on a built program.
77007         * configure: Regenerated.
77008
77009         * configure.in (-z relro check): Use an empirical test on a built DSO.
77010         Detect, but do not require, on ia64.
77011         * configure: Regenerated.
77012
77013         * configure.in (READELF): Find it with AC_CHECK_TOOL.
77014         Update tests that use readelf to use $READELF instead.
77015         * configure: Regenerated.
77016
77017 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
77018
77019         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
77020         if the result is not used.
77021
77022 2011-07-05  Andreas Jaeger  <aj@suse.de>
77023
77024         [BZ#9696]
77025         * stdlib/tst-strtod.c: Add testcase.
77026
77027 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
77028
77029         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
77030         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
77031         The latter has a higher limit.  Take additional parameter to pass to
77032         the new function.
77033         (__pathconf): Pass file to __statfs_link_max.
77034         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
77035         __statfs_link_max.
77036         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
77037         __statfs_link_max.
77038
77039         [BZ #12868]
77040         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
77041         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
77042         Handle Lustre.
77043         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
77044         (__statfs_filesize_max): Likewise.
77045         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
77046
77047 2011-07-05  Andreas Jaeger  <aj@suse.de>
77048
77049         * resolv/res_comp.c (dn_skipname): Remove unused variable.
77050
77051 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
77052
77053         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
77054         `status' variable.
77055         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
77056         Likewise.
77057
77058 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
77059
77060         * Makefile (strop-tests): Add strncat.
77061         * string/test-strncat.c: New file.
77062
77063 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
77064
77065         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
77066
77067 2011-06-21  Andreas Jaeger  <aj@suse.de>
77068
77069         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
77070         Copy rule from iconvdata/Makefile.
77071
77072 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
77073
77074         [BZ #12922]
77075         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
77076         but no long options are defined, just return 'W'.
77077
77078 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
77079
77080         [BZ #9696]
77081         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
77082
77083 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
77084
77085         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
77086         netgroups to read.
77087         (innetgr): Likewise.
77088
77089 2011-07-05  Roland McGrath  <roland@hack.frob.com>
77090
77091         * config.make.in (install_root): Default to $(DESTDIR).
77092
77093 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
77094
77095         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
77096
77097 2011-07-02  Roland McGrath  <roland@hack.frob.com>
77098
77099         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
77100
77101         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
77102         containing directory rather than embedding absolute directory names.
77103
77104         * scripts/check-local-headers.sh: Rewritten using awk.
77105         Match by word, not by line.  Print error messages for matches.
77106         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
77107
77108         * Makerules [shlib-lds-flags empty]:
77109         ($(common-objpfx)libc_pic.opts): New target.
77110         ($(common-objpfx)libc_pic.os.clean): New target.
77111         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
77112
77113         * config.make.in (OBJCOPY): New variable.
77114         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
77115         * configure: Regenerated.
77116
77117         * config.make.in (use-default-link): New variable.
77118         * configure.in (use_default_link): Grok --with-default-link to set it.
77119         * configure: Regenerated.
77120         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
77121         (shlib-lds, shlib-lds-flags): Define to empty.
77122
77123         * Makerules (shlib-lds): New variable.
77124         (shlib-lds-flags): New variable.
77125         (build-shlib, build-moduile, build-module-asneeded): Use it.
77126         ($(common-objpfx)libc.so): Use $(shlib-lds).
77127         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
77128         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
77129
77130         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
77131         DT_FLAGS/DT_FLAGS_1 with zero flags.
77132
77133         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
77134         linker script munging.
77135
77136 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
77137
77138         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
77139         as 128-bit value.
77140         * crypt/sha512.c (sha512_process_block): Perform total addition using
77141         128-bit if possible.
77142         (__sha512_finish_ctx): Likewise.
77143         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
77144         as 64-bit value.
77145         * crypt/sha256.c (SWAP64): Define.
77146         (sha256_process_block): Perform total addition using 64-bit if
77147         possible.
77148         (__sha256_finish_ctx): Likewise.
77149
77150 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
77151
77152         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
77153         * nscd/initgrcache.c (addinitgroupsX): Likewise.
77154         * nscd/hstcache.c (cache_addhst): Likewise.
77155         * nscd/grpcache.c (cache_addgr): Likewise.
77156         * nscd/aicache.c (addhstaiX): Likewise.
77157         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
77158
77159 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
77160
77161         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
77162         * nscd/initgrcache.c (addinitgroupsX): Likewise.
77163         * nscd/hstcache.c (cache_addhst): Likewise.
77164         * nscd/grpcache.c (cache_addgr): Likewise.
77165         * nscd/aicache.c (addhstaiX): Likewise.
77166
77167 2011-07-01  Andreas Schwab  <schwab@redhat.com>
77168
77169         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
77170         domain only when needed.
77171
77172 2011-06-30  Andreas Schwab  <schwab@redhat.com>
77173
77174         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
77175         is always restored.
77176
77177 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
77178
77179         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
77180         are re-adding the entry.
77181         * nscd/servicescache.c (cache_addserv): Likewise.
77182
77183 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
77184
77185         * sysdeps/generic/dl-irel.h: fix protection against multiple
77186         inclusions.
77187         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
77188
77189 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
77190
77191         [BZ #12935]
77192         * malloc/memusage.sh: Fix quoting in message.
77193         * debug/xtrace.sh: Likewise.
77194
77195         * configure.in: Remove support for --experimental-malloc option, make
77196         it the default.
77197         * config.make.in: Likewise.
77198         * malloc/Makefile: Likewise.
77199
77200 2011-06-27  Andreas Schwab  <schwab@redhat.com>
77201
77202         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
77203         two-byte characters.
77204
77205 2011-06-27  Roland McGrath  <roland@hack.frob.com>
77206
77207         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
77208         AC_CACHE_CHECK invocation.
77209         * configure: Regenerated.
77210
77211         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
77212
77213 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
77214
77215         [BZ #12350]
77216         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
77217         bit from old_res_options.
77218
77219         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
77220
77221         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
77222         value type for setfct.
77223
77224 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
77225
77226         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
77227         __gettimeofday instead of gettimeofday.
77228
77229 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
77230
77231         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
77232
77233 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
77234
77235         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
77236
77237         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
77238         info.
77239
77240 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
77241
77242         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77243         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
77244         strcpy-sse2-unaligned strncpy-sse2-unaligned
77245         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
77246         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
77247         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
77248         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
77249         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
77250         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
77251         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
77252         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
77253         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
77254         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
77255         (STRCPY): Support SSE2 and SSSE3 versions.
77256
77257 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
77258
77259         [BZ #12874]
77260         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
77261         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
77262         kernels which artificially limit size of requests.
77263
77264 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
77265
77266         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77267         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
77268         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
77269         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
77270         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
77271         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
77272         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
77273         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
77274         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
77275         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
77276         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
77277         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
77278         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
77279         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
77280         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
77281         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77282         Enable unaligned load optimization for Intel Core i3, i5 and i7
77283         processors.
77284         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
77285         Define.
77286         (index_Fast_Unaligned_Load): Define.
77287         (HAS_FAST_UNALIGNED_LOAD): Define.
77288
77289 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
77290
77291         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
77292
77293 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
77294
77295         [BZ #12907]
77296         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
77297         until it is clear that the information is realy needed.
77298         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
77299
77300 2011-06-22  Andreas Schwab  <schwab@redhat.com>
77301
77302         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
77303
77304 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
77305
77306         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
77307         /sys/devices/system/cpu/online if it is usable.
77308
77309         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
77310         reading the information from the /proc filesystem to once a second.
77311
77312 2011-06-21  Andreas Jaeger  <aj@suse.de>
77313
77314         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
77315         NULL after inclusion of kernel headers.
77316
77317 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
77318
77319         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
77320         calls to internal_setent.
77321
77322         [BZ #12885]
77323         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
77324         addresses using gethostbyname4_r ignore IPv4 addresses.
77325
77326         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
77327         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
77328
77329         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
77330
77331 2011-06-20  David S. Miller  <davem@davemloft.net>
77332
77333         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
77334         inclusions.
77335         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
77336
77337         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
77338         (elf_irel): Use it.
77339         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
77340         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
77341         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
77342         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
77343         * sysdeps/x86_64/dl-irel.h: Likewise.
77344
77345         * elf/dl-runtime.c: Use elf_ifunc_invoke.
77346         * elf/dl-sym.c: Likewise.
77347
77348 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
77349
77350         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
77351         need to dereference resplen2.
77352
77353 2011-06-14  Andreas Schwab  <schwab@redhat.com>
77354
77355         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
77356
77357 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
77358
77359         * Makeconfig: Define vardbdir and inst_vardbdir.
77360         * nss/Makefile: Add rules to install db-Makefile.
77361
77362         * nss/nss_db/db-XXX.c: Cleanup.
77363
77364         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
77365         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
77366         GLIBC_PRIVATE.
77367         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
77368         * nss/makedb.c: Implement -g option to specify that value strings
77369         are generated and should not be added to table iterated over for
77370         get*ent calls.
77371         * nss/nss_db/db-initgroups.c: New file.
77372
77373         * nss/getent.c: Add support for initgroups lookups through getgrouplist
77374         interface.
77375
77376         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
77377         (internal_getgrouplist): Adjust to name change.
77378         Update use_initgroups_entry if this is not the first call.
77379         * nss/databases.def: Add initgroups entry.
77380
77381         * nss/makedb.c (compute_tables): Check result of multiple hash table
77382         sizes to minimize maximum chain length.
77383
77384 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
77385
77386         * Versions.def: Add entry for libnss_db.
77387         * shlib-versions: Likewise.
77388         * nss/Makefile: Add rules to build libnss_db.
77389         * nss/Versions: Add libnss_db information.  Organize libnss_files
77390         entries better.
77391         * nss/db-Makefile: Add gshadow support.  Change rules for the new
77392         makedb progra.  Some minor improvements to generate smaller files.
77393         * nss/nss_db/nss_db.h: Move NSS database header data structures to
77394         here from...
77395         * nss/makedb.c: ...here.
77396         Improve database format to be smaller and require less memory at
77397         runtime.
77398         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
77399         db anymore.
77400         * nss/nss_db/db-netgrp.c: Likewise.
77401         * nss/nss_db/db-open.c: Likewise.
77402         * nss/nss_files/flies-XXX.x: Adjust comments.
77403         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
77404         * nss/nss_files/files-grp.c: Likewise.
77405         * nss/nss_files/files-hosts.c: Likewise.
77406         * nss/nss_files/files-network.c: Likewise.
77407         * nss/nss_files/files-proto.c: Likewise.
77408         * nss/nss_files/files-pwd.c: Likewise.
77409         * nss/nss_files/files-rpc.c: Likewise.
77410         * nss/nss_files/files-service.c: Likewise.
77411         * nss/nss_files/files-sgrp.c: Likewise.
77412         * nss/nss_files/files-spwd.c: Likewise.
77413         * nss/nss_db/db-alias.c: Removed.
77414         * nss/nss_db/dummy-db.h: Removed.
77415
77416 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
77417
77418         * nss/makedb.c: Rewritten to not use database library.
77419         * nss/Makefile: Update to build new makedb program.
77420
77421 2011-06-14  Andreas Jaeger  <aj@suse.de>
77422
77423         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
77424         memset declaration.
77425
77426 2011-06-10  Andreas Schwab  <schwab@redhat.com>
77427
77428         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
77429         tmpbuf.
77430
77431 2011-06-10  Roland McGrath  <roland@hack.frob.com>
77432
77433         * Makerules (shlib.lds): Fail if the linker script comes out empty.
77434         * elf/Makefile ($(objpfx)ld.so): Likewise.
77435
77436         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
77437         Don't list ld.so twice in dependencies.
77438
77439         * posix/bug-regex31.c: Include <stdlib.h>.
77440
77441         * nscd/hstcache.c (cache_addhst): Remove unused variable.
77442
77443         * nis/nss_compat/compat-spwd.c
77444         (getspent_next_nss_netgr): Remove unused variable.
77445         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
77446
77447         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
77448         nonmembers" output to use the right array.
77449
77450         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
77451
77452         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
77453
77454         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
77455         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
77456         * catgets/gencat.c (read_input_file): Likewise.
77457         * locale/programs/locarchive.c (enlarge_archive): Likewise.
77458
77459         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
77460         variable definition inside #if's controlling its use.
77461
77462         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
77463
77464         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
77465
77466         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
77467
77468         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
77469         unreachable code.
77470
77471         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
77472
77473         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
77474         * configure: Regenerated.
77475
77476         * Makerules: Revert last change.
77477         * elf/Makefile: Likewise.
77478
77479 2011-06-09  Roland McGrath  <roland@hack.frob.com>
77480
77481         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
77482         * elf/Makefile ($(objpfx)librtld.os): Likewise.
77483         (reloc-link): Likewise.
77484
77485 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
77486
77487         * elf/Makefile: Add rules to build pldd.
77488         * elf/pldd.c: New file.
77489         * elf/pldd-xx.c: New file.
77490
77491 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
77492
77493         * version.h: Update for 2.15 development version.
77494
77495 2011-06-07  David S. Miller  <davem@davemloft.net>
77496
77497         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
77498         ifuncs.
77499         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
77500         elf_machine_lazy_rel): Likewise.
77501         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
77502         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
77503         elf_machine_lazy_rel): Likewise.
77504         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
77505         dl_hwcap via passed in argument.
77506         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
77507         Likewise.
77508
77509 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77510
77511         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
77512
77513 2011-06-06  Roland McGrath  <roland@hack.frob.com>
77514
77515         [BZ #12849]
77516         * manual/fdl-1.1.texi: New file, verbatim from:
77517         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
77518         * manual/lgpl-2.1.texi: New file, verbatim from:
77519         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
77520         * manual/Makefile (licenses): New variable, list those new file names.
77521         (texis): Use it.
77522         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
77523
77524         * manual/fdl.texi: File removed.
77525         * manual/lesser.texi: File removed.
77526         * manual/libc.texinfo (Copying, Documentation License):
77527         Use new @include file names, put @appendix directive before @include.
77528
77529 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
77530
77531         [BZ #12841]
77532         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
77533         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
77534         (mq_open): Add __NTH.
77535
77536 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
77537
77538         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77539         Assume Intel Core i3/i5/i7 processor if AVX is available.
77540
77541 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
77542
77543         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
77544         typo.
77545
77546 2011-05-31  Andreas Schwab  <schwab@redhat.com>
77547
77548         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
77549         memory.  Use alloca_account.  Fix memory leak when retrying.
77550
77551 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
77552
77553         * version.h (RELEASE): Bump for 2.14 release.
77554         * include/features.h (__GLIBC_MINOR__): Bump to 14.
77555
77556         * config.make.in (RANLIB): Remove entry.
77557
77558 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
77559
77560         * po/Makefile (po-sed-cmd): Add ksh to extensions.
77561         (libc.pot): Work around missing support for .ksh extension in xgettext.
77562
77563         [BZ #12684]
77564         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
77565         if both request failed.
77566         (send_dg): In case of server errors clear resplen or *resplen2.
77567
77568         [BZ #12454]
77569         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
77570         when there are multiple maps.
77571         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
77572         (_dl_fini): Remove test here.
77573
77574         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
77575
77576 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
77577
77578         [BZ #12350]
77579         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
77580         bit from old_res_options.
77581         (gaih_inet): Likewise.
77582
77583         [BZ #11099]
77584         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
77585         as signed.
77586
77587         * resolv/res_init.c (res_setoptions): Make the code more compact.
77588
77589         [BZ #11558]
77590         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
77591         set RES_USEVC.
77592
77593         [BZ #11634]
77594         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
77595
77596         * malloc/malloc.h: Mark malloc hook variables as deprecated.
77597
77598         [BZ #11781]
77599         * malloc/malloc.h: Declare malloc hook variables as volatile.
77600
77601         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
77602         in last patch.
77603
77604         [BZ #11799]
77605         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
77606         raise in the comment.
77607         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
77608         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
77609         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
77610
77611 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
77612
77613         [BZ #12811]
77614         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
77615         grow the buffers more if it already has to be sufficient.
77616         (build_wcs_upper_buffer): Likewise.
77617         * posix/regexec.c (check_matching): Likewise.
77618         (clean_state_log_if_needed): Likewise.
77619         (extend_buffers): Don't enlarge buffers beyond size of the input
77620         buffer.
77621         Patches mostly by Emil Wojak <emil@wojak.eu>.
77622         * posix/bug-regex32.c: New file.
77623         * posix/Makefile (tests): Add bug-regex32.
77624
77625         * locale/findlocale.c (_nl_find_locale): Return right away if
77626         _nl_explode_name failed.
77627         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
77628
77629         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
77630
77631         * debug/xtrace.sh: Unify messages.
77632         * malloc/memusage.sh: Likewise.
77633
77634         [BZ #12813]
77635         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
77636         time symbol from vDSO.  Substitute with vsyscall if not available.
77637         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
77638         __vdso_time.
77639
77640         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
77641         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
77642         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
77643         Add sendmmsg and internal_sendmmsg.
77644         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
77645         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
77646         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
77647
77648         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
77649         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
77650         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
77651
77652 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
77653
77654         [BZ #12813]
77655         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
77656         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
77657         available.
77658         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
77659         __vdso_getcpu.
77660
77661         [BZ #12814]
77662         * iconvdata/Makefile (tests): Add bug-iconv9.
77663         * iconvdata/bug-iconv9.c: New file.
77664
77665 2011-05-27  Andreas Schwab  <schwab@redhat.com>
77666
77667         [BZ #12814]
77668         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
77669
77670 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
77671
77672         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
77673         (struct user_regs_struct): Change intcs field back to cs.
77674
77675 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
77676
77677         * po/ja.po: Update from translation team.
77678
77679 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
77680
77681         [BZ #12795]
77682         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
77683         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
77684
77685 2011-05-20  Andreas Schwab  <schwab@redhat.com>
77686
77687         * stdlib/longlong.h: Update from GCC.
77688
77689 2011-05-23  Andreas Schwab  <schwab@redhat.com>
77690
77691         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
77692         parameter name.
77693         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
77694         Add parameter name.
77695         (__sysconf): Pass it down.
77696
77697 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
77698
77699         [BZ #12671]
77700         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
77701         some situations.
77702         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
77703         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
77704         add in in __libc_use_alloca calls.  Adjust callers.
77705         (glob): Use malloc in some situations.
77706
77707         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
77708         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
77709         pltexit.
77710
77711 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
77712
77713         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
77714         and CLOCK_BOOTTIME_ALARM.
77715
77716         [BZ #12782]
77717         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
77718         is returned.
77719
77720         * string/_strerror.c (__strerror_r): Print negative errors as signed
77721         numbers.
77722
77723         [BZ #12777]
77724         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
77725         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
77726         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
77727
77728         * configure.in: Fix typo in redirection and correct removal of test
77729         files in two cases.
77730
77731         [BZ #12788]
77732         * locale/setlocale.c (new_composite_name): Fix test to check for
77733         identical name of all categories.
77734
77735         [BZ #12792]
77736         * libio/filedoalloc.c (local_isatty): New function.
77737         (_IO_file_doallocate): Use local_isatty.
77738         * stdio-common/perror.c (perror): In case a new stream is used
77739         forward the stream error.
77740         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
77741         error flag.
77742
77743 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
77744
77745         [BZ #11884]
77746         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
77747         alloca.
77748         * include/alloca.h (extend_alloca_account): Define.
77749
77750         [BZ #11857]
77751         * posix/regex.h: Fix comments with documentation of user-accessible
77752         fields after compilation and describe correct free'ing of pattern
77753         after re_compile_pattern.
77754         Patch by Reuben Thomas <rrt@sc3d.org>.
77755
77756 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
77757
77758         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
77759         and -mno-altivec to prevent the compiler from using Altivec and/or
77760         VSX instructions when the corresponding registers are not available.
77761
77762 2011-05-19  Andreas Schwab  <schwab@redhat.com>
77763
77764         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
77765
77766 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
77767
77768         * libio/freopen.c (freopen): Use __dup2, not dup2.
77769         * libio/freopen64.c (freopen64): Likewise.
77770
77771 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
77772
77773         [BZ #12775]
77774         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
77775         * math/Makefile (tests): Add test-powl.
77776         (CFLAGS-test-powl.c): Define.
77777         * math/test-powl.c: New file.
77778
77779 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
77780
77781         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
77782
77783 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
77784
77785         [BZ #11837]
77786         * iconvdata/gb18030.c: Update to GB18020-2005.
77787
77788 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
77789
77790         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
77791         RE_SYNTAX_POSIX_AWK): Update to match recent development.
77792         Patch by Aharon Robbins <arnold@skeeve.com>.
77793
77794         [BZ #11892]
77795         * stdlib/putenv.c (putenv): Don't always create copy of the variable
77796         on the stack.
77797
77798         [BZ #11895]
77799         * misc/pselect.c (__pselect): Handle timeout value errors hidden
77800         through underflows.
77801
77802         [BZ #12766]
77803         * misc/error.c (error_at_line): Ensure file_name and old_file_name
77804         point to strings before performing equality test for error_one_per_line
77805         mode.
77806
77807         [BZ #11697]
77808         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
77809
77810         [BZ #11820]
77811         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
77812         (struct user_fpregs_struct): Avoid __uint*_t types.
77813
77814         [BZ #6420]
77815         * malloc/mtrace.c (tr_where): Add additional parameter to point to
77816         symbol info.  Use it instead of calling _dl_addr locally.
77817         (lock_and_info): New function.
77818         (tr_freehook): Call lock_and_info and pass symbol info as additional
77819         parameter to tr_where.
77820         (tr_mallochook): Likewise.
77821         (tr_reallochook): Likewise.
77822         (tr_memalignhook): Likewise.
77823
77824         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
77825         used and couldn't be at all thread-safe.
77826
77827 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
77828
77829         * libio/freopen.c (freopen): Don't close old file descriptor
77830         before the new one is opened.  Instead dup the new file descriptor
77831         to the old one after the new stream is created.
77832         * libio/freopen64.c (freopen64): Likewise.
77833         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
77834         * libio/fileops.c (_IO_new_file_close_it): Handle new
77835         _IO_FLAGS2_NOCLOSE flag.
77836         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
77837         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
77838         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
77839         _IO_FLAGS2_NOCLOSE flag.
77840         * include/unistd.h: Add hidden_proto for dup3.
77841         Define __have_dup3.
77842         * io/dup3.c: Define hidden symbol.
77843         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
77844
77845         [BZ #7101]
77846         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
77847         when an incomplete long option is used.
77848         * posix/tst-getopt_long1.c: New file.
77849         * posix/Makefile (tests): Add tst-getopt_long1.
77850
77851         [BZ #10138]
77852         * scripts/config.guess: Update from autoconf-2.68.
77853         * scripts/config.sub: Likewise.
77854
77855         [BZ #10157]
77856         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
77857         tests into ...
77858         (has_cpuclock): ...this.  New function.
77859         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
77860         macro here based on has_cpuclock code.
77861
77862         [BZ #10149]
77863         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
77864         First byte (not low byte) is now always NUL.
77865         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
77866
77867         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
77868         Use non-cancelable interfaces.
77869
77870         [BZ #9809]
77871         * locale/iso-639.def: Add entry for Sorani.
77872
77873         [BZ #11901]
77874         * include/stdlib.h: Move include protection to the right place.
77875         Define abort_msg_s.  Declare __abort_msg with it.
77876         * stdlib/abort.c (__abort_msg): Adjust type.
77877         * assert/assert.c (__assert_fail_base): New function.  Majority
77878         of code from __assert_fail.  Allocate memory for __abort_msg with
77879         mmap.
77880         (__assert_fail): Now call __assert_fail_base.
77881         * assert/assert-perr.c: Remove bulk of implementation.  Use
77882         __assert_fail_base.
77883         * include/assert.hL Declare __assert_fail_base.
77884         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
77885         mmap.
77886         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
77887
77888 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
77889
77890         [BZ #11952]
77891         [BZ #12453]
77892         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
77893         until all modules are registered in the DTV.
77894         * elf/Makefile: Add rules to build and run tst-tls19.
77895         * elf/tst-tls19.c: New file.
77896         * elf/tst-tls19mod1.c: New file.
77897         * elf/tst-tls19mod2.c: New file.
77898         * elf/tst-tls19mod3.c: New file.
77899         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
77900
77901         [BZ #12083]
77902         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
77903         correctly.
77904
77905         [BZ #12601]
77906         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
77907         two-byte sequence errors.
77908         * iconvdata/Makefile (tests): Add bug-iconv8.
77909         * iconvdata/bug-iconv8.c: New file.
77910
77911         [BZ #12626]
77912         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
77913         buf2 definition.
77914
77915         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
77916
77917         [BZ #12432]
77918         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
77919         (dummy_getcfa): New function.
77920         (init): Get _Unwind_GetCFA address, use dummy if not found.
77921         (backtrace_helper): In recursion check, also check whether CFA changes.
77922         (__backtrace): Completely initialize arg.
77923
77924         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
77925         storing incomplete byte sequence in state object.  Avoid testing for
77926         guaranteed too small input if we know there is enough data available.
77927
77928 2011-05-11  Andreas Schwab  <schwab@redhat.com>
77929
77930         * Makeconfig (+link-pie): Indent.
77931         * Rules (binaries-pie): Define if $(have-fpie) and
77932         $(build-shared).
77933         (binaries-shared): Also filter out $(binaries-pie).
77934         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
77935         * nscd/Makefile (others-pie): Add nscd.
77936         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
77937         ($(objpfx)nscd): Remove command override.
77938         * login/Makefile (others-pie): Add pt_chown.
77939         ($(objpfx)pt_chown): Remove command override.
77940         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
77941         remove command overrides.
77942
77943 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
77944
77945         * libio/tst_putwc.c: Fix error messages.
77946
77947         [BZ #12724]
77948         * libio/fileops.c (_IO_new_file_close_it): Always flush when
77949         currently writing and seek to current position when not.
77950         * libio/Makefile (tests): Add bug-fclose1.
77951         * libio/bug-fclose1.c: New file.
77952
77953 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
77954
77955         [BZ #12511]
77956         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
77957         don't set DF_1_NODELETE here.
77958         (do_lookup_x): When entering new entry test for copy relocation
77959         and if necessary set DF_1_NODELETE flag.
77960         * elf/tst-unique4.cc: New file.
77961         * elf/tst-unique4.h: New file.
77962         * elf/tst-unique4lib.cc: New file.
77963         * elf/Makefile: Add rules to build and run tst-unique4.
77964         Patch by Piotr Bury <pbury@goahead.com>.
77965
77966 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
77967
77968         [BZ #12052]
77969         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
77970
77971         [BZ #12625]
77972         * misc/mntent_r.c (addmntent): Flush the stream after the output
77973
77974         [BZ #12393]
77975         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
77976         (is_trusted_path_normalize): Skip initial colon.  Append slash
77977         to empty buffer.  Duplicate is_trusted_path code but allow
77978         constructed patch to be prefix.
77979         (is_dst): Allow $ORIGIN followed by /.
77980         (_dl_dst_substitute): Correct clearing of check_for_trusted.
77981         Correct testing of result of is_trusted_path_normalize
77982         (decompose_rpath): Fix warning.
77983
77984 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
77985
77986         [BZ #11257]
77987         * grp/initgroups.c (internal_getgrouplist): When we found the service
77988         list through the initgroups entry in nsswitch.conf do not always
77989         continue on a successful lookup.  Don't always use the
77990         __nss_group_database value if it is set.
77991         * nss/nsswitch.conf (initgroups): Change action for successful db
77992         lookup to continue for compatibility.
77993
77994 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
77995
77996         [BZ #11532]
77997         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
77998         and CP774 modules.
77999         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
78000         and CP774 modules.
78001         * iconvdata/tst-tables.sh: Likewise.
78002         * iconvdata/cp770.c: New file.
78003         * iconvdata/cp771.c: New file.
78004         * iconvdata/cp772.c: New file.
78005         * iconvdata/cp773.c: New file.
78006         * iconvdata/cp774.c: New file.
78007         * iconvdata/testdata/CP770: New file.
78008         * iconvdata/testdata/CP770..UTF8: New file.
78009         * iconvdata/testdata/CP771: New file.
78010         * iconvdata/testdata/CP771..UTF8: New file.
78011         * iconvdata/testdata/CP772: New file.
78012         * iconvdata/testdata/CP772..UTF8: New file.
78013         * iconvdata/testdata/CP773: New file.
78014         * iconvdata/testdata/CP773..UTF8: New file.
78015         * iconvdata/testdata/CP774: New file.
78016         * iconvdata/testdata/CP774..UTF8: New file.
78017
78018         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
78019         END CHARMAP line.
78020         * iconvdata/gen-8bit-gap.sh: Likewise.
78021         * iconvdata/gen-8bit.sh: Likewise.
78022
78023         * locale/iso-639.def: Add ary entry.
78024
78025         [BZ #11258]
78026         * locale/C-translit.h.in: Add U20A1 transliteration.
78027
78028         [BZ #12178]
78029         * locale/iso-639.def: Add wae entry.
78030         Patch by Kevin Bortis <bortis@translate-wae.ch>.
78031
78032         [BZ #12545]
78033         * locale/programs/localedef.c (construct_output_path): Use ssize_t
78034         for n.
78035
78036         [BZ #12711]
78037         * locale/C-translit.h.in: Add entry for U20B9.
78038         Patch by pravin.d.s@gmail.com.
78039
78040 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
78041
78042         [BZ #12713]
78043         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
78044         ENAMETOOLONG use generic getcwd.
78045         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
78046         in rtld.  Use *stat64.
78047         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
78048         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
78049         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
78050         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
78051         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
78052         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
78053         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
78054         __fstatat64 macros.
78055         * include/dirent.h: Add libc_hidden_proto for rewinddir.
78056         * dirent/rewinddir.c: Add libc_hidden_def.
78057         * sysdeps/mach/hurd/rewinddir.c: Likewise.
78058         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
78059
78060         * include/dirent.h (__alloc_dir): Add flags parameter.
78061         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
78062         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
78063         __alloc_dir.
78064         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
78065         from fdopendir if O_CLOEXEC is already set.
78066
78067 2011-03-15  Alan Modra  <amodra@gmail.com>
78068
78069         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
78070         l_tls_firstbyte_offset non-zero.  Save padding offset in
78071         l_tls_firstbyte_offset for later use.
78072         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
78073         freeing static tls block.
78074
78075 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
78076
78077         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
78078         where #ifdef was intended.  The intent is to prevent ARG_MAX from
78079         being defined by the kernel headers.
78080
78081 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
78082
78083         [BZ #12734]
78084         * resolv/resolv.h: Define RES_NOTLDQUERY.
78085         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
78086         no-tld-query and set RES_NOTLDQUERY.
78087         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
78088         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
78089         modern BIND to search name as TLD unless forbidden.
78090
78091 2011-05-07  Petr Baudis  <pasky@suse.cz>
78092             Ulrich Drepper  <drepper@gmail.com>
78093
78094         [BZ #12393]
78095         * elf/dl-load.c (fillin_rpath): Move trusted path check...
78096         (is_trusted_path): ...to here.
78097         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
78098         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
78099         using is_trusted_path_normalize() in setuid scripts.
78100
78101 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
78102
78103         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
78104         __BEGIN/__END_DECLS.
78105
78106 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
78107
78108         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
78109         NSS_STATUS_NOTFOUND if no record was found.
78110
78111 2011-05-05  Andreas Schwab  <schwab@redhat.com>
78112
78113         * sunrpc/Makefile (headers): Add rpc/netdb.h.
78114         (headers-not-in-tirpc): Remove rpc/netdb.h
78115         * resolv/netdb.h: Revert last change.
78116
78117 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
78118
78119         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
78120         circular dependency between libgcc.a and libc.a.
78121
78122 2011-05-05  Andreas Schwab  <schwab@redhat.com>
78123
78124         * resolv/netdb.h: Don't include <rpc/netdb.h>.
78125         * nis/Makefile: Don't install rpcsvc/*.
78126         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
78127         instead of <rpc/types.h>.
78128         (MAXHOSTNAMELEN): Define.
78129
78130 2011-05-03  Andreas Schwab  <schwab@redhat.com>
78131
78132         * elf/ldconfig.c (add_dir): Don't crash on empty path.
78133
78134 2011-04-28  Maciej Babinski  <mbabinski@google.com>
78135
78136         [BZ #12714]
78137         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
78138         gethostbyname4_r when IPv6 results are possible.
78139
78140 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
78141
78142         [BZ #12723]
78143         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
78144         _PC_PIPE_BUF handling.
78145
78146 2011-04-30  Bruno Haible  <bruno@clisp.org>
78147
78148         [BZ #12717]
78149         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
78150         * resolv/netdb.h (getnameinfo): Change type of flags parameter
78151         to 'int'.
78152         * inet/getnameinfo.c (getnameinfo): Likewise.
78153
78154 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
78155
78156         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
78157         to groups setting in database lookup.
78158         * nss/nsswitch.conf: Add initgroups entry.
78159
78160 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
78161
78162         [BZ #12685]
78163         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
78164         mode string.
78165         Patch by Eric Blake <eblake@redhat.com>.
78166
78167 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
78168
78169         * sunrpc/Makefile (need-export-routines): Add svc_run.
78170         (routines): Remove svc_run.
78171         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
78172         * sunrpc/clnt_perr.c (clnt_perrno): Export.
78173         * sunrpc/svc_run.c (svc_run): Likewise.
78174         * sunrpc/svc_udp.c (svcudp_create): Likewise.
78175
78176 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
78177
78178         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
78179         problem in reallocation in last patch.
78180
78181 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
78182
78183         * sunrpc/Makefile: Move inclusion of Rules.
78184
78185 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
78186
78187         * nss/nss_files/files-initgroups.c: New file.
78188         * nss/Makefile (libnss_files-routines): Add files-initgroups.
78189         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
78190         _nss_files_initgroups_dyn.
78191
78192 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
78193
78194         * elf/elf.h (R_ARM_IRELATIVE): Define.
78195
78196 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
78197
78198         * po/ru.po: Update from translation team.
78199
78200 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
78201
78202         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
78203         dependencies.
78204
78205 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
78206
78207         [BZ #12653]
78208         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
78209         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
78210         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
78211         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
78212         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
78213
78214 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
78215
78216         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
78217         differing bytes.
78218         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
78219         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
78220         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
78221
78222 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
78223
78224         [BZ #12420]
78225         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
78226         storing it.
78227         * stdlib/bug-getcontext.c: New file.
78228         * stdlib/Makefile: Add rules to build and run bug-getcontext.
78229
78230 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78231
78232         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
78233         instructions into .machine "z9-109".
78234         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
78235         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
78236
78237 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78238
78239         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
78240         between environment variables and auxiliary vector.
78241
78242 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
78243
78244         * Makefile: Add rules to build linkobj/libc.so.
78245         * include/libc-symbols.h: Define libc_hidden_nolink.
78246         * include/rpc/auth.h: Mark functions which are to be hidden.
78247         * include/rpc/auth_des.h: Likewise.
78248         * include/rpc/auth_unix.h: Likewise.
78249         * include/rpc/clnt.h: Likewise.
78250         * include/rpc/des_crypt.h: Likewise.
78251         * include/rpc/key_prot.h: Likewise.
78252         * include/rpc/pmap_clnt.h: Likewise.
78253         * include/rpc/pmap_prot.h: Likewise.
78254         * include/rpc/pmap_rmt.h: Likewise.
78255         * include/rpc/rpc_msg.h: Likewise.
78256         * include/rpc/svc.h: Likewise.
78257         * include/rpc/svc_auth.h: Likewise.
78258         * include/rpc/xdr.h: Likewise.
78259         * nis/Makefile: Link all DSOs against linkobj/libc.so.
78260         * nss/Makefile: Likewise.
78261         * sunrpc/Makefile: Don't install headers.  Build library with normal
78262         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
78263         * sunrpc/auth_des.c: Hide exported symbols by default, export some
78264         for the compat linking library.  Remove use of INTDEF/INTUSE.
78265         * sunrpc/auth_none.c: Likewise.
78266         * sunrpc/auth_unix.c: Likewise.
78267         * sunrpc/authdes_prot.c: Likewise.
78268         * sunrpc/authuxprot.c: Likewise.
78269         * sunrpc/clnt_gen.c: Likewise.
78270         * sunrpc/clnt_perr.c: Likewise.
78271         * sunrpc/clnt_raw.c: Likewise.
78272         * sunrpc/clnt_simp.c: Likewise.
78273         * sunrpc/clnt_tcp.c: Likewise.
78274         * sunrpc/clnt_udp.c: Likewise.
78275         * sunrpc/clnt_unix.c: Likewise.
78276         * sunrpc/des_crypt.c: Likewise.
78277         * sunrpc/des_soft.c: Likewise.
78278         * sunrpc/get_myaddr.c: Likewise.
78279         * sunrpc/key_call.c: Likewise.
78280         * sunrpc/key_prot.c: Likewise.
78281         * sunrpc/netname.c: Likewise.
78282         * sunrpc/pm_getmaps.c: Likewise.
78283         * sunrpc/pm_getport.c: Likewise.
78284         * sunrpc/pmap_clnt.c: Likewise.
78285         * sunrpc/pmap_prot.c: Likewise.
78286         * sunrpc/pmap_prot2.c: Likewise.
78287         * sunrpc/pmap_rmt.c: Likewise.
78288         * sunrpc/publickey.c: Likewise.
78289         * sunrpc/rpc_cmsg.c: Likewise.
78290         * sunrpc/rpc_common.c: Likewise.
78291         * sunrpc/rpc_dtable.c: Likewise.
78292         * sunrpc/rpc_prot.c: Likewise.
78293         * sunrpc/rpc_thread.c: Likewise.
78294         * sunrpc/rtime.c: Likewise.
78295         * sunrpc/svc.c: Likewise.
78296         * sunrpc/svc_auth.c: Likewise.
78297         * sunrpc/svc_authux.c: Likewise.
78298         * sunrpc/svc_raw.c: Likewise.
78299         * sunrpc/svc_run.c: Likewise.
78300         * sunrpc/svc_simple.c: Likewise.
78301         * sunrpc/svc_tcp.c: Likewise.
78302         * sunrpc/svc_udp.c: Likewise.
78303         * sunrpc/svc_unix.c: Likewise.
78304         * sunrpc/svcauth_des.c: Likewise.
78305         * sunrpc/xcrypt.c: Likewise.
78306         * sunrpc/xdr.c: Likewise.
78307         * sunrpc/xdr_array.c: Likewise.
78308         * sunrpc/xdr_float.c: Likewise.
78309         * sunrpc/xdr_intXX_t.c: Likewise.
78310         * sunrpc/xdr_mem.c: Likewise.
78311         * sunrpc/xdr_rec.c: Likewise.
78312         * sunrpc/xdr_ref.c: Likewise.
78313         * sunrpc/xdr_sizeof.c: Likewise.
78314         * sunrpc/xdr_stdio.c: Likewise.
78315
78316 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
78317
78318         [BZ #12650]
78319         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
78320         * sysdeps/ia64/dl-tls.h: Likewise.
78321         * sysdeps/powerpc/dl-tls.h: Likewise.
78322         * sysdeps/s390/dl-tls.h: Likewise.
78323         * sysdeps/sh/dl-tls.h: Likewise.
78324         * sysdeps/sparc/dl-tls.h: Likewise.
78325         * sysdeps/x86_64/dl-tls.h: Likewise.
78326         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
78327
78328 2011-03-14  Andreas Schwab  <schwab@redhat.com>
78329
78330         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
78331         rpath element also skip the following colon.
78332         (expand_dynamic_string_token): Add is_path parameter and pass
78333         down to DL_DST_REQUIRED and _dl_dst_substitute.
78334         (decompose_rpath): Call expand_dynamic_string_token with
78335         non-zero is_path.  Ignore empty rpaths.
78336         (_dl_map_object_from_fd): Call expand_dynamic_string_token
78337         with zero is_path.
78338
78339 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
78340
78341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
78342         Make cancelable.
78343
78344 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
78345
78346         [BZ #12655]
78347         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
78348         Patch by Filipe David Manana <fdmanana@apache.org>.
78349
78350 2011-04-07  Andreas Schwab  <schwab@redhat.com>
78351
78352         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
78353         Maintain aligned stack.
78354         (CHECK_RSP): Remove unused macro.
78355
78356 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
78357
78358         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
78359         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
78360
78361 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
78362
78363         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
78364
78365         * include/features.h: Mention __USE_XOPEN2K8 in comment.
78366
78367 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
78368
78369         [BZ #12518]
78370         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
78371         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
78372         * sysdeps/x86_64/memmove.c: New file.
78373         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
78374         (memcpy): Renamed to ...
78375         (__new_memcpy): This.
78376         (memcpy): Provide GLIBC_2_14 memcpy.
78377         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
78378         (memcpy): Provide GLIBC_2_2_5 memcpy.
78379
78380 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
78381
78382         [BZ #12631]
78383         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
78384
78385 2011-03-30  Andreas Schwab  <schwab@redhat.com>
78386
78387         * misc/syncfs.c: New file.
78388         * misc/Makefile (routines): Add syncfs.
78389         * posix/unistd.h: Declare syncfs.
78390         * sysdeps/unix/syscalls.list: Add syncfs.
78391
78392 2011-04-01  Andreas Schwab  <schwab@redhat.com>
78393
78394         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
78395         open_by_handle_at.
78396         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
78397         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
78398         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
78399         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
78400         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
78401         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
78402         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
78403
78404 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
78405
78406         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
78407         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
78408         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
78409         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
78410         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
78411         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
78412         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
78413
78414         * io/Makefile: Compile fallocate.c, fallocate64.c, and
78415         sync_file_range.c with -fexceptions.
78416         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
78417         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
78418         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
78419         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
78420         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
78421         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
78422         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
78423         sync_file_range as cancellation point
78424         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
78425         now a wrapper around __call_sync_file_range with cancellation handling.
78426         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
78427         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
78428         function name to __call_sync_file_range.
78429         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
78430         Add call_sync_file_range.
78431
78432 2011-04-01  Andreas Schwab  <schwab@redhat.com>
78433
78434         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
78435         bits/timex.h.
78436
78437 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
78438
78439         * iconv/iconv.h: Fix typo in comment.
78440         * io/fcntl.h: Likewise.
78441         * libio/stdio.h: Likewise.
78442         * posix/spawn.h: Likewise.
78443         * posix/unistd.h: Likewise.
78444         * stdlib/stdlib.h: Likewise.
78445         * time/time.h: Likewise.
78446         * wcsmbs/wchar.h: Likewise.
78447
78448         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
78449         open_by_handle): Add.
78450         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
78451         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
78452         Augment a few comments.
78453         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
78454         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
78455         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
78456         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
78457         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
78458         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
78459         open_by_handle.
78460
78461         * io/fcntl.h (AT_EMPTY_PATH): Define.
78462
78463 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
78464
78465         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
78466         * sysdeps/unix/sysv/linux/bits/time.h: New file.
78467         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
78468         to...
78469         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
78470         * Versions.def: Add GLIBC_2.14.
78471         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
78472         Export.
78473
78474 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
78475
78476         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
78477         round counter.
78478         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
78479
78480 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
78481
78482         [BZ #12597]
78483         * string/test-strncmp.c (do_page_test): New function.
78484         (check2): Likewise.
78485         (test_main): Call check2.
78486         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
78487
78488 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
78489
78490         [BZ #12587]
78491         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
78492         Handle cache information in CPU leaf 4.
78493         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
78494
78495 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
78496
78497         [BZ #12583]
78498         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
78499         character representation.
78500         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
78501
78502 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
78503
78504         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
78505         END(__isnan) to END(__isnanf) to match function entry point/label
78506         EALIGN(__isnanf,...).
78507
78508 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
78509
78510         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
78511
78512 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
78513
78514         [BZ #12510]
78515         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
78516         copy from the symbol referenced in the relocation to initialize the
78517         used variable.
78518         Patch by Piotr Bury <pbury@goahead.com>.
78519         * elf/Makefile: Add rules to build and tst-unique3.
78520         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
78521         * elf/tst-unique3.cc: New file.
78522         * elf/tst-unique3.h: New file.
78523         * elf/tst-unique3lib.cc: New file.
78524         * elf/tst-unique3lib2.cc: New file.
78525
78526         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
78527
78528 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
78529
78530         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
78531         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
78532         to _start.
78533
78534 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
78535
78536         * elf/dl-load.c (_dl_map_object): If we are looking for the first
78537         to-be-loaded object along a path to loader is ld.so.
78538
78539 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
78540             Ulrich Drepper  <drepper@gmail.com>
78541
78542         * sysdeps/x86_64/memset.S: After aligning destination, code
78543         branches to different locations depending on the value of
78544         misalignment, when multiarch is enabled. Fix this.
78545
78546 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
78547
78548         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
78549         Set _x86_64_preferred_memory_instruction for AMD processsors.
78550         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
78551         Set bit_Prefer_SSE_for_memop for AMD processors.
78552
78553 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
78554
78555         * libio/fmemopen.c (fmemopen): Optimize a bit.
78556
78557 2011-03-03  Andreas Schwab  <schwab@redhat.com>
78558
78559         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
78560
78561 2011-03-03  Roland McGrath  <roland@redhat.com>
78562
78563         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
78564
78565 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
78566
78567         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
78568         __bzero_ultra1 instead of __memset_ultra1.
78569
78570 2011-02-23  Andreas Schwab  <schwab@redhat.com>
78571             Ulrich Drepper  <drepper@gmail.com>
78572
78573         [BZ #12509]
78574         * include/link.h (struct link_map): Add l_orig_initfini.
78575         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
78576         returning unsuccessfully.
78577         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
78578         close of a file loaded at startup, restore the original l_initfini
78579         list.
78580         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
78581         list, store the pointer.
78582         * elf/Makefile ($(objpfx)noload-mem): New rule.
78583         (noload-ENV): Define.
78584         (tests): Add $(objpfx)noload-mem.
78585         * elf/noload.c: Include <memcheck.h>.
78586         (main): Call mtrace.  Close all opened handles.
78587
78588 2011-02-17  Andreas Schwab  <schwab@redhat.com>
78589
78590         [BZ #12454]
78591         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
78592         dependencies are missing.
78593
78594 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
78595
78596         Fix __if_freereq crash: Unlike the generic version which uses free,
78597         Hurd needs munmap.
78598         * sysdeps/mach/hurd/ifreq.h: New file.
78599
78600 2011-01-27  Petr Baudis  <pasky@suse.cz>
78601             Ulrich Drepper  <drepper@gmail.com>
78602
78603         [BZ 12445]#
78604         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
78605         to extend_alloca().
78606         * stdio-common/bug23.c: New file.
78607         * stdio-common/Makefile (tests): Add bug23.
78608
78609 2010-09-28  Andreas Schwab  <schwab@redhat.com>
78610             Ulrich Drepper  <drepper@gmail.com>
78611
78612         [BZ #12489]
78613         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
78614         before performing relro protection.  At old place add assertion
78615         to make sure nothing changed.
78616
78617 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
78618             Glauber de Oliveira Costa  <glommer@gmail.com>
78619
78620         * elf/elf.h: Add new ARM TLS relocs.
78621
78622 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
78623
78624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
78625         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
78626         cast from r3.
78627         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
78628         'tests' variable.
78629         * sysdeps/wordsize-64/tst-writev.c: New file.
78630
78631 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
78632
78633         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
78634         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
78635         insns in _dl_start to prevent a TOC reference before relocs are
78636         resolved.
78637
78638 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
78639
78640         [BZ #12469]
78641         * Makeconfig: Remove RANLIB definition.
78642         * Makerules: Don't use RANLIB.
78643         * aclocal.m4: Remove ranlib test.
78644         * configure.in: No need to check for ranlib.
78645         * elf/rtld-Rules: Don't use RANLIB.
78646
78647 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
78648
78649         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
78650         protection macro.
78651         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
78652         inclusion protection macro.
78653
78654         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
78655         SIGRTMIN and SIGRTMAX and print information in that case only when
78656         SIGRTMIN is defined.
78657
78658 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
78659
78660         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
78661         arginfo fn returning -1.
78662
78663         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
78664         and thousands string is zero terminated.
78665
78666 2011-02-03  Andreas Schwab  <schwab@redhat.com>
78667
78668         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
78669         sysdeps/unix/sysv/linux/bits/socket.h.
78670
78671 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
78672
78673         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
78674         (__CPU_COUNT): Remove old macros.
78675         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
78676         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
78677         (__CPU_ALLOC, __CPU_FREE): Add macros.
78678         (__sched_cpualloc, __sched_cpufree): Add declarations.
78679
78680 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
78681
78682         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
78683         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
78684         * nscd/aicache.c (addhstaiX): Return timeout of added value.
78685         (readdhstai): Return value of addhstaiX call.
78686         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
78687         (addgrbyX): Return value returned by cache_addgr.
78688         (readdgrbyname): Return value returned by addgrbyX.
78689         (readdgrbygid): Likewise.
78690         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
78691         (addpwbyX): Return value returned by cache_addpw.
78692         (readdpwbyname): Return value returned by addhstbyX.
78693         (readdpwbyuid): Likewise.
78694         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
78695         (addservbyX): Return value returned by cache_addserv.
78696         (readdservbyname): Return value returned by addservbyX:
78697         (readdservbyport): Likewise.
78698         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
78699         (addhstbyX): Return value returned by cache_addhst.
78700         (readdhstbyname): Return value returned by addhstbyX.
78701         (readdhstbyaddr): Likewise.
78702         (readdhstbynamev6): Likewise.
78703         (readdhstbyaddrv6): Likewise.
78704         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
78705         (readdinitgroups): Return value returned by addinitgroupsX.
78706         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
78707         (prune_cache): Keep track of timeout value of re-added entries.
78708         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
78709         * nscd/nscd.h: Adjust prototypes of readd* functions.
78710
78711 2011-02-04  Roland McGrath  <roland@redhat.com>
78712
78713         * nis/nis_server.c (nis_servstate): Use the right name for 0.
78714         (nis_stats): Likewise.
78715         * nis/nis_modify.c (nis_modify): Likewise.
78716         * nis/nis_remove.c (nis_remove): Likewise.
78717         * nis/nis_add.c (nis_add): Likewise.
78718
78719         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
78720
78721         * posix/fnmatch_loop.c: Add some consts.
78722
78723         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
78724
78725 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
78726
78727         [BZ #12460]
78728         * config.make.in (config-cflags-novzeroupper): Define.
78729         * configure.in: Substitute libc_cv_cc_novzeroupper.
78730         * elf/Makefile (AVX-CFLAGS): Define.
78731         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
78732         (CFLAGS-tst-auditmod4a.c): Likewise.
78733         (CFLAGS-tst-auditmod4b.c): Likewise.
78734         (CFLAGS-tst-auditmod6b.c): Likewise.
78735         (CFLAGS-tst-auditmod6c.c): Likewise.
78736         (CFLAGS-tst-auditmod7b.c): Likewise.
78737         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
78738
78739 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
78740
78741         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
78742         function to the callback.
78743         Patch partly by Jiri Olsa <jolsa@redhat.com>.
78744
78745 2011-02-02  Andreas Schwab  <schwab@redhat.com>
78746
78747         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
78748         of errno.
78749
78750 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
78751
78752         [BZ #11724]
78753         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
78754         of constructors.
78755         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
78756         of destructors.
78757         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
78758
78759         [BZ #11724]
78760         * elf/Makefile: Add rules to build and run new test.
78761         * elf/tst-initorder.c: New file.
78762         * elf/tst-initorder.exp: New file.
78763         * elf/tst-initordera1.c: New file.
78764         * elf/tst-initordera2.c: New file.
78765         * elf/tst-initordera3.c: New file.
78766         * elf/tst-initordera4.c: New file.
78767         * elf/tst-initorderb1.c: New file.
78768         * elf/tst-initorderb2.c: New file.
78769         * elf/tst-order-a1.c: New file.
78770         * elf/tst-order-a2.c: New file.
78771         * elf/tst-order-a3.c: New file.
78772         * elf/tst-order-a4.c: New file.
78773         * elf/tst-order-b1.c: New file.
78774         * elf/tst-order-b2.c: New file.
78775         * elf/tst-order-main.c: New file.
78776         New test case by George Gensure <werkt0@gmail.com>.
78777
78778 2010-10-01  Andreas Schwab  <schwab@redhat.com>
78779
78780         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
78781         decoding ACE if AI_CANONIDN.
78782
78783 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
78784
78785         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
78786
78787 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
78788
78789         * version.h (RELEASE): Bump for 2.13 release.
78790         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
78791
78792         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
78793
78794         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
78795         MADV_NOHUGEPAGE.
78796         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
78797         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
78798         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
78799         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
78800         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
78801         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
78802
78803         * posix/getconf.c: Update copyright year.
78804         * catgets/gencat.c: Likewise.
78805         * csu/version.c: Likewise.
78806         * debug/catchsegv.sh: Likewise.
78807         * debug/xtrace.sh: Likewise.
78808         * elf/ldconfig.c: Likewise.
78809         * elf/ldd.bash.in: Likewise.
78810         * elf/sprof.c (print_version): Likewise.
78811         * iconv/iconv_prog.c: Likewise.
78812         * iconv/iconvconfig.c: Likewise.
78813         * locale/programs/locale.c: Likewise.
78814         * locale/programs/localedef.c: Likewise.
78815         * malloc/memusage.sh: Likewise.
78816         * malloc/mtrace.pl: Likewise.
78817         * nscd/nscd.c (print_version): Likewise.
78818         * nss/getent.c: Likewise.
78819
78820         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
78821         PF_CAIF, and PF_ALG.
78822         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
78823
78824 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
78825
78826         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
78827         (modules-names): Use them.
78828         (ifunc-test-modules, ifunc-pie-tests): Define.
78829         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
78830         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
78831         (test-extras): Likewise.
78832         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
78833         $(compile-command.c).
78834         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
78835         (all-built-dso): Define.
78836         (check-textrel.out, check-execstack.out): Depend on it.
78837
78838         * configure.in: Don't override --enable-multi-arch.
78839
78840 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
78841
78842         [BZ #6812]
78843         * nscd/hstcache.c (tryagain): Define.
78844         (cache_addhst): Return tryagain not notfound for temporary errors.
78845         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
78846         failed.
78847
78848 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
78849
78850         [BZ #10563]
78851         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
78852         to make the syscall.
78853         * sysdeps/unix/sysv/linux/setgroups.c: New file.
78854
78855         [BZ #12378]
78856         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
78857         and fall back to matching as normal character if the string ends before
78858         the matching ']' is found.  This is what POSIX requires.
78859         * posix/testfnm.c: Adjust test result.
78860         * posix/globtest.sh: Adjust test result.  Add new test.
78861         * posix/tst-fnmatch.input: Likewise.
78862         * posix/tst-fnmatch2.c: Add new test.
78863
78864 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
78865
78866         * elf/Makefile (check-execstack): Revert last change.  Depend on
78867         check-execstack.h.
78868         (check-execstack.h): New target.
78869         (generated): Add check-execstack.h.
78870         * elf/check-execstack.c: Include "check-execstack.h".
78871         (main): Revert last change.
78872         (handle_file): Return zero if GNU_STACK is absent and
78873         DEFAULT_STACK_PERMS doesn't include PF_X.
78874
78875 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
78876
78877         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
78878         in child fails because the descriptor is already closed.
78879         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
78880         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
78881         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
78882
78883         [BZ #12397]
78884         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
78885         syscall.
78886
78887         [BZ #10484]
78888         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
78889         temporary buffer used to handle multi lookups locally.
78890         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
78891
78892 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
78893
78894         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
78895         loader is ld.so.
78896
78897 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
78898
78899         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
78900         alignment for SSE2.
78901
78902 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
78903
78904         [BZ #12394]
78905         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
78906         characters.  When rounding increased number of integer digits recompute
78907         number of groups.
78908         * stdio-common/tst-grouping.c: New file.
78909         * stdio-common/Makefile: Add rules to build and run tst-grouping.
78910
78911 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
78912
78913         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
78914         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
78915
78916         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
78917         void.
78918         * bits/select.h: Likewise.
78919
78920 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
78921
78922         * po/ja.po: Update from translation team.
78923
78924 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
78925
78926         [BZ #11155]
78927         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
78928         implementation just like for lxstat, fxstatat, et al.
78929
78930 2010-12-27  Jim Meyering  <meyering@redhat.com>
78931
78932         [BZ #12348]
78933         * posix/regexec.c (build_trtable): Return failure indication upon
78934         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
78935
78936 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
78937
78938         [BZ #12201]
78939         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
78940         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
78941         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
78942         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
78943
78944         [BZ #12207]
78945         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
78946
78947         [BZ #12204]
78948         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
78949         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
78950
78951 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
78952
78953         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
78954         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
78955         script has SORT_BY_INIT_PRIORITY.
78956         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
78957         NO_CTORS_DTORS_SECTIONS is defined.
78958         * elf/soinit.c: Likewise.
78959         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
78960         NO_CTORS_DTORS_SECTIONS is defined.
78961         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
78962         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
78963         * sysdeps/sh/init-first.c: Likewise.
78964         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
78965
78966 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
78967
78968         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
78969         always use the slow path.
78970
78971 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
78972
78973         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
78974         similar rule which adds the sysdep directories to the header search in
78975         order to pick up the correct platform stackinfo.h.
78976         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
78977         perform test if it is, otherwise return successfully without testing.
78978         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
78979         DEFAULT_STACK_PERMS define in stackinfo.h.
78980         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
78981         defined in stackinfo.h.
78982         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
78983         DEFAULT_STACK_PERMS defined in stackinfo.h.
78984         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
78985         * sysdeps/ia64/stackinfo.h: Likewise.
78986         * sysdeps/s390/stackinfo.h: Likewise.
78987         * sysdeps/sh/stackinfo.h: Likewise.
78988         * sysdeps/sparc/stackinfo.h: Likewise.
78989         * sysdeps/x86_64/stackinfo.h: Likewise.
78990         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
78991         PF_X for powerpc64.  Retain PF_X for powerpc32.
78992
78993 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
78994
78995         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
78996         accurately.
78997         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
78998         GETDENTS_64BIT_ALIGNED.
78999
79000 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
79001
79002         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
79003
79004 2010-12-10  Andreas Schwab  <schwab@redhat.com>
79005
79006         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
79007         _GNU_SOURCE.
79008
79009         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
79010         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
79011         Remove __restrict.
79012         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
79013         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
79014
79015 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
79016
79017         [BZ #11655]
79018         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
79019         are initialized.
79020
79021 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
79022
79023         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
79024
79025 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
79026
79027         * po/it.po: Update from translation team.
79028
79029 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
79030
79031         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
79032         unused codes.
79033
79034 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
79035
79036         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
79037
79038 2010-11-24  Andreas Schwab  <schwab@redhat.com>
79039
79040         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
79041         specially.
79042         (gaih_getanswer_slice): Likewise.
79043
79044 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
79045
79046         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
79047
79048 2010-05-31  Petr Baudis  <pasky@suse.cz>
79049
79050         [BZ #11149]
79051         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
79052         silently even in the chroot mode.
79053
79054 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
79055
79056         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
79057         last patch a bit.  Pretty printing
79058
79059 2010-05-31  Petr Baudis <pasky@suse.cz>
79060
79061         [BZ #10085]
79062         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
79063         initialization of skip_initgroups_dyn.
79064
79065 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
79066
79067         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
79068         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
79069
79070 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
79071
79072         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
79073
79074 2010-11-11  Andreas Schwab  <schwab@redhat.com>
79075
79076         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
79077         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
79078         (tst-fnmatch-ENV): Set MALLOC_TRACE.
79079         ($(objpfx)tst-fnmatch-mem): New rule.
79080         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
79081         * posix/tst-fnmatch.c (main): Call mtrace.
79082
79083 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
79084
79085         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79086         Support Intel processor model 6 and model 0x2c.
79087
79088 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
79089
79090         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
79091           signed comparison.
79092
79093 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
79094
79095         [BZ #12205]
79096         * string/test-strncasecmp.c (check_result): New function.
79097         (do_one_test): Use it.
79098         (check1): New function.
79099         (test_main): Use it.
79100         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
79101         Support strcasecmp and strncasecmp.
79102
79103 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
79104
79105         [BZ #12194]
79106         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
79107         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79108
79109 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
79110
79111         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
79112         IFUNC support.
79113         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79114         memset-x86-64.
79115         * sysdeps/x86_64/multiarch/bzero.S: New file.
79116         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
79117         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
79118         * sysdeps/x86_64/multiarch/memset.S: New file.
79119         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
79120         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79121         Set bit_Prefer_SSE_for_memop for Intel processors.
79122         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
79123         Define.
79124         (index_Prefer_SSE_for_memop): Define.
79125         (HAS_PREFER_SSE_FOR_MEMOP): Define.
79126
79127 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
79128
79129         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
79130         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
79131
79132 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
79133
79134         [BZ #12191]
79135         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
79136         (__x86_64_raw_data_cache_size_half): Likewise.
79137         (__x86_64_raw_shared_cache_size): Likewise.
79138         (__x86_64_raw_shared_cache_size_half): Likewise.
79139
79140         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
79141         (__x86_64_raw_data_cache_size_half): Likewise.
79142         (__x86_64_raw_shared_cache_size): Likewise.
79143         (__x86_64_raw_shared_cache_size_half): Likewise.
79144         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
79145         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
79146         and __x86_64_raw_shared_cache_size_half.  Round
79147         __x86_64_data_cache_size_half, __x86_64_data_cache_size
79148         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
79149         to multiple of 256 bytes.
79150
79151 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
79152
79153         [BZ #12167]
79154         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
79155         of inacessible symlinks.  Verify result of symlink before returning it.
79156         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
79157         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
79158
79159 2010-10-28  Erich Ritz  <erichritz@gmail.com>
79160
79161         * math/math.h (isinf): Fix typo in comment.
79162
79163 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
79164
79165         * po/da.po: Update from translation team.
79166
79167 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
79168
79169         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
79170         is added to the list.
79171
79172 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79173             Ulrich Drepper  <drepper@gmail.com>
79174
79175         * elf/dl-object.c (_dl_new_object): Don't append the new object to
79176         the global list here.  Move code to...
79177         (_dl_add_to_namespace_list): ...here.  New function.
79178         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
79179         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
79180         * elf/dl-load.c (lose): Don't remove the element from the list.
79181         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
79182         (_dl_map_object): Likewise.
79183
79184 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
79185
79186         [BZ #12159]
79187         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
79188         into all bytes of SSE register.
79189         Patch by Richard Li <richardpku@gmail.com>.
79190
79191 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
79192
79193         [BZ #12140]
79194         * malloc/malloc.c (_int_free): Fill correct number of bytes when
79195         perturbing.
79196
79197 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
79198
79199         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
79200         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
79201         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
79202         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
79203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
79204         submachine.
79205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
79206
79207 2010-10-22  Andreas Schwab  <schwab@redhat.com>
79208
79209         * include/dlfcn.h (__RTLD_SECURE): Define.
79210         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
79211         mode & __RTLD_SECURE instead.
79212         (open_path): Rename preloaded parameter to secure.
79213         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
79214         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
79215         * elf/dl-deps.c (openaux): Likewise.
79216         * elf/rtld.c (struct map_args): Remove is_preloaded.
79217         (map_doit): Don't use it.
79218         (dl_main): Likewise.
79219         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
79220         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
79221
79222 2010-09-09  Andreas Schwab  <schwab@redhat.com>
79223
79224         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
79225         (sysd-rules-targets): Remove duplicates.
79226         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
79227         rtld-%.$o dependency.
79228
79229 2010-10-18  Andreas Schwab  <schwab@redhat.com>
79230
79231         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
79232         _dl_map_object do it.
79233
79234 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
79235
79236         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
79237         fast fma builtins, define the macros in the C99 standard.
79238         (FP_FAST_FMAF): Likewise.
79239         (FP_FAST_FMAL): Likewise.
79240         * sysdeps/x86_64/bits/mathdef.h: Likewise.
79241
79242         * bits/mathdef.h: Update copyright year.
79243         * sysdeps/powerpc/bits/mathdef.h: Likewise.
79244
79245 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
79246
79247         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
79248         builtins, define the macros in the C99 standard.
79249         (FP_FAST_FMAF): Likewise.
79250         (FP_FAST_FMAL): Likewise.
79251         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
79252         multiply/add.
79253         (FP_FAST_FMAF): Likewise.
79254
79255 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
79256
79257         [BZ #3268]
79258         * math/libm-test.inc (fma_test): Some new testcases.
79259         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
79260         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
79261         y and infinite z.  Do multiplication by C already in long double.
79262         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
79263         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
79264         y and infinite z.  Do bitwise or of inexact bit into u.d.
79265         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
79266         * sysdeps/i386/fpu/s_fmaf.S: Removed.
79267         * sysdeps/i386/fpu/s_fma.S: Removed.
79268         * sysdeps/i386/fpu/s_fmal.S: Removed.
79269
79270 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
79271
79272         [BZ #3268]
79273         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
79274         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
79275         computation is not scheduled after fetestexcept.  Fix value
79276         of minimum denormal long double.
79277
79278 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
79279
79280         [BZ #3268]
79281         * math/libm-test.inc (fma_test): Add some more tests.
79282         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
79283         correctly.
79284
79285 2010-10-15  Andreas Schwab  <schwab@redhat.com>
79286
79287         * scripts/data/localplt-s390-linux-gnu.data: New file.
79288         * scripts/data/localplt-s390x-linux-gnu.data: New file.
79289
79290 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
79291
79292         [BZ #3268]
79293         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
79294         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
79295         instead of dbl-64.
79296         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
79297         inlines.
79298         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
79299         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
79300         if one of x and y is very large and the other is subnormal.
79301         * sysdeps/s390/fpu/s_fmaf.c: New file.
79302         * sysdeps/s390/fpu/s_fma.c: New file.
79303         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
79304         * sysdeps/powerpc/fpu/s_fma.S: New file.
79305         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
79306         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
79307         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
79308
79309 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
79310
79311         [BZ #3268]
79312         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
79313         fma tests.
79314         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
79315         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
79316         * sysdeps/i386/i686/multiarch/s_fma.c: Include
79317         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
79318         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
79319         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
79320         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
79321
79322 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
79323
79324         [BZ #12078]
79325         * posix/regcomp.c (parse_branch): One more memory leak plugged.
79326         * posix/bug-regex31.input: Add test case.
79327
79328 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
79329
79330         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
79331         * posix/bug-regex31.input: New file.
79332
79333         [BZ #12078]
79334         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
79335         (parse_sub_exp): Fix last change, use postorder.
79336
79337         * posix/bug-regex31.c: New file.
79338         * posix/Makefile: Add rules to build and run bug-regex31.
79339
79340         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
79341
79342         [BZ #12078]
79343         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
79344
79345         [BZ #12108]
79346         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
79347         to have entries in sys_siglist.
79348
79349         [BZ #12093]
79350         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
79351         be NULL.
79352
79353 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
79354
79355         [BZ #3268]
79356         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
79357         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
79358         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
79359         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
79360         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
79361         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
79362         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
79363         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
79364         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
79365         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
79366         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
79367         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
79368         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
79369         * math/ftestexcept.c (fetestexcept): Likewise.
79370         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
79371         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
79372         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
79373         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
79374         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
79375         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
79376         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
79377
79378 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
79379
79380         [BZ #12107]
79381         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
79382         newline.
79383
79384 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
79385
79386         * string/bug-strstr1.c: New file.
79387         * string/Makefile: Add rules to build and run bug-strstr1.
79388
79389 2010-10-05  Eric Blake  <eblake@redhat.com>
79390
79391         [BZ #12092]
79392         * string/str-two-way.h (two_way_long_needle): Always clear memory
79393         when skipping input due to the shift table.
79394
79395 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
79396
79397         [BZ #12005]
79398         * malloc/mcheck.c: Handle large requests.
79399
79400         [BZ #12077]
79401         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
79402         for strncmp and strncasecmp.
79403         * string/stratcliff.c: Add tests for strcmp and strncmp.
79404         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
79405
79406 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79407
79408         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
79409         __set_fpscr.
79410
79411 2010-09-30  Andreas Jaeger  <aj@suse.de>
79412
79413         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
79414         (CGROUP_SUPER_MAGIC): Define.
79415         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
79416         Handle btrfs and cgroup file systems.
79417         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
79418         Likewise.
79419
79420 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
79421
79422         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
79423         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
79424
79425 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79426
79427         [BZ #12067]
79428         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
79429         trying to locate the ELF header.
79430
79431 2010-09-27  Andreas Schwab  <schwab@redhat.com>
79432
79433         [BZ #11611]
79434         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
79435         Mask out sign-bit copies when constructing f_fsid.
79436
79437 2010-09-24  Petr Baudis <pasky@suse.cz>
79438
79439         * debug/stack_chk_fail_local.c: Add missing licence exception.
79440         * debug/warning-nop.c: Likewise.
79441
79442 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
79443
79444         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
79445         implementing getdents64 using getdents syscall, set d_type if
79446         __ASSUME_GETDENTS32_D_TYPE.
79447
79448 2010-09-16  Andreas Schwab  <schwab@redhat.com>
79449
79450         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
79451         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
79452
79453 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
79454
79455         [BZ #12037]
79456         * posix/unistd.h: Undo change of feature selection for ftruncate from
79457         2010-01-11.
79458
79459 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
79460
79461         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
79462         detection.
79463
79464 2010-09-20  Andreas Schwab  <schwab@redhat.com>
79465
79466         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
79467         fanotify_mark.
79468         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
79469
79470 2010-09-14  Andreas Schwab  <schwab@redhat.com>
79471
79472         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
79473         variables after CHECK_SP call.
79474         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
79475
79476 2010-09-13  Andreas Schwab  <schwab@redhat.com>
79477             Ulrich Drepper  <drepper@redhat.com>
79478
79479         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
79480         re-relocationg ld.so.
79481         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
79482         _dl_init_paths call.
79483         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
79484         here anymore.
79485
79486 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
79487
79488         * resolv/res_init.c (__res_vinit): Count the default server we added.
79489
79490 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
79491             Ulrich Drepper  <drepper@redhat.com>
79492
79493         [BZ #11968]
79494         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
79495         (____longjmp_chk): Use %ebx for saving value across system call.
79496         Add unwind info.
79497
79498 2010-09-06  Andreas Schwab  <schwab@redhat.com>
79499
79500         * manual/Makefile: Don't mix pattern rules with normal rules.
79501
79502 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
79503
79504         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
79505         operation.
79506         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
79507         * libio/iofopncook.c (_IO_cookie_init): Likewise.
79508         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
79509         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
79510         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
79511         Likewise.
79512
79513 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
79514
79515         [BZ #11979]
79516         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
79517         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
79518
79519 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
79520
79521         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
79522         * sysdeps/x86_64/addmul_1.S: Likewise.
79523         * sysdeps/x86_64/lshift.S: Likewise.
79524         * sysdeps/x86_64/mul_1.S: Likewise.
79525         * sysdeps/x86_64/rshift.S: Likewise.
79526         * sysdeps/x86_64/sub_n.S: Likewise.
79527         * sysdeps/x86_64/submul_1.S: Likewise.
79528
79529 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
79530
79531         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
79532         Define __sched_param instead of SCHED_* and sched_param when
79533         <bits/sched.h> is included with __need_schedparam defined.
79534         * bits/sched.h [__need_schedparam]
79535         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
79536         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
79537         (__defined_schedparam): Define to 1.
79538         (__sched_param): New structure, identical to sched_param.
79539         (__need_schedparam): Undefine.
79540
79541 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
79542
79543         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
79544         (epoll_create1): Declare.
79545
79546         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
79547
79548 2010-08-31  Andreas Schwab  <schwab@redhat.com>
79549
79550         [BZ #7066]
79551         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
79552         shifting retval into place.
79553
79554 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
79555
79556         * nis/rpcsvc/nis.h: Update copyright notice.
79557         * nis/rpcsvc/nis.x: Likewise.
79558         * nis/rpcsvc/nis_callback.h: Likewise.
79559         * nis/rpcsvc/nis_callback.x: Likewise.
79560         * nis/rpcsvc/nis_object.x: Likewise.
79561         * nis/rpcsvc/nis_tags.h: Likewise.
79562         * nis/rpcsvc/yp.h: Likewise.
79563         * nis/rpcsvc/yp.x: Likewise.
79564         * nis/rpcsvc/ypupd.h: Likewise.
79565         * nis/yp_xdr.c: Likewise.
79566         * nis/ypupdate_xdr.c: Likewise.
79567
79568         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
79569         mainly the body of pmap_getport.  Add parameters to specify timeouts.
79570         (pmap_getport): Use __libc_rpc_getport.
79571         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
79572         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
79573         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
79574
79575 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
79576
79577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
79578         fanotify_mark.
79579
79580 2010-08-27  Roland McGrath  <roland@redhat.com>
79581
79582         * sysdeps/i386/i686/multiarch/Makefile
79583         (CFLAGS-varshift.c): New variable.
79584
79585 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
79586
79587         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
79588         * sysdeps/i386/i686/multiarch/varshift.c: New file.
79589
79590         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
79591
79592         * sysdeps/x86_64/strlen.S: Minimal code improvement.
79593
79594 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
79595
79596         * sysdeps/x86_64/strlen.S: Unroll the loop.
79597         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79598         strlen-sse2 strlen-sse2-bsf.
79599         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
79600         __strlen_no_bsf if bit_Slow_BSF is set.
79601         (__strlen_sse42): Removed.
79602         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
79603         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
79604
79605 2010-08-25  Roland McGrath  <roland@redhat.com>
79606
79607         * sysdeps/x86_64/multiarch/varshift.S: File removed.
79608         * sysdeps/x86_64/multiarch/varshift.c: New file.
79609         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
79610         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
79611         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
79612         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
79613
79614 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
79615
79616         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79617         strlen-sse2 strlen-sse2-bsf.
79618         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
79619         __strlen_sse2_bsf if bit_Slow_BSF is unset.
79620         (__strlen_sse2): Removed.
79621         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
79622         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
79623         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
79624         bit_Slow_BSF for Atom.
79625         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
79626         (index_Slow_BSF): Define.
79627         (HAS_SLOW_BSF): Define.
79628
79629 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
79630
79631         [BZ #10851]
79632         * resolv/res_init.c (__res_vinit): When no server address at all
79633         is given default to loopback.
79634
79635 2010-08-24  Roland McGrath  <roland@redhat.com>
79636
79637         * configure.in: Remove config-name.h generation.
79638         * configure: Regenerated.
79639         * config-name.in: File removed.
79640         * scripts/config-uname.sh: New file.
79641         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
79642         ($(objdir)config-name.h): New target.
79643
79644         * sunrpc/rpc_parse.h: Avoid nested comment.
79645
79646 2010-08-24  Richard Henderson  <rth@redhat.com>
79647             Ulrich Drepper  <drepper@redhat.com>
79648             H.J. Lu  <hongjiu.lu@intel.com>
79649
79650         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
79651         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
79652         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
79653         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
79654         _mm_alignr_epi8 with _mm_loadu_si128.
79655         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
79656         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
79657         (__m128i_shift_right): Removed.
79658         * sysdeps/i386/i686/multiarch/varshift.h: New file.
79659         * sysdeps/i386/i686/multiarch/varshift.S: New file.
79660         * sysdeps/x86_64/multiarch/varshift.h: New file.
79661         * sysdeps/x86_64/multiarch/varshift.S: New file.
79662
79663 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
79664
79665         * configure.in: Move assembler checks to before sysdep dir checking.
79666
79667 2010-08-20  Petr Baudis  <pasky@suse.cz>
79668
79669         * LICENSES: Sync the sunrpc license.
79670
79671 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
79672
79673         * sunrpc/auth_des.c: Update copyright notice once again.
79674         * sunrpc/auth_none.c: Likewise.
79675         * sunrpc/auth_unix.c: Likewise.
79676         * sunrpc/authdes_prot.c: Likewise.
79677         * sunrpc/authuxprot.c: Likewise.
79678         * sunrpc/bindrsvprt.c: Likewise.
79679         * sunrpc/clnt_gen.c: Likewise.
79680         * sunrpc/clnt_perr.c: Likewise.
79681         * sunrpc/clnt_raw.c: Likewise.
79682         * sunrpc/clnt_simp.c: Likewise.
79683         * sunrpc/clnt_tcp.c: Likewise.
79684         * sunrpc/clnt_udp.c: Likewise.
79685         * sunrpc/clnt_unix.c: Likewise.
79686         * sunrpc/des_crypt.c: Likewise.
79687         * sunrpc/des_soft.c: Likewise.
79688         * sunrpc/get_myaddr.c: Likewise.
79689         * sunrpc/getrpcport.c: Likewise.
79690         * sunrpc/key_call.c: Likewise.
79691         * sunrpc/key_prot.c: Likewise.
79692         * sunrpc/openchild.c: Likewise.
79693         * sunrpc/pm_getmaps.c: Likewise.
79694         * sunrpc/pm_getport.c: Likewise.
79695         * sunrpc/pmap_clnt.c: Likewise.
79696         * sunrpc/pmap_prot.c: Likewise.
79697         * sunrpc/pmap_prot2.c: Likewise.
79698         * sunrpc/pmap_rmt.c: Likewise.
79699         * sunrpc/rpc/auth.h: Likewise.
79700         * sunrpc/rpc/auth_unix.h: Likewise.
79701         * sunrpc/rpc/clnt.h: Likewise.
79702         * sunrpc/rpc/des_crypt.h: Likewise.
79703         * sunrpc/rpc/key_prot.h: Likewise.
79704         * sunrpc/rpc/netdb.h: Likewise.
79705         * sunrpc/rpc/pmap_clnt.h: Likewise.
79706         * sunrpc/rpc/pmap_prot.h: Likewise.
79707         * sunrpc/rpc/pmap_rmt.h: Likewise.
79708         * sunrpc/rpc/rpc.h: Likewise.
79709         * sunrpc/rpc/rpc_des.h: Likewise.
79710         * sunrpc/rpc/rpc_msg.h: Likewise.
79711         * sunrpc/rpc/svc.h: Likewise.
79712         * sunrpc/rpc/svc_auth.h: Likewise.
79713         * sunrpc/rpc/types.h: Likewise.
79714         * sunrpc/rpc/xdr.h: Likewise.
79715         * sunrpc/rpc_clntout.c: Likewise.
79716         * sunrpc/rpc_cmsg.c: Likewise.
79717         * sunrpc/rpc_common.c: Likewise.
79718         * sunrpc/rpc_cout.c: Likewise.
79719         * sunrpc/rpc_dtable.c: Likewise.
79720         * sunrpc/rpc_hout.c: Likewise.
79721         * sunrpc/rpc_main.c: Likewise.
79722         * sunrpc/rpc_parse.c: Likewise.
79723         * sunrpc/rpc_parse.h: Likewise.
79724         * sunrpc/rpc_prot.c: Likewise.
79725         * sunrpc/rpc_sample.c: Likewise.
79726         * sunrpc/rpc_scan.c: Likewise.
79727         * sunrpc/rpc_scan.h: Likewise.
79728         * sunrpc/rpc_svcout.c: Likewise.
79729         * sunrpc/rpc_tblout.c: Likewise.
79730         * sunrpc/rpc_util.c: Likewise.
79731         * sunrpc/rpc_util.h: Likewise.
79732         * sunrpc/rpcinfo.c: Likewise.
79733         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
79734         * sunrpc/rpcsvc/key_prot.x: Likewise.
79735         * sunrpc/rpcsvc/klm_prot.x: Likewise.
79736         * sunrpc/rpcsvc/mount.x: Likewise.
79737         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
79738         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
79739         * sunrpc/rpcsvc/rex.x: Likewise.
79740         * sunrpc/rpcsvc/rstat.x: Likewise.
79741         * sunrpc/rpcsvc/rusers.x: Likewise.
79742         * sunrpc/rpcsvc/sm_inter.x: Likewise.
79743         * sunrpc/rpcsvc/spray.x: Likewise.
79744         * sunrpc/rpcsvc/yppasswd.x: Likewise.
79745         * sunrpc/rtime.c: Likewise.
79746         * sunrpc/svc.c: Likewise.
79747         * sunrpc/svc_auth.c: Likewise.
79748         * sunrpc/svc_authux.c: Likewise.
79749         * sunrpc/svc_raw.c: Likewise.
79750         * sunrpc/svc_run.c: Likewise.
79751         * sunrpc/svc_simple.c: Likewise.
79752         * sunrpc/svc_tcp.c: Likewise.
79753         * sunrpc/svc_udp.c: Likewise.
79754         * sunrpc/svc_unix.c: Likewise.
79755         * sunrpc/svcauth_des.c: Likewise.
79756         * sunrpc/xcrypt.c: Likewise.
79757         * sunrpc/xdr.c: Likewise.
79758         * sunrpc/xdr_array.c: Likewise.
79759         * sunrpc/xdr_float.c: Likewise.
79760         * sunrpc/xdr_mem.c: Likewise.
79761         * sunrpc/xdr_rec.c: Likewise.
79762         * sunrpc/xdr_ref.c: Likewise.
79763         * sunrpc/xdr_sizeof.c: Likewise.
79764         * sunrpc/xdr_stdio.c: Likewise.
79765
79766         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
79767         handling.
79768
79769 2010-08-19  Andreas Schwab  <schwab@redhat.com>
79770
79771         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
79772
79773 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
79774
79775         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
79776         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
79777         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
79778         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
79779         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
79780         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
79781         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
79782         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
79783         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
79784         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
79785         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
79786         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
79787         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
79788         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
79789
79790 2010-07-26  Anton Blanchard  <anton@samba.org>
79791
79792         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
79793         * malloc/arena.c (heap_trim): Likewise.
79794
79795 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
79796
79797         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
79798         here.  Not...
79799         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
79800         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
79801
79802 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
79803
79804         * sysdeps/i386/elf/Makefile: New file.
79805
79806 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
79807
79808         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
79809         from fanotify_init.
79810         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
79811         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
79812
79813 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
79814
79815         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
79816         of strncasecmp_l.
79817         * sysdeps/multiarch/strcmp.S: Likewise.
79818
79819 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
79820
79821         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
79822         strncase_l-nonascii.
79823         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
79824         Add strncase_l-ssse3.
79825         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
79826         * sysdeps/x86_64/strcmp.S: Likewise.
79827         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
79828         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
79829         * sysdeps/x86_64/strncase.S: New file.
79830         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
79831         * sysdeps/x86_64/strncase_l.S: New file.
79832         * string/Makefile (strop-tests): Add strncasecmp.
79833         * string/test-strncasecmp.c: New file.
79834
79835         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
79836         warning.
79837
79838         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
79839         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
79840
79841 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
79842
79843         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
79844
79845 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
79846
79847         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
79848         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
79849         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
79850
79851 2010-05-01  Alan Modra  <amodra@gmail.com>
79852
79853         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
79854         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
79855         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
79856         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
79857         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
79858         tidying.  Don't tail-call __sigjmp_save for static lib.
79859         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
79860         save location.
79861         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
79862         (CALL_MCOUNT): Add eh info, and nop after bl.
79863         (TAIL_CALL_SYSCALL_ERROR): New macro.
79864         (PSEUDO_RET): Use it.
79865         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
79866         Correct save location of integer regs and cr.
79867         (_dl_profile_resolve): Correct cr save location.  Delete nops
79868         after bl when SHARED.  Reduce cfi size a little by better
79869         placement of cfi directives.
79870         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
79871         make a stack frame.  Instead use parm save area as a temp.
79872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
79873         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
79874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
79875         Don't make a stack frame for parent, use parm save area.
79876         Increase child stack frame to 112 bytes.  Don't save unused reg,
79877         and adjust reg usage.  Set up cfi on error recovery and
79878         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
79879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
79880         (__makecontext): Add dummy nop after jump to exit.
79881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
79882         Use correct parm save area and cr save, reduce stack frame.
79883         Correct cfi for possible PSEUDO_RET frame setup.
79884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
79885         Branch to local label emitted by PSEUDO_RET rather than
79886         __syscall_error.
79887
79888 2010-08-12  Andreas Schwab  <schwab@redhat.com>
79889
79890         [BZ #11904]
79891         * locale/programs/locale.c (print_assignment): New function.
79892         (show_locale_vars): Use it.
79893
79894 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
79895
79896         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
79897         field.
79898         (struct statfs64): Likewise.
79899         (_STATFS_F_FLAGS): Define.
79900         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
79901         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
79902         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
79903         (ST_VALID): Define locally.
79904         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
79905         __statvfs_getflags, use the provided value.
79906         * sysdeps/unix/sysv/linux/kernel-features.h: Define
79907         __ASSUME_STATFS_F_FLAGS.
79908
79909         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
79910
79911         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
79912         Add sys/fanotify.h.
79913         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
79914         fanotify_mask for GLIBC_2.13.
79915         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
79916         fanotify_init and fanotify_mark.
79917         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
79918         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
79919
79920         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
79921         Add prlimit.
79922         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
79923         prlimit64 for GLIBC_2.13.
79924         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
79925         prlimit64.
79926         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
79927         syscall.
79928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
79929         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
79930         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
79931         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
79932         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
79933         add prlimit alias.
79934         * sysdeps/unix/sysv/linux/prlimit.c: New file.
79935
79936         [BZ #11903]
79937         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
79938         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
79939
79940         * nss/Makefile: Add rules to build and run tst-nss-test1.
79941         * shlib-versions: Add entry for libnss_test1.
79942         * nss/nss_test1.c: New file.
79943         * nss/tst-nss-test1.c: New file.
79944
79945         * nss/nsswitch.c (__nss_database_custom): Define new variable.
79946         (__nss_configure_lookup): Set appropriate entry in
79947         __nss_configure_lookup to true.
79948         * nss/nsswitch.h: Define enum with indeces of databases in
79949         databases and __nss_database_custom arrays.  Declare
79950         __nss_database_custom.
79951         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
79952         to avoid using nscd when custom rules are installed.
79953         * nss/getXXbyYY_r.c: Likewise.
79954         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
79955
79956         * nss/nss_files/files-parse.c: Whitespace fixes.
79957
79958 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
79959
79960         [BZ #11883]
79961         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
79962         * posix/fnmatch_loop.c: Likewise.
79963
79964 2010-07-17  Andi Kleen  <ak@linux.intel.com>
79965
79966         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
79967         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
79968         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
79969         * Versions.def [GLIBC_2.13]: Add.
79970
79971 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
79972
79973         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
79974         Also fail if tpwd after pwuid call is NULL.
79975
79976 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
79977
79978         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
79979         when converting to ms.
79980
79981 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
79982
79983         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
79984         EOPNOTSUPP errors with ENOTTY.
79985         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
79986         EOPNOTSUPP errors with ENOTTY.
79987
79988 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
79989
79990         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
79991         Add strcasecmp_l-ssse3.
79992         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
79993         strcasecmp.
79994         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
79995         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
79996         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
79997
79998 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
79999
80000         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
80001
80002         * string/Makefile (strop-tests): Add strcasecmp.
80003         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
80004         strcasecmp_l-nonascii.
80005         (gen-as-const-headers): Add locale-defines.sym.
80006         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
80007         * sysdeps/x86_64/strcasecmp.S: New file.
80008         * sysdeps/x86_64/strcasecmp_l.S: New file.
80009         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
80010         * sysdeps/x86_64/locale-defines.sym: New file.
80011         * string/test-strcasecmp.c: New file.
80012
80013         * string/test-strcasestr.c: Test both ends of the range of characters.
80014         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
80015
80016 2010-07-29  Roland McGrath  <roland@redhat.com>
80017
80018         [BZ #11856]
80019         * manual/locale.texi (Yes-or-No Questions): Fix example code.
80020
80021 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
80022
80023         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
80024         for ld.so.
80025
80026 2010-07-27  Andreas Schwab  <schwab@redhat.com>
80027
80028         * manual/memory.texi (Malloc Tunable Parameters): Document
80029         M_PERTURB.
80030
80031 2010-07-26  Roland McGrath  <roland@redhat.com>
80032
80033         [BZ #11840]
80034         * configure.in (-fgnu89-inline check): Set and substitute
80035         gnu89_inline, not libc_cv_gnu89_inline.
80036         * configure: Regenerated.
80037         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
80038
80039 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
80040
80041         * string/test-strnlen.c: New file.
80042         * string/Makefile (strop-tests): Add strnlen.
80043         * string/tester.c (test_strnlen): Add a few more test cases.
80044         * string/tst-strlen.c: Better error reporting.
80045
80046         * sysdeps/x86_64/strnlen.S: New file.
80047
80048 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
80049
80050         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
80051         lower-latency instructions.
80052
80053 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
80054
80055         * string/test-strcasestr.c: New file.
80056         * string/test-strstr.c: New file.
80057         * string/Makefile (strop-tests): Add strstr and strcasestr.
80058         * string/str-two-way.h: Don't undefine MAX.
80059         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
80060
80061 2010-07-21  Andreas Schwab  <schwab@redhat.com>
80062
80063         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80064         strcasestr-nonascii.
80065         (CFLAGS-strcasestr-nonascii.c): Define.
80066         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
80067         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
80068         Remove unused attribute.
80069
80070 2010-07-20  Roland McGrath  <roland@redhat.com>
80071
80072         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
80073         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
80074         ld.so.cache was broken.  With it, there is no way to disable dsocaps
80075         like LD_HWCAP_MASK can disable hwcaps.
80076
80077 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
80078
80079         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
80080
80081 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
80082
80083         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
80084         call in strcasestr.
80085         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
80086         __strcasestr_sse42_nonascii.
80087         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
80088         strcasestr-nonascii.c.
80089         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
80090
80091 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
80092
80093         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
80094         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
80095         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
80096         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
80097
80098 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
80099
80100         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
80101         fcntl.
80102
80103 2010-07-06  Andreas Schwab  <schwab@redhat.com>
80104
80105         [BZ #11577]
80106         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
80107         dl_signal_cerror.
80108
80109 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
80110
80111         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
80112         _PC_PIPE_BUF using F_GETPIPE_SZ.
80113
80114 2010-07-05  Roland McGrath  <roland@redhat.com>
80115
80116         * manual/arith.texi (Rounding Functions): Fix rint description
80117         implicit in round description.
80118
80119 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
80120
80121         * elf/Makefile: Fix linking for a few tests to make recent linker
80122         happy.
80123
80124 2010-06-30  Andreas Schwab  <schwab@redhat.com>
80125
80126         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
80127         $(common-objpfx)libc_nonshared.a.
80128
80129 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
80130
80131         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
80132         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
80133         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
80134         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
80135         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
80136         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
80137         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
80138         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
80139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
80140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
80141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
80142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
80143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
80144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
80145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
80146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
80147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
80148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
80149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
80150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
80151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
80152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
80153         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
80154         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
80155         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
80156         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
80157         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
80158         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
80159         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
80160         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
80161         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
80162         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
80163         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
80164         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
80165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
80166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
80167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
80168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
80169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
80170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
80171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
80172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
80173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
80174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
80175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
80176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
80177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
80178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
80179
80180 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
80181
80182         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
80183         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
80184         * string/memmove.c (memmove): Renamed to ...
80185         (MEMMOVE): ...this.  Default to memmove.
80186         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
80187         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
80188         (END_CHK): Define.
80189         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80190         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
80191         mempcpy-ssse3-back memmove-ssse3-back.
80192         * sysdeps/x86_64/multiarch/bcopy.S: New file .
80193         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
80194         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
80195         * sysdeps/x86_64/multiarch/memcpy.S: New file.
80196         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
80197         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
80198         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
80199         * sysdeps/x86_64/multiarch/memmove.c: New file.
80200         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
80201         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
80202         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
80203         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
80204         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
80205         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
80206         Define.
80207         (index_Fast_Copy_Backward): Define.
80208         (HAS_ARCH_FEATURE): Define.
80209         (HAS_FAST_REP_STRING): Define.
80210         (HAS_FAST_COPY_BACKWARD): Define.
80211
80212 2010-06-21  Andreas Schwab  <schwab@redhat.com>
80213
80214         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
80215         Restore proper fallback handling.
80216
80217 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
80218
80219         [BZ #11701]
80220         * posix/group_member.c (__group_member): Correct checking loop.
80221
80222         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
80223         OOM in getpwuid_r correctly.  Return error number when the caller
80224         should return, otherwise -1.
80225         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
80226         call returning > 0 value.
80227         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
80228
80229 2010-06-07  Andreas Schwab  <schwab@redhat.com>
80230
80231         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
80232         libc_nonshared.a from targets in modules-names.
80233
80234 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
80235
80236         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
80237         requires it.
80238
80239 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
80240
80241         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
80242         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
80243         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
80244         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
80245
80246 2010-06-02  Andreas Schwab  <schwab@redhat.com>
80247
80248         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
80249
80250 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
80251
80252         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
80253         and F_GETPIPE_SZ.
80254         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
80255         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
80256         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
80257         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
80258         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
80259         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
80260
80261 2010-06-14  Roland McGrath  <roland@redhat.com>
80262
80263         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
80264
80265 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
80266
80267         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
80268         __REDIRECT followed by __THROW.
80269         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
80270         * posix/getopt.h (getopt): Likewise.
80271
80272 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
80273
80274         * hurd/lookup-at.c (__file_name_lookup_at): Accept
80275         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
80276         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
80277         in AT_FLAGS.
80278         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
80279         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
80280
80281 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
80282
80283         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
80284
80285 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
80286
80287         [BZ #11640]
80288         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80289         Properly check family and model.
80290
80291 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
80292
80293         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
80294
80295 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
80296
80297         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
80298
80299 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
80300
80301         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
80302         symbol reference.
80303
80304 2010-05-19  Andreas Schwab  <schwab@redhat.com>
80305
80306         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
80307         symbol reference.
80308
80309 2010-05-21  Andreas Schwab  <schwab@redhat.com>
80310
80311         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
80312         and internal_recvmmsg.
80313         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
80314         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
80315         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
80316         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
80317
80318         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
80319         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
80320         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
80321
80322 2010-05-20  Andreas Schwab  <schwab@redhat.com>
80323
80324         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
80325
80326 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
80327
80328         POWER7 optimizations.
80329         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
80330         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
80331
80332 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
80333
80334         * version.h: Update for 2.13 development version.
80335
80336 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
80337
80338         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
80339         exceptions.  Return 0.
80340
80341 2010-05-07  Roland McGrath  <roland@redhat.com>
80342
80343         * elf/ldconfig.c (main): Add a const.
80344
80345 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
80346
80347         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
80348         (args_options): Add no-idn option.
80349         (ahosts_keys_int): Add idn_flags to ai_flags.
80350         (parse_option): Handle 'i' option to clear idn_flags.
80351
80352         * malloc/malloc.c (_int_free): Possible race in the most recently
80353         added check.  Only act on the data if no current modification
80354         happened.
80355
80356 See ChangeLog.17 for earlier changes.