Update libc.pot in preparation for giving tarball to translation project.
[jlayton/glibc.git] / ChangeLog
1 2012-12-07  David S. Miller  <davem@davemloft.net>
2
3         * po/libc.pot: Update.
4
5 2012-12-07  Richard Henderson  <rth@redhat.com>
6
7         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
8         normal/normal case to before the switch.
9         (_FP_DIV): Likewise.
10
11 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
12             Mike Frysinger  <vapier@gentoo.org>
13
14         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15         check for __NR_fadvise64_64.
16
17 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
18
19         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
20         0, not just to plain "0" as a statement.
21         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
22         with cw.
23
24 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
25
26         * NEWS: Use sourceware.org in Bugzilla URL.
27
28 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
29
30         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
31         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
32
33         * stdio-common/tst-put-error.c (do_test): Add newline to the
34         padded test to ensure flush.
35
36 2012-12-05  Jeff Law  <law@redhat.com>
37
38         * sunrpc/etc.rpc (fedfs_admin): Add entry.
39
40 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
41
42         * README: Don't refer to ports add-on as distributed separately.
43         Mention AArch64 in list of systems supported in the ports add-on.
44
45         * LICENSES: Add more non-FSF copyright and license notices.
46
47         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
48         ((unused)).
49
50         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
51
52         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53         10000 as width of padded output.
54
55 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
56
57         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
58
59         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
60         variable LX with __attribute__ ((unused)).
61         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
62         Likewise.
63         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
64         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
65         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
66         with __attribute__ ((unused)).
67
68 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
69
70         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
71
72 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
73
74         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
75         (CFLAGS-nldbl-acos.c): New variable.
76         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
77         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
78         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
79         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
80         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
81         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
82         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
83         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
84         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
85         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
86         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
87         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
88         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
89         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
90         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
91         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
92         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
93         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
94         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
95         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
96         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
97         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
98         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
99         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
100         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
101         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
102         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
103         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
104         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
105         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
106         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
107         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
108         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
109         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
110         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
111         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
112         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
113         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
114         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
115         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
116         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
117         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
118         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
119         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
120         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
121         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
122         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
123         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
124         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
125         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
126         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
127         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
128         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
129         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
130         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
131         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
132         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
133         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
134         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
135         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
136         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
137         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
138         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
139         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
140         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
141         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
142         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
143         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
144         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
145         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
146         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
147         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
148         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
149         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
150         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
151         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
152         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
153         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
154         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
155         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
156         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
157         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
158         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
159         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
160         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
161         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
162         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
163         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
164         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
165         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
166         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
167         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
168         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
169         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
170         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
171         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
172         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
173
174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
175         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
176
177         [BZ #14914]
178         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
179         whole low double instead of just low 47 bits when splitting values
180         into two parts.
181
182 2012-12-03  Allan McRae  <allan@archlinux.org>
183
184         * manual/stdio.texi (Predefined Printf Handlers): Remove
185         @hsep and @vsep usage.
186
187 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
188
189         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
190         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
191
192 2012-12-03  Jeff Law  <law@redhat.com>
193
194         * time/sys/time.h (settimeofday): Do not mark TV argument
195         as __nonnull.
196
197 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
198
199         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
200         when currently writing and seek to current position when not.
201         * libio/Makefile (tests): Remove bug-fclose1.
202         * libio/bug-fclose1.c: Delete.
203
204 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
205
206         * manual/arith.texi (feenableexcept): Fix typo.
207         (fedisableexcept): Likewise.
208
209 2012-11-30  Roland McGrath  <roland@hack.frob.com>
210
211         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
212         second, differently-typed declaration, rather than a cast.
213
214 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
215
216         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
217         * include/rpc/svc.h: ... here.
218
219 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
220
221         [BZ #13013]
222         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
223         depending n and resplen2 to catch cases where answer
224         equals answerp2.
225
226 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
227
228         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
229         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
230
231 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
232
233         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
234
235 2012-11-29  Roland McGrath  <roland@hack.frob.com>
236
237         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
238
239 2012-11-28  Jeff Law  <law@redhat.com>
240
241         [BZ #13761]
242         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
243         dataset_temporary.  Track alloca usage into alloca_used.
244         If dataset is large allocate and release it via malloc/free.
245
246 2012-06-04  Florian Weimer  <fweimer@redhat.com>
247
248         [BZ #14197]
249         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
250
251 2012-11-28  David S. Miller  <davem@davemloft.net>
252
253         * sysdeps/sparc/fpu/libm-test-ulps: Update.
254
255 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
256
257         [BZ #14803]
258         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
259         of pi/2 rounded to nearest to 64 bits.
260         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
261         nearest to 64 bits.
262         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
263         bits.
264
265 2012-11-28  Jeff Law <law@redhat.com>
266             Martin Osvald <mosvald@redhat.com>
267
268         [BZ #14889]
269         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
270         * sunrpc/svc.c: Include time.h.
271         (__svc_accept_failed): New function.
272         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
273         any reason other than EINTR, call __svc_accept_failed.
274         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
275         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
276
277 2012-11-28  Andreas Schwab  <schwab@suse.de>
278
279         * scripts/abilist.awk: Also handle indirect functions in .opd
280         section.
281
282 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
283
284         [BZ #13881]
285         * sysdeps/x86/fpu/powl_helper.c: New file.
286         * sysdeps/x86/fpu/Makefile: Likewise.
287         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
288         (p3): New object.
289         (__ieee754_powl): Use __powl_helper for finite arguments except
290         integer exponents below 8.
291         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
292         (p3): New object.
293         (__ieee754_powl): Use __powl_helper for finite arguments except
294         integer exponents below 8.
295         * math/libm-test.inc (pow_test): Add more tests and enable some
296         previously disabled tests.
297         * sysdeps/i386/fpu/libm-test-ulps: Update.
298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
299
300 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
301             Carlos O'Donell  <carlos_odonell@mentor.com>
302
303         * nss/makedb.c (is_prime): Assert that input is odd and greater
304         than 4.  Note that fact in a comment too.
305         (next_prime): Add 4 to input.
306
307 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
308
309         [BZ #11741]
310         * libio/Makefile (tests): Add test case tst-fwrite-error.
311         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
312         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
313         * libio/tst-fwrite-error.c: New test case.
314
315 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
316
317         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
318         before casting to void *.
319         * include/libc-internal.h (__pointer_type): New macro.
320         (__integer_if_pointer_type_sub): Likewise.
321         (__integer_if_pointer_type): Likewise.
322         (cast_to_integer): Likewise.
323         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
324         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
325         before casting to atomic64_t.
326         (atomic_exchange_acq): Likewise.
327         (__arch_exchange_and_add_body): Likewise.
328         (__arch_add_body): Likewise.
329         (atomic_add_negative): Likewise.
330         (atomic_add_zero): Likewise.
331
332 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
333
334         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
335         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
336         (add_fdes): Likewise.
337         (linear_search_fdes): Likewise.
338         (binary_search_unencoded_fdes): Likewise.
339
340 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
341
342         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
343
344 2012-11-24  Adam Conrad  <adconrad@0c3.net>
345
346         * configure.in: Autodetect C++ header directories.
347         * configure: Regenerated.
348
349 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
350
351         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
352
353 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
354
355         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
356
357 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
358
359         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
360         LDBL_MANT_DIG == 106]: Disable some tests.
361         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
362         Likewise.
363         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
364         Likewise.
365
366         [BZ #14871]
367         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
368         input for small inputs.  Return +/- pi/2 for large inputs.
369         * math/libm-test.inc (atan_test): Add more tests.
370
371         * sysdeps/generic/unwind-dw2-fde-glibc.c
372         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
373         __attribute__ ((unused)).
374
375         [BZ #14645]
376         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
377         x * y if x and y are nonzero and z is zero.
378
379         [BZ #14811]
380         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
381         nonzero exponents with absolute value below 0x1p-117 to +/-
382         0x1p-117.
383
384         [BZ #14869]
385         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
386         up arguments below 2**-450, not just those below 2**-500.
387         * math/libm-test.inc (hypot_test): Add another test.
388
389         [BZ #14868]
390         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
391         Return a+b for ratio over 2**120, not 2**60.
392         * math/libm-test.inc (hypot_test): Add another test.
393
394         * math/libm-test.inc (clog_test): Use
395         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
396         (clog10_test): Likewise.
397
398         [BZ #6778]
399         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
400
401 2012-11-22  Andreas Schwab  <schwab@suse.de>
402
403         * sysdeps/i386/fpu/libm-test-ulps: Update.
404
405 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
406
407         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
408         printf output with newline.
409
410 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
411
412         [BZ #14865]
413         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
414         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
415         -z nodlopen, -z initfirst and -z execstack support.
416         * configure: Regenerated.
417
418         * elf/elf.h (DF_1_NODIRECT): New macro.
419         (DF_1_IGNMULDEF): Likewise.
420         (DF_1_NOKSYMS): Likewise.
421         (DF_1_NOHDR): Likewise.
422         (DF_1_EDITED): Likewise.
423         (DF_1_NORELOC): Likewise.
424         (DF_1_SYMINTPOSE): Likewise.
425         (DF_1_GLOBAUDIT): Likewise.
426         (DF_1_SINGLETON): Likewise.
427         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
428         DT_1_SUPPORTED_MASK bits.
429         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
430
431 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
432
433         * sysdeps/unix/make-syscalls.sh: Document prefixes.
434
435 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
436
437         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
438         macro.
439
440         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
441         (sendmmsg): Move declarations...
442         * socket/sys/socket.h: ... here.
443         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
444         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
445         include it from...
446         * socket/recvmmsg.c: ... this new file.
447         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
448         (sendmmsg): Rename to __sendmmsg, create weak alias and make
449         definition of __sendmmsg hidden.
450         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
451         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
452         Move ENOSYS stub into and include it from...
453         * socket/sendmmsg.c: ... this new file.
454         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
455         (sysdep_routines): Move recvmmsg and sendmmsg...
456         * socket/Makefile (routines): ... here.
457         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
458         (GLIBC_PRIVATE): Add __sendmmsg.
459         * include/sys/socket.h (__sendmmsg): Add declarations.
460         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
461         sendmmsg.
462
463 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
464
465         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
466         variable I1 with __attribute__ ((unused)).
467         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
468
469 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
470
471         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
472         DUMMY variables with __attribute__ ((unused)).
473
474         * bits/byteswap.h: Include <bits/types.h>.
475         (__bswap_64): Use __uint64_t instead of unsigned long long int.
476
477 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
478
479         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
480         string_t.  Do not manually set errno.
481         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
482         length with __strnlen.  Make sure to both set errno and return it on
483         failure.
484
485 2012-11-19  David S. Miller  <davem@davemloft.net>
486
487         With help from Joseph Myers.
488         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
489         very large arguments properly.
490         * math/libm-test.inc (atan_test): New tests.
491         (atan2_test): New tests.
492         * sysdeps/sparc/fpu/libm-test-ulps: Update.
493         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
494
495 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
496
497         [BZ #14856]
498         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
499         Define to 3.
500
501         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
502         [POSIX] (EADDRNOTAVAIL): Likewise.
503         [POSIX] (EAFNOSUPPORT): Likewise.
504         [POSIX] (EALREADY): Likewise.
505         [POSIX] (ECONNABORTED): Likewise.
506         [POSIX] (ECONNREFUSED): Likewise.
507         [POSIX] (ECONNRESET): Likewise.
508         [POSIX] (EDESTADDRREQ): Likewise.
509         [POSIX] (EDQUOT): Likewise.
510         [POSIX] (EHOSTUNREACH): Likewise.
511         [POSIX] (EIDRM): Likewise.
512         [POSIX] (EISCONN): Likewise.
513         [POSIX] (ELOOP): Likewise.
514         [POSIX] (EMULTIHOP): Likewise.
515         [POSIX] (ENETDOWN): Likewise.
516         [POSIX] (ENETUNREACH): Likewise.
517         [POSIX] (ENOBUFS): Likewise.
518         [POSIX] (ENODATA): Likewise.
519         [POSIX] (ENOLINK): Likewise.
520         [POSIX] (ENOMSG): Likewise.
521         [POSIX] (ENOPROTOOPT): Likewise.
522         [POSIX] (ENOSR): Likewise.
523         [POSIX] (ENOSTR): Likewise.
524         [POSIX] (ENOTCONN): Likewise.
525         [POSIX] (ENOTSOCK): Likewise.
526         [POSIX] (EOPNOTSUPP): Likewise.
527         [POSIX] (EOVERFLOW): Likewise.
528         [POSIX] (EPROTO): Likewise.
529         [POSIX] (EPROTONOSUPPORT): Likewise.
530         [POSIX] (EPROTOTYPE): Likewise.
531         [POSIX] (ESTALE): Likewise.
532         [POSIX] (ETIME): Likewise.
533         [POSIX] (ETXTBSY): Likewise.
534         [POSIX] (EWOULDBLOCK): Likewise.
535         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
536         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
537         [POSIX] (SEEK_CUR): Likewise.
538         [POSIX] (SEEK_END): Likewise.
539         [POSIX || UNIX98] (mode_t): Do not require.
540         [POSIX] (off_t): Likewise.
541         [POSIX] (pid_t): Likewise.
542         [POSIX] (sys/stat.h): Do not allow header.
543         [POSIX] (unistd.h): Likewise.
544         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
545         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
546         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
547         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
548         require.
549         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
550         sigevent): Specify elements.
551         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
552         entry.
553         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
554         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
555
556         * conform/data/cpio.h-data [POSIX]: Disable whole file.
557         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
558         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
559         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
560         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
561         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
562         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
563         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
564         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
565         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
566         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
567         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
568         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
569         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
570         Likewise.
571         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
572         Likewise.
573         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
574         Likewise.
575         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
576         Likewise.
577         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
578         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
579         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
580         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
581         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
582         Specify lower bound on value.
583         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
584         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
585         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
586         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
587         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
588         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
589         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
590         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
591         value.
592         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
593         as optional.
594         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
595         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
596         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
597         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
598         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
599         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
600         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
601         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
602         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
603         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
604         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
605         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
606         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
607         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
608         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
609         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
610         entry.
611         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
612         optional.
613         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
614         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
615         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
616         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
617         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
618         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
619         Likewise.
620         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
621         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
622         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
623         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
624         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
625         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
626         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
627         as optional.
628         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
629         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
630         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
631         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
632         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
633         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
634         specify as optional.
635         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
636         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
637         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
638         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
639         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
640         [XPG3] (NL_LANGMAX): Likewise.
641         [POSIX || XPG3] (NL_MSGMAX): Likewise.
642         [POSIX || XPG3] (NL_NMAX): Likewise.
643         [POSIX || XPG3] (NL_SETMAX): Likewise.
644         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
645         [XPG3] (NZERO): Likewise.
646         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
647         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
648         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
649         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
650         (REG_ERANGE): Expect.
651         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
652         optional-constant.
653         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
654         Use (void) in prototype.
655         [POSIX] (*_t): Allow.
656         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
657         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
658         (WRDE_BADVAL): Expect.
659
660         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
661         expect.
662         [XPG3 || XPG4] (O_RSYNC): Likewise.
663         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
664         Likewise.
665         [XPG3 || XPG4] (pthread_sigmask): Likewise.
666         [XPG3 || XPG4] (sigqueue): Likewise.
667         [XPG3 || XPG4] (sigtimedwait): Likewise.
668         [XPG3 || XPG4] (sigwaitinfo): Likewise.
669         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
670         [XPG3 || XPG4] (vsnprintf): Likewise.
671         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
672         Likewise.
673         [XPG3 || XPG4] (blksize_t): Likewise.
674         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
675         Likewise.
676         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
677         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
678         [XPG3 || XPG4] (struct itimerspec): Likewise.
679         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
680         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
681         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
682         [XPG3 || XPG4] (clockid_t): Likewise.
683         [XPG3 || XPG4] (timer_t): Likewise.
684         [XPG3 || XPG4] (clock_getres): Likewise.
685         [XPG3 || XPG4] (clock_gettime): Likewise.
686         [XPG3 || XPG4] (clock_settime): Likewise.
687         [XPG3 || XPG4] (nanosleep): Likewise.
688         [XPG3 || XPG4] (timer_create): Likewise.
689         [XPG3 || XPG4] (timer_delete): Likewise.
690         [XPG3 || XPG4] (timer_gettime): Likewise.
691         [XPG3 || XPG4] (timer_getoverrun): Likewise.
692         [XPG3 || XPG4] (timer_settime): Likewise.
693         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
694         [XPG3 || XPG4] (getlogin_r): Likewise.
695         [XPG3 || XPG4] (pread): Likewise.
696         [XPG3 || XPG4] (pthread_atfork): Likewise.
697         [XPG3 || XPG4] (pwrite): Likewise.
698
699         [BZ #14835]
700         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
701         <bits/siginfo.h>.
702
703 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
704
705         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
706         finalizing MALLSTREAM.
707
708         * sysdeps/mach/hurd/syncfs.c: New file.
709
710 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
711
712         [BZ #14719]
713         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
714         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
715         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
716         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
717         (_nss_dns_gethostbyname4_r): Likewise.
718         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
719         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
720
721 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
722
723         [BZ #13763]
724         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
725
726 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
727
728         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
729         * elf/cache.c (print_entry): Print ",AArch64" for
730         FLAG_AARCH64_LIB64
731
732         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
733         * elf/cache.c (print_entry): Print ",hard-float" for
734         FLAG_ARM_LIBHF.
735
736 2012-11-18  David S. Miller  <davem@davemloft.net>
737
738         With help from Joseph Myers.
739         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
740         cutoff to 2**-13.
741         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
742         cutoff to 2**-25.
743         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
744         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
745         small.
746         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
747         * math/libm-test.inc (y0_test): New tests.
748         (y1_test): New tests.
749         * sysdeps/i386/fpu/libm-test-ulps: Update.
750         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
751         * sysdeps/sparc/fpu/libm-test-ulps: Update.
752
753 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
754
755         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
756         64-bit targets.
757         * configure: Regenerated.
758
759 2012-11-17  David S. Miller  <davem@davemloft.net>
760
761         [BZ #14811]
762         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
763         nonzero exponents with absolute value below 0x1p-128 to +/-
764         0x1p-128.
765
766 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
767
768         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
769
770         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
771
772         * posix/getconf-speclist.c: New file.
773         * posix/posix-envs.def: Likewise.
774         * posix/confstr.c (START_ENV_GROUP): New macro.
775         (END_ENV_GROUP): Likewise.
776         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
777         (KNOWN_PRESENT_ENV_STRING): Likewise.
778         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
779         (UNKNOWN_ENVIRONMENT): Likewise.
780         (confstr): Include posix-envs.def instead of handling
781         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
782         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
783         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
784         (END_ENV_GROUP): Likewise.
785         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
786         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
787         (UNKNOWN_ENVIRONMENT): Likewise.
788         (__sysconf): Include posix-envs.def instead of handling associated
789         cases directly here.
790         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
791         preprocessing getconf-speclist.c rather than running getconf or
792         generating empty file.
793
794 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
795
796         * scripts/check-local-headers.sh: Ignore 'mach' headers.
797
798 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
799
800         [BZ #14672]
801         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
802
803 2012-11-16  David S. Miller  <davem@davemloft.net>
804
805         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
806         smaller than LDBL_EPSILON/2.0L, just return xm1.
807
808 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
809
810         * elf/tst-array1.c (init): Set constructor priority to 1000.
811         (fini): Set destructor priority to 1000.
812         * elf/tst-array2dep.c: Likewise.
813
814 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
815
816         [BZ #11741]
817         * libio/fileops.c (_IO_new_file_write): Correctly return error.
818         (_IO_new_file_xsputn): Also return EOF if none of the input
819         data was written when overflow failed.
820         * libio/iopadn.c (_IO_padn): Likewise.
821         * libio/iowpadn.c (_IO_wpadn): Likewise.
822         * stdio-common/tst-put-error.c: Add copyright notice.
823         (do_test): Add case for printing padded string.
824         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
825         _IO_padn returned error.
826         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
827         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
828         return EOF.
829
830 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
831
832         * libio/libioP.h: Add comment note that the references to C++
833         bits are now obsolete.
834
835 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
836
837         * math/libm-test.inc (check_complex): Use asprintf.
838
839 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
840
841         * debug/pcprofiledump.c (print_version): Update copyright year.
842         * malloc/memusagestat.c (print_version): Likewise.
843
844 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
845
846         [BZ #14831]
847         * elf/Makefile (tests): Add tst-audit8.
848         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
849         ($(objpfx)tst-audit8.out): New target.
850         (tst-audit8-ENV): New variable.
851         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
852         audit if l_reloc_result is NULL.
853         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
854         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
855         * elf/tst-audit8.c: New file.
856
857 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
858
859         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
860         * misc/Makefile (CFLAGS-select.c): Define.
861         * posix/Makefile (CFLAGS-pause.c): Define.
862
863 2012-11-13  David S. Miller  <davem@davemloft.net>
864
865         * crypt/Makefile: Move test targets after toplevel Rules
866         inclusion.  Grab any necessary sysdep routines when linking.
867         * crypt/md5.c (md5_process_block): Remove define, we will always
868         name it __md5_process_block.
869         (md5_finish_ctx): Update md5_process_block call.
870         (md5_stream): Likewise.
871         (md5_process_bytes): Likewise.
872         (md5_process_block): Rename to __md5_process_block and move to ...
873         * crypt/md5-block.c: ... here.
874         * crypt/sha256.c (sha256_process_block): Move to ...
875         * crypt/sha256-block.c: ... here.
876         * crypt/sha512.c (sha512_process_block): Move to ...
877         * crypt/sha512-block.c: ... here.
878         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
879         path.
880         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
881         * sysdeps/sparc/sparc64/multiarch/Makefile
882         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
883         crypt subdir.
884         (localedef-aux): Add md5 crypto assembler when in locale subdir.
885         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
886         multiarch changes.
887         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
888         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
889         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
890         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
891         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
892         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
893         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
894         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
895         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
896         file.
897         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
898         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
899         file.
900         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
901
902 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
903
904         * timezone/tzselect.ksh: Update from tzcode git revision
905         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
906         * timezone/zdump.c: Likewise.
907         * timezone/zic.c: Likewise.
908         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
909         in TZVERSION setting, not $(PKGVERSION).
910         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
911         REPORT_BUGS_TO settings.
912
913         [BZ #14838]
914         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
915         macro.
916
917 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
918
919         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
920         detection to immediately after _FP_ROUND().
921         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
922         bits are 0.
923
924 2012-11-11  David S. Miller  <davem@davemloft.net>
925
926         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
927         inttypes.h
928         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
929         __close rather than their public counterparts.
930
931 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
932
933         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
934         file.
935         [UNIX98] (sem_timedwait): Do not expect.
936         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
937         [XPG4 || UNIX98] (sockatmark): Do not expect.
938         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
939         (clock_getcpuclockid): Do not expect.
940         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
941         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
942         Do not expect.
943         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
944         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
945         [UNIX98] (vwscanf): Likewise.
946         [UNIX98] (vswscanf): Likewise.
947
948 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
949
950         * timezone/version.h: Remove file.
951         * timezone/README: Do not refer to version.h.
952         * timezone/Makefile ($(objpfx)zic.o): New dependency on
953         $(objpfx)version.h.
954         ($(objpfx)zdump.o): Likewise.
955         ($(objpfx)version.h): New target.
956
957         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
958         2012i.
959         * timezone/README: Don't mention modification to tzselect.ksh.
960         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
961         work on unmodified tzselect.ksh.  Substitute version numbers in
962         tzselect.ksh.
963
964         * Makefile (format-me): Remove.
965         (INSTALL): Adjust indentation.  Use commands directly instead of
966         using $(format-me).
967
968         * aclocal.m4 (ACX_PKGVERSION): New macro.
969         (ACX_BUGURL): Likewise.
970         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
971         (PKGVERSION): New AC_DEFINE_UNQUOTED.
972         (REPORT_BUGS_TO): Likewise.
973         * configure: Regenerated.
974         * config.h.in (PKGVERSION): New macro.
975         (REPORT_BUGS_TO): Likewise.
976         * config.make.in (PKGVERSION): New variable.
977         (PKGVERSION_TEXI): Likewise.
978         (REPORT_BUGS_TO): Likewise.
979         (REPORT_BUGS_TEXI): Likewise.
980         * Makefile (format-me): Use -I$(common-objpfx)manual.
981         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
982         ($(common-objpfx)manual/%): New target.
983         (manual/%): Remove target.
984         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
985         (print_version): Use PKGVERSION.
986         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
987         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
988         and REPORT_BUGS_TO.
989         ($(objpfx)xtrace): Likewise.
990         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
991         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
992         (print_version): Use PKGVERSION.
993         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
994         (do_version): Use PKGVERSION.
995         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
996         REPORT_BUGS_TO.
997         (common-ldd-rewrite): Likewise.
998         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
999         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
1000         (print_version): Use PKGVERSION.
1001         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
1002         * elf/pldd.c (argp_program_bug_address): Remove variable.
1003         (more_help): New function.
1004         (argp): Use more_help.
1005         (print_version): Use PKGVERSION.
1006         * elf/sln.c (main): Use PKGVERSION.
1007         (usage): Use REPORT_BUGS_TO.
1008         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
1009         (top level): Use PKGVERSION.
1010         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
1011         (print_version): Use PKGVERSION.
1012         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
1013         (print_version): Use PKGVERSION.
1014         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
1015         (print_version): Use PKGVERSION.
1016         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
1017         (print_version): Use PKGVERSION.
1018         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
1019         (print_version): Use PKGVERSION.
1020         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
1021         (print_version): Use PKGVERSION.
1022         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
1023         and BUGURL.
1024         ($(objpfx)memusage): Likewise.
1025         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
1026         (do_version): Use PKGVERSION.
1027         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
1028         (print_version): Use PKGVERSION.
1029         * malloc/mtrace.pl ($PACKAGE): Remove variable.
1030         ($PKGVERSION): New variable.
1031         ($REPORT_BUGS_TO): Likewise.
1032         (usage): Use $REPORT_BUGS_TO.
1033         (top level): Use $PKGVERSION.
1034         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
1035         ($(objpfx)pkgvers.texi): New rule.
1036         ($(objpfx)stamp-pkgvers): Likewise.
1037         * manual/install.texi: Include pkgvers.texi.
1038         (--with-pkgversion): Document new configure option.
1039         (--with-bugurl): Likewise.
1040         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
1041         than necessarily for this particular distribution.  Use
1042         REPORT_BUGS_TO for where to report bugs.
1043         * INSTALL: Regenerated.
1044         * manual/libc.texinfo: Include pkgvers.texi.
1045         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
1046         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
1047         (print_version): Use PKGVERSION.
1048         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
1049         (print_version): Use PKGVERSION.
1050         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
1051         (print_version): Use PKGVERSION.
1052         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
1053         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
1054         macro.
1055         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
1056         (print_version): Use PKGVERSION.
1057         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
1058         (print_version): Use PKGVERSION.
1059         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
1060         and PKGVERSION.
1061
1062         * timezone/checktab.awk: Update from tzcode 2012i.
1063         * timezone/ialloc.c: Likewise.
1064         * timezone/private.h: Likewise.
1065         * timezone/scheck.c: Likewise.
1066         * timezone/tzfile.h: Likewise.
1067         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
1068         (TZVERSION): Hardcode tzcode version number.
1069         * timezone/zdump.c: Update from tzcode 2012i.
1070         * timezone/zic.c: Likewise.
1071         * timezone/version.h: New file.
1072         * timezone/README: Describe version.h.  Update upstream location.
1073
1074         [BZ #14824]
1075         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
1076         (mktemp): Enable declaration.
1077         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
1078         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
1079         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
1080         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
1081         Likewise.
1082         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
1083         Likewise.
1084         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
1085         Likewise.
1086         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
1087         Likewise.
1088         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
1089         Likewise.
1090         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
1091         Likewise.
1092
1093         [BZ #14821]
1094         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
1095         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
1096         for copies of such integer values.
1097         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
1098         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
1099
1100 2012-11-09  Andreas Jaeger  <aj@suse.de>
1101
1102         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
1103         definitions and declarations that are provided by
1104         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1105
1106 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1107
1108         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
1109         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
1110         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
1111         definition.
1112
1113 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1114
1115         * elf/elf.h: Update comment before AArch64 relocations.
1116
1117 2012-11-07  David S. Miller  <davem@davemloft.net>
1118
1119         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
1120         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
1121         (__start_context): Declare.
1122         (__makecontext_ret): Delete.
1123         (__makecontext): Hook up __start_context instead of
1124         __makecontext_ret.
1125         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
1126         (sysdep_routines): Add __start_context when in stdlib.
1127
1128 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
1129
1130         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
1131         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
1132         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
1133         hardcoded "nm".
1134         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
1135         (READELF): New variable.  Use it instead of hardcoded "readelf".
1136
1137 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
1138
1139         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
1140         * sysdeps/x86/Makefile: Here.
1141         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
1142         * sysdeps/x86/tst-xmmymm.sh: This.
1143
1144 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
1145
1146         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
1147         expectations.
1148         [UNIX98] (pthread_barrier_t): Do not expect.
1149         [UNIX98] (pthread_barrierattr_t): Likewise.
1150         [UNIX98] (pthread_spinlock_t): Likewise.
1151         [UNIX98] (pthread_barrier_destroy): Likewise.
1152         [UNIX98] (pthread_barrier_init): Likewise.
1153         [UNIX98] (pthread_barrier_wait): Likewise.
1154         [UNIX98] (pthread_barrierattr_destroy): Likewise.
1155         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
1156         [UNIX98] (pthread_barrierattr_init): Likewise.
1157         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
1158         [UNIX98] (pthread_getcpuclockid): Likewise.
1159         [UNIX98] (pthread_mutex_timedlock): Likewise.
1160         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
1161         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
1162         [UNIX98] (pthread_sigmask): Likewise.
1163         [UNIX98] (pthread_spin_destroy): Likewise.
1164         [UNIX98] (pthread_spin_init): Likewise.
1165         [UNIX98] (pthread_spin_lock): Likewise.
1166         [UNIX98] (pthread_spin_trylock): Likewise.
1167         [UNIX98] (pthread_spin_unlock): Likewise.
1168         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
1169         Do not expect.
1170         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
1171         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
1172         [XPG3 || XPG4] (pthread_cond_t): Likewise.
1173         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
1174         [XPG3 || XPG4] (pthread_key_t): Likewise.
1175         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
1176         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
1177         [XPG3 || XPG4] (pthread_once_t): Likewise.
1178         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
1179         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
1180         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
1181         [XPG3 || XPG4] (pthread_t): Likewise.
1182
1183         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
1184         not expect.
1185         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
1186
1187         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
1188         Change function return type to int.
1189
1190         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
1191         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
1192         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
1193         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
1194         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
1195         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
1196         [!POSIX] (posix_madvise): Likewise.
1197         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
1198         && !UNIX98].
1199         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
1200         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
1201         (mode_t): Likewise.
1202         (posix_mem_offset): Likewise.
1203         (posix_typed_mem_get_info): Likewise.
1204         (posix_typed_mem_open): Likewise.
1205
1206         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
1207         Change condition to [XOPEN2K8].
1208
1209         * conform/conformtest.pl: Preprocess allow-header data with -x c
1210         instead of from stdin.
1211         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
1212         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
1213         [C99-based standards] (cerfc): Likewise.
1214         [C99-based standards] (cexp2): Likewise.
1215         [C99-based standards] (cexpm1): Likewise.
1216         [C99-based standards] (clog10): Likewise.
1217         [C99-based standards] (clog1p): Likewise.
1218         [C99-based standards] (clog2): Likewise.
1219         [C99-based standards] (clgamma): Likewise.
1220         [C99-based standards] (ctgamma): Likewise.
1221         [C99-based standards] (cerff): Likewise.
1222         [C99-based standards] (cerfcf): Likewise.
1223         [C99-based standards] (cexp2f): Likewise.
1224         [C99-based standards] (cexpm1f): Likewise.
1225         [C99-based standards] (clog10f): Likewise.
1226         [C99-based standards] (clog1pf): Likewise.
1227         [C99-based standards] (clog2f): Likewise.
1228         [C99-based standards] (clgammaf): Likewise.
1229         [C99-based standards] (ctgammaf): Likewise.
1230         [C99-based standards] (cerfl): Likewise.
1231         [C99-based standards] (cerfcl): Likewise.
1232         [C99-based standards] (cexp2l): Likewise.
1233         [C99-based standards] (cexpm1l): Likewise.
1234         [C99-based standards] (clog10l): Likewise.
1235         [C99-based standards] (clog1pl): Likewise.
1236         [C99-based standards] (clog2l): Likewise.
1237         [C99-based standards] (clgammal): Likewise.
1238         [C99-based standards] (ctgammal): Likewise.
1239         * conform/data/inttypes.h-data [C99-based standards]: Include
1240         stdint.h-data.  Remove all expectations for stdint.h contents.
1241         [C99-based standards] (PRI*): Do not allow.
1242         [C99-based standards] (SCN*): Likewise.
1243         [C99-based standards] (*_t): Likewise.
1244         [C99-based-standards] (PRId8): Expect macro.
1245         [C99-based-standards] (PRIi8): Likewise.
1246         [C99-based-standards] (PRIo8): Likewise.
1247         [C99-based-standards] (PRIu8): Likewise.
1248         [C99-based-standards] (PRIx8): Likewise.
1249         [C99-based-standards] (PRIX8): Likewise.
1250         [C99-based-standards] (SCNd8): Likewise.
1251         [C99-based-standards] (SCNi8): Likewise.
1252         [C99-based-standards] (SCNo8): Likewise.
1253         [C99-based-standards] (SCNu8): Likewise.
1254         [C99-based-standards] (SCNx8): Likewise.
1255         [C99-based-standards] (PRIdLEAST8): Likewise.
1256         [C99-based-standards] (PRIiLEAST8): Likewise.
1257         [C99-based-standards] (PRIoLEAST8): Likewise.
1258         [C99-based-standards] (PRIuLEAST8): Likewise.
1259         [C99-based-standards] (PRIxLEAST8): Likewise.
1260         [C99-based-standards] (PRIXLEAST8): Likewise.
1261         [C99-based-standards] (SCNdLEAST8): Likewise.
1262         [C99-based-standards] (SCNiLEAST8): Likewise.
1263         [C99-based-standards] (SCNoLEAST8): Likewise.
1264         [C99-based-standards] (SCNuLEAST8): Likewise.
1265         [C99-based-standards] (SCNxLEAST8): Likewise.
1266         [C99-based-standards] (PRIdFAST8): Likewise.
1267         [C99-based-standards] (PRIiFAST8): Likewise.
1268         [C99-based-standards] (PRIoFAST8): Likewise.
1269         [C99-based-standards] (PRIuFAST8): Likewise.
1270         [C99-based-standards] (PRIxFAST8): Likewise.
1271         [C99-based-standards] (PRIXFAST8): Likewise.
1272         [C99-based-standards] (SCNdFAST8): Likewise.
1273         [C99-based-standards] (SCNiFAST8): Likewise.
1274         [C99-based-standards] (SCNoFAST8): Likewise.
1275         [C99-based-standards] (SCNuFAST8): Likewise.
1276         [C99-based-standards] (SCNxFAST8): Likewise.
1277         [C99-based-standards] (PRId16): Likewise.
1278         [C99-based-standards] (PRIi16): Likewise.
1279         [C99-based-standards] (PRIo16): Likewise.
1280         [C99-based-standards] (PRIu16): Likewise.
1281         [C99-based-standards] (PRIx16): Likewise.
1282         [C99-based-standards] (PRIX16): Likewise.
1283         [C99-based-standards] (SCNd16): Likewise.
1284         [C99-based-standards] (SCNi16): Likewise.
1285         [C99-based-standards] (SCNo16): Likewise.
1286         [C99-based-standards] (SCNu16): Likewise.
1287         [C99-based-standards] (SCNx16): Likewise.
1288         [C99-based-standards] (PRIdLEAST16): Likewise.
1289         [C99-based-standards] (PRIiLEAST16): Likewise.
1290         [C99-based-standards] (PRIoLEAST16): Likewise.
1291         [C99-based-standards] (PRIuLEAST16): Likewise.
1292         [C99-based-standards] (PRIxLEAST16): Likewise.
1293         [C99-based-standards] (PRIXLEAST16): Likewise.
1294         [C99-based-standards] (SCNdLEAST16): Likewise.
1295         [C99-based-standards] (SCNiLEAST16): Likewise.
1296         [C99-based-standards] (SCNoLEAST16): Likewise.
1297         [C99-based-standards] (SCNuLEAST16): Likewise.
1298         [C99-based-standards] (SCNxLEAST16): Likewise.
1299         [C99-based-standards] (PRIdFAST16): Likewise.
1300         [C99-based-standards] (PRIiFAST16): Likewise.
1301         [C99-based-standards] (PRIoFAST16): Likewise.
1302         [C99-based-standards] (PRIuFAST16): Likewise.
1303         [C99-based-standards] (PRIxFAST16): Likewise.
1304         [C99-based-standards] (PRIXFAST16): Likewise.
1305         [C99-based-standards] (SCNdFAST16): Likewise.
1306         [C99-based-standards] (SCNiFAST16): Likewise.
1307         [C99-based-standards] (SCNoFAST16): Likewise.
1308         [C99-based-standards] (SCNuFAST16): Likewise.
1309         [C99-based-standards] (SCNxFAST16): Likewise.
1310         [C99-based-standards] (PRId32): Likewise.
1311         [C99-based-standards] (PRIi32): Likewise.
1312         [C99-based-standards] (PRIo32): Likewise.
1313         [C99-based-standards] (PRIu32): Likewise.
1314         [C99-based-standards] (PRIx32): Likewise.
1315         [C99-based-standards] (PRIX32): Likewise.
1316         [C99-based-standards] (SCNd32): Likewise.
1317         [C99-based-standards] (SCNi32): Likewise.
1318         [C99-based-standards] (SCNo32): Likewise.
1319         [C99-based-standards] (SCNu32): Likewise.
1320         [C99-based-standards] (SCNx32): Likewise.
1321         [C99-based-standards] (PRIdLEAST32): Likewise.
1322         [C99-based-standards] (PRIiLEAST32): Likewise.
1323         [C99-based-standards] (PRIoLEAST32): Likewise.
1324         [C99-based-standards] (PRIuLEAST32): Likewise.
1325         [C99-based-standards] (PRIxLEAST32): Likewise.
1326         [C99-based-standards] (PRIXLEAST32): Likewise.
1327         [C99-based-standards] (SCNdLEAST32): Likewise.
1328         [C99-based-standards] (SCNiLEAST32): Likewise.
1329         [C99-based-standards] (SCNoLEAST32): Likewise.
1330         [C99-based-standards] (SCNuLEAST32): Likewise.
1331         [C99-based-standards] (SCNxLEAST32): Likewise.
1332         [C99-based-standards] (PRIdFAST32): Likewise.
1333         [C99-based-standards] (PRIiFAST32): Likewise.
1334         [C99-based-standards] (PRIoFAST32): Likewise.
1335         [C99-based-standards] (PRIuFAST32): Likewise.
1336         [C99-based-standards] (PRIxFAST32): Likewise.
1337         [C99-based-standards] (PRIXFAST32): Likewise.
1338         [C99-based-standards] (SCNdFAST32): Likewise.
1339         [C99-based-standards] (SCNiFAST32): Likewise.
1340         [C99-based-standards] (SCNoFAST32): Likewise.
1341         [C99-based-standards] (SCNuFAST32): Likewise.
1342         [C99-based-standards] (SCNxFAST32): Likewise.
1343         [C99-based-standards] (PRId64): Likewise.
1344         [C99-based-standards] (PRIi64): Likewise.
1345         [C99-based-standards] (PRIo64): Likewise.
1346         [C99-based-standards] (PRIu64): Likewise.
1347         [C99-based-standards] (PRIx64): Likewise.
1348         [C99-based-standards] (PRIX64): Likewise.
1349         [C99-based-standards] (SCNd64): Likewise.
1350         [C99-based-standards] (SCNi64): Likewise.
1351         [C99-based-standards] (SCNo64): Likewise.
1352         [C99-based-standards] (SCNu64): Likewise.
1353         [C99-based-standards] (SCNx64): Likewise.
1354         [C99-based-standards] (PRIdLEAST64): Likewise.
1355         [C99-based-standards] (PRIiLEAST64): Likewise.
1356         [C99-based-standards] (PRIoLEAST64): Likewise.
1357         [C99-based-standards] (PRIuLEAST64): Likewise.
1358         [C99-based-standards] (PRIxLEAST64): Likewise.
1359         [C99-based-standards] (PRIXLEAST64): Likewise.
1360         [C99-based-standards] (SCNdLEAST64): Likewise.
1361         [C99-based-standards] (SCNiLEAST64): Likewise.
1362         [C99-based-standards] (SCNoLEAST64): Likewise.
1363         [C99-based-standards] (SCNuLEAST64): Likewise.
1364         [C99-based-standards] (SCNxLEAST64): Likewise.
1365         [C99-based-standards] (PRIdFAST64): Likewise.
1366         [C99-based-standards] (PRIiFAST64): Likewise.
1367         [C99-based-standards] (PRIoFAST64): Likewise.
1368         [C99-based-standards] (PRIuFAST64): Likewise.
1369         [C99-based-standards] (PRIxFAST64): Likewise.
1370         [C99-based-standards] (PRIXFAST64): Likewise.
1371         [C99-based-standards] (SCNdFAST64): Likewise.
1372         [C99-based-standards] (SCNiFAST64): Likewise.
1373         [C99-based-standards] (SCNoFAST64): Likewise.
1374         [C99-based-standards] (SCNuFAST64): Likewise.
1375         [C99-based-standards] (SCNxFAST64): Likewise.
1376         [C99-based-standards] (PRIdMAX): Likewise.
1377         [C99-based-standards] (PRIiMAX): Likewise.
1378         [C99-based-standards] (PRIoMAX): Likewise.
1379         [C99-based-standards] (PRIuMAX): Likewise.
1380         [C99-based-standards] (PRIxMAX): Likewise.
1381         [C99-based-standards] (PRIXMAX): Likewise.
1382         [C99-based-standards] (SCNdMAX): Likewise.
1383         [C99-based-standards] (SCNiMAX): Likewise.
1384         [C99-based-standards] (SCNoMAX): Likewise.
1385         [C99-based-standards] (SCNuMAX): Likewise.
1386         [C99-based-standards] (SCNxMAX): Likewise.
1387         [C99-based-standards] (PRIdPTR): Likewise.
1388         [C99-based-standards] (PRIiPTR): Likewise.
1389         [C99-based-standards] (PRIoPTR): Likewise.
1390         [C99-based-standards] (PRIuPTR): Likewise.
1391         [C99-based-standards] (PRIxPTR): Likewise.
1392         [C99-based-standards] (PRIXPTR): Likewise.
1393         [C99-based-standards] (SCNdPTR): Likewise.
1394         [C99-based-standards] (SCNiPTR): Likewise.
1395         [C99-based-standards] (SCNoPTR): Likewise.
1396         [C99-based-standards] (SCNuPTR): Likewise.
1397         [C99-based-standards] (SCNxPTR): Likewise.
1398         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
1399         allow.
1400         * conform/data/stdint.h-data: Update comments to clarify
1401         requirements.
1402         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
1403         type.
1404         [C99-based standards] (INT8_MAX): Likewise.
1405         [C99-based standards] (INT16_MIN): Likewise.
1406         [C99-based standards] (INT16_MAX): Likewise.
1407         [C99-based standards] (INT32_MIN): Likewise.
1408         [C99-based standards] (INT32_MAX): Likewise.
1409         [C99-based standards] (INT64_MIN): Likewise.
1410         [C99-based standards] (INT64_MAX): Likewise.
1411         [C99-based standards] (UINT8_MAX): Likewise.
1412         [C99-based standards] (UINT16_MAX): Likewise.
1413         [C99-based standards] (UINT32_MAX): Likewise.
1414         [C99-based standards] (UINT64_MAX): Likewise.
1415         [C99-based standards] (INT_LEAST8_MIN): Likewise.
1416         [C99-based standards] (INT_LEAST8_MAX): Likewise.
1417         [C99-based standards] (INT_LEAST16_MIN): Likewise.
1418         [C99-based standards] (INT_LEAST16_MAX): Likewise.
1419         [C99-based standards] (INT_LEAST32_MIN): Likewise.
1420         [C99-based standards] (INT_LEAST32_MAX): Likewise.
1421         [C99-based standards] (INT_LEAST64_MIN): Likewise.
1422         [C99-based standards] (INT_LEAST64_MAX): Likewise.
1423         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
1424         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
1425         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
1426         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
1427         [C99-based standards] (INT_FAST8_MIN): Likewise.
1428         [C99-based standards] (INT_FAST8_MAX): Likewise.
1429         [C99-based standards] (INT_FAST16_MIN): Likewise.
1430         [C99-based standards] (INT_FAST16_MAX): Likewise.
1431         [C99-based standards] (INT_FAST32_MIN): Likewise.
1432         [C99-based standards] (INT_FAST32_MAX): Likewise.
1433         [C99-based standards] (INT_FAST64_MIN): Likewise.
1434         [C99-based standards] (INT_FAST64_MAX): Likewise.
1435         [C99-based standards] (UINT_FAST8_MAX): Likewise.
1436         [C99-based standards] (UINT_FAST16_MAX): Likewise.
1437         [C99-based standards] (UINT_FAST32_MAX): Likewise.
1438         [C99-based standards] (UINT_FAST64_MAX): Likewise.
1439         [C99-based standards] (INTPTR_MIN): Likewise.
1440         [C99-based standards] (INTPTR_MAX): Likewise.
1441         [C99-based standards] (UINTPTR_MAX): Likewise.
1442         [C99-based standards] (INTMAX_MIN): Likewise.
1443         [C99-based standards] (INTMAX_MAX): Likewise.
1444         [C99-based standards] (UINTMAX_MAX): Likewise.
1445         [C99-based standards] (PTRDIFF_MIN): Likewise.
1446         [C99-based standards] (PTRDIFF_MAX): Likewise.
1447         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
1448         [C99-based standards] (SIZE_MAX): Likewise.
1449         [C99-based standards] (WCHAR_MAX): Likewise.
1450         [C99-based standards] (WINT_MAX): Likewise.
1451         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
1452         constraint on value.
1453         [C99-based standards] (WCHAR_MIN): Likewise.
1454         [C99-based standards] (WINT_MIN): Likewise.
1455         [C99-based standards] (*_t): Allow.
1456         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
1457         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
1458         Include math.h-data and complex.h-data.  Remove all expectations
1459         of math.h and complex.h contents.
1460         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
1461         at end of line.
1462         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
1463         (struct tm): Expect tag.
1464         [C99-based-standards] (wcstof): Expect function.
1465         [C99-based-standards] (wcstold): Likewise.
1466         [C99-based-standards] (wcstoll): Likewise.
1467         [C99-based-standards] (wcstoull): Likewise.
1468         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
1469         macro-int-constant.  Specify type.
1470         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
1471         constraint on value.
1472         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
1473         Specify type.
1474         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
1475         Specify value.
1476         [ISO C standards]: Do not allow headers.
1477         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
1478         wcs[abcdefghijklmnopqrstuvwxyz]*.
1479         [ISO C standards] (*_t): Do not allow.
1480         * conform/data/wctype.h-data [C99-based standards] (iswblank):
1481         Expect function.
1482         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
1483         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
1484         Specify type.
1485         [ISO C standards]: Do not allow headers.
1486         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
1487         is[abcdefghijklmnopqrstuvwxyz]*.
1488         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
1489         to[abcdefghijklmnopqrstuvwxyz]*.
1490         [ISO C standards] (*_t): Do not allow.
1491         * conform/data/stdalign.h-data: New file.
1492         * conform/data/stdbool.h-data: Likewise.
1493         * conform/data/stdnoreturn.h-data: Likewise.
1494
1495 2012-11-07  Roland McGrath  <roland@hack.frob.com>
1496
1497         [BZ #14815]
1498         * manual/filesys.texi (Directory Entries): Typo fix.
1499         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
1500
1501 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1502
1503         * elf/elf.h (EM_AARCH64): New macro.
1504         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
1505         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
1506         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
1507         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
1508         (R_AARCH64_TLSDESC): Likewise.
1509         (NT_ARM_TLS): Likewise.
1510         (NT_ARM_HW_BREAK): Likewise.
1511         (NT_ARM_HW_WATCH): Likewise.
1512
1513 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
1514
1515         [BZ #14811]
1516         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
1517         (__ieee754_powl): Saturate nonzero exponents with absolute value
1518         below 0x1p-79 to +/- 0x1p-79.
1519         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
1520         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
1521         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
1522         nonzero exponents with absolute value below 0x1p-32 to +/-
1523         0x1p-32.
1524         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
1525         (__ieee754_powl): Saturate nonzero exponents with absolute value
1526         below 0x1p-79 to +/- 0x1p-79.
1527         * math/libm-test.inc (pow_test): Add more tests.
1528
1529 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1530
1531         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
1532         _dl_s390_cap_flags with kernel. Increase string length.
1533         (_dl_s390_platforms): Add z196 and zEC12.
1534
1535 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
1536
1537         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
1538         Change XOPEN21K to XOPEN2K.
1539
1540 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1541
1542         * string/memmove.c: Use memcpy when possible.
1543
1544 2012-11-06  Andreas Jaeger  <aj@suse.de>
1545
1546         * po/eo.po: Update from translation team.
1547
1548 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
1549
1550         [BZ #14793]
1551         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
1552         exponent and small x and y exponents, scale x or y up.  Increase
1553         by 2 the exponent used in scaling up.
1554         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1555         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1556         * math/libm-test.inc (fma_test): Add more tests.
1557         (fma_test_towardzero): Likewise.
1558         (fma_test_downward): Likewise.
1559         (fma_test_upward): Likewise.
1560
1561 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
1562
1563         [BZ #14805]
1564         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
1565         fenv_t *.
1566
1567         [BZ #14801]
1568         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
1569         namespace for names of struct fields.
1570         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
1571         fenv_t fields.
1572         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
1573         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1574
1575 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1576
1577         [BZ #3665]
1578         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1579
1580 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1581
1582         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
1583         PTR_DEMANGLE.
1584
1585         [BZ #5246]
1586         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
1587         PTR_DEMANGLE.
1588
1589 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
1590
1591         [BZ #14797]
1592         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
1593         definitely overflow as x * y not x * y + z.
1594         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1595         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1596         * math/libm-test.inc (fma_test): Add more tests.
1597         (fma_test_towardzero): Likewise.
1598         (fma_test_downward): Likewise.
1599         (fma_test_upward): Likewise.
1600
1601 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1602
1603         [BZ #157]
1604
1605         * include/stub-tag.h: Remove file.
1606         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
1607         '#include' of it.
1608         * manual/maint.texi (Porting): Don't reference it.
1609         * Makerules ($(objpfx)stubs): Likewise.
1610         * dirent/closedir.c: Don't include <stub-tag.h>.
1611         * dirent/dirfd.c: Likewise.
1612         * dirent/fdopendir.c: Likewise.
1613         * dirent/getdents.c: Likewise.
1614         * dirent/getdents64.c: Likewise.
1615         * dirent/opendir.c: Likewise.
1616         * dirent/readdir.c: Likewise.
1617         * dirent/readdir64.c: Likewise.
1618         * dirent/readdir64_r.c: Likewise.
1619         * dirent/readdir_r.c: Likewise.
1620         * dirent/rewinddir.c: Likewise.
1621         * dirent/seekdir.c: Likewise.
1622         * dirent/telldir.c: Likewise.
1623         * gmon/profil.c: Likewise.
1624         * grp/setgroups.c: Likewise.
1625         * inet/if_index.c: Likewise.
1626         * io/access.c: Likewise.
1627         * io/chdir.c: Likewise.
1628         * io/chmod.c: Likewise.
1629         * io/chown.c: Likewise.
1630         * io/close.c: Likewise.
1631         * io/dup.c: Likewise.
1632         * io/dup2.c: Likewise.
1633         * io/dup3.c: Likewise.
1634         * io/euidaccess.c: Likewise.
1635         * io/faccessat.c: Likewise.
1636         * io/fchdir.c: Likewise.
1637         * io/fchmod.c: Likewise.
1638         * io/fchmodat.c: Likewise.
1639         * io/fchown.c: Likewise.
1640         * io/fchownat.c: Likewise.
1641         * io/fcntl.c: Likewise.
1642         * io/flock.c: Likewise.
1643         * io/fstatfs.c: Likewise.
1644         * io/fstatfs64.c: Likewise.
1645         * io/fstatvfs.c: Likewise.
1646         * io/fstatvfs64.c: Likewise.
1647         * io/futimens.c: Likewise.
1648         * io/fxstat.c: Likewise.
1649         * io/fxstat64.c: Likewise.
1650         * io/fxstatat.c: Likewise.
1651         * io/fxstatat64.c: Likewise.
1652         * io/getcwd.c: Likewise.
1653         * io/isatty.c: Likewise.
1654         * io/lchmod.c: Likewise.
1655         * io/lchown.c: Likewise.
1656         * io/link.c: Likewise.
1657         * io/linkat.c: Likewise.
1658         * io/lseek.c: Likewise.
1659         * io/lseek64.c: Likewise.
1660         * io/lxstat64.c: Likewise.
1661         * io/mkdir.c: Likewise.
1662         * io/mkdirat.c: Likewise.
1663         * io/mkfifo.c: Likewise.
1664         * io/mkfifoat.c: Likewise.
1665         * io/open.c: Likewise.
1666         * io/open64.c: Likewise.
1667         * io/openat.c: Likewise.
1668         * io/openat64.c: Likewise.
1669         * io/pipe.c: Likewise.
1670         * io/pipe2.c: Likewise.
1671         * io/poll.c: Likewise.
1672         * io/posix_fadvise.c: Likewise.
1673         * io/posix_fadvise64.c: Likewise.
1674         * io/posix_fallocate.c: Likewise.
1675         * io/posix_fallocate64.c: Likewise.
1676         * io/read.c: Likewise.
1677         * io/readlink.c: Likewise.
1678         * io/readlinkat.c: Likewise.
1679         * io/rmdir.c: Likewise.
1680         * io/sendfile.c: Likewise.
1681         * io/sendfile64.c: Likewise.
1682         * io/statfs.c: Likewise.
1683         * io/statfs64.c: Likewise.
1684         * io/statvfs.c: Likewise.
1685         * io/statvfs64.c: Likewise.
1686         * io/symlink.c: Likewise.
1687         * io/symlinkat.c: Likewise.
1688         * io/ttyname.c: Likewise.
1689         * io/ttyname_r.c: Likewise.
1690         * io/umask.c: Likewise.
1691         * io/unlink.c: Likewise.
1692         * io/unlinkat.c: Likewise.
1693         * io/utime.c: Likewise.
1694         * io/utimensat.c: Likewise.
1695         * io/write.c: Likewise.
1696         * io/xmknod.c: Likewise.
1697         * io/xmknodat.c: Likewise.
1698         * io/xstat.c: Likewise.
1699         * io/xstat64.c: Likewise.
1700         * login/getpt.c: Likewise.
1701         * login/grantpt.c: Likewise.
1702         * login/unlockpt.c: Likewise.
1703         * math/e_acoshl.c: Likewise.
1704         * math/e_acosl.c: Likewise.
1705         * math/e_asinl.c: Likewise.
1706         * math/e_atan2l.c: Likewise.
1707         * math/e_atanhl.c: Likewise.
1708         * math/e_coshl.c: Likewise.
1709         * math/e_expl.c: Likewise.
1710         * math/e_fmodl.c: Likewise.
1711         * math/e_gammal_r.c: Likewise.
1712         * math/e_hypotl.c: Likewise.
1713         * math/e_j0l.c: Likewise.
1714         * math/e_j1l.c: Likewise.
1715         * math/e_jnl.c: Likewise.
1716         * math/e_lgammal_r.c: Likewise.
1717         * math/e_log10l.c: Likewise.
1718         * math/e_log2l.c: Likewise.
1719         * math/e_logl.c: Likewise.
1720         * math/e_powl.c: Likewise.
1721         * math/e_rem_pio2l.c: Likewise.
1722         * math/e_sinhl.c: Likewise.
1723         * math/e_sqrtl.c: Likewise.
1724         * math/fclrexcpt.c: Likewise.
1725         * math/fedisblxcpt.c: Likewise.
1726         * math/feenablxcpt.c: Likewise.
1727         * math/fegetenv.c: Likewise.
1728         * math/fegetexcept.c: Likewise.
1729         * math/fegetround.c: Likewise.
1730         * math/feholdexcpt.c: Likewise.
1731         * math/fesetenv.c: Likewise.
1732         * math/fesetround.c: Likewise.
1733         * math/feupdateenv.c: Likewise.
1734         * math/fgetexcptflg.c: Likewise.
1735         * math/fraiseexcpt.c: Likewise.
1736         * math/fsetexcptflg.c: Likewise.
1737         * math/ftestexcept.c: Likewise.
1738         * math/k_cosl.c: Likewise.
1739         * math/k_rem_pio2l.c: Likewise.
1740         * math/k_sinl.c: Likewise.
1741         * math/k_tanl.c: Likewise.
1742         * math/s_asinhl.c: Likewise.
1743         * math/s_atanl.c: Likewise.
1744         * math/s_cbrtl.c: Likewise.
1745         * math/s_erfl.c: Likewise.
1746         * math/s_expm1l.c: Likewise.
1747         * math/s_log1pl.c: Likewise.
1748         * math/s_tanhl.c: Likewise.
1749         * misc/acct.c: Likewise.
1750         * misc/brk.c: Likewise.
1751         * misc/chflags.c: Likewise.
1752         * misc/chroot.c: Likewise.
1753         * misc/fchflags.c: Likewise.
1754         * misc/fgetxattr.c: Likewise.
1755         * misc/flistxattr.c: Likewise.
1756         * misc/fremovexattr.c: Likewise.
1757         * misc/fsetxattr.c: Likewise.
1758         * misc/fsync.c: Likewise.
1759         * misc/ftruncate.c: Likewise.
1760         * misc/futimes.c: Likewise.
1761         * misc/futimesat.c: Likewise.
1762         * misc/getdomain.c: Likewise.
1763         * misc/getdtsz.c: Likewise.
1764         * misc/gethostid.c: Likewise.
1765         * misc/gethostname.c: Likewise.
1766         * misc/getloadavg.c: Likewise.
1767         * misc/getpagesize.c: Likewise.
1768         * misc/getsysstats.c: Likewise.
1769         * misc/getxattr.c: Likewise.
1770         * misc/gtty.c: Likewise.
1771         * misc/ioctl.c: Likewise.
1772         * misc/lgetxattr.c: Likewise.
1773         * misc/listxattr.c: Likewise.
1774         * misc/llistxattr.c: Likewise.
1775         * misc/lremovexattr.c: Likewise.
1776         * misc/lsetxattr.c: Likewise.
1777         * misc/lutimes.c: Likewise.
1778         * misc/madvise.c: Likewise.
1779         * misc/mincore.c: Likewise.
1780         * misc/mlock.c: Likewise.
1781         * misc/mlockall.c: Likewise.
1782         * misc/mmap.c: Likewise.
1783         * misc/mprotect.c: Likewise.
1784         * misc/msync.c: Likewise.
1785         * misc/munlock.c: Likewise.
1786         * misc/munlockall.c: Likewise.
1787         * misc/munmap.c: Likewise.
1788         * misc/preadv.c: Likewise.
1789         * misc/preadv64.c: Likewise.
1790         * misc/ptrace.c: Likewise.
1791         * misc/pwritev.c: Likewise.
1792         * misc/pwritev64.c: Likewise.
1793         * misc/readv.c: Likewise.
1794         * misc/reboot.c: Likewise.
1795         * misc/remap_file_pages.c: Likewise.
1796         * misc/removexattr.c: Likewise.
1797         * misc/revoke.c: Likewise.
1798         * misc/select.c: Likewise.
1799         * misc/setdomain.c: Likewise.
1800         * misc/setegid.c: Likewise.
1801         * misc/seteuid.c: Likewise.
1802         * misc/sethostid.c: Likewise.
1803         * misc/sethostname.c: Likewise.
1804         * misc/setregid.c: Likewise.
1805         * misc/setreuid.c: Likewise.
1806         * misc/setxattr.c: Likewise.
1807         * misc/sstk.c: Likewise.
1808         * misc/stty.c: Likewise.
1809         * misc/swapoff.c: Likewise.
1810         * misc/swapon.c: Likewise.
1811         * misc/sync.c: Likewise.
1812         * misc/syncfs.c: Likewise.
1813         * misc/syscall.c: Likewise.
1814         * misc/truncate.c: Likewise.
1815         * misc/ualarm.c: Likewise.
1816         * misc/usleep.c: Likewise.
1817         * misc/ustat.c: Likewise.
1818         * misc/utimes.c: Likewise.
1819         * misc/vhangup.c: Likewise.
1820         * misc/writev.c: Likewise.
1821         * posix/_exit.c: Likewise.
1822         * posix/alarm.c: Likewise.
1823         * posix/execve.c: Likewise.
1824         * posix/fexecve.c: Likewise.
1825         * posix/fork.c: Likewise.
1826         * posix/fpathconf.c: Likewise.
1827         * posix/getaddrinfo.c: Likewise.
1828         * posix/getegid.c: Likewise.
1829         * posix/geteuid.c: Likewise.
1830         * posix/getgid.c: Likewise.
1831         * posix/getgroups.c: Likewise.
1832         * posix/getlogin.c: Likewise.
1833         * posix/getlogin_r.c: Likewise.
1834         * posix/getpgid.c: Likewise.
1835         * posix/getpid.c: Likewise.
1836         * posix/getppid.c: Likewise.
1837         * posix/getresgid.c: Likewise.
1838         * posix/getresuid.c: Likewise.
1839         * posix/getsid.c: Likewise.
1840         * posix/getuid.c: Likewise.
1841         * posix/glob64.c: Likewise.
1842         * posix/nanosleep.c: Likewise.
1843         * posix/pathconf.c: Likewise.
1844         * posix/pause.c: Likewise.
1845         * posix/posix_madvise.c: Likewise.
1846         * posix/pread.c: Likewise.
1847         * posix/pread64.c: Likewise.
1848         * posix/pwrite.c: Likewise.
1849         * posix/pwrite64.c: Likewise.
1850         * posix/sched_getaffinity.c: Likewise.
1851         * posix/sched_getp.c: Likewise.
1852         * posix/sched_gets.c: Likewise.
1853         * posix/sched_primax.c: Likewise.
1854         * posix/sched_primin.c: Likewise.
1855         * posix/sched_rr_gi.c: Likewise.
1856         * posix/sched_setaffinity.c: Likewise.
1857         * posix/sched_setp.c: Likewise.
1858         * posix/sched_sets.c: Likewise.
1859         * posix/sched_yield.c: Likewise.
1860         * posix/setgid.c: Likewise.
1861         * posix/setlogin.c: Likewise.
1862         * posix/setpgid.c: Likewise.
1863         * posix/setresgid.c: Likewise.
1864         * posix/setresuid.c: Likewise.
1865         * posix/setsid.c: Likewise.
1866         * posix/setuid.c: Likewise.
1867         * posix/sleep.c: Likewise.
1868         * posix/spawni.c: Likewise.
1869         * posix/sysconf.c: Likewise.
1870         * posix/times.c: Likewise.
1871         * posix/wait.c: Likewise.
1872         * posix/wait3.c: Likewise.
1873         * posix/wait4.c: Likewise.
1874         * posix/waitpid.c: Likewise.
1875         * resolv/gai_sigqueue.c: Likewise.
1876         * resource/getpriority.c: Likewise.
1877         * resource/getrlimit.c: Likewise.
1878         * resource/getrusage.c: Likewise.
1879         * resource/nice.c: Likewise.
1880         * resource/setpriority.c: Likewise.
1881         * resource/setrlimit.c: Likewise.
1882         * resource/ulimit.c: Likewise.
1883         * rt/aio_cancel.c: Likewise.
1884         * rt/aio_fsync.c: Likewise.
1885         * rt/aio_read.c: Likewise.
1886         * rt/aio_sigqueue.c: Likewise.
1887         * rt/aio_suspend.c: Likewise.
1888         * rt/aio_write.c: Likewise.
1889         * rt/clock_getres.c: Likewise.
1890         * rt/clock_gettime.c: Likewise.
1891         * rt/clock_nanosleep.c: Likewise.
1892         * rt/clock_settime.c: Likewise.
1893         * rt/lio_listio.c: Likewise.
1894         * rt/mq_close.c: Likewise.
1895         * rt/mq_getattr.c: Likewise.
1896         * rt/mq_notify.c: Likewise.
1897         * rt/mq_open.c: Likewise.
1898         * rt/mq_receive.c: Likewise.
1899         * rt/mq_send.c: Likewise.
1900         * rt/mq_setattr.c: Likewise.
1901         * rt/mq_timedreceive.c: Likewise.
1902         * rt/mq_timedsend.c: Likewise.
1903         * rt/mq_unlink.c: Likewise.
1904         * rt/shm_open.c: Likewise.
1905         * rt/shm_unlink.c: Likewise.
1906         * rt/timer_create.c: Likewise.
1907         * rt/timer_delete.c: Likewise.
1908         * rt/timer_getoverr.c: Likewise.
1909         * rt/timer_gettime.c: Likewise.
1910         * rt/timer_settime.c: Likewise.
1911         * setjmp/__longjmp.c: Likewise.
1912         * setjmp/setjmp.c: Likewise.
1913         * signal/kill.c: Likewise.
1914         * signal/killpg.c: Likewise.
1915         * signal/raise.c: Likewise.
1916         * signal/sigaction.c: Likewise.
1917         * signal/sigaltstack.c: Likewise.
1918         * signal/sigblock.c: Likewise.
1919         * signal/sigignore.c: Likewise.
1920         * signal/sigintr.c: Likewise.
1921         * signal/signal.c: Likewise.
1922         * signal/sigpause.c: Likewise.
1923         * signal/sigpending.c: Likewise.
1924         * signal/sigqueue.c: Likewise.
1925         * signal/sigreturn.c: Likewise.
1926         * signal/sigset.c: Likewise.
1927         * signal/sigsetmask.c: Likewise.
1928         * signal/sigstack.c: Likewise.
1929         * signal/sigsuspend.c: Likewise.
1930         * signal/sigtimedwait.c: Likewise.
1931         * signal/sigvec.c: Likewise.
1932         * signal/sigwait.c: Likewise.
1933         * signal/sigwaitinfo.c: Likewise.
1934         * signal/sysv_signal.c: Likewise.
1935         * socket/accept.c: Likewise.
1936         * socket/accept4.c: Likewise.
1937         * socket/bind.c: Likewise.
1938         * socket/connect.c: Likewise.
1939         * socket/getpeername.c: Likewise.
1940         * socket/getsockname.c: Likewise.
1941         * socket/getsockopt.c: Likewise.
1942         * socket/isfdtype.c: Likewise.
1943         * socket/listen.c: Likewise.
1944         * socket/recv.c: Likewise.
1945         * socket/recvfrom.c: Likewise.
1946         * socket/recvmsg.c: Likewise.
1947         * socket/send.c: Likewise.
1948         * socket/sendmsg.c: Likewise.
1949         * socket/sendto.c: Likewise.
1950         * socket/setsockopt.c: Likewise.
1951         * socket/shutdown.c: Likewise.
1952         * socket/sockatmark.c: Likewise.
1953         * socket/socket.c: Likewise.
1954         * socket/socketpair.c: Likewise.
1955         * stdio-common/ctermid.c: Likewise.
1956         * stdio-common/cuserid.c: Likewise.
1957         * stdio-common/remove.c: Likewise.
1958         * stdio-common/rename.c: Likewise.
1959         * stdio-common/renameat.c: Likewise.
1960         * stdio-common/tempname.c: Likewise.
1961         * stdlib/getcontext.c: Likewise.
1962         * stdlib/makecontext.c: Likewise.
1963         * stdlib/setcontext.c: Likewise.
1964         * stdlib/swapcontext.c: Likewise.
1965         * stdlib/system.c: Likewise.
1966         * streams/fattach.c: Likewise.
1967         * streams/fdetach.c: Likewise.
1968         * streams/getmsg.c: Likewise.
1969         * streams/getpmsg.c: Likewise.
1970         * streams/putmsg.c: Likewise.
1971         * streams/putpmsg.c: Likewise.
1972         * sysdeps/unix/bsd/getpt.c: Likewise.
1973         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1974         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1975         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1977         Likewise.
1978         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1979         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1980         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1981         * sysvipc/msgctl.c: Likewise.
1982         * sysvipc/msgget.c: Likewise.
1983         * sysvipc/msgrcv.c: Likewise.
1984         * sysvipc/msgsnd.c: Likewise.
1985         * sysvipc/semctl.c: Likewise.
1986         * sysvipc/semget.c: Likewise.
1987         * sysvipc/semop.c: Likewise.
1988         * sysvipc/semtimedop.c: Likewise.
1989         * sysvipc/shmat.c: Likewise.
1990         * sysvipc/shmctl.c: Likewise.
1991         * sysvipc/shmdt.c: Likewise.
1992         * sysvipc/shmget.c: Likewise.
1993         * termios/tcdrain.c: Likewise.
1994         * termios/tcflow.c: Likewise.
1995         * termios/tcflush.c: Likewise.
1996         * termios/tcgetattr.c: Likewise.
1997         * termios/tcgetpgrp.c: Likewise.
1998         * termios/tcsendbrk.c: Likewise.
1999         * termios/tcsetattr.c: Likewise.
2000         * termios/tcsetpgrp.c: Likewise.
2001         * time/adjtime.c: Likewise.
2002         * time/clock.c: Likewise.
2003         * time/getitimer.c: Likewise.
2004         * time/gettimeofday.c: Likewise.
2005         * time/setitimer.c: Likewise.
2006         * time/settimeofday.c: Likewise.
2007         * time/stime.c: Likewise.
2008         * time/time.c: Likewise.
2009
2010 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
2011
2012         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
2013         /usr/old/bin.
2014
2015         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
2016         instead of spaces.
2017         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
2018
2019 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
2020
2021         [BZ #14796]
2022         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
2023         FE_TONEAREST before applying Dekker multiplication and Knuth
2024         addition.  Clear inexact exceptions and check for exact zero
2025         results afterwards.
2026         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2027         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2028         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2029         * math/libm-test.inc (fma_test): Add more tests.
2030         (fma_test_towardzero): Likewise.
2031         (fma_test_downward): Likewise.
2032         (fma_test_upward): Likewise.
2033         * sysdeps/generic/math_private.h (default_libc_fesetround): New
2034         function.
2035         (libc_fesetround): New macro.
2036         (libc_fesetroundf): Likewise.
2037         (libc_fesetroundl): Likewise.
2038         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
2039         function.
2040         (libc_fesetround_387): Likewise.
2041         (libc_fesetroundf): New macro.
2042         (libc_fesetround): Likewise.
2043         (libc_fesetroundl): Likewise.
2044         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
2045         function.
2046         (libc_fesetroundf): New macro.
2047         (libc_fesetround): Likewise.
2048         (libc_fesetroundl): Likewise.
2049         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
2050         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
2051         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
2052         libm_hidden_ver.
2053         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
2054         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
2055         libm_hidden_def.
2056         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
2057         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
2058         libm_hidden_ver.
2059         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
2060         libm_hidden_def.
2061
2062         [BZ #3439]
2063         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
2064         integer constant usable in #if and use that to give value to enum
2065         constant.
2066         (FE_DIVBYZERO): Likewise.
2067         (FE_UNDERFLOW): Likewise.
2068         (FE_OVERFLOW): Likewise.
2069         (FE_INVALID): Likewise.
2070         (FE_INVALID_SNAN): Likewise.
2071         (FE_INVALID_ISI): Likewise.
2072         (FE_INVALID_IDI): Likewise.
2073         (FE_INVALID_ZDZ): Likewise.
2074         (FE_INVALID_IMZ): Likewise.
2075         (FE_INVALID_COMPARE): Likewise.
2076         (FE_INVALID_SOFTWARE): Likewise.
2077         (FE_INVALID_SQRT): Likewise.
2078         (FE_INVALID_INTEGER_CONVERSION): Likewise.
2079         (FE_TONEAREST): Likewise.
2080         (FE_TOWARDZERO): Likewise.
2081         (FE_UPWARD): Likewise.
2082         (FE_DOWNWARD): Likewise.
2083         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
2084         (FE_DIVBYZERO): Likewise.
2085         (FE_OVERFLOW): Likewise.
2086         (FE_UNDERFLOW): Likewise.
2087         (FE_INEXACT): Likewise.
2088         (FE_TONEAREST): Likewise.
2089         (FE_DOWNWARD): Likewise.
2090         (FE_UPWARD): Likewise.
2091         (FE_TOWARDZERO): Likewise.
2092         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
2093         (FE_UNDERFLOW): Likewise.
2094         (FE_OVERFLOW): Likewise.
2095         (FE_DIVBYZERO): Likewise.
2096         (FE_INVALID): Likewise.
2097         (FE_TONEAREST): Likewise.
2098         (FE_TOWARDZERO): Likewise.
2099         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
2100         (FE_OVERFLOW): Likewise.
2101         (FE_UNDERFLOW): Likewise.
2102         (FE_DIVBYZERO): Likewise.
2103         (FE_INEXACT): Likewise.
2104         (FE_TONEAREST): Likewise.
2105         (FE_TOWARDZERO): Likewise.
2106         (FE_UPWARD): Likewise.
2107         (FE_DOWNWARD): Likewise.
2108         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
2109         (FE_DIVBYZERO): Likewise.
2110         (FE_OVERFLOW): Likewise.
2111         (FE_UNDERFLOW): Likewise.
2112         (FE_INEXACT): Likewise.
2113         (FE_TONEAREST): Likewise.
2114         (FE_DOWNWARD): Likewise.
2115         (FE_UPWARD): Likewise.
2116         (FE_TOWARDZERO): Likewise.
2117
2118 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
2119
2120         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
2121
2122 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
2123
2124         * scripts/cross-test-ssh.sh (command): Use newlines to separate
2125         commands.  Quote $PWD.
2126         (blacklist_exports): Don't use remove_newlines.  Replace "declare
2127         -x" by "export".
2128         (remove_newlines): Remove.
2129
2130 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2131
2132         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
2133         * stdlib/stdlib.h (atof): Moved to ...
2134         * include/bits/stdlib-float.h: Here.  New file.
2135         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
2136         * stdlib/bits/stdlib-float.h: New file.
2137         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
2138         -mno-sse -mno-mmx.
2139         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
2140         <xmmintrin.h>.
2141
2142 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
2143
2144         * conform/conformtest.pl (@headers): Add fenv.h.
2145         * conform/data/fenv.h-data: New file.
2146         * include/fenv.h [_ISOMAC]: Disable all contents of file except
2147         include of <math/fenv.h>.
2148
2149         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
2150         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
2151         && !UNIX98].  Enables tests for XOPEN2K8.
2152         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
2153         POSIX2008]: Likewise.
2154
2155         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
2156         (struct rusage): Do not expect type or its members.
2157
2158         [BZ #3439]
2159         * math/math.h (FP_NAN): Define macro to integer constant usable in
2160         #if and use that to give value to enum constant.
2161         (FP_INFINITE): Likewise.
2162         (FP_ZERO): Likewise.
2163         (FP_SUBNORMAL): Likewise.
2164         (FP_NORMAL): Likewise.
2165
2166 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
2167
2168         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
2169         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
2170         arguments.
2171
2172 2012-11-02  Roland McGrath  <roland@hack.frob.com>
2173
2174         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
2175         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
2176         autoconf-time if not.
2177         * configure.in: Remove AC_PREREQ.
2178
2179 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2180
2181         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
2182         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
2183         of the internal implementation.
2184
2185 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
2186
2187         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
2188         except include of <misc/sys/syslog.h>.
2189
2190 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
2191
2192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
2193         function returns with a NULL context exit with zero.
2194
2195 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2196
2197         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
2198
2199 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
2200
2201         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
2202         (run_program_cmd): This.
2203         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
2204         (tst_langinfo): New variable.  Use it.
2205
2206 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
2207
2208         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
2209         floating point opcodes.
2210
2211 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
2212
2213         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
2214         variable.
2215
2216         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
2217
2218         * sysdeps/mach/hurd/powerpc: Remove directory.
2219         * sysdeps/mach/powerpc: Likewise.
2220
2221 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
2222
2223         * scripts/check-local-headers.sh: Ignore c++ headers.
2224
2225 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
2226
2227         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
2228         __libc_cleanup_region_start argument.
2229
2230 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
2231
2232         [BZ #14784]
2233         [BZ #14785]
2234         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
2235         x * y using scaling, not as x * y + z.
2236         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2237         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2238         * math/libm-test.inc (fma_test): Add more tests.
2239         (fma_test_towardzero): Likewise.
2240         (fma_test_downward): Likewise.
2241         (fma_test_upward): Likewise.
2242
2243 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
2244
2245         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
2246
2247 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
2248
2249         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
2250         New variable.
2251
2252 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
2253
2254         * rt/tst-shm.c (worker): Correct checking for mmap failure.
2255
2256 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
2257
2258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2259         Fix sort order.
2260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2261         Likewise.
2262
2263 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2264
2265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2266         Fix the order of the list for glibc 2.17.
2267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2268         Likewise.
2269
2270 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
2271
2272         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2273
2274 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
2275
2276         [BZ #14610]
2277         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
2278         for low part of x being zero before using __atanl (y).
2279         * math/libm-test.inc (atan2_test): Add another test.
2280
2281         * manual/install.texi (Configuring and compiling): Document
2282         general use of test-wrapper and test-wrapper-env.
2283         * INSTALL: Regenerated.
2284
2285         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
2286         (__fma): Do not extract and scale down low bits on after-rounding
2287         systems when result rounded to normal precision would have normal
2288         exponent.
2289         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
2290         (__fmal): Do not extract and scale down low bits on after-rounding
2291         systems when result rounded to normal precision would have normal
2292         exponent.
2293         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
2294         (__fmal): Do not extract and scale down low bits on after-rounding
2295         systems when result rounded to normal precision would have normal
2296         exponent.
2297         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
2298         macro.
2299         (fma_test): Add more tests.
2300         (fma_test_towardzero): Likewise.
2301         (fma_test_downward): Likewise.
2302         (fma_test_upward): Likewise.
2303
2304 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2305
2306         * sysdeps/i386/tininess.h: Renamed to ...
2307         * sysdeps/x86/tininess.h: This.
2308         * sysdeps/x86_64/tininess.h: Removed.
2309
2310 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
2311
2312         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
2313         input.  Use $(build-program-cmd).
2314         ($(objpfx)tst-array1-static.out): Likewise.
2315         ($(objpfx)tst-array2.out): Likewise.
2316         ($(objpfx)tst-array3.out): Likewise.
2317         ($(objpfx)tst-array4.out): Likewise.
2318         ($(objpfx)tst-array5.out): Likewise.
2319         ($(objpfx)tst-array5-static.out): Likewise.
2320
2321 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
2322
2323         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
2324         if defined.
2325
2326         * nss/nsswitch.h (nss_interface_function): Provide new
2327         macro for use with NSS functions.
2328         * grp/initgroups.c: Use new macro.
2329         * nss/getXXbyYY.c: Likewise.
2330         * nss/getXXbyYY_r.c: Likewise.
2331         * nss/getXXent.c: Likewise.
2332         * nss/getXXent_r.c: Likewise.
2333         * sysdeps/posix/getaddrinfo.c: Likewise.
2334
2335 2012-10-30  Andreas Jaeger  <aj@suse.de>
2336
2337         * po/ru.po: Update Russion translation from translation project.
2338
2339 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
2340
2341         [BZ #14152]
2342         [BZ #14783]
2343         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
2344         result and shift together with sticky bit instead of replicating
2345         round-to-nearest rounding.
2346         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2347         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2348         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
2349         missing underflow exceptions.
2350         (fma_test_towardzero): Add more tests.
2351         (fma_test_downward): Likewise.
2352         (fma_test_upward): Likewise.
2353
2354         [BZ #14047]
2355         * sysdeps/generic/tininess.h: New file.
2356         * sysdeps/i386/tininess.h: Likewise.
2357         * sysdeps/sh/tininess.h: Likewise.
2358         * sysdeps/x86_64/tininess.h: Likewise.
2359         * stdlib/tst-strtod-underflow.c: Likewise.
2360         * stdlib/tst-tininess.c: Likewise.
2361         * stdlib/strtod_l.c: Include <tininess.h>.
2362         (round_and_return): Do not set errno for exact underflow cases.
2363         Force an underflow exception when setting errno for underflow.
2364         Determine underflow based on rounding to normal precision if
2365         TININESS_AFTER_ROUNDING.
2366         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
2367         ERANGE for exact underflow cases.
2368         * stdlib/Makefile (tests): Add tst-tininess and
2369         tst-strtod-underflow.
2370         ($(objpfx)tst-tininess): Use $(link-libm).
2371         ($(objpfx)tst-strtod-underflow): Likewise.
2372
2373 2012-10-30  Andreas Jaeger  <aj@suse.de>
2374
2375         [BZ#14767]
2376         * elf/Makefile (tests): Remove conditional for have-initfini-array
2377         since this is now always required and the variable does not exist
2378         anymore.
2379         (tests-static): Likewise.
2380         (modules-names): Likewise.
2381
2382         * po/eo.po: Add Esperanto translation from translation project.
2383
2384         * elf/tst-array1.c (fini_array): Make writeable so that it can be
2385         merged with constructor/destructor.
2386         (init_array): Likewise.
2387         * elf/tst-array2dep.c (fini_array): Likewise.
2388         (init_array): Likewise.
2389
2390 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
2391
2392         * manual/message.texi: Delete @cartouche tags.
2393
2394 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
2395
2396         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
2397         EOPNOTSUPP.
2398         * sysdeps/mach/hurd/fsync.c: Likewise.
2399
2400         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
2401         [_POSIX_REALTIME_SIGNALS]: Change condition to
2402         [_POSIX_REALTIME_SIGNALS > 0].
2403
2404 2012-10-27  Andreas Jaeger  <aj@suse.de>
2405
2406         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
2407         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
2408         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
2409         [__WORDSIZE != 64]: Likewise.
2410
2411 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
2412
2413         *  iconvdata/tst-table.sh: Remove ${SHELL}.
2414         *  iconvdata/tst-tables.sh: Likewise.
2415
2416 2012-10-25  David S. Miller  <davem@davemloft.net>
2417
2418         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2419         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
2420         of strtoull.
2421
2422         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
2423         ifunc-impl-list.c
2424         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2425         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
2426         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
2427         file.
2428
2429 2012-10-25  Roland McGrath  <roland@hack.frob.com>
2430
2431         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2432         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
2433         __getdirentries.
2434
2435 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
2436             Jim Blandy  <jimb@codesourcery.com>
2437
2438         * scripts/cross-test-ssh.sh: New file.
2439         * manual/install.texi (Configuring and compiling): Document use of
2440         cross-test-ssh.sh.
2441         * INSTALL: Regenerated.
2442
2443 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
2444
2445         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
2446         EOPNOTSUPP.
2447
2448 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
2449
2450         * Makeconfig (run-program-prefix): Fix comment.
2451
2452 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
2453             Jim Blandy  <jimb@codesourcery.com>
2454
2455         * Makeconfig (test-wrapper): New variable,
2456         (test-wrapper-env): Likewise.
2457         [$(cross-compiling) = yes && $(test-wrapper) != ""]
2458         (run-built-tests): Define to yes.
2459         (run-program-prefix): Use $(test-wrapper).
2460         (built-program-cmd): Likewise.
2461         * Rules (make-test-out): Use $(test-wrapper-env) and
2462         $(host-built-program-cmd).
2463         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
2464         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
2465         tst-pathopt.sh.
2466         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
2467         $(test-wrapper-env) to tst-rtld-load-self.sh.
2468         ($(objpfx)order2.out): Use $(test-wrapper).
2469         ($(objpfx)tst-initorder.out): Likewise.
2470         ($(objpfx)tst-initorder2.out): Likewise.
2471         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
2472         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
2473         (test_wrapper_env): New variable.  Use it to run ld.so.
2474         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
2475         Use it to run ld.so.
2476         (test_wrapper_env): Likewise.
2477         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
2478         $(test-wrapper) to run-iconv-test.sh.
2479         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
2480         (ICONV): Use $test_wrapper.
2481         * posix/Makefile ($(objpfx)globtest.out): Pass
2482         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
2483         globtest.sh, not $(run-program-prefix).
2484         * posix/globtest.sh (run_via_rtld_prefix): New variable.
2485         (test_wrapper): Likewise.
2486         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
2487         set together with run_via_rtld_prefix.
2488         (run_program_prefix): Define in terms of test_wrapper and
2489         run_via_rtld_prefix.
2490
2491 2012-10-24  Roland McGrath  <roland@hack.frob.com>
2492
2493         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
2494         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
2495         Targets removed.
2496
2497         [BZ #14743]
2498         * include/time.h: Remove librt_hidden_proto (clock_gettime).
2499         Declare __clock_getres, __clock_gettime, __clock_settime,
2500         __clock_nanosleep, and __clock_getcpuclockid.
2501         * rt/clock_gettime.c: Define __clock_gettime as an alias.
2502         Remove librt_hidden_def (clock_gettime).
2503         * sysdeps/unix/clock_gettime.c: Likewise.
2504         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
2505         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
2506         * rt/clock_getres.c: Define __clock_getres as an alias.
2507         * sysdeps/posix/clock_getres.c: Likewise.
2508         * rt/clock_settime.c: Define __clock_settime as an alias.
2509         * sysdeps/unix/clock_settime.c: Likewise.
2510         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
2511         * sysdeps/unix/clock_nanosleep.c: Likewise.
2512         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2513         * rt/clock-compat.c: New file.
2514         * rt/Makefile (librt-routines): Add clock-compat and move
2515         $(clock-routines) to ...
2516         (routines): ... here, new variable.
2517         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
2518         Don't add get_clockfreq here.
2519         * rt/Versions (libc: GLIBC_2.17): New version set.
2520         Add clock_* symbols here.
2521         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
2522         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
2523         (GLIBC_2.17): Add clock_* symbols.
2524         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2525         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2526         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2528         Likewise.
2529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2530         Likewise.
2531         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2532         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2534         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2535         * NEWS: Mention the move.
2536
2537         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
2538         Use __open, __read, __close rather than their public counterparts.
2539         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2540         (__get_clockfreq_via_cpuinfo): Likewise.
2541         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
2542         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
2543
2544         * config.h.in (HAVE_IFUNC): New #undef.
2545         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
2546         was successful.
2547         * configure: Regenerated.
2548
2549 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
2550
2551         * configure.in: Move READELF check to start of file.
2552         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
2553         libc_cv_asm_gnu_indirect_function in the process.
2554         * configure: Regenerated.
2555
2556 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
2557
2558         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
2559         send the output to /dev/null.
2560         (libc_cv_cc_with_libunwind): Likewise.
2561         (libc_cv_as_noexecstack): Likewise.
2562         * configure: Regenerate.
2563
2564 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
2565
2566         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
2567
2568         * posix/globtest.sh (TMPDIR): Do not set.
2569         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
2570         (testout): Likewise.
2571
2572 2012-10-24  Andreas Jaeger  <aj@suse.de>
2573
2574         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
2575         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
2576         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
2577         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
2578         posix_fadvise64, posix_fallocate64.
2579
2580         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
2581         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
2582         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
2583         Likewise.
2584         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
2585         Likewise.
2586         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
2587
2588         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
2589         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
2590         <bits/fcntl-linux.h>.
2591         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
2592
2593         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
2594         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
2595         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
2596         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
2597         [__WORDSIZE != 64]: Likewise.
2598
2599 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2600
2601         * Makeconfig (run-built-tests): New variable.
2602         * Rules [$(cross-compiling) = yes]: Change condition to
2603         [$(run-built-tests) = no].
2604         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
2605         to [$(run-built-tests) = yes].
2606         * elf/Makefile [$(cross-compiling) = no]: Likewise
2607         * grp/Makefile [$(cross-compiling) = no]: Likewise.
2608         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
2609         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
2610         * intl/Makefile [$(cross-compiling) = no]: Likewise.
2611         * io/Makefile [$(cross-compiling) = no]: Likewise.
2612         * libio/Makefile [$(cross-compiling) = no]: Likewise.
2613         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
2614         * misc/Makefile [$(cross-compiling) = no]: Likewise.
2615         * posix/Makefile [$(cross-compiling) = no]: Likewise.
2616         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
2617         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
2618         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
2619         * string/Makefile [$(cross-compiling) = no]: Likewise.
2620
2621         * posix/Makefile ($(objpfx)globtest.out): Pass
2622         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
2623         $(rtld-installed-name).
2624         * posix/globtest.sh (elf_objpfx): Remove variable.
2625         (rtld_installed_name): Likewise.
2626         (library_path): Likewise.
2627         (run_program_prefix): New variable.  Use for running globtest
2628         binary.
2629
2630 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
2631             Joseph Myers  <joseph@codesourcery.com>
2632
2633         * Makeconfig (host-built-program-cmd): New variable.
2634         * elf/Makefile (tst-stackguard1-ARGS): Use
2635         $(host-built-program-cmd).
2636         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
2637         (tst-spawn-ARGS): Likewise.
2638         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
2639
2640 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2641             Jim Blandy  <jimb@codesourcery.com>
2642
2643         * Makeconfig (run-via-rtld-prefix): New variable.
2644         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
2645         (built-program-cmd): Likewise.
2646
2647 2012-10-22  Andreas Jaeger  <aj@suse.de>
2648
2649         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
2650         __O_RSYNC if it exists, otherwise to O_SYNC.
2651
2652 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
2653             Joseph Myers  <joseph@codesourcery.com>
2654
2655         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
2656         /dev/null.
2657         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
2658         from /dev/null
2659         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
2660         /dev/null.
2661
2662 2012-10-22  Andreas Jaeger  <aj@suse.de>
2663
2664         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
2665         Define always.
2666         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
2667
2668         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2669         bits/fcntl-linux.h.
2670
2671         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
2672         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
2673
2674         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
2675         to __O_LARGEFILE.
2676         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
2677         to __O_LARGEFILE.
2678
2679 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
2680             Joseph Myers  <joseph@codesourcery.com>
2681
2682         * config.make.in (NM): New variable.
2683
2684 2012-10-21  Andreas Jaeger  <aj@suse.de>
2685
2686         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
2687         definitions and declarations that are provided by
2688         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2689
2690 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2691
2692         [BZ #14683]
2693         * elf/Makefile (tests-static): Add tst-leaks1-static.
2694         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
2695         ($(objpfx)tst-leaks1-static): New rule.
2696         ($(objpfx)tst-leaks1-static-mem): Likewise.
2697         (tst-leaks1-static-ENV): New macro.
2698         * elf/dl-open.c (dl_open_worker): Check the main application
2699         only if SHARED is defined.
2700         * elf/tst-leaks1-static.c: New file.
2701
2702 2012-10-20  Andreas Jaeger  <aj@suse.de>
2703
2704         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
2705         generic values for Linux.
2706         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
2707         and declarations that are provided by <bits/fcntl-linux.h> and
2708         include <bits/fcntl-linux.h>.
2709         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2710         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2711
2712 2012-10-20  Roland McGrath  <roland@hack.frob.com>
2713
2714         * io/fcntl.h: Move include of <bits/types.h> to the top and
2715         include it unconditionally.
2716
2717 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2718
2719         * wcsmbs/Makefile (tests-ifunc): New variable.
2720         (tests): Add $(tests-ifunc).
2721         * wcsmbs/test-wcschr-ifunc.c: New file.
2722         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
2723         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
2724         * wcsmbs/test-wcslen-ifunc.c: Likewise.
2725         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
2726         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
2727
2728         * string/Makefile (tests-ifunc): New variable.
2729         (tests): Add $(tests-ifunc).
2730         * string/test-memccpy.c (TEST_NAME): New macro.
2731         * string/test-memchr.c (TEST_NAME): Likewise.
2732         * string/test-memcmp.c (TEST_NAME): Likewise.
2733         * string/test-memcpy.c (TEST_NAME): Likewise.
2734         * string/test-memmem.c (TEST_NAME): Likewise.
2735         * string/test-memmove.c (TEST_NAME): Likewise.
2736         * string/test-memset.c (TEST_NAME): Likewise.
2737         * string/test-rawmemchr.c (TEST_NAME): Likewise.
2738         * string/test-stpcpy.c (TEST_NAME): Likewise.
2739         * string/test-stpncpy.c (TEST_NAME): Likewise.
2740         * string/test-strcasecmp.c (TEST_NAME): Likewise.
2741         * string/test-strcasestr.c (TEST_NAME): Likewise.
2742         * string/test-strcat.c (TEST_NAME): Likewise.
2743         * string/test-strchr.c (TEST_NAME): Likewise.
2744         * string/test-strcmp.c(TEST_NAME): Likewise.
2745         * string/test-strcpy.c (TEST_NAME): Likewise.
2746         * string/test-strcspn.c (TEST_NAME): Likewise.
2747         * string/test-strlen.c (TEST_NAME): Likewise.
2748         * string/test-strncasecmp.c (TEST_NAME): Likewise.
2749         * string/test-strncmp.c (TEST_NAME): Likewise.
2750         * string/test-strncpy.c (TEST_NAME): Likewise.
2751         * string/test-strnlen.c (TEST_NAME): Likewise.
2752         * string/test-strpbrk.c (TEST_NAME): Likewise.
2753         * string/test-strrchr.c (TEST_NAME): Likewise.
2754         * string/test-strspn.c (TEST_NAME): Likewise.
2755         * string/test-strstr.c (TEST_NAME): Likewise.
2756         * string/test-bcopy-ifunc.c: New file.
2757         * string/test-bzero-ifunc.c: Likewise.
2758         * string/test-memccpy-ifunc.c: Likewise.
2759         * string/test-memchr-ifunc.c: Likewise.
2760         * string/test-memcmp-ifunc.c: Likewise.
2761         * string/test-memcpy-ifunc.c: Likewise.
2762         * string/test-memmem-ifunc.c: Likewise.
2763         * string/test-memmove-ifunc.c: Likewise.
2764         * string/test-mempcpy-ifunc.c: Likewise.
2765         * string/test-memset-ifunc.c: Likewise.
2766         * string/test-rawmemchr-ifunc.c: Likewise.
2767         * string/test-stpcpy-ifunc.c: Likewise.
2768         * string/test-stpncpy-ifunc.c: Likewise.
2769         * string/test-strcasecmp-ifunc.c: Likewise.
2770         * string/test-strcasestr-ifunc.c: Likewise.
2771         * string/test-strcat-ifunc.c: Likewise.
2772         * string/test-strchr-ifunc.c: Likewise.
2773         * string/test-strchrnul-ifunc.c: Likewise.
2774         * string/test-strcmp-ifunc.c: Likewise.
2775         * string/test-strcpy-ifunc.c: Likewise.
2776         * string/test-strcspn-ifunc.c: Likewise.
2777         * string/test-strlen-ifunc.c: Likewise.
2778         * string/test-strncasecmp-ifunc.c: Likewise.
2779         * string/test-strncat-ifunc.c: Likewise.
2780         * string/test-strncmp-ifunc.c: Likewise.
2781         * string/test-strncpy-ifunc.c: Likewise.
2782         * string/test-strnlen-ifunc.c: Likewise.
2783         * string/test-strpbrk-ifunc.c: Likewise.
2784         * string/test-strrchr-ifunc.c: Likewise.
2785         * string/test-strspn-ifunc.c: Likewise.
2786         * string/test-strstr-ifunc.c: Likewise.
2787
2788         * debug/Makefile (tests-ifunc): New variable.
2789         (tests): Add $(tests-ifunc).
2790         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
2791         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
2792         * debug/test-stpcpy_chk-ifunc.c: New file.
2793         * debug/test-strcpy_chk-ifunc.c: Likewise.
2794
2795 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2796
2797         [BZ #13601]
2798         * elf/dl-load.c (open_verify): Retry read if the entire ELF
2799         header is not read in.
2800
2801 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
2802
2803         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
2804         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
2805         directly.  Pass built executable to script as
2806         $(built-program-cmd).
2807         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
2808         $testprogram without using LD_LIBRARY_PATH and $ldso.
2809
2810         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2811         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2812         $(rtld-installed-name).
2813         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2814         (rtld_installed_name): Likewise.
2815         (library_path): Likewise.
2816         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
2817         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2818         $(run-program-prefix) to tst-tables.sh.
2819         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
2820         it to run tst-table-from and tst-table-to.
2821         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2822         Pass it to tst-table.sh.
2823         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2824         $(run-program-prefix) to tst-gettext.sh.
2825         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2826         tst-translit.sh.
2827         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2828         tst-gettext2.sh.
2829         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
2830         to run tst-gettext.
2831         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
2832         to run tst-gettext2.
2833         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
2834         to run tst-translit.
2835         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2836         $(run-program-prefix) to tst-mtrace.sh.
2837         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2838         to run tst-mtrace.
2839         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2840         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2841         $(rtld-installed-name).
2842         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2843         (rtld_installed_name): Likewise.
2844         (run_program_prefix): New variable.  Use it to run wordexp-test.
2845
2846         * Makeconfig (ARCH): Remove all definitions.
2847         (machine): Likewise.
2848         [ARCH]: Remove conditional code.
2849         [!objdir]: Give error.
2850         [!objdir] (objpfx): Remove.
2851         [!objdir] (common-objpfx): Likewise.
2852         [!objdir] (common-objdir): Likewise.
2853         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2854         AC_CONFIG_FILES call.
2855         * configure: Regenerated.
2856
2857         [BZ #13888]
2858         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2859         or TMPDIR.
2860         (testout): Likewise.
2861
2862         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2863         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2864         $(rtld-installed-name).
2865         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2866         (rtld_installed_name): Likwise.
2867         (runit): Remove function.
2868         (run_getconf): New variable,  Use it for running getconf binary.
2869
2870 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2871
2872         [BZ #14716]
2873         * string/test-memmem.c (check_result): New function.
2874         (do_one_test): Use it.
2875         (check1): New function.
2876         (test_main): Use it.
2877
2878 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2879
2880         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2881
2882 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2883
2884         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2885         (_G_LSEEK64): Likewise.
2886         (_G_MMAP64): Likewise.
2887         (_G_FSTAT64): Likewise.
2888         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2889         (_G_LSEEK64): Likewise.
2890         (_G_MMAP64): Likewise.
2891         (_G_FSTAT64): Likewise.
2892         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2893         unconditional.  Call __mmap64 directly.
2894         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2895         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2896         __lseek64 directly.
2897         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2898         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2899         __mmap64 directly.
2900         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2901         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2902         __lseek64 directly.
2903         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2904         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2905         __lseek64 directly.
2906         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2907         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2908         __lseek64 directly.
2909         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2910         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2911         __fxstat64 directly.
2912         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2913         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2914         unconditional.
2915         (freopen64) [!_G_OPEN64]: Remove conditional code.
2916         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2917         unconditional.
2918         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2919         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2920         unconditional.
2921         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2922         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2923         unconditional.
2924         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2925         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2926         unconditional.
2927         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2928         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2929         unconditional.
2930         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2931         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2932         unconditional.
2933         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2934         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2935         unconditional.
2936         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2937
2938 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2939
2940         [BZ #12140]
2941         * manual/memory.texi (Malloc Tunable Parameters): Add note
2942         about free list pointers overwriting some perturb bytes.
2943         Wording suggested by Roland McGrath.
2944
2945 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2946
2947         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2948         (lgamma_test): Likewise.
2949         (tgamma_test): Likewise.
2950
2951 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2952
2953         [BZ #14700]
2954         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2955         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2956
2957 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2958
2959         * NEWS: Mention BZ #14716.
2960         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2961         when removing AVAILABLE1_USES_J macro.
2962
2963 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2964
2965         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2966         (__bswap_64): __uint64_t for unsigned 64-bit int.
2967
2968 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2969
2970         * include/string.h (memmem): Declare libc hidden alias.
2971         * string/memmem.c (memmem): Define libc hidden alias.
2972         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2973         __read, __close instead of open, read, close.
2974
2975 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2976
2977         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2978         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2979         global and hidden.
2980         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2981         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2982         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2983         Likewise.
2984         (__rawmemchr_sse2): Likewise.
2985         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2986         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2987         (__strchr_sse2): Likewise.
2988         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2989         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2990         (__strcasecmp_sse2): Likewise.
2991         (__strncasecmp_sse2): Likewise.
2992         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2993         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2994         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2995         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2996         (__strrchr_sse2): Likewise.
2997         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2998         ifunc-impl-list.c.
2999         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
3000         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
3001         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
3002         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
3003         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
3004         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
3005         * sysdeps/x86_64/multiarch/memset.S: Likewise.
3006         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
3007         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
3008         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
3009         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
3010         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
3011         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
3012         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
3013         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
3014         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
3015         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
3016         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
3017         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
3018         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
3019         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
3020         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
3021         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
3022         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
3023         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
3024         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
3025         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
3026         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3027         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
3028         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
3029
3030         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
3031         global and hidden.
3032         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
3033         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
3034         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
3035         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
3036         Likewise.
3037         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
3038         Likewise.
3039         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
3040         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
3041         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
3042         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
3043         ifunc-impl-list.c.
3044         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
3045         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
3046         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
3047         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
3048         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
3049         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
3050         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
3051         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
3052         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
3053         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
3054         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
3055         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
3056         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
3057         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
3058         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
3059         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
3060         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
3061         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
3062         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
3063         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
3064         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
3065         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
3066         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
3067         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
3068         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
3069         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
3070         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
3071         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
3072         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
3073         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
3074         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
3075         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
3076         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
3077         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
3078         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
3079         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
3080         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
3081         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
3082         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
3083         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
3084         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
3085
3086         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
3087         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
3088         * include/ifunc-impl-list.h: New file.
3089         * misc/ifunc-impl-list.c: Likewise.
3090         * misc/Makefile (routines): Add ifunc-impl-list.
3091         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
3092         * string/test-string.h: Include <ifunc-impl-list.h>.
3093         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
3094         impl_array): New variables.
3095         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
3096         are defined.
3097         (test_init): Call __libc_ifunc_impl_list to initialize
3098         func_list if TEST_IFUNC and TEST_NAME are defined.
3099
3100         * string/Makefile (strop-tests): Add bcopy and bzero.
3101         * string/test-bcopy.c: New file.
3102         * string/test-bzero.c: Likewise.
3103         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
3104         defined.
3105         * string/test-memset.c: Support bzero test if TEST_BZERO is
3106         defined.
3107         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
3108         __libc_memmove.
3109         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
3110         __libc_memset.
3111         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
3112         of memset.
3113
3114 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
3115
3116         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
3117         * configure: Regenerated.
3118
3119         * Makeconfig (+link-static-before-libc): Don't include
3120         $(link-static-libc).
3121
3122         * libio/libio.h (_IO_pos_t): Remove.
3123
3124 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
3125
3126         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
3127         McGrath.
3128
3129 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
3130
3131         * crypt/crypt-entry.c: Include fips-private.h.
3132         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
3133         * crypt/md5c-test.c (main): Tolerate disabled MD5.
3134         * sysdeps/unix/sysv/linux/fips-private.h: New file.
3135         * sysdeps/generic/fips-private.h: New file, dummy fallback.
3136
3137 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
3138
3139         * crypt/crypt-private.h: Include stdbool.h.
3140         (_ufc_setup_salt_r): Return bool.
3141         * crypt/crypt-entry.c: Include errno.h.
3142         (__crypt_r): Return NULL with EINVAL for bad salt.
3143         * crypt/crypt_util.c (bad_for_salt): New.
3144         (_ufc_setup_salt_r): Check that salt is long enough and within
3145         the specified alphabet.
3146         * crypt/badsalttest.c: New file.
3147         * crypt/Makefile (tests): Add it.
3148         ($(objpfx)badsalttest): New.
3149
3150 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
3151
3152         * NEWS: Add entry for BZ #14602.
3153
3154 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
3155
3156         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
3157         type-generic.
3158         * math/libm-test.inc: Update comment listing what functions and
3159         macros are tested.
3160         (isgreater_test): New function.
3161         (isgreaterequal_test): Likewise.
3162         (isless_test): Likewise.
3163         (islessequal_test): Likewise.
3164         (islessgreater_test): Likewise.
3165         (isunordered_test): Likewise.
3166         (main): Call the new functions.
3167
3168 2012-10-09  Roland McGrath  <roland@hack.frob.com>
3169
3170         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
3171         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
3172         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
3173         * sysdeps/i386/configure: Regenerated.
3174         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
3175         * sysdeps/mach/configure: Regenerated.
3176         * sysdeps/mach/hurd/configure: Regenerated.
3177         * sysdeps/powerpc/configure: Regenerated.
3178         * sysdeps/powerpc/powerpc32/configure: Regenerated.
3179         * sysdeps/powerpc/powerpc64/configure: Regenerated.
3180         * sysdeps/s390/s390-32/configure: Regenerated.
3181         * sysdeps/s390/s390-64/configure: Regenerated.
3182         * sysdeps/sh/configure: Regenerated.
3183         * sysdeps/sparc/configure: Regenerated.
3184         * sysdeps/unix/sysv/linux/configure: Regenerated.
3185         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
3186         * sysdeps/x86_64/configure: Regenerated.
3187
3188         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
3189         defined.  Don't check if MAP is NULL.
3190
3191 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
3192
3193         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
3194         (_G_stat64): Likewise.
3195         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
3196         (_G_stat64): Likewise.
3197         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
3198         instead of struct _G_stat64.
3199         * libio/fileops.c (mmap_remap_check): Likewise.
3200         (decide_maybe_mmap): Likewise.
3201         (_IO_new_file_seekoff): Likewise.
3202         (_IO_file_stat): Likewise.
3203         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
3204         _G_off64_t.
3205         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
3206         instead of struct _G_stat64.
3207         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
3208
3209 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
3210
3211         [BZ #14602]
3212         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
3213         Replace with ...
3214         (CHECK_EOL): New macro.
3215         (two_way_short_needle): Check beginning of haystack for EOL.  Use
3216         CHECK_EOL.
3217         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
3218         Replace with CHECK_EOL.
3219         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
3220         Replace with CHECK_EOL.
3221
3222 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
3223
3224         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
3225         type-generic.
3226         * math/libm-test.inc: Update comment listing what functions and
3227         macros are tested.
3228         (finite_test): New function.
3229         (isinf_test): Likewise.
3230         (isnan_test): Likewise.
3231         (fpclassify_test): Test subnormal input.
3232         (isfinite_test): Likewise.
3233         (isnormal_test): Likewise.
3234         (main): Call the new functions.
3235
3236 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
3237
3238         [BZ #14660]
3239         * Makerules (%.dynsym): Force C locale when running
3240         $(OBJDUMP) --dynamic-syms.
3241
3242 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
3243
3244         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
3245         <stdint.h>.
3246
3247 2012-10-06  David S. Miller  <davem@davemloft.net>
3248
3249         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
3250         upper 32-bits of the length value in %o2 since we use branch-on-register
3251         tests which consider the entire 64-bit register.
3252
3253 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
3254
3255         * string/test-strstr.c (check2): Add a test for page boundary.
3256
3257 2012-10-05  David S. Miller  <davem@davemloft.net>
3258
3259         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
3260         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
3261         file.
3262         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
3263         sysdep_routines.
3264         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
3265         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
3266         and bzero when HWCAP_SPARC_CRYPTO is present.
3267
3268 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
3269
3270         [BZ #14602]
3271         * string/test-strstr.c (check2): New function.
3272         (test_main): Call check2.
3273
3274         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
3275         and bug-strchr1.
3276         * string/bug-strcasestr1.c (do_test): Moved to ...
3277         * string/test-strcasestr.c (check1): Here.  New function.
3278         (do_one_test): Break out result checking code into ...
3279         (check_result): This.  New function.
3280         (do_one_test): Call check_result.
3281         (test_main): Call check1.
3282         * string/bug-strchr1.c (do_test): Moved to ...
3283         * string/test-strchr.c (check1): Here.  New function.
3284         (do_one_test): Break out result checking code into ...
3285         (check_result): This.  New function.
3286         (do_one_test): Call check_result.
3287         (test_main): Call check1.
3288         * string/bug-strstr1.c (main): Moved to ...
3289         * string/test-strchr.c (check1): Here.  New function.
3290         (do_one_test): Break out result checking code into ...
3291         (check_result): This.  New function.
3292         (do_one_test): Call check_result.
3293         (test_main): Call check1.
3294         * string/bug-strcasestr1.c: Removed.
3295         * string/bug-strchr1.c: Likewise.
3296         * string/bug-strstr1.c: Likewise.
3297
3298         * elf/Makefile (dl-routines): Add hwcaps.
3299         * elf/dl-support.c (_dl_important_hwcaps): Removed.
3300         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
3301         (_dl_important_hwcaps): Moved to ...
3302         * elf/dl-hwcaps.c: Here.  New file.
3303         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
3304
3305         [BZ #14557]
3306         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
3307         if IS_IN_rtld isn't defined.
3308
3309         * elf/dl-support.c (_dl_sysinfo_map): New.
3310         Include "get-dynamic-info.h" and "setup-vdso.h".
3311         (_dl_non_dynamic_init): Call setup_vdso.
3312         * elf/dynamic-link.h: Don't include <assert.h>.
3313         (elf_get_dynamic_info): Moved to ...
3314         * elf/get-dynamic-info.h: Here.  New file.
3315         * elf/dynamic-link.h: Include "get-dynamic-info.h".
3316         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
3317         * elf/setup-vdso.h: Here.  New file.
3318         * elf/rtld.c: Include "setup-vdso.h".
3319         (dl_main): Call setup_vdso.
3320
3321 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
3322
3323         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
3324         creal in comment listing functions tested.  List finite, isinf,
3325         isnan, isless, islessequal, isgreater, isgreaterequal,
3326         islessgreater, isunordered, lgamma_r and pow10 as functions and
3327         macros not tested.  Mention which functions not tested are aliases
3328         for other functions.  Fix typo.  Note that signs of NaNs are not
3329         tested.
3330
3331         * scripts/config.guess: Update from config.git.
3332         * scripts/config.sub: Likewise.
3333
3334 2012-10-04  Roland McGrath  <roland@hack.frob.com>
3335
3336         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
3337         * misc/madvise.c (madvise): Renamed to __madvise.
3338         Make madvise a weak alias.
3339         * include/sys/mman.h: Declare __madvise.
3340         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
3341         * sysdeps/unix/syscalls.list
3342         (madvise): Make __madvise the strong name, and madvise a weak alias.
3343         * sysdeps/unix/sysv/linux/syscalls.list
3344         (madvise, mmap): Remove redundant entries.
3345         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
3346         * malloc/malloc.c (mtrim): Likewise.
3347         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
3348
3349 2012-10-03  Roland McGrath  <roland@hack.frob.com>
3350
3351         * sysdeps/mach/hurd/dl-cache.c: File removed.
3352         * config.h.in (USE_LDCONFIG): New #undef.
3353         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
3354         * configure: Regenerated.
3355         * elf/Makefile (dl-routines): Add dl-cache only under
3356         [$(use-ldconfig) = yes].
3357         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
3358         cache on [USE_LDCONFIG].
3359         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
3360         [USE_LDCONFIG].
3361         * elf/rtld.c (dl_main): Likewise.
3362
3363 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
3364
3365         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
3366         _SC_LEVEL4_CACHE_LINESIZE.
3367
3368 2012-10-03  Roland McGrath  <roland@hack.frob.com>
3369
3370         * sysdeps/unix/bsd/confstr.h: File removed.
3371
3372 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
3373
3374         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
3375         sys/sdt-config.h.
3376
3377 2012-10-02  Roland McGrath  <roland@hack.frob.com>
3378
3379         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
3380         Make 'mapoff' field ElfW(Off) rather than off_t.
3381
3382 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3383
3384         * nscd/Makefile: Remove nscd-cflags and all its users.
3385         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
3386         (CFLAGS-nonlib): Add compiler flags for nscd modules.
3387
3388         [BZ #10631]
3389         * malloc.c (malloc_printerr): Clarify error message.
3390
3391 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
3392
3393         [BZ #14648]
3394         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3395         Set bit_FMA_Usable if FMA is supported.
3396         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
3397         macro.
3398         (bit_FMA4_Usable): Updated.
3399         (index_FMA_Usable): New macro.
3400         (CPUID_FMA): Likewise
3401         (HAS_FMA): Defined with bit_FMA_Usable.
3402
3403 2012-10-01  Roland McGrath  <roland@hack.frob.com>
3404
3405         * bits/types.h (__swblk_t): Type removed.
3406         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
3407         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
3408         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3409         (__SWBLK_T_TYPE): Likewise.
3410         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3411         (__SWBLK_T_TYPE): Likewise.
3412         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3413         (__SWBLK_T_TYPE): Likewise.
3414         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3415         (__SWBLK_T_TYPE): Likewise.
3416
3417 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
3418             Honza Horak <hhorak@redhat.com>
3419
3420         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
3421         (xdr_mapname): Use YPMAXMAP as maxsize.
3422         (xdr_peername): Use YPMAXPEER as maxsize.
3423         (xdr_keydat): Use YPAXRECORD as maxsize.
3424         (xdr_valdat): Use YPMAXRECORD as maxsize.
3425
3426 2012-10-01  Roland McGrath  <roland@hack.frob.com>
3427
3428         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
3429
3430         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
3431         * csu/init-first.c: ... here.
3432         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
3433         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
3434         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
3435         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
3436         * sysdeps/i386/init-first.c: File removed.
3437         * sysdeps/sh/init-first.c: File removed.
3438
3439 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
3440
3441         [BZ #14645]
3442         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
3443         if x * y might underflow to zero and z is zero.
3444         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3445         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3446         * math/libm-test.inc (min_subnorm_value): New variable.
3447         (fma_test): Add more tests.
3448         (fma_test_towardzero): Likewise.
3449         (fma_test_downward): Likewise
3450         (fma_test_upward): Likewise.
3451         (initialize): Set min_subnorm_value.
3452
3453 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
3454
3455         [BZ #14638]
3456         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
3457         0 + 0.
3458         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
3459         mode for addition resulting in exact zero.
3460         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
3461         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
3462         exact 0 + 0.
3463         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
3464         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3465         * math/libm-test.inc (fma_test): Add more tests.
3466         (fma_test_towardzero): New function.
3467         (fma_test_downward): Likewise.
3468         (fma_test_upward): Likewise.
3469         (main): Call the new functions.
3470
3471 2012-09-28  David S. Miller  <davem@davemloft.net>
3472
3473         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
3474
3475 2012-09-28  Roland McGrath  <roland@hack.frob.com>
3476
3477         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
3478         instead of SIGALRM.
3479
3480         * sysdeps/gnu/_G_config.h: Moved to ...
3481         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
3482         * sysdeps/mach/hurd/_G_config.h: Moved to ...
3483         * sysdeps/generic/_G_config.h: ... here.
3484
3485         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
3486
3487         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
3488
3489         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
3490         Conditionalize target on [libnss_test1.so-version].
3491
3492         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
3493
3494         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
3495         (elfobjdir): Move out of conditionals.
3496
3497         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
3498         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
3499         (__nss_lookup_function): Conditionalize label remove_from_tree on
3500         [!DO_STATIC_NSS || SHARED], matching its only use.
3501
3502 2012-09-28  David S. Miller  <davem@davemloft.net>
3503
3504         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
3505         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
3506         file.
3507         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
3508         sysdep_routines.
3509         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
3510         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
3511         when HWCAP_SPARC_CRYPTO is present.
3512
3513 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
3514
3515         * io/tst-mknodat.c: Create a FIFO instead of a socket.
3516
3517 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
3518
3519         [BZ #6530]
3520         * stdio-common/vfprintf.c (process_string_arg): Revert
3521         2000-07-22 change.
3522
3523 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
3524
3525         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
3526         for testcase.
3527         * stdio-common/tst-sprintf.c: Include <locale.h>
3528         (main): Test sprintf's handling of incomplete multibyte
3529         characters.
3530
3531 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
3532
3533         * elf/dl-runtime.c (VERSYMIDX): Removed.
3534         * elf/dl-version.c (VERSYMIDX): Likewise.
3535         * elf/do-rel.h (VERSYMIDX): Likewise.
3536         (VALIDX): Likewise.
3537         * elf/dynamic-link.h (VERSYMIDX): Likewise.
3538         * elf/rtld.c (VALIDX): Likewise.
3539         (ADDRIDX): Likewise.
3540         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
3541         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
3542         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
3543         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
3544         (VALIDX): Likewise.
3545         (ADDRIDX): Likewise.
3546
3547 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
3548
3549         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
3550
3551 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
3552
3553         [BZ #11438]
3554         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
3555         to global scope.
3556         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
3557         addresses are in the same scope as 192.0.2/24.
3558         * posix/gai.conf: Document new scope table defaults.
3559
3560 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3561
3562         [BZ #5298]
3563         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
3564         for ftell.  Compute offsets from write pointers instead.
3565         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
3566
3567 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3568
3569         [BZ #14543]
3570         * libio/Makefile (tests): New test case tst-fseek.
3571         * libio/tst-fseek.c: New test case to verify that fseek/ftell
3572         combination works in wide mode.
3573         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
3574         state when the external buffer state changes.
3575
3576 2012-09-27  David S. Miller  <davem@davemloft.net>
3577
3578         [BZ #14376]
3579         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
3580         pass reloc->r_addend in as the 'high' argument to
3581         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
3582
3583         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3584
3585 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
3586
3587         * rt/tst-aio2.c: Include <pthread.h>.
3588         * rt/tst-aio3.c: Likewise.
3589
3590 2012-09-27  Steve Ellcey  <sellcey@mips.com>
3591
3592         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
3593
3594 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
3595
3596         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
3597         contents on [SHARED].
3598
3599 2012-09-26  Marek Polacek  <polacek@redhat.com>
3600
3601         [BZ #14530]
3602         [BZ #13741]
3603         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
3604         for C++ and GCC <4.3 as well as for non GCC compilers.
3605
3606 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
3607
3608         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3609
3610 2012-09-25  Roland McGrath  <roland@hack.frob.com>
3611
3612         * Makefile.in (all, install): Declare with .PHONY.
3613         Reported by Michael Hope <michael.hope@linaro.org>.
3614
3615 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3616
3617         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
3618         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
3619         system header.
3620         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
3621         Likewise.
3622         (sydep_routines): Add the new and the internal functions.
3623         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
3624         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
3625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
3626         (GLIBC_2.17): Add the new function.
3627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3628         (GLIBC_2.17): Likewise.
3629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
3630         (GLIBC_2.17): Likewise.
3631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
3632         (GLIBC_2.17): Likewise.
3633         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
3634
3635 2012-09-25  Alan Modra  <amodra@gmail.com>
3636
3637         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
3638         Add release barrier before setting once_control to say
3639         initialisation is done.  Add hints on lwarx.  Use macro in
3640         place of isync.
3641         (clear_once_control): Add release barrier.
3642
3643 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
3644
3645         [BZ #13629]
3646         * math/s_clog.c (__clog): Handle more values close to |z| = 1
3647         specially.
3648         * math/s_clog10.c (__clog10): Likewise.
3649         * math/s_clog10f.c (__clog10f): Likewise.
3650         * math/s_clog10l.c (__clog10l): Likewise.
3651         * math/s_clogf.c (__clogf): Likewise.
3652         * math/s_clogl.c (__clogl): Likewise.
3653         * math/Makefile (libm-calls): Add x2y2m1.
3654         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
3655         (__x2y2m1): Likewise.
3656         (__x2y2m1l): Likewise.
3657         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
3658         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
3659         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
3660         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
3661         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
3662         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
3663         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
3664         * sysdeps/i386/fpu/libm-test-ulps: Update.
3665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3666
3667         [BZ #14621]
3668         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
3669         int as type of variable DEPTH.
3670         (glob): Use size_t instead of int as type of variables NEWCOUNT
3671         and OLD_PATHC.
3672
3673 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3674
3675         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3676         Add s_sincosf-sse2.
3677         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
3678         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
3679         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
3680         macros for using routine as __sincosf_ia32.
3681         Use macro for function declaration and weak_alias.
3682         * sysdeps/i386/fpu/libm-test-ulps: Update.
3683
3684         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
3685         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3686
3687         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
3688         subnormal argument.
3689         * math/s_cexpf.c (__cexpf): Likewise.
3690         * math/s_csinf.c (__csinf): Likewise.
3691         * math/s_csinhf.c (__csinhf): Likewise.
3692         * math/s_ctanf.c (__ctanf): Likewise.
3693         * math/s_ctanhf.c (__ctanhf): Likewise.
3694         * math/s_ccosh.c (__ccoshf): Likewise.
3695         * math/s_cexp.c (__cexpl): Likewise.
3696         * math/s_csin.c (__csin): Likewise.
3697         * math/s_csinh.c (__csinh): Likewise.
3698         * math/s_ctan.c (__ctan): Likewise.
3699         * math/s_ctanh.c (ctanh): Likewise.
3700         * math/s_ccoshl.c (__ccoshl): Likewise.
3701         * math/s_cexpl.c (__cexpl): Likewise.
3702         * math/s_csinl.c (__csinl): Likewise.
3703         * math/s_csinhl.c (__csinhl): Likewise.
3704         * math/s_ctanl.c (__ctanl): Likewise.
3705         * math/s_ctanhl.c (__ctanhl): Likewise.
3706
3707 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
3708
3709         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
3710         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
3711         (_IO_off_t): Define to __off_t, not _G_off_t.
3712         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
3713         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
3714         (_IO_wint_t): Define to wint_t, not _G_wint_t.
3715         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
3716         type of __dummy and __dummy2 fields.
3717         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
3718         (_G_ssize_t): Likewise.
3719         (_G_off_t): Likewise.
3720         (_G_pid_t): Likewise.
3721         (_G_uid_t): Likewise.
3722         (_G_wchar_t): Likewise.
3723         (_G_wint_t): Likewise.
3724         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
3725         (_G_ssize_t): Likewise.
3726         (_G_off_t): Likewise.
3727         (_G_pid_t): Likewise.
3728         (_G_uid_t): Likewise.
3729         (_G_wchar_t): Likewise.
3730         (_G_wint_t): Likewise.
3731         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
3732         (_G_ssize_t): Likewise.
3733         (_G_off_t): Likewise.
3734         (_G_pid_t): Likewise.
3735         (_G_uid_t): Likewise.
3736         (_G_wchar_t): Likewise.
3737         (_G_wint_t): Likewise.
3738
3739 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3740
3741         * malloc/arena.c: Include malloc-sysdep.h.
3742         (shrink_heap): Use check_may_shrink_heap to decide if madvise
3743         is sufficient to shrink the heap or an unmap is needed.
3744         * sysdeps/generic/malloc-sysdep.h: New file.  Define
3745         new function check_may_shrink_heap.
3746         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
3747         new function check_may_shrink_heap.
3748
3749 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3750
3751         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
3752         comments.
3753
3754 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
3755
3756         * catgets/test-gencat.sh: Add "set -e".
3757         * elf/tst-pathopt.sh: Likewise.
3758         * grp/tst_fgetgrent.sh: Likewise.
3759         * iconvdata/run-iconv-test.sh: Likewise.
3760         * intl/tst-gettext.sh: Likewise.
3761         * intl/tst-gettext2.sh: Likewise.
3762         * intl/tst-gettext4.sh: Likewise.
3763         * intl/tst-gettext6.sh: Likewise.
3764         * intl/tst-translit.sh: Likewise.
3765         * io/ftwtest-sh: Likewise.
3766         * libio/test-freopen.sh: Likewise.
3767         * malloc/tst-mtrace.sh: Likewise.
3768         * posix/globtest.sh: Likewise.
3769         * posix/tst-getconf.sh: Likewise.
3770         * posix/wordexp-tst.sh: Likewise.
3771         * stdio-common/tst-printf.sh: Likewise.
3772         * stdio-common/tst-unbputc.sh: Likewise.
3773         * stdlib/tst-fmtmsg.sh: Likewise.
3774         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3775         * catgets/Makefile: Do not specify -e option when running
3776         testsuite shell scripts.
3777         * elf/Makefile: Likewise.
3778         * grp/Makefile: Likewise.
3779         * iconvdata/Makefile: Likewise.
3780         * intl/Makefile: Likewise.
3781         * io/Makefile: Likewise.
3782         * libio/Makefile: Likewise.
3783         * malloc/Makefile: Likewise.
3784         * posix/Makefile: Likewise.
3785         * stdio-common/Makefile: Likewise.
3786         * stdlib/Makefile: Likewise.
3787         * sysdeps/x86_64/Makefile: Likewise.
3788
3789         * io/ftwtest-sh: Add copyright header.
3790         * posix/globtest.sh: Likewise.
3791         * posix/tst-getconf.sh: Likewise.
3792         * posix/wordexp-tst.sh: Likewise.
3793         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3794
3795 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3796
3797         [BZ #13679]
3798         * Makeconfig (+link): Defined as $(+link-static) if
3799         $(build-shared) isn't yes.
3800         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
3801         isn't yes.
3802         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
3803
3804         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3805
3806         [BZ #14562]
3807         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3808         new chunk size with MALLOC_ALIGN_MASK.
3809
3810 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
3811
3812         [BZ #5044]
3813         * stdio-common/printf_fphex.c: Include <stdbool.h> and
3814         <rounding-mode.h>.
3815         (__printf_fphex): Determine rounding using get_rounding_mode and
3816         round_away.
3817         * stdio-common/tst-printf-round.c (struct hex_test): New
3818         structure.
3819         (hex_tests): New variable.
3820         (test_hex_in_one_mode): New function.
3821         (do_test): Also run tests for hex float output.
3822
3823 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
3824
3825         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3826         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3827         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3828         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3829         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3830         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3831         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3832         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3833
3834 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3835
3836         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3837         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3838         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3839         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3840
3841 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3842
3843         [BZ #14579]
3844         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3845         mode only.
3846         * elf/tst-rtld-load-self.sh: New test.
3847         * elf/Makefile: Run it.
3848
3849 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3850
3851         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3852         (tst-writev-ENV): Remove.
3853         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3854
3855 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3856
3857         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3858
3859 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3860
3861         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3862         unconditional.
3863         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3864         Likewise.
3865         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3866         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3867         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3868         Likewise.
3869
3870 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3871
3872         [BZ #14587]
3873         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3874         * config.make.in (have-cpp-asm-debuginfo): Removed.
3875         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3876         * configure: Regenerated.
3877
3878 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3879
3880         [BZ #5044]
3881         * stdio-common/printf_fp.c: Include <stdbool.h> and
3882         <rounding-mode.h>.
3883         (___printf_fp): Determine rounding using get_rounding_mode and
3884         round_away.
3885         * stdio-common/tst-printf-round.c: New file.
3886         * stdio-common/Makefile (tests): Add tst-printf-round.
3887         (link-libm): New variable.
3888         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3889
3890 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3891
3892         [BZ #14576]
3893         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3894         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3895         Likewise.
3896         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3897         Likewise.
3898
3899 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3900
3901         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3902         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3903         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3904         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3905
3906 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3907
3908         [BZ #14518]
3909         * include/rounding-mode.h: New file.
3910         * sysdeps/generic/get-rounding-mode.h: Likewise.
3911         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3912         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3913         (MAX_VALUE): New macro.
3914         (MIN_VALUE): Likewise.
3915         (overflow_value): New function.
3916         (underflow_value): Likewise.
3917         (round_and_return): Use overflow_value and underflow_value to
3918         determine return values in overflow and underflow cases.  Use
3919         round_away to determine rounding depending on rounding mode.
3920         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3921         determine return values in overflow and underflow cases.
3922         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3923         (struct test_results): New structure.
3924         (struct test): Use struct test_results to store expected results
3925         for all rounding modes.
3926         (TEST): Include expected results for all rounding modes.
3927         (test_in_one_mode): New function.
3928         (do_test): Use test_in_one_mode to compute and check results.
3929         Check results for all rounding modes.
3930         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3931         $(link-libm).
3932
3933 2012-12-09  Allan McRae  <allan@archlinux.org>
3934
3935         * sysdeps/i386/fpu/libm-test-ulps: Update
3936
3937 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3938
3939         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3940         (_G_int32_t): Likewise.
3941         (_G_uint16_t): Likewise.
3942         (_G_uint32_t): Likewise.
3943         (_G_HAVE_BOOL): Likewise.
3944         (_G_HAVE_ATEXIT): Likewise.
3945         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3946         (_G_HAVE_IO_FILE_OPEN): Likewise.
3947         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3948         (_G_int32_t): Likewise.
3949         (_G_uint16_t): Likewise.
3950         (_G_uint32_t): Likewise.
3951         (_G_HAVE_BOOL): Likewise.
3952         (_G_HAVE_ATEXIT): Likewise.
3953         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3954         (_G_HAVE_IO_FILE_OPEN): Likewise.
3955         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3956         (_G_int32_t): Likewise.
3957         (_G_uint16_t): Likewise.
3958         (_G_uint32_t): Likewise.
3959         (_G_HAVE_BOOL): Likewise.
3960         (_G_HAVE_ATEXIT): Likewise.
3961         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3962         (_G_HAVE_IO_FILE_OPEN): Likewise.
3963
3964 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3965
3966         * csu/libc-tls.c: Update copyright years.
3967
3968 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3969
3970         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3971         [!_G_USING_THUNKS]: Remove conditional code.
3972         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3973         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3974
3975         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3976         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3977         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3978         (_G_VTABLE_LABEL_PREFIX): Likewise.
3979         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3980         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3981         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3982         (_G_VTABLE_LABEL_PREFIX): Likewise.
3983         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3984         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3985         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3986         (_G_VTABLE_LABEL_PREFIX): Likewise.
3987         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3988
3989 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3990
3991         * libio/Makefile: Include ../Makeconfig before tests.
3992         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3993         only if $(build-shared) is yes.
3994
3995         * iconv/gconv_db.c: Update copyright years.
3996
3997 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3998
3999         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
4000         unwind info if defined PIC. Fix special cases description.
4001         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
4002
4003         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
4004         DP_HI_MASK entry.
4005         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
4006
4007 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
4008
4009         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
4010
4011         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
4012         is NULL.
4013
4014         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
4015         (LDLIBS-tst-chk4): This.
4016         (LDFLAGS-tst-chk5): Renamed to ...
4017         (LDLIBS-tst-chk5): This.
4018         (LDFLAGS-tst-chk6): Renamed to ...
4019         (LDLIBS-tst-chk6): This.
4020         (LDFLAGS-tst-lfschk4): Renamed to ...
4021         (LDLIBS-tst-lfschk4): This.
4022         (LDFLAGS-tst-lfschk5): Renamed to ...
4023         (LDLIBS-tst-lfschk5): This.
4024         (LDFLAGS-tst-lfschk6): Renamed to ...
4025         (LDLIBS-tst-lfschk6): This.
4026
4027         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
4028         on $(common-objpfx)soversions.mk.
4029
4030 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
4031
4032         [BZ #10014]
4033         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
4034         example host name.
4035
4036 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4037
4038         * malloc/arena.c (arena_get_retry): New function that gets
4039         another arena for the caller to try its request on.
4040         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
4041         current arena cannot fulfill the request.
4042         (__libc_memalign): Likewise.
4043         (__libc_memalign): Likewise.
4044         (__libc_pvalloc): Likewise.
4045         (__libc_calloc): Likewise.
4046
4047 2012-09-05  John Tobey  <john.tobey@gmail.com>
4048
4049         [BZ #13542]
4050         * manual/arith.texi (Operations on Complex): Fix description
4051         of carg branch cut.
4052
4053 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
4054
4055         [BZ #10014]
4056         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
4057         host name.
4058
4059         [BZ #10038]
4060         * manual/memory.texi (Memory): Make order of menu items match
4061         order of sections.
4062
4063 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4064
4065         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
4066         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
4067         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
4068
4069 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4070
4071         * csu/libc-tls.c (static_dtv): Renamed to ...
4072         (_dl_static_dtv): This.  Make it global.
4073         (_dl_initial_dtv): Removed.
4074         (__libc_setup_tls): Updated.
4075         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
4076         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
4077         DL_INITIAL_DTV.
4078
4079 2012-09-06  Petr Machata  <pmachata@redhat.com>
4080
4081         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
4082         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
4083         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
4084         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
4085
4086 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4087
4088         [BZ #14545]
4089         * csu/libc-tls.c (_dl_initial_dtv): New variable.
4090         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
4091         freeing dtv[-1].
4092
4093 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4094
4095         [BZ #14544]
4096         * Makeconfig (link-static-before-libc): Replace $(+prector)
4097         with $(+prectorT).
4098         (link-static-after-libc): Replace $(+postctor) with
4099         $(+postctorT).
4100         (link-bounded): Replace $(+prector)/$(+postctor) with
4101         $(+prectorT)/$(+postctorT).
4102         (+prectorT): New macro.
4103         (+postctorT): Likewise.
4104
4105 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
4106
4107         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
4108         (round_str): Handle values above the maximum for IBM long double
4109         as inexact.
4110         * stdlib/tst-strtod-round.c (tests): Regenerated.
4111
4112 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4113
4114         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
4115         assembler flag.
4116         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
4117         zarch_nohighgprs around the zarch optimized routines.
4118         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
4119         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
4120         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
4121         for zarch.
4122
4123 2012-09-05  David S. Miller  <davem@davemloft.net>
4124
4125         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4126
4127         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
4128         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
4129         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
4130         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
4131         entries.
4132
4133 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4134
4135         * malloc/arena.c: Fold copyright years.
4136         * malloc/mcheck.c, malloc/memusage.c: Likewise.
4137
4138 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4139
4140         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
4141
4142 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4143
4144         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
4145
4146 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4147
4148         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
4149         change internal state upon failure.
4150
4151 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4152
4153         * malloc/mcheck.c (mcheck_check_all): Fix typo.
4154         * malloc/memusage.c (mmap): Likewise.
4155         (mmap64, mremap): Likewise.  Adjust name in comment.
4156
4157 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4158
4159         * libio/fileops.c: Fix typos in comments.
4160         * libio/oldfileops.c: Likewise.
4161         * libio/wfileops.c: Likewise.
4162
4163 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4164
4165         [BZ #1349]
4166         * malloc/Makefile (tests): Add tst-malloc-usable test case.
4167         (tst-malloc-usable-ENV): Set environment for test case.
4168         * malloc/hooks.c (malloc_check_get_size): New function to get
4169         requested size.
4170         * malloc/malloc.c (musable): Use malloc_check_get_size.
4171         * malloc/tst-malloc-usable.c: New test case.
4172
4173 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
4174
4175         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
4176
4177 2012-09-05  Allan McRae  <allan@archlinux.org>
4178
4179         [BZ #13966]
4180         * configure.in (CXX_SYSINCLUDES): Use compiler output to
4181         determine header location.
4182         * configure: Regenerated.
4183
4184 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
4185
4186         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
4187         float format.
4188         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
4189         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
4190         format.
4191         (test): Regenerate.
4192
4193 2012-09-04  David S. Miller  <davem@davemloft.net>
4194
4195         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
4196         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
4197         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
4198
4199 2012-09-04  Florian Weimer  <fweimer@redhat.com>
4200
4201         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
4202         failures.
4203
4204         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
4205
4206 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
4207
4208         [BZ #9914]
4209         * libio/iogetdelim.c: Include <limits.h>.
4210         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
4211         + len + 1 would overflow.
4212
4213 2012-09-03  Andreas Jaeger  <aj@suse.de>
4214
4215         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4216         * sysdeps/i386/fpu/libm-test-ulps: Update.
4217
4218 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4219
4220         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
4221         Add s_sinf-sse2, s_conf-sse2.
4222
4223         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
4224         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
4225         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
4226         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
4227
4228         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
4229         for using routine as __sinf_ia32.
4230         Use macro for function declaration and weak_alias.
4231         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
4232         for using routine as __cosf_ia32.
4233         Use macro for function declaration and weak_alias.
4234
4235         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
4236         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
4237
4238         * sysdeps/x86_64/fpu/s_sinf.S: New file.
4239         * sysdeps/x86_64/fpu/s_cosf.S: New file.
4240         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4241
4242         * math/libm-test.inc (cos_test): Add more test cases.
4243         (sin_test): Likewise.
4244         (sincos_test): Likewise.
4245
4246 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4247
4248         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
4249         (IFUNC_RESOLVE): Make pointers to the specialized implementations
4250         hidden.
4251         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
4252
4253 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
4254
4255         [BZ #14538]
4256         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
4257         first element of the GOT.
4258         (elf_machine_load_address): Return the difference between
4259         the runtime address of _DYNAMIC and elf_machine_dynamic ().
4260
4261 2012-09-01  Allan McRae  <allan@archlinux.org>
4262
4263         [BZ #13412]
4264         * configure.in (AWK): Require gawk version 3.0 or later.
4265         * configure: Regenerated.
4266
4267 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
4268
4269         * sysdeps/unix/sysv/linux/kernel-features.h
4270         (__ASSUME_POSIX_CPU_TIMERS): Remove.
4271         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4272         [__NR_clock_getres]: Make code unconditional.
4273         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
4274         (clock_getcpuclockid): Remove code left unreachable by removal of
4275         conditionals.
4276         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
4277         code unconditional.
4278         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
4279         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
4280         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
4281         Make code unconditional.
4282         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
4283         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
4284         * sysdeps/unix/sysv/linux/clock_settime.c
4285         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
4286         conditional code.
4287         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
4288         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
4289
4290 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
4291
4292         [BZ #14476]
4293         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
4294         scripts/test-installation.pl.
4295
4296         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
4297         and $ld_so_version if it is set.
4298
4299 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4300
4301         [BZ #14516]
4302         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
4303         failure if reading from procfs failed.
4304         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
4305
4306 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
4307
4308         * sysdeps/unix/sysv/linux/kernel-features.h
4309         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
4310         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
4311         Remove conditional code.
4312         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4313         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
4314         Remove conditional code.
4315         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4316         * sysdeps/unix/sysv/linux/i386/fxstat.c
4317         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
4318         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4319         * sysdeps/unix/sysv/linux/i386/fxstatat.c
4320         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
4321         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4322         * sysdeps/unix/sysv/linux/i386/lxstat.c
4323         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
4324         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4325         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
4326         Remove conditional code.
4327         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4328         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
4329         Remove conditional code.
4330         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4331         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
4332         <kernel-features.h>.
4333         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
4334         Remove.
4335         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
4336         Remove conditional code.
4337         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4338         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
4339         Remove conditional.
4340
4341 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
4342
4343         [BZ #5400]
4344         * NEWS: Add fixed bug number.
4345
4346 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
4347
4348         [BZ #14519]
4349         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
4350         underflowing exponent in case of negative sign.
4351         * stdlib/tst-strtod-round-data: Add more tests.
4352         * stdlib/tst-strtod-round.c (tests): Regenerated.
4353
4354         [BZ #3479]
4355         * stdlib/strtod_l.c (NDIG): Remove.
4356         (HEXNDIG): Likewise.
4357         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
4358         smallest representable value.
4359         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
4360         lie within an exact representation of 1/2 ulp of the result.
4361         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
4362         unconditionally.
4363         (TENS_P9_IDX): Define unconditionally.
4364         (TENS_P9_SIZE): Likewise.
4365         (TENS_P10_IDX): Likewise.
4366         (TENS_P10_SIZE): Likewise.
4367         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
4368         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
4369         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
4370         entries for 10^2^13 and 10^2^14.
4371         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
4372         (TENS_P13_IDX): Define.
4373         (TENS_P13_SIZE): Likewise.
4374         (TENS_P14_IDX): Likewise.
4375         (TENS_P14_SIZE): Likewise.
4376         (_fpioconst_pow10): Change array size to
4377         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
4378         unconditional.
4379         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
4380         1024]: Add entries for 10^2^13 and 10^2^14.
4381         [LAST_POW10 > _LAST_POW10]: Remove #error.
4382         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
4383         (_fpioconst_pow10): Change array size to
4384         FPIOCONST_POW10_ARRAY_SIZE.
4385         * stdlib/gen-fpioconst.c: New file.
4386         * stdlib/gen-tst-strtod-round.c: Likewise.
4387         * stdlib/tst-strtod-round-data: Likewise.
4388         * stdlib/tst-strtod-round.c: Likewise.
4389         * stdlib/Makefile (tests): Add tst-strtod-round.
4390
4391         [BZ #14459]
4392         * stdlib/strtod_l.c: Include <stdint.h>.
4393         (NDEBUG): Do not define.
4394         (round_and_return): Change EXPONENT parameter to type intmax_t.
4395         Rearrange calculations to avoid internal overflow possibilities.
4396         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
4397         Rearrange calculations to avoid internal overflow possibilities.
4398         Assert that number fits inside MPNSIZE limbs.
4399         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
4400         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
4401         calculations and add assertions to avoid internal overflow
4402         possibilities.  Add casts to avoid signed/unsigned operations.
4403         * stdlib/tst-strtod-overflow.c: New file.
4404         * stdlib/Makefile (tests): Add tst-strtod-overflow.
4405
4406 2012-08-25  Marek Polacek  <polacek@redhat.com>
4407
4408         * time/time.h: Fix some typos in comments.
4409
4410 2012-08-23  Roland McGrath  <roland@hack.frob.com>
4411
4412         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
4413         * posix/tst-rfc3484-2.c: Likewise.
4414         * posix/tst-rfc3484-3.c: Likewise.
4415
4416 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
4417
4418         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
4419         (EF_ARM_ABI_FLOAT_HARD): Likewise.
4420
4421 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
4422
4423         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
4424         #include of fxstatat64.c.
4425
4426 2012-08-22  Roland McGrath  <roland@hack.frob.com>
4427
4428         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
4429         * shadow/getspent_r.c: Likewise.
4430         * shadow/getspnam.c: Likewise.
4431         * shadow/getspnam_r.c: Likewise.
4432         * gshadow/getsgent.c: Likewise.
4433         * gshadow/getsgent_r.c: Likewise.
4434         * gshadow/getsgnam.c: Likewise.
4435         * gshadow/getsgnam_r.c: Likewise.
4436         * inet/getnetbyad.c: Likewise.
4437         * inet/getnetbyad_r.c: Likewise.
4438         * inet/getnetbynm.c: Likewise.
4439         * inet/getnetbynm_r.c: Likewise.
4440         * inet/getnetent.c: Likewise.
4441         * inet/getnetent_r.c: Likewise.
4442         * inet/getproto.c: Likewise.
4443         * inet/getproto_r.c: Likewise.
4444         * inet/getprtent.c: Likewise.
4445         * inet/getprtent_r.c: Likewise.
4446         * inet/getprtname.c: Likewise.
4447         * inet/getprtname_r.c: Likewise.
4448         * inet/getrpcbyname.c: Likewise.
4449         * inet/getrpcbyname_r.c: Likewise.
4450         * inet/getrpcbynumber.c: Likewise.
4451         * inet/getrpcbynumber_r.c: Likewise.
4452         * inet/getrpcent.c: Likewise.
4453         * inet/getrpcent_r.c: Likewise.
4454         * inet/getaliasent.c: Likewise.
4455         * inet/getaliasent_r.c: Likewise.
4456         * inet/getaliasname.c: Likewise.
4457         * inet/getaliasname_r.c: Likewise.
4458         * nscd/getgrgid_r.c: Likewise.
4459         * nscd/getgrnam_r.c: Likewise.
4460         * nscd/gethstbyad_r.c: Likewise.
4461         * nscd/gethstbynm3_r.c: Likewise.
4462         * nscd/getpwnam_r.c: Likewise.
4463         * nscd/getpwuid_r.c: Likewise.
4464         * nscd/getsrvbynm_r.c: Likewise.
4465         * nscd/getsrvbypt_r.c: Likewise.
4466         * nscd/gai.c: Likewise.
4467
4468         * configure.in (build_nscd): New substituted variable, set
4469         by --disable-build-nscd and defaults to $use_nscd.
4470         * configure: Regenerated.
4471         * config.make.in (build-nscd): New substituted variable.
4472         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
4473         Change conditional to require [$(build-nscd) = yes] as well.
4474         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
4475
4476         [BZ# 13696]
4477         * configure.in (use_nscd): New substituted variable, set by
4478         --disable-nscd.  If enabled, define USE_NSCD.
4479         * configure: Regenerated.
4480         * config.h.in: Add USE_NSCD.
4481         * config.make.in (use-nscd): New substituted variable.
4482         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
4483         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
4484         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
4485         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
4486         (CFLAGS-getgrnam_r.c): Likewise.
4487         (CFLAGS-initgroups.c): Likewise.
4488         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
4489         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
4490         Variables removed.
4491         * inet/getnetgrent_r.c
4492         (nscd_setnetgrent): New function, broken out of ...
4493         (setnetgrent): ... here.  Call it.
4494         (innetgr): Conditionalize nscd bits on [USE_NSCD].
4495         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
4496         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
4497         * nscd/Makefile (routines, aux): Move definitions after include of
4498         Makeconfig.  Conditionalize on [$(use-nscd) != no].
4499         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
4500         Conditionalize on [USE_NSCD].
4501         (is_nscd, nscd_init_cb): Likewise.
4502         (nss_load_library): Conditionalize init callback on [USE_NSCD].
4503         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
4504         * nss/nss_db/db-init.c: Likewise.
4505         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
4506         [USE_NSCD].
4507         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
4508         (make_request): Use it.
4509         (cache_valid_p): New function.
4510         (__check_pf): Use it.
4511         * NEWS: Add item for --disable-nscd.
4512
4513 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
4514
4515         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
4516         to support sed >= 4.2.1-20-ga9bf076.
4517         * configure: Regenerated.
4518
4519 2012-08-22  Roland McGrath  <roland@hack.frob.com>
4520
4521         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
4522         Conditionalize whole body on [IREL].
4523
4524 2012-08-22  Jeff Law <law@redhat.com>
4525
4526         [BZ #14505]
4527         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
4528         if the family is PF_UNSPEC.
4529
4530 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
4531
4532         * Makerules (lib-version): Rename from V.
4533         (install-lib-nosubdir): Change V to lib-version.
4534
4535 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
4536
4537         [BZ #14252]
4538         * powerpc32/power6/wcschr.c: New file.
4539         * powerpc32/power6/wcscpy.c: New file.
4540         * powerpc32/power6/wcsrchr.c: New file.
4541         * powerpc64/power6/wcschr.c: New file.
4542         * powerpc64/power6/wcscpy.c: New file.
4543         * powerpc64/power6/wcsrchr.c: New file.
4544
4545 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
4546
4547         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
4548         (two_way_short_needle): Use it.
4549         * string/strstr.c (AVAILABLE1_USES_J): Define.
4550         * string/strcasestr.c: Likewise.
4551
4552         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
4553         array references.
4554         * string/strcasestr.c (TOLOWER): Make side-effect safe.
4555
4556         [BZ #11607]
4557         * NEWS: Add an entry.
4558         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
4559         define their defaults.
4560         (two_way_short_needle): Detect end-of-string on-the-fly.
4561         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
4562         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
4563         * string/bug-strcasestr1.c: New test.
4564         * string/Makefile: Run it.
4565
4566 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
4567
4568         [BZ #11607]
4569         * string/str-two-way.h (two_way_short_needle): Optimize matching of
4570         the first character.
4571
4572 2012-08-21  Roland McGrath  <roland@hack.frob.com>
4573
4574         * csu/elf-init.c (__libc_csu_irel): Function removed.
4575         * csu/libc-start.c (apply_irel): New function.
4576         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
4577
4578 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
4579
4580         * sysdeps/unix/sysv/linux/kernel-features.h
4581         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
4582         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
4583         <kernel-features.h>.
4584         [__NR_fadvise64_64]: Make code unconditional.
4585         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
4586         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
4587         !__NR_fadvise64_64)]: Likewise.
4588         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
4589         !__NR_fadvise64_64))]: Likewise.
4590         [__NR_fadvise64]: Make code unconditional.
4591         [!__NR_fadvise64]: Remove conditional code.
4592         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
4593         <kernel-features.h>.
4594         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
4595         unconditional.
4596         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
4597         conditional code.
4598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
4599         not include <kernel-features.h>.
4600         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
4601         unconditional.
4602         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
4603         conditional code.
4604         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
4605         include <kernel-features.h>.
4606         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
4607         unconditional.
4608         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
4609         conditional code.
4610
4611 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
4612
4613         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
4614         slight instruction rearrangements per scrollpipe analysis.
4615         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
4616
4617 2012-08-20  Roland McGrath  <roland@hack.frob.com>
4618
4619         * manual/syslog.texi (syslog; vsyslog, closelog):
4620         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
4621         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
4622
4623         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
4624         DSOCAPS to match condition on defining it.
4625
4626 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
4627
4628         * sysdeps/unix/sysv/linux/kernel-features.h
4629         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
4630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
4631         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
4632         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
4633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
4634         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
4635         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
4636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
4637         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
4638         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
4639
4640         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
4641         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
4642
4643         * sysdeps/unix/sysv/linux/kernel-features.h
4644         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
4645         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
4646         unconditional.
4647         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4648         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
4649         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
4650         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4651         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
4652         Make code unconditional.
4653         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4654         (__mmap64) [!__NR_mmap2]: Likewise.
4655         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
4656         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
4657         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4658         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
4659         [__NR_mmap2]: Make code unconditional.
4660         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4661         (__mmap64) [!__NR_mmap2]: Likewise.
4662
4663 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4664
4665         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
4666
4667 2012-08-18  Andreas Jaeger  <aj@suse.de>
4668
4669         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
4670
4671 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
4672
4673         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
4674         * include/unistd.h (__have_sock_cloexec): Likewise.
4675         (__have_pipe2): Likewise.
4676         (__have_dup3): Likewise.
4677
4678 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
4679
4680         [BZ #9685]
4681         * include/unistd.h (__have_pipe2): Change define into an extern int.
4682         (__have_dup3): Likewise.
4683         * socket/have_sock_cloexec.c: Include fcntl.h.
4684         (__have_pipe2): New variable.
4685         (__have_dup3): Likewise.
4686
4687 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
4688
4689         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
4690
4691 2012-08-17  Marek Polacek  <polacek@redhat.com>
4692
4693         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
4694         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
4695
4696 2012-08-17  Roland McGrath  <roland@hack.frob.com>
4697
4698         * configure.in: Add AC_SUBST for sysheaders.
4699         * configure: Regenerated.
4700         * config.make.in (sysheaders): New substituted variable.
4701
4702         * sysdeps/unix/mkfifo.c: Moved ...
4703         * sysdeps/posix/mkfifo.c: ... here.
4704         * sysdeps/unix/mkfifoat.c: Moved ...
4705         * sysdeps/posix/mkfifoat.c: ... here.
4706
4707         * sysdeps/unix/utime.c: Moved ...
4708         * sysdeps/posix/utime.c: ... here.
4709
4710         * sysdeps/unix/time.c: Moved ...
4711         * sysdeps/posix/time.c: ... here.
4712         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
4713         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
4714
4715         * sysdeps/unix/nice.c: Moved ...
4716         * sysdeps/posix/nice.c: ... here.
4717
4718         * sysdeps/unix/alarm.c: Moved ...
4719         * sysdeps/posix/alarm.c: ... here.
4720
4721         * intl/Makefile ($(codeset_mo)): Depend on the input file.
4722
4723 2012-08-17  Jeff Law <law@redhat.com>
4724
4725         * intl/Makefile (codeset_mo): New variable.
4726         ($(codeset_mo)): New target.
4727         (tst-codeset.out): Depend on that.  Remove explicit rule.
4728         (tst-gettext3.out, tst-gettext5.out): Likewise.
4729         (LOCPATH-ENV, tst-codeset-ENV): New variables.
4730         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
4731         * intl/tst-codeset.sh: Remove.
4732         * intl/tst-gettext3.sh: Likewise.
4733         * intl/tst-gettext5.sh: Likewise.
4734
4735 2012-08-17  Roland McGrath  <roland@hack.frob.com>
4736
4737         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
4738         * sysdeps/unix/syscalls.list: ... here.
4739
4740         * sysdeps/posix/getaddrinfo.c
4741         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
4742         (gaiconf_init, gaiconf_reload): Use them.
4743         [!_STATBUF_ST_NSEC]
4744         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
4745         Define using time_t rather than struct timespec.
4746
4747         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
4748         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
4749         Macros removed.
4750         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
4751         [!NO_THREADS].
4752         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
4753         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
4754         Likewise.
4755
4756         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
4757         __libc_cleanup_push argument.
4758
4759         * bits/param.h: New file.
4760         * misc/sys/param.h: New file.
4761         * include/sys/param.h: New file.
4762         * misc/Makefile (headers): Add bits/param.h.
4763         * sysdeps/generic/sys/param.h: File removed.
4764         * sysdeps/unix/sysv/linux/bits/param.h: New file.
4765         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
4766         * sysdeps/mach/hurd/bits/param.h: New file.
4767         * sysdeps/mach/hurd/sys/param.h: File removed.
4768
4769         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
4770         last change.
4771
4772         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
4773         [_IO_MTSAFE_IO].
4774         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
4775         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
4776         New macros.
4777
4778         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
4779         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
4780         rather than -D_IO_MTSAFE_IO conditionally.
4781         * stdio-common/Makefile (CPPFLAGS): Likewise.
4782         * wcsmbs/Makefile (CPPFLAGS): Likewise.
4783         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
4784         Use $(libio-mtsafe).
4785         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
4786         of -D_IO_MTSAFE_IO.
4787         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
4788         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
4789         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
4790         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
4791         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
4792         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
4793         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
4794         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
4795         (CFLAGS-fread_u_chk.c): Likewise.
4796         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
4797         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
4798         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
4799         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
4800         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
4801         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
4802         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
4803         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
4804         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4805
4806         * libio/Makefile: Test [$(libc-reentrant) = yes]
4807         instead of [$(filter %REENTRANT, $(defines)) nonempty].
4808
4809         * Makeconfig
4810         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4811         * sysdeps/pthread/configure: File removed.
4812         * sysdeps/pthread/Makeconfig: New file.
4813         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4814         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4815
4816 2012-08-16  Gary Benson  <gbenson@redhat.com>
4817
4818         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4819         unmapping the first object in a namespace.
4820
4821 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4822
4823         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4824         (__internal_setnetgrent): ... this.  Add internal_function to
4825         definition.  Add libc_hidden_def.
4826         (setnetgrent): Update caller.
4827         (internal_endnetgrent): Renamed to ...
4828         (__internal_endnetgrent): ... this.  Add internal_function to
4829         definition.  Add libc_hidden_def.
4830         (endnetgrent): Update caller.
4831         (internal_getnetgrent_r): Renamed to ...
4832         (__internal_getnetgrent_r): ... this.  Add internal_function to
4833         definition.  Add libc_hidden_def.
4834         (__getnetgrent_r): Update caller.
4835         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4836
4837 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4838
4839         * stdlib/longlong.h: Update from GCC.
4840
4841 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4842
4843         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4844         on _QL, which is set by umul_ppmm but never used.
4845         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4846         variables, which are set by GMP macros but never used.
4847         * stdio-common/_itowa.c (_itowa): Likewise.
4848         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4849         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4850
4851 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4852
4853         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4854         struct La_sh_regs is not constant.
4855         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4856         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4857         and struct La_sparc64_regs are not constant.
4858
4859 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4860
4861         * sysdeps/unix/sysv/linux/kernel-features.h
4862         (__ASSUME_POSIX_TIMERS): Remove.
4863         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4864         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4865         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4866         Make code unconditional.
4867         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4868         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4869         Make code unconditional.
4870         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4871         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4872         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4873         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4874         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4875         Make code unconditional.
4876         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4877         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4878         (__libc_missing_posix_timers): Remove.
4879
4880 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4881
4882         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4883         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4884
4885         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4886
4887         * elf/dl-sym.c: Include <stdlib.h>.
4888
4889         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4890         constants, which avoids warnings in 32-bit builds.
4891
4892         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4893         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4894
4895         * misc/lseek.c: File moved to ...
4896         * io/lseek.c: ... here.
4897
4898         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4899
4900         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4901         shifting LEN more than 31 bits at once.
4902
4903 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4904
4905         [BZ #14195]
4906         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4907         segmentation fault for a case of two empty input strings.
4908         * string/test-strncasecmp.c (check1): Renamed to...
4909         (bz12205): ...this.
4910         (bz14195): Add new testcase for two empty input strings and N > 0.
4911         (test_main): Call new testcase, adapt for renamed function.
4912
4913 2012-08-15  Andreas Jaeger  <aj@suse.de>
4914
4915         [BZ #14090]
4916         * crypt/md5test2.c: New test, based on test supplied by Serge
4917         Belyshev <belyshev@depni.sinp.msu.ru>.
4918         * crypt/Makefile (xtests): Add md5test-giant..
4919         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4920
4921 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4922
4923         [BZ #14090]
4924         * crypt/md5.c (md5_process_block): Don't assume the buffer
4925         length is less than 2**32.
4926         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4927         length is less than 2**64.
4928
4929 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4930
4931         * string/str-two-way.h: Include <sys/param.h>.
4932         (MAX): Macro removed.
4933
4934         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4935         Move #define and #undef of memmove to just before and after
4936         including <string.h>.
4937
4938         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4939         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4940         and after including <string.h>.  Move declarations of
4941         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4942         to before #include "string/memmove.c".
4943
4944         * include/dirent.h: Declare __getdirentries.
4945
4946         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4947         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4948
4949 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4950
4951         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4952         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4953         * sysdeps/i386/configure: Regenerated.
4954         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4955         STABS_CURRENT_FILE, and STABS_FUN.
4956         (END): Remove call to STABS_FUN_END.
4957         (STABS_CURRENT_FILE1): Delete.
4958         (STABS_CURRENT_FILE): Likewise.
4959         (STABS_FUN): Likewise.
4960         (STABS_FUN_END): Likewise.
4961         (STABS_FUN2): Likewise.
4962         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4963         * sysdeps/x86_64/configure: Regenerated.
4964
4965 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4966
4967         * elf/dl-open.c: Include <atomic.h>.
4968         * elf/dl-lookup.c: Likewise.
4969
4970 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4971
4972         * sysdeps/unix/sysv/linux/kernel-features.h
4973         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4974         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4975         unconditionally.
4976         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4977         unconditionally.
4978         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4979         condition on __ASSUME_CLONE_THREAD_FLAGS.
4980
4981 2012-08-14  Andreas Jaeger  <aj@suse.de>
4982
4983         * sysdeps/i386/fpu/libm-test-ulps: Update.
4984
4985 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4986
4987         * include/atomic.h (atomic_exchange_and_add): Split into ...
4988         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4989         New atomic macros.
4990
4991 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4992
4993         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4994
4995 2012-08-13  Jeff Law <law@redhat.com>
4996
4997         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4998         null byte in the output string.
4999
5000 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
5001
5002         * sysdeps/unix/sysv/linux/kernel-features.h
5003         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
5004         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
5005         (__ASSUME_ARG_MAX_STACK_BASED): Define.
5006         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
5007         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
5008         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
5009         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
5010
5011 2012-08-09  Jeff Law <law@redhat.com>
5012
5013         [BZ #13939]
5014         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
5015         When avoid_arena is set, don't retry in the that arena.  Pick the
5016         next one, whatever it might be.
5017         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
5018         (arena_lock): Pass in new parameter to arena_get2.
5019         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
5020         arena_get2.
5021         (__libc_malloc): Unify retrying after main arena failure with
5022         __libc_memalign version.
5023         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
5024
5025 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
5026
5027         [BZ #14166]
5028         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
5029         to __redirect_strstr.
5030         (__strstr_sse42): Use typeof __redirect_strstr.
5031         (__strstr_ia32): Likewise.
5032         (__libc_strstr): New prototype.
5033         (strstr): Renamed to ...
5034         (__libc_strstr): This.
5035         (strstr): New strong alias of __libc_strstr.
5036         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
5037         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
5038         __redirect_time.
5039         Include <time.h>.
5040         (__libc_time): New prototype.
5041         (time_ifunc): Replace time with __libc_time.
5042         (time): New strong alias and hidden definition of __libc_time.
5043         (__GI_time): Remove strong alias.
5044         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
5045         Include <stddef.h>.
5046         (memmove): Redefined to __redirect_memmove.
5047         (__memmove_sse2): Use typeof __redirect_memmove.
5048         (__memmove_ssse3): Likewise.
5049         (__memmove_ssse3_back): Likewise.
5050         (__libc_memmove): New prototype.
5051         (memmove): Renamed to ...
5052         (__libc_memmove): This.
5053         (memmove): New strong alias of __libc_memmove.
5054
5055 2012-08-08  Mark Salter  <msalter@redhat.com>
5056
5057         * elf/elf.h
5058         (R_MN10300_TLS_GD): Define.
5059         (R_MN10300_TLS_LD): Likewise.
5060         (R_MN10300_TLS_LDO): Likewise.
5061         (R_MN10300_TLS_GOTIE): Likewise.
5062         (R_MN10300_TLS_IE): Likewise.
5063         (R_MN10300_TLS_LE): Likewise.
5064         (R_MN10300_TLS_DTPMOD): Likewise.
5065         (R_MN10300_TLS_DTPOFF): Likewise.
5066         (R_MN10300_TLS_TPOFF): Likewise.
5067         (R_MN10300_SYM_DIFF): Likewise.
5068         (R_MN10300_ALIGN): Likewise.
5069         (R_MN10300_NUM): Update.
5070
5071 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
5072
5073         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
5074         Remove.
5075
5076 2012-08-08  Roland McGrath  <roland@hack.frob.com>
5077
5078         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
5079
5080         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
5081         sysdeps/unix -> sysdeps/posix move.
5082         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5083
5084 2012-08-07      Allan McRae     <allan@archlinux.org>
5085
5086         [BZ #14303]
5087         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
5088         (SUNOS_CPP): Likewise.
5089         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
5090         not found.
5091         (open_input): Call CPP using execvp.
5092
5093 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
5094
5095         * sysdeps/unix/sysv/linux/kernel-features.h
5096         (__ASSUME_PROT_GROWSUPDOWN): Remove.
5097         (__ASSUME_NO_CLONE_DETACHED): Likewise.
5098         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
5099         (__ASSUME_WAITID_SYSCALL): Likewise.
5100         * sysdeps/unix/sysv/linux/dl-execstack.c
5101         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
5102         code unconditional.
5103         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
5104         conditional code.
5105         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
5106         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
5107         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
5108         code.
5109         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
5110         unconditional.
5111         [__ASSUME_WAITID_SYSCALL]: Likewise.
5112         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
5113
5114 2012-08-07  Roland McGrath  <roland@hack.frob.com>
5115
5116         * sysdeps/unix/closedir.c: Renamed to ...
5117         * sysdeps/posix/closedir.c: ... here.
5118         * sysdeps/unix/dirfd.c: Renamed to ...
5119         * sysdeps/posix/dirfd.c: ... here.
5120         * sysdeps/unix/dirstream.h: Renamed to ...
5121         * sysdeps/posix/dirstream.h: ... here.
5122         * sysdeps/unix/fdopendir.c: Renamed to ...
5123         * sysdeps/posix/fdopendir.c: ... here.
5124         * sysdeps/unix/opendir.c: Renamed to ...
5125         * sysdeps/posix/opendir.c: ... here.
5126         * sysdeps/unix/readdir.c: Renamed to ...
5127         * sysdeps/posix/readdir.c: ... here.
5128         * sysdeps/unix/readdir_r.c: Renamed to ...
5129         * sysdeps/posix/readdir_r.c: ... here.
5130         * sysdeps/unix/rewinddir.c: Renamed to ...
5131         * sysdeps/posix/rewinddir.c: ... here.
5132         * sysdeps/unix/seekdir.c: Renamed to ...
5133         * sysdeps/posix/seekdir.c: ... here.
5134         * sysdeps/unix/telldir.c: Renamed to ...
5135         * sysdeps/posix/telldir.c: ... here.
5136         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
5137         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
5138         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5139         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
5140
5141         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
5142         * bits/fcntl.h: ... here.
5143
5144         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
5145         not 0.
5146         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
5147         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
5148         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
5149         (struct flock): Move l_start, l_len to the beginning.
5150         Use __pid_t for l_pid.
5151         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
5152         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
5153         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
5154         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
5155         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
5156         [__USE_LARGEFILE64] (struct flock64): New type.
5157         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
5158
5159         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
5160         * bits/dirent.h: ... here.
5161
5162         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
5163         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
5164
5165 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
5166
5167         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5168         Change from 2.6.0 to 2.6.16.
5169         * sysdeps/unix/sysv/linux/configure: Regenerated.
5170         * sysdeps/unix/sysv/linux/kernel-features.h
5171         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
5172         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
5173         version.
5174         (__ASSUME_UTIMES): Likewise.
5175         (__ASSUME_CLONE_STOPPED): Remove.
5176         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
5177         architectures, not kernel version.
5178         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
5179         (__ASSUME_NO_CLONE_DETACHED): Likewise.
5180         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
5181         (__ASSUME_WAITID_SYSCALL): Likewise.
5182         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
5183         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
5184         * README: State 2.6.16 as minimum Linux kernel version.  Do not
5185         refer to older versions.
5186
5187 2012-08-06  Roland McGrath  <roland@hack.frob.com>
5188
5189         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
5190         Define alphasort64 as an alias.
5191         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
5192         Define versionsort64 as an alias.
5193         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
5194         Define scandir64 as an alias.
5195         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
5196         Define scandirat64 as an alias.
5197         * dirent/alphasort64.c (alphasort64):
5198         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
5199         * dirent/versionsort64.c: Likewise.
5200         * dirent/scandir64.c: Likewise.
5201         * dirent/scandirat64.c: Likewise.
5202         * sysdeps/wordsize-64/alphasort.c: File removed.
5203         * sysdeps/wordsize-64/alphasort64.c: File removed.
5204         * sysdeps/wordsize-64/scandir.c: File removed.
5205         * sysdeps/wordsize-64/scandir64.c: File removed.
5206         * sysdeps/wordsize-64/scandirat.c: File removed.
5207         * sysdeps/wordsize-64/scandirat64.c: File removed.
5208         * sysdeps/wordsize-64/versionsort.c: File removed.
5209         * sysdeps/wordsize-64/versionsort64.c: File removed.
5210         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
5211         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
5212         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
5213         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
5214         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
5215         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
5216         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
5217         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
5218
5219         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
5220         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
5221         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
5222         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5223         [defined __arch64__ || defined __sparcv9]
5224         (__INO_T_MATCHES_INO64_T): New macro.
5225         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
5226         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
5227         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
5228         * sysdeps/unix/sysv/linux/bits/dirent.h
5229         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
5230         (_DIRENT_MATCHES_DIRENT64): New macro.
5231
5232         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
5233         Define lockf64 as an alias.
5234         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
5235         Define fseeko64 as an alias.
5236         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
5237         Define ftello64 as an alias.
5238         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
5239         Define _IO_fgetpos64 and fgetpos64 as aliases.
5240         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
5241         Define _IO_fsetpos64 and fsetpos64 as aliases.
5242         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
5243         Conditionalize body on this.
5244         * libio/fseeko64.c: Likewise.
5245         * libio/ftello64.c: Likewise.
5246         * libio/iofgetpos64.c: Likewise.
5247         * libio/iofsetpos64.c: Likewise.
5248         * sysdeps/wordsize-64/lockf.c: File removed.
5249         * sysdeps/wordsize-64/lockf64.c: File removed.
5250         * sysdeps/wordsize-64/fseeko.c: File removed.
5251         * sysdeps/wordsize-64/fseeko64.c: File removed.
5252         * sysdeps/wordsize-64/ftello.c: File removed.
5253         * sysdeps/wordsize-64/ftello64.c: File removed.
5254         * sysdeps/wordsize-64/iofgetpos.c: File removed.
5255         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
5256         * sysdeps/wordsize-64/iofsetpos.c: File removed.
5257         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
5258         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
5259         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
5260         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
5261         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
5262         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
5263         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
5264         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
5265         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
5266         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
5267         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
5268
5269         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
5270         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
5271         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
5272         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5273         [defined __arch64__ || defined __sparcv9]
5274         (__OFF_T_MATCHES_OFF64_T): New macro.
5275         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
5276         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
5277         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5278         (__OFF_T_MATCHES_OFF64_T): New macro.
5279
5280 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5281
5282         * stdlib/secure-getenv.c (__secure_getenv): Replace
5283         GLIBC_2_16 with GLIBC_2_17.
5284
5285 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5286
5287         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
5288         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5289
5290 2012-08-03  David S. Miller  <davem@davemloft.net>
5291
5292         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5293
5294 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
5295
5296         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
5297         Remove.
5298         (__ASSUME_CORRECT_SI_PID): Likewise.
5299         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
5300         (__ASSUME_TMPFS_NAME): Likewise.
5301         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
5302         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
5303         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
5304         (HAVE_AUX_SECURE): Make definition unconditional.
5305         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
5306         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
5307
5308 2012-08-03  Roland McGrath  <roland@hack.frob.com>
5309
5310         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
5311         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
5312         * sysdeps/mach/hurd/eloop-threshold.h: New file.
5313         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5314         __eloop_threshold instead of SYMLOOP_MAX.
5315
5316         * sysdeps/generic/eloop-threshold.h: New file.
5317         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
5318         of MAXSYMLINKS.
5319         * elf/chroot_canon.c (chroot_canon): Likewise.
5320
5321 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
5322
5323         [BZ #13717]
5324         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5325         Change to 2.6.0 everywhere.
5326         * sysdeps/unix/sysv/linux/configure: Regenerated.
5327         * sysdeps/unix/sysv/linux/kernel-features.h
5328         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
5329         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
5330         kernel versions.
5331         (__ASSUME_POSIX_TIMERS): Define unconditionally.
5332         (__ASSUME_FUTEX_REQUEUE): Remove.
5333         (__ASSUME_STATFS64): Define unconditionally.
5334         (__ASSUME_AT_SECURE): Likewise.
5335         (__ASSUME_CORRECT_SI_PID): Likewise.
5336         (__ASSUME_TGKILL): Define without depending on kernel version for
5337         i386.
5338         (__ASSUME_UTIMES): Likewise.
5339         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
5340         kernel version.
5341         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
5342         (__ASSUME_TMPFS_NAME): Likewise.
5343         * README: Update reference to Linux kernel versions.
5344
5345 2012-08-02  Marek Polacek  <polacek@redhat.com>
5346
5347         [BZ# 14150]
5348         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
5349         libc_cv_asm_type_prefix with %.
5350         * configure: Regenerated.
5351         * include/libc-symbols.h: Remove comment about
5352         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
5353         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
5354         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
5355         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
5356         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
5357         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
5358         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
5359         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
5360         * elf/tst-unique2mod1.c: Likewise.
5361         * elf/tst-unique1mod2.c: Likewise.
5362         * elf/tst-unique1mod1.c: Likewise.
5363         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
5364         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
5365         Replace ASM_TYPE_DIRECTIVE with .type.
5366         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5367         * sysdeps/i386/sysdep.h: Likewise.
5368         * sysdeps/x86_64/sysdep.h: Likewise.
5369         * sysdeps/sh/sysdep.h: Likewise.
5370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
5371         Do not define ASM_TYPE_DIRECTIVE.
5372         * sysdeps/powerpc/sysdep.h: Likewise.
5373         * sysdeps/powerpc/powerpc32/sysdep.h:
5374         Replace ASM_TYPE_DIRECTIVE with .type.
5375         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5376         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5377         * sysdeps/i386/fpu/e_powf.S: Likewise.
5378         * sysdeps/i386/fpu/e_expl.S: Likewise.
5379         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
5380         * sysdeps/i386/fpu/e_acosh.S: Likewise.
5381         * sysdeps/i386/fpu/e_pow.S: Likewise.
5382         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
5383         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
5384         * sysdeps/i386/fpu/s_expm1.S: Likewise.
5385         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
5386         * sysdeps/i386/fpu/e_log2.S: Likewise.
5387         * sysdeps/i386/fpu/e_log2l.S: Likewise.
5388         * sysdeps/i386/fpu/e_scalb.S: Likewise.
5389         * sysdeps/i386/fpu/e_powl.S: Likewise.
5390         * sysdeps/i386/fpu/e_log10f.S: Likewise.
5391         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
5392         * sysdeps/i386/fpu/e_logl.S: Likewise.
5393         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
5394         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
5395         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
5396         * sysdeps/i386/fpu/e_log2f.S: Likewise.
5397         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
5398         * sysdeps/i386/fpu/e_log.S: Likewise.
5399         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
5400         * sysdeps/i386/fpu/e_logf.S: Likewise.
5401         * sysdeps/i386/fpu/e_log10l.S: Likewise.
5402         * sysdeps/i386/fpu/e_atanh.S: Likewise.
5403         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
5404         * sysdeps/i386/fpu/e_log10.S: Likewise.
5405         * sysdeps/i386/fpu/s_frexp.S: Likewise.
5406         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
5407         * sysdeps/i386/fpu/s_asinh.S: Likewise.
5408         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
5409         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
5410         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
5411         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
5412         * sysdeps/i386/i686/strtok.S: Likewise.
5413         * sysdeps/i386/i386-mcount.S: Likewise.
5414         * sysdeps/i386/strtok.S: Likewise.
5415         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
5416         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
5417         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5418         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
5419         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5420         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
5421         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5422         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
5423         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
5424         * sysdeps/x86_64/_mcount.S: Likewise.
5425         * sysdeps/x86_64/strtok.S: Likewise.
5426         * sysdeps/sh/_mcount.S: Likewise.
5427
5428 2012-08-01  Roland McGrath  <roland@hack.frob.com>
5429
5430         * libio/iofopen.c: Include <fcntl.h>.
5431         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
5432         (_IO_fopen64, fopen64): Define as aliases.
5433         * libio/iofopen64.c: Include <fcntl.h>.
5434         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
5435         Conditionalize body on this.
5436         * sysdeps/wordsize-64/iofopen.c: File removed.
5437         * sysdeps/wordsize-64/iofopen64.c: File removed.
5438
5439 2012-08-01  Marek Polacek  <polacek@redhat.com>
5440
5441         * libc/Makeconfig: Use elf in place of binfmt-subdir.
5442         Use dlfcn directly instead of a variable.
5443         (binfmt-subdir): Do not define.
5444         (dlfcn): Likewise.
5445
5446 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
5447
5448         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
5449         Remove all definitions.
5450         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
5451         <kernel-features.h>.
5452         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
5453         (miss_F_GETOWN_EX): Remove all definitions.
5454         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
5455         macro definition.
5456         [!__ASSUME_FCNTL64]: Remove conditional code.
5457         [__ASSUME_FCNTL64]: Make code unconditional.
5458         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
5459         <kernel-features.h>.
5460         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
5461         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
5462         (lockf64) [__NR_fcntl64]: Make code unconditional.
5463         (lockf64) [__ASSUME_FCNTL64]: Likewise.
5464
5465         * sysdeps/unix/sysv/linux/kernel-features.h
5466         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
5467         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
5468         Make code unconditional.
5469         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
5470         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
5471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
5472         [__NR_vfork]: Make code unconditional.
5473         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
5474         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
5475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
5476         [__NR_vfork]: Make code unconditional.
5477         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
5478         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
5479
5480 2012-08-01  Roland McGrath  <roland@hack.frob.com>
5481
5482         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
5483         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
5484
5485         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5486         Define mkstemp64 as an alias.
5487         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5488         Define mkstemps64 as an alias.
5489         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5490         Define mkostemp64 as an alias.
5491         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5492         Define mkostemps64 as an alias.
5493         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
5494         Conditionalize body on this.
5495         * misc/mkostemp64.c: Likewise.
5496         * misc/mkostemps64.c: Likewise.
5497         * misc/mkstemps64.c: Likewise.
5498         * sysdeps/wordsize-64/mkstemp64.c: File removed.
5499         * sysdeps/wordsize-64/mkostemp64.c: File removed.
5500         * sysdeps/wordsize-64/mkostemp.c: File removed.
5501         * sysdeps/wordsize-64/mkstemp.c: File removed.
5502         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
5503         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
5504         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
5505         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
5506
5507         [BZ #14138]
5508         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
5509         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
5510         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
5511         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
5512
5513         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
5514         compat_symbol macros from <shlib-compat.h> rather than the underlying
5515         default_symbol_version and symbol_version macros, so that DEFAULT
5516         lines in shlib-versions are respected.
5517         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
5518
5519 2012-08-01  Florian Weimer  <fweimer@redhat.com>
5520
5521         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
5522         Declare with warn_unused_result.
5523         (setgid, setregid, setegid, setresgid): Likewise.
5524         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
5525         Likewise.
5526         * WUR-REPORT: Remove set*id functions.
5527
5528 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
5529
5530         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
5531
5532 2012-07-31  Roland McGrath  <roland@hack.frob.com>
5533
5534         * include/sys/socket.h (__libc_accept, __libc_accept4):
5535         Add attribute_hidden.
5536         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
5537
5538         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
5539         use of PTR_MANGLE.
5540         * inet/getnetgrent_r.c (setup): Likewise.
5541
5542         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
5543
5544 2012-07-31  David S. Miller  <davem@davemloft.net>
5545
5546         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5547
5548 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
5549
5550         [BZ #13629]
5551         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
5552         value between 1.0 and 2.0 and smaller part has absolute value less
5553         than 1.0.
5554         * math/s_clog10.c (__clog10): Likewise.
5555         * math/s_clog10f.c (__clog10f): Likewise.
5556         * math/s_clog10l.c (__clog10l): Likewise.
5557         * math/s_clogf.c (__clogf): Likewise.
5558         * math/s_clogl.c (__clogl): Likewise.
5559         * math/libm-test.inc (clog_test): Add more tests.
5560         (clog10_test): Likewise.
5561         * sysdeps/i386/fpu/libm-test-ulps: Update.
5562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5563
5564 2012-07-31  Florian Weimer  <fweimer@redhat.com>
5565
5566         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
5567         Exit with zero in case no suitable GID is found, and write a
5568         message to standard error.
5569
5570 2012-07-30  Roland McGrath  <roland@hack.frob.com>
5571
5572         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
5573         rather than to 1.
5574         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
5575         (MAXPATHLEN): Removed.
5576         (NOGROUP, NODEV): New macros.
5577         (setbit, clrbit, isset, isclr): New macros.
5578         (howmany, roundup, powerof2): New macros.
5579         (DEV_BSIZE): New macro.
5580
5581         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
5582         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
5583
5584         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
5585         definition on [!__NO_LONG_DOUBLE_MATH].
5586
5587         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
5588         PTR_MANGLE and PTR_DEMANGLE.
5589
5590         * socket/accept4.c (accept4): Rename to __libc_accept4.
5591         Define accept4 as a weak alias.
5592
5593         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
5594         on [_DIRENT_HAVE_D_TYPE].
5595         * io/ftw.c (ftw_dir): Likewise.
5596
5597         * io/xmknod.c (__xmknod): Don't check PATH for being null.
5598
5599         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
5600
5601         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
5602         Use the BSD numbers rather than the arbitrary ones we had.
5603         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
5604         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
5605         (SIGXCPU, SIGXFSZ): New macros.
5606         (_NSIG): Now 32.
5607
5608         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
5609         initializer on [_LIBC_REENTRANT].
5610
5611         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
5612         definitions inside [_POSIX_MAPPED_FILES].
5613
5614         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
5615
5616         * dirent/opendir.c: Include <fcntl.h>.
5617
5618         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
5619         (__libc_getspecific): Likewise.
5620         (__libc_key_create): Likewise.
5621
5622         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
5623         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
5624         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
5625         (tmpfile64): Define as alias.
5626         * sysdeps/wordsize-64/tmpfile.c: File removed.
5627         * sysdeps/wordsize-64/tmpfile64.c: File removed.
5628         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
5629         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
5630
5631         * stdio-common/vfscanf.c: Include <stdbool.h>.
5632         * nss/makedb.c: Likewise.
5633         * stdio-common/_i18n_number.h: Likewise.
5634         * argp/argp-help.c: Likewise.
5635         * posix/wordexp.c: Likewise.
5636         * sysdeps/posix/spawni.c: Likewise.
5637         * nss/nss_files/files-initgroups.c: Likewise.
5638         * stdio-common/reg-modifier.c: Include <stdlib.h>.
5639         * nss/nss_files/files-initgroups.c: Likewise.
5640         * nss/nss_db/db-netgrp.c: Likewise.
5641         * nss/nss_db/db-initgroups.c: Likewise.
5642         * io/fchmodat.c: Include <sys/stat.h>.
5643
5644         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
5645         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
5646
5647         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
5648         [HAVE_MMAP].
5649
5650         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
5651         Add multiple inclusion protection.
5652
5653 2012-07-27  David S. Miller  <davem@davemloft.net>
5654
5655         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5656
5657 2012-07-27  Gary Benson  <gbenson@redhat.com>
5658
5659         [BZ #14298]
5660         * elf/rtld.c: Include <stap-probe.h>.
5661         (dl_main): Added static probes "init_start" and "init_complete".
5662         * elf/dl-load.c: Include <stap-probe.h>.
5663         (lose): Take new parameter "nsid".
5664         Added static probe "map_failed".
5665         (_dl_map_object_from_fd): Pass namespace id to lose.
5666         Added static probe "map_start".
5667         (open_verify): Pass namespace id to lose.
5668         * elf/dl-open.c: Include <stap-probe.h>.
5669         (dl_open_worker) Added static probes "map_complete", "reloc_start"
5670         and "reloc_complete".
5671         * elf/dl-close.c: Include <stap-probe.h>.
5672         (_dl_close_worker): Added static probes "unmap_start" and
5673         "unmap_complete".
5674         * elf/rtld-debugger-interface.txt: New file documenting the above.
5675
5676 2012-07-26  Roland McGrath  <roland@hack.frob.com>
5677
5678         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
5679         rather than a string variable.
5680         * sunrpc/rpc_main.c (h_output): Likewise.
5681         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
5682
5683 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
5684
5685         * inet/check_native.c: New file.
5686
5687 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
5688
5689         [BZ #13629]
5690         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
5691         if larger part has absolute value 1.0.
5692         * math/s_clog10.c (__clog10): Likewise.
5693         * math/s_clog10f.c (__clog10f): Likewise.
5694         * math/s_clog10l.c (__clog10l): Likewise.
5695         * math/s_clogf.c (__clogf): Likewise.
5696         * math/s_clogl.c (__clogl): Likewise.
5697         * math/libm-test.inc (clog_test): Add more tests.
5698         (clog10_test): Likewise.
5699         * sysdeps/i386/fpu/libm-test-ulps: Update.
5700         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5701
5702         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
5703         (pltexit): Likewise.
5704         (La_regs): Likewise.
5705         (La_retval): Likewise.
5706         (int_retval): Likewise.
5707         Update #error for removed macros to refer only to definitions in
5708         tst-audit.h.
5709         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
5710         macro.
5711         (pltexit): Likewise.
5712         (La_regs): Likewise.
5713         (La_retval): Likewise.
5714         (int_retval): Likewise.
5715         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
5716         macro.
5717         (pltexit): Likewise.
5718         (La_regs): Likewise.
5719         (La_retval): Likewise.
5720         (int_retval): Likewise.
5721         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
5722         macro.
5723         (pltexit): Likewise.
5724         (La_regs): Likewise.
5725         (La_retval): Likewise.
5726         (int_retval): Likewise.
5727         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
5728         macro.
5729         (pltexit): Likewise.
5730         (La_regs): Likewise.
5731         (La_retval): Likewise.
5732         (int_retval): Likewise.
5733         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
5734         macro.
5735         (pltexit): Likewise.
5736         (La_regs): Likewise.
5737         (La_retval): Likewise.
5738         (int_retval): Likewise.
5739         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
5740         macro.
5741         (pltexit): Likewise.
5742         (La_regs): Likewise.
5743         (La_retval): Likewise.
5744         (int_retval): Likewise.
5745         * sysdeps/generic/tst-audit.h: Update comment to refer only to
5746         macro definitions in tst-audit.h.
5747         * sysdeps/i386/tst-audit.h: New file.
5748         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
5749         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
5750         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
5751         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
5752         * sysdeps/sh/tst-audit.h: Likewise.
5753         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
5754         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
5755         * sysdeps/x86_64/tst-audit.h: Likewise.
5756
5757 2012-07-26  Andreas Jaeger  <aj@suse.de>
5758
5759         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
5760         ptrace.
5761
5762         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
5763         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
5764         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
5765         PTRACE_O_MASK.
5766         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
5767         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
5768         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
5769
5770         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
5771         value.
5772
5773         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
5774         _sigsys.
5775         (si_call_addr, si_syscall, si_arch): Define new macro.
5776         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
5777         _sigsys.
5778         (si_call_addr, si_syscall, si_arch): Define new marcro.
5779         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
5780         _sigsys.
5781         (si_call_addr, si_syscall, si_arch): Define new macro.
5782         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
5783         _sigsys.
5784         (si_call_addr, si_syscall, si_arch): Define new macro.
5785
5786 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5787
5788         [BZ #13717]
5789         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5790         Change to 2.4.21 where previously 2.4.1.
5791         * sysdeps/unix/sysv/linux/configure: Regenerated.
5792         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
5793         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
5794         Linux kernel version.
5795         (__ASSUME_STD_AUXV): Remove.
5796         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
5797         kernel version.
5798         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
5799         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
5800         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
5801         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
5802         (__ASSUME_NETLINK_SUPPORT): Likewise.
5803         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
5804         (__no_netlink_support): Remove conditional definition.
5805         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5806         Remove.
5807         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5808         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5809         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5810         (if_nameindex_ioctl): Remove.
5811         (if_nameindex_netlink): Do not handle __no_netlink_support.
5812         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5813         code.
5814         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5815         Remove conditional code.
5816         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5817         code.
5818         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5819         unconditional.
5820         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5821         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5822         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5823         Remove.
5824         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5825         [!__ASSUME_STD_AUXV]: Remove conditional code.
5826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5827         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5828         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5830         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5831         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5832         code.
5833         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5835         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5836         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5837         conditional code.
5838         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5840         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5841         code.
5842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5843         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5844         conditional code.
5845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5846         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5847         code unconditional.
5848         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5849         conditional code.
5850         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5851         unconditional.
5852         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5853         conditional code.
5854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5855         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5856         unconditional.
5857         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5858         conditional code.
5859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5860         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5861         code unconditional.
5862         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5863         conditional code.
5864         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5865         unconditional.
5866         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5867         conditional code.
5868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5869         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5870         code unconditional.
5871         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5872         conditional code.
5873         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5874         unconditional.
5875         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5876         conditional code.
5877
5878 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5879
5880         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5881         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5882         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5883         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5884         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5885         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5886         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5887         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5888         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5889         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5890         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5891         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5892         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5893         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5894         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5895         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5896         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5897         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5898         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5899         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5900         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5901         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5902         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5903
5904 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5905
5906         * Versions.def: Add GLIBC_2.17.
5907         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5908         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5909         Introduce __libc_secure_getenv.
5910         * stdlib/Versions (2.17): Add secure_getenv
5911         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5912         * stdlib/secure-getenv.c: Rename __secure_getenv to
5913         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5914         symbol __secure_getenv for GLIBC_2.0.
5915         * stdlib/tst-secure-getenv.c: New.
5916         * stdlib/Makefile (tests): Add testcase.
5917         * manual/startup.texi (Environment Access): Document
5918         secure_getenv.
5919         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5920         __libc_secure_getenv.
5921         * inet/ruserpass.c (ruserpass): Likewise.
5922         * malloc/mtrace.c (mtrace): Likewise.
5923         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5924         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5925         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5926         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5927         HAVE_SECURE_GETENV.
5928         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5929         __secure_getenv to __libc_secure_getenv.
5930         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5932         Likewise.
5933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5934         Likewise.
5935         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5936         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5937         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5938         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5940         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5941         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5942
5943 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5944
5945         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5946         (struct La_i86_retval): Likewise.
5947         (struct La_x86_64_regs): Likewise.
5948         (struct La_x86_64_retval): Likewise.
5949         (struct La_x32_regs): Likewise.
5950         (struct La_x32_retval): Likewise.
5951         (struct La_ppc32_regs): Likewise.
5952         (struct La_ppc32_retval): Likewise.
5953         (struct La_ppc64_regs): Likewise.
5954         (struct La_ppc64_retval): Likewise.
5955         (struct La_sh_regs): Likewise.
5956         (struct La_sh_retval): Likewise.
5957         (struct La_s390_32_regs): Likewise.
5958         (struct La_s390_32_retval): Likewise.
5959         (struct La_s390_64_regs): Likewise.
5960         (struct La_s390_64_retval): Likewise.
5961         (struct La_sparc32_regs): Likewise.
5962         (struct La_sparc32_retval): Likewise.
5963         (struct La_sparc64_regs): Likewise.
5964         (struct La_sparc64_retval): Likewise.
5965         (struct audit_ifaces): Remove architecture-specific pltenter and
5966         pltexit members.
5967         * sysdeps/i386/ldsodefs.h: New file.
5968         * sysdeps/powerpc/ldsodefs.h: Likewise.
5969         * sysdeps/s390/ldsodefs.h: Likewise.
5970         * sysdeps/sh/ldsodefs.h: Likewise.
5971         * sysdeps/sparc/ldsodefs.h: Likewise.
5972         * sysdeps/x86_64/ldsodefs.h: Likewise.
5973
5974 2012-07-25  Marek Polacek  <polacek@redhat.com>
5975
5976         [BZ #6808]
5977         * math/libm-test.inc (yn_test): Add another test.
5978         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5979         to ERANGE when the result is +-Inf.
5980         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5981         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5982         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5983         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5984
5985 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5986
5987         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5988         equal to 0.
5989         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5990         clock_t.
5991         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5992
5993 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5994
5995         * configure.in <sysdeps resolving>: Correct printing
5996         Implies_before.
5997         * configure: Regenerate.
5998
5999 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
6000
6001         * math/w_ilogb.c: Include <limits.h>.
6002         * math/w_ilogbl.c: Likewise.
6003
6004 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
6005
6006         * manual/lang.texi (__va_copy): Document primarily as ISO C99
6007         va_copy.  Document allowing for unavailable va_copy only as
6008         pre-C99 compatibility.
6009         * manual/string.texi (Copying and Concatenation): Use va_copy
6010         instead of __va_copy in concat example.
6011
6012 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
6013
6014         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
6015         (__sendto): Use create_address_port.  Initialize APORT and deallocate
6016         it if not null.
6017
6018         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
6019         with O_NOLINK passed to __file_name_lookup.
6020
6021         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
6022         with O_NOLINK passed to __file_name_lookup.
6023
6024         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
6025         negative N or less than NGIDS.
6026
6027         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
6028         type to string_t.  Set ERANGE as errno and return it if NAME is not big
6029         enough.  Use memcpy instead of strncpy.
6030
6031 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
6032
6033         * elf/Makefile (check-data): Remove.
6034         (localplt.data): New vpath directive.
6035         ($(objpfx)check-localplt.out): Use localplt.data from vpath
6036         instead of $(check-data).
6037         * scripts/data/localplt-generic.data: Move to ...
6038         * sysdeps/generic/localplt.data: ... here.
6039         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
6040         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
6041         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
6042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
6043         ... here.
6044         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
6045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
6046         ... here.
6047         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
6048         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
6049         ... here.
6050         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
6051         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
6052         ... here.
6053         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
6054         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
6055         ... here.
6056         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
6057         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
6058         ... here.
6059
6060 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6061
6062         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
6063         PPC32 and PPC64 files.
6064         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
6065         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
6066
6067 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6068
6069         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
6070         __makecontext_ret to ...
6071         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
6072         ... here and call exit if uc_link is NULL.  New file.
6073         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
6074         __makecontext_ret.S.
6075         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
6076         __makecontext_ret to ...
6077         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
6078         ... here and call exit if uc_link is NULL.  New file.
6079         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
6080         __makecontext_ret.S.
6081
6082 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6083
6084         * elf/elf.h (R_390_IRELATIVE): New definition.
6085         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
6086         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
6087         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
6088         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
6089         (elf_machine_lazy_rel): Likewise.
6090         * sysdeps/s390/dl-irel.h: New file.
6091         * sysdeps/s390/s390-64/memcpy.S: New asm code.
6092         * sysdeps/s390/s390-64/memset.S: New asm code.
6093         * sysdeps/s390/s390-64/memcmp.S: New asm code.
6094         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
6095         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
6096         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
6097         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
6098         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
6099         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
6100         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
6101         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
6102         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
6103         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
6104         * sysdeps/s390/s390-32/memcpy.S: New asm code.
6105         * sysdeps/s390/s390-32/memset.S: New asm code.
6106         * sysdeps/s390/s390-32/memcmp.S: New asm code.
6107
6108 2012-07-17  Marek Polacek  <polacek@redhat.com>
6109
6110         [BZ #14349]
6111         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
6112         * sysdeps/s390/s390-64/configure.in: Likewise.
6113         * sysdeps/sparc/configure.in: Likewise.
6114         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
6115         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
6116         * sysdeps/i386/configure.in: Likewise.
6117         * sysdeps/x86_64/configure.in: Likewise.
6118         * sysdeps/sh/configure.in: Likewise.
6119         * sysdeps/s390/s390-32/configure: Regenerated.
6120         * sysdeps/s390/s390-64/configure: Likewise.
6121         * sysdeps/x86_64/configure: Likewise.
6122         * sysdeps/sh/configure: Likewise.
6123         * sysdeps/powerpc/powerpc64/configure: Likewise.
6124         * sysdeps/powerpc/powerpc32/configure: Likewise.
6125         * sysdeps/sparc/configure: Likwise.
6126         * sysdeps/i386/configure: Likewise.
6127
6128         * elf/dl-open.c: Comment fixes.
6129
6130 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
6131
6132         * Makefile [CXX] (check-data): Remove.
6133         [CXX] (c++-types.data): New vpath directive.
6134         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
6135         vpath.  Do not allow for C++ type data being missing.
6136         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
6137         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
6138         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
6139         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
6140         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
6141         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
6142         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
6143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
6144         ... here.
6145         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
6146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
6147         ... here.
6148         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
6149         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
6150         ... here.
6151         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
6152         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
6153         ... here.
6154         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
6155         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
6156         ... here.
6157         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
6158         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
6159         ... here.
6160         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
6161         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
6162         ... here.
6163         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
6164         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
6165
6166         * elf/tls-macros.h (TLS_LE): Move architecture-specific
6167         definitions to architecture-specific files.
6168         (TLS_IE): Likewise.
6169         (TLS_LD): Likewise.
6170         (TLS_GD): Likewise.
6171         * sysdeps/i386/tls-macros.h: New file.
6172         * sysdeps/powerpc/tls-macros.h: Likewise.
6173         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6174         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6175         * sysdeps/sh/tls-macros.h: Likewise.
6176         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
6177         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
6178         * sysdeps/x86_64/tls-macros.h: Likewise.
6179
6180 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
6181
6182         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
6183         zero value for regular exit case.
6184
6185         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
6186         (__start_context): Preserve zero value for regular exit case.
6187
6188 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
6189             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6190
6191         * manual/setjmp.texi (setcontext): Clarify normal process
6192         termination when uc_link is the null pointer.
6193         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
6194         exit call.
6195
6196 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
6197
6198         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
6199         preprocessor.  Test for each exception mask separately.
6200
6201 2012-07-16  Andreas Jaeger  <aj@suse.de>
6202
6203         * po/ru.po: Update from translation team.
6204
6205 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
6206
6207         * conform/data/string.h-data (NULL): Use macro-constant.  Require
6208         equal to 0.
6209         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6210         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6211         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
6212         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
6213         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6214
6215 2012-07-13  Andreas Jaeger  <aj@suse.de>
6216
6217         * po/fr.po: Update from translation team.
6218
6219 2012-07-12  Marek Polacek  <polacek@redhat.com>
6220
6221         [BZ #14173]
6222         * math/libm-test.inc (yn_test): Add test for BZ #14173.
6223         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
6224         loop condition.
6225
6226 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
6227
6228         [BZ #13717]
6229         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
6230         Change to 2.4.1 where previously 2.4.0.
6231         * sysdeps/unix/sysv/linux/configure: Regenerated.
6232         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
6233         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
6234         version.
6235         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
6236         (__ASSUME_AT_CLKTCK): Remove.
6237         (__ASSUME_AT_PAGESIZE): Likewise.
6238         (__ASSUME_AT_XID): Likewise.
6239         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
6240         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
6241         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
6242         unconditionally.
6243         (HAVE_AUX_PAGESIZE): Likewise.
6244         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
6245         [__ASSUME_AT_CLKTCK]: Make code unconditional.
6246         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
6247
6248 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
6249
6250         [BZ #14307]
6251         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
6252         the temporary buffer used to invoke __gethostbyname2_r,
6253         __gethostbyaddr_r and gethostbyname4_r to make room for struct
6254         host_data / struct gaih_addrtuple.
6255         * resolv/nss_dns/dns-host.c (global scope): Move definition of
6256         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
6257         header file nss/nsswitch.h.
6258         * nss/nsswitch.h (global scope): Add definition of implementation
6259         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
6260         resolv/nss_dns/dns-host.c).
6261
6262 2012-07-11  Andreas Jaeger  <aj@suse.de>
6263
6264         * po/fr.po: Update from translation team.
6265
6266         * po/sv.po: Update from translation team
6267         * po/fr.po: Another update from translation team.
6268
6269 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6270
6271         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
6272         for subnormals or multiply small sinh result by itself.
6273         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
6274         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6275
6276 2012-07-11  David S. Miller  <davem@davemloft.net>
6277
6278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6279
6280 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
6281
6282         [BZ #14347]
6283         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
6284         (INTERNAL_MARK): Shift it here.
6285
6286 2012-07-10  Marek Polacek  <polacek@redhat.com>
6287
6288         [BZ #14151]
6289         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
6290         libc_cv_asm_global_directive with .globl.
6291         * configure: Regenerated.
6292         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
6293         with .globl.
6294         * sysdeps/i386/configure: Regenerated.
6295         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
6296         with .globl.
6297         * sysdeps/x86_64/configure: Regenerated.
6298         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
6299         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
6300         * elf/tst-unique2mod2.c: Likewise.
6301         * elf/tst-unique2mod1.c: Likewise.
6302         * elf/tst-unique1mod2.c: Likewise.
6303         * elf/tst-unique1mod1.c: Likewise.
6304         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6305         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6306         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6307         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6308         * sysdeps/mach/sysdep.h: Likewise.
6309         * sysdeps/i386/sysdep.h: Likewise.
6310         * sysdeps/i386/i386-mcount.S: Likewise.
6311         * sysdeps/x86_64/_mcount.S: Likewise.
6312         * sysdeps/x86_64/sysdep.h: Likewise.
6313         * sysdeps/sh/_mcount.S: Likewise.
6314         * sysdeps/sh/sysdep.h: Likewise.
6315         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
6316         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
6317         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
6318         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6319         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
6320         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
6321         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
6322         * locale/localeinfo.h: Likewise.
6323         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
6324         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
6325
6326 2012-07-09  Roland McGrath  <roland@hack.frob.com>
6327
6328         [BZ #14336]
6329         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
6330         system".
6331         * manual/message.texi (The Uniforum approach): Likewise.
6332         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
6333         (glibc iconv Implementation): Likewise.
6334
6335 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
6336
6337         [BZ #14337]
6338         * math/s_clog.c (__clog): Avoid scaling a value down where that
6339         could result in underflow.
6340         * math/s_clog10.c (__clog10): Likewise.
6341         * math/s_clog10f.c (__clog10f): Likewise.
6342         * math/s_clog10l.c (__clog10l): Likewise.
6343         * math/s_clogf.c (__clogf): Likewise.
6344         * math/s_clogl.c (__clogl): Likewise.
6345         * math/libm-test.inc (clog_test): Add more tests.
6346         (clog10_test): Likewise.
6347         * sysdeps/i386/fpu/libm-test-ulps: Update.
6348         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6349
6350 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
6351
6352         [BZ #14283]
6353         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
6354         by 7 not 8 to examine high bit of fractional part.
6355
6356         [BZ #14042]
6357         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
6358         for call to __mcount_internal.
6359         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
6360         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
6361         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
6362
6363 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
6364
6365         [BZ #14154]
6366         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
6367         approximation for values within 0x1p-13f of an odd multiple of
6368         pi/4.
6369         * math/libm-test.inc (tan_test): Do not allow spurious underflow
6370         exception.  Add more tests.
6371         * sysdeps/i386/fpu/libm-test-ulps: Update.
6372
6373         [BZ #6778]
6374         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
6375         inputs and return -1 for them.  Do not check for +Inf in case not
6376         reachable for +Inf.
6377         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
6378         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
6379         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
6380         and return -1 for them.  Do not check for +Inf in case not
6381         reachable for +Inf.
6382         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
6383         define.
6384         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
6385         and return -1 for them.  Do not check for +Inf in case not
6386         reachable for +Inf.
6387         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
6388         spurious underflow.
6389         * sysdeps/i386/fpu/libm-test-ulps: Update.
6390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6391
6392 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
6393
6394         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
6395
6396 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
6397
6398         [BZ #14157]
6399         [BZ #14331]
6400         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
6401         could result in spurious underflow.  Scale down values above
6402         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
6403         * math/s_csqrtf.c (__csqrtf): Likewise.
6404         * math/s_csqrtl.c (__csqrtl): Likewise.
6405         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
6406         spurious underflow.
6407         * sysdeps/i386/fpu/libm-test-ulps: Update.
6408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6409
6410 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
6411
6412         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
6413         xopen-msg.sed.
6414         * catgets/xopen-msg.awk: New file.
6415         * catgets/xopen-msg.sed: Removed.
6416
6417         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
6418         po2text.sed.
6419         * intl/po2test.awk: New file.
6420         * intl/po2test.sed: Removed.
6421
6422 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
6423
6424         [BZ #14328]
6425         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
6426         or multiply small sinh result by itself.
6427         * math/s_ctanf.c (__ctanf): Likewise.
6428         * math/s_ctanh.c (__ctanh): Likewise.
6429         * math/s_ctanhf.c (__ctanhf): Likewise.
6430         * math/s_ctanhl.c (__ctanhl): Likewise.
6431         * math/s_ctanl.c (__ctanl): Likewise.
6432         * math/libm-test.inc (ctan_test_tonearest): New function.
6433         (ctan_test_towardzero): Likewise.
6434         (ctan_test_downward): Likewise.
6435         (ctan_test_upward): Likewise.
6436         (ctanh_test_tonearest): Likewise.
6437         (ctanh_test_towardzero): Likewise.
6438         (ctanh_test_downward): Likewise.
6439         (ctanh_test_upward): Likewise.
6440         (main): Call these new functions.
6441         * sysdeps/i386/fpu/libm-test-ulps: Update.
6442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6443
6444 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
6445
6446         * .gitignore: Delete /ports entry.
6447
6448 2012-07-03  Andreas Jaeger  <aj@suse.de>
6449
6450         * po/bg.po: Update from translation team.
6451         * po/cs.po: Likewise.
6452         * po/de.po: Likewise.
6453         * po/hr.po: Likewise.
6454         * po/nl.pl: Likewise.
6455         * po/pl.po: Likewise.
6456         * po/vi.po: Likewise.
6457
6458 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
6459
6460         * Makeconfig [!+link] (+link-before-libc): New variable.
6461         [!+link] (+link-after-libc): Likewise.
6462         [!+link] (+link-tests): Likewise.
6463         [!+link] (+link): Define in terms of $(+link-before-libc) and
6464         $(+link-after-libc).
6465         [!+link-static] (+link-static-before-libc): New variable.
6466         [!+link-static] (+link-static-after-libc): Likewise.
6467         [!+link-static] (+link-static-tests): Likewise.
6468         [!+link-static] (+link-static): Define in terms of
6469         $(+link-static-before-libc) and $(+link-static-after-libc).
6470         [build-shared] (link-libc-before-gnulib): New variable.
6471         [build-shared] (link-libc-tests): Likewise.
6472         [build-shared] (link-libc): Define in terms of
6473         $(link-libc-before-gnulib).
6474         [!build-shared] (link-libc-tests): New variable.
6475         (link-libc-static-tests): New variable.
6476         [!gnulib] (gnulib-arch): New variable.
6477         [!gnulib] (gnulib-tests): Likewise.
6478         [!gnulib] (static-gnulib-arch): Likewise.
6479         [!gnulib] (static-gnulib-tests): Likewise.
6480         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
6481         Define with "=" instead of ":=".
6482         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
6483         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
6484         * Rules (binaries-all-notests): New variable.
6485         (binaries-all-tests): Likewise.
6486         (binaries-static-notests): Likewise.
6487         (binaries-static-tests): Likewise.
6488         (binaries-all): Define using $(binaries-all-notests) and
6489         $(binaries-all-tests).
6490         (binaries-static): Define using $(binaries-static-notests) and
6491         $(binaries-static-tests).
6492         (binaries-shared-tests): New variable.
6493         (binaries-shared-notests): Likewise.
6494         (binaries-shared): Remove variable.
6495         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
6496         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
6497         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
6498         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
6499         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
6500         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
6501         * elf/Makefile (sln-modules): New variable.
6502         (extra-objs): Add $(sln-modules:=.o).
6503         (ldconfig-modules): Add static-stubs.
6504         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
6505         * elf/static-stubs.c: New file.
6506
6507         [BZ #14283]
6508         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
6509         by 7 not 8 to examine high bit of fractional part.  Use volatile
6510         variables when splitting into final array of floats if
6511         __FLT_EVAL_METHOD__ != 0.
6512         * math/libm-test.inc (cos_test): Add another test.
6513         (sin_test): Likewise.
6514         * sysdeps/i386/fpu/libm-test-ulps: Update.
6515
6516         [BZ #14273]
6517         * math/libm-test.inc (cosh_test): Add more tests.
6518
6519         * version.h (RELEASE): Set to "development".
6520         (VERSION): Set to "2.16.90".
6521
6522 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
6523
6524         * NEWS: Update copyright. Remove last-updated date.
6525         Mention math library bug fixes and timezone data changes.
6526         * README: Mention GNU/Hurd, x32, and HPPA support status.
6527
6528 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
6529
6530         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
6531
6532 2012-06-27  Andreas Jaeger  <aj@suse.de>
6533
6534         * manual/contrib.texi (Contributors): Add Samuel Thibault.
6535
6536 2012-06-25  Andreas Jaeger  <aj@suse.de>
6537
6538         * sysdeps/s390/fpu/libm-test-ulps: Update.
6539
6540 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
6541             Thomas Schwinge  <thomas@codesourcery.com>
6542
6543         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
6544         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
6545         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
6546         fanotify_mark.
6547
6548 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
6549
6550         * sysdeps/mach/start.c: Remove file.
6551         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
6552         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
6553         * sysdeps/sh/init-first.c: Likewise.
6554
6555         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
6556         registers for frame unwinding purposes, add CFI directives.
6557         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
6558         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
6559         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6560         Likewise.
6561
6562         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
6563         __fortify_fail returning.
6564         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
6565
6566         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
6567         sysdeps/sh/____longjmp_chk.S.
6568         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
6569         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
6570         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
6571         (gen-as-const-headers): Append sigaltstack-offsets.sym.
6572
6573         * sysdeps/sh/abort-instr.h: New file.
6574         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
6575         process in case exit returns.
6576
6577         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
6578         initialize the GOT register before use.
6579
6580         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
6581         calculation of ARGC > 4.
6582
6583         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
6584         meaningful names to some local labels.
6585
6586 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6587             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6588
6589         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
6590         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
6591         (__arch_compare_and_exchange_val_16_acq): Likewise.
6592         (__arch_compare_and_exchange_val_32_acq): Likewise.
6593         (atomic_exchange_and_add): Fix gUSA sequence.
6594         (atomic_add): Likewise.
6595         (atomic_add_negative): Likewise.
6596         (atomic_add_zero): Likewise.
6597         (atomic_bit_test_set): Likewise.
6598
6599 2012-06-22  Andreas Schwab  <schwab@redhat.com>
6600
6601         [BZ #13579]
6602         * include/link.h (struct link_map): Add l_free_initfini.
6603         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
6604         l_initfini.
6605         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
6606         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
6607         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
6608         set.
6609
6610 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
6611
6612         * configure.in: Use AC_LANG_SOURCE.
6613         * configure: Regenerate.
6614
6615 2012-06-22  Roland McGrath  <roland@hack.frob.com>
6616
6617         * configure.in (libc_cv_localstatedir): New substituted variable.
6618         * configure: Regenerated.
6619         * config.make.in (localstatedir): New variable, substituted from
6620         libc_cv_localstatedir.
6621         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
6622         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
6623         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
6624         * sysdeps/gnu/configure: Regenerated.
6625
6626 2012-06-21  Jeff Law  <law@redhat.com>
6627
6628         [BZ #14277]
6629         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
6630         free.  Simplify list management for _LIBC case.
6631
6632 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
6633
6634         [BZ #14273]
6635         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
6636         Clear sign bit of 64-bit integer value before comparing against
6637         overflow value.
6638
6639         * sysdeps/mach/configure: Regenerated.
6640
6641 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
6642
6643         [BZ #14278]
6644         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
6645
6646 2012-06-21  Jeff Law  <law@redhat.com>
6647
6648         [BZ #13882]
6649         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
6650         uint16_t for elements in the "seen" array to avoid char overflows.
6651         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6652         * elf/dl-open.c (dl_open_worker): Likewise.
6653
6654 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
6655
6656         * scripts/list-sources.sh: Scan PORTS for translations.
6657         * po/libc.pot: Regenerated.
6658
6659 2012-06-21  Andreas Jaeger  <aj@suse.de>
6660
6661         [BZ #12194]
6662         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
6663         warning.
6664         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
6665         * bits/byteswap-16.h (__bswap_16): Likewise.
6666         * bits/byteswap.h (__bswap_constant_16): Likewise.
6667
6668 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
6669
6670         [BZ #14117]
6671         * sysdeps/i386/fpu_control.h: Removed.
6672         * sysdeps/x86_64/fpu_control.h: Moved to ...
6673         * sysdeps/x86/fpu_control.h: Here.
6674
6675         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
6676         (_FPU_SETCW): Likewise.
6677
6678 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
6679
6680         [BZ #14117]
6681         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
6682         * sysdeps/x86/fpu/bits/mathinline.h: This.
6683         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
6684
6685         [BZ #14050]
6686         [BZ #14117]
6687         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
6688         functions if __x86_64__ is defined.
6689
6690 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
6691
6692         * string/endian.h: Add !__ASSEMBLER__ condition for including
6693         conversion interfaces.
6694
6695 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
6696
6697         [BZ #14241]
6698         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
6699         of ABS(x) in calculating zero to negative powers other than odd
6700         integers.
6701         * math/libm-test.inc (pow_test): Add more tests.
6702
6703 2012-06-15  Andreas Jaeger  <aj@suse.de>
6704
6705         * manual/contrib.texi (Contributors): Update entry of Liubov
6706         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
6707         Machado Filho.
6708
6709 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
6710
6711         * string/string.h: Add __wur to GNU version of strerror_r.
6712
6713 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
6714
6715         [BZ #14229]
6716         * string/Makefile (tests): Add tst-strtok_r.
6717         * string/tst-strtok_r.c: New file.
6718         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
6719         RAX_LP/RDX_LP on SAVE_PTR.
6720
6721 2012-06-14  Roland McGrath  <roland@hack.frob.com>
6722
6723         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
6724
6725 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
6726
6727         * libm_test.inc (csqrt_test): Allow more spurious underflow
6728         exceptions.
6729         (j0_test): Likewise.
6730         (j1_test): Likewise.
6731         (y0_test): Likewise.
6732         (y1_test): Likewise.
6733
6734 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
6735
6736         * po/Makefile (libc.pot): Use UTF-8 charset.
6737
6738 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
6739
6740         [BZ #14210]
6741         Suppress sign-conversion warning from FD_SET.
6742         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
6743         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
6744         not unsigned long int.
6745         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
6746
6747 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
6748
6749         [BZ #14050]
6750         [BZ #14117]
6751         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
6752         __extern_always_inline instead of __extern_inline.
6753         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
6754         (__signbit): Likewise.
6755         (__signbitl): Support C++ namespace.
6756         (lrintf): New inline function.
6757         (lrint): Likewise.
6758         (llrintf): Likewise.
6759         (llrint): Likewise.
6760         (fmaxf): Likewise.
6761         (fmax): Likewise.
6762         (fminf): Likewise.
6763         (fmin): Likewise.
6764         (rint): Likewise.
6765         (rintf): Likewise.
6766         (ceil): Likewise.
6767         (ceilf): Likewise.
6768         (floor): Likewise.
6769         (floorf): Likewise.
6770         (nearbyint): Likewise.
6771         (nearbyintf): Likewise.
6772
6773 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
6774
6775         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
6776         non-default versions.
6777
6778 2012-06-11  Roland McGrath  <roland@hack.frob.com>
6779
6780         [BZ #14218]
6781         * manual/argp.texi (Argp): Reword argp_parse description slightly.
6782
6783 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
6784
6785         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
6786         (FE_UPWARD, FE_DOWNWARD): Don't define.
6787         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
6788         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6789
6790         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
6791         reading it.
6792         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6793         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6794
6795 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6796
6797         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6798         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
6799         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
6800         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
6801
6802 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
6803
6804         [BZ #14117]
6805         * sysdeps/i386/fpu/bits/fenv.h: Removed.
6806         * sysdeps/i386/fpu/Implies: New file.
6807         * sysdeps/x86_64/fpu/Implies: Likewise.
6808         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6809         * sysdeps/x86/fpu/bits/fenv.h: This.
6810
6811         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6812         __SSE_MATH__.
6813
6814 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6815
6816         [BZ #14134]
6817         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6818         character 0xffff that matches the last element of the
6819         conversion table.
6820
6821 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6822
6823         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6824         fmodl commit.
6825
6826 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6827
6828         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6829         values higher than 25.6283.
6830
6831 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6832
6833         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6834         subnormal exponent extraction and add some __builtin_expect.
6835         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6836         Fix for subnormal mantissa calculation.
6837
6838 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6839
6840         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6841         cpu2 is -1 and errno is not ENOSYS.
6842
6843 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6844
6845         [BZ #14117]
6846         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6847         * sysdeps/x86/bits/string.h: This.
6848         * sysdeps/x86_64/bits/string.h: Removed.
6849
6850         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6851         if not compiling for x86-64, but compiling for >= i486.
6852
6853         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6854         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6855
6856         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6857         New macro from Linux kernel 3.4.0.
6858         (FP_XSTATE_MAGIC2): Likewise.
6859         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6860         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6861         (struct _fpx_sw_bytes): New struct.
6862         (struct _xsave_hdr): Likewise.
6863         (struct _ymmh_state): Likewise.
6864         (struct _xstate): Likewise.
6865
6866         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6867         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6868         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6869         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6870         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6871         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6872
6873         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6874         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6875         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6876         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6877         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6878         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6879
6880 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6881
6882         [BZ #13743]
6883         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6884         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6885         (sysdep_headers): Include sys/platform/ppc.h.
6886         * sysdeps/powerpc/test-gettimebase.c: Test for
6887         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6888         * manual/Makefile (appendices): Include platform.texi.
6889         * manual/contrib.texi (Contributors): Update @node pointers.
6890         * manual/maint.texi (Maintenance): Likewise.
6891         (Platform): New node.
6892         * manual/platform.texi: New file.  Document the new features.
6893
6894 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6895             Jakub Jelinek  <jakub@redhat.com>
6896
6897         [BZ #14188]
6898         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6899         where __builtin_expect is unavailable.
6900
6901 2012-06-03  David S. Miller  <davem@davemloft.net>
6902
6903         * stdlib/longlong.h: Updated from GCC.
6904
6905 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6906
6907         [BZ #14042]
6908         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6909         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6910         __mcount_internal.
6911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6912         (GLIBC_2.16): Likewise.
6913
6914 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6915
6916         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6917
6918 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6919
6920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6921         (default-abi): New variable.
6922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6923         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6924         variable.
6925         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6926         Likewise.
6927         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6928         Likewise.
6929         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6930         Likewise.
6931
6932         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6933         definition.  Document in comment.
6934
6935 2012-06-01  David S. Miller  <davem@davemloft.net>
6936
6937         * stdlib/longlong.h: Updated from GCC.
6938
6939 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6940
6941         [BZ #14117]
6942         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6943         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6944         sys/debugreg.h sys/io.h here.
6945         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6946         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6947         sys/io.h.
6948         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6949         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6950         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6951         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6952         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6953         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6954
6955         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6956         Define only if __x86_64__ is defined.
6957
6958 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6959
6960         [BZ #14048]
6961         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6962         Use int64_t for variable i.
6963         * math/libm-test.inc (fmod_test): Add more tests.
6964
6965         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6966         z computation is not scheduled after fetestexcept.
6967         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6968         Use math_force_eval instead of asm to ensure calculation scheduled
6969         before exception test.
6970         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6971         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6972
6973 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6974
6975         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6976         computation is not scheduled after fetestexcept.
6977
6978 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6979
6980         [BZ #14117]
6981         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6982         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6983
6984 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6985
6986         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6987         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6988
6989 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6990
6991         [BZ #14117]
6992         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6993         <bits/wordsize.h>.
6994         (__WCHAR_MIN): Support __WORDSIZE == 64.
6995         (__WCHAR_MAX): Likewise.
6996
6997         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6998         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6999
7000         [BZ #14183]
7001         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
7002         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
7003
7004         [BZ #14117]
7005         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
7006         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
7007
7008         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
7009         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
7010
7011         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
7012         Defined to 1 if __x86_64__ isn't defined.
7013         (_STAT_VER_LINUX_OLD): New.
7014         (st_atime): Remove duplicate.
7015         (st_mtime): Likewise.
7016         (st_ctime): Likewise.
7017
7018 2012-05-31  David S. Miller  <davem@davemloft.net>
7019
7020         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
7021         entries.
7022
7023 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7024
7025         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
7026         gen-libm-test.pl.
7027
7028         [BZ #14132]
7029         * elf/dl-reloc.c: Include <_itoa.h>.
7030         (_dl_reloc_bad_type): Remove use of INTUSE.
7031         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
7032         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
7033         * stdio-common/psiginfo.c (psiginfo): Likewise.
7034         * stdio-common/psignal.c (psignal): Likewise.
7035         * string/strsignal.c (strsignal): Likewise.
7036         * include/signal.h (_sys_siglist): Declare hidden proto.
7037         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
7038         INTVARDEF with libc_hidden_data_def.
7039         * stdio-common/itoa-udigits.c: Likewise.
7040         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
7041         (_itoa_lower_digits_internal): Remove declaration.
7042         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
7043         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
7044         (_sys_sigabbrev_internal): Remove aliases.
7045         (_sys_siglist): Define hidden alias.
7046
7047 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
7048
7049         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7050         bits/sysctl.h.
7051
7052 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
7053
7054         [BZ #14117]
7055         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
7056         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
7057
7058         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
7059         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
7060         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
7061         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
7062         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
7063         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
7064
7065         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
7066         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
7067         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
7068
7069         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
7070         with __addr.
7071         (insw): Likewise.
7072         (insl): Likewise.
7073         (outsb): Likewise.
7074         (outsw): Likewise.
7075         (outsl): Likewise.
7076
7077         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
7078         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
7079         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
7080
7081         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
7082         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
7083         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
7084         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
7085         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
7086         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
7087
7088         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
7089         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
7090
7091         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
7092         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
7093
7094         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
7095         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
7096         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
7097
7098         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
7099         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
7100         to ...
7101         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
7102
7103         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
7104         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
7105         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
7106
7107         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
7108         for x86-64.
7109         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
7110
7111 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
7112
7113         * math/math.h (M_El): Use two more decimal places.
7114         (M_LOG2El): Likewise.
7115         (M_LOG10El): Likewise.
7116         (M_LN2l): Likewise.
7117         (M_LN10l): Likewise.
7118         (M_PIl): Likewise.
7119         (M_PI_2l): Likewise.
7120         (M_PI_4l): Likewise.
7121         (M_1_PIl): Likewise.
7122         (M_2_PIl): Likewise.
7123         (M_2_SQRTPIl): Likewise.
7124         (M_SQRT2l): Likewise.
7125         (M_SQRT1_2l): Likewise.
7126
7127 2012-05-31  David S. Miller  <davem@davemloft.net>
7128
7129         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
7130         values between float registers.
7131         * sysdeps/sparc/sparc64/memset.S: Likewise.
7132         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
7133
7134 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
7135
7136         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
7137         -D_FORTIFY_SOURCE=1.
7138         (CPPFLAGS-tst-longjmp_chk.c): Define.
7139         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
7140         (CPPFLAGS-tst-longjmp_chk2.c): Define.
7141         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
7142         CFLAGS-tst-wchar-h.c.
7143
7144 2012-05-31  Marek Polacek  <polacek@redhat.com>
7145
7146         [BZ #14132]
7147         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
7148         __endmntent_internal): Remove declaration.
7149         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
7150         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
7151         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
7152
7153 2012-05-30  David S. Miller  <davem@davemloft.net>
7154
7155         * sysdeps/sparc/sparc32/soft-fp/q_util.c
7156         (___Q_simulate_exceptions): Use real FP ops rather than writing
7157         into the %fsr.
7158         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
7159         Likewise.
7160
7161 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7162
7163         [BZ #14117]
7164         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
7165         * sysdeps/x86/bits/xtitypes.h: This.
7166
7167         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
7168         * sysdeps/x86/bits/wordsize.h: This.
7169
7170         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
7171         * sysdeps/x86/bits/huge_vall.h: This.
7172
7173         * sysdeps/i386/bits/select.h: Removed.
7174         * sysdeps/x86_64/bits/select.h: Renamed to ...
7175         * sysdeps/x86/bits/select.h: This.
7176
7177         * sysdeps/i386/bits/setjmp.h: Removed.
7178         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
7179         * sysdeps/x86/bits/setjmp.h: This.
7180
7181         * sysdeps/i386/bits/mathdef.h: Removed.
7182         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
7183         * sysdeps/x86/bits/mathdef.h: This.
7184
7185 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
7186
7187         [BZ #14132]
7188         * include/sys/socket.h (__connect_internal)
7189         (__libc_sa_len_internal): Remove declaration.
7190         (__connect, __libc_sa_len): Declare hidden_proto.
7191         (SA_LEN): Remove use of INTUSE.
7192         * socket/connect.c: Add libc_hidden_def.
7193         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
7194         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
7195         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
7196         alias.
7197         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7198         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7199         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
7200         of adding _internal alias.
7201
7202 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7203
7204         [BZ #14117]
7205         * sysdeps/i386/bits/link.h: Removed.
7206         * sysdeps/i386/bits/linkmap.h: Likewise.
7207         * sysdeps/x86_64/bits/link.h: Renamed to ...
7208         * sysdeps/x86/bits/link.h: This.
7209         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
7210         * sysdeps/x86/bits/linkmap.h: This.
7211
7212         * sysdeps/i386/bits/endian.h: Removed.
7213         * sysdeps/x86_64/bits/endian.h: Renamed to ...
7214         * sysdeps/x86/bits/endian.h: This.
7215
7216         * sysdeps/i386/bits/byteswap.h: Removed.
7217         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7218         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
7219         * sysdeps/x86/bits/byteswap.h: This.
7220         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
7221         * sysdeps/x86/bits/byteswap-16.h: This.
7222         * sysdeps/i386/Implies: Add x86.
7223         * sysdeps/x86_64/Implies: Likewise.
7224
7225 2012-05-30  David S. Miller  <davem@davemloft.net>
7226
7227         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
7228         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
7229         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7230         (FP_TRAPPING_EXCEPTIONS): Define.
7231         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7232         (FP_TRAPPING_EXCEPTIONS): Define.
7233         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
7234         subnormals only when inexact has been signalled or underflow
7235         exceptions are enabled.
7236         (_FP_PACK_CANONICAL): Likewise.
7237
7238 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7239
7240         [BZ #14183]
7241         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
7242         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
7243
7244 2012-05-30  Richard Henderson  <rth@twiddle.net>
7245
7246         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
7247         with #ifndef NOT_IN_libc.
7248
7249         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
7250         marked to avoid plt entry.
7251
7252 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7253
7254         [BZ #14112]
7255         * Makeconfig (default-abi): New macro.
7256         (abi-includes): Likewise.
7257         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
7258         $(abi-$(default-abi)-lib-soname) for soname if defined.
7259         ($(common-objpfx)gnu/lib-names.stmp): Generate from
7260         abi-variants.
7261         * Makefile (installed-stubs): Likewise.
7262         * include/stubs-biarch.h: Removed.
7263         * scripts/lib-names.awk: Only handle one library at a time.
7264         * scripts/soversions.awk: Remove WORDSIZE support.
7265         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
7266         entries.
7267         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
7268         Removed.
7269         (syscall-list-default-condition): Likewise.
7270         (syscall-list-default-condition): Likewise.
7271         (syscall-list-includes): Likewise.
7272         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
7273         syscall-list-* with abi-*.  Handle undefined abi-variants.
7274         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
7275         * sysdeps/unix/sysv/linux/i386/Implies: New file.
7276         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
7277         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
7278         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
7279         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
7280         Removed.
7281         (syscall-list-32-options): Likewise.
7282         (syscall-list-32-condition): Likewise.
7283         (syscall-list-64-options): Likewise.
7284         (syscall-list-64-condition): Likewise.
7285         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
7286         macro.
7287         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
7288         Renamed to ...
7289         (abi-*): This.
7290         (abi-64-ld-soname): New macro.
7291         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
7292         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
7293         Renamed to ...
7294         (abi-*): This.
7295         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
7296         * sysdeps/x86_64/x32/shlib-versions: Likewise.
7297
7298 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
7299
7300         * sysdeps/unix/sysv/linux/kernel-features.h
7301         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
7302         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
7303         include <kernel-features.h>.
7304         [!__NR_ftruncate64]: Remove conditional code.
7305         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7306         [__NR_ftruncate64]: Make code unconditional.
7307         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7308         * sysdeps/unix/sysv/linux/truncate64.c: Do not
7309         include <kernel-features.h>.
7310         [!__NR_ftruncate64]: Remove conditional code.
7311         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7312         [__NR_ftruncate64]: Make code unconditional.
7313         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
7315         include <kernel-features.h>.
7316         [!__NR_ftruncate64]: Remove conditional code.
7317         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7318         [__NR_ftruncate64]: Make code unconditional.
7319         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
7321         include <kernel-features.h>.
7322         [!__NR_ftruncate64]: Remove conditional code.
7323         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7324         [__NR_ftruncate64]: Make code unconditional.
7325         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7326
7327         * configure.in (libc_cv_fpie): Weaken to a compile test using
7328         LIBC_TRY_CC_OPTION.
7329         * configure: Regenerated.
7330
7331 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7332
7333         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
7334         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
7335         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
7336         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7337         Refreshed.
7338         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
7339         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
7340         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
7341         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
7342         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
7343         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7344         Refreshed.
7345
7346 2012-05-27  David S. Miller  <davem@davemloft.net>
7347
7348         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
7349         (___Q_zero): New.
7350         (__Q_simulate_exceptions): Return void.  Change to simulate
7351         exceptions by writing into the %fsr.
7352         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
7353         (__Qp_handle_exceptions): Likewise.
7354         (numbers): Delete.
7355         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
7356         __Qp_handle_exceptions.
7357         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
7358         __Qp_handle_exceptions.
7359         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
7360         as unused and give dummy FP_RND_NEAREST initializer.
7361         (FP_INHIBIT_RESULTS): Define.
7362         (___Q_simulate_exceptions): Update declaration.
7363         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
7364         formatting.
7365         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
7366         as unused and give dummy FP_RND_NEAREST initializer.
7367         (__Qp_handle_exceptions): Update declaration.
7368         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
7369         formatting.
7370
7371 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
7372
7373         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
7374         the temporary FPU control word.
7375         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7376         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
7377         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
7378         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
7379         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
7380         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
7381         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
7382         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
7383         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
7384         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
7385         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
7386
7387 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7388
7389         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
7390         fields.
7391
7392 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
7393
7394         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
7395         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
7396         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
7397         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
7398         Likewise.
7399         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
7400         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
7401         Likewise.
7402
7403 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
7404
7405         * po/h.po: Update from translation team.
7406
7407 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
7408
7409         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
7410
7411         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
7412         handling of denormals.
7413         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7414         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
7415         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7416         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7417         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7418         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
7419         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
7420         Likewise.
7421
7422 2012-05-26  Marek Polacek  <polacek@redhat.com>
7423
7424         [BZ #14152]
7425         * math/libm-test.inc (fma_test): Don't always expect underflow
7426         exception.
7427
7428 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7429
7430         [BZ #12416]
7431         * elf/tst-execstack.c: Include stackinfo.h.
7432         (do_test): Adjust test case to ensure that pthread_getattr_np
7433         behaviour remains the same after marking stack executable.
7434
7435 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
7436
7437         * sysdeps/unix/sysv/linux/kernel-features.h
7438         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
7439         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
7440         kernel-features.h.
7441         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
7442         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
7443         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
7444         kernel-features.h.
7445         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
7446         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
7447
7448 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7449
7450         * configure.in: Define the default includes to being none.
7451         * configure: Regenerated.
7452
7453 2012-05-25  Roland McGrath  <roland@hack.frob.com>
7454
7455         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
7456         * sysdeps/x86_64/setjmp.S: Likewise.
7457         * sysdeps/i386/bsd-setjmp.S: Likewise.
7458         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7459         * sysdeps/i386/setjmp.S: Likewise.
7460         * sysdeps/i386/__longjmp.S: Likewise.
7461         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7462         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
7463
7464         * include/stap-probe.h: New file.
7465         * configure.in: Handle --enable-systemtap.
7466         * configure: Regenerated.
7467         * config.h.in (USE_STAP_PROBE): New #undef.
7468         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
7469         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
7470         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
7471
7472 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
7473
7474         [BZ #13717]
7475         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7476         to 2.4.0 where earlier.
7477         * sysdeps/unix/sysv/linux/configure: Regenerated.
7478         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
7479         <kernel-features.h>.
7480         [__ASSUME_32BITUIDS]: Make code unconditional.
7481         [!__ASSUME_32BITUIDS]: Remove conditional code.
7482         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
7483         <kernel-features.h>.
7484         [__ASSUME_32BITUIDS]: Make code unconditional.
7485         [!__ASSUME_32BITUIDS]: Remove conditional code.
7486         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
7487         [__ASSUME_32BITUIDS]: Make code unconditional.
7488         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
7489         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
7490         <kernel-features.h>.
7491         [__ASSUME_32BITUIDS]: Make code unconditional.
7492         [!__ASSUME_32BITUIDS]: Remove conditional code.
7493         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
7494         <kernel-features.h>.
7495         [__ASSUME_32BITUIDS]: Make code unconditional.
7496         [!__ASSUME_32BITUIDS]: Remove conditional code.
7497         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
7498         <kernel-features.h>.
7499         [__ASSUME_32BITUIDS]: Make code unconditional.
7500         [!__ASSUME_32BITUIDS]: Remove conditional code.
7501         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
7502         <kernel-features.h>.
7503         [__ASSUME_32BITUIDS]: Make code unconditional.
7504         [!__ASSUME_32BITUIDS]: Remove conditional code.
7505         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
7506         <kernel-features.h>.
7507         [__ASSUME_32BITUIDS]: Make code unconditional.
7508         [!__ASSUME_32BITUIDS]: Remove conditional code.
7509         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
7510         <kernel-features.h>.
7511         [__ASSUME_32BITUIDS]: Make code unconditional.
7512         [!__ASSUME_32BITUIDS]: Remove conditional code.
7513         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
7514         <kernel-features.h>.
7515         [__ASSUME_32BITUIDS]: Make code unconditional.
7516         [!__ASSUME_32BITUIDS]: Remove conditional code.
7517         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
7518         <kernel-features.h>.
7519         [__ASSUME_32BITUIDS]: Make code unconditional.
7520         [!__ASSUME_32BITUIDS]: Remove conditional code.
7521         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
7522         <kernel-features.h>.
7523         [__ASSUME_32BITUIDS]: Make code unconditional.
7524         [!__ASSUME_32BITUIDS]: Remove conditional code.
7525         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
7526         <kernel-features.h>.
7527         [__ASSUME_32BITUIDS]: Make code unconditional.
7528         [!__ASSUME_32BITUIDS]: Remove conditional code.
7529         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
7530         <kernel-features.h>.
7531         [__NR_setresgid] (__setresgid): Do not declare.
7532         [__ASSUME_32BITUIDS]: Make code unconditional.
7533         [!__ASSUME_32BITUIDS]: Remove conditional code.
7534         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
7535         <kernel-features.h>.
7536         [__NR_setresuid] (__setresuid): Do not declare.
7537         [__ASSUME_32BITUIDS]: Make code unconditional.
7538         [!__ASSUME_32BITUIDS]: Remove conditional code.
7539         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
7540         <kernel-features.h>.
7541         [__ASSUME_32BITUIDS]: Make code unconditional.
7542         [!__ASSUME_32BITUIDS]: Remove conditional code.
7543         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
7544         <kernel-features.h>.
7545         [__ASSUME_32BITUIDS]: Make code unconditional.
7546         [!__ASSUME_32BITUIDS]: Remove conditional code.
7547         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
7548         <kernel-features.h>.
7549         [__ASSUME_32BITUIDS]: Make code unconditional.
7550         [!__ASSUME_32BITUIDS]: Remove conditional code.
7551         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
7552         <kernel-features.h>.
7553         [__ASSUME_32BITUIDS]: Make code unconditional.
7554         [!__ASSUME_32BITUIDS]: Remove conditional code.
7555         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
7556         <kernel-features.h>.
7557         [__ASSUME_32BITUIDS]: Make code unconditional.
7558         [!__ASSUME_32BITUIDS]: Remove conditional code.
7559         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
7560         <kernel-features.h>.
7561         [__ASSUME_32BITUIDS]: Make code unconditional.
7562         [!__ASSUME_32BITUIDS]: Remove conditional code.
7563         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
7564         <kernel-features.h>.
7565         [__ASSUME_32BITUIDS]: Make code unconditional.
7566         [!__ASSUME_32BITUIDS]: Remove conditional code.
7567         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
7568         <kernel-features.h>.
7569         [__ASSUME_32BITUIDS]: Make code unconditional.
7570         [!__ASSUME_32BITUIDS]: Remove conditional code.
7571         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
7572         <kernel-features.h>.
7573         [__ASSUME_32BITUIDS]: Make code unconditional.
7574         [!__ASSUME_32BITUIDS]: Remove conditional code.
7575         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
7576         <kernel-features.h>.
7577         [__ASSUME_32BITUIDS]: Make code unconditional.
7578         [!__ASSUME_32BITUIDS]: Remove conditional code.
7579         * sysdeps/unix/sysv/linux/kernel-features.h
7580         (__ASSUME_SETRESUID_SYSCALL): Remove.
7581         (__ASSUME_SETRESGID_SYSCALL): Likewise.
7582         (__ASSUME_32BITUIDS): Likewise.
7583         (__ASSUME_LDT_WORKS): Likewise.
7584         (__ASSUME_O_DIRECTORY): Likewise.
7585         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
7586         architecture but not kernel version.
7587         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
7588         (__ASSUME_MMAP2_SYSCALL): Likewise.
7589         (__ASSUME_STAT64_SYSCALL): Likewise.
7590         (__ASSUME_IPC64): Likewise.
7591         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
7592         <kernel-features.h>.
7593         [__ASSUME_32BITUIDS]: Make code unconditional.
7594         [!__ASSUME_32BITUIDS]: Remove conditional code.
7595         * sysdeps/unix/sysv/linux/opendir.c: Do not include
7596         <kernel-features.h>.
7597         [__ASSUME_O_DIRECTORY]: Make code unconditional.
7598         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
7599         132096]: Remove conditional code.
7600         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
7601         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
7602         <kernel-features.h>.
7603         [__ASSUME_32BITUIDS]: Make code unconditional.
7604         [!__ASSUME_32BITUIDS]: Remove conditional code.
7605         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
7606         <kernel-features.h>.
7607         [__ASSUME_32BITUIDS]: Make code unconditional.
7608         [!__ASSUME_32BITUIDS]: Remove conditional code.
7609         * sysdeps/unix/sysv/linux/setegid.c: Do not include
7610         <kernel-features.h>.
7611         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
7612         unconditional.
7613         (__setresgid): Do not declare.
7614         [__ASSUME_32BITUIDS]: Make code unconditional.
7615         [!__ASSUME_32BITUIDS]: Remove conditional code.
7616         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
7617         <kernel-features.h>.
7618         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
7619         unconditional.
7620         (__setresuid): Do not declare.
7621         [__ASSUME_32BITUIDS]: Make code unconditional.
7622         [!__ASSUME_32BITUIDS]: Remove conditional code.
7623         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
7624         <kernel-features.h>.
7625         [__ASSUME_32BITUIDS]: Make code unconditional.
7626         [!__ASSUME_32BITUIDS]: Remove conditional code.
7627         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
7628         <kernel-features.h>.
7629         [__ASSUME_32BITUIDS]: Make code unconditional.
7630         [!__ASSUME_32BITUIDS]: Remove conditional code.
7631
7632 2012-05-25  Richard Henderson  <rth@twiddle.net>
7633
7634         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
7635         dl_hwcap to ifunc resolver.
7636         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
7637         elf_ifunc_invoke.
7638         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
7639         dl_hwcap to ifunc resolver.
7640         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
7641
7642 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7643
7644         [BZ #14153]
7645         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
7646         for |x| <= 2**-26, not 2**-57.
7647         * math/libm-test.inc (acos_test): Do not allow spurious underflow
7648         exception.
7649
7650 2012-05-24  Jeff Law  <law@redhat.com>
7651
7652         * stdio-common/Makefile (tests): Add bug25.
7653         * stdio-common/bug25.c: New test.
7654
7655 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7656
7657         [BZ #13576]
7658         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
7659         multiple of MALLOC_ALIGNMENT in size.
7660         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
7661
7662 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7663
7664         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
7665         Require >= 256.
7666         (FILENAME_MAX): Use macro-int-constant.
7667         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
7668         (_IOFBF): Use macro-int-constant.
7669         (_IOLBF): Likewise.
7670         (_IONBF): Likewise.
7671         (SEEK_CUR): Likewise.
7672         (SEEK_END): Likewise.
7673         (SEEK_SET): Likewise.
7674         (TMP_MAX): Likewise.
7675         (EOF): Use macro-int-constant.  Require < 0.
7676         (NULL): Use macro-constant.  Require == 0.
7677         (stdin): Require type to be FILE *.
7678         (stdout): Likewise.
7679         (stderr): Likewise.
7680         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
7681         macro-int-constant.
7682         (EXIT_SUCCESS): Likewise.
7683         (NULL): Use macro-constant.  Require == 0.
7684         (RAND_MAX): Use macro-int-constant.
7685         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
7686         [C99-based standards] (strtof): Require function.
7687         [C99-based standards] (strtold): Likewise.
7688         [C99-based standards] (strtoll): Likewise.
7689         [C99-based standards] (strtoull): Likewise.
7690         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
7691         [ISO || ISO99 || ISO11] (limits.h): Likewise.
7692         [ISO || ISO99 || ISO11] (math.h): Likewise.
7693         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
7694         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
7695         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7696
7697 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
7698
7699         [BZ #14132]
7700         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
7701         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
7702         * intl/dgettext.c (DCGETTEXT): Likewise.
7703         * intl/gettext.c (DCGETTEXT): Likewise.
7704         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
7705         * posix/regex_internal.h (gettext): Likewise.
7706         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
7707         Remove declaration.
7708         * include/argz.h (__argz_count_internal)
7709         (__argz_stringify_internal): Remove declaration.
7710         (__argz_count, __argz_stringify): Declare hidden proto.
7711         * intl/dcgettext.c: Remove use of INTDEF.
7712         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
7713         * string/argz-stringify.c: Likewise.
7714         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
7715         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
7716         Declare hidden proto.
7717         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
7718         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
7719         Declare hidden proto.
7720         * include/stdio.h (__asprintf_internal): Don't declare.
7721         (__asprintf): Don't define as macro.  Declare hidden proto.
7722         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
7723         (__fsetlocking): Declare hidden proto.
7724         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
7725         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
7726         hidden proto.
7727         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
7728         (_IO_setlinebuf): Remove use of INTUSE.
7729         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
7730         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
7731         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
7732         Remove declaration.
7733         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
7734         (_IO_do_flush): Remove use of INTUSE.
7735         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
7736         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
7737         (_IO_adjust_column, _IO_least_wmarker)
7738         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
7739         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
7740         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
7741         (_IO_default_doallocate, _IO_wdefault_doallocate)
7742         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
7743         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
7744         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
7745         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
7746         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
7747         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
7748         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
7749         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
7750         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
7751         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
7752         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
7753         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
7754         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
7755         proto.
7756         (_IO_flush_all_internal, _IO_adjust_column_internal)
7757         (_IO_default_uflow_internal, _IO_default_finish_internal)
7758         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
7759         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
7760         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
7761         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
7762         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
7763         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
7764         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
7765         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
7766         (_IO_file_close_internal, _IO_file_close_it_internal)
7767         (_IO_file_underflow_internal, _IO_file_overflow_internal)
7768         (_IO_file_init_internal, _IO_file_attach_internal)
7769         (_IO_file_fopen_internal, _IO_file_read_internal)
7770         (_IO_file_sync_internal, _IO_file_seek_internal)
7771         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
7772         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
7773         (_IO_str_underflow_internal, _IO_str_overflow_internal)
7774         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
7775         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
7776         (_IO_list_all_internal, _IO_link_in_internal)
7777         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
7778         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
7779         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
7780         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
7781         (_IO_do_write_internal, _IO_padn_internal)
7782         (_IO_getline_info_internal, _IO_getline_internal)
7783         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
7784         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
7785         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
7786         (_IO_vfscanf_internal, _IO_vfprintf_internal)
7787         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
7788         (_IO_init_internal, _IO_un_link_internal): Don't declare.
7789         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
7790         with libc_hidden_ver, remove use of INTUSE.
7791         * libio/genops.c: Likewise.
7792         * libio/freopen.c: Likewise.
7793         * libio/freopen64.c: Likewise.
7794         * libio/iofclose.c: Likewise.
7795         * libio/iofdopen.c: Likewise.
7796         * libio/iofflush.c: Likewise.
7797         * libio/iofflush_u.c: Likewise.
7798         * libio/iofgets.c: Likewise.
7799         * libio/iofgets_u.c: Likewise.
7800         * libio/iofopen.c: Likewise.
7801         * libio/iofopncook.c: Likewise.
7802         * libio/iofread.c: Likewise.
7803         * libio/iofread_u.c: Likewise.
7804         * libio/ioftell.c: Likewise.
7805         * libio/iofwrite.c: Likewise.
7806         * libio/iogetline.c: Likewise.
7807         * libio/iogets.c: Likewise.
7808         * libio/iogetwline.c: Likewise.
7809         * libio/iopadn.c: Likewise.
7810         * libio/iopopen.c: Likewise.
7811         * libio/ioseekoff.c: Likewise.
7812         * libio/ioseekpos.c: Likewise.
7813         * libio/iosetbuffer.c: Likewise.
7814         * libio/iosetvbuf.c: Likewise.
7815         * libio/ioungetc.c: Likewise.
7816         * libio/ioungetwc.c: Likewise.
7817         * libio/iovdprintf.c: Likewise.
7818         * libio/iovsprintf.c: Likewise.
7819         * libio/iovsscanf.c: Likewise.
7820         * libio/memstream.c: Likewise.
7821         * libio/obprintf.c: Likewise.
7822         * libio/oldfileops.c: Likewise.
7823         * libio/oldiofclose.c: Likewise.
7824         * libio/oldiofdopen.c: Likewise.
7825         * libio/oldiofopen.c: Likewise.
7826         * libio/oldiopopen.c: Likewise.
7827         * libio/oldstdfiles.c: Likewise.
7828         * libio/putc.c: Likewise.
7829         * libio/setbuf.c: Likewise.
7830         * libio/setlinebuf.c: Likewise.
7831         * libio/stdfiles.c: Likewise.
7832         * libio/strops.c: Likewise.
7833         * libio/vasprintf.c: Likewise.
7834         * libio/vscanf.c: Likewise.
7835         * libio/vsnprintf.c: Likewise.
7836         * libio/vswprintf.c: Likewise.
7837         * libio/wfiledoalloc.c: Likewise.
7838         * libio/wfileops.c: Likewise.
7839         * libio/wgenops.c: Likewise.
7840         * libio/wmemstream.c: Likewise.
7841         * libio/wstrops.c: Likewise.
7842         * libio/__fpurge.c: Likewise.
7843         * libio/__fsetlocking.c: Likewise.
7844         * assert/assert.c: Likewise.
7845         * debug/fgets_chk.c: Likewise.
7846         * debug/fgets_u_chk.c: Likewise.
7847         * debug/fread_chk.c: Likewise.
7848         * debug/fread_u_chk.c: Likewise.
7849         * debug/gets_chk.c: Likewise.
7850         * debug/obprintf_chk.c: Likewise.
7851         * debug/vasprintf_chk.c: Likewise.
7852         * debug/vdprintf_chk.c: Likewise.
7853         * debug/vsnprintf_chk.c: Likewise.
7854         * debug/vsprintf_chk.c: Likewise.
7855         * malloc/mtrace.c: Likewise.
7856         * misc/error.c: Likewise.
7857         * misc/syslog.c: Likewise.
7858         * stdio-common/asprintf.c: Likewise.
7859         * stdio-common/fxprintf.c: Likewise.
7860         * stdio-common/getw.c: Likewise.
7861         * stdio-common/isoc99_fscanf.c: Likewise.
7862         * stdio-common/isoc99_scanf.c: Likewise.
7863         * stdio-common/isoc99_vfscanf.c: Likewise.
7864         * stdio-common/isoc99_vscanf.c: Likewise.
7865         * stdio-common/isoc99_vsscanf.c: Likewise.
7866         * stdio-common/printf-prs.c: Likewise.
7867         * stdio-common/printf_fp.c: Likewise.
7868         * stdio-common/printf_fphex.c: Likewise.
7869         * stdio-common/printf_size.c: Likewise.
7870         * stdio-common/putw.c: Likewise.
7871         * stdio-common/scanf.c: Likewise.
7872         * stdio-common/sprintf.c: Likewise.
7873         * stdio-common/tmpfile.c: Likewise.
7874         * stdio-common/vfprintf.c: Likewise.
7875         * stdio-common/vfscanf.c: Likewise.
7876         * stdlib/strfmon_l.c: Likewise.
7877         * sunrpc/openchild.c: Likewise.
7878         * sunrpc/xdr_stdio.c: Likewise.
7879         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7880         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7881
7882 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7883
7884         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7885
7886         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7887         in the third column, to generate for the shared library an IFUNC
7888         that uses _dl_vdso_vsym.
7889         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7890         * Makeconfig (object-suffixes-noshared): New variable.
7891
7892         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7893         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7894         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7895         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7896
7897         [BZ #14132]
7898         * include/sys/time.h (__gettimeofday): Remove macro.
7899         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7900         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7901         Remove INTDEF.
7902         (__gettimeofday): Add libc_hidden_def.
7903         (gettimeofday): Add libc_hidden_weak.
7904         * sysdeps/mach/gettimeofday.c: Likewise.
7905         * sysdeps/posix/gettimeofday.c: Likewise.
7906         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7907         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7908         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7909         (__gettimeofday_internal): Remove strong_alias.
7910         (__gettimeofday): Add libc_hidden_def.
7911         (gettimeofday): Add libc_hidden_weak.
7912         * sysdeps/unix/syscalls.list (gettimeofday):
7913         Remove __gettimeofday_internal alias.
7914
7915 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7916             H.J. Lu  <hongjiu.lu@intel.com>
7917
7918         [BZ #12495]
7919         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7920         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7921         (largebin_index_32_big): New.
7922         (largebin_index): Use it for 16-byte alignment.
7923         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7924         correction with front_misalign.
7925
7926 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7927
7928         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7929         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7930         Likewise.
7931         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7932         Likewise.
7933         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7934         Likewise.
7935         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7936         Likewise.
7937         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7938         Likewise.
7939         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7940         Likewise.
7941         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7942         Likewise.
7943         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7944         Likewise.
7945         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7946         Likewise.
7947         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7948         Likewise.
7949         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7950         Likewise.
7951         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7952         Likewise.
7953
7954         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7955         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7956
7957 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7958
7959         [BZ #10846]
7960         [BZ #14036]
7961         * math/libm-test.inc (exp_test): Add test from bug 14036.
7962         (pow_test): Add test from bug 10846.
7963
7964         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7965         and other flags.
7966         (special_function): Do not include flags in test name.
7967         (parse_args): Likewise.
7968         * sysdeps/i386/fpu/libm-test-ulps: Update.
7969         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7970         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7971         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7973
7974         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7975         exceptions.
7976         * math/libm-test.inc ("Philosophy"): Update comment about
7977         exception testing.
7978         (UNDERFLOW_EXCEPTION): New macro.
7979         (UNDERFLOW_EXCEPTION_OK): Likewise.
7980         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7981         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7982         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7983         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7984         (INVALID_EXCEPTION_OK): Update value.
7985         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7986         (OVERFLOW_EXCEPTION_OK): Likewise.
7987         (IGNORE_ZERO_INF_SIGN): Likewise.
7988         (test_exceptions): Handle underflow exceptions.
7989         (acos_test): Update for underflow exception expectations.
7990         (cexp_test): Likewise.
7991         (clog_test): Likewise.
7992         (clog10_test): Likewise.
7993         (csqrt_test): Likewise.
7994         (ctan_test): Likewise.
7995         (ctanh_test): Likewise.
7996         (exp_test): Likewise.
7997         (exp10_test): Likewise.
7998         (exp2_test): Likewise.
7999         (expm1_test): Likewise.
8000         (fma_test): Likewise.
8001         (j0_test): Likewise.
8002         (jn_test): Likewise.
8003         (nexttoward_test): Likewise.
8004         (pow_test): Likewise.
8005         (scalbn_test): Likewise.
8006         (scalbln_test): Likewise.
8007         (tan_test): Likewise.
8008         (y1_test): Likewise.
8009         * sysdeps/i386/fpu/libm-test-ulps: Update.
8010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8011
8012 2012-05-23  David S. Miller  <davem@davemloft.net>
8013
8014         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8015         (__libc_sigaction): Remove unused local variables.
8016
8017 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8018
8019         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
8020
8021 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8022
8023         mktime: avoid signed integer overflow
8024         * time/mktime.c (__mktime_internal): Do not mishandle the case
8025         where diff == INT_MIN.
8026
8027         mktime: simplify computation of average
8028         * time/mktime.c (ranged_convert): Use new time_t_avg function
8029         instead of rolling our own (probably-slower) code.
8030
8031         mktime: do not assume signed right shift propagates sign bit
8032         * time/mktime.c (isdst_differ): New static function.
8033         (__mktime_internal): No need to normalize tm_isdst now.
8034         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
8035         tm_isdst values.
8036
8037         mktime: merge another wrapv change from gnulib
8038         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
8039         from some compilers.
8040
8041         mktime: remove incorrect attempt at unusual arithmetics
8042         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
8043         The code didn't really work on such machines anyway.
8044         (TYPE_MINIMUM): Assume two's complement.
8045         (twos_complement_arithmetic): Verify that long_int and time_t
8046         are two's complement (or unsigned, in the latter case).
8047
8048         mktime: check signed shifts on long_int and time_t, too
8049         * time/mktime.c (SHR): Check that shifts work as desired
8050         on the types long_int and time_t too, as SHR is used on
8051         such types.
8052
8053         mktime: do not assume 'long' is wide enough
8054         * time/mktime.c (verify): Move decl up.
8055         (long_int): New type.
8056         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
8057         to remove assumption in the code that 'long' is wide enough to
8058         store year values.  This assumption is not true on x32 and on
8059         some non-glibc platforms.
8060
8061         mktime: merge wrapv change from gnulib
8062         * time/mktime.c (WRAPV): New macro.
8063         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
8064         (guess_time_tm, __mktime_internal): Do not assume that signed
8065         integer overflow wraps around; modern compilers generate code
8066         where this assumption is no longer valid.
8067
8068 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8069
8070         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8071         Replace "jmp L(pseudo_end)" with "ret".
8072         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8073         Likewise.
8074
8075 2012-05-23  Andreas Jaeger  <aj@suse.de>
8076
8077         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
8078         * sysdeps/unix/sysv/linux/poll.c: Remove file.
8079
8080 2012-05-23  Andreas Jaeger  <aj@suse.de>
8081             Maximilian Attems  <max@stro.at>
8082
8083         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
8084         New macros.
8085
8086 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8087
8088         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
8089         code so that pseudo_end is just ret and the stack pointer is
8090         correct also for static library in error case.
8091
8092 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
8093
8094         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
8095         move to syscalls.list.
8096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
8097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
8098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
8099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
8100
8101         * manual/install.texi (Running make install): Do not mention Linux
8102         kernel version for which pt_chown is not needed.
8103         (Linux): Do not mention problems with nscd with 2.0 kernels.
8104         * INSTALL: Regenerated.
8105
8106 2012-05-23  Andreas Jaeger  <aj@suse.de>
8107
8108         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
8109         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
8110         macro.
8111         * sysdeps/unix/sysv/linux/s390/bits/mman.h
8112         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8113         * sysdeps/unix/sysv/linux/sh/bits/mman.h
8114         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8115         * sysdeps/unix/sysv/linux/i386/bits/mman.h
8116         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8117         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
8118         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8119         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
8120         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8121         * sysdeps/unix/sysv/linux/bits/in.h
8122         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
8123
8124 2012-05-22  Roland McGrath  <roland@hack.frob.com>
8125
8126         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
8127         (PREPARE_VERSION): Just use assert instead, it will be elided
8128         under [NDEBUG] anyway.
8129
8130 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8131
8132         * sysdeps/unix/sysv/linux/Makefile: Include
8133         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
8134         (sysdep_routines): Remove sysctl.
8135         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
8136         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
8137         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
8138         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
8139         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
8140
8141 2012-05-22  Andreas Jaeger  <aj@suse.de>
8142
8143         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
8144         that pseudo_end is just ret and the stack pointer is correct also
8145         for static library in error case.
8146
8147 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
8148
8149         [BZ #14122]
8150         * nss/nsswitch.c (defconfig_entries): New variable.
8151         (__nss_database_lookup): Don't leak defconfig entries.
8152         (nss_parse_service_list): Don't leak on error paths.
8153         (free_database_entries): New function.
8154         (free_defconfig): New function.
8155         (free_mem): Move common code to free_database_entries.
8156
8157 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8158
8159         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
8160         Add arch_prctl.
8161         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
8162
8163         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8164         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
8165         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
8166         New macro.
8167         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
8168         (INTERNAL_SYSCALL_TYPES): Likewise.
8169         (LOAD_ARGS_TYPES_[1-6]): Likewise.
8170         (LOAD_REGS_TYPES_[1-6]): Likewise.
8171         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
8172         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
8173
8174 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8175
8176         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
8177         copysignl for GLIBC_2_0.
8178         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
8179         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
8180         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
8181         logbl for GLIBC_2_0.
8182         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
8183         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
8184
8185 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8186
8187         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
8188         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8189
8190         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8191         Use "neg %eax".
8192
8193         * time/mktime.c: Update copyright years.
8194
8195 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8196
8197         mktime: merge comment-quoting-style change from gnulib
8198         * time/mktime.c: Quote 'like this' in comments.
8199         The GNU coding standards suggest that we no longer quote `like this',
8200         as "`" and "'" are typically rendered asymmetrically nowadays.
8201         The typical gnulib style is to quote 'like this' when quoting
8202         code, and "like this" when quoting English.
8203
8204         * time/mktime.c (compile-command): Add "-I.".
8205
8206         mktime: merge mktime-internal.h change from gnulib
8207         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
8208
8209         mktime: merge time_r change from gnulib
8210         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
8211
8212         mktime: merge DEBUG change from gnulib
8213         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
8214         case system <time.h> has a #define.
8215
8216         mktime: merge <sys/types.h> change from gnulib
8217         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
8218         since <time.t> is now guaranteed to define time_t.
8219
8220         mktime: merge HAVE_CONFIG_H change from gnulib
8221         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
8222
8223 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8224
8225         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
8226         Use "neg %eax".
8227
8228         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
8229         __rlim_t cast.
8230         (struct rusage): Use anonymous union to pad each field to
8231         __syscall_slong_t.
8232
8233 2012-05-21  David S. Miller  <davem@davemloft.net>
8234
8235         * Makefules (o-iterator): Remove .s cases.
8236         (compile-command.s): Delete.
8237         (COMPILE.s): Delete.
8238         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
8239
8240 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
8241
8242         * configure.in (libc_cv_predef_stack_protector): Only consider
8243         "foobar" and "__stack_chk_fail" lines in libc_undefs.
8244         * configure: Regenerated.
8245
8246 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8247
8248         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
8249         New macro.  Use R*LP on int and pointer.
8250         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
8251         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
8252         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
8253         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
8254
8255         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
8256         [__WORDSIZE_TIME64_COMPAT32] instead of
8257         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
8258         (struct utmp): Likewise.
8259         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
8260         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
8261         Renamed to ...
8262         (__WORDSIZE_TIME64_COMPAT32): This.
8263         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
8264         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
8265         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
8266         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
8267         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
8268         (__WORDSIZE_TIME64_COMPAT32): New macro.
8269
8270 2012-05-21  Andreas Jaeger  <aj@suse.de>
8271
8272         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
8273         only if [SHARED]. Add prototype for __wcschr_ia32.
8274
8275 2012-05-21  Roland McGrath  <roland@hack.frob.com>
8276
8277         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
8278         of %rbp unmolested in the jmp_buf while mangling the low bits.
8279         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
8280         unmolested high bits of %rbp while demangling the low bits.
8281         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
8282
8283 2012-05-21  Andreas Jaeger  <aj@suse.de>
8284
8285         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
8286         * sunrpc/svc_simple.c: Use it for registerrpc.
8287         * sunrpc/xcrypt.c: Use it for passwd2des.
8288
8289         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
8290
8291 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8292
8293         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
8294         Don't define if [__SYSCALL_WORDSIZE != 32].
8295         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
8296         New macro.
8297
8298 2012-05-21  Bruno Haible  <bruno@clisp.org>
8299             Andreas Jaeger  <aj@suse.de>
8300
8301         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
8302         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
8303         inptr and inend for must_buffer_ch.
8304         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
8305         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
8306         * stdio-common/Makefile (tests): Remove bug15.
8307         (bug15-ENV): Remove macro.
8308         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
8309         anymore.
8310
8311 2012-05-19  Andreas Jaeger  <aj@suse.de>
8312             Roland McGrath  <roland@hack.frob.com>
8313
8314         * manual/contrib.texi: Completely rewritten. It contains now an
8315         alphabetical list of contributors and their contributions.
8316
8317 2012-05-21  Richard Henderson  <rth@twiddle.net>
8318
8319         * misc/getauxval.c (__getauxval): Use unsigned long int.
8320         * misc/sys/auxv.h: Include <sys/cdefs.h>.
8321         (getauxval): Use unsigned long int.
8322
8323 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8324
8325         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
8326
8327 2012-05-21  Roland McGrath  <roland@hack.frob.com>
8328
8329         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
8330         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
8331         __alignof__ (long double).
8332
8333 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8334
8335         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8336
8337 2012-05-20  Richard Henderson  <rth@twiddle.net>
8338
8339         * misc/getauxval.c: New file.
8340         * misc/sys/auxv.h: New file.
8341         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
8342         (routines): Add getauxval.
8343         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
8344         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
8345         * elf/dl-sysdep.c (_dl_auxv): Remove.
8346         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
8347         * elf/dl-support.c (_dl_auxv): New variable.
8348         (_dl_aux_init): Initialize it.
8349         * manual/startup.texi (Auxiliary Vector): New node.
8350         * sysdeps/generic/bits/hwcap.h: New file.
8351         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
8352         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
8353         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
8354         * sysdeps/sparc/sysdep.h: ... here.  Include it.
8355         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
8356         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
8357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8358         Update.
8359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
8360         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
8361         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
8362         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
8363         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
8364         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
8365         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
8366         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
8367
8368 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8369
8370         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8371
8372 2012-05-19  David S. Miller  <davem@davemloft.net>
8373
8374         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8375
8376 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
8377
8378         [BZ #14123]
8379         * math/s_ccosh.c: Include <float.h>
8380         (__ccosh): Avoid internal overflow calculating sinh and cosh
8381         values before multiplying by sin and cos values.
8382         * math/s_ccoshf.c: Likewise.
8383         * math/s_ccoshl.c: Likewise.
8384         * math/s_csin.c: Likewise.
8385         * math/s_csinf.c: Likewise.
8386         * math/s_csinl.c: Likewise.
8387         * math/s_csinh.c: Likewise.
8388         * math/s_csinhf.c: Likewise.
8389         * math/s_csinhl.c: Likewise.
8390         * math/libm-test.inc (ccos_test): Add more tests.
8391         (ccosh_test): Likewise.
8392         (csin_test): Likewise.
8393         (csinh_test): Likewise.
8394         * sysdeps/i386/fpu/libm-test-ulps: Update.
8395         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8396
8397 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8398
8399         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
8400         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
8401
8402         * sysdeps/x86_64/x32/_itoa.h: Add comment.
8403
8404 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
8405
8406         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
8407         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
8408         * sysdeps/powerpc/soft-fp/Versions: Likewise.
8409         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
8410         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
8411         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
8412         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
8413         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
8414         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
8415         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
8416         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
8417         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
8418         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
8419         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
8420         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
8421         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
8422         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
8423         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
8424         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
8425         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
8426         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
8427         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
8428         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
8429         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
8430         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
8431         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
8432         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
8433         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
8434         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
8435         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
8436         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
8437
8438 2012-05-18  Andreas Jaeger  <aj@suse.de>
8439
8440         * csu/.gitignore: Delete.
8441
8442 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8443
8444         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
8445         (timex): Use __syscall_slong_t.
8446
8447 2012-05-18  Andreas Jaeger  <aj@suse.de>
8448             Carlos O'Donell  <carlos_odonell@mentor.com>
8449
8450         * manual/install.texi (Configuring and compiling): Update
8451         description about files modified in the source directory.
8452         * INSTALL: Regenerated.
8453
8454 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8455
8456         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
8457         value.  Use "or" to set return value to -1.
8458         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
8459         negate return value.
8460
8461 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8462
8463         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
8464         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
8465         failure if the compiler has Graphite support disabled.
8466         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
8467         Likewise.
8468         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
8469         CFLAGS-memmove.c): Likewise.
8470         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
8471         Likewise.
8472
8473 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8474
8475         * sysdeps/x86_64/x32/_itoa.h: New file.
8476
8477         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
8478         getdents system call only if kernel and user dirents have the
8479         same d_ino and d_off.
8480
8481         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8482         LLONG_MAX != LONG_MAX.
8483         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8484         (_fitoa_word): Likewise.
8485
8486         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
8487         years.
8488         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
8489         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
8490         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
8491
8492         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
8493         include <bits/wordsize.h>.  Check __x86_64__ instead of
8494         __WORDSIZE.
8495         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
8496         if __x86_64__ is defined.  Use anonymous union on fpstate.
8497
8498         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
8499         anonymous union.
8500
8501 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
8502
8503         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
8504         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
8505         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
8506         Refer to _rtld_local_ro instead of _rtld_global_ro.
8507         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
8508         Likewise.
8509         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
8510         Likewise.
8511         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
8512         Likewise.
8513         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
8514         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
8515         of _rtld_global, and rtld_progname instead of _dl_argv[0].
8516
8517         * sysdeps/powerpc/powerpc32/dl-machine.c
8518         (__elf_machine_runtime_setup) [PROF]: Don't reference
8519         _dl_prof_resolve.
8520
8521 2012-05-18  Andreas Jaeger  <aj@suse.de>
8522
8523         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
8524         function only available for GCCs before 3.4 since GCC 3.4
8525         introduced a builtin.
8526         (lrint): Likewise.
8527         (llrintf): Likewise.
8528         (llrint): Likewise.
8529         (fmaxf): Likewise.
8530         (fmax): Likewise.
8531         (fminf): Likewise.
8532         (fmin): Likewise.
8533         (rint): Likewise.
8534         (rintf): Likewise.
8535         (nearbyint): Likewise.
8536         (nearbyintf): Likewise.
8537         (ceil): Likewise.
8538         (ceilf): Likewise.
8539         (floor): Likewise.
8540         (floorf): Likewise.
8541
8542 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
8543
8544         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
8545         on both fields and cast pointer to __syscall_ulong_t.
8546
8547         * bits/types.h (__fsword_t): New type.
8548         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
8549         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
8550         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8551         (__FSWORD_T_TYPE): Likewise.
8552         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8553         (__FSWORD_T_TYPE): Likewise.
8554         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8555         (__FSWORD_T_TYPE): Likewise.
8556         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
8557         (__FSWORD_T_TYPE): Likewise.
8558         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
8559         __SWORD_TYPE with __fsword_t.
8560         (statfs64): Likewise.
8561
8562 2012-05-17  David S. Miller  <davem@davemloft.net>
8563
8564         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
8565
8566 2012-05-17  Andreas Jaeger  <aj@suse.de>
8567
8568         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
8569         warning.
8570
8571 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
8572
8573         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
8574
8575 2012-05-17  Andreas Jaeger  <aj@suse.de>
8576
8577         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
8578         when it is used.
8579
8580 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
8581
8582         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
8583
8584 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
8585
8586         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
8587         * sysdeps/x86_64/tst-mallocalign1.c: New file.
8588
8589 2012-05-17  Andreas Jaeger  <aj@suse.de>
8590             Carlos O'Donell  <carlos_odonell@mentor.com>
8591
8592         [BZ #14059]
8593         * sysdeps/x86_64/multiarch/init-arch.h
8594         (bit_YMM_Usable): Rename to...
8595         (bit_AVX_Usable): ... this.
8596         (bit_FMA4_Usable): New macro.
8597         (bit_XMM_state): New macro.
8598         (bit_YMM_state): New macro.
8599         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
8600         [__ASSEMBLER__] (index_AVX_Usable): ... this.
8601         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
8602         (CPUID_OSXSAVE): New macro.
8603         (CPUID_AVX): New macro.
8604         (CPUID_FMA4): New macro.
8605         (index_YMM_Usable): Rename to...
8606         (index_AVX_Usable): ... this.
8607         (HAS_AVX): Use HAS_ARCH_FEATURE.
8608         (HAS_FMA4): Likewise.
8609         (HAS_YMM_USABLE): Remove.
8610         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8611         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
8612         are present.
8613         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
8614         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
8615         * sysdeps/x86_64/multiarch/Makefile: Likewise.
8616         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
8617         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
8618
8619 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
8620
8621         * math/libm-test.c: Support platforms without multiple rounding modes.
8622         * math/bug-nextafter.c: Support platforms without FP exceptions.
8623         * math/bug-nexttoward.c: Likewise.
8624         * math/test-fenv.c: Likewise.
8625         * math/test-misc.c: Likewise.
8626         * stdlib/bug-getcontext.c: Likewise.
8627
8628 2012-05-17  Andreas Jaeger  <aj@suse.de>
8629
8630         * manual/examples/search.c (critter_cmp): Change signature to
8631         avoid warnings.
8632         * manual/string.texi (Collation Functions): Likewise.
8633
8634 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8635
8636         * bits/types.h: Fold copyright years.
8637         * bits/typesizes.h: Likewise.
8638         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
8639         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
8640         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
8641         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
8642         * time/time.h: Likewise.
8643
8644 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
8645
8646         [BZ #208]
8647         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
8648         in instead of returning them.  Return void.
8649         (__libc_mallinfo): Accumulate over all arenas.
8650         (__malloc_stats): Adjust for change in int_mallinfo interface.
8651
8652 2012-05-16  Roland McGrath  <roland@hack.frob.com>
8653
8654         [BZ #10375]
8655         * configure.in (NM): Add AC_CHECK_TOOL for it.
8656         (libc_extra_cflags): New substituted variable.
8657         Check for -fstack-protector being used implicitly.
8658         * configure: Regenerated.
8659         * config.make.in (config-extra-cflags): New variable,
8660         gets @libc_extra_cflags@.
8661         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
8662
8663         [BZ #10375]
8664         * configure.in: Check for _FORTIFY_SOURCE being predefined.
8665         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
8666         * configure: Regenerated.
8667         * config.make.in (CPPUNDEFS): New substituted variable.
8668         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
8669         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
8670         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
8671
8672 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8673
8674         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
8675         (mq_attr): Use __syscall_slong_t.
8676
8677 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8678
8679         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
8680         Check __x86_64__ instead of __WORDSIZE.
8681         (_STAT_VER_LINUX): Likewise.
8682         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
8683         __syscall_ulong_t and __syscall_slong_t.
8684         (stat64): Likewise.
8685
8686 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8687
8688         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
8689
8690 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8691
8692         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
8693
8694 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8695
8696         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
8697         __syscall_ulong_t.
8698
8699         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
8700         include <bits/wordsize.h>.  Check __x86_64__ instead of
8701         __WORDSIZE.
8702         (greg_t): Use "__extension__ long long int" if __x86_64__ is
8703         defined.
8704         (mcontext_t): Replace "unsigned long" with "unsigned long long".
8705
8706         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
8707         include <bits/wordsize.h>.  Check __x86_64__ instead of
8708         __WORDSIZE.
8709         (user_regs_struct): Use "__extension__ unsigned long long"
8710         instead of "unsigned long" if __x86_64__ is defined.
8711         (user): Likewise.  Pad after pointer field if __ILP32__ is
8712         defined.
8713
8714 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
8715
8716         * configure.in (makeinfo): Require version 4.5 or later.  Allow
8717         versions 5 to 9.
8718         * configure: Regenerated.
8719         * manual/install.texi (texinfo): Increase version requirement to
8720         4.5 or later.
8721         * INSTALL: Regenerated.
8722
8723         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
8724
8725 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8726
8727         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
8728
8729         * sysdeps/x86_64/x32/ffs.c: New file.
8730
8731         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
8732         __syscall_ulong_t.
8733         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
8734         defined.  Use __syscall_ulong_t.
8735         (shminfo): Use __syscall_ulong_t.
8736         (shm_info): Likewise.
8737
8738         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
8739         __syscall_ulong_t.
8740
8741         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
8742         <bits/wordsize.h>.
8743         (msgqnum_t): Use __syscall_ulong_t.
8744         (msglen_t): Likewise.
8745         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
8746         __syscall_ulong_t.
8747
8748         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
8749         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8750
8751         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
8752
8753         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
8754         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
8755
8756         * sysvipc/sys/msg.h (msgbuf): Replace long int with
8757         __syscall_slong_t.
8758
8759         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
8760         include <bits/wordsize.h>.  Check __x86_64__ instead of
8761         __WORDSIZE.
8762
8763         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
8764         "unsigned long long int" if __x86_64__ is defined.
8765         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
8766
8767         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
8768         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8769         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
8770
8771         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
8772         <stdint.h>.
8773         (GET_PC): Cast to uintptr_t first.
8774         (GET_FRAME): Likewise.
8775         (GET_STACK): Likewise.
8776
8777         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
8778         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
8779         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
8780         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
8781         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
8782         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
8783         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
8784         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
8785         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
8786         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
8787         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
8788         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
8789         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8790         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
8791         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
8792         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
8793         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
8794         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
8795         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
8796         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
8797         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
8798         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
8799         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
8800         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
8801         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
8802         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
8803         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
8804         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8805         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8806
8807 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
8808
8809         * Makerules (+depfiles): Also collect depfiles from .oS in
8810         $(extra-objs).
8811         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8812         .oS, $(libnldbl-routines)).
8813
8814         * Makerules (native-compile-mkdep-flags): Define.
8815         * sunrpc/Makefile (extra-objs): Add $(addprefix
8816         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8817         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8818         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
8819         calling $(make-target-directory).
8820
8821 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8822
8823         * bits/types.h (__snseconds_t): Removed.
8824         * time/time.h (struct timespec): Replace __snseconds_t with
8825         __syscall_slong_t.
8826         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8827         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8828         Likewise.
8829         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8830         (__SNSECONDS_T_TYPE): Likewise.
8831         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8832         (__SNSECONDS_T_TYPE): Likewise.
8833         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8834         (__SNSECONDS_T_TYPE): Likewise.
8835
8836 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8837
8838         * sysdeps/mach/hurd/bits/typesizes.h
8839         (__SYSCALL_SLONG_TYPE): New macro.
8840         (__SYSCALL_ULONG_TYPE): Likewise.
8841
8842 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8843
8844         * bits/types.h (__syscall_slong_t): New type.
8845         (__syscall_ulong_t): Likewise.
8846
8847         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8848         (__SYSCALL_ULONG_TYPE): Likewise.
8849         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8850         (__SYSCALL_SLONG_TYPE): Likewise.
8851         (__SYSCALL_ULONG_TYPE): Likewise.
8852         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8853         (__SYSCALL_SLONG_TYPE): Likewise.
8854         (__SYSCALL_ULONG_TYPE): Likewise.
8855         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8856         (__SYSCALL_SLONG_TYPE): Likewise.
8857         (__SYSCALL_ULONG_TYPE): Likewise.
8858
8859 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8860
8861         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8862         Add sigaltstack-offsets.sym.
8863         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8864         <sigaltstack-offsets.h>.
8865         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8866         longjmp_msg pointer.
8867         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8868         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8869         signal stack.
8870         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8871
8872 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8873
8874         * elf/stackguard-macros.h: Remove file.
8875         * sysdeps/generic/stackguard-macros.h: New file.
8876         * sysdeps/i386/stackguard-macros.h: Likewise.
8877         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8878         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8879         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8880         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8881         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8882         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8883         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8884         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8885         <elf/stackguard-macros.h>.
8886
8887         [BZ #14109]
8888         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8889         __aligned__ in attribute.
8890         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8891         (gregset_t): Likewise.
8892
8893 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8894
8895         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8896         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8897         * sysdeps/x86_64/x32/Implies-after: New file.
8898
8899 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8900
8901         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8902         and access return value for _dl_profile_fixup.  Use R10_LP to
8903         load frame size.
8904
8905 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8906
8907         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8908
8909 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8910
8911         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8912         * sysdeps/x86_64/x32/sysdep.h: New file.
8913
8914 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8915
8916         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8917         * sysdeps/x86_64/setjmp.S: Likewise.
8918
8919 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8920
8921         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8922         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8923         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8924         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8925         remove unused global constant.
8926
8927 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8928
8929         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8930         include of <not-cancel.h>.
8931
8932 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8933
8934         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8935
8936 2012-05-15  Jeff Law  <law@redhat.com>
8937             Andreas Jaeger  <aj@suse.de>
8938
8939         [BZ #13594]
8940         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8941         out from...
8942         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8943         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8944         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8945         code changing __hst_map_handle.map.
8946
8947 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8948
8949         * configure.in (sysnames): Look for Implies-before and Implies-after
8950         files.
8951         * configure: Regenerated.
8952
8953 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8954
8955         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8956         8-byte data alignment with LP_SIZE alignment.
8957
8958 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8959
8960         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8961         into R10_LP.
8962
8963 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8964
8965         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8966
8967 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8968
8969         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8970         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8971         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8972         Likewise.
8973         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8974
8975 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8976
8977         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8978         (stackinfo_sub_sp): Likewise.
8979
8980 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8981
8982         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8983         RAX_LP.
8984
8985 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8986
8987         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8988         into R*_LP.
8989
8990 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8991
8992         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8993         sizes into R*_LP.
8994
8995 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8996
8997         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8998
8999 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9000
9001         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
9002         into R11_LP and load __x86_64_shared_cache_size_half into
9003         R8_LP.
9004
9005 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9006
9007         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
9008         R8_LP.
9009
9010 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9011
9012         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
9013         logb for POWER7.
9014         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
9015         logbf for POWER7.
9016         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
9017         logbl for POWER7.
9018         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
9019         powerpc32/power7/fpu/s_logb.c via #include.
9020         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
9021         powerpc32/power7/fpu/s_logbf.c via #include.
9022         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
9023         powerpc32/power7/fpu/s_logbl.c via #include.
9024
9025 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
9026
9027         * README.libm: Remove file.
9028
9029 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9030
9031         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
9032         count for x32.  Use R*_LP and omit operand-size suffix.
9033
9034 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9035
9036         * shlib-versions: Move x86_64-.*-linux.* entries to ...
9037         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
9038         * sysdeps/x86_64/x32/shlib-versions: New file.
9039
9040 2012-05-14  Roland McGrath  <roland@hack.frob.com>
9041
9042         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
9043         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
9044         Use _dl_fatal_printf instead.
9045
9046 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
9047
9048         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
9049         set if not set by the user.  Do not allow for being unset.
9050         * sysdeps/unix/sysv/linux/configure: Regenerated.
9051
9052 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9053
9054         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
9055         the `q' suffix from lea and replace .quad with ASM_ADDR.
9056
9057 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9058
9059         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
9060         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
9061         instead of $17.
9062         (PTR_DEMANGLE): Likewise.
9063
9064 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9065
9066         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
9067         (LP_OP): Likewise.
9068         (ASM_ADDR): Likewise.
9069         (RAX_LP): Likewise.
9070         (RBP_LP): Likewise.
9071         (RBX_LP): Likewise.
9072         (RCX_LP): Likewise.
9073         (RDI_LP): Likewise.
9074         (RSI_LP): Likewise.
9075         (RSP_LP): Likewise.
9076         (R8_LP): Likewise.
9077         (R9_LP): Likewise.
9078         (R10_LP): Likewise.
9079         (R10_LP): Likewise.
9080         (R11_LP): Likewise.
9081         (R12_LP): Likewise.
9082         (R13_LP): Likewise.
9083         (R14_LP): Likewise.
9084         (R15_LP): Likewise.
9085
9086 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9087
9088         * sysdeps/x86_64/x32/dl-machine.h: New file.
9089
9090 2012-05-14  Andreas Jaeger  <aj@suse.de>
9091
9092         * manual/Makefile (subdir): Remove export of subdir.
9093         (all): Remove target.
9094         (.PHONY): Remove all from list.
9095         (mkinstalldirs): Remove.
9096         (.PHONY): Remove installdirs from list.
9097         ($(inst_infodir)/libc.info): Use make-target-directory.
9098         (installdirs): Remove.
9099         (subdir_%): Remove.
9100         (glibc-targets): Remove.
9101         (lib): Remove.
9102         (stubs): Remove.
9103         ($(objpfx)stubs ../po/manual.pot): Remove.
9104         ($(objpfx)stamp%): Remove.
9105         (make-target-directory): Remove.
9106         (subdir_install): Remove.
9107         (routines): Remove.
9108         (aux): Remove.
9109         (sources): Remove.
9110         (objects): Remove.
9111         (headers): Remove.
9112
9113         [BZ #13750]
9114         * manual/.gitignore: Remove, it's not needed anymore.
9115         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
9116         all files in it.
9117         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
9118         directory.
9119         (texis): Renamed to $(objpfx)texis.
9120         (texis-path): New, contains path to generated files.
9121         (chapters.%): Use texis-path for complete path, add extra argument
9122         libc-texinfo.sh.
9123         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
9124         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
9125         (summary,texi, stamp-summary): Use complete path of
9126         files. Generate files in build dir.
9127         (dir-add.texi): Build in build dir.
9128         (libm-err.texi,stamp-libm-err): Likewise.
9129         (version.texi, stamp-version): Likewise.
9130         (.%c.texi): Likewise.
9131         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
9132         (mostlyclean): Remove target.
9133         (realclean): Remove target.
9134         (generated): Add new variable with contents from mostlyclean and
9135         realclean, remove entries duplicated in common-mostlyclean, add
9136         stamp-libm-err and stamp-version.
9137         (generated-dirs): Add libc directory.
9138         ($(inst_infodir)/libc.info): Install files from build dir.
9139
9140         * manual/install.texi (Configuring and compiling): Adjust since
9141         the info files are not part of the tar ball anymore.
9142
9143 2012-05-14  Andreas Jaeger  <aj@suse.de>
9144
9145         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
9146         variable.
9147
9148 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
9149
9150         [BZ #13717]
9151         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
9152         to 2.2.0 where earlier.
9153         * sysdeps/unix/sysv/linux/configure: Regenerated.
9154         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
9155         Remove conditional code.
9156         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
9157         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
9158         Remove conditional code.
9159         [!__NR_lchown]: Likewise.
9160         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
9161         [__NR_lchown]: Likewise.
9162         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
9163         comment referencing __ASSUME_LCHOWN_SYSCALL.
9164         * sysdeps/unix/sysv/linux/i386/sigaction.c
9165         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9166         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9167         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
9168         Remove conditional code.
9169         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
9170         (__protocol_available): Remove #if 0 code.
9171         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
9172         conditional code.
9173         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
9174         * sysdeps/unix/sysv/linux/kernel-features.h
9175         (__ASSUME_GETCWD_SYSCALL): Don't define.
9176         (__ASSUME_REALTIME_SIGNALS): Likewise.
9177         (__ASSUME_PREAD_SYSCALL): Likewise.
9178         (__ASSUME_PWRITE_SYSCALL): Likewise.
9179         (__ASSUME_POLL_SYSCALL): Likewise.
9180         (__ASSUME_LCHOWN_SYSCALL): Likewise.
9181         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
9182         non-SPARC.
9183         (__ASSUME_SIOCGIFNAME): Don't define.
9184         (__ASSUME_MSG_NOSIGNAL): Likewise.
9185         (__ASSUME_SENDFILE): Define unconditionally.
9186         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
9187         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
9188         conditional code.
9189         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
9190         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
9191         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
9192         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
9193         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
9194         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
9195         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
9196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
9197         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
9198         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
9200         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
9201         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
9203         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9204         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
9206         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9207         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
9209         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
9210         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
9212         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
9213         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
9215         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9216         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
9218         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9219         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9220         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
9221         Remove conditional code.
9222         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9223         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
9224         Remove conditional code.
9225         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9226         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
9227         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
9228         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
9229         Remove conditional code.
9230         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9231         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
9232         Remove conditional code.
9233         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9234         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
9235         Remove conditional code.
9236         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9237         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
9238         Remove conditional code.
9239         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9240         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
9241         Remove conditional code.
9242         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9243         * sysdeps/unix/sysv/linux/sh/pwrite64.c
9244         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9245         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9246         * sysdeps/unix/sysv/linux/sigaction.c
9247         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9248         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9249         * sysdeps/unix/sysv/linux/sigpending.c
9250         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9251         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9252         * sysdeps/unix/sysv/linux/sigprocmask.c
9253         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9254         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9255         * sysdeps/unix/sysv/linux/sigsuspend.c
9256         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9257         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9258         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
9259         (__libc_missing_rt_sigs): Remove.
9260         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
9261         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
9262         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
9263         Remove conditional code.
9264         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
9265         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
9266         return 1.
9267         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
9268         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
9269         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
9270         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
9271
9272 2012-05-14  Andreas Jaeger  <aj@suse.de>
9273
9274         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
9275         it's not used in glibc.
9276         (__coshm1): Likewise.
9277         (__acosh1p): Likewise.
9278         (__sgn): Likewise.
9279
9280         * manual/string.texi (Copying and Concatenation): Add missing
9281         variable in concat example.
9282         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
9283
9284 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9285
9286         [BZ #14103]
9287         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
9288         __builtin_clzl with __builtin_clzll.
9289
9290 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9291
9292         [BZ #14104]
9293         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
9294         libc_freeres_ptr.
9295
9296 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9297
9298         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
9299         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
9300         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
9301         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
9302
9303 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
9304
9305         * NEWS: Update ia64 info.
9306
9307 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
9308
9309         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
9310         used as bcopy.
9311
9312 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
9313
9314         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
9315         * sysdeps/unix/syscalls.list (dup3): Likewise.
9316         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
9317         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
9318
9319 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9320
9321         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
9322         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
9323
9324 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9325
9326         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
9327         thread pointer.
9328         (TLS_IE): Use mov/add instead of movq/addq to load thread
9329         pointer.
9330         (TLS_GD_PREFIX): New.
9331         (TLS_GD): Use it.
9332
9333 2012-05-11  David S. Miller  <davem@davemloft.net>
9334
9335         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
9336         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
9337         (_FPU_SETCW): Likewise.
9338
9339 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9340
9341         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
9342         is 32-byte aligned.
9343
9344 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
9345
9346         [BZ #11837]
9347         * iconvdata/gb18030.c: Update tables.
9348         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
9349         characters specially.
9350         (BODY for TO_LOOP): Add encoding of missing ranges.
9351
9352 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
9353
9354         [BZ #13673]
9355         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
9356         * sysdeps/mach/hurd/dup3.c: Likewise.
9357         * sysdeps/mach/hurd/readlinkat.c: Likewise.
9358         * sysdeps/powerpc/memmove.c:: Likewise.
9359
9360 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9361
9362         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
9363         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
9364
9365 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9366
9367         * elf/elf.h (R_X86_64_RELATIVE64): New.
9368         (R_X86_64_NUM): Updated.
9369         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
9370         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
9371         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
9372         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
9373         tst-quad1pie tst-quad2pie
9374         (modules-names): Add tst-quadmod1 tst-quadmod2.
9375         ($(objpfx)tst-quad1): New dependency.
9376         ($(objpfx)tst-quad2): Likewise.
9377         ($(objpfx)tst-quad1pie): Likewise.
9378         ($(objpfx)tst-quad2pie): Likewise.
9379         * sysdeps/x86_64/tst-quad1.c: New file.
9380         * sysdeps/x86_64/tst-quad1pie.c: New file.
9381         * sysdeps/x86_64/tst-quad2.c: Likewise.
9382         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
9383         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
9384         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
9385         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
9386         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
9387
9388 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9389
9390         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
9391         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
9392         * streams/stropts.h (t_scalar_t): Define type.
9393
9394         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
9395         (_PATH_PRESERVE): Set to "/var/lib".
9396         (_PATH_RWHODIR): Set to "/var/spool/rwho".
9397
9398         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
9399         instead of int.
9400
9401         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
9402         if __dir_mkfile succeeded.
9403
9404         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
9405         checking for _hurd_dtablesize.  Unlock it right after having
9406         finished _hurd_dtable allocation.
9407
9408 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9409
9410         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
9411         * sysdeps/mach/hurd/configure: Regenerated.
9412         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
9413         special-casing to...
9414         * sysdeps/gnu/configure.in: ... this new file.
9415         * sysdeps/unix/sysv/linux/configure: Regenerated.
9416         * sysdeps/gnu/configure: New generated file.
9417
9418         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
9419         for Linux: use nsec instead of usec, as well as:
9420         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
9421         members of type struct timespec.
9422         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
9423         New macros.
9424         (struct stat64): Likewise.
9425         (_STATBUF_ST_NSEC): New macro.
9426         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
9427
9428         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
9429         __strtoul_internal rather than strtoul.
9430
9431 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9432
9433         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
9434         and reject them.
9435
9436 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9437
9438         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
9439         which preserves existing values.
9440         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
9441
9442 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9443
9444         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
9445         TIMEOUT values.  Return EINVAL for NFDS values either negative or
9446         greater than FD_SETSIZE.
9447
9448 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9449
9450         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
9451         allocated, call __vm_protect to finish enabling the existing space, and
9452         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
9453         allocate the remainder.
9454
9455 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9456
9457         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
9458         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
9459
9460 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9461
9462         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
9463         sysdeps/mach/hurd/readlink.c.
9464
9465         * posix/tst-sysconf.c (posix_options): Only use
9466         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
9467         _POSIX_SYNCHRONIZED_IO when they are defined
9468         * sysdeps/mach/hurd/bits/posix_opt.h:
9469         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
9470         (_XOPEN_REALTIME): Undefine macro.
9471         (_XOPEN_REALTIME_THREADS): Undefine macro.
9472         (_XOPEN_SHM): Undefine macro.
9473         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
9474         macro to -1.
9475         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
9476         macro to -1.
9477         (_POSIX_ASYNC_IO): Undefine macro.
9478         (_POSIX_PRIORITIZED_IO): Undefine macro.
9479         (_POSIX_SPIN_LOCKS): Define macro to -1.
9480
9481         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
9482         SA_NODEFER, SA_RESETHAND.
9483         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
9484         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
9485         F_DUPFD_CLOEXEC.
9486
9487 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9488
9489         * elf/Makefile (pldd-modules): Define unconditionally.
9490
9491 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9492
9493         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
9494
9495 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9496
9497         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
9498         Return ENOENT when name is empty.
9499         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
9500
9501 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9502
9503         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
9504
9505         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
9506
9507 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9508
9509         Fix mlock in all cases except non-readable pages.
9510         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
9511         instead of VM_PROT_ALL as parameter to __vm_wire function.
9512
9513         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
9514         (__mkdir): When path is `/', just fail with EEXIST.
9515         * sysdeps/mach/hurd/mkdirat.c: Likewise.
9516
9517 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9518
9519         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
9520         <sys/uio.h> (for writev).
9521         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
9522         and <sys/param.h> (for MIN).
9523
9524 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9525
9526         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
9527         REQUESTED_TIME.  Properly set the remaining time and return EINTR
9528         if interrupted.
9529
9530 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9531
9532         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
9533         Depend on against $(link-rpcuserlibs).
9534
9535 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9536
9537         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
9538         (__libc_stack_end): Do not use attribute_relro.
9539         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
9540         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
9541         to libthread-provided value.
9542         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
9543         attribute_relro.
9544
9545 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9546
9547         [BZ #3748]
9548         * bits/libc-lock.h (__libc_once_get): New macro.
9549         * sysdeps/mach/bits/libc-lock.h: Likewise.
9550         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
9551         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
9552         instead of using implementation details.
9553
9554         * libio/fileops.c: Unconditionally include <kernel-features.h>.
9555         * libio/freopen.c: Likewise.
9556         * libio/freopen64.c: Likewise.
9557         * misc/syslog.c: Likewise.
9558         * nscd/connections.c: Likewise.
9559         * nscd/netgroupcache.c: Likewise.
9560         * sysdeps/posix/getcwd.c: Likewise.
9561
9562 2012-05-10  Roland McGrath  <roland@hack.frob.com>
9563
9564         * math/w_ilogbf.c: Add #include <limits.h>.
9565
9566 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9567
9568         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
9569         path instead of returning without unlocking.
9570
9571         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
9572         immediate-write ioctls.
9573         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
9574
9575 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9576
9577         * sysdeps/mach/hurd/i386/init-first.c (init): Use
9578         __builtin_frame_address instead of making assumptions about the
9579         location of the return address relative to DATA.  Force early load of
9580         the return address.
9581         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
9582         __builtin_frame_address.
9583
9584         dup3 for GNU Hurd.
9585         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
9586         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
9587         implement dup3 and do some further code clean-ups.
9588         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
9589         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
9590
9591 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9592
9593         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
9594
9595         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
9596         HURD_CRITICAL_END around holding _hurd_dtable_lock.
9597         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
9598         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
9599         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
9600         d->port.lock.
9601
9602         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
9603         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
9604         when handler == SIG_ERR, not when handler != SIG_ERR.
9605
9606 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9607
9608         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
9609         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
9610         definitions.
9611
9612         accept4 for GNU Hurd.
9613         * include/sys/socket.h (__libc_accept4): New prototype.
9614         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
9615         to implement __libc_accept4.
9616         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
9617         __libc_accept4.
9618         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
9619
9620         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
9621         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
9622         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
9623         signal-defines.sym.
9624
9625 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9626
9627         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
9628
9629 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9630
9631         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
9632         assertion on O_CLOEXEC flag.
9633         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
9634         * hurd/intern-fd.c: Likewise.
9635         * hurd/port2fd.c: Likewise.
9636
9637 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9638
9639         [BZ #3906]
9640         * bits/in.h (IPV6_PKTINFO): Define new macro.
9641         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
9642
9643 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9644
9645         [BZ #13954]
9646         [BZ #13955]
9647         [BZ #13956]
9648         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
9649         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
9650         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
9651         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
9652         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
9653         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
9654         * math/libm-test.inc (logb_test) : Additional logb tests.
9655
9656 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
9657             Andreas Jaeger  <aj@suse.de>
9658
9659         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
9660         * configure: Regenerated.
9661         * config.h.in (LINK_OBSOLETE_RPC): New macro.
9662         * config.make.in (link-obsolete-rpc): New substituted variable.
9663         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
9664         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
9665         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
9666         (shared-only-routines): Don't set it under [link-obsolete-rpc],
9667         so that libc.a contains the symbols.
9668         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
9669         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
9670         * sunrpc/auth_none.c: Likewise.
9671         * sunrpc/auth_unix.c: Likewise.
9672         * sunrpc/authdes_prot.c: Likewise.
9673         * sunrpc/authuxprot.c: Likewise.
9674         * sunrpc/clnt_gen.c: Likewise.
9675         * sunrpc/clnt_perr.c: Likewise.
9676         * sunrpc/clnt_raw.c: Likewise.
9677         * sunrpc/clnt_simp.c: Likewise.
9678         * sunrpc/clnt_tcp.c: Likewise.
9679         * sunrpc/clnt_udp.c: Likewise.
9680         * sunrpc/clnt_unix.c: Likewise.
9681         * sunrpc/des_crypt.c: Likewise.
9682         * sunrpc/des_soft.c: Likewise.
9683         * sunrpc/get_myaddr.c: Likewise.
9684         * sunrpc/key_call.c: Likewise.
9685         * sunrpc/key_prot.c: Likewise.
9686         * sunrpc/netname.c: Likewise.
9687         * sunrpc/pm_getmaps.c: Likewise.
9688         * sunrpc/pm_getport.c: Likewise.
9689         * sunrpc/pmap_clnt.c: Likewise.
9690         * sunrpc/pmap_prot.c: Likewise.
9691         * sunrpc/pmap_prot2.c: Likewise.
9692         * sunrpc/pmap_rmt.c: Likewise.
9693         * sunrpc/publickey.c: Likewise.
9694         * sunrpc/rpc_cmsg.c: Likewise.
9695         * sunrpc/rpc_common.c: Likewise.
9696         * sunrpc/rpc_dtable.c: Likewise.
9697         * sunrpc/rpc_prot.c: Likewise.
9698         * sunrpc/rpc_thread.c: Likewise.
9699         * sunrpc/rtime.c: Likewise.
9700         * sunrpc/svc.c: Likewise.
9701         * sunrpc/svc_auth.c: Likewise.
9702         * sunrpc/svc_raw.c: Likewise.
9703         * sunrpc/svc_run.c: Likewise.
9704         * sunrpc/svc_tcp.c: Likewise.
9705         * sunrpc/svc_udp.c: Likewise.
9706         * sunrpc/svc_unix.c: Likewise.
9707         * sunrpc/svcauth_des.c: Likewise.
9708         * sunrpc/xcrypt.c: Likewise.
9709         * sunrpc/xdr.c: Likewise.
9710         * sunrpc/xdr_array.c: Likewise.
9711         * sunrpc/xdr_float.c: Likewise.
9712         * sunrpc/xdr_intXX_t.c: Likewise.
9713         * sunrpc/xdr_mem.c: Likewise.
9714         * sunrpc/xdr_rec.c: Likewise.
9715         * sunrpc/xdr_ref.c: Likewise.
9716         * sunrpc/xdr_sizeof.c: Likewise.
9717         * sunrpc/xdr_stdio.c: Likewise.
9718
9719 2012-05-10  Roland McGrath  <roland@hack.frob.com>
9720
9721         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
9722         change.  Update copyright years.
9723
9724 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9725
9726         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
9727
9728 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
9729             Joseph Myers  <joseph@codesourcery.com>
9730             Paul Pluzhnikov  <ppluzhnikov@google.com>
9731
9732         [BZ #14012]
9733         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
9734         requiring rpcgen.
9735         [cross-compiling] (extra-libs): Likewise.
9736         [cross-compiling] (extra-libs-others): Likewise.
9737         [cross-compiling] (librpcsvc-routines): Likewise.
9738         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
9739         [cross-compiling] (omit-deps): Likewise.
9740         (sunrpc-CPPFLAGS): New variable.
9741         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
9742         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
9743         (cross-rpcgen-objs): New variable.
9744         (extra-objs): Append $(cross-rpcgen-objs).
9745         ($(cross-rpcgen-objs)): New rule.
9746         ($(objpfx)cross-rpcgen): Likewise.
9747         (rpcgen-cmd): Define to use $(built-program-file).  Expand
9748         comment.
9749         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
9750         ($(objpfx)x%.stmp): Likewise.
9751         * sunrpc/proto.h [IS_IN_build] (_): Define.
9752         [IS_IN_build] (_libc_intl_domainname): Likewise.
9753
9754 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9755
9756         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
9757         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
9758         and R_X86_64_TPOFF64.
9759
9760 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9761
9762         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
9763         sysdeps/unix/sysv/syscalls.list.
9764         (stime): Likewise.
9765         (utime): Likewise.
9766         * sysdeps/unix/sysv/syscalls.list: Remove file.
9767
9768 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
9769
9770         [BZ #3440]
9771         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
9772         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
9773         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
9774         (__LC_IDENTIFICATION): Make these macros useful in #if
9775         expressions, as required by C99.
9776
9777 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
9778
9779         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
9780         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
9781         after this.
9782
9783 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9784
9785         * stdlib/longlong.h: Updated from GCC.
9786
9787 2012-05-09  Andreas Jaeger  <aj@suse.de>
9788
9789         * nscd/nscd.c (run_modes): Make named enum, reorder so that
9790         default is first entry.
9791         (run_mode): Set type.
9792         (main): Remove informal message about syslog.
9793         (options): Fix typo.
9794
9795         [BZ #14053]
9796         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
9797         to asm.
9798         (lrint): Likewise.
9799         (llrintf): Likewise.
9800         (llrint): Likewise.
9801         (rint): Likewise.
9802         (rintf): Likewise.
9803         (nearbyint): Likewise.
9804         (nearbyintf): Likewise.
9805
9806 2012-05-09  Andreas Jaeger  <aj@suse.de>
9807             Pedro Alves  <palves@redhat.com>
9808
9809         * nscd/nscd.c (run_mode): Use enum.
9810         (main): Cleanup coding style issue.
9811
9812 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
9813             Andreas Jaeger  <aj@suse.de>
9814
9815         * nscd/nscd.c (go_background): Replaced with...
9816         (run_mode): ... this.
9817         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9818         (options): Add -F --foreground.
9819         (main): Implement it.
9820         (parse_opt): Parse it.
9821
9822 2012-05-09  Andreas Jaeger  <aj@suse.de>
9823
9824         [BZ #14083]
9825         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9826         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9827         -Wconversion warning.
9828         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9829         Likewise.
9830
9831 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
9832
9833         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
9834         == 0.
9835         (LC_ALL): Use macro-int-constant.
9836         (LC_COLLATE): Likewise.
9837         (LC_CTYPE): Likewise.
9838         (LC_MESSAGES): Likewise.
9839         (LC_MONETARY): Likewise.
9840         (LC_NUMERIC): Likewise.
9841         (LC_TIME): Likewise.
9842         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9843         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9844         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9845         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9846         Specify type.
9847         [C99-based standards] (float_t): Expect type.
9848         [C99-based standards] (double_t): Expect type.
9849         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9850         type.
9851         [C99-based standards] (HUGE_VALL): Likewise.
9852         [C99-based standards] (INFINITY): Likewise.
9853         [C99-based standards] (NAN): Likewise.
9854         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9855         [C99-based standards] (FP_NAN): Likewise.
9856         [C99-based standards] (FP_NORMAL): Likewise.
9857         [C99-based standards] (FP_SUBNORMAL): Likewise.
9858         [C99-based standards] (FP_ZERO): Likewise.
9859         [C99-based standards] (FP_FAST_FMA): Use
9860         optional-macro-int-constant.  Specify type.  Require == 1.
9861         [C99-based standards] (FP_FAST_FMAF): Likewise.
9862         [C99-based standards] (FP_FAST_FMAL): Likewise.
9863         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9864         [C99-based standards] (FP_ILOGBNAN): Likewise.
9865         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9866         Specify type.
9867         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9868         [C99-based standards] (math_errhandling): Specify type.
9869         [ISO99 || ISO11] (signgam): Do not allow.
9870         [non-C99-based standards] (copysignf): Do not allow.
9871         [non-C99-based standards] (exp2f): Likewise.
9872         [non-C99-based standards] (log2f): Likewise.
9873         [non-C99-based standards] (modff): Allow.
9874         [non-C99-based standards] (erff): Do not allow.
9875         [non-C99-based standards] (erfcf): Likewise.
9876         [non-C99-based standards] (gammaf): Likewise.
9877         [non-C99-based standards] (hypotf): Likewise.
9878         [non-C99-based standards] (j0f): Likewise.
9879         [non-C99-based standards] (j1f): Likewise.
9880         [non-C99-based standards] (jnf): Likewise.
9881         [non-C99-based standards] (lgammaf): Likewise.
9882         [non-C99-based standards] (tgammaf): Likewise.
9883         [non-C99-based standards] (y0f): Likewise.
9884         [non-C99-based standards] (y1f): Likewise.
9885         [non-C99-based standards] (ynf): Likewise.
9886         [non-C99-based standards] (isnanf): Likewise.
9887         [non-C99-based standards] (acoshf): Likewise.
9888         [non-C99-based standards] (asinhf): Likewise.
9889         [non-C99-based standards] (atanhf): Likewise.
9890         [non-C99-based standards] (cbrtf): Likewise.
9891         [non-C99-based standards] (expm1f): Likewise.
9892         [non-C99-based standards] (ilogbf): Likewise.
9893         [non-C99-based standards] (log1pf): Likewise.
9894         [non-C99-based standards] (logbf): Likewise.
9895         [non-C99-based standards] (nextafterf): Likewise.
9896         [non-C99-based standards] (remainderf): Likewise.
9897         [non-C99-based standards] (rintf): Likewise.
9898         [non-C99-based standards] (scalbf): Likewise.
9899         [non-C99-based standards] (copysignl): Likewise.
9900         [non-C99-based standards] (exp2l): Likewise.
9901         [non-C99-based standards] (log2l): Likewise.
9902         [non-C99-based standards] (modfl): Allow.
9903         [non-C99-based standards] (erfl): Do not allow.
9904         [non-C99-based standards] (erfcl): Likewise.
9905         [non-C99-based standards] (gammal): Likewise.
9906         [non-C99-based standards] (hypotl): Likewise.
9907         [non-C99-based standards] (j0l): Likewise.
9908         [non-C99-based standards] (j1l): Likewise.
9909         [non-C99-based standards] (jnl): Likewise.
9910         [non-C99-based standards] (lgammal): Likewise.
9911         [non-C99-based standards] (tgammal): Likewise.
9912         [non-C99-based standards] (y0l): Likewise.
9913         [non-C99-based standards] (y1l): Likewise.
9914         [non-C99-based standards] (ynl): Likewise.
9915         [non-C99-based standards] (isnanl): Likewise.
9916         [non-C99-based standards] (acoshl): Likewise.
9917         [non-C99-based standards] (asinhl): Likewise.
9918         [non-C99-based standards] (atanhl): Likewise.
9919         [non-C99-based standards] (cbrtl): Likewise.
9920         [non-C99-based standards] (expm1l): Likewise.
9921         [non-C99-based standards] (ilogbl): Likewise.
9922         [non-C99-based standards] (log1pl): Likewise.
9923         [non-C99-based standards] (logbl): Likewise.
9924         [non-C99-based standards] (nextafterl): Likewise.
9925         [non-C99-based standards] (remainderl): Likewise.
9926         [non-C99-based standards] (rintl): Likewise.
9927         [non-C99-based standards] (scalbl): Likewise.
9928         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9929         [non-C99-based standards] (FP_*): Do not allow.
9930         [C99-based standards] (FP_*): Change to
9931         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9932         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9933         allow.
9934         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9935         (SIG_ERR): Likewise.
9936         [X/Open-based standards] (SIG_HOLD): Likewise.
9937         (SIG_IGN): Likewise.
9938         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9939         positive value.
9940         (SIGFPE): Likewise.
9941         (SIGILL): Likewise.
9942         (SIGINT): Likewise.
9943         (SIGSEGV): Likewise.
9944         (SIGTER): Likewise.
9945         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9946         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9947         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9948         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9949         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9950         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9951         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9952         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9953         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9954         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9955         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9956         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9957         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9958         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9959         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9960         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9961         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9962         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9963         [X/Open-based standards] (SIGTRAP): Likewise.
9964         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9965         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9966         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9967         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9968         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9969         allow.
9970
9971 2012-05-08  Ian Wienand  <ianw@vmware.com>
9972
9973         [BZ #14080]
9974         * time/tzset.c (__tzset_parse_tz): Update default rules for
9975         daylight time changes in the Energy Policy Act of 2005.
9976
9977 2012-05-09  Andreas Jaeger  <aj@suse.de>
9978
9979         [BZ #13983]
9980         * elf/ldconfig.c (parse_conf): Change string to make clear that
9981         ldconfig only issued a warning if ld.so.conf does not exist.
9982
9983 2012-05-08  David S. Miller  <davem@davemloft.net>
9984
9985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9986         movxtod instead of popping the value on the stack.
9987
9988         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9989
9990 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9991
9992         * config.h.in: Add HAVE_ARM_PCS_VFP.
9993
9994 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9995
9996         [BZ #13979]
9997         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9998         checking but the checks are disabled for any reason.
9999
10000 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
10001
10002         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
10003         and ELF64_R_TYPE with ELFW(R_TYPE).
10004
10005 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
10006
10007         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
10008         (ulimit): Likewise.
10009
10010         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
10011         (settimeofday): Likewise.
10012
10013 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
10014
10015         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
10016         a struct th_u2 inside the union, and move tu_block/tu_code into
10017         a new th_u3 union of tu_block/tu_code inside of that.  Move
10018         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
10019         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
10020         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
10021         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
10022         (th_stuff): Change to th_u1.tu_stuff.
10023         (th_data): Define.
10024         (th_msg): Change to th_u1.th_u2.tu_data.
10025
10026 2012-05-07  David S. Miller  <davem@davemloft.net>
10027
10028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10029
10030         [BZ #14074]
10031         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
10032         (SETUP_PIC_REG): Use it.
10033         (SETUP_PIC_REG_LEAF): Use it.
10034
10035 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
10036
10037         [BZ #13885]
10038         [BZ #13923]
10039         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
10040         USE_AS_EXPM1L.
10041         (EXPL_FINITE): Likewise.
10042         (FLDLOG): Likewise.
10043         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
10044         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
10045         e_expl.S.
10046         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
10047         USE_AS_EXPM1L.
10048         (EXPL_FINITE): Likewise.
10049         (FLDLOG): Likewise.
10050         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
10051         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
10052         e_expl.S.
10053         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
10054         test of -max_value argument for long double.
10055         * sysdeps/i386/fpu/libm-test-ulps: Update.
10056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10057
10058 2012-05-06  David S. Miller  <davem@davemloft.net>
10059
10060         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
10061         quad soft-float symbols whose references which are compiler
10062         generated.
10063         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
10064
10065 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
10066
10067         [BZ #13884]
10068         [BZ #13914]
10069         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
10070         USE_AS_EXP10L.
10071         (EXPL_FINITE): Likewise.
10072         (FLDLOG): Likewise.
10073         (c0): Likewise.
10074         (c1): Likewise.
10075         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
10076         Adjust comments for base varying.
10077         (__expl_finite): Change alias to EXPL_FINITE.
10078         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
10079         e_expl.S.
10080         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
10081         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
10082         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
10083         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
10084         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
10085         USE_AS_EXP10L.
10086         (EXPL_FINITE): Likewise.
10087         (FLDLOG): Likewise.
10088         (c0): Likewise.
10089         (c1): Likewise.
10090         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
10091         Adjust comments for base varying.
10092         (__expl_finite): Change alias to EXPL_FINITE.
10093         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
10094         tests for bugs.
10095         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10096
10097         [BZ #14064]
10098         * math/libm-test.inc (check_float_internal): Correct ulp
10099         calculation for subnormal expected results.
10100
10101 2012-05-06  Andreas Jaeger  <aj@suse.de>
10102
10103         * Makeconfig (+math-flags): New, set to -frounding-math.
10104         (+cflags): Add +math-flags so that all of glibc gets compiled with
10105         it.
10106
10107         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
10108
10109 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
10110
10111         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
10112         Disable one test.
10113
10114         [BZ #13787]
10115         [BZ #13922]
10116         [BZ #14036]
10117         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
10118         (__ieee754_expl): Allow for and saturate large arguments.
10119         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
10120         (u_threshold): Likewise.
10121         (__exp): Call __ieee754_exp before checking for overflow and
10122         underflow.
10123         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
10124         (u_threshold): Likewise.
10125         (__expf): Call __ieee754_expf before checking for overflow and
10126         underflow.
10127         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
10128         (u_threshold): Likewise.
10129         (__expl): Call __ieee754_expl before checking for overflow and
10130         underflow.
10131         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
10132         (__ieee754_expl): Allow for and saturate large arguments.
10133         * math/libm-test.inc (exp_test): Add another test.  Do not allow
10134         missing overflow exception on overflow.
10135         (expm1_test): Do not allow missing overflow exception on overflow.
10136
10137         * sysdeps/i386/fpu/e_expl.c: Move to ...
10138         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
10139         rather than using inline asm.
10140         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
10141         * sysdeps/x86_64/fpu/e_expl.S: Copy from
10142         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
10143
10144         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
10145         (nice): Likewise.
10146         (poll): Likewise.
10147         (signal): Likewise.
10148         (time): Likewise.
10149         (times): Likewise.
10150
10151 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
10152
10153         * sysdeps/unix/syscalls.list (adjtime): Add entry from
10154         sysdeps/unix/common/syscalls.list.
10155         (fchmod): Likewise.
10156         (fchown): Likewise.
10157         (ftruncate): Likewise.
10158         (getrusage): Likewise.
10159         (gettimeofday): Likewise.
10160         (setpgid): Likewise.
10161         (setregid): Likewise.
10162         (setreuid): Likewise.
10163         (sigaction): Likewise.
10164         (truncate): Likewise.
10165         (vhangup): Likewise.
10166         * sysdeps/unix/common/syscalls.list: Remove file.
10167         * sysdeps/unix/bsd/Implies: Don't include unix/common.
10168         * sysdeps/unix/sysv/linux/Implies: Likewise.
10169
10170 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10171
10172         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
10173         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
10174         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
10175         Moved to ...
10176         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
10177         Here.
10178         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
10179         to ...
10180         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
10181         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
10182         to ...
10183         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
10184         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
10185         to ...
10186         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
10187         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
10188         to ...
10189         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
10190         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
10191         to ...
10192         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
10193         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
10194         to ...
10195         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
10196         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
10197         to ...
10198         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
10199         Here.
10200         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
10201         to ...
10202         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
10203         Here.
10204         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
10205         to ...
10206         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
10207         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
10208         Moved to ...
10209         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
10210         Here.
10211         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
10212         to ...
10213         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
10214
10215 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
10216
10217         * sysdeps/unix/common/bits/dirent.h: Remove file.
10218         * sysdeps/unix/common/bits/fcntl.h: Likewise.
10219
10220         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
10221         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
10222         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
10223         * sysdeps/unix/bsd/isatty.c: Likewise.
10224         * sysdeps/unix/bsd/tcdrain.c: Likewise.
10225         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
10226         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
10227
10228 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10229
10230         [BZ #13563]
10231         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
10232         long double comparison inaccuracies.
10233         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
10234         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10235
10236 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
10237
10238         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
10239         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
10240
10241 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
10242
10243         [BZ #14049]
10244         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
10245         nonzero digits before rounding a hex value.
10246         * stdlib/tst-strtod.c (tests): Add another test.
10247
10248 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10249
10250         * sysdeps/s390/fpu/libm-test-ulps: Update.
10251
10252 2012-05-03  Andreas Jaeger  <aj@suse.de>
10253
10254         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
10255         does not get optimized out.
10256         (malloc_opt_barrier): New.
10257
10258 2012-05-03  Andreas Jaeger  <aj@suse.de>
10259             Roland McGrath  <roland@hack.frob.com>
10260
10261         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
10262         intermediate file deletion.
10263         (generated): Add .symlist files.
10264
10265 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
10266
10267         [BZ #13775]
10268         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
10269         Redirect under this condition.
10270         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
10271         [__USE_GNU] (__dprintf_chk): Not under this condition.
10272         [__USE_GNU] (__vdprintf_chk): Likewise.
10273         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
10274         under this condition.
10275         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
10276         [__USE_XOPEN2K8] (dprintf): Define under this condition.
10277         [__USE_XOPEN2K8] (vdprintf): Likewise.
10278         [__USE_GNU] (__dprintf_chk): Not under this condition.
10279         [__USE_GNU] (__vdprintf_chk): Likewise.
10280         [__USE_GNU] (dprintf): Likewise.
10281         [__USE_GNU] (vdprintf): Likewise.
10282
10283 2012-05-03  Roland McGrath  <roland@hack.frob.com>
10284
10285         * elf/Makefile (common-generated): Set this instead of generated for
10286         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
10287         $(all-built-dso)-derived lists.
10288
10289 2012-05-03  Andreas Jaeger  <aj@suse.de>
10290
10291         * sysdeps/i386/fpu/libm-test-ulps: Update.
10292
10293         * FAQ: Removed.
10294         * FAQ.in: Likewise.
10295         * scripts/gen-FAQ.pl: Likewise.
10296         * manual/install.texi (Installation): Point to online location of
10297         FAQ.
10298         * Makefile (files-for-dist): Remove FAQ.
10299         (FAQ): Remove.
10300
10301 2012-05-02  Allan McRae  <allan@archlinux.org>
10302
10303         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
10304         (LDFLAGS-reldepmod5.so): Likewise.
10305         (LDFLAGS-reldep6mod1.so): Likewise.
10306         (LDFLAGS-reldep6mod4.so): Likewise.
10307         (LDFLAGS-reldep8mod3.so): Likewise.
10308         (LDFLAGS-unload4mod1.so): Likewise.
10309         (LDFLAGS-unload4mod2.so): Likewise.
10310         (LDFLAGS-tst-initorder): Likewise.
10311         (LDFLAGS-tst-initordera2.so): Likewise.
10312         (LDFLAGS-tst-initordera3.so): Likewise.
10313         (LDFLAGS-tst-initordera4.so): Likewise.
10314         (LDFLAGS-tst-initorderb2.so): Likewise.
10315         (LDFLAGS-noload): Likewise.
10316         (LDFLAGS-next): Likewise.
10317         (LDFLAGS-order2mod1.so): Likewise.
10318         (LDFLAGS-order2mod2.so): Likewise.
10319         (LDFLAGS-tst-initorder2): Likewise.
10320         (LDFLAGS-tst-initorder2a.so): Likewise.
10321         (LDFLAGS-tst-initorder2b.so): Likewise.
10322         (LDFLAGS-tst-initorder2c.so): Likewise.
10323         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
10324
10325 2012-05-02  David S. Miller  <davem@davemloft.net>
10326
10327         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10328
10329 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
10330
10331         [BZ #14055]
10332         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
10333
10334 2012-05-02  Andreas Jaeger  <aj@suse.de>
10335
10336         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
10337         since we manipulate rounding mode.
10338         (CPPFLAGS-test-idouble.c): Likewise.
10339         (CPPFLAGS-test-ifloat.c): Likewise.
10340         (CFLAGS-test-ldouble.c): Likewise.
10341         (CFLAGS-test-double.c): Likewise.
10342         (CFLAGS-test-float.c): Likewise.
10343         (CFLAGS-test-misc.c): Likewise.
10344         (CFLAGS-test-test-fenv.c): Likewise.
10345
10346 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10347
10348         [BZ #2550]
10349         [BZ #2570]
10350         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
10351         comparisons to determine direction to adjust input.
10352
10353 2012-05-01  Roland McGrath  <roland@hack.frob.com>
10354
10355         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
10356         output to the target.
10357
10358         * scripts/localplt.awk: New file.
10359         * elf/Makefile ($(objpfx)check-localplt): Target removed.
10360         (check-localplt-CFLAGS): Variable removed.
10361         ($(all-built-dso:=.jmprel)): New static pattern rule.
10362         (generated): Add those targets.
10363         (localplt-built-dso): New variable.
10364         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
10365
10366         * elf/check-localplt.c: File removed.
10367
10368         * scripts/check-execstack.awk: New file.
10369         * elf/Makefile ($(objpfx)check-execstack): Target removed.
10370         (check-execstack-CFLAGS): Variable removed.
10371         ($(objpfx)check-execstack.h): Target removed.
10372         ($(objpfx)execstack-default): New target.
10373         (generated): Add that instead of check-execstack.h.
10374         ($(all-built-dso:=.phdr)): New static pattern rule.
10375         (generated): Add those targets.
10376         * elf/check-execstack.c: File removed.
10377
10378         * scripts/check-textrel.awk: New file.
10379         * elf/Makefile ($(objpfx)check-textrel): Target removed.
10380         (check-textrel-CFLAGS): Variable removed.
10381         (all-built-dso): Use := to define.o
10382         ($(all-built-dso:=.dyn)): New static pattern rule.
10383         (generated): Add those targets.
10384         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
10385         * config.make.in (READELF): New substituted variable.
10386         * elf/check-textrel.c: File removed.
10387
10388 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10389
10390         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
10391         allow.
10392         * conform/data/ctype.h-data [C99-based standards] (isblank):
10393         Expect function.
10394         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
10395         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
10396         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10397         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
10398         Specify type.  Require positive value.
10399         (EILSEQ): Likewise.
10400         (ERANGE): Likewise.
10401         [ISO || POSIX] (EILSEQ): Do not expect.
10402         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
10403         Specify type.  Require positive value.
10404         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
10405         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
10406         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
10407         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
10408         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
10409         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
10410         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
10411         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
10412         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
10413         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
10414         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
10415         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
10416         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
10417         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
10418         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
10419         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
10420         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
10421         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
10422         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
10423         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
10424         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
10425         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
10426         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
10427         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
10428         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
10429         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
10430         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
10431         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
10432         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
10433         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
10434         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
10435         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
10436         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
10437         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
10438         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
10439         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
10440         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
10441         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
10442         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
10443         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
10444         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
10445         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
10446         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
10447         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
10448         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
10449         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
10450         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
10451         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
10452         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
10453         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
10454         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
10455         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
10456         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
10457         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
10458         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
10459         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
10460         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
10461         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
10462         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
10463         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
10464         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
10465         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
10466         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
10467         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
10468         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
10469         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
10470         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
10471         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
10472         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
10473         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
10474         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
10475         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
10476         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
10477         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
10478         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
10479         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
10480         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
10481         Require >= 2.
10482         (FLT_ROUNDS): Expect as macro, not constant.
10483         (FLT_MANT_DIG): Use macro-int-constant.
10484         (DBL_MANT_DIG): Likewise.
10485         (LDBL_MANT_DIG): Likewise.
10486         (FLT_DIG): Likewise.
10487         (DBL_DIG): Likewise.
10488         (LDBL_DIG): Likewise.
10489         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
10490         (DBL_MIN_EXP): Likewise.
10491         (LDBL_MIN_EXP): Likewise.
10492         (FLT_MAX_EXP): Use macro-int-constant.
10493         (DBL_MAX_EXP): Likewise.
10494         (LDBL_MAX_EXP): Likewise.
10495         (FLT_MAX_10_EXP): Likewise.
10496         (DBL_MAX_10_EXP): Likewise.
10497         (LDBL_MAX_10_EXP): Likewise.
10498         (FLT_MAX): Use macro-constant.
10499         (DBL_MAX): Likewise.
10500         (LDBL_MAX): Likewise.
10501         (FLT_EPSILON): Use macro-constant.  Give upper bound.
10502         (DBL_EPSILON): Likewise.
10503         (LDBL_EPSILON): Likewise.
10504         (FLT_MIN): Likewise.
10505         (DBL_MIN): Likewise.
10506         (LDBL_MIN): Likewise.
10507         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
10508         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
10509         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
10510         [ISO11] (FLT_HAS_SUBNORM): Likewise.
10511         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
10512         [ISO11] (DBL_DECIMAL_DIG): Likewise.
10513         [ISO11] (FLT_DECIMAL_DIG): Likewise.
10514         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
10515         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
10516         [ISO11] (FLT_TRUE_MIN): Likewise.
10517         [ISO11] (LDBL_TRUE_MIN): Likewise.
10518         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10519         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
10520         (SCHAR_MIN): Use macro-int-constant.  Specify type.
10521         (SCHAR_MAX): Likewise.
10522         (UCHAR_MAX): Likewise.
10523         (CHAR_MIN): Likewise.
10524         (CHAR_MAX): Likewise.
10525         (MB_LEN_MAX): Use macro-int-constant.
10526         (SHRT_MIN): Use macro-int-constant.  Specify type.
10527         (SHRT_MAX): Likewise.
10528         (USHRT_MAX): Likewise.
10529         (INT_MAX): Likewise.
10530         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
10531         bound negative.
10532         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
10533         bound with "U".
10534         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
10535         bound with "L".
10536         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
10537         bound negative.  Suffix upper bound with "L".
10538         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
10539         bound with "UL".
10540         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
10541         Specify type.
10542         [C99-based standards] (LLONG_MAX): Likewise.
10543         [C99-based standards] (ULLONG_MAX): Likewise.
10544         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
10545         == 0.
10546         [ISO11] (max_align_t): Require type.
10547         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10548
10549         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
10550         from $CFLAGS, without defining away __attribute__ calls.
10551         (checknamespace): Use $CFLAGS_namespace.
10552
10553         * conform/conformtest.pl (@keywords): Only include C99 keywords
10554         for standards based on C99 or C11.
10555
10556         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
10557         Disable tests.
10558         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
10559         UNIX98]: Likewise.
10560
10561         * conform/conformtest.pl: Handle "macro-int-constant" and test for
10562         usability of symbols in #if.
10563
10564         * conform/conformtest.pl: If macro or constant types start
10565         "promoted:", expect the symbol to be of the following type
10566         promoted by the integer promotions.
10567
10568         * conform/conformtest.pl: Parse all "constant" and "macro" lines
10569         in one place.  Also handle "macro-constant".
10570
10571         * conform/conformtest.pl: Only accept expected macro values with
10572         "==".  Parse all "macro" lines in one place.
10573         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
10574
10575         * conform/conformtest.pl: Handle braced types on "constant" lines
10576         instead of handling "typed-constant".
10577         * conform/data/signal.h-data: Use "constant" instead of
10578         "typed-constant".
10579
10580         * conform/conformtest.pl: Handle "optional-" at start of lines in
10581         one place rather than duplicating several cases.  Handle each
10582         format of "macro" line with initial "optional-".
10583
10584         * conform/conformtest.pl: Only accept expected constant or
10585         optional-constant values with "==".  Parse all "constant" lines in
10586         one place.  Parse all "optional-constant" lines in one place.
10587         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
10588         * conform/data/fmtmsg.h-data: Likewise.
10589         * conform/data/netinet/in.h-data: Likewise.
10590         * conform/data/tar.h-data: Likewise.
10591         * conform/data/limits.h-data: Use "==" form on "constant" and
10592         "optional-constant" lines.
10593
10594         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
10595         Use -std=c99 for XOPEN2K.
10596         (@knownproblems): Remove.
10597         (newtoken): Don't check %isknown.
10598
10599         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
10600         Do not expect macro.
10601         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
10602         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
10603         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
10604         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
10605         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
10606         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
10607         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
10608         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
10609         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
10610         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
10611         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
10612         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
10613         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
10614         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
10615         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
10616         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
10617         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
10618         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
10619         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
10620         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
10621         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
10622         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
10623         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
10624         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
10625         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
10626         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
10627         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
10628         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
10629         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
10630         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
10631         [XPG3] (acosh): Likewise.
10632         [XPG3] (asinh): Likewise.
10633         [XPG3] (atanh): Likewise.
10634         [XPG3] (cbrt): Likewise.
10635         [XPG3] (expm1): Likewise.
10636         [XPG3] (ilogb): Likewise.
10637         [XPG3] (log1p): Likewise.
10638         [XPG3] (logb): Likewise.
10639         [XPG3] (nextafter): Likewise.
10640         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
10641         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
10642         [XPG3] (remainder): Likewise.
10643         [XPG3] (rint): Likewise.
10644         [XPG3 || XPG4 || UNIX98] (round): Likewise.
10645         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
10646         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
10647         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
10648         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
10649         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
10650         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
10651         [UNIX98 || XOPEN2K] (scalb): Expect.
10652         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
10653         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
10654         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
10655         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
10656         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
10657         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
10658         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
10659         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
10660         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
10661         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
10662         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
10663         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
10664         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
10665         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
10666         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
10667         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
10668         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
10669         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
10670         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
10671         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
10672         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
10673         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
10674         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
10675         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
10676         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
10677         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
10678         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
10679         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
10680         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
10681         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
10682         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
10683         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
10684         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
10685         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
10686         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
10687         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
10688         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
10689         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
10690         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
10691         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
10692         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
10693         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
10694         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
10695         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
10696         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
10697         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
10698         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
10699         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
10700         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
10701         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
10702         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
10703         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
10704         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
10705         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
10706         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
10707         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
10708         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
10709         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
10710         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
10711         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
10712         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
10713         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
10714         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
10715         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
10716         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
10717         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
10718         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
10719         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
10720         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
10721         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
10722         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
10723         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
10724         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
10725         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
10726         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
10727         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
10728         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
10729         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
10730         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
10731         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
10732         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
10733         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
10734         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
10735         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
10736         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
10737         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
10738         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
10739         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
10740         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
10741         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
10742         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
10743         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
10744         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
10745         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
10746         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
10747         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
10748         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
10749         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
10750         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
10751         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
10752         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
10753         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
10754         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
10755         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
10756         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
10757         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
10758         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
10759         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
10760         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
10761         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
10762         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
10763         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
10764         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
10765         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
10766         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
10767         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
10768         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
10769         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
10770         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
10771         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
10772         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
10773         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
10774         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
10775         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
10776         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
10777         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
10778         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
10779         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
10780         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
10781         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
10782         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
10783         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
10784         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
10785         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
10786         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
10787         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
10788         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
10789
10790         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
10791         _XOPEN_SOURCE_EXTENDED for XPG4.
10792
10793         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
10794
10795         * Makeconfig (localtime): Remove variable.
10796         (inst_localtime-file): Likewise.
10797
10798 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10799
10800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
10801         Update.
10802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10803         Update.
10804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10805         Update.
10806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10807         Update.
10808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10809         Update.
10810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10811         Update.
10812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10813         Update.
10814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10815         Update.
10816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10817         Update.
10818
10819 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10820
10821         [BZ #2550]
10822         [BZ #2570]
10823         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10824         comparisons to determine direction to adjust input.
10825         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10826         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10827         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10828         Likewise.
10829         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10830         Likewise.
10831         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10832         Likewise.
10833         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10834         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10835         Likewise.
10836         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10837         Likewise.
10838         * math/libm-test.inc (nexttoward_test): Add more tests.
10839
10840 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10841
10842         [BZ #14040]
10843         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10844         in version GLIBC_2.1, not GLIBC_2.0.
10845         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10846         Likewise.
10847
10848 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10849
10850         [BZ #13942]
10851         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10852         (1 - x) * (1 + x).
10853         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10854         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10855         * math/libm-test.inc (acos_test): Add more tests.
10856         (asin_test): Likewise.
10857         * sysdeps/i386/fpu/libm-test-ulps: Update.
10858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10859
10860         [BZ #14034]
10861         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10862         of square root.
10863         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10864         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10865         * math/libm-test.inc (acos_test_tonearest): New function.
10866         (acos_test_towardzero): Likewise.
10867         (acos_test_downward): Likewise.
10868         (acos_test_upward): Likewise.
10869         (asin_test_tonearest): Likewise.
10870         (asin_test_towardzero): Likewise.
10871         (asin_test_downward): Likewise.
10872         (asin_test_upward): Likewise.
10873         (main): Call the new functions.
10874         * sysdeps/i386/fpu/libm-test-ulps: Update.
10875         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10876
10877         [BZ #13884]
10878         [BZ #13924]
10879         * math/e_exp10.c: Include <float.h>.
10880         (__ieee754_exp10): Handle underflow here rather than multiplying
10881         large negative argument by M_LN10.
10882         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10883         of __ieee754_expf.
10884         * math/e_exp10l.c: Include <float.h>.
10885         (__ieee754_exp10l): Handle underflow here rather than multiplying
10886         large negative argument by M_LN10l.
10887         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10888         spurious overflow exception on underflow.
10889
10890 2012-04-29  Marek Polacek  <polacek@redhat.com>
10891
10892         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10893         (__fortify_function): New macro.
10894         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10895         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10896         __extern_always_inline.
10897         * libio/bits/stdio2.h: Likewise.
10898         * libio/bits/stdio.h: Likewise.
10899         * string/string.h: Likewise.
10900         * string/bits/string3.h: Likewise.
10901         * include/stdio.h: Likewise.
10902         * stdlib/bits/stdlib.h: Likewise.
10903         * stdlib/stdlib.h: Likewise.
10904         * rt/bits/mqueue2.h: Likewise.
10905         * rt/mqueue.h: Likewise.
10906         * posix/bits/unistd.h: Likewise.
10907         * posix/unistd.h: Likewise.
10908         * io/bits/poll2.h: Likewise.
10909         * io/bits/fcntl2.h: Likewise.
10910         * io/fcntl.h: Likewise.
10911         * io/sys/poll.h: Likewise.
10912         * misc/bits/syslog.h: Likewise.
10913         * misc/bits/syslog-ldbl.h: Likewise.
10914         * misc/sys/syslog.h: Likewise.
10915         * socket/bits/socket2.h: Likewise.
10916         * socket/sys/socket.h: Likewise.
10917         * debug/tst-chk1.c: Likewise.
10918         * wcsmbs/bits/wchar2.h: Likewise.
10919         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10920         * wcsmbs/wchar.h: Likewise.
10921
10922 2012-04-29  Andreas Jaeger  <aj@suse.de>
10923
10924         * Makerules (tests): Remove enable-check-abi protection.
10925         (check-abi-warn): Remove.
10926         (check-abi-%): Remove check-abi-warn usage.
10927
10928         * configure.in: Remove check-abi configure option.
10929         * configure: Regenerated.
10930         * config.make.in (enable-check-abi): Remove.
10931
10932 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10933
10934         [BZ #14033]
10935         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10936         double functions to double *_finite functions.
10937
10938         [BZ #13941]
10939         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10940         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10941         LDBL_MIN_EXP.
10942         * stdio-common/Makefile (tests): Add tst-sprintf3.
10943         * stdio-common/tst-sprintf3.c: New file.
10944
10945         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10946         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10947
10948 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10949
10950         * conform/conformtest.pl: Remove duplicate typed-constant
10951         handling.
10952
10953 2012-04-28  David S. Miller  <davem@davemloft.net>
10954
10955         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10956         (check-abi-%): Remove AWK script prerequisite and explicit
10957         abilist directory.
10958         (check-abi): Rewrite to just diff the symlist with the abilist.
10959         (config-tls, config-abi-config): Delete, no longer used.
10960         (update-abi-%): Remove AWK script and explicit abilist directory.
10961         (update-abi): Rewrite to simply compare and conditionally copy the
10962         symlist and the sysdep abilist file.  Remove update-abi-config
10963         checks.
10964         * abilist/ld.abilist: Remove.
10965         * abilist/libBrokenLocale.abilist: Remove.
10966         * abilist/libanl.abilist: Remove.
10967         * abilist/libcrypt.abilist: Remove.
10968         * abilist/libdl.abilist: Remove.
10969         * abilist/librt.abilist: Remove.
10970         * abilist/libthread_db.abilist: Remove.
10971         * abilist/libutil.abilist: Remove.
10972         * scripts/extract-abilist.awk: Remove.
10973         * scripts/merge-abilist.awk: Remove.
10974         * sysdeps/generic/libcidn.abilist: New file.
10975         * sysdeps/generic/libnss_compat.abilist: New file.
10976         * sysdeps/generic/libnss_db.abilist: New file.
10977         * sysdeps/generic/libnss_dns.abilist: New file.
10978         * sysdeps/generic/libnss_files.abilist: New file.
10979         * sysdeps/generic/libnss_hesiod.abilist: New file.
10980         * sysdeps/generic/libnss_nis.abilist: New file.
10981         * sysdeps/generic/libnss_nisplus.abilist: New file.
10982         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10983         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10984         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10985         file.
10986         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10987         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10988         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10989         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10990         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10991         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10992         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10993         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10994         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10995         file.
10996         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10997         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10998         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10999         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
11000         file.
11001         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
11002         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
11003         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
11004         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
11005         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
11006         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
11007         file.
11008         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
11009         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
11010         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
11011         file.
11012         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
11013         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
11014         New file.
11015         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
11016         New file.
11017         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
11018         New file.
11019         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
11020         New file.
11021         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
11022         New file.
11023         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
11024         New file.
11025         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
11026         New file.
11027         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
11028         New file.
11029         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
11030         New file.
11031         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
11032         New file.
11033         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
11034         New file.
11035         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
11036         New file.
11037         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
11038         New file.
11039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
11040         file.
11041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
11042         New file.
11043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
11044         New file.
11045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
11046         file.
11047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
11048         New file.
11049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
11050         New file.
11051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
11052         file.
11053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
11054         New file.
11055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
11056         New file.
11057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
11058         New file.
11059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
11060         New file.
11061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
11062         New file.
11063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
11064         New file.
11065         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
11066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
11067         file.
11068         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
11069         New file.
11070         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
11071         file.
11072         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
11073         file.
11074         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
11075         file.
11076         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
11077         file.
11078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
11079         file.
11080         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
11081         New file.
11082         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
11083         file.
11084         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
11085         file.
11086         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
11087         New file.
11088         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
11089         file.
11090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
11091         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
11092         file.
11093         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
11094         New file.
11095         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
11096         file.
11097         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
11098         file.
11099         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
11100         file.
11101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
11102         file.
11103         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
11104         file.
11105         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
11106         New file.
11107         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
11108         file.
11109         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
11110         file.
11111         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
11112         New file.
11113         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
11114         file.
11115         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
11116         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
11117         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
11118         file.
11119         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
11120         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
11121         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
11122         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
11123         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
11124         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
11125         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
11126         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
11127         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
11128         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
11129         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
11130         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
11131         file.
11132         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
11133         New file.
11134         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
11135         file.
11136         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
11137         file.
11138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
11139         file.
11140         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
11141         file.
11142         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
11143         file.
11144         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
11145         New file.
11146         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
11147         New file.
11148         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
11149         file.
11150         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
11151         New file.
11152         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
11153         file.
11154         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
11155         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
11156         file.
11157         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
11158         New file.
11159         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
11160         file.
11161         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
11162         file.
11163         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
11164         file.
11165         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
11166         file.
11167         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
11168         file.
11169         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
11170         New file.
11171         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
11172         New file.
11173         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
11174         file.
11175         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
11176         New file.
11177         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
11178         file.
11179
11180 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
11181
11182         * conform/conformtest.pl: Fix typo in handling typed-constant from
11183         allow-header.
11184
11185 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
11186
11187         * README: Cut down references to pre-2.6 Linux kernels and
11188         Linuxthreads.  Update lists of configurations in libc and ports
11189         and sort alphabetically.  Say "or newer" with Linux kernel version
11190         requirements.
11191
11192         * config.h.in [IS_IN_build]: Allow compiling without optimization.
11193
11194 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
11195
11196         [BZ #887]
11197         * math/libm-test.inc (logb_test_downward): New test to expose
11198         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
11199         rounding mode.
11200
11201 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
11202
11203         [BZ #14027]
11204         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
11205         to be done.
11206         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
11207         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
11208
11209 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
11210
11211         * sysdeps/unix/i386/brk.S: Remove file.
11212         * sysdeps/unix/i386/dl-brk.S: Likewise.
11213         * sysdeps/unix/i386/pipe.S: Likewise.
11214         * sysdeps/unix/i386/sigreturn.S: Likewise.
11215         * sysdeps/unix/i386/syscall.S: Likewise.
11216         * sysdeps/unix/i386/vfork.S: Likewise.
11217         * sysdeps/unix/i386/wait.S: Likewise.
11218
11219         * sysdeps/unix/common/tcsendbrk.c: Move to ...
11220         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
11221
11222         * configure.in (arm*-none*): Do not allow without
11223         --enable-hacker-mode.
11224         (netbsd*): Remove case setting base_os.
11225         (386bsd*): Likewise.
11226         (freebsd*): Likewise.
11227         (bsdi*): Likewise.
11228         (osf*): Likewise.
11229         (sunos*): Likewise.
11230         (ultrix*): Likewise.
11231         (newsos*): Likewise.
11232         (dynix*): Likewise.
11233         (*bsd*): Likewise.
11234         (sysv*): Likewise.
11235         (isc*): Likewise.
11236         (esix*): Likewise.
11237         (sco*): Likewise.
11238         (minix*): Likewise.
11239         (irix4*): Likewise.
11240         (irix6*): Likewise.
11241         (solaris[2-9]*): Likewise.
11242         (none): Likewise.
11243         * configure: Regenerated.
11244
11245 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11246
11247         [BZ #11521]
11248         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
11249         overflow or cancellation in calculating denominator.
11250         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
11251         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
11252         down expression to avoid unexpected rounding in newer GCCs.
11253         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
11254
11255 2012-04-26  David S. Miller  <davem@davemloft.net>
11256
11257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
11258         long-double compat symbols.
11259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
11263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
11265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
11266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
11267         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
11268         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
11269         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
11270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
11271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11272
11273 2012-04-25  David S. Miller  <davem@davemloft.net>
11274
11275         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
11276         HWCAP_* values only after the memory barriers have been defined.
11277         (atomic_full_barrier): Define.
11278         (atomic_read_barrier): Define.
11279         (atomic_write_barrier): Define.
11280
11281 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11282
11283         * shlib-versions: Add libgcc_s version information.
11284         * sysdeps/generic/libgcc_s.h: Remove.
11285         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
11286         libgcc_s.h.
11287         * sysdeps/gnu/unwind-resume.c: Likewise.
11288         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
11289
11290 2012-04-25  David S. Miller  <davem@davemloft.net>
11291
11292         * sysdeps/unix/sparc/brk.S: Delete.
11293         * sysdeps/unix/sparc/dl-brk.S: Delete.
11294         * sysdeps/unix/sparc/pipe.S: Delete.
11295         * sysdeps/unix/sparc/sysdep.S: Delete.
11296         * sysdeps/unix/sparc/sysdep.h: Delete.
11297         * sysdeps/unix/sparc/vfork.S: Delete.
11298         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
11299         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
11300         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
11301         ret_ERRVAL, r0, r1, MOVE): Define.
11302         (JUMPTARGET): Remove.
11303         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
11304         sysdeps/unix/sparc/sysdep.h
11305         (ENTRY, END): Remove.
11306         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11307
11308 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
11309
11310         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
11311         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
11312         -DIS_IN_build.
11313
11314         * timezone/README: Update upstream location and email address for
11315         tzcode and tzdata.
11316         * timezone/zdump.c: Update from tzcode 2012b.
11317         * timezone/zic.c: Likewise.
11318
11319         * configure.in (libc_cv_as_needed): Remove test.
11320         * configure: Regenerated.
11321         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
11322         conditional definition.
11323         [$(have-as-needed) != yes] (no-as-needed): Likewise.
11324         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
11325         * config.make.in (have-as-needed): Remove variable.
11326
11327 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11328             Paul Pluzhnikov  <ppluzhnikov@google.com>
11329
11330         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
11331         strings correctly.
11332
11333 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
11334
11335         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
11336         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
11337         * sysdeps/sh/strlen.S: Likewise.
11338
11339 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
11340
11341         * sysdeps/unix/fork.S: Remove file.
11342         * sysdeps/unix/i386/fork.S: Likewise.
11343         * sysdeps/unix/sparc/fork.S: Likewise.
11344
11345         * sysdeps/unix/system.c: Remove file.
11346         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
11347
11348         * sysdeps/unix/getegid.S: Remove file.
11349         * sysdeps/unix/geteuid.S: Likewise.
11350
11351 2012-04-24  Roland McGrath  <roland@hack.frob.com>
11352
11353         * scripts/check-localplt.awk: New file.
11354         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
11355         of diff.
11356         * scripts/data/localplt-generic.data: Add a comment.
11357
11358         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
11359         NODE when __dir_mkfile failed.
11360         * sysdeps/mach/hurd/symlinkat.c: Likewise.
11361         Reported by Ludovic Courtès <ludo@gnu.org>.
11362
11363 2012-04-24  Andreas Jaeger  <aj@suse.de>
11364
11365         * Makerules (common-clean): Also remove gen-as-const-headers
11366         files.
11367
11368 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
11369
11370         * Makerules (native-compile): Do not change working directory for
11371         build.  Use $(OUTPUT_OPTION) in command.
11372         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
11373
11374 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11375
11376         [BZ #13886]
11377         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
11378         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
11379         * math/libm-test.inc (floor_test): Add more tests.
11380         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
11381
11382 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
11383
11384         * sysdeps/unix/getdents.c: Remove file.
11385         * sysdeps/unix/sysv/getdents.c: Likewise.
11386         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
11387
11388         * sysdeps/unix/syscalls.list (madvise): Add syscall from
11389         sysdeps/unix/mman/syscalls.list.
11390         (mmap): Likewise.
11391         (mprotect): Likewise.
11392         (msync): Likewise.
11393         (munmap): Likewise.
11394         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
11395         * sysdeps/unix/mman/syscalls.list: Remove.
11396         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
11397
11398         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
11399         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
11400         * configure: Regenerated.
11401         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
11402         $(libgcc_s_suffix).
11403         * config.make.in (libgcc_s_suffix): Remove variable.
11404
11405 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
11406
11407         * sysdeps/unix/sysv/gethostname.c: Move to ...
11408         * sysdeps/posix/gethostname.c: ... here.
11409
11410         * sysdeps/unix/execve.S: Remove file.
11411
11412         * sysdeps/unix/_exit.S: Remove file.
11413
11414 2012-04-23  Andreas Jaeger  <aj@suse.de>
11415
11416         [BZ #13739]
11417         * manual/Makefile: Remove make dist support, there's no
11418         need for a stand-alone documentation tar ball.
11419         (TEXI2DVI): Define always, it's not in Makeconfig.
11420         (dist): Removed.
11421         (tar-it): Removed.
11422         (edition): Removed.
11423         (glibc-doc-$(edition).tar): Removed
11424         (%.Z): Removed.
11425         (%.gz): Removed.
11426         (%.uu): Removed.
11427         (ETAGS): Remove, it's in Makeconfig.
11428         (move-if-change): Remove, it's in Makeconfig.
11429
11430 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
11431
11432         [BZ #13970]
11433         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
11434         (strtod, strtof, strtold, strtol, strtoul, strtoq)
11435         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
11436         (strtod_l, strtof_l, strtold_l): Remove __wur.
11437         It is not necessarily an error to ignore strtol's return value.
11438         One can reliably look at the stored endptr to decide whether
11439         the number had valid syntax.
11440
11441 2012-04-21  Andreas Jaeger  <aj@suse.de>
11442
11443         [BZ #13739]
11444         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
11445
11446 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
11447
11448         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
11449         * sysdeps/unix/sysv/Versions: Remove file.
11450
11451 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
11452
11453         [BZ #13927]
11454         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11455
11456 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
11457
11458         [BZ #7064]
11459         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
11460         version from __vm86.
11461
11462 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
11463
11464         * sysdeps/unix/common/lxstat.c: Remove file.
11465         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
11466
11467         * sysdeps/unix/sysv/Makefile: Remove file.
11468
11469         * sysdeps/unix/sysv/direct.h: Remove file.
11470
11471         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
11472         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
11473         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
11474         * sysdeps/unix/sysv/bits/signum.h: Likewise.
11475         * sysdeps/unix/sysv/bits/stat.h: Likewise.
11476         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
11477         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
11478
11479         * sysdeps/unix/sysv/setrlimit.c: Remove file.
11480
11481         * sysdeps/unix/xmknod.c: Remove file.
11482         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
11483
11484         * sysdeps/unix/sysv/settimeofday.c: Remove file.
11485
11486         * sysdeps/unix/sysv/i386/time.S: Remove file.
11487
11488         * sysdeps/unix/fxstat.c: Remove file.
11489         * sysdeps/unix/xstat.c: Likewise.
11490         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
11491
11492         * sysdeps/unix/sysv/sigaction.c: Remove file.
11493
11494         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
11495         (sysdep_headers): Remove variable.
11496         [termio.h not in sysdep_headers] (generated): Likewise.
11497         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
11498         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
11499         * sysdeps/unix/sysv/tcdrain.c: Likewise.
11500         * sysdeps/unix/sysv/tcflow.c: Likewise.
11501         * sysdeps/unix/sysv/tcflush.c: Likewise.
11502         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
11503         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
11504         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
11505         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
11506         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
11507
11508         * sysdeps/unix/siglist.c: Remove file.
11509
11510         * sysdeps/unix/getppid.S: Remove file.
11511
11512         * sysdeps/unix/mkdir.c: Remove file.
11513         * sysdeps/unix/rmdir.c: Likewise.
11514
11515 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
11516
11517         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
11518         ERR_MAX value.
11519         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
11520         errlist-compat value.
11521
11522 2012-04-18  David S. Miller  <davem@davemloft.net>
11523
11524         * sysdeps/generic/memcopy.h (reg_char): Delete.
11525         * debug/strcat_chk.c: Use char, not reg_char.
11526         * debug/strcpy_chk.c: Likewise.
11527         * debug/strncat_chk.c: Likewise.
11528         * debug/strncpy_chk.c: Likewise.
11529         * string/memchr.c: Likewise.
11530         * string/memrchr.c: Likewise.
11531         * string/rawmemchr.c: Likewise.
11532         * string/strcat.c: Likewise.
11533         * string/strchr.c: Likewise.
11534         * string/strchrnul.c: Likewise.
11535         * string/strcmp.c: Likewise.
11536         * string/strcpy.c: Likewise.
11537         * string/strncat.c: Likewise.
11538         * string/strncmp.c: Likewise.
11539         * string/strncpy.c: Likewise.
11540
11541 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
11542
11543         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
11544         __builtin_memcopy is called when src and dest ranges are known to not
11545         overlap.
11546
11547 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
11548
11549         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
11550         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
11551         fwd_align_merge macro call.
11552         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
11553         bwd_align_merge macro call.
11554         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
11555
11556 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
11557
11558         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
11559         bwd_align_merge macros.
11560         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
11561         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
11562         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
11563
11564 2012-04-18  David S. Miller  <davem@davemloft.net>
11565
11566         * sysdeps/sparc/sparc64/memcopy.h: Delete.
11567
11568 2012-04-18  Andreas Jaeger  <aj@suse.de>
11569
11570         [BZ# 6794]
11571         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
11572         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
11573         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
11574
11575         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
11576         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
11577         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
11578
11579         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
11580         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
11581         Adjust for changed ldbl-128 files.
11582
11583         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
11584         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
11585         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
11586
11587 2012-04-17  David S. Miller  <davem@davemloft.net>
11588
11589         * sysdeps/sparc/sparc32/memcopy.h: Delete.
11590
11591 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
11592
11593         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
11594         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
11595         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
11596         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
11597         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
11598         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
11599
11600 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11601
11602         [BZ #6794]
11603         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
11604         * math/libm-test.inc: Add ilogb errno and exception tests.
11605         * math/w_ilogb.c: New file: ilogb wrapper.
11606         * math/w_ilogbf.c: New file: ilogbf wrapper.
11607         * math/w_ilogbl.c: New file: ilogbl wrapper.
11608         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
11609         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
11610         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
11611         exception being thrown with 0.0 as argument.
11612         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
11613         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
11614         exception being thrown with 0.0 as argument.
11615         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
11616         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
11617         exception being thrown with 0.0 as argument.
11618         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
11619         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
11620         exception being thrown with 0.0 as argument.
11621         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
11622         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
11623         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
11624         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
11625         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
11626         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
11627         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
11628         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
11629         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
11630
11631 2012-04-17  Petr Baudis  <pasky@ucw.cz>
11632
11633         * include/sys/uio.h: Change __vector to __iovec to avoid clash
11634         with altivec.
11635
11636 2012-04-16  Marek Polacek  <polacek@redhat.com>
11637
11638         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
11639
11640 2012-04-16  Marek Polacek  <polacek@redhat.com>
11641
11642         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
11643         operands of fdivp instruction.
11644
11645 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
11646
11647         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
11648         * elf/tst-auditmod3b.c: Likewise.
11649         * elf/tst-auditmod4b.c: Likewise.
11650         * elf/tst-auditmod5b.c: Likewise.
11651         * elf/tst-auditmod6b.c: Likewise.
11652         * elf/tst-auditmod6c.c: Likewise.
11653         * elf/tst-auditmod7b.c: Likewise.
11654         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
11655         * sysdeps/x86_64/preconfigure.in: Likewise.
11656         * sysdeps/x86_64/preconfigure: Regenerated.
11657
11658 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
11659
11660         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
11661         __ILP32__.
11662
11663 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
11664
11665         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11666         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
11667
11668 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
11669
11670         [BZ #13973]
11671         * locale/iso-639.def: Fix gl language name. Spotted by
11672         Yaron Shahrabani.
11673
11674 2012-04-12  Roland McGrath  <roland@hack.frob.com>
11675
11676         [BZ #2074]
11677         * libio/libio.h (__io_write_fn): Update comment.
11678
11679 2012-04-12  Petr Baudis  <pasky@ucw.cz>
11680
11681         [BZ #2074]
11682         * stdio.texi (Hook Functions): The user provided writer function
11683         is not allowed to return -1.
11684
11685 2012-04-11  David S. Miller  <davem@davemloft.net>
11686
11687         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11688
11689 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
11690
11691         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
11692         Add a leading slash to rtkaio.
11693
11694 2012-04-11  Jim Meyering  <meyering@redhat.com>
11695
11696         [BZ #11959]
11697         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
11698         It is not necessarily an error to ignore fwrite's return
11699         value.  One can reliably use ferror to test for errors after
11700         the fact.
11701
11702 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
11703
11704         * bits/types.h (__snseconds_t): New type.
11705         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
11706
11707         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
11708         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11709         (__SNSECONDS_T_TYPE): Likewise.
11710         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11711         (__SNSECONDS_T_TYPE): Likewise.
11712         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11713         (__SNSECONDS_T_TYPE): Likewise.
11714
11715 2012-04-10  Andreas Jaeger  <aj@suse.de>
11716
11717         [BZ #2636]
11718         * manual/time.texi (Processor Time): Return type of times is
11719         elapsed real time since an arbitrary point in the past.
11720         (CPU Time): Move CLK_TCK from here...
11721         (Processor Time): ...to here.  Correct description.
11722         * manual/conf.texi (Constants for Sysconf): Correct description of
11723         _SC_CLK_TCK.
11724
11725 2012-04-10  David S. Miller  <davem@davemloft.net>
11726
11727         [BZ #13967]
11728         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
11729         where the is a gap between DT_REL(A) and DT_JMPREL.
11730
11731 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
11732
11733         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
11734         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11735         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11736
11737 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11738
11739         * elf/dl-support.c (_dl_inhibit_cache): New variable.
11740         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
11741         (dl_main): Handle --inhibit-cache.
11742         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
11743         _dl_inhibit_cache.
11744         * elf/dl-load.c (_dl_map_object): Use it.
11745         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
11746
11747 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11748
11749         [BZ #13872]
11750         * sysdeps/i386/fpu/e_powl.S (p78): New object.
11751         (__ieee754_powl): Saturate large exponents rather than testing for
11752         overflow of y*log2(x).
11753         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11754         * math/libm-test.inc (pow_test): Do not permit spurious overflow
11755         exceptions.
11756
11757         [BZ #11521]
11758         * math/s_ctan.c: Include <float.h>.
11759         (__ctan): Avoid internal overflow or cancellation in calculating
11760         denominator.
11761         * math/s_ctanf.c: Likewise.
11762         * math/s_ctanl.c: Likewise.
11763         * math/s_ctanh.c: Likewise.
11764         * math/s_ctanhf.c: Likewise.
11765         * math/s_ctanhl.c: Likewise.
11766         * math/libm-test.inc (ctan_test): Add more tests.
11767         (ctanh_test): Likewise.
11768         * sysdeps/i386/fpu/libm-test-ulps: Update.
11769         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11770
11771 2012-04-09  Andreas Jaeger  <aj@suse.de>
11772
11773         [BZ #6894]
11774         * manual/filesys.texi (Directory Entries): Mention that d_namlen
11775         is an optional BSD extension.
11776
11777         [BZ #10254]
11778         * manual/stdio.texi (Opening Streams): Document additional fopen
11779         parameters.
11780
11781 2012-04-09  Roland McGrath  <roland@hack.frob.com>
11782
11783         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
11784         %eax without telling the compiler.
11785
11786 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
11787
11788         [BZ # 13963]
11789         * manual/install.texi: Use sourceware.org.
11790
11791 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11792
11793         [BZ #13873]
11794         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
11795         (__ieee754_pow): Generate overflow and underflow using huge*huge
11796         and tiny*tiny rather than just returning constant infinity or zero
11797         for large exponents.
11798         * math/libm-test.inc (pow_test): Require overflow exceptions for
11799         applicable cases of large exponents.
11800
11801         [BZ #706]
11802         * sysdeps/i386/fpu/e_pow.S (p10): New object.
11803         (__ieee754_pow): Use iterative multiplication algorithm only for
11804         integer exponents with absolute value below 1024.  Check for odd
11805         integer exponents when using algorithm for real exponents.
11806         * math/libm-test.inc (pow_test): Add more tests.
11807         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11808
11809 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
11810
11811         [BZ #13705]
11812         * math/libm-test.inc (exp_test): Do not allow overflow exception
11813         on underflow test.
11814
11815 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
11816
11817         [BZ #13705]
11818         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11819         instead of __kernel_standard_f.
11820
11821 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
11822
11823         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11824         * sysdeps/x86_64/memset_chk.S: Likewise.
11825
11826 2012-04-08  Andreas Jaeger  <aj@suse.de>
11827
11828         [BZ #10153]
11829         * manual/startup.texi (Environment Access): Describe return value
11830         for putenv and setenv.
11831
11832         [BZ #6895]
11833         * manual/filesys.texi (Directory Entries): Add description for
11834         DT_LNK.
11835
11836         [BZ #6890]
11837         * manual/filesys.texi (Directory Entries): Clarify that it's file
11838         system not operating system in the description of DT_UNKNOWN.
11839
11840         [BZ #6578]
11841         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11842
11843 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11844
11845         [BZ #6649]
11846         * manual/llio.texi (Opening and Closing Files): Add cross
11847         reference to explain mode argument.
11848
11849 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11850
11851         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11852         * sysdeps/x86_64/memset_chk.S: Likewise.
11853
11854 2012-04-07  David S. Miller  <davem@davemloft.net>
11855
11856         * elf/elf.h (R_SPARC_WDISP10): Define.
11857         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11858         R_SPARC_SIZE32.
11859         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11860         R_SPARC_SIZE64 and R_SPARC_H34.
11861
11862 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11863
11864         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11865         conditions and remove no longer applicable assertion.
11866
11867 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11868
11869         * bits/byteswap.h: Include <features.h>.
11870         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11871         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11872
11873 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11874
11875         * bits/byteswap.h (__bswap_16): Removed.
11876         Include <bits/byteswap-16.h> to get __bswap_16.
11877         * sysdeps/i386/bits/byteswap.h: Likewise.
11878         * sysdeps/s390/bits/byteswap.h: Likewise.
11879         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11880         * bits/byteswap-16.h: New file.
11881         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11882         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11883         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11884         * string/Makefile (headers): Add bits/byteswap-16.h.
11885
11886 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11887
11888         [BZ #13895]
11889         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11890         extra indirection.
11891         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11892         * nss/tst-nss-static.c: New.
11893
11894 2012-04-06  Robert Millan  <rmh@gnu.org>
11895
11896         [BZ #6486]
11897         * manual/llio.texi (File Position Primitive): lseek
11898         refers to WHENCE when it really means OFFSET.
11899
11900 2012-04-06  Andreas Jaeger  <aj@suse.de>
11901
11902         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11903         strncmp declarations.
11904
11905         * abilist/libc.abilist: Add __poll and __ppoll.
11906
11907 2012-04-05  David S. Miller  <davem@davemloft.net>
11908
11909         * scripts/check-local-headers.sh: Accept a host triplet in the
11910         path matched by the exclude regexp.
11911
11912         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11913         definition.
11914         * sysdeps/powerpc/powerpc32/dl-machine.h
11915         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11916         * sysdeps/s390/s390-32/dl-machine.h
11917         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11918         * sysdeps/sparc/sparc32/dl-machine.h
11919         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11920         * sysdeps/sparc/sparc64/dl-machine.h
11921         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11922
11923         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11924         lazy binding.
11925         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11926         undefined symbol errors.
11927
11928         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11929         DT_NEEDED entries.
11930
11931 2012-04-05  Michael Matz  <matz@suse.de>
11932
11933         [BZ #13592]
11934         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11935
11936 2012-04-05  Andreas Jaeger  <aj@suse.de>
11937
11938         [BZ #13908]
11939         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11940         comment.
11941
11942 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11943
11944         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11945         which ROUND is no valid rounding mode.
11946
11947 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11948
11949         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11950         read again.
11951         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11952
11953 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11954
11955         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11956         an exception using FPU order intentionally.
11957
11958 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11959
11960         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11961         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11962         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11963         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11964
11965 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11966
11967         [BZ #12340]
11968         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11969         EINVAL when BUFLEN is too smal.
11970
11971 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11972
11973         [BZ #13553]
11974         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11975         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11976
11977 2012-04-03  Andreas Jaeger  <aj@suse.de>
11978
11979         [BZ #13938]
11980         * manual/setjmp.texi (System V contexts): Fix sentence.
11981
11982         [BZ #13926]
11983         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11984         New macro for this case.
11985         [!__GNUC__] (__bswap_64): New inline function for this case.
11986         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11987         * bits/byteswap.h: Likewise.
11988         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11989         ull, guard with __GLIBC_HAVE_LONG_LONG.
11990
11991         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11992         __GLIBC_HAVE_LONG_LONG.
11993
11994         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11995         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11996
11997 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11998
11999         [BZ #13691]
12000         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
12001         inptr and inend, rather than using last_ch.
12002
12003 2012-04-02  David S. Miller  <davem@davemloft.net>
12004
12005         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
12006         * stdio-common/printf-parse.h (read_int): Change return type to
12007         'int', return -1 on INT_MAX overflow.
12008         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
12009         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
12010         overflows INT_MAX.  Check for overflow of in-format-string precision
12011         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
12012         SIZE_MAX not INT_MAX for integer overflow test.
12013         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
12014         skip the construct in the format string but do not record anything.
12015         * stdio-common/bug22.c: Adjust to test both width/prevision
12016         INT_MAX overflow as well as total length INT_MAX overflow.  Check
12017         explicitly for proper errno values.
12018
12019 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
12020
12021         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
12022         CHAR_MAX.
12023         * string/test-strcmp.c [! WIDE]: Likewise.
12024         * time/tst-mktime2.c: Likewise for INT_MAX.
12025         * string/test-string.h: #include <sys/param.h> for MIN.
12026
12027         * csu/init-first.c (__libc_init_first): Call __ctype_init.
12028         * sysdeps/i386/init-first.c (init): Likewise.
12029         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
12030         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
12031         * sysdeps/sh/init-first.c (init): Likewise.
12032
12033 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
12034
12035         * po/ru.po: Update from translation team.
12036         * po/vi.po: Likewise.
12037
12038 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
12039
12040         * resolv/nss_dns/dns-host.c: Merge copyright years.
12041
12042 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12043
12044         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
12045         Optimize memcpy with prefetch if
12046         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
12047         src, dst pointers have unequal 16 byte alignments.
12048
12049 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12050
12051         [BZ #13928]
12052         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
12053         from a CNAME entry and return the minimum ttl for the query.
12054         (gaih_getanswer_slice): Likewise.
12055
12056 2012-03-30  Jeff Law  <law@redhat.com>
12057
12058         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
12059         due to long keys.
12060         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
12061         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
12062
12063         * resolv/nss_dns/dns-host.c: Update copyright year.
12064
12065 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
12066
12067         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
12068         requests to save a system call.  Fix check that all bytes are sent.
12069
12070         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
12071         comments for sendmmsg.
12072
12073 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12074
12075         [BZ #13691]
12076         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
12077         with only 1 character between 0x0041 and 0x01b0.
12078         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
12079         * wcsmbs/tst-mbsnrtowcs.c: New file.
12080
12081 2012-03-29  David S. Miller  <davem@davemloft.net>
12082
12083         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
12084         small copies by hand.
12085
12086 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12087
12088         [BZ #13761]
12089         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
12090         _nss_compat_initgroups_dyn): Fall back to malloc/free
12091         for large group memberships.
12092
12093 2012-03-28  David S. Miller  <davem@davemloft.net>
12094
12095         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
12096         that branches into memcpy.
12097         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
12098         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
12099         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12100         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
12101         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
12102         bits.
12103         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
12104         implementation too.
12105         * sysdeps/sparc/mempcpy.S: New file.
12106
12107         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
12108         the IFUNC routine in the libc case.
12109         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12110
12111         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
12112         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
12113         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
12114         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
12115         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
12116         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
12117         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
12118         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
12119
12120         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
12121         loop to 256 bytes instead of 64 bytes and fix test signedness.
12122
12123         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
12124         * sysdeps/sparc/sparc32/Makefile: rather than here...
12125         * sysdeps/sparc/sparc64/Makefile: and here.
12126
12127 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
12128
12129         * malloc/mallocbug.c: Avoid warnings about unused variables.
12130
12131 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
12132
12133         [BZ #13760]
12134         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
12135         in the right place. Discard and retry query if response is
12136         larger than input buffer size.
12137
12138 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
12139
12140         [BZ #369]
12141         [BZ #2678]
12142         [BZ #3866]
12143         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
12144         x for large integer exponent.
12145         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12146         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
12147         sign of result as needed afterwards.
12148         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12149         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
12150         result for underflowing pow the same as for overflow.
12151         (__kernel_standard_l): Handle powl overflow and underflow here
12152         rather than calling __kernel_standard.
12153         * math/libm-test.inc (pow_test): Add more tests.
12154
12155         [BZ #3868]
12156         [BZ #13879]
12157         [BZ #13910]
12158         [BZ #13911]
12159         [BZ #13912]
12160         [BZ #13913]
12161         [BZ #13915]
12162         [BZ #13916]
12163         [BZ #13917]
12164         [BZ #13918]
12165         [BZ #13919]
12166         [BZ #13920]
12167         [BZ #13921]
12168         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
12169         * sysdeps/ieee754/k_standard.c: Include <float.h>.
12170         (__kernel_standard_l): New function.
12171         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
12172         __kernel_standard.
12173         * math/w_acosl.c (__acosl): Likewise.
12174         * math/w_asinl.c (__asinl): Likewise.
12175         * math/w_atan2l.c (__atan2l): Likewise.
12176         * math/w_atanhl.c (__atanhl): Likewise.
12177         * math/w_coshl.c (__coshl): Likewise.
12178         * math/w_exp10l.c (__exp10l): Likewise.
12179         * math/w_exp2l.c (__exp2l): Likewise.
12180         * math/w_fmodl.c (__fmodl): Likewise.
12181         * math/w_hypotl.c (__hypotl): Likewise.
12182         * math/w_j0l.c (__j0l, __y0l): Likewise.
12183         * math/w_j1l.c (__j1l, __y1l): Likewise.
12184         * math/w_jnl.c (__jnl, __ynl): Likewise.
12185         * math/w_lgammal.c (__lgammal): Likewise.
12186         * math/w_log10l.c (__log10l): Likewise.
12187         * math/w_log2l.c (__log2l): Likewise.
12188         * math/w_logl.c (__logl): Likewise.
12189         * math/w_powl.c (__powl): Likewise.
12190         * math/w_remainderl.c (__remainderl): Likewise.
12191         * math/w_scalbl.c (sysv_scalbl): Likewise.
12192         * math/w_sinhl.c (__sinhl): Likewise.
12193         * math/w_sqrtl.c (__sqrtl): Likewise.
12194         * math/w_tgammal.c (__tgammal): Likewise.
12195         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
12196         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
12197         * math/libm-test.inc (acos_test): Add more tests.
12198         (acosh_test): Likewise.
12199         (asin_test): Likewise.
12200         (atanh_test): Likewise.
12201         (exp_test): Likewise.
12202         (exp10_test): Likewise.
12203         (exp2_test): Likewise.
12204         (expm1_test): Likewise.
12205         (lgamma_test): Likewise.
12206         (log_test): Likewise.
12207         (log10_test): Likewise.
12208         (log1p_test): Likewise.
12209         (log2_test): Likewise.
12210         (pow_test): Do not allow some spurious overflow exceptions.
12211         (sqrt_test): Add more tests.
12212         (tgamma_test): Likewise.
12213         (y0_test): Likewise.
12214         (y1_test): Likewise.
12215         (yn_test): Likewise.
12216
12217 2012-03-27  Anton Blanchard  <anton@samba.org>
12218
12219         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
12220         MAP_HUGETLB.
12221         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12222         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12223         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12224
12225 2012-03-27  David S. Miller  <davem@davemloft.net>
12226
12227         * conform/Makefile: Run run-conformtest.sh using $(BASH).
12228
12229         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
12230         have-as-vis3 check.
12231
12232 2012-03-27  Andreas Jaeger  <aj@suse.de>
12233
12234         * sysdeps/x86_64/elf/configure.in: Moved to ...
12235         * sysdeps/x86_64/configure.in: ... here.
12236         * sysdeps/x86_64/elf/start.S: Moved to ...
12237         * sysdeps/x86_64/start.S: ... here.
12238         * sysdeps/x86_64/elf/configure: Delete.
12239
12240         * sysdeps/x86_64/configure.in: Merge contents from
12241         sysdeps/i386/configure.in (without i686 check).
12242
12243         * sysdeps/i386/elf/Versions: Merge into ...
12244         * sysdeps/i386/Versions: ... this.
12245         * sysdeps/i386/elf/Versions: Delete file.
12246         * sysdeps/i386/elf/start.S: Moved to ...
12247         * sysdeps/i386/start.S: ...here.
12248         * sysdeps/i386/elf/configure.in: Merge into...
12249         * sysdeps/i386/configure.in: ...here.
12250         * sysdeps/i386/elf/configure.in: Delete file.
12251         * sysdeps/i386/elf/configure: Delete file.
12252
12253         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
12254         * debug/backtracesyms.c: ... here.
12255         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
12256         * debug/backtracesymsfd.c: ... here.
12257         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
12258         * sysdeps/generic/ifunc-sel.h: ... here.
12259
12260         * sysdeps/unix/i386/start.c: Delete file.
12261         * sysdeps/unix/sparc/start.c: Delete file.
12262         * sysdeps/unix/start.c: Delete file.
12263
12264         * sysdeps/sh/elf/configure.in: Moved to ...
12265         * sysdeps/sh/configure.in: ... here.
12266         * sysdeps/sh/elf/start.S: Moved to ...
12267         * sysdeps/sh/start.S: ... here.
12268         * sysdeps/sh/elf/configure: Delete file.
12269
12270         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
12271         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
12272         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
12273         * sysdeps/powerpc/powerpc64/entry.h: ... here.
12274         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
12275         * sysdeps/powerpc/powerpc64/start.S: here.
12276         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
12277         * sysdeps/powerpc/powerpc64/Makefile: ... this.
12278         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
12279         * sysdeps/powerpc/powerpc64/configure.in: ... this.
12280         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
12281
12282         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
12283         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
12284         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
12285         * sysdeps/powerpc/powerpc32/start.S: ... here.
12286         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
12287         * sysdeps/powerpc/powerpc32/configure.in: ... this.
12288         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
12289
12290         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
12291         * sysdeps/powerpc/ifunc-sel.h: ... here.
12292         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
12293         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
12294
12295         * sysdeps/sparc/elf/configure.in: Moved to ...
12296         * sysdeps/sparc/configure.in: ... here.
12297         * sysdeps/sparc/elf/configure: Delete file.
12298         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
12299         * sysdeps/sparc/sparc32/start.S: ... here.
12300         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
12301         * sysdeps/sparc/sparc64/start.S: ... here.
12302         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
12303         * sysdeps/sparc/sparc32/Makefile: ... this.
12304         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
12305         * sysdeps/sparc/sparc64/Makefile: ... this.
12306
12307         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
12308         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
12309         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
12310         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
12311         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
12312         * sysdeps/s390/s390-32/setjmp.S: ... here.
12313         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
12314         * sysdeps/s390/s390-32/configure.in: ... here.
12315         * sysdeps/s390/s390-32/elf/configure: Delete file.
12316         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
12317         * sysdeps/s390/s390-32/start.S: ... here.
12318
12319         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
12320         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
12321         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
12322         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
12323         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
12324         * sysdeps/s390/s390-64/setjmp.S: ... here.
12325         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
12326         * sysdeps/s390/s390-64/configure.in: ... here
12327         * sysdeps/s390/s390-64/elf/configure: Delete file.
12328         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
12329         * sysdeps/s390/s390-64/start.S: ... here.
12330         * sysdeps/s390/s390-64/elf/configure: Delete.
12331
12332         * configure.in: Remove support for elf directories in sysdeps.
12333
12334         * configure: Regenerated.
12335         * sysdeps/i386/configure: Regenerated.
12336         * sysdeps/powerpc/powerpc32/configure: Regenerated.
12337         * sysdeps/powerpc/powerpc64/configure: Regenerated.
12338         * sysdeps/s390/s390-32/configure: Regenerated.
12339         * sysdeps/s390/s390-64/configure: Regenerated.
12340         * sysdeps/sh/configure: Regenerated.
12341         * sysdeps/sparc/configure: Regenerated.
12342         * sysdeps/x86_64/configure: Regenerated.
12343
12344 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
12345
12346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12347
12348         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
12349         denormal result into account.
12350
12351 2012-03-25  Roland McGrath  <roland@hack.frob.com>
12352
12353         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
12354         Reported by Allan McRae <allan@archlinux.org>.
12355
12356 2012-03-23  Jeff Law  <law@redhat.com>
12357
12358         * nss/getnssent.c (__nss_getent): Fix typo.
12359
12360 2012-03-23  David S. Miller  <davem@davemloft.net>
12361
12362         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12363
12364 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
12365
12366         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
12367         to pad to uint64_t for each field.
12368         (dl_tls_index): Replace unsigned long with uint64_t.
12369
12370 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
12371         Paul Pluzhnikov  <ppluzhnikov@google.com>
12372
12373         [BZ #6528]
12374         * grp/Makefile (otherlibs): Don't set it.
12375         * inet/Makefile (otherlibs): Likewise.
12376         * login/Makefile (otherlibs): Likewise.
12377         * nscd/Makefile (otherlibs): Likewise.
12378         * posix/Makefile (otherlibs): Likewise.
12379         * pwd/Makefile (otherlibs): Likewise.
12380         * rt/Makefile (otherlibs): Likewise.
12381         * sunrpc/Makefile (otherlibs): Likewise.
12382         * nss/Makefile (otherlibs): Likewise.
12383         Add libnss_files to routines and static-only-routines.
12384         ($(objpfx)getent): Remove rule.
12385         * resolv/Makefile: Add libnss_dns and libresolv to routines and
12386         static-only-routines.
12387
12388 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
12389
12390         [BZ #13892]
12391         * math/s_cexp.c: Include <float.h>.
12392         (__cexp): Handle exp result overflowing not necessarily
12393         overflowing both real and imaginary parts of result.
12394         * math/s_cexpf.c: Likewise.
12395         * math/s_cexpl.c: Likewise.
12396         * math/libm-test.inc (cexp_test): Add more tests.
12397         * sysdeps/i386/fpu/libm-test-ulps: Update.
12398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12399
12400 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12401
12402         * include/link.h (ELFW): New macro.
12403         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
12404         Replace ELF64_R_TYPE with ELFW(R_TYPE).
12405
12406 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12407
12408         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
12409         with uint64_t.
12410
12411 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12412
12413         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
12414         declaration.
12415         (struct La_x32_retval): Likewise.
12416
12417 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12418
12419         * sysdeps/x86_64/preconfigure.in: New file.
12420         * sysdeps/x86_64/preconfigure: New generated file.
12421
12422 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
12423
12424         [BZ #13824]
12425         * math/e_exp2l.c: Include <float.h>.
12426         (__ieee754_exp2l): Handle overflow and underflow cases
12427         separately.  Only pass fractional part of argument to
12428         __ieee754_expl.
12429         * math/libm-test.inc (exp2_test): Add more tests.
12430
12431         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
12432         negating x to take absolute value.
12433         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
12434         Likewise.
12435         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
12436         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
12437         Likewise.
12438         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
12439         computing low part if x was negated.
12440         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
12441
12442 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
12443
12444         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
12445         la_x32_gnu_pltexit.
12446         (pltexit): Cast int_retval to ptrdiff_t.
12447         * elf/tst-auditmod3b.c: Likewise.
12448         * elf/tst-auditmod4b.c: Likewise.
12449         * elf/tst-auditmod5b.c: Likewise.
12450         * elf/tst-auditmod6b.c: Likewise.
12451         * elf/tst-auditmod6c.c: Likewise.
12452         * elf/tst-auditmod7b.c: Likewise.
12453
12454         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
12455         and x32_gnu_pltexit.
12456
12457         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
12458         __ELF_NATIVE_CLASS.
12459         (La_x32_regs): New macro.
12460         (La_x32_retval): Likewise.
12461         (la_x32_gnu_pltenter): New function prototype.
12462         (la_x32_gnu_pltexit): Likewise.
12463
12464 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
12465
12466         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
12467         exponent.
12468
12469         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12470
12471         * configure.in (libc_cv_cc_nofma): Check for option to disable
12472         generation of FMA instructions.
12473         * configure: Regenerate.
12474         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
12475         * sysdeps/ieee754/dbl-64/Makefile: New file.
12476         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12477         Remove brandred-fma4.
12478         (CFLAGS-brandred-fma4.c): Remove.
12479         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
12480         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
12481         define.
12482         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
12483         define.
12484
12485 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
12486
12487         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
12488         LLONG_MAX != LONG_MAX.
12489         (_itoa_word): Use _ITOA_WORD_TYPE on value.
12490         (_fitoa_word): Likewise.
12491         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
12492         LLONG_MAX != LONG_MAX.
12493         * stdio-common/_itowa.h: Include <_itoa.h>.
12494         (_itowa_word): Use _ITOA_WORD_TYPE on value.
12495         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
12496         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
12497         only if not defined.
12498         (_ITOA_WORD_TYPE): Likewise.
12499         (_itoa_word): Use _ITOA_WORD_TYPE on value.
12500         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
12501
12502 2012-03-21  David S. Miller  <davem@davemloft.net>
12503
12504         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12505
12506 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
12507
12508         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
12509         of x86_64 when setting libc_cv_slibdir, libdir and
12510         libc_cv_localedir.
12511         * sysdeps/unix/sysv/linux/configure: Regenerated.
12512
12513 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
12514
12515         * manual/lang.texi (Old Varargs): Remove section.
12516         (How Variadic): Update menu.
12517         (va_start): Do not mention varargs.h.
12518
12519 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
12520             Joseph Myers  <joseph@codesourcery.com>
12521
12522         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
12523         link test.
12524         * configure: Regenerated.
12525
12526 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
12527
12528         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
12529         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
12530         conformtest.pl
12531
12532 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
12533
12534         * NOTES: Remove.
12535         * Makefile (files-for-dist): Remove NOTES.
12536         (NOTES): Remove rule.
12537         * README: Don't refer to NOTES.
12538         * manual/creature.texi: Don't include macros.texi.
12539         * manual/intro.texi (creature.texi): Remove comment referring to
12540         NOTES.
12541
12542         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
12543         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
12544         * configure: Regenerated.
12545         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
12546         LIBC_TRY_CC_OPTION.
12547         (libc_cv_as_i686): Likewise.
12548         (libc_cv_cc_avx): Likewise.
12549         (libc_cv_cc_sse2avx): Likewise.
12550         (libc_cv_cc_fma4): Likewise.
12551         (libc_cv_cc_novzeroupper): Likewise.
12552         * sysdeps/i386/configure: Regenerated.
12553
12554         [BZ #13883]
12555         * sysdeps/i386/fpu/s_cexp.S: Remove.
12556         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12557         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12558         * math/libm-test.inc (cexp_test): Add more tests.
12559         * sysdeps/i386/fpu/libm-test-ulps: Update.
12560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12561
12562 2012-03-21  Allan McRae  <allan@archlinux.org>
12563
12564         * timezone/Makefile: Do not install iso3166.tab and zone.tab
12565
12566 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
12567
12568         [BZ #13871]
12569         * math/w_exp2.c: Do not include <float.h>.
12570         (o_threshold, u_threshold): Remove.
12571         (__exp2): Calculate result before checking finiteness and calling
12572         __kernel_standard.
12573         * math/w_exp2f.c: Likewise.
12574         * math/w_exp2l.c: Likewise.
12575         * math/libm-test.inc (exp2_test): Require overflow exception for
12576         1e6 input.
12577
12578         [BZ #3866]
12579         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
12580         range of signed 64-bit integers before using fistpll.  Remove
12581         checks for whether integers fit in mantissa bits.
12582         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
12583         the range of signed 32-bit integers before using fistpl.  Remove
12584         checks for whether integers fit in mantissa bits.
12585         * sysdeps/i386/fpu/e_powl.S (p64): New object.
12586         (__ieee754_powl): Test for y outside the range of signed 64-bit
12587         integers before using fistpll.  Reduce 64-bit values to 63-bit
12588         ones as needed.
12589         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
12590         divide-by-zero is raised for zero to large negative powers.
12591         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
12592         (__ieee754_powl): Test for y outside the range of signed 64-bit
12593         integers before using fistpll.  Reduce 64-bit values to 63-bit
12594         ones as needed.
12595         * math/libm-test.inc (pow_test): Add more tests.
12596
12597 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
12598
12599         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
12600         <stdio-common/_itoa.h>.
12601         * debug/segfault.c: Likewise.
12602         * elf/dl-cache.c: Likewise.
12603         * elf/dl-minimal.c: Likewise.
12604         * elf/dl-misc.c: Likewise.
12605         * elf/dl-sysdep.c: Likewise.
12606         * elf/dl-version.c: Likewise.
12607         * elf/rtld.c: Likewise.
12608         * hurd/hurdsock.c: Likewise.
12609         * hurd/lookup-retry.c: Likewise.
12610         * malloc/malloc.c: Likewise.
12611         * malloc/mtrace.c: Likewise.
12612         * nscd/nscd_getgr_r.c: Likewise.
12613         * nscd/nscd_getpw_r.c: Likewise.
12614         * nscd/nscd_getserv_r.c: Likewise.
12615         * posix/getopt_init.c: Likewise.
12616         * posix/wordexp.c: Likewise.
12617         * stdio-common/_itoa.c: Likewise.
12618         * stdio-common/printf_fphex.c: Likewise.
12619         * stdio-common/vfprintf.c: Likewise.
12620         * string/_strerror.c: Likewise.
12621         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
12622         * sysdeps/i386/i686/hp-timing.h: Likewise.
12623         * sysdeps/mach/_strerror.c: Likewise.
12624         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
12625         * sysdeps/mach/hurd/sethostid.c: Likewise.
12626         * sysdeps/mach/hurd/xmknodat.c: Likewise.
12627         * sysdeps/mach/xpg-strerror.c: Likewise.
12628         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
12629         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
12630         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
12631         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
12632         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
12633         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
12634         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
12635         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
12636         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
12637         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
12638         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
12639         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
12640         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
12641         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
12642         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
12643         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
12644         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
12645         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
12646         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
12647         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
12648         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
12649
12650         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
12651
12652         * stdio-common/_itoa.h: Moved to ...
12653         * sysdeps/generic/_itoa.h: Here.
12654
12655         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
12656
12657         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
12658         instead of "_itoa.h" and "_itowa.h".
12659         * stdio-common/vfprintf.: Likewise.
12660
12661 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
12662
12663         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
12664         <bits/wordsize.h>.
12665         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
12666         (__signbit): Likwise.
12667         (llrintf): Likwise.
12668         (llrint): Likwise.
12669
12670 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
12671
12672         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
12673         __WORDSIZE != 64.
12674
12675 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
12676
12677         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
12678         OVERFLOW_EXCEPTION_OK.
12679         * math/libm-test.inc ("Philosophy"): Update comment about
12680         exception testing.
12681         (OVERFLOW_EXCEPTION): Define.
12682         (OVERFLOW_EXCEPTION_OK): Likewise.
12683         (INVALID_EXCEPTION_OK): Renumber.
12684         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
12685         (IGNORE_ZERO_INF_SIGN): Likewise.
12686         (test_exceptions): Handle FE_OVERFLOW.
12687         (exp10_test): Expect overflow exceptions.
12688         (exp2_test): Likewise.
12689         (expm1_test): Likewise.
12690         (nextafter_test): Likewise.
12691         (pow_test): Likewise.
12692         (scalbn_test): Likewise.
12693         (scalbln_test): Likewise.
12694
12695 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12696
12697         * sysdeps/x86_64/bits/atomic.h
12698         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
12699         64bit integer.
12700         (atomic_exchange_acq): Likewise.
12701         (__arch_exchange_and_add_body): Likewise.
12702         (__arch_add_body): Likewise.
12703         (atomic_add_negative): Likewise.
12704         (atomic_add_zero): Likewise.
12705
12706 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12707
12708         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
12709         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
12710
12711 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12712
12713         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
12714         Check __x86_64__ instead of __WORDSIZE.
12715
12716 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12717
12718         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
12719
12720 2012-03-19  David S. Miller  <davem@davemloft.net>
12721
12722         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12723
12724         * sysdeps/sparc/fpu/fenv_private.h: New file.
12725         * sysdeps/sparc/fpu/math_private.h: Use it.
12726         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
12727         Remove.
12728         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
12729         (libc_feholdexcept_setroundl): Remove.
12730         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
12731         Remove.
12732         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
12733         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
12734
12735 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12736
12737         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
12738         int64_t instead of long int.
12739         (INSERT_WORDS64): Likwise.
12740
12741 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12742
12743         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
12744         _Unwind_GetCFA return to _Unwind_Ptr first.
12745
12746 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
12747
12748         [BZ #13629]
12749         * math/s_clog.c: Include <float.h>.
12750         (__clog): Scale large or subnormal inputs.
12751         * math/s_clogf.c: Likewise.
12752         * math/s_clogl.c: Likewise.
12753         * math/s_clog10.c: Include <float.h>.
12754         (M_LOG10_2): Define.
12755         (__clog10): Scale large or subnormal inputs.
12756         * math/s_clog10f.c: Likewise.
12757         * math/s_clog10l.c: Likewise.
12758         * math/libm-test.inc (clog_test): Add more tests.
12759         (clog10_test): Likewise.
12760         * sysdeps/i386/fpu/libm-test-ulps: Update.
12761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12762
12763         [BZ #11451]
12764         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
12765         x and y.
12766         * math/libm-test.inc (atan2_test): Add another test.
12767
12768         * Makerules (common-objdir-compile): Remove.
12769         * sysdeps/unix/Makefile (config-generated): Do not add
12770         $(unix-generated) to variable.
12771         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
12772         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
12773         Remove rule.
12774         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
12775         Likewise.
12776         [generic bits/local_lim.h] (before-compile): Do not append to
12777         variable.
12778         [generic bits/local_lim.h] (common-generated): Likewise.
12779         [generic sys/param.h] (before-compile): Do not append to variable.
12780         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
12781         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
12782         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
12783         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
12784         include.
12785         [generic sys/param.h] (sys/param.h-includes): Remove variable.
12786         [generic sys/param.h] (sys/param.h-includes): Remove rule.
12787         [generic sys/param.h] ($(addprefix
12788         $(common-objpfx),$(sys/param.h-includes))): Likewise.
12789         [generic sys/param.h] (common-generated): Do not append to
12790         variable.
12791         [generic sys/param.h] (sysdep_headers): Likewise.
12792         [generic bits/errno.h] (before-compile): Do not append to
12793         variable.
12794         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
12795         rule.
12796         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
12797         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
12798         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
12799         [generic bits/errno.h] (common-generated): Do not append to
12800         variable.
12801         [generic bits/ioctls.h] (before-compile): Do not append to
12802         variable.
12803         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
12804         rule.
12805         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12806         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12807         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12808         rule.
12809         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12810         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12811         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12812         [generic bits/ioctls.h] (common-generated): Do not append to
12813         variable.
12814         [generic sys/syscall.h] (syscall.h): Remove variable.
12815         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12816         rule.
12817         [generic sys/syscall.h] (before-compile): Do not append to
12818         variable.
12819         [generic sys/syscall.h] (common-generated): Likewise.
12820         * sysdeps/unix/errnos-tmpl.c: Remove file.
12821         * sysdeps/unix/errnos.awk: Likewise.
12822         * sysdeps/unix/ioctls-tmpl.c: Likewise.
12823         * sysdeps/unix/ioctls.awk: Likewise.
12824         * sysdeps/unix/mk-local_lim.c: Likewise.
12825         * sysdeps/unix/snarf-ioctls: Likewise.
12826
12827 2012-03-19  Richard Henderson  <rth@twiddle.net>
12828
12829         * sysdeps/i386/fpu/fenv_private.h: New file.
12830         * sysdeps/i386/fpu/math_private.h: Use it.
12831         (math_opt_barrier, math_force_eval): Remove.
12832         (libc_feholdexcept_setround_53bit): Remove.
12833         (libc_feupdateenv_53bit): Remove.
12834         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12835         (math_opt_barrier, math_force_eval): Remove.
12836         (libc_feholdexcept): Remove.
12837         (libc_feholdexcept_setround): Remove.
12838         (libc_fetestexcept, libc_fesetenv): Remove.
12839         (libc_feupdateenv_test): Remove.
12840         (libc_feupdateenv, libc_feholdsetround): Remove.
12841         (libc_feresetround): Remove.
12842
12843         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12844         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12845
12846         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12847         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12848         (libc_feupdateenv_testl): New.
12849         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12850         (libc_feupdateenv_testf): New.
12851         (libc_feupdateenv): Use libc_feupdateenv_test.
12852         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12853         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12854
12855         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12856         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12857         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12858         (libc_feresetround_noex): New.
12859         (libc_feresetround_noexf): New.
12860         (libc_feresetround_noexl): New.
12861         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12862         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12863         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12864         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12865         SET_RESTORE_ROUND.
12866         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12867         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12868         (__cos): Likewise.
12869         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12870         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12871         SET_RESTORE_ROUND_NOEX.
12872         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12873         SET_RESTORE_ROUND_NOEXF.
12874         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12875         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12876         (libc_feholdsetroundf): New.
12877         (libc_feresetround, libc_feresetroundf): New.
12878
12879         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12880         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12881         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12882
12883         * sysdeps/generic/math_private.h: Include <fenv.h>.
12884         (default_libc_feholdexcept): New.
12885         (default_libc_feholdexcept_setround): New.
12886         (default_libc_fesetenv, default_libc_feupdateenv): New.
12887         (libc_feholdexcept): Only define if undefined.
12888         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12889         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12890         (libc_feholdexcept_setroundl): Likewise.
12891         (libc_feholdexcept_setround_53bit): Likewise.
12892         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12893         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12894         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12895         (libc_feupdateenv_53bit): Likewise.
12896         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12897         (libc_feholdexcept): Convert from macro to inline function.
12898         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12899         (libc_fesetenv, libc_feupdateenv): Likewise.
12900
12901         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12902         not previously defined.
12903         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12904         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12905         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12906         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12907         * sysdeps/ieee754/flt-32/math_private.h: New file.
12908         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12909         math_private.h below SET_FLOAT_WORD.
12910         (__isnan, __isinf_ns, __finite): Remove.
12911         (__isnanf, __isinf_nsf, __finitef): Remove.
12912
12913 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12914
12915         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12916
12917 2012-03-17  David S. Miller  <davem@davemloft.net>
12918
12919         [BZ #6471]
12920         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12921         for 2.16.
12922
12923 2012-03-16  David S. Miller  <davem@davemloft.net>
12924
12925         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12926         warnings.
12927
12928         [BZ #6471]
12929         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12930         properly.
12931         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12932         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12933         sysdep_routines when subdir is sysvipc.
12934         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12935         __getshmlba helper.
12936
12937         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12938
12939 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12940
12941         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12942         [__LP64__].
12943
12944 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12945
12946         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12947         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12948         (__lround): Renamed to ...
12949         (__llround): This.  Replace long int with long long int.
12950         Define lround functions as aliases of llround functions.
12951         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12952
12953 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12954
12955         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12956         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12957         adresses to uintptr_t.  Replace "long int" and "unsigned long
12958         int" with "greg_t" on va_arg.
12959
12960 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12961
12962         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12963         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12964
12965         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12966         Move e_machine check before EI_CLASS check.  Handle x32
12967         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12968         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12969         SKIP_EM_IA_64 and include
12970         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12971
12972         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12973         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12974         (add_system_dir): New macro.
12975
12976         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12977         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12978
12979 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12980
12981         [BZ #2551]
12982         [BZ #2552]
12983         [BZ #2553]
12984         [BZ #2554]
12985         [BZ #2562]
12986         [BZ #2563]
12987         [BZ #2565]
12988         [BZ #2566]
12989         [BZ #2576]
12990         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12991         (y0): Likewise.
12992         * math/w_j0f.c (j0f): Likewise.
12993         (y0f): Likewise.
12994         * math/w_j0l.c (__j0l): Likewise.
12995         (__y0l): Likewise.
12996         * math/w_j1.c (j1): Likewise.
12997         (y1): Likewise.
12998         * math/w_j1f.c (j1f): Likewise.
12999         (y1f): Likewise.
13000         * math/w_j1l.c (__j1l): Likewise.
13001         (__y1l): Likewise.
13002         * math/w_jn.c (jn): Likewise.
13003         (yn): Likewise.
13004         * math/w_jnf.c (jnf): Likewise.
13005         (ynf): Likewise.
13006         * math/w_jnl.c (__jnl): Likewise.
13007         (__ynl): Likewise.
13008         * math/libm-test.inc (j0_test): Add more tests.
13009         (j1_test): Likewise.
13010         (jn_test): Likewise.  Add trailing semicolon to existing test.
13011         (y0_test): Likewise.
13012         (y1_test): Likewise.
13013         * sysdeps/i386/fpu/libm-test-ulps: Update.
13014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13015
13016         [BZ #13851]
13017         [BZ #13854]
13018         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
13019         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
13020         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
13021         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
13022         (__tanl): Set errno for infinite argument.
13023         * sysdeps/i386/fpu/mptan.c: Remove.
13024         * sysdeps/i386/fpu/s_tan.S: Likewise.
13025         * sysdeps/i386/fpu/s_tanl.S: Likewise.
13026         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
13027         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
13028         * math/libm-test.inc (tan_test): Add more tests and enable more
13029         tests for double and long double.
13030         * sysdeps/i386/fpu/libm-test-ulps: Update.
13031         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13032
13033 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13034
13035         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
13036         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
13037
13038 2012-03-16  Roland McGrath  <roland@hack.frob.com>
13039
13040         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
13041         * configure.in: Use it for both main tree and add-ons.
13042         * configure: Regenerated.
13043
13044 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
13045
13046         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
13047
13048 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
13049
13050         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
13051         in comment.
13052
13053         [BZ #13851]
13054         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
13055         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
13056         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13057         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
13058         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
13059         infinite argument.
13060         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
13061         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
13062         != 0 for prec == 2.
13063         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
13064         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
13065         * sysdeps/i386/fpu/s_cosl.S: Likewise.
13066         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
13067         * sysdeps/i386/fpu/s_sinl.S: Likewise.
13068         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
13069         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
13070         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
13071         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
13072         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
13073         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
13074         * math/libm-test.inc (cos_test): Add more tests and enable more
13075         tests for long double.
13076         (sin_test): Likewise.
13077         (sincos_test): Likewise.
13078         * sysdeps/i386/fpu/libm-test-ulps: Update.
13079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13080
13081 2012-03-16  David S. Miller  <davem@davemloft.net>
13082
13083         * sysdeps/sparc/fpu/math_private.h: New file.
13084
13085 2012-03-15  David S. Miller  <davem@davemloft.net>
13086
13087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
13088         file.
13089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
13090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
13091         file.
13092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
13093         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
13094         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
13095         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
13096         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
13097         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
13098         sysdep routines.
13099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
13100
13101         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
13102         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
13103
13104         * sysdeps/sparc/sparc-ifunc.h: New file.
13105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
13106         sparc-ifunc.h
13107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
13109         Likewise.
13110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
13111         Likewise.
13112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
13113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
13114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
13116         Likewise.
13117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
13118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
13119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
13120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
13121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
13122         Likewise.
13123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
13124         Likewise.
13125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
13126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
13127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
13128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
13129         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13130         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13131         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
13132         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
13133         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13134         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13135         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
13136         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
13137         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
13138         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
13139         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
13140         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
13141         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
13142         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
13143         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
13144         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
13145         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
13146         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
13147         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
13148         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
13149
13150 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
13151
13152         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
13153         scaling.
13154         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13155
13156 2012-03-15  Andreas Jaeger  <aj@suse.de>
13157
13158         [BZ #13852]
13159         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
13160         ieee754/flt-32 implementation for sin, cos and sincos.
13161         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
13162         * sysdeps/i386/fpu/s_cosf.S: Likewise.
13163         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
13164         * sysdeps/i386/fpu/s_sinf.S: Likewise.
13165         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
13166         ieee754/flt-32 implementation for tan.
13167
13168         * math/libm-test.inc (cos_test): Enable some large input tests for
13169         float as well
13170         (sin_test): Likewise.
13171         (sincos_test): Likewise.
13172         (tan_test): Add tests for large input.
13173
13174         * sysdeps/i386/fpu/libm-test-ulps: Update.
13175
13176 2012-03-15  Andreas Jaeger  <aj@suse.de>
13177
13178         [BZ #13658]
13179         * math/libm-test.inc (cos_test): Add more test cases.
13180         (sin_test): Likewise.
13181         (sincos_test): Likewise.
13182
13183 2012-03-15  Andreas Jaeger  <aj@suse.de>
13184
13185         [BZ #13837]
13186         * math/libm-test.inc (cos_test): Add a test case for large input
13187         value.
13188         (sin_test): Likewise.
13189         (sincos_test): Likewise.
13190
13191 2012-03-15  Andreas Jaeger  <aj@suse.de>,
13192         Joseph Myers  <joseph@codesourcery.com>
13193
13194         [BZ #13658]
13195         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
13196         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
13197         * sysdeps/i386/fpu/branred.c: Likewise.
13198         * sysdeps/i386/fpu/dosincos.c: Likewise.
13199         * sysdeps/i386/fpu/mpa.c: Likewise.
13200         * sysdeps/i386/fpu/s_cos.S: Likewise.
13201         * sysdeps/i386/fpu/s_sin.S: Likewise.
13202         * sysdeps/i386/fpu/s_sincos.S: Likewise.
13203         * sysdeps/i386/fpu/sincos32.c: Likewise.
13204
13205         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
13206         Define.
13207         (libc_feupdateenv_53bit): Define.
13208         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
13209         Define.
13210         (libc_feupdateenv_53bit): Define.
13211
13212         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
13213         53 bit (without extend i386 double precision).
13214
13215         * math/libm-test.inc (sincos_test): Add tests for large input.
13216         (sin): Likewise.
13217         (cos): Likewise.
13218
13219         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
13220
13221 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
13222
13223         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13224
13225 2012-03-15  David S. Miller  <davem@davemloft.net>
13226
13227         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
13228         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
13229         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
13230         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
13231         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
13232         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
13233         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
13234         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
13235         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
13236         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
13237         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
13238         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
13239         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
13240         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
13241         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
13242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
13243         file.
13244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
13245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
13246         file.
13247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
13248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
13249         file.
13250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
13251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
13252         file.
13253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
13254         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
13255         fmin/fmax sysdep routines.
13256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
13257
13258 2012-03-14  David S. Miller  <davem@davemloft.net>
13259
13260         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
13261         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
13262         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
13263         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
13264         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
13265         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
13266         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
13267         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
13268         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
13269         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
13270         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
13271         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
13272         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
13273         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
13274         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
13275         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
13276         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
13277         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
13278         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
13279         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
13280         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
13281         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
13282         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
13283         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
13284         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
13285         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
13286         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
13287         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
13288         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
13289         routines.
13290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
13291         file.
13292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
13293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
13294         file.
13295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
13296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
13297         file.
13298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
13299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
13300         file.
13301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
13302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
13303         file.
13304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
13305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
13306         file.
13307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
13308         file.
13309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
13310         file.
13311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
13312         file.
13313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
13314         New file.
13315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
13316         file.
13317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
13318         file.
13319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
13320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
13321         file.
13322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
13323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
13324         file.
13325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
13326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
13327         file.
13328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
13329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
13330         VIS3 routines.
13331
13332         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
13333         New file.
13334
13335         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13336
13337         * sysdeps/sparc/configure.in: New file.
13338         * sysdeps/sparc/configure: Generate.
13339         * configure.in (libc_cv_sparc_as_vis3): Substitute.
13340         * configure: Regenerate.
13341         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
13342         * config.make.in (have-as-vis3): New.
13343         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
13344         available use -Av9d instead of -Av9a.
13345         * sysdeps/sparc/sparc64/Makefile: Likewise.
13346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
13347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
13348         New file.
13349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
13350         file.
13351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
13352         New file.
13353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
13354         file.
13355         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
13356         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
13357         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
13358         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
13359         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
13360
13361         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
13362         fzeros/fnegs to load 0x80000000 into a float register instead of
13363         using the stack.
13364         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
13365
13366 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
13367
13368         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13369         bits/syscall.h.
13370         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
13371         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
13372         ($(inst_includedir)/bits/syscall.h): Remove rule.
13373         ($(objpfx)bits/syscall.d): Include instead of
13374         $(objpfx)syscall-list.d.
13375         (generated): Change syscall-list.h and syscall-list.d to
13376         bits/syscall.h and bits/syscall.d.
13377
13378 2012-03-14  Roland McGrath  <roland@hack.frob.com>
13379
13380         [BZ #13846]
13381         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
13382
13383 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
13384
13385         [BZ #13841]
13386         * math/s_csqrt.c: Include <float.h>.
13387         (__csqrt): Scale large or subnormal inputs.
13388         * math/s_csqrtf.c: Likewise.
13389         * math/s_csqrtl.c: Likewise.
13390         * math/libm-test.inc (csqrt_test): Add more tests.
13391         * sysdeps/i386/fpu/libm-test-ulps: Update.
13392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13393
13394         [BZ #13840]
13395         * math/libm-test.inc (hypot_test): Add more tests.
13396
13397 2012-03-13  David S. Miller  <davem@davemloft.net>
13398
13399         [BZ #13840]
13400         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
13401         double-precision for the calculation instead of scaling.
13402
13403 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
13404
13405         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
13406         manipulate bits before adding and subtracting TWO52[sx].
13407         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
13408         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
13409         Likewise.
13410         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
13411
13412 2012-03-13  David S. Miller  <davem@davemloft.net>
13413
13414         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
13415         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
13416         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
13417         rtld-global-offsets.h
13418         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13419
13420         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
13421         large parameters.
13422
13423         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
13424
13425         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
13426         'err' in the ifdef scope in which it is actually used.
13427
13428         * nss/nss_db/db-init.c: Include string.h
13429
13430 2012-03-12  David S. Miller  <davem@davemloft.net>
13431
13432         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
13433         masking out of the most significant byte of random value used.
13434         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13435         Fix coding style in previous change.
13436
13437         * sysdeps/unix/sysv/linux/kernel-features.h
13438         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
13439         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
13440         expression.
13441         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
13442         later.
13443
13444 2012-03-11  David S. Miller  <davem@davemloft.net>
13445
13446         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
13447         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
13448         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
13449         for 'resultvar' otherwise things get truncated on 64-bit.
13450
13451         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13452         Fix masking out of the most significant byte of random value used.
13453
13454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13455
13456 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
13457
13458         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13459
13460 2012-03-09  David S. Miller  <davem@davemloft.net>
13461
13462         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
13463         variables with appropriate CPP guards.
13464         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
13465         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
13466         on resulting framesize and the management of the outregs buffer for pltexit.
13467         Preserve floating point return values across _dl_call_pltexit call.
13468         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
13469         framesize and the management of the outregs buffer for pltexit.
13470         Preserve floating point return values across _dl_call_pltexit
13471         call.
13472         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
13473         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
13474         (print_exit): Fix format string for return register value.
13475
13476 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
13477
13478         * sunrpc/Makefile (others): Add rpcgen.
13479         ($(objpfx)rpcgen): Remove special build rule and dependency on
13480         libc.
13481         * sunrpc/rpcgen.c: New file.
13482
13483 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
13484
13485         [BZ #13673]
13486         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
13487         * stdio-common/bug-vfprintf-nargs.c: Likewise.
13488         * sysdeps/i386/crti.S: Likewise.
13489         * sysdeps/i386/crtn.S: Likewise.
13490         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
13491         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
13492         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
13493         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
13494         * sysdeps/sh/crti.S: Likewise.
13495         * sysdeps/sh/crtn.S: Likewise.
13496         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
13497
13498         [BZ #13673]
13499         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
13500         with URL.
13501         * locale/programs/locfile-kw.gperf: Likewise.
13502         * locale/programs/charmap-kw.h: Regenerated.
13503         * locale/programs/locfile-kw.h: Likewise.
13504
13505         [BZ #13673]
13506         * intl/plural.y: Replace FSF snail mail address with URL.
13507         * intl/plural.c: Regenerated.
13508
13509 2012-03-09  Richard Henderson  <rth@twiddle.net>
13510
13511         * include/math_private.h: Remove file.
13512         * math/math_private.h: Move file ...
13513         * sysdeps/generic/math_private.h: ... here.
13514
13515         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
13516         * sysdeps/powerpc/fpu/math_private.h: Likewise.
13517         * sysdeps/x86_64/fpu/math_private.h: Likewise.
13518
13519         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
13520         and <math_private.h>.
13521         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13522         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13523         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13524         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13525         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13526         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
13527         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13528         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13529         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13530         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13531         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13532         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13533         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13534         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13535         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13536         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13537         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13538         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13539         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13540         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13541         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13542         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13543         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13544         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13545         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13546         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13547         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13548         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13549         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13550         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13551         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13552         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13553         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
13554         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13555         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13556         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13557         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13558         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13559         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13560         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13561         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
13562         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13563         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13564         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
13565         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
13566         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13567         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13568         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13569         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13570         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13571         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13572         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13573         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
13574         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13575         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
13576         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13577         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13578         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
13579         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
13580         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
13581         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13582         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13583         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13584         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13585         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
13586         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13587         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13588         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13589         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
13590         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
13591         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
13592         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13593         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
13594         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13595         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
13596         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
13597         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
13598         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13599         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
13600         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13601         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
13602         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13603         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
13604         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13605         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13606         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
13607         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
13608         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
13609         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
13610         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13611         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13612         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
13613         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13614         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13615         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
13616         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
13617         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13618         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13619         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13620         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13621         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
13622         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
13623         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
13624         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
13625         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13626         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
13627         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13628         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
13629         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13630         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13631         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13632         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13633         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13634         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13635         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
13636         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13637         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13638         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13639         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13640         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13641         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13642         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13643         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13644         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
13645         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13646         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13647         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
13648         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
13649         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13650         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13651         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13652         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13653         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13654         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13655         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13656         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13657         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13658         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13659         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
13660         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13661         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13662         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13663         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13664         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
13665         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
13666         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13667         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13668         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13669         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
13670         * sysdeps/ieee754/k_standard.c: Likewise.
13671         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
13672         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
13673         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13674         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
13675         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13676         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
13677         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
13678         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13679         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
13680         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13681         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13682         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
13683         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
13684         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
13685         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
13686         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13687         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
13688         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
13689         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13690         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
13691         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13692         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13693         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13694         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13695         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13696         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
13697         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13698         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13699         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13700         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13701         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13702         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13703         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13704         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13705         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
13706         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13707         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13708         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
13709         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
13710         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13711         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13712         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13713         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13714         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13715         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13716         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13717         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13718         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13719         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13720         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13721         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13722         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
13723         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13724         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
13725         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13726         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13727         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
13728         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
13729         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13730         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13731         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13732         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
13733         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13734         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13735         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13736         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13737         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13738         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13739         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13740         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13741         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13742         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13743         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13744         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13745         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13746         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13747         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
13748         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13749         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13750         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
13751         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13752         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13753         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13754         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13755         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13756         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13757         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13758         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
13759         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
13760         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13761         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
13762         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13763         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
13764         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
13765         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13766         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13767         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
13768         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
13769         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
13770         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
13771         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13772         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13773         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13774         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13775         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
13776         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13777         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13778         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
13779         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
13780         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13781         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13782         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13783         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13784         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13785         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13786         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13787         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13788         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13789         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13790         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13791         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13792         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13793         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13794         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13795         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13796         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
13797         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13798         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13799         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13800         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13801         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13802         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13803         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13804         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13805         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13806         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13807         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13808         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13809         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13810         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13811         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13812         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13813         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13814         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13815         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13816         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13817         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13818         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13819         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13820         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13821         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13822         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13823         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13824         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13825         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13826         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13827         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13828         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13829         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13830         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13831         * sysdeps/ieee754/s_lib_version.c: Likewise.
13832         * sysdeps/ieee754/s_matherr.c: Likewise.
13833         * sysdeps/ieee754/s_signgam.c: Likewise.
13834         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13835         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13836         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13837         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13838         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13839         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13840         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13841         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13842         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13843         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13844         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13845         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13846         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13847         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13848         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13849         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13850         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13851         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13852         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13853         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13854         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13855
13856 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13857
13858         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13859         * sunrpc/rpc_main.c: Likewise.
13860         * sunrpc/rpc_svcout.c: Likewise.
13861
13862 2012-03-09  David S. Miller  <davem@davemloft.net>
13863
13864         * include/math_private.h: New file.
13865
13866 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13867
13868         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13869         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13870         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13871         from <bits/socket_type.h>.
13872         (enum __socket_type): Don't define here.
13873         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13874         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13875         bits/socket_type.h.
13876
13877         [BZ #13566]
13878         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13879         checking __USE_GNU.
13880
13881         * Makerules ($(inst_includedir)/%.h): New rule.
13882         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13883         (install-others): Remove variable setting.
13884         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13885
13886 2012-03-08  Richard Henderson  <rth@twiddle.net>
13887
13888         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13889         from macro to inline function; merge with the
13890         !__LIBC_INTERNAL_MATH_INLINES version.
13891         (__ieee754_sqrtf): Likewise.
13892
13893         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13894         to inline function.
13895         (__rintf, __floor, __floorf): Likewise.
13896
13897         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13898         macro to inline function.
13899         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13900
13901         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13902         not <math/math_private.h>.
13903
13904 2012-03-08  David S. Miller  <davem@davemloft.net>
13905
13906         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13907         copyright year.
13908         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13909
13910 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13911
13912         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13913         normalization.
13914         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13915         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13916
13917 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13918
13919         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13920         be defined individually, they must be defined as a block.  Define
13921         S for printing a string instead of hidint the different by using a
13922         macro for adding the 'l'.
13923         * stdio-common/tst-fphex-wide.c: Adjust.
13924
13925 2012-03-07  Marek Polacek  <polacek@redhat.com>
13926
13927         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13928
13929 2012-03-08  Marek Polacek  <polacek@redhat.com>
13930
13931         [BZ #13806]
13932         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13933         * stdio-common/tst-fphex.c: Define a few macros to make the
13934         test reusable.  Use them.
13935         * stdio-common/tst-fphex-wide.c: New file.
13936
13937 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13938
13939         [BZ #6911]
13940         * manual/macros.texi (gnusystems): New macro.
13941         (nongnusystems): Likewise.
13942         (gnulinuxhurdsystems): Likewise.
13943         (gnuhurdsystems): Likewise..
13944         (gnulinuxsystems): Likewise.
13945         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13946         variants of the GNU system, not "GNU system".
13947         * manual/conf.texi: Likewise.
13948         * manual/errno.texi: Likewise.  Update example of errno macro
13949         expansion.
13950         * manual/filesys.texi: Likewise.
13951         (getumask): Document as specific to GNU/Hurd.
13952         * manual/install.texi: Likewise.  Reword some references to
13953         GNU/Linux.
13954         * manual/intro.texi: Likewise.
13955         * manual/io.texi: Likewise.
13956         (File Name Portability): Detail which constraints are inapplicable
13957         to all GNU systems and which are only inapplicable to GNU/Hurd.
13958         * manual/job.texi: Likewise.
13959         * manual/llio.texi: Likewise.
13960         (O_NOCTTY): Document as present on GNU/Linux.
13961         * manual/maint.texi: Likewise.
13962         * manual/memory.texi: Likewise.
13963         * manual/pattern.texi: Likewise.
13964         * manual/pipe.texi: Likewise.
13965         * manual/process.texi: Likewise.
13966         * manual/resource.texi: Likewise.
13967         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13968         child on GNU/Hurd.
13969         * manual/setjmp.texi: Likewise.
13970         * manual/signal.texi: Likewise.
13971         * manual/startup.texi: Likewise.
13972         * manual/stdio.texi: Likewise.
13973         * manual/terminal.texi: Likewise.
13974         (ONLCR): Document as POSIX.
13975         (OXTABS): Document availability on GNU/Linux as XTABS.
13976         (ONOEOT): Document availability separately from other bits.
13977         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13978         * manual/time.texi: Likewise.
13979         * manual/users.texi: Likewise.
13980         * INSTALL: Regenerated.
13981         * sysdeps/gnu/errlist.c: Regenerated.
13982
13983         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13984         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13985         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13986         puts.
13987         * configure: Regenerated.
13988
13989 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13990
13991         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13992         default includes instead of AC_HEADER_CHECK.
13993         * sysdeps/i386/configure: Regenerated.
13994
13995         [BZ #10716]
13996         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13997         * math/s_cacoshf.c (__cacoshf): Likewise.
13998         * math/s_cacoshl.c (__cacoshl): Likewise.
13999         * math/s_casinh.c (__casinh): Set signs of result from argument.
14000         * math/s_casinhf.c (__casinhf): Likewise.
14001         * math/s_casinhl.c (__casinhl): Likewise.
14002         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
14003         (casinh_test): Add more tests.
14004         * sysdeps/i386/fpu/libm-test-ulps: Update.
14005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14006
14007 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
14008
14009         * po/zh_TW.po: Update from translation team.
14010
14011         * login/Makefile (distribute): Remove variable.
14012         * catgets/Makefile: Likewise.
14013         * mach/Makefile: Likewise.
14014         * malloc/Makefile: Likewise.
14015         * misc/Makefile: Likewise.
14016         * iconv/Makefile: Likewise.
14017         * nscd/Makefile: Likewise.
14018         * hurd/Makefile: Likewise.
14019         * manual/Makefile: Likewise.
14020         * locale/Makefile: Likewise.
14021         * intl/Makefile: Likewise.
14022         * conform/Makefile: Likewise.
14023         * nss/Makefile: Likewise.
14024         * time/Makefile: Likewise.
14025         * soft-fp/Makefile: Likewise.
14026         * dirent/Makefile: Likewise.
14027         * gmon/Makefile: Likewise.
14028         * po/Makefile: Likewise.
14029         * rt/Makefile: Likewise.
14030         * socket/Makefile: Likewise.
14031         * math/Makefile: Likewise.
14032         * signal/Makefile: Likewise.
14033         * debug/Makefile: Likewise.
14034         * elf/Makefile: Likewise.
14035         * timezone/Makefile: Likewise.
14036         * stdlib/Makefile: Likewise.
14037         * iconvdata/Makefile: Likewise.
14038         * sunrpc/Makefile: Likewise.
14039         * io/Makefile: Likewise.
14040         * argp/Makefile: Likewise.
14041         * inet/Makefile: Likewise.
14042         * hesiod/Makefile: Likewise.
14043         * grp/Makefile: Likewise.
14044         * csu/Makefile: Likewise.
14045         * wctype/Makefile: Likewise.
14046         * crypt/Makefile: Likewise.
14047         * libio/Makefile: Likewise.
14048         * string/Makefile: Likewise.
14049         * nis/Makefile: Likewise.
14050         * resolv/Makefile: Likewise.
14051         * stdio-common/Makefile: Likewise.
14052         * wcsmbs/Makefile: Likewise.
14053         * dlfcn/Makefile: Likewise.
14054         * posix/Makefile: Likewise.
14055
14056         [BZ #6959]
14057         * timezone/Makefile: Don't install timezone files, just the programs
14058         and scripts.
14059
14060 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
14061
14062         * nss/databases.def: Add missing gshadow entry.
14063
14064         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
14065
14066 2012-03-06  Marek Polacek  <polacek@redhat.com>
14067
14068         [BZ #13726]
14069         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
14070         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
14071         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
14072         * stdio-common/tst-long-dbl-fphex.c: New file.
14073
14074 2012-03-06  David S. Miller  <davem@davemloft.net>
14075
14076         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14077         (set_obp_int): New function.
14078         (get_obp_int): New function.
14079         (__get_clockfreq_via_dev_openprom): Likewise.
14080         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
14081         Avoid unused variable warnings on 'val' and use builtin_expect.
14082         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
14083         __builtin_expect.
14084         (INLINE_CLONE_SYSCALL): Likewise.
14085
14086 2012-03-05  David S. Miller  <davem@davemloft.net>
14087
14088         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14089
14090 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
14091
14092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14093
14094         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
14095         only for |x| >= 40.
14096         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14097
14098 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
14099
14100         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
14101         Replace gettimeofday with __vdso_gettimeofday.
14102
14103         * sysdeps/unix/sysv/linux/x86_64/init-first.c
14104         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
14105         __vdso_clock_gettime and __vdso_getcpu.
14106
14107         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
14108         time with __vdso_time.
14109
14110 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
14111
14112         * manual/lang.texi (size_t): Note types to which size_t may be
14113         equivalent with the GNU C Library, but do not describe when
14114         differences between them are significant.
14115
14116 2012-03-05  Andreas Jaeger  <aj@suse.de>
14117
14118         * sysdeps/i386/fpu/libm-test-ulps: Update.
14119
14120 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
14121
14122         [BZ #3976]
14123         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
14124         (__ieee754_pow): Save and restore rounding mode and use
14125         round-to-nearest for main computations.
14126         * math/libm-test.inc (pow_test_tonearest): New function.
14127         (pow_test_towardzero): Likewise.
14128         (pow_test_downward): Likewise.
14129         (pow_test_upward): Likewise.
14130         (main): Call the new functions.
14131         * sysdeps/i386/fpu/libm-test-ulps: Update.
14132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14133
14134         [BZ #3976]
14135         * math/libm-test.inc (cosh_test_tonearest): New function.
14136         (cosh_test_towardzero): Likewise.
14137         (cosh_test_downward): Likewise.
14138         (cosh_test_upward): Likewise.
14139         (sinh_test_tonearest): Likewise.
14140         (sinh_test_towardzero): Likewise.
14141         (sinh_test_downward): Likewise.
14142         (sinh_test_upward): Likewise.
14143         (main): Call the new functions.
14144         * sysdeps/i386/fpu/libm-test-ulps: Update.
14145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14146
14147 2012-03-05  Tom de Vries  <tom@codesourcery.com>
14148
14149         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
14150         default stack guard is set in last bytes.
14151         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
14152
14153 2012-03-05  Kees Cook  <keescook@chromium.org>
14154
14155         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
14156
14157         [BZ #13656]
14158         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
14159         possibly allocate from heap instead of stack.
14160         * stdio-common/bug-vfprintf-nargs.c: New file.
14161         * stdio-common/Makefile (tests): Add nargs overflow test.
14162
14163 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
14164
14165         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14166
14167 2012-03-03  Marek Polacek  <polacek@redhat.com>
14168
14169         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
14170         * math/math_private.h: Likewise.
14171         * stdlib/tst-strtod.c: Likewise.
14172         * sysdeps/i386/i486/bits/atomic.h: Likewise.
14173         * sysdeps/x86_64/bits/atomic.h: Likewise.
14174
14175 2012-03-02  David S. Miller  <davem@davemloft.net>
14176
14177         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
14178         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
14179         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
14180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
14181         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
14182         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
14183         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
14184         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
14185
14186 2012-03-02  Roland McGrath  <roland@hack.frob.com>
14187
14188         [BZ #13792]
14189         * manual/examples/README: New file, says the example source files
14190         can be used under GPL>=2.
14191         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
14192         line containing just "*/".
14193         * manual/examples/add.c: Add copyright header (GPL>=2).
14194         * manual/examples/argp-ex1.c: Likewise.
14195         * manual/examples/argp-ex2.c: Likewise.
14196         * manual/examples/argp-ex3.c: Likewise.
14197         * manual/examples/argp-ex4.c: Likewise.
14198         * manual/examples/atexit.c: Likewise.
14199         * manual/examples/db.c: Likewise.
14200         * manual/examples/dir.c: Likewise.
14201         * manual/examples/dir2.c: Likewise.
14202         * manual/examples/execinfo.c: Likewise.
14203         * manual/examples/filecli.c: Likewise.
14204         * manual/examples/filesrv.c: Likewise.
14205         * manual/examples/fmtmsgexpl.c: Likewise.
14206         * manual/examples/genpass.c: Likewise.
14207         * manual/examples/inetcli.c: Likewise.
14208         * manual/examples/inetsrv.c: Likewise.
14209         * manual/examples/isockad.c: Likewise.
14210         * manual/examples/longopt.c: Likewise.
14211         * manual/examples/memopen.c: Likewise.
14212         * manual/examples/memstrm.c: Likewise.
14213         * manual/examples/mkfsock.c: Likewise.
14214         * manual/examples/mkisock.c: Likewise.
14215         * manual/examples/mygetpass.c: Likewise.
14216         * manual/examples/pipe.c: Likewise.
14217         * manual/examples/popen.c: Likewise.
14218         * manual/examples/rprintf.c: Likewise.
14219         * manual/examples/search.c: Likewise.
14220         * manual/examples/select.c: Likewise.
14221         * manual/examples/setjmp.c: Likewise.
14222         * manual/examples/sigh1.c: Likewise.
14223         * manual/examples/sigusr.c: Likewise.
14224         * manual/examples/stpcpy.c: Likewise.
14225         * manual/examples/strdupa.c: Likewise.
14226         * manual/examples/strftim.c: Likewise.
14227         * manual/examples/strncat.c: Likewise.
14228         * manual/examples/subopt.c: Likewise.
14229         * manual/examples/swapcontext.c: Likewise.
14230         * manual/examples/termios.c: Likewise.
14231         * manual/examples/testopt.c: Likewise.
14232         * manual/examples/testpass.c: Likewise.
14233         * manual/examples/timeval_subtract.c: Likewise.
14234
14235         [BZ #13792]
14236         * manual/time.texi (Elapsed Time): Move timeval_subtract example
14237         function to ...
14238         * manual/timeval_subtract.c.texi: ... here, new file.
14239
14240 2012-03-02  David S. Miller  <davem@davemloft.net>
14241
14242         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
14243
14244 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
14245
14246         [BZ #3976]
14247         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
14248         (__sin): Save and restore rounding mode and use round-to-nearest
14249         for all computations.
14250         (__cos): Save and restore rounding mode and use round-to-nearest
14251         for all computations.
14252         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
14253         <fenv.h>.
14254         (tan): Save and restore rounding mode and use round-to-nearest for
14255         all computations.
14256         * math/libm-test.inc (cos_test_tonearest): New function.
14257         (cos_test_towardzero): Likewise.
14258         (cos_test_downward): Likewise.
14259         (cos_test_upward): Likewise.
14260         (sin_test_tonearest): Likewise.
14261         (sin_test_towardzero): Likewise.
14262         (sin_test_downward): Likewise.
14263         (sin_test_upward): Likewise.
14264         (tan_test_tonearest): Likewise.
14265         (tan_test_towardzero): Likewise.
14266         (tan_test_downward): Likewise.
14267         (tan_test_upward): Likewise.
14268         (main): Call the new functions.
14269         * sysdeps/i386/fpu/libm-test-ulps: Update.
14270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14271
14272         [BZ #10135]
14273         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
14274         small n, then large n, before computing and testing k+n.
14275         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
14276         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
14277         Likewise.
14278         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
14279         Likewise.
14280         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
14281         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
14282         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
14283         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
14284         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
14285         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
14286         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
14287         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
14288         * math/libm-test.inc (scalbn_test): Add more tests.
14289         (scalbln_test): Likewise.
14290
14291         * manual/filesys.texi (mode_t): Describe constraints on size and
14292         signedness, not exact equivalence to a particular type.
14293         (ino_t): Likewise.
14294         (ino64_t): Likewise.
14295         (dev_t): Likewise.
14296         (nlink_t): Likewise.
14297         (blkcnt_t): Likewise.
14298         (blkcnt64_t): Likewise.
14299         * manual/llio.texi (off_t): Likewise.
14300
14301         [BZ #3976]
14302         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
14303         (__ieee754_exp): Save and restore rounding mode and use
14304         round-to-nearest for all computations.
14305         * math/libm-test.inc (exp_test_tonearest): New function.
14306         (exp_test_towardzero): Likewise.
14307         (exp_test_downward): Likewise.
14308         (exp_test_upward): Likewise.
14309         (main): Call the new functions.
14310         * sysdeps/i386/fpu/libm-test-ulps: Update.
14311         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14312
14313 2012-03-01  Chris Demetriou  <cgd@google.com>
14314
14315         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
14316         have predictable order.
14317
14318 2012-03-01  David S. Miller  <davem@davemloft.net>
14319
14320         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
14321
14322         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
14323         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
14324         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
14325         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
14326
14327         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
14328         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
14329         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
14330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
14331         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
14332         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
14333         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
14334         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
14335         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
14336
14337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14338
14339         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
14340         * sysdeps/sparc/fpu/libm-test-ulps: to here.
14341         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
14342
14343         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
14344         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14345         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14346         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
14347         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
14348         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
14349         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
14350         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14351         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14352         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
14353         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
14354         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14355         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14356         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14357         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14358         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14359         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
14360         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
14361         * sysdeps/sparc/elf/configure: Regenerated.
14362
14363 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
14364
14365         * configure.in (AS, LD): Require binutils 2.20 or later.
14366         * configure: Regenerated.
14367         * manual/install.texi (Tools for Compilation): Give binutils 2.20
14368         as required minimum version.
14369         * INSTALL: Regenerated.
14370
14371         [BZ #2541]
14372         [BZ #4108]
14373         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
14374         before squaring exponent.
14375         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
14376         bottom long double and 27 bits of top long double before squaring
14377         exponent.
14378         * math/libm-test.inc (erfc_test): Add more tests.
14379         * sysdeps/i386/fpu/libm-test-ulps: Update.
14380         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14381         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14382
14383 2012-03-01  Kai Tietz  <ktietz@redhat.com>
14384
14385         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
14386         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
14387         containing bit-fields.
14388         * soft-fp/extended.h (_FP_UNION_E): Likewise.
14389         * soft-fp/single.h (_FP_UNION_S): Likewise.
14390         * soft-fp/double.h (_FP_UNION_D): Likewise.
14391
14392 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
14393
14394         [BZ #13786]
14395         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
14396         not include ../strcmp.S.
14397         [USE_AS_STRNCASECMP_L]: Likewise.
14398         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
14399         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
14400         * sysdeps/i386/i686/multiarch/strncase_l-c.c
14401         (__strncasecmp_l_ia32): Define as alias to
14402         __strncasecmp_l_nonascii.
14403
14404         [BZ #5794]
14405         * math/libm-test.inc (expm1_test): Add test for bug 5794.
14406         * sysdeps/i386/fpu/libm-test-ulps: Update.
14407         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14408
14409         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
14410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14411
14412 2012-02-29  Jeff Law  <law@redhat.com>
14413
14414         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
14415         out of bounds read.
14416
14417 2012-02-29  Marek Polacek  <polacek@redhat.com>
14418
14419         [BZ #13706]
14420         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
14421         * elf/Makefile: Add rules to run tst-unused-dep.out.
14422
14423 2012-02-28  David S. Miller  <davem@davemloft.net>
14424
14425         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
14426         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
14427         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
14428         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
14429         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
14430         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
14431
14432 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
14433
14434         * math/libm-test.inc (llround_test): Move one test from
14435         lround_test.  Use TEST_f_L in moved test.
14436         (lround_test): Move misplaced test to llround_test.  Add testcase
14437         from bug 2561.
14438
14439 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
14440
14441         * sysdeps/x86_64/fpu/e_expf.S: New file.
14442         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
14443
14444 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
14445
14446         [BZ #13637]
14447         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
14448         of remain_len that may cause incomplete multi-byte character and
14449         false match.
14450         * posix/bug-regex33.c: New file.
14451         * posix/Makefile (tests): Add bug-regex33.
14452
14453 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
14454
14455         * manual/macros.texi: New file.
14456         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
14457         * manual/libc.texinfo: Include macros.texi.
14458         * manual/creatute.texi: Likewise.
14459         * manual/install.texi: Likewise.
14460         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
14461         @glibcadj{} in references to the GNU C Library.
14462         * manual/charset.texi: Likewise.
14463         * manual/conf.texi: Likewise.
14464         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
14465         when not using those macros.
14466         * manual/creature.texi: Likewise.
14467         * manual/crypt.texi: Likewise.
14468         * manual/errno.texi: Likewise.
14469         * manual/filesys.texi: Likewise.
14470         * manual/header.texi: Likewise.
14471         * manual/install.texi: Likewise.
14472         * manual/intro.texi: Likewise.
14473         * manual/io.texi: Likewise.
14474         * manual/job.texi: Likewise.
14475         * manual/lang.texi: Likewise.
14476         * manual/libc.texiinfo: Likewise.
14477         * manual/llio.texi: Likewise.
14478         * manual/locale.texi: Likewise.
14479         * manual/maint.texi: Likewise.
14480         * manual/math.texi: Likewise.
14481         * manual/memory.texi: Likewise.
14482         * manual/message.texi: Likewise.
14483         * manual/nss.texi: Likewise.
14484         * manual/pattern.texi: Likewise.
14485         * manual/process.texi: Likewise.
14486         * manual/resource.texi: Likewise.
14487         * manual/search.texi: Likewise.
14488         * manual/setjmp.texi: Likewise.
14489         * manual/signal.texi: Likewise.
14490         * manual/socket.texi: Likewise.
14491         * manual/startup.texi: Likewise.
14492         * manual/stdio.texi: Likewise.
14493         * manual/string.texi: Likewise.
14494         * manual/sysinfo.texi: Likewise.
14495         * manual/syslog.texi: Likewise.
14496         * manual/terminal.texi: Likewise.
14497         * manual/time.texi: Likewise.
14498         * manual/users.texi: Likewise.
14499         * INSTALL: Regenerated.
14500         * NOTES: Regenerated.
14501         * sysdeps/gnu/errlist.c: Regenerated.
14502
14503 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
14504
14505         * include/dirent.h: Include <dirstream.h> before
14506         <dirent/dirent.h>.
14507
14508 2012-02-28  David S. Miller  <davem@davemloft.net>
14509
14510         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
14511         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
14512         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
14513         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
14514
14515 2012-02-27  David S. Miller  <davem@davemloft.net>
14516
14517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
14518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
14519         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
14520         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
14521
14522         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
14523         frame pointer instead of stack pointer relative arg slot.
14524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
14525         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
14526         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
14527
14528 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
14529
14530         [BZ #3992]
14531         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
14532
14533 2012-02-27  David S. Miller  <davem@davemloft.net>
14534
14535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
14536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
14537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
14538         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
14539         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
14540         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
14541         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
14542         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
14543
14544 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
14545
14546         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
14547         later.  Allow versions 5-9.
14548         * configure: Regenerated.
14549         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
14550         required minimum version and 4.6 as recommended version.  Do not
14551         mention bugs in GCC 2.7 and 2.8.
14552         * INSTALL: Regenerated.
14553
14554 2012-02-27  David S. Miller  <davem@davemloft.net>
14555
14556         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
14557         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
14558         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
14559         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
14560         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
14561         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
14562         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
14563         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
14564
14565         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
14566         manipulate bits before adding and subtracting TWO112[sx].
14567         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
14568
14569 2012-02-27  Roland McGrath  <roland@hack.frob.com>
14570
14571         [BZ #13775]
14572         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
14573         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
14574         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
14575         being in POSIX, because they are in 1003.1-2008.
14576
14577         * rt/tst-aio.c: Include <fcntl.h>.
14578         * rt/tst-aio7.c: Likewise.
14579         * rt/tst-aio64.c: Likewise.
14580
14581         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
14582
14583 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
14584
14585         * manual/install.texi (--with-headers): Describe headers as
14586         interface headers, not private headers.
14587         (Specific advice for GNU/Linux systems): Describe use of headers
14588         from "make headers_install", not private headers from older
14589         kernels.
14590         * INSTALL: Regenerated.
14591         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
14592         Change to 2.6.19.
14593         * sysdeps/unix/sysv/linux/configure: Regenerated.
14594
14595         * manual/llio.texi (fclean): Remove documentation.
14596
14597         * manual/Makefile (libc-texi-generated): New variable.  Include
14598         version.texi.
14599         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
14600         $(libc-texi-generated), not duplicated list of files.
14601         (version.texi, stamp-version): New rules.
14602         (realclean): Remove $(libc-texi-generated), not individual files
14603         from that list.  Do not remove dir-add.texinfo.
14604         * manual/libc.texinfo: Comment out uses of edition numbers and
14605         references to printed manual.  Remove last-updated dates.
14606         (EDITION): Comment out.
14607         (ISBN): Likewise.
14608         (VERSION, UPDATED): Remove.
14609         (version.texi): Include.
14610
14611 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
14612
14613         * sysdeps/posix/spawni.c: Include <signal.h>.
14614         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
14615         * sysdeps/pthread/aio_fsync.c: Likewise.
14616
14617 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
14618
14619         * conform/Makefile (tests): Run only when not cross-compiling and
14620         when fast-check is not defined.
14621
14622         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
14623         * conform/data/limits.h-data: Fixes for POSIX2008.
14624         * conform/run-conformtest.sh: Run all tests.
14625         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
14626         headers.
14627         * include/bits/dlfcn.h: Likewise.
14628         * include/langinfo.h: Likewise.
14629         * include/monetary.h: Likewise.
14630         * include/sys/poll.h: Likewise.
14631
14632         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
14633         for __USE_GNU.
14634         * posix/spawn.h: Define __need_sigset_t.
14635         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
14636         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
14637         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
14638         to get sigevent_t only.
14639         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
14640         only for __USE_GNU.
14641         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14642         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14643         process_vm_writev only for __USE_GNU.
14644         * termios/termios.h: Declare tcgetsid also for POSIX2008.
14645
14646         * conform/Makefile: For now ignore errors from run-conformtest.
14647         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
14648         POSIX to avoid namespace pollution.  Don't prepend headers.
14649         * conform/data/aio.h-data: Fixes for POSIX testing.
14650         * conform/data/fcntl.h-data: Likewise.
14651         * conform/data/glob.h-data: Likewise.
14652         * conform/data/grp.h-data: Likewise.
14653         * conform/data/pthread.h-data: Likewise.
14654         * conform/data/pwd.h-data: Likewise.
14655         * conform/data/signal.h-data: Likewise.
14656         * conform/data/spawn.h-data: Likewise.
14657         * conform/data/stdio.h-data: Likewise.
14658         * conform/data/stdlib.h-data: Likewise.
14659         * conform/data/stropts.h-data: Likewise.
14660         * conform/data/sys/mman.h-data: Likewise.
14661         * conform/data/sys/stat.h-data: Likewise.
14662         * conform/data/sys/types.h-data: Likewise.
14663         * conform/data/sys/wait.h-data: Likewise.
14664         * conform/data/time.h-data: Likewise.
14665         * conform/data/unistd.h-data: Likewise.
14666         * conform/data/utime.h-data: Likewise.
14667
14668         * io/sys/stat.h: fchmod was always in POSIX.
14669         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
14670         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
14671         * rt/aio.h: Define __need_timespec before including <time.h>.
14672         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
14673         struct.  Add forward declaration of pthread_attr_t and use it in
14674         sigevent.
14675         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
14676         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14677         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
14678         always remove CLK_TCK definition.
14679
14680 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
14681
14682         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
14683
14684 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
14685
14686         * conform/run-conformtest.sh: New file.
14687         * conform/Makefile: Run run-conformtest for tests.
14688         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
14689         support.
14690
14691         * conform/data/uchar.h-data: New file.
14692         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
14693         * conform/data/arpa/inet.h-data: Likewise.
14694         * conform/data/assert.h-data: Likewise.
14695         * conform/data/complex.h-data: Likewise.
14696         * conform/data/cpio.h-data: Likewise.
14697         * conform/data/ctype.h-data: Likewise.
14698         * conform/data/dirent.h-data: Likewise.
14699         * conform/data/dlfcn.h-data: Likewise.
14700         * conform/data/errno.h-data: Likewise.
14701         * conform/data/fcntl.h-data: Likewise.
14702         * conform/data/float.h-data: Likewise.
14703         * conform/data/fmtmsg.h-data: Likewise.
14704         * conform/data/fnmatch.h-data: Likewise.
14705         * conform/data/ftw.h-data: Likewise.
14706         * conform/data/glob.h-data: Likewise.
14707         * conform/data/grp.h-data: Likewise.
14708         * conform/data/iconv.h-data: Likewise.
14709         * conform/data/inttypes.h-data: Likewise.
14710         * conform/data/langinfo.h-data: Likewise.
14711         * conform/data/libgen.h-data: Likewise.
14712         * conform/data/limits.h-data: Likewise.
14713         * conform/data/locale.h-data: Likewise.
14714         * conform/data/math.h-data: Likewise.
14715         * conform/data/monetary.h-data: Likewise.
14716         * conform/data/mqueue.h-data: Likewise.
14717         * conform/data/ndbm.h-data: Likewise.
14718         * conform/data/net/if.h-data: Likewise.
14719         * conform/data/netdb.h-data: Likewise.
14720         * conform/data/netinet/in.h-data: Likewise.
14721         * conform/data/nl_types.h-data: Likewise.
14722         * conform/data/poll.h-data: Likewise.
14723         * conform/data/pthread.h-data: Likewise.
14724         * conform/data/pwd.h-data: Likewise.
14725         * conform/data/regex.h-data: Likewise.
14726         * conform/data/sched.h-data: Likewise.
14727         * conform/data/search.h-data: Likewise.
14728         * conform/data/semaphore.h-data: Likewise.
14729         * conform/data/setjmp.h-data: Likewise.
14730         * conform/data/signal.h-data: Likewise.
14731         * conform/data/spawn.h-data: Likewise.
14732         * conform/data/stdarg.h-data: Likewise.
14733         * conform/data/stdio.h-data: Likewise.
14734         * conform/data/stdlib.h-data: Likewise.
14735         * conform/data/string.h-data: Likewise.
14736         * conform/data/strings.h-data: Likewise.
14737         * conform/data/stropts.h-data: Likewise.
14738         * conform/data/sys/ipc.h-data: Likewise.
14739         * conform/data/sys/mman.h-data: Likewise.
14740         * conform/data/sys/msg.h-data: Likewise.
14741         * conform/data/sys/resource.h-data: Likewise.
14742         * conform/data/sys/select.h-data: Likewise.
14743         * conform/data/sys/sem.h-data: Likewise.
14744         * conform/data/sys/shm.h-data: Likewise.
14745         * conform/data/sys/socket.h-data: Likewise.
14746         * conform/data/sys/stat.h-data: Likewise.
14747         * conform/data/sys/statvfs.h-data: Likewise.
14748         * conform/data/sys/time.h-data: Likewise.
14749         * conform/data/sys/timeb.h-data: Likewise.
14750         * conform/data/sys/times.h-data: Likewise.
14751         * conform/data/sys/types.h-data: Likewise.
14752         * conform/data/sys/uio.h-data: Likewise.
14753         * conform/data/sys/un.h-data: Likewise.
14754         * conform/data/sys/utsname.h-data: Likewise.
14755         * conform/data/sys/wait.h-data: Likewise.
14756         * conform/data/syslog.h-data: Likewise.
14757         * conform/data/tar.h-data: Likewise.
14758         * conform/data/termios.h-data: Likewise.
14759         * conform/data/utime.h-data: Likewise.
14760         * conform/data/utmpx.h-data: Likewise.
14761         * conform/data/varargs.h-data: Likewise.
14762         * conform/data/wchar.h-data: Likewise.
14763         * conform/data/wctype.h-data: Likewise.
14764         * conform/data/wordexp.h-data: Likewise.
14765
14766         * include/stropts.h: New file.
14767         * include/uchar.h: New file.
14768         * include/aio.h: Changes to allow conformtest.pl to use the headers.
14769         * include/assert.h: Likewise.
14770         * include/ctype.h: Likewise.
14771         * include/dirent.h: Likewise.
14772         * include/dlfcn.h: Likewise.
14773         * include/fcntl.h: Likewise.
14774         * include/fnmatch.h: Likewise.
14775         * include/glob.h: Likewise.
14776         * include/grp.h: Likewise.
14777         * include/libio.h: Likewise.
14778         * include/locale.h: Likewise.
14779         * include/math.h: Likewise.
14780         * include/net/if.h: Likewise.
14781         * include/netdb.h: Likewise.
14782         * include/netinet/in.h: Likewise.
14783         * include/pthread.h: Likewise.
14784         * include/pwd.h: Likewise.
14785         * include/regex.h: Likewise.
14786         * include/sched.h: Likewise.
14787         * include/search.h: Likewise.
14788         * include/setjmp.h: Likewise.
14789         * include/signal.h: Likewise.
14790         * include/stdio.h: Likewise.
14791         * include/stdlib.h: Likewise.
14792         * include/string.h: Likewise.
14793         * include/sys/cdefs.h: Likewise.
14794         * include/sys/mman.h: Likewise.
14795         * include/sys/msg.h: Likewise.
14796         * include/sys/resource.h: Likewise.
14797         * include/sys/select.h: Likewise.
14798         * include/sys/socket.h: Likewise.
14799         * include/sys/stat.h: Likewise.
14800         * include/sys/statvfs.h: Likewise.
14801         * include/sys/time.h: Likewise.
14802         * include/sys/times.h: Likewise.
14803         * include/sys/uio.h: Likewise.
14804         * include/sys/utsname.h: Likewise.
14805         * include/sys/wait.h: Likewise.
14806         * include/termios.h: Likewise.
14807         * include/time.h: Likewise.
14808         * include/ulimit.h: Likewise.
14809         * include/unistd.h: Likewise.
14810         * include/utime.h: Likewise.
14811         * include/wchar.h: Likewise.
14812         * include/wctype.h: Likewise.
14813         * include/wordexp.h: Likewise.
14814
14815         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14816
14817         * time/time.h: TIME_UTC must be a macro.
14818         Make timespec_get available for ISO C11 only as well.
14819
14820 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
14821
14822         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14823         Reported by Peng Haitao <penght@cn.fujitsu.com>.
14824
14825 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14826
14827         * configure.in: Use -o not -a in test for unsupported multi-arch.
14828
14829 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14830
14831         * manual/texinfo.tex: Update to version 2012-01-19.16.
14832
14833 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14834
14835         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14836
14837 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14838
14839         [BZ #13738]
14840         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14841         * manual/fdl-1.3.texi: New file.
14842         * manual/fdl-1.1.texi: File removed.
14843
14844         [BZ #13738]
14845         * manual/libc.texinfo (FDL_VERSION): New @set.
14846         Use it for mention of FDL in cover text.
14847         (Documentation License): Use it in @include file name.
14848
14849 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14850             Roland McGrath  <roland@hack.frob.com>
14851
14852         [BZ #5461]
14853         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14854         not LONG_LONG_MAX and LONG_LONG_MIN.
14855         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14856         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14857         name.
14858         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14859
14860 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14861
14862         [BZ #2547]
14863         [BZ #11365]
14864         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14865         manipulate bits before adding and subtracting TWO23[sx].
14866         * math/libm-test.inc (nearbyint_test): Add more tests.
14867
14868 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14869
14870         [BZ #2548]
14871         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14872         bits before adding and subtracting TWO23[sx].
14873         * math/libm-test.inc (rint_test): Add more tests.
14874         (rint_test_tonearest): Likewise.
14875         (rint_test_towardzero): Likewise.
14876         (rint_test_downward): Likewise.
14877         (rint_test_upward: Likewise.
14878
14879 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14880
14881         [BZ #10110]
14882         * include/stdc-predef.h: New file.  Extracted from features.h.
14883         * include/features.h: Include stdc-predef.h.
14884         * Makefile (headers): Add stdc-predef.h.
14885         * CONFORMANCE (Compiler limitations): Update.
14886
14887 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14888
14889         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14890
14891 2012-02-21  David S. Miller  <davem@davemloft.net>
14892
14893         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14894         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14895
14896 2012-02-20  David S. Miller  <davem@davemloft.net>
14897
14898         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14899         using a normal save/restore sequence, rather than allocating a
14900         dummy stack frame just to store a frame pointer and restore.
14901         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14902
14903 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14904
14905         * manual/install.texi: Fix stray word in line-wrapped comment.
14906
14907 2012-02-20  David S. Miller  <davem@davemloft.net>
14908
14909         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14910         both binutils and gcc support GOTDATA.
14911
14912         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14913         "rd %pc" in the PIC register setup sequences.
14914
14915         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14916         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14917         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14918         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14919         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14920         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14921         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14922         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14923         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14924         (SYSCALL_ERROR_HANDLER): Likewise.
14925         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14926         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14927         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14928         (SYSCALL_ERROR_HANDLER): Likewise.
14929
14930         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14931         (HAVE_GCC_GOTDATA): New.
14932         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14933         relocation support in both binutils and gcc.
14934         * sysdeps/sparc/elf/configure: Regenerate.
14935
14936         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14937         * sysdeps/sparc/sparc32/elf/configure: Delete.
14938         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14939         * sysdeps/sparc/sparc64/elf/configure: Delete.
14940         * sysdeps/sparc/elf/configure.in: New file.
14941         * sysdeps/sparc/elf/configure: Generate.
14942
14943         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14944         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14945         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14946         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14947         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14948
14949 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14950
14951         * manual/install.texi: Do not mention specific glibc version
14952         numbers.
14953         * manual/libc.texinfo (VERSION, UPDATED): Update.
14954         (@copying): Use @copyright{} and range of years.
14955
14956 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14957
14958         [BZ #13695]
14959         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14960         [crti.S not in sysdirs] (generated): Do not append.
14961         [crti.S not in sysdirs] (omit-deps): Likewise.
14962         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14963         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14964         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14965         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14966         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14967         Likewise.
14968         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14969         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14970         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14971         * csu/defs.awk: Remove file.
14972         * sysdeps/generic/initfini.c: Likewise.
14973         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14974         variable.
14975         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14976         Likewise.
14977
14978 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14979
14980         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14981         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14982         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14983         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14984         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14985         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14986         <bits/epoll.h>.
14987         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14988         (__EPOLL_PACKED): Define to empty if not defined by
14989         <bits/epoll.h>.
14990         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14991         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14992         bits/epoll.h.
14993
14994 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14995
14996         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14997         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14998         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14999         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
15000         <bits/timerfd.h>.
15001         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
15002         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15003         bits/timerfd.h.
15004
15005 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
15006
15007         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
15008         in C locale.
15009         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
15010         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
15011         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
15012         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15013
15014 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
15015
15016         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15017         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
15018
15019 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
15020
15021         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
15022         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
15023         defined.
15024         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
15025         Likewise.
15026         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
15027         entry for 2.16.
15028
15029 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
15030
15031         * math/w_acos.c: Use non-signaling floating-point comparisons.
15032         * math/w_acosf.c: Likewise.
15033         * math/w_acosh.c: Likewise.
15034         * math/w_acoshf.c: Likewise.
15035         * math/w_acoshl.c: Likewise.
15036         * math/w_acosl.c: Likewise.
15037         * math/w_asin.c: Likewise.
15038         * math/w_asinf.c: Likewise.
15039         * math/w_asinl.c: Likewise.
15040         * math/w_atanh.c: Likewise.
15041         * math/w_atanhf.c: Likewise.
15042         * math/w_atanhl.c: Likewise.
15043         * math/w_exp2.c: Likewise.
15044         * math/w_exp2f.c: Likewise.
15045         * math/w_exp2l.c: Likewise.
15046         * math/w_j0.c: Likewise.
15047         * math/w_j0f.c: Likewise.
15048         * math/w_j0l.c: Likewise.
15049         * math/w_j1.c: Likewise.
15050         * math/w_j1f.c: Likewise.
15051         * math/w_j1l.c: Likewise.
15052         * math/w_jn.c: Likewise.
15053         * math/w_jnf.c: Likewise.
15054         * math/w_log.c: Likewise.
15055         * math/w_log10.c: Likewise.
15056         * math/w_log10f.c: Likewise.
15057         * math/w_log10l.c: Likewise.
15058         * math/w_log2.c: Likewise.
15059         * math/w_log2f.c: Likewise.
15060         * math/w_log2l.c: Likewise.
15061         * math/w_logf.c: Likewise.
15062         * math/w_logl.c: Likewise.
15063         * math/w_sqrt.c: Likewise.
15064         * math/w_sqrtf.c: Likewise.
15065         * math/w_sqrtl.c: Likewise.
15066         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15067         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
15068         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15069         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15070         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15071
15072 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
15073
15074         [BZ #9739]
15075         * manual/string.texi (strnlen): Use correct parameter name in
15076         equivalent expression.
15077
15078 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
15079
15080         [BZ #11174]
15081         * manual/users.texi (seteuid): Consistently use neweuid for
15082         argument name.
15083
15084 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
15085
15086         [BZ #13704]
15087         * manual/nss.texi (Services in the NSS configuration): Correct
15088         list of services in example configuration file.
15089
15090 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
15091
15092         [BZ #11322]
15093         * manual/arith.texi: Remove statements about negative zero
15094         behaving identically to zero.
15095
15096 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
15097
15098         [BZ #5993]
15099         * manual/install.texi: Do not document upgrading from libc5.
15100
15101 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
15102
15103         [BZ #4596]
15104         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
15105
15106 2012-02-18  David S. Miller  <davem@davemloft.net>
15107
15108         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
15109         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
15110         %o7 across the call.
15111         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
15112         instead.
15113         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
15114         SETUP_PIC_REG_LEAF.
15115         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15116         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
15117         * sysdeps/sparc/crtn.S: Likewise.
15118
15119 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
15120
15121         * aout/Makefile: Remove.
15122
15123 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
15124
15125         [BZ #13058]
15126         * manual/examples/argp-ex1.c (main): Format definition in GNU
15127         style.
15128         * manual/examples/argp-ex2.c (main): Likewise.
15129         * manual/examples/argp-ex3.c (main): Likewise.
15130         * manual/examples/argp-ex4.c (main): Likewise.
15131         * manual/examples/longopt.c (main): Use new-style prototype
15132         definition.
15133         * manual/examples/strncat.c (main): Specify return type and use
15134         (void) for arguments.
15135         * manual/examples/subopt.c (main): Use char **argv argument.
15136
15137 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15138
15139         [BZ #5077]
15140         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
15141         rounding modes.
15142
15143 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
15144
15145         [BZ #6907]
15146         * manual/string.texi (strchr): Change when strchrnul is
15147         recommended.
15148
15149 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
15150
15151         [BZ #174]
15152         * manual/locale.texi (setlocale): Document LOCPATH.
15153
15154 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15155
15156         [BZ #10210]
15157         * manual/process.texi (execle): Move @dots{} before last argument.
15158
15159 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
15160
15161         [BZ #12047]
15162         * manual/charset.texi (Generic Charset Conversion): Fix typo
15163         (LC_TYPE -> LC_CTYPE).
15164
15165 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
15166
15167         [BZ #5805]
15168         * manual/arith.texi (scalbn): Use @var{} on parameter names.
15169         (scalbnf): Likewise.
15170         (scalbnl): Likewise.
15171         (scalbln): Likewise.
15172         (scalblnf): Likewise.
15173         (scalblnl): Likewise.
15174         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
15175         (vwarnx): Likewise.
15176         (verr): Likewise.
15177         (verrx): Likewise.
15178         * manual/filesys.texi (telldir): Use braces around return type.
15179         * manual/llio.texi (mmap): Add space after comma.
15180         (mmap64): Likewise.
15181         * manual/math.texi (jn): Use @var{} on parameter names.
15182         (jnf): Likewise.
15183         (jnl): Likewise.
15184         (yn): Likewise.
15185         (ynf): Likewise.
15186         (ynl): Likewise.
15187         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
15188         line.
15189         * manual/resource.texi (ulimit): Use @dots{} instead of literal
15190         "...".
15191         (sched_get_priority_min): Remove semicolon on @deftypefun line.
15192         (sched_get_priority_max): Likewise.
15193         * manual/signal.texi (sigvec): Add space after comma.
15194         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
15195         names.
15196         (if_indextoname): Likewise.
15197         (if_freenameindex): Likewise.
15198         (sendto): Use ',' instead of '.' in prototype.
15199         * manual/startup.texi (syscall): Use @dots{} instead of literal
15200         "...".
15201         * manual/stdio.texi (__fpending): Separate initial words of
15202         paragraph from @deftypefun line.
15203         * manual/syslog.texi (syslog): Use @dots{} instead of literal
15204         "...".
15205         (vsyslog): Use @var{} on parameter names.
15206         * manual/terminal.texi (stty): Use @var{} on parameter names.
15207         * manual/users.texi (getutmp): Use @var{} on parameter names.
15208         (getutmpx): Likewise.
15209
15210 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15211
15212         [BZ #6884]
15213         * manual/stdio.texi (fopen): Fix typos in description of
15214         ",ccs=STRING".
15215
15216 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
15217
15218         [BZ #4026]
15219         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
15220         get clock_id definition.
15221
15222 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
15223
15224         [BZ #4822]
15225         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
15226         (madvise): Cast every argument to void on its own.
15227
15228 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15229
15230         [BZ #9902]
15231         * manual/startup.texi (Exit Status): Fix typo.
15232
15233 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15234
15235         [BZ #10140]
15236         * manual/examples/argp-ex1.c: Include <stdlib.h>.
15237         * manual/examples/argp-ex2.c: Likewise.
15238         * manual/examples/argp-ex3.c: Likewise.
15239
15240 2012-02-16  Richard Henderson  <rth@redhat.com>
15241
15242         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
15243         * sysdeps/s390/s390-32/initfini.c: Remove.
15244         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
15245         * sysdeps/s390/s390-64/initfini.c: Remove.
15246
15247 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15248
15249         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
15250         compiler output for sysdeps/generic/initfini.c.
15251         * sysdeps/sh/elf/initfini.c: Remove file.
15252
15253 2012-02-16  David S. Miller  <davem@davemloft.net>
15254
15255         [BZ #11494]
15256         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
15257
15258         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
15259         * sysdeps/sparc/crti.S: New file.
15260         * sysdeps/sparc/crtn.S: New file.
15261         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
15262         * sysdeps/sparc/sparc64/Makefile: Likewise.
15263
15264 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
15265
15266         [BZ #3335]
15267         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
15268
15269 2012-02-15  Roland McGrath  <roland@hack.frob.com>
15270
15271         [BZ #4822]
15272         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
15273
15274         * mach/devstream.c (cookie_io_functions_t): Macro removed.
15275         (write, read, close): Likewise.
15276         Patch by Aurelien Jarno <aurelien@aurel32.net>.
15277
15278 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
15279
15280         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
15281         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
15282         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
15283         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
15284         <bits/signalfd.h>.
15285         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
15286         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15287         bits/signalfd.h.
15288
15289 2012-02-14  Marek Polacek  <polacek@redhat.com>
15290
15291         * sysdeps/x86_64/crti.S: New file.
15292         * sysdeps/x86_64/crtn.S: New file.
15293         * sysdeps/x86_64/elf/initfini.c: Remove file.
15294
15295 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
15296
15297         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
15298         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
15299         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
15300         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
15301         <bits/inotify.h>.
15302         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
15303         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15304         bits/inotify.h.
15305
15306 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
15307
15308         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
15309         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
15310         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
15311         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
15312         <bits/eventfd.h>.
15313         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
15314         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15315         bits/eventfd.h.
15316
15317 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
15318
15319         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
15320         __feraiseexcept instead of feraiseexcept.
15321
15322         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
15323         nanosleep invocations.
15324         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
15325         strings, and add error checking for a nanosleep invocations.
15326
15327 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15328
15329         Replace FSF snail mail address with URLs, as per GNU coding standards.
15330         Most of the snail mail addresses were wrong anyway, and omitting
15331         them makes the source code easier to maintain.  Almost all of the
15332         changes are to license notices and to locale LC_IDENTIFICATION
15333         addresses, except for this one:
15334         * manual/libc.texinfo: In "Published by", give the FSF's URL,
15335         not its snail mail address.
15336
15337 2012-02-09  Richard Henderson  <rth@twiddle.net>
15338
15339         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
15340         of kernel-features.h.
15341
15342         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
15343
15344 2012-02-08  Marek Polacek  <polacek@redhat.com>
15345
15346         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
15347         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
15348         * sysdeps/gnu/_G_config.h: Likewise.
15349         * sysdeps/generic/_G_config.h: Likewise.
15350
15351 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
15352
15353         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
15354         tests.
15355         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15356
15357         * sysdeps/powerpc/powerpc32/crti.S: New file.
15358         * sysdeps/powerpc/powerpc32/crtn.S: New file.
15359         * sysdeps/powerpc/powerpc64/crti.S: New file.
15360         * sysdeps/powerpc/powerpc64/crtn.S: New file.
15361
15362         * Makeconfig (have-initfini): Don't set.
15363         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
15364         * configure.in (nopic_initfini): Don't substitute.
15365         * config.h.in (HAVE_INITFINI): Don't #undef.
15366         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
15367         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
15368
15369 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
15370
15371         Support crti.S and crtn.S provided directly by architectures.
15372         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
15373         [crti.S in sysdirs] (omit-deps): Likewise.
15374         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
15375         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
15376         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
15377         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
15378         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
15379         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
15380         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
15381         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
15382         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
15383         compiler output for sysdeps/generic/initfini.c.
15384         * sysdeps/i386/elf/Makefile: Remove file.
15385         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
15386
15387 2012-02-07  Marek Polacek  <polacek@redhat.com>
15388
15389         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
15390         * sysdeps/gnu/_G_config.h: Likewise.
15391         * sysdeps/mach/hurd/_G_config.h: Likewise.
15392
15393 2012-02-07  Marek Polacek  <polacek@redhat.com>
15394
15395         * math/Makefile (tests): Add tst-CMPLX2.
15396         * math/tst-CMPLX2.c: New file.
15397
15398 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
15399
15400         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15401
15402         * math/libm-test.inc (jn_test): Add missing L suffix.
15403
15404 2012-02-06  Marek Polacek  <polacek@redhat.com>
15405
15406         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
15407         * sysdeps/i386/fpu/e_powf.S: Likewise.
15408         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15409         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
15410         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15411         * sysdeps/i386/fpu/e_pow.S: Likewise.
15412         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
15413         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15414         * sysdeps/i386/fpu/s_expm1.S: Likewise.
15415         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
15416         * sysdeps/i386/fpu/e_log2.S: Likewise.
15417         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15418         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15419         * sysdeps/i386/fpu/e_powl.S: Likewise.
15420         * sysdeps/i386/fpu/s_log1p.S: Likewise.
15421         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15422         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
15423         * sysdeps/i386/fpu/e_logl.S: Likewise.
15424         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
15425         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
15426         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
15427         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
15428         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15429         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15430         * sysdeps/i386/fpu/e_log.S: Likewise.
15431         * sysdeps/i386/fpu/s_cexp.S: Likewise.
15432         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15433         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
15434         * sysdeps/i386/fpu/e_logf.S: Likewise.
15435         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15436         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15437         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
15438         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
15439         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
15440         * sysdeps/i386/fpu/e_log10.S: Likewise.
15441         * sysdeps/i386/fpu/s_frexp.S: Likewise.
15442         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15443         * sysdeps/i386/fpu/s_asinh.S: Likewise.
15444         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
15445         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15446         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
15447         * sysdeps/i386/asm-syntax.h: Likewise.
15448         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15449         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15450         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15451         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
15452         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
15453         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15454         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
15455         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
15456         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15457         * sysdeps/powerpc/sysdep.h: Likewise.
15458         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
15459         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15460
15461 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
15462
15463         [BZ #411]
15464         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
15465
15466 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
15467
15468         * sysdeps/i386/sysdep.h: Include <features.h>.
15469         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
15470         version.
15471
15472 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
15473
15474         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
15475         Define.
15476         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
15477         LOAD_PIC_REG_STR.
15478
15479 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
15480
15481         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
15482         (SETUP_PIC_REG): Use GET_PC_THUNK.
15483         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
15484         macro.
15485
15486 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
15487
15488         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
15489         for non-PIC compilation.
15490         (SETUP_PIC_REG): Add .p2align directive.
15491         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
15492         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
15493         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
15494         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
15495         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
15496         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
15497         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
15498         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
15499         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
15500         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
15501         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
15502         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
15503         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
15504         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
15505         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
15506         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15507         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15508         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
15509         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
15510         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
15511         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15512         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15513         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
15514         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
15515         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
15516         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
15517         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15518         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15519         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
15520         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
15521         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
15522         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15523         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
15524         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
15525         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
15526         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
15527         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
15528         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
15529         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
15530         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
15531         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
15532
15533 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
15534
15535         * math/tst-CMPLX.c: Include <stdio.h>.
15536
15537 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
15538
15539         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
15540         float.
15541         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15542         * sysdeps/sparc/bits/mathdef.h: Likewise.
15543
15544 2012-01-31  Marek Polacek  <polacek@redhat.com>
15545
15546         * libio/libio.h: Don't define _PARAMS.
15547         * locale/programs/config.h: Don't define PARAMS.
15548         * stdlib/strtol_l.c: Likewise.
15549         (__strtol_l): Remove PARAMS from the prototype.
15550
15551 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
15552
15553         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
15554         names.  Just use the correct names.  Remove unnecessary wrapper
15555         functions.
15556         * malloc/arena.c: Likewise.
15557         * malloc/hooks.c: Likewise.
15558
15559         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
15560         ARENA_TEST says not to.  Simplify test for creation of a new arena.
15561         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
15562
15563 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
15564
15565         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
15566         into tail calls.
15567         (update_get_addr): New function.
15568         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
15569         GET_ADDR_MODULE parameter.
15570
15571 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
15572
15573         * crypt/cert.c: Remove __STDC__ conditionals.
15574         * crypt/crypt-entry.c: Likewise.
15575         * crypt/crypt_util.c: Likewise.
15576         * libio/filedoalloc.c: Likewise.
15577         * libio/fileops.c: Likewise.
15578         * libio/genops.c: Likewise.
15579         * libio/iofclose.c: Likewise.
15580         * libio/iofdopen.c: Likewise.
15581         * libio/iofopen.c: Likewise.
15582         * libio/iofopen64.c: Likewise.
15583         * libio/iogetdelim.c: Likewise.
15584         * libio/iopopen.c: Likewise.
15585         * libio/obprintf.c: Likewise.
15586         * libio/oldfileops.c: Likewise.
15587         * libio/oldiofclose.c: Likewise.
15588         * libio/oldiofdopen.c: Likewise.
15589         * libio/oldiofopen.c: Likewise.
15590         * libio/oldiopopen.c: Likewise.
15591         * libio/wfiledoalloc.c: Likewise.
15592         * libio/wgenops.c: Likewise.
15593         * locale/programs/xmalloc.c: Likewise.
15594         * misc/syslog.c: Likewise.
15595         * stdio-common/xbug.c: Likewise.
15596         * string/memchr.c: Likewise.
15597         * string/memcmp.c: Likewise.
15598         * string/memrchr.c: Likewise.
15599         * string/rawmemchr.c: Likewise.
15600         * sysdeps/posix/getcwd.c: Likewise.
15601         * time/strftime_l.c: Likewise.
15602
15603 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
15604
15605         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
15606         * config.make.in (config-cflags-sse2avx): Define.
15607         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
15608         Fix typo.
15609
15610 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
15611
15612         * scripts/config.guess: Update from upstream config git repository.
15613         * scripts/config.sub: Likewise.
15614
15615 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
15616
15617         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
15618         (EM_NUM): Update.
15619         (R_TILEPRO_*, R_TILEGX_*): New macros.
15620
15621         * scripts/firstversions.awk: Fix bug in version range handling.
15622
15623         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
15624
15625         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
15626
15627         * include/sys/epoll.h: New file.
15628         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
15629         libc_hidden_def.
15630
15631 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
15632
15633         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
15634         Avoid unnecessary __WORDSIZE == 64 test.
15635         (fmaxf): Use VEX format if possible.
15636         (fmax): Likewise.
15637         (fminf): Likewise.
15638         (fmin): Likewise.
15639
15640         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
15641         * math/math_private.h: Remove libc_fegetround* and
15642         libc_fesetround*.
15643         * sysdeps/i386/configure.in: Check for -msse2avx.
15644         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
15645         also if SSE2AVX is defined.
15646         Remove libc_fegetround* and libc_fesetround*.
15647         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
15648         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
15649         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
15650         of HAS_YMM_USABLE.
15651         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15652         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15653         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15654         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15655         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15656
15657         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
15658
15659 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15660
15661         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
15662         size is not set.
15663         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15664
15665 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
15666
15667         [BZ #13618]
15668         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
15669         relocation.
15670         * Makeconfig (libm): Define.
15671         * elf/Makefile: Add rules to build and run tst-relsort1.
15672         * elf/tst-relsort1.c: New file.
15673         * elf/tst-relsort1mod1.c: New file.
15674         * elf/tst-relsort1mod2.c: New file.
15675
15676 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
15677
15678         * math/s_ldexp.c: Remove __STDC__ conditionals.
15679         * math/s_ldexpf.c: Likewise.
15680         * math/s_ldexpl.c: Likewise.
15681         * math/s_nextafter.c: Likewise.
15682         * math/s_nexttowardf.c: Likewise.
15683         * math/s_significand.c: Likewise.
15684         * math/s_significandf.c: Likewise.
15685         * math/s_significandl.c: Likewise.
15686         * math/w_jnl.c: Likewise.
15687         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
15688         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
15689         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
15690         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
15691         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
15692         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15693         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
15694         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
15695         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15696         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
15697         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
15698         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15699         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
15700         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
15701         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
15702         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
15703         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
15704         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
15705         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
15706         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15707         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15708         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
15709         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
15710         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15711         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15712         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15713         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15714         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
15715         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
15716         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15717         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15718         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
15719         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15720         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
15721         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
15722         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15723         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
15724         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
15725         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
15726         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
15727         * sysdeps/ieee754/k_standard.c: Likewise.
15728         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15729         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15730         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15731         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
15732         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
15733         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
15734         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15735         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
15736         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
15737         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
15738         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
15739         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
15740         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
15741         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
15742         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
15743         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15744         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15745         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15746         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15747         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
15748         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15749         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15750         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
15751         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15752         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15753         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
15754         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15755         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15756         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15757         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15758         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15759         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
15760         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
15761         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
15762         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15763         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
15764         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
15765         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
15766         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
15767         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
15768         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
15769         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
15770         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
15771         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
15772         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
15773         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
15774         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15775         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15776         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15777         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
15778         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
15779         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15780         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15781         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
15782         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15783         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
15784         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
15785         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15786         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15787         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15788         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15789         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15790         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15791         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15792         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15793         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15794         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15795         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15796         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15797         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15798         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15799         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15800         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15801         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15802         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15803         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15804         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15805         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15806         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15807         * sysdeps/ieee754/s_matherr.c: Likewise.
15808         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15809         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15810         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15811         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15812
15813 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15814
15815         * crypt/md5.h: Remove __STDC__ conditionals.
15816         * libio/libioP.h: Likewise.
15817         * locale/programs/config.h: Likewise.
15818         * sysdeps/generic/sysdep.h: Likewise.
15819         * sysdeps/i386/asm-syntax.h: Likewise.
15820         * sysdeps/s390/asm-syntax.h: Likewise.
15821         * sysdeps/unix/sysdep.h: Likewise.
15822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15824
15825 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15826
15827         * libio/libio.h: Remove __STDC__ conditionals.
15828         * malloc/obstack.h: Likewise.
15829         * math/complex.h: Likewise.
15830         * math/math.h: Likewise.
15831         * sysdeps/generic/_G_config.h: Likewise.
15832         * sysdeps/gnu/_G_config.h: Likewise.
15833         * sysdeps/mach/hurd/_G_config.h: Likewise.
15834         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15835         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15836         * sysdeps/sparc/bits/mathdef.h: Likewise.
15837
15838 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15839
15840         [BZ #13583]
15841         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15842         Clean up HAS_* macros.
15843         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15844         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15845         possible.
15846         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15847         HAS_AVX.
15848         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15849         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15850         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15851         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15852         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15853
15854 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15855
15856         * elf/tst-unique3.cc (gets): Remove declaration.
15857         * elf/tst-unique3lib.cc (gets): Likewise.
15858         * elf/tst-unique3lib2.cc (gets): Likewise.
15859         * elf/tst-unique4.cc (gets): Likewise.
15860
15861 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15862
15863         * include/stdio.h: Add C++ protection.  Add gets declarations and
15864         definitions.
15865         * debug/tst-chk1.c: Don't declare gets here.
15866         * stdio-common/tst-gets.c: Likewise.
15867
15868 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15869
15870         * posix/glob: Remove directory.
15871
15872 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15873
15874         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15875
15876 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15877
15878         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15879         of the non-standard EPFNOSUPPORT.
15880
15881 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15882
15883         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15884         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15885         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15886
15887 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15888
15889         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15890
15891 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15892
15893         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15894         transient errors.
15895         * nscd/grpcache.c (cache_addgr): Likewise.
15896         * nscd/hstcache.c (cache_addhst): Likewise.
15897         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15898         * nscd/pwdcache.c (cache_addpw): Likewise.
15899         * nscd/servicescache.c (cache_addserv): Likewise.
15900
15901 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15902
15903         * malloc/malloc.c: Various cleanups.
15904         * malloc/hooks.c: Likewise.
15905
15906         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15907         * stdlib/bug-fmtmsg1.c: New file.
15908
15909         * stdlib/fmtmsg.c (init): Add missing unlock.
15910         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15911
15912 2012-01-12  Marek Polacek  <polacek@redhat.com>
15913
15914         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15915         and _GNU_SOURCE.
15916
15917 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15918
15919         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15920         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15921         macro to ensure uniqueness of label name.
15922         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15923         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15924
15925 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15926
15927         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15928
15929         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15930         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15931         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15932         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15933
15934 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15935
15936         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15937
15938         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15939         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15940         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15941
15942         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15943
15944         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15945         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15946         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15947         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15948
15949         * math/bits/math-finite.h: Add ldexp support.
15950
15951 2012-01-10  Marek Polacek  <polacek@redhat.com>
15952
15953         * locale/programs/localedef.h (show_archive_content): Add noreturn
15954         attribute.
15955
15956 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15957
15958         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15959
15960 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15961
15962         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15963
15964         * io/Makefile (headers): Add bits/poll2.h.
15965
15966 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15967
15968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15969         typo #include statement.
15970
15971 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15972
15973         * include/sys/cdefs.h: Define __attribute_alloc_size.
15974         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15975         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15976         * elf/pldd.c: Likewise.
15977         * iconv/iconv_charmap.c: Likewise.
15978         * iconv/iconvconfig.c: Likewise.
15979         * iconv/strtab.c: Likewise.
15980         * locale/programs/locale.c: Likewise.
15981         * locale/programs/localedef.h: Likewise.
15982         * locale/programs/simple-hash.c: Likewise.
15983         * nscd/nscd.h: Likewise.
15984         * nss/makedb.c: Likewise.
15985         * sysdeps/generic/ldconfig.h: Likewise.
15986         * locale/programs/localedef.c: Remove xmalloc prototype.
15987         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15988
15989 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15990
15991         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15992         appropriate.
15993
15994 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15995
15996         * math/Makefile (tests): Add tst-CMPLX.
15997         * math/tst-CMPLX.c: New file.
15998
15999         * math/complex.h (CMPLXL): Fix typo.
16000
16001         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
16002         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
16003         GLIBC_2.16.
16004         * debug/tst-chk1.c: Add poll and ppoll tests.
16005         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
16006         * include/sys/poll.h: Add hidden proto for ppoll.
16007         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
16008         * sysdeps/mach/hurd/ppoll.c: Likewise.
16009         * io/ppoll.c: Likewise.
16010         * debug/poll_chk.c: New file.
16011         * debug/ppoll_chk.c: New file.
16012         * include/bits/poll2.h: New file.
16013         * io/bits/poll2.h: New file.
16014
16015         [BZ #1350]
16016         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
16017
16018         * configure.in: static is always set to yes.  Remove.
16019         * config.make.in: Don't set build-static.
16020         * Makeconfig: Remove use of build-static.
16021         * dlfcn/Makefile: Likewise.
16022         * elf/Makefile: Likewise.
16023         * math/Makefile: Likewise.
16024         * misc/Makefile: Likewise.
16025         * nptl/Makefile: Likewise.
16026         * sysdeps/mach/hurd/Makefile: Likewise.
16027
16028         * configure.in: PWD_P is not used anymore.
16029         * config.make.in: Remove PWD_P entry.
16030
16031         * configure.in: Remove last remnants of RANLIB.
16032         No need to check for signed size_t anymore.
16033         Don't set libc_commonpagesize and libc_relro_required here for Alpha
16034         and IA-64.
16035         Remove __builtin_expect test because we require at least gcc 3.4.
16036         * aclocal.m4: Likewise.
16037
16038         * wcsmbs/mbrtoc16.c: Implement using towc function.
16039         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
16040         * wcsmbs/wcsmbsload.c: Likewise.
16041         * iconv/gconv_simple.c: Likewise.
16042         * iconv/gconv_int.h: Likewise.
16043         * iconv/gconv_builtin.h: Likewise.
16044         * iconv/iconv_prog.c: Remove CHAR16 handling.
16045
16046         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
16047
16048         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
16049
16050         * configure.in: Remove --with-elf and --enable-bounded options.
16051         Dont set base_machine for ia64.  More non-ELF conditions removed.
16052         Remove testing and setting of leading underscore information.
16053         * config.make.in (build-bounded): Set to no.
16054         * config.h.in: Remove NO_UNDERSCORES entry.
16055         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
16056         them.
16057         * csu/start.c: Remove !NO_UNDERSCORE code.
16058         * locale/localeinfo.h: Likewise.
16059         * sysdeps/generic/machine-gmon.h: Likewise.
16060         * sysdeps/generic/sysdep.h: Likewise.
16061         * sysdeps/i386/sysdep.h: Likewise.
16062         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
16063         * sysdeps/mach/sysdep.h: Likewise.
16064         * sysdeps/s390/s390-32/sysdep.h: Likewise.
16065         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16066         * sysdeps/sh/sysdep.h: Likewise.
16067         * sysdeps/sparc/sparc32/alloca.S: Likewise.
16068         * sysdeps/unix/i386/sysdep.S: Likewise.
16069         * sysdeps/unix/sparc/start.c: Likewise.
16070         * sysdeps/unix/sparc/sysdep.S: Likewise.
16071         * sysdeps/unix/sparc/sysdep.h: Likewise.
16072         * sysdeps/unix/start.c: Likewise.
16073         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16074         * sysdeps/x86_64/sysdep.h: Likewise.
16075
16076 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
16077
16078         [BZ #13553]
16079         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
16080         for non-gcc.
16081         * argp/argp-fmtstream.h: Use const instead __const.
16082         * argp/argp.h: Likewise.
16083         * assert/assert.h: Likewise.
16084         * bits/fenv.h: Likewise.
16085         * bits/sched.h: Likewise.
16086         * bits/sigset.h: Likewise.
16087         * bits/sigthread.h: Likewise.
16088         * catgets/nl_types.h: Likewise.
16089         * conform/data/pthread.h-data: Likewise.
16090         * crypt/crypt-private.h: Likewise.
16091         * crypt/crypt.h: Likewise.
16092         * crypt/crypt_util.c: Likewise.
16093         * ctype/ctype.h: Likewise.
16094         * debug/execinfo.h: Likewise.
16095         * debug/mbsnrtowcs_chk.c: Likewise.
16096         * debug/mbsrtowcs_chk.c: Likewise.
16097         * debug/wcsnrtombs_chk.c: Likewise.
16098         * debug/wcsrtombs_chk.c: Likewise.
16099         * debug/wcstombs_chk.c: Likewise.
16100         * dirent/dirent.h: Likewise.
16101         * dlfcn/dlfcn.h: Likewise.
16102         * elf/neededtest4.c: Likewise.
16103         * grp/grp.h: Likewise.
16104         * gshadow/gshadow.h: Likewise.
16105         * iconv/gconv.h: Likewise.
16106         * iconv/gconv_int.h: Likewise.
16107         * iconv/gconv_simple.c: Likewise.
16108         * iconv/iconv.h: Likewise.
16109         * iconv/loop.c: Likewise.
16110         * iconv/skeleton.c: Likewise.
16111         * include/aio.h: Likewise.
16112         * include/aliases.h: Likewise.
16113         * include/argz.h: Likewise.
16114         * include/arpa/inet.h: Likewise.
16115         * include/assert.h: Likewise.
16116         * include/dirent.h: Likewise.
16117         * include/dlfcn.h: Likewise.
16118         * include/execinfo.h: Likewise.
16119         * include/fcntl.h: Likewise.
16120         * include/fenv.h: Likewise.
16121         * include/glob.h: Likewise.
16122         * include/grp.h: Likewise.
16123         * include/libintl.h: Likewise.
16124         * include/mntent.h: Likewise.
16125         * include/netdb.h: Likewise.
16126         * include/pwd.h: Likewise.
16127         * include/rpc/netdb.h: Likewise.
16128         * include/sched.h: Likewise.
16129         * include/search.h: Likewise.
16130         * include/shadow.h: Likewise.
16131         * include/signal.h: Likewise.
16132         * include/stdio.h: Likewise.
16133         * include/stdlib.h: Likewise.
16134         * include/string.h: Likewise.
16135         * include/sys/socket.h: Likewise.
16136         * include/sys/stat.h: Likewise.
16137         * include/sys/statfs.h: Likewise.
16138         * include/sys/statvfs.h: Likewise.
16139         * include/sys/syslog.h: Likewise.
16140         * include/sys/time.h: Likewise.
16141         * include/sys/uio.h: Likewise.
16142         * include/time.h: Likewise.
16143         * include/unistd.h: Likewise.
16144         * include/utmp.h: Likewise.
16145         * include/wchar.h: Likewise.
16146         * include/wctype.h: Likewise.
16147         * inet/aliases.h: Likewise.
16148         * inet/arpa/inet.h: Likewise.
16149         * inet/netinet/ether.h: Likewise.
16150         * inet/netinet/in.h: Likewise.
16151         * intl/libintl.h: Likewise.
16152         * io/bits/fcntl2.h: Likewise.
16153         * io/fcntl.h: Likewise.
16154         * io/ftw.h: Likewise.
16155         * io/sys/poll.h: Likewise.
16156         * io/sys/stat.h: Likewise.
16157         * io/sys/statfs.h: Likewise.
16158         * io/sys/statvfs.h: Likewise.
16159         * io/utime.h: Likewise.
16160         * libio/bits/stdio.h: Likewise.
16161         * libio/bits/stdio2.h: Likewise.
16162         * libio/libio.h: Likewise.
16163         * libio/libioP.h: Likewise.
16164         * libio/stdio.h: Likewise.
16165         * locale/lc-ctype.c: Likewise.
16166         * locale/locale.h: Likewise.
16167         * login/utmp.h: Likewise.
16168         * malloc/arena.c: Likewise.
16169         * malloc/malloc.c: Likewise.
16170         * malloc/malloc.h: Likewise.
16171         * malloc/mcheck.c: Likewise.
16172         * malloc/mtrace.c: Likewise.
16173         * math/bits/mathcalls.h: Likewise.
16174         * math/fenv.h: Likewise.
16175         * math/math_private.h: Likewise.
16176         * misc/bits/error.h: Likewise.
16177         * misc/bits/syslog.h: Likewise.
16178         * misc/err.h: Likewise.
16179         * misc/error.h: Likewise.
16180         * misc/fstab.h: Likewise.
16181         * misc/mntent.h: Likewise.
16182         * misc/regexp.h: Likewise.
16183         * misc/search.h: Likewise.
16184         * misc/sgtty.h: Likewise.
16185         * misc/sys/mman.h: Likewise.
16186         * misc/sys/syslog.h: Likewise.
16187         * misc/sys/uio.h: Likewise.
16188         * misc/sys/xattr.h: Likewise.
16189         * misc/ttyent.h: Likewise.
16190         * nis/rpcsvc/ypclnt.h: Likewise.
16191         * nss/nss.h: Likewise.
16192         * posix/bits/unistd.h: Likewise.
16193         * posix/fnmatch.h: Likewise.
16194         * posix/glob.h: Likewise.
16195         * posix/sched.h: Likewise.
16196         * posix/spawn.h: Likewise.
16197         * posix/sys/wait.h: Likewise.
16198         * posix/unistd.h: Likewise.
16199         * posix/wordexp.h: Likewise.
16200         * pwd/pwd.h: Likewise.
16201         * resolv/netdb.h: Likewise.
16202         * resource/sys/resource.h: Likewise.
16203         * rt/aio.h: Likewise.
16204         * rt/bits/mqueue2.h: Likewise.
16205         * rt/mqueue.h: Likewise.
16206         * shadow/shadow.h: Likewise.
16207         * signal/signal.h: Likewise.
16208         * socket/send.c: Likewise.
16209         * socket/sendto.c: Likewise.
16210         * socket/sys/socket.h: Likewise.
16211         * stdio-common/printf.h: Likewise.
16212         * stdlib/bits/stdlib.h: Likewise.
16213         * stdlib/fmtmsg.h: Likewise.
16214         * stdlib/monetary.h: Likewise.
16215         * stdlib/stdlib.h: Likewise.
16216         * stdlib/ucontext.h: Likewise.
16217         * streams/stropts.h: Likewise.
16218         * string/argz.h: Likewise.
16219         * string/bits/string2.h: Likewise.
16220         * string/string.h: Likewise.
16221         * string/strings.h: Likewise.
16222         * sunrpc/rpc/auth.h: Likewise.
16223         * sunrpc/rpc/auth_des.h: Likewise.
16224         * sunrpc/rpc/clnt.h: Likewise.
16225         * sunrpc/rpc/netdb.h: Likewise.
16226         * sunrpc/rpc/pmap_clnt.h: Likewise.
16227         * sunrpc/rpc/xdr.h: Likewise.
16228         * sysdeps/generic/inttypes.h: Likewise.
16229         * sysdeps/generic/net/if.h: Likewise.
16230         * sysdeps/generic/sys/swap.h: Likewise.
16231         * sysdeps/gnu/net/if.h: Likewise.
16232         * sysdeps/gnu/utmpx.h: Likewise.
16233         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
16234         * sysdeps/i386/i486/bits/string.h: Likewise.
16235         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
16236         * sysdeps/s390/bits/string.h: Likewise.
16237         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
16238         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
16239         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
16240         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
16241         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
16242         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
16243         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
16244         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
16245         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
16246         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
16247         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
16248         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
16249         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
16250         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
16251         * sysdeps/unix/sysv/linux/readv.c: Likewise.
16252         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
16253         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
16254         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16255         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
16256         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
16257         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
16258         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
16259         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
16260         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
16261         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
16262         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
16263         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
16264         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
16265         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
16266         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
16267         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
16268         * sysvipc/sys/ipc.h: Likewise.
16269         * sysvipc/sys/msg.h: Likewise.
16270         * sysvipc/sys/sem.h: Likewise.
16271         * sysvipc/sys/shm.h: Likewise.
16272         * termios/termios.h: Likewise.
16273         * time/sys/time.h: Likewise.
16274         * time/time.h: Likewise.
16275         * wcsmbs/bits/wchar2.h: Likewise.
16276         * wcsmbs/uchar.h: Likewise.
16277         * wcsmbs/wchar.h: Likewise.
16278         * wctype/wctype.h: Likewise.
16279
16280         [BZ #13551]
16281         * Makeconfig: Remove all but ELF support including AIX support.
16282         * Makerules: Likewise.
16283         * config.h.in: Likewise.
16284         * config.make.in: Likewise.
16285         * configure: Likewise.
16286         * configure.in: Likewise.
16287         * csu/Makefile: Likewise.
16288         * csu/version.c: Likewise.
16289         * debug/Makefile: Likewise.
16290         * dlfcn/Makefile: Likewise.
16291         * elf/Makefile: Likewise.
16292         * extra-lib.mk: Likewise.
16293         * iconv/Makefile: Likewise.
16294         * include/libc-symbols.h: Likewise.
16295         * include/shlib-compat.h: Likewise.
16296         * resolv/Makefile: Likewise.
16297         * resolv/res_libc.c: Likewise.
16298         * rt/Makefile: Likewise.
16299         * sysdeps/i386/asm-syntax.h: Likewise.
16300         * sysdeps/i386/sysdep.h: Likewise.
16301         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
16302         * sysdeps/mach/sysdep.h: Likewise.
16303         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
16304         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
16305         * sysdeps/s390/asm-syntax.h: Likewise.
16306         * sysdeps/s390/s390-32/sysdep.h: Likewise.
16307         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16308         * sysdeps/sh/sysdep.h: Likewise.
16309         * sysdeps/unix/sparc/sysdep.h: Likewise.
16310         * sysdeps/wordsize-32/divdi3.c: Likewise.
16311         * sysdeps/x86_64/sysdep.h: Likewise.
16312
16313         * argp/Versions: Remove _argp_unlock_xxx.
16314
16315         [BZ #13559]
16316         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
16317         * abilist/libBrokenLocale.abilist: Likewise.
16318         * abilist/libanl.abilist: Likewise.
16319         * abilist/libc.abilist: Likewise.
16320         * abilist/libcrypt.abilist: Likewise.
16321         * abilist/libdl.abilist: Likewise.
16322         * abilist/libm.abilist: Likewise.
16323         * abilist/libnsl.abilist: Likewise.
16324         * abilist/libpthread.abilist: Likewise.
16325         * abilist/libresolv.abilist: Likewise.
16326         * abilist/librt.abilist: Likewise.
16327         * abilist/libthread_db.abilist: Likewise.
16328         * abilist/libutil.abilist: Likewise.
16329         * abilist/libnss_db.abilist: New file.
16330
16331         * scripts/abilist.awk: Add support for indirect functions.
16332
16333         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
16334
16335         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
16336
16337         * shlib-versions: Remove entries for ports architectures.
16338
16339         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
16340         files in ports.
16341         * elf/stackguard-macros.h: Remove support for IA-64.
16342         * elf/tst-auditmod1.c: Likewise.
16343         * sysdeps/generic/ldsodefs.h: Likewise.
16344
16345         * sysdeps/unix/sysv/linux/configure.in: Ports should define
16346         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
16347         configure files.
16348
16349         [BZ #13552]
16350         * configure.in: Remove --enable-omitfp support.
16351         * FAQ.in: Adjust.
16352         * config.make.in: Likewise.
16353         * Makeconfig: Likewise.
16354         * manual/install.texi: Likewise.
16355
16356         In case anyone cares, the IA-64 architecture could move to ports.
16357         * sysdeps/ia64/*: Removed.
16358         * sysdeps/unix/sysv/linux/ia64/*: Removed.
16359         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
16360
16361         [BZ #13555]
16362         * configure.in: Remove entries for unsupported architectures.
16363
16364         [BZ #13533]
16365         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
16366         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
16367         routines.
16368         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
16369         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
16370         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
16371         fall back to using wcrtomb.
16372         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
16373         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
16374         renaming.
16375         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
16376         * wcsmbs/tst-c16c32-1.c: New file.
16377
16378         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
16379         local variable.
16380
16381         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
16382
16383         * elf/tst-unique3.cc: Add explicit declaration of gets.
16384         * elf/tst-unique3lib.cc: Likewise.
16385         * elf/tst-unique3lib2.cc: Likewise.
16386         * elf/tst-unique4.cc: Likewise.
16387
16388         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
16389
16390 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
16391
16392         [BZ #13566]
16393         * assert/assert.h (static_assert): Don't define for C++.
16394         * libio/stdio.h (gets): Do declare for C++ <= C++11.
16395         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
16396
16397 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
16398
16399         * iconv/loop.c (single loop): Fix assertion in storing of
16400         remaining bytes.
16401
16402         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
16403
16404 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
16405
16406         * posix/getconf.c: Update copyright year.
16407         * nss/getent.c: Likewise.
16408         * nss/makedb.c: Likewise.
16409         * iconv/iconvconfig.c: Likewise.
16410         * iconv/iconv_prog.c: Likewise.
16411         * elf/ldconfig.c: Likewise.
16412         * elf/pldd.c: Likewise.
16413         * elf/sotruss.ksh: Likewise.
16414         * catgets/gencat.c: Likewise.
16415         * csu/version.c: Likewise.
16416         * elf/ldd.bash.in: Likewise.
16417         * elf/sprof.c (print_version): Likewise.
16418         * locale/programs/locale.c: Likewise.
16419         * locale/programs/localedef.c: Likewise.
16420         * login/programs/pt_chown.c: Likewise.
16421         * nscd/nscd.c (print_version): Likewise.
16422         * debug/xtrace.sh: Likewise.
16423         * malloc/memusage.sh: Likewise.
16424         * malloc/mtrace.pl: Likewise.
16425         * debug/catchsegv.sh: Likewise.
16426
16427 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
16428
16429         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
16430         pure attribute.
16431
16432 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
16433
16434         [BZ #13533]
16435         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
16436         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
16437         transformations.
16438         * iconv/gconv_int.h: Likewise.
16439         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
16440         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
16441         from libc for GLIBC_2.16.
16442         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
16443         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
16444         * wcsmbs/uchar.h: Really define mbstate_t.
16445         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
16446         * wcsmbs/c16rtomb.c: New file.
16447         * wcsmbs/mbrtoc16.c: New file.
16448         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
16449         for C/POSIX locale.
16450         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
16451         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
16452
16453         * wcsmbs/wchar.h: Add missing __restrict.
16454
16455 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
16456
16457         [BZ #13532]
16458         * time/Makefile (routines): Add timespec_get.
16459         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
16460         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
16461         timespec for ISO C11.
16462         * time/timespec_get.c: New file.
16463         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
16464         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
16465
16466         [BZ #13531]
16467         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
16468         * stdlib/stdlib.h: Declare aligned_alloc.
16469         * Versions.def: Add GLIBC_2.16 for libc.
16470         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
16471
16472         [BZ 13527]
16473         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
16474         ISO C11.
16475
16476         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
16477         code.
16478
16479         [BZ #13528]
16480         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
16481
16482         [BZ #13529]
16483         * assert/assert.h (static_assert): Define.
16484
16485         * version.h: Update for 2.16 development version.
16486
16487         [BZ #13526]
16488         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
16489         _ISOC11_SOURCE.
16490
16491         * version.h (RELEASE): Bump for 2.15 release.
16492         * include/features.h (__GLIBC_MINOR__): Bump to 15.
16493
16494         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
16495         Patch by Marek Polacek <mpolacek@redhat.com>.
16496
16497         * bits/byteswap.h: Protect long long constants with __extension__.
16498         * sysdeps/i386/bits/byteswap.h: Likewise.
16499         * sysdeps/ia64/bits/byteswap.h: Likewise.
16500         * sysdeps/s390/bits/byteswap.h: Likewise.
16501         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16502
16503 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16504
16505         [BZ #13540]
16506         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
16507         destination buffer.
16508         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
16509
16510 2011-12-23  Marek Polacek  <polacek@redhat.com>
16511
16512         * elf/dl-addr.c (determine_info): Add inline keyword.
16513         * elf/tst-auditmod4b.c (check_avx): Likewise.
16514         * elf/tst-auditmod6b.c (check_avx): Likewise.
16515         * elf/tst-auditmod6c.c (check_avx): Likewise.
16516         * elf/tst-auditmod7b.c (check_avx): Likewise.
16517
16518 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
16519
16520         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
16521         !__SSE_MATH__.
16522
16523 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16524
16525         [BZ #13540]
16526         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
16527         processing for last bytes.
16528
16529 2011-08-06  Bruno Haible  <bruno@clisp.org>
16530
16531         [BZ #13061]
16532         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
16533         U+0385, not to U+1FEE.
16534
16535         [BZ #13062]
16536         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
16537         entry for U+00A5 U+0301.
16538
16539 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
16540
16541         [BZ #13166]
16542         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
16543         buffer for the output is too small.
16544
16545         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
16546         optimization.
16547
16548         [BZ #13185]
16549         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
16550         SSE flags if possible.
16551
16552 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16553
16554         [BZ #13540]
16555         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
16556         processing for last bytes.
16557
16558 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
16559
16560         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
16561         (syscall-list-default-options, syscall-list-default-condition)
16562         (syscall-list-includes): Define.
16563         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
16564         list of ABIs and options and #if conditions for each ABI.  Do not
16565         handle common syscalls between ABIs specially.
16566         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
16567         Remove.
16568         (syscall-list-variants, syscall-list-32bit-options)
16569         (syscall-list-32bit-condition, syscall-list-64bit-options)
16570         (syscall-list-64bit-condition): Define.
16571         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
16572         (syscall-list-variants, syscall-list-32bit-options)
16573         (syscall-list-32bit-condition, syscall-list-64bit-options)
16574         (syscall-list-64bit-condition): Define.
16575         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
16576         Remove.
16577         (syscall-list-variants, syscall-list-32bit-options)
16578         (syscall-list-32bit-condition, syscall-list-64bit-options)
16579         (syscall-list-64bit-condition): Define.
16580         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
16581         Remove.
16582         (syscall-list-variants, syscall-list-32bit-options)
16583         (syscall-list-32bit-condition, syscall-list-64bit-options)
16584         (syscall-list-64bit-condition): Define.
16585
16586 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
16587
16588         * locale/iso-639.def: Add brx entry.
16589
16590         [BZ #13328]
16591         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
16592         Proposed by Mariusz_Cukr <marcukr@op.pl>.
16593
16594         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
16595         __feraiseexcept_renamed.
16596
16597 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
16598
16599         [BZ #13538]
16600         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
16601         EPOLLET with unsigned values.
16602         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
16603         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
16604
16605         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
16606         to large cancellation.
16607         * math/s_cacoshf.c: Likewise.
16608         * math/s_cacoshl.c: Likewise.
16609
16610 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
16611
16612         [BZ #13305]
16613         [BZ #12786]
16614         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
16615         * math/s_cacoshf.c: Likewise.
16616         * math/s_cacoshl.c: Likewise.
16617
16618 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
16619
16620         [BZ #13439]
16621         * iconv/gconv.h: Define __GCONV_SWAP.
16622         * iconvdata/unicode.c: The swap bit must be stored in __flags.
16623         * iconvdata/utf-16.c: Likewise.
16624         * iconvdata/utf-32.c: Likewise.
16625
16626 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
16627
16628         [BZ #13524]
16629         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
16630         numerator after shifting it by one limb.
16631
16632 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
16633
16634         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
16635         under [__USE_EXTERN_INLINES].
16636
16637 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
16638
16639         [BZ #13446]
16640         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
16641
16642 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16643
16644         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
16645         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
16646         optimized code.
16647         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
16648         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
16649         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
16650         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
16651         for strncasecmp/strncasecmp_l compilation.
16652         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
16653         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
16654
16655 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
16656
16657         [BZ #13484]
16658         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
16659         of __asm__.
16660
16661 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
16662
16663         [BZ #13506]
16664         * time/tzfile.c (__tzfile_read): Check values from file header.
16665
16666 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
16667
16668         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
16669         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
16670         * powerpc/powerpc32/dl-start.S: Likewise.
16671         * powerpc/powerpc32/elf/start.S: Likewise.
16672         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
16673         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
16674         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
16675         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
16676         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16677         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
16678         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
16679         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
16680         * powerpc/powerpc32/fpu/s_round.S: Likewise.
16681         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16682         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16683         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16684         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
16685         * powerpc/powerpc32/memset.S: Likewise.
16686         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16687         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16688         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16689         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16690         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16691         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
16692         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
16693         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
16694         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
16695         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
16696         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
16697         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
16698         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
16699
16700 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16701
16702         * math/libm-test.inc: Added more nearbyint tests.
16703         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
16704         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
16705         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
16706         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
16707
16708 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
16709
16710         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
16711         FD_CLOEXEC.
16712
16713 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16714
16715         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
16716         Add wcscpy-ssse3 wcscpy-c.
16717         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
16718         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
16719         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
16720         * sysdeps/x86_64/wcschr.S: New file.
16721         * sysdeps/x86_64/wcsrchr.S: New file.
16722         * string/test-strcmp.c: Remove checking of wcscmp function for
16723         wrong alignments.
16724         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
16725         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
16726         wcsrchr-sse2 wcsrchr-c.
16727         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
16728         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
16729         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
16730         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
16731         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
16732         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
16733         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
16734         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
16735         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
16736         * wcsmbc/wcschr.c (WCSCHR): New macro.
16737
16738 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16739
16740         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
16741         * wcsmbs/test-wcsrchr.c: New file.
16742         * string/test-strrchr.c: Add wcsrchr support.
16743         (WIDE): New macro.
16744         * wcsmbs/test-wcscpy.c: New file.
16745         * string/test-strcpy.c: Add wcscpy support.
16746         (WIDE): New macro.
16747
16748 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
16749
16750         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
16751         the inner loop.
16752
16753 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
16754
16755         [BZ #13472]
16756         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
16757
16758 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
16759
16760         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
16761         Minor optimizations.
16762
16763         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
16764         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
16765         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
16766
16767 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
16768
16769         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
16770         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
16771         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
16772         for gcc to avoid warnings.
16773         * inet/Makefile (tests): Add tst-checks.
16774         * inet/tst-checks.c: New file.
16775
16776         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
16777         warning.
16778
16779         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
16780         __wmemcmp_sse2.
16781
16782         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
16783         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
16784
16785         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
16786
16787 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
16788
16789         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
16790         problem.
16791
16792         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
16793
16794 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
16795
16796         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
16797         conditional on GCC version.
16798         (__arch_compare_and_exchange_val_8_acq)
16799         (__arch_compare_and_exchange_val_16_acq)
16800         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
16801         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
16802         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
16803
16804 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
16805
16806         * sysdeps/sh/backtrace.c: New file.
16807
16808 2011-12-02  Andreas Schwab  <schwab@redhat.com>
16809
16810         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
16811         parenthesis.
16812
16813 2011-12-01  Andreas Schwab  <schwab@redhat.com>
16814
16815         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16816         falling back to utime.
16817
16818 2011-11-30  Andreas Schwab  <schwab@redhat.com>
16819
16820         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16821         expectations for float.
16822
16823 2011-11-29  Andreas Schwab  <schwab@redhat.com>
16824
16825         * locale/weight.h (findidx): Add parameter len.
16826         * locale/weightwc.h (findidx): Likewise.
16827         * posix/fnmatch_loop.c (FCT): Adjust caller.
16828         * posix/regcomp.c (build_equiv_class): Likewise.
16829         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16830         * posix/regexec.c (check_node_accept_bytes): Likewise.
16831         * string/strcoll_l.c (STRCOLL): Likewise.
16832         * string/strxfrm_l.c (STRXFRM): Likewise.
16833
16834 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16835
16836         * Makefile.in: Remove CVSOPT handling.
16837         * configure.in: Remove use of AC_REVISION.
16838         * iconvdata/Makefile (distribute): No need to filter out CVS.
16839         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16840         handling.
16841
16842 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16843
16844         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16845         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16846         [USE_AS_STRNCASECMP_L]: Likewise.
16847         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16848         NO_TLS_DIRECT_SEG_REFS.
16849         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16850         Fix argument offsets for non-PIC.
16851         [USE_AS_STRNCASECMP_L]: Likewise.
16852         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16853         NO_TLS_DIRECT_SEG_REFS.
16854
16855 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16856
16857         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16858         O_CLOEXEC.
16859         * locale/loadlocale.c (_nl_load_locale): Likewise.
16860
16861 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16862
16863         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16864         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16865         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16866         (SYSCALL_GETTIME): Set errno on error.
16867
16868         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16869         count references to noai6ai_cached.
16870
16871 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16872
16873         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16874
16875         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16876         FD_CLOEXEC for /proc/self/maps.
16877
16878         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16879         FD_CLOEXEC for /proc/meminfo.
16880
16881         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16882         gai.conf.
16883
16884         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16885         FD_CLOEXEC for given file.
16886
16887         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16888
16889         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16890         FD_CLOEXEC for /etc/hosts.
16891         (_gethtent): Likewise.
16892
16893         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16894
16895         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16896         cancellation and set FD_CLOEXEC for /etc/netgroup.
16897
16898         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16899         reading /etc/publickey.
16900
16901         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16902         allow cancellation when reading /etc/group.
16903
16904         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16905         cancellation.
16906         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16907
16908         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16909         when using data file.
16910
16911         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16912
16913         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16914         (write_nis_obj): Use "c" and "e" in fopen.
16915
16916         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16917
16918         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16919
16920         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16921
16922         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16923
16924         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16925         locale.alias.
16926
16927         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16928
16929         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16930
16931         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16932
16933         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16934         file parsing and set FD_CLOEXEC.
16935
16936 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16937
16938         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16939
16940 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16941
16942         * malloc/arena.c (arena_get2): Don't call reused_arena when
16943         _int_new_arena failed.
16944
16945 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16946
16947         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16948         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16949         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16950         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16951         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16952         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16953         to compile strcasecmp and strncasecmp.
16954         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16955         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16956
16957         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16958
16959 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16960
16961         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16962         locale-defines.sym to gen-as-const-headers.
16963         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16964         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16965         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16966         to compile strcasecmp and strncasecmp.
16967         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16968         strcasecmp_l and strncasecmp_l.
16969         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16970         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16971         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16972         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16973         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16974         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16975         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16976         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16977         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16978         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16979         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16980
16981 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16982
16983         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16984         result of SYSDEP_GETTIME_CPU to retval.
16985         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16986         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16987
16988         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16989         variable.
16990
16991         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16992         mantissa words.
16993         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16994
16995         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16996         from unused variable.
16997
16998         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16999         DWARF definitions.
17000         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
17001         for assembling.
17002
17003         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
17004         over namespaces.
17005
17006         * sunrpc/rpc_prot.c (rejected): Fix case value.
17007
17008         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
17009         unsigned long long int to avoid warnings in shift.
17010
17011         * posix/regex_internal.c (re_string_reconstruct): Actually use result
17012         of use of trans.
17013         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
17014         variable tmp.
17015
17016         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
17017         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
17018         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
17019
17020         * nis/nis_table.c (nis_list): Use variable of correct type for
17021         result of __follow_path call.
17022
17023 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17024
17025         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
17026         of math functions ceil, trunc, floor, round, and sqrt, when
17027         avaliable on the platform.
17028         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
17029         name clash.
17030         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17031         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17032         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17033
17034 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
17035
17036         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
17037         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
17038
17039 2011-11-11  Roland McGrath  <roland@hack.frob.com>
17040
17041         * include/unistd.h: Fix __readlink return type.
17042         Reported by Chris Metcalf <cmetcalf@tilera.com>.
17043
17044 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
17045
17046         * stdlib/ucontext.h: Undo last change for makecontext.
17047
17048 2011-11-11  Andreas Schwab  <schwab@redhat.com>
17049
17050         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
17051
17052         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
17053         * setjmp/setjmp.h: Mark functions as non-leaf.
17054         * setjmp/bits/setjmp2.h: Likewise.
17055         * stdlib/ucontext.h: Likewise.
17056
17057 2011-11-10  Andreas Schwab  <schwab@redhat.com>
17058
17059         * malloc/arena.c (_int_new_arena): Don't increment narenas.
17060         (reused_arena): Don't check arena limit.
17061         (arena_get2): Atomically check arena limit.
17062
17063 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
17064
17065         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
17066         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
17067
17068         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
17069         instructions.
17070
17071 2011-11-07  Andreas Schwab  <schwab@redhat.com>
17072
17073         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
17074         handler when locking.
17075
17076         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17077         Fix size of allocated buffer.
17078
17079 2011-11-04  Andreas Schwab  <schwab@redhat.com>
17080
17081         [BZ #10103]
17082         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
17083         declarations for long double functions.
17084         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
17085
17086         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
17087
17088 2011-11-03  Andreas Schwab  <schwab@redhat.com>
17089
17090         * nscd/nscd.c (main): Don't start AVC thread until credentials are
17091         installed.
17092
17093         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
17094         is disabled.
17095
17096 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17097
17098         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
17099
17100 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17101
17102         * include/alloca.h (stackinfo_alloca_round): Define.
17103         (extend_alloca): Use it.
17104         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
17105         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
17106         here.
17107
17108         * scripts/check-local-headers.sh: Ignore libaudit.h.
17109
17110         * nscd/Makefile (extra-objs): Make recursively expanded.
17111
17112 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
17113
17114         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
17115         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
17116
17117         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
17118         * posix/tst-rfc3484-2.c: Likewise.
17119         * posix/tst-rfc3484-3.c: Likewise.
17120
17121         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
17122         process_vm_writev.
17123         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
17124         process_vm_writev.
17125         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
17126         process_vm_writev from libc using GLIBC_2.15 version.
17127
17128         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
17129
17130 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
17131
17132         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
17133         stack usage.
17134
17135 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
17136
17137         [BZ #13367]
17138         * nss/getent.c (initgroups_keys): Show error message in case no group
17139         names are given.
17140
17141         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
17142         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
17143         __bump_nl_timestamp.
17144         * nscd/connections (nscd_init): When host database is served open
17145         netlink socket and request notification about configuration changes.
17146         (main_loop_poll): Track netlink file descriptor and bump timestamp
17147         in case data becomes available.
17148         (main_loop_epoll): Likewise.
17149         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
17150         (database_pers_head): Add extra_data fileds.
17151         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
17152         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
17153         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
17154         Adjust caller.
17155         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
17156         in6ai data, call __free_in6ai.
17157         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
17158         Add -DHAVE_NETLINK.
17159         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
17160         interface information.  Reuse previous data if netlink timestamp
17161         is not changed.
17162         (__bump_nl_timestamp): New function.
17163         (__free_in6ai): New function.
17164
17165 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
17166
17167         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
17168         close_not_cancel_no_status here.
17169         (__check_pf): Reorganize code a bit to not call close twice if OOM.
17170
17171 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
17172
17173         [BZ #13276]
17174         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
17175         return value.
17176
17177         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
17178         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
17179         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
17180
17181 2011-07-03  Andreas Jaeger  <aj@suse.de>
17182
17183         [BZ #10709]
17184         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
17185         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
17186         * math/libm-test.inc (sin_test): Add test case.
17187
17188 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
17189
17190         [BZ #13337]
17191         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
17192         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
17193
17194         * elf/chroot_canon.c (chroot_canon): Cleanups.
17195
17196         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
17197
17198         [BZ #13335]
17199         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
17200         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
17201
17202         * string/test-strchr.c: Make usable for strchrnul testing.
17203         * string/test-strchrnul.c: New file.
17204         * string/Makefile (strop-tests): Add strchrnul.
17205
17206         * po/it.po: Update from translation team.
17207         * po/es.po: Likewise.
17208
17209 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
17210
17211         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
17212         the three constants needed as parameters.  Drop the others.
17213         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
17214         __m128i_strloadu_tolower.
17215         Create and initialize variable zero and use it in all the places
17216         where _mm_setzero_si128 was used.
17217
17218         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
17219         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
17220         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
17221         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
17222         anymore.
17223         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
17224         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
17225         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
17226         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
17227         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
17228         __mpranred, __mptan.
17229         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
17230         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
17231         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
17232         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
17233         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
17234         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
17235         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
17236         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
17237         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
17238
17239 2011-10-28  Andreas Schwab  <schwab@redhat.com>
17240
17241         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
17242         redefine if SHARED.
17243         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
17244
17245         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
17246         wide char related routines to wcsmbs subdir.
17247
17248 2011-10-27  Andreas Schwab  <schwab@redhat.com>
17249
17250         [BZ #13344]
17251         * misc/sys/cdefs.h (__THROWNL): Define.
17252         * posix/unistd.h: Use __THREADNL instead of __THREAD
17253         for memory synchronization functions.
17254
17255 2011-10-26  Roland McGrath  <roland@hack.frob.com>
17256
17257         [BZ #13349]
17258         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
17259         doesn't exist.
17260         * manual/stdio.texi (Obstack Streams): Node removed.
17261
17262 2011-10-26  Andreas Schwab  <schwab@redhat.com>
17263
17264         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
17265         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
17266         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
17267
17268         * math/math_private.h (math_force_eval): Allow non-addressable
17269         arguments.
17270         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
17271
17272 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
17273
17274         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
17275         file is not needed.
17276
17277         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
17278         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
17279         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
17280         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
17281         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
17282         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
17283         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
17284         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
17285         Add AVX variants.
17286         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
17287         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
17288         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
17289         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
17290         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
17291         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
17292         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
17293         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
17294         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
17295         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
17296         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
17297         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
17298         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
17299         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
17300         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
17301         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
17302         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
17303         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
17304         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
17305
17306         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
17307         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
17308
17309         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
17310         place.  Use VEX encoding when compiling for AVX.
17311
17312 2011-10-25  Andreas Schwab  <schwab@redhat.com>
17313
17314         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
17315         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
17316
17317         * string/test-strchr.c (do_test): Don't generate NUL bytes.
17318
17319 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
17320
17321         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
17322         useless if() expression.
17323         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17324         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
17325         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17326         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17327         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17328         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
17329         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17330         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17331         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17332         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17333         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17334         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17335         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17336         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17337         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17338         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
17339         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17340         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17341         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
17342
17343         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
17344
17345 2011-10-25  Andreas Schwab  <schwab@redhat.com>
17346
17347         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
17348         condition.
17349         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17350
17351 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
17352
17353         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
17354         .text section.  Avoid duplicate constants.
17355         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
17356         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17357         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17358         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17359         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17360         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17361         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17362         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17363         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
17364         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
17365         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
17366         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
17367         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
17368         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
17369         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
17370         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
17371         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
17372         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
17373         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17374         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17375         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
17376         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
17377         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17378         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
17379         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
17380         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
17381         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
17382         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
17383         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
17384         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17385         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
17386         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17387         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
17388         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
17389         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
17390         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17391         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17392         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
17393         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
17394         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
17395         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
17396         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
17397         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
17398         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17399         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17400
17401 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
17402
17403         * sysdeps/x86_64/dla.h: Move to ...
17404         * sysdeps/x86_64/fpu/dla.h: ...here.
17405         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
17406         situations.  Use __builtin_fma only for gcc 4.6 and up.
17407
17408         * config.make.in: Add have-mfma4 entry.
17409         * configure.in: Substitute libc_cv_cc_fma4.
17410         * math/Makefile (dbl-only-routines): Add sincostab.
17411         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
17412         Use __sincostab not sincos.
17413         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
17414         name is a macro.
17415         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17416         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17417         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17418         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
17419         using __copysign.
17420         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
17421         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
17422         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
17423         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
17424         and __inv.
17425         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
17426         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
17427         __copysign.
17428         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
17429         define aliases when function name is a macro.
17430         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
17431         sysdeps/ieee754/dbl-64/sincos.tbl.
17432         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
17433         fma4-enabled routines.
17434         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
17435         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
17436         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
17437         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
17438         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
17439         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
17440         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
17441         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
17442         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
17443         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
17444         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
17445         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
17446         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
17447         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
17448         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
17449         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
17450         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
17451         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
17452         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
17453         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
17454         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
17455         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
17456         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
17457         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
17458         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
17459         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
17460         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
17461         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
17462         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
17463         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
17464
17465         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
17466         rename.
17467         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17468         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17469         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17470         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17471         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17472         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17473         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17474         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17475
17476 2011-10-24  Andreas Schwab  <schwab@redhat.com>
17477
17478         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
17479
17480 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
17481
17482         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
17483
17484         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
17485         prediction.
17486         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
17487
17488         * string/strnlen.c: Don't define STRNLEN, reverse logic.
17489         Remove unused variable magic_bits.
17490         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
17491
17492         * string/strnlen.c: Define and use STRNLEN macro.
17493         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
17494         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
17495         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
17496         * wcsmbs/wcslen.c: Define and use WCSLEN.
17497         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
17498         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
17499         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
17500         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
17501         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
17502         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
17503         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17504
17505 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17506
17507         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17508         strnlen-sse2-no-bsf.
17509         Rename strlen-no-bsf to strlen-sse2-no-bsf.
17510         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
17511         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
17512         Add strnlen support.
17513         (USE_AS_STRNLEN): New macro.
17514         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
17515         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
17516         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
17517         * sysdeps/x86_64/wcslen.S: New file.
17518
17519 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
17520
17521         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17522         XMM-moves are used for copying on small sizes.
17523
17524 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17525
17526         * wcsmbs/Makefile (strop-tests): Add wcschr.
17527         * wcsmbs/test-wcschr.c: New file.
17528         * string/test-strchr.c: Update.
17529         Add wcschr support.
17530         (WIDE): New macro.
17531
17532 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17533
17534         * wcsmbs/Makefile (strop-tests): Add wcslen.
17535         * wcsmbs/test-wcslen.c: New file.
17536         * string/test-strlen.c: Update.
17537         Add wcslen support.
17538         (WIDE): New macro.
17539
17540 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
17541
17542         * po/it.po: Update from translation team.
17543
17544 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17545
17546         * sysdeps/x86_64/wcscmp.S: Update.
17547         Fix wrong comparison semantics.
17548         wcscmp shall use signed comparison not unsigned.
17549         Don't use substraction to avoid overflow bug.
17550         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
17551         * wcsmbc/wcscmp.c: Likewise.
17552         * string/test-strcmp.c: Likewise.
17553         Add new tests to check cases with negative values.
17554
17555 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
17556
17557         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
17558         * sysdeps/x86_64/dla.h: ...here.  New file.
17559         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
17560         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17561         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17562         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17563         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17564         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17565         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17566         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17567         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17568
17569 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
17570
17571         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
17572         __ynl_finite aliases.
17573
17574 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
17575
17576         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17577
17578         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
17579         define DLA_FMA.
17580         [DLA_FMA] (EMULV): Use DLA_FMA.
17581         [DLA_FMA] (MUL12): Use EMULV.
17582         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
17583         that are not needed.
17584         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17585         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17586         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17587         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17588         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17589         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17590         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17591
17592 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
17593
17594         * math/s_nan.c: Undef __nan.
17595         * math/s_nanf.c: Undef __nanf.
17596         * math/s_nanl.c: Undef __nanl.
17597         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
17598         "math_private.h".
17599
17600 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
17601
17602         * math/s_catan.c: Add branch predictions.
17603         * math/s_catanf.c: Likewise.
17604         * math/s_catanh.c: Likewise.
17605         * math/s_catanhf.c: Likewise.
17606         * math/s_catanhl.c: Likewise.
17607         * math/s_catanl.c: Likewise.
17608         * math/s_cexp.c: Likewise.
17609         * math/s_cexpf.c: Likewise.
17610         * math/s_cexpl.c: Likewise.
17611         * math/s_clog.c: Likewise.
17612         * math/s_clog10.c: Likewise.
17613         * math/s_clog10f.c: Likewise.
17614         * math/s_clog10l.c: Likewise.
17615         * math/s_clogf.c: Likewise.
17616         * math/s_clogl.c: Likewise.
17617         * math/s_csqrt.c: Likewise.
17618         * math/s_csqrtf.c: Likewise.
17619         * math/s_csqrtl.c: Likewise.
17620         * math/s_ctanf.c: Likewise.
17621         * math/s_ctanh.c: Likewise.
17622         * math/s_ctanhf.c: Likewise.
17623         * math/s_ctanhl.c: Likewise.
17624         * math/s_ctanl.c: Likewise.
17625
17626         * math/math_private.h: Define __nan, __nanf, __nanl.
17627         * math/s_cacosh.c: Include <math_private.h>.
17628         * math/s_cacoshl.c: Likewise.
17629         * math/s_casinh.c: Likewise.
17630         * math/s_casinhf.c: Likewise.
17631         * math/s_casinhl.c: Likewise.
17632         * math/s_ccos.c: Rely entire on ccosh.
17633         * math/s_ccosf.c: Rely entire on ccoshf.
17634         * math/s_ccosl.c: Rely entirely on ccoshl.
17635         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
17636         Remove tests for FE_INVALID.
17637         * math/s_ccoshf.c: Likewise.
17638         * math/s_ccoshl.c: Likewise.
17639         * math/s_csin.c: Likewise.
17640         * math/s_csinf.c: Likewise.
17641         * math/s_csinh.c Likewise.
17642         * math/s_csinhf.c: Likewise.
17643         * math/s_csinhl.c: Likewise.
17644         * math/s_csinl.c: Likewise.
17645         * math/s_ctan.c: Likewise.
17646         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
17647         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
17648         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
17649
17650 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
17651
17652         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
17653         compilation problems.
17654
17655         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
17656         __builtin_expect.
17657
17658 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
17659
17660         * sysdeps/i386/configure.in: Test for -mfma4 option.
17661         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
17662         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
17663         COMMON_CPUID_INDEX_80000001.
17664         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
17665         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
17666         use it if FMA3 is not supported.
17667         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
17668
17669         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
17670         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
17671
17672 2011-10-20  Andreas Schwab  <schwab@redhat.com>
17673
17674         [BZ #12892]
17675         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
17676         it would create a cycle with a link time dependency.
17677
17678 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
17679
17680         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
17681         instruction.
17682         * string/Makefile (strop-tests): Add rawmemchr.
17683         * string/test-rawmemchr.c: New file.
17684
17685         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
17686         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
17687         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
17688         when compiling str{,n}casecmp and when AVX is available.  Hook up
17689         new optimized code in initializers.
17690
17691 2011-10-19  Andreas Schwab  <schwab@redhat.com>
17692
17693         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
17694         __feraiseexcept instead of feraiseexcept.
17695
17696 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
17697
17698         * math/math_private.h: Define defaults for libc_fetestexcept and
17699         libc_feupdateenv.
17700         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
17701         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17702         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17703         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17704         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17705         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
17706         libc_fetestexcept and libc_feupdateenv.
17707
17708         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
17709         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
17710         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
17711         * sysdeps/x86_64/fpu/math_private.h: Define special version of
17712         libc_feholdexcept_setround.
17713
17714         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
17715         Add s_nearbyint-c and s_nearbyintf-c.
17716         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
17717         nearbyintf inlines.
17718         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
17719         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
17720         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
17721         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
17722
17723         * math/math_private.h: Define defaults for libc_fegetround,
17724         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
17725         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
17726         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
17727         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
17728         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
17729         standard functions.
17730         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17731         Remove comments and hacks for old compiler versions.
17732         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
17733         libc_fegetround, libc_fesetround, libc_feholdexcept, and
17734         libc_feholdexceptl.
17735
17736 2011-10-18  Andreas Schwab  <schwab@redhat.com>
17737
17738         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
17739         (__feraiseexcept_renamed): Add __NTH.
17740         (feraiseexcept): Add __NTH.  Rename local variables to fix
17741         namespace violations.
17742
17743 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
17744
17745         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
17746
17747         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
17748
17749         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
17750         recently added interfaces.
17751         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
17752
17753         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
17754         about macro parameter expansion.
17755
17756         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
17757         __NO_MATH_INLINES is defined.  Cleanups.
17758
17759         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
17760         and __floorf is target has SSE4.1.
17761         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
17762         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
17763         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
17764         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
17765
17766         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
17767         name.
17768         (floorf): Likewise.
17769
17770         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
17771
17772 2011-10-17  Andreas Schwab  <schwab@redhat.com>
17773
17774         * misc/sys/cdefs.h: Fix last change.
17775
17776         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
17777         database lookup.
17778
17779 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
17780
17781         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
17782
17783         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
17784         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17785         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17786         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17787         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17788         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17789         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17790         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17791         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17792         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
17793         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
17794         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
17795         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
17796         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
17797         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
17798         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
17799         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
17800         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
17801         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
17802         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
17803         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
17804         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17805
17806         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17807         ceil, ceilf, floor, floorf.
17808
17809         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17810         Perform IRELATIVE relocations last.
17811
17812         * elf/do-rel.h: Add another parameter nrelative, replacing the
17813         local variable with the same name.  Change name of the function
17814         to end in Rel or Rela (uppercase).
17815         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17816         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
17817         elf_dynamic_do_##reloc function.
17818
17819 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17820
17821         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17822         is sufficient, at least on modern CPUs.
17823
17824         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17825
17826         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17827         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17828
17829         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17830         __expl_finite.
17831         * math/bits/math-finite.h: Add entries for exp.
17832         * math/e_expl.c: Add __*_finite alias.
17833         * sysdeps/i386/fpu/e_exp.S: Likewise.
17834         * sysdeps/i386/fpu/e_expf.S: Likewise.
17835         * sysdeps/i386/fpu/e_expl.c: Likewise.
17836         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17837         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17838         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17839         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17840         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17841         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17842         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17843
17844         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17845         is sufficient, at least on modern CPUs.
17846
17847         * ctype/ctype-info.c (__ctype_init): Define.
17848         * include/ctype.h (__ctype_init): Declare.
17849         (__ctype_b_loc): The variable is always initialized.
17850         (__ctype_toupper_loc): Likewise.
17851         (__ctype_tolower_loc): Likewise.
17852         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17853         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17854
17855 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17856
17857         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17858
17859         * configure.in: Also look in $cxxmachine/include for C++ system
17860         headers.
17861
17862 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17863
17864         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17865         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17866         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17867         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17868         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17869         (USE_AS_WMEMCMP): New macro.
17870         Fixing indents.
17871         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17872         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17873         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17874         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17875         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17876         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17877         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17878         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17879         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17880         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17881         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17882         (USE_AS_WMEMCMP): New macro.
17883         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17884         * sysdeps/string/test-memcmp.c: Update.
17885         Fix simple_wmemcmp.
17886         Add new tests.
17887         * wcsmbs/wmemcmp.c: Update.
17888         (WMEMCMP): New macro.
17889         Fix overflow bug.
17890
17891 2011-10-12  Andreas Jaeger  <aj@suse.de>
17892
17893         [BZ #13268]
17894         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17895
17896 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17897
17898         * libio/iofwide.c (do_length): Avoid warning.
17899
17900         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17901
17902 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17903
17904         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17905
17906         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17907         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17908         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17909         * sysdeps/i386/i686/fpu/e_log.S: New file.
17910         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17911         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17912
17913         * ctype/ctype.h: Add support for inlined isXXX functions when
17914         compiling C++ code.
17915
17916 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17917
17918         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17919
17920         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17921
17922 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17923
17924         [BZ #13291]
17925         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17926
17927 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17928
17929         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17930         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17931         feraiseexcept.
17932
17933         * sysdeps/x86_64/memrchr.S: Check for zero size.
17934
17935         * string/stratcliff.c: Add memrchr tests.
17936
17937 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17938
17939         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17940         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17941         rawmemchr-sse2 rawmemchr-sse2-bsf.
17942         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17943         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17944         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17945         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17946         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17947         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17948         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17949         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17950         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17951         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17952         * string/memrchr.c (MEMRCHR): New macro.
17953
17954 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17955
17956         Add integration with gcc's -ffinite-math-only and optimize wrapper
17957         functions in libm.
17958         * Versions.def: Define GLIBC_2.15 version for libm.
17959         * math/Makefile (headers): Add bits/math-finite.h.
17960         * math/bits/math-finite.h: New file.
17961         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17962         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17963         * math/e_acoshl.c: Add __*_finite alias.
17964         * math/e_acosl.c: Likewise.
17965         * math/e_asinl.c: Likewise.
17966         * math/e_atan2l.c: Likewise.
17967         * math/e_atanhl.c: Likewise.
17968         * math/e_coshl.c: Likewise.
17969         * math/e_exp10.c: Likewise.
17970         * math/e_exp10f.c: Likewise.
17971         * math/e_exp10l.c: Likewise.
17972         * math/e_exp2l.c: Likewise.
17973         * math/e_fmodl.c: Likewise.
17974         * math/e_gammal_r.c: Likewise.
17975         * math/e_hypotl.c: Likewise.
17976         * math/e_j0l.c: Likewise.
17977         * math/e_j1l.c: Likewise.
17978         * math/e_jnl.c: Likewise.
17979         * math/e_lgammal_r.c: Likewise.
17980         * math/e_log10l.c: Likewise.
17981         * math/e_log2l.c: Likewise.
17982         * math/e_logl.c: Likewise.
17983         * math/e_powl.c: Likewise.
17984         * math/e_sinhl.c: Likewise.
17985         * math/e_sqrtl.c: Likewise.
17986         * math/e_scalb.c: Completely rewritten and optimized.
17987         * math/e_scalbf.c: Likewise.
17988         * math/e_scalbl.c: Likewise.
17989         * math/w_acos.c: Likewise.
17990         * math/w_acosf.c: Likewise.
17991         * math/w_acosl.c: Likewise.
17992         * math/w_acosh.c: Likewise.
17993         * math/w_acoshf.c: Likewise.
17994         * math/w_acoshl.c: Likewise.
17995         * math/w_asin.c: Likewise.
17996         * math/w_asinf.c: Likewise.
17997         * math/w_asinl.c: Likewise.
17998         * math/w_atan2.c: Likewise.
17999         * math/w_atan2f.c: Likewise.
18000         * math/w_atan2l.c: Likewise.
18001         * math/w_atanh.c: Likewise.
18002         * math/w_atanhf.c: Likewise.
18003         * math/w_atanhl.c: Likewise.
18004         * math/w_exp10.c: Likewise.
18005         * math/w_exp10f.c: Likewise.
18006         * math/w_exp10l.c: Likewise.
18007         * math/w_fmod.c: Likewise.
18008         * math/w_fmodf.c: Likewise.
18009         * math/w_fmodl.c: Likewise.
18010         * math/w_j0.c: Likewise.
18011         * math/w_j0f.c: Likewise.
18012         * math/w_j0l.c: Likewise.
18013         * math/w_j1.c: Likewise.
18014         * math/w_j1f.c: Likewise.
18015         * math/w_j1l.c: Likewise.
18016         * math/w_jn.c: Likewise.
18017         * math/w_jnf.c: Likewise.
18018         * math/w_log.c: Likewise.
18019         * math/w_logf.c: Likewise.
18020         * math/w_logl.c: Likewise.
18021         * math/w_log10.c: Likewise.
18022         * math/w_log10f.c: Likewise.
18023         * math/w_log10l.c: Likewise.
18024         * math/w_log2.c: Likewise.
18025         * math/w_log2f.c: Likewise.
18026         * math/w_log2l.c: Likewise.
18027         * math/w_pow.c: Likewise.
18028         * math/w_powf.c: Likewise.
18029         * math/w_powl.c: Likewise.
18030         * math/w_remainder.c: Likewise.
18031         * math/w_remainderf.c: Likewise.
18032         * math/w_remainderl.c: Likewise.
18033         * math/w_scalb.c: Likewise.
18034         * math/w_scalbf.c: Likewise.
18035         * math/w_scalbl.c: Likewise.
18036         * math/w_sqrt.c: Likewise.
18037         * math/w_sqrtf.c: Likewise.
18038         * math/w_sqrtl.c: Likewise.
18039         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
18040         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
18041         used.
18042         * math/math_private.h: Declare __kernel_standard_f.
18043         * math/w_cosh.c: Remove cruft and optimize a bit.
18044         * math/w_coshf.c: Likewise.
18045         * math/w_coshl.c: Likewise.
18046         * math/w_exp2.c: Likewise.
18047         * math/w_exp2f.c: Likewise.
18048         * math/w_exp2l.c: Likewise.
18049         * math/w_hypot.c: Likewise.
18050         * math/w_hypotf.c: Likewise.
18051         * math/w_hypotl.c: Likewise.
18052         * math/w_lgamma.c: Likewise.
18053         * math/w_lgamma_r.c: Likewise.
18054         * math/w_lgammaf.c: Likewise.
18055         * math/w_lgammaf_r.c: Likewise.
18056         * math/w_lgammal.c: Likewise.
18057         * math/w_lgammal_r.c: Likewise.
18058         * math/w_sinh.c: Likewise.
18059         * math/w_sinhf.c: Likewise.
18060         * math/w_sinhl.c: Likewise.
18061         * math/w_tgamma.c: Likewise.
18062         * math/w_tgammaf.c: Likewise.
18063         * math/w_tgammal.c: Likewise.
18064         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18065         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18066         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
18067         Minor optimizations.  Pretty printing.  Remove cruft.
18068         * sysdeps/i386/fpu/e_acosf.S: Likewise.
18069         * sysdeps/i386/fpu/e_acosh.S: Likewise.
18070         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
18071         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
18072         * sysdeps/i386/fpu/e_acosl.c: Likewise.
18073         * sysdeps/i386/fpu/e_asin.S: Likewise.
18074         * sysdeps/i386/fpu/e_asinf.S: Likewise.
18075         * sysdeps/i386/fpu/e_atan2.S: Likewise.
18076         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
18077         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
18078         * sysdeps/i386/fpu/e_atanh.S: Likewise.
18079         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
18080         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
18081         * sysdeps/i386/fpu/e_exp10.S: Likewise.
18082         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
18083         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
18084         * sysdeps/i386/fpu/e_exp2.S: Likewise.
18085         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
18086         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
18087         * sysdeps/i386/fpu/e_fmod.S: Likewise.
18088         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
18089         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
18090         * sysdeps/i386/fpu/e_hypot.S: Likewise.
18091         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
18092         * sysdeps/i386/fpu/e_log.S: Likewise.
18093         * sysdeps/i386/fpu/e_log10.S: Likewise.
18094         * sysdeps/i386/fpu/e_log10f.S: Likewise.
18095         * sysdeps/i386/fpu/e_log10l.S: Likewise.
18096         * sysdeps/i386/fpu/e_log2.S: Likewise.
18097         * sysdeps/i386/fpu/e_log2f.S: Likewise.
18098         * sysdeps/i386/fpu/e_log2l.S: Likewise.
18099         * sysdeps/i386/fpu/e_logf.S: Likewise.
18100         * sysdeps/i386/fpu/e_logl.S: Likewise.
18101         * sysdeps/i386/fpu/e_pow.S: Likewise.
18102         * sysdeps/i386/fpu/e_powf.S: Likewise.
18103         * sysdeps/i386/fpu/e_powl.S: Likewise.
18104         * sysdeps/i386/fpu/e_remainder.S: Likewise.
18105         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
18106         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
18107         * sysdeps/i386/fpu/e_scalb.S: Likewise.
18108         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
18109         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
18110         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
18111         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
18112         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
18113         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
18114         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18115         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18116         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18117         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
18118         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
18119         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
18120         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
18121         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18122         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18123         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18124         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18125         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18126         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
18127         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
18128         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18129         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
18130         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18131         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18132         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18133         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
18134         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
18135         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18136         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18137         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
18138         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18139         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
18140         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
18141         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
18142         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
18143         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18144         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18145         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18146         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18147         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
18148         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
18149         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
18150         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
18151         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
18152         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18153         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
18154         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18155         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
18156         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
18157         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18158         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
18159         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18160         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
18161         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
18162         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
18163         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18164         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
18165         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18166         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18167         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
18168         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
18169         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
18170         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
18171         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18172         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
18173         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18174         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
18175         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18176         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18177         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
18178         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18179         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
18180         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
18181         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
18182         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18183         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
18184         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
18185         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
18186         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18187         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
18188         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18189         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
18190         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
18191         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18192         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
18193         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18194         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
18195         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
18196         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18197         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18198         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18199         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18200         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
18201         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
18202         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18203         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18204         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18205         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18206         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
18207         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
18208         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
18209         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
18210         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
18211         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
18212         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
18213         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
18214         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
18215         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
18216         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
18217         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
18218         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
18219         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
18220         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18221         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
18222         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
18223         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
18224         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
18225         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
18226         (__isnanf): Likewise.
18227         (__isinf_ns): Likewise.
18228         (__isinf_nsf): Likewise.
18229         (__finite): Likewise.
18230         (__finitef): Likewise.
18231         (__ieee754_sqrt): Define as macro.
18232         (__ieee754_sqrtf): Define as macro.
18233         (__ieee754_sqrtl): Define as macro.
18234         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
18235         inlined copy.
18236         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
18237         __FINITE_MATH_ONLY__ consistent.
18238         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
18239
18240 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
18241
18242         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
18243         of rawmemchr.
18244
18245         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
18246
18247 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
18248
18249         * po/ja.po: Update from translation team.
18250
18251 2011-10-08  Roland McGrath  <roland@hack.frob.com>
18252
18253         * locale/programs/locarchive.c (prepare_address_space): New function.
18254         (create_archive, enlarge_archive, open_archive): Use it.
18255
18256         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
18257         inside [SHARED], where it is used.
18258
18259         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
18260
18261         * nss/getent.c (netgroup_keys): Remove unused variable.
18262         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
18263
18264 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
18265
18266         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
18267         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
18268         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
18269         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
18270         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
18271         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
18272         * math/Makefile (libm-calls): Add s_isinf_ns.
18273         * math/divtc3.c: Use __isinf_nsl instead of isinf.
18274         * math/multc3.c: Likewise.
18275         * math/s_casin.c: Likewise.
18276         * math/s_casinf.c: Likewise.
18277         * math/s_casinl.c: Likewise.
18278         * math/s_ccos.c: Likewise.
18279         * math/s_ccosf.c: Likewise.
18280         * math/s_ccosl.c: Likewise.
18281         * math/s_ctan.c: Likewise.
18282         * math/s_ctanf.c: Likewise.
18283         * math/s_ctanh.c: Likewise.
18284         * math/s_ctanhf.c: Likewise.
18285         * math/s_ctanhl.c: Likewise.
18286         * math/s_ctanl.c: Likewise.
18287         * math/w_fmod.c: Likewise.
18288         * math/w_fmodf.c: Likewise.
18289         * math/w_fmodl.c: Likewise.
18290         * math/w_remainder.c: Likewise.
18291         * math/w_remainderf.c: Likewise.
18292         * math/w_remainderl.c: Likewise.
18293         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
18294         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
18295         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
18296         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
18297         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
18298         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
18299         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
18300         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
18301
18302         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
18303         of the number.
18304         * stdio-common/printf_fphex.c: Likewise.
18305         * stdio-common/printf_size.c: Likewise.
18306
18307         * math/e_exp10.c: Include math_private.h using <...> not "...".
18308         * math/e_exp10f.c: Likewise.
18309         * math/e_exp10l.c: Likewise.
18310         * math/e_exp2l.c: Likewise.
18311         * math/e_j0l.c: Likewise.
18312         * math/e_j1l.c: Likewise.
18313         * math/e_jnl.c: Likewise.
18314         * math/e_lgammal_r.c: Likewise.
18315         * math/e_rem_pio2l.c: Likewise.
18316         * math/e_scalb.c: Likewise.
18317         * math/e_scalbf.c: Likewise.
18318         * math/e_scalbl.c: Likewise.
18319         * math/k_cosl.c: Likewise.
18320         * math/k_sinl.c: Likewise.
18321         * math/k_tanl.c: Likewise.
18322         * math/s_cacoshf.c: Likewise.
18323         * math/s_catan.c: Likewise.
18324         * math/s_catanf.c: Likewise.
18325         * math/s_catanh.c: Likewise.
18326         * math/s_catanhf.c: Likewise.
18327         * math/s_catanhl.c: Likewise.
18328         * math/s_catanl.c: Likewise.
18329         * math/s_ccosh.c: Likewise.
18330         * math/s_ccoshf.c: Likewise.
18331         * math/s_ccoshl.c: Likewise.
18332         * math/s_cexp.c: Likewise.
18333         * math/s_cexpf.c: Likewise.
18334         * math/s_cexpl.c: Likewise.
18335         * math/s_clog.c: Likewise.
18336         * math/s_clog10.c: Likewise.
18337         * math/s_clog10f.c: Likewise.
18338         * math/s_clog10l.c: Likewise.
18339         * math/s_clogf.c: Likewise.
18340         * math/s_clogl.c: Likewise.
18341         * math/s_csin.c: Likewise.
18342         * math/s_csinf.c: Likewise.
18343         * math/s_csinh.c: Likewise.
18344         * math/s_csinhf.c: Likewise.
18345         * math/s_csinhl.c: Likewise.
18346         * math/s_csinl.c: Likewise.
18347         * math/s_csqrt.c: Likewise.
18348         * math/s_csqrtf.c: Likewise.
18349         * math/s_csqrtl.c: Likewise.
18350         * math/s_ctan.c: Likewise.
18351         * math/s_ctanf.c: Likewise.
18352         * math/s_ctanh.c: Likewise.
18353         * math/s_ctanhf.c: Likewise.
18354         * math/s_ctanhl.c: Likewise.
18355         * math/s_ctanl.c: Likewise.
18356         * math/s_ldexp.c: Likewise.
18357         * math/s_ldexpf.c: Likewise.
18358         * math/s_ldexpl.c: Likewise.
18359         * math/s_significand.c: Likewise.
18360         * math/s_significandf.c: Likewise.
18361         * math/s_significandl.c: Likewise.
18362         * math/w_acos.c: Likewise.
18363         * math/w_acosf.c: Likewise.
18364         * math/w_acosh.c: Likewise.
18365         * math/w_acoshf.c: Likewise.
18366         * math/w_acoshl.c: Likewise.
18367         * math/w_acosl.c: Likewise.
18368         * math/w_asin.c: Likewise.
18369         * math/w_asinf.c: Likewise.
18370         * math/w_asinl.c: Likewise.
18371         * math/w_atan2.c: Likewise.
18372         * math/w_atan2f.c: Likewise.
18373         * math/w_atan2l.c: Likewise.
18374         * math/w_atanh.c: Likewise.
18375         * math/w_atanhf.c: Likewise.
18376         * math/w_atanhl.c: Likewise.
18377         * math/w_cosh.c: Likewise.
18378         * math/w_coshf.c: Likewise.
18379         * math/w_coshl.c: Likewise.
18380         * math/w_dremf.c: Likewise.
18381         * math/w_exp10.c: Likewise.
18382         * math/w_exp10f.c: Likewise.
18383         * math/w_exp10l.c: Likewise.
18384         * math/w_exp2.c: Likewise.
18385         * math/w_exp2f.c: Likewise.
18386         * math/w_fmod.c: Likewise.
18387         * math/w_fmodf.c: Likewise.
18388         * math/w_fmodl.c: Likewise.
18389         * math/w_hypot.c: Likewise.
18390         * math/w_hypotf.c: Likewise.
18391         * math/w_hypotl.c: Likewise.
18392         * math/w_j0.c: Likewise.
18393         * math/w_j0f.c: Likewise.
18394         * math/w_j0l.c: Likewise.
18395         * math/w_j1.c: Likewise.
18396         * math/w_j1f.c: Likewise.
18397         * math/w_j1l.c: Likewise.
18398         * math/w_jn.c: Likewise.
18399         * math/w_jnf.c: Likewise.
18400         * math/w_jnl.c: Likewise.
18401         * math/w_lgamma.c: Likewise.
18402         * math/w_lgamma_r.c: Likewise.
18403         * math/w_lgammaf.c: Likewise.
18404         * math/w_lgammaf_r.c: Likewise.
18405         * math/w_lgammal.c: Likewise.
18406         * math/w_lgammal_r.c: Likewise.
18407         * math/w_log.c: Likewise.
18408         * math/w_log10.c: Likewise.
18409         * math/w_log10f.c: Likewise.
18410         * math/w_log10l.c: Likewise.
18411         * math/w_log2.c: Likewise.
18412         * math/w_log2f.c: Likewise.
18413         * math/w_log2l.c: Likewise.
18414         * math/w_logf.c: Likewise.
18415         * math/w_logl.c: Likewise.
18416         * math/w_pow.c: Likewise.
18417         * math/w_powf.c: Likewise.
18418         * math/w_powl.c: Likewise.
18419         * math/w_remainder.c: Likewise.
18420         * math/w_remainderf.c: Likewise.
18421         * math/w_remainderl.c: Likewise.
18422         * math/w_scalb.c: Likewise.
18423         * math/w_scalbf.c: Likewise.
18424         * math/w_scalbl.c: Likewise.
18425         * math/w_sinh.c: Likewise.
18426         * math/w_sinhf.c: Likewise.
18427         * math/w_sinhl.c: Likewise.
18428         * math/w_sqrt.c: Likewise.
18429         * math/w_sqrtf.c: Likewise.
18430         * math/w_sqrtl.c: Likewise.
18431         * math/w_tgamma.c: Likewise.
18432         * math/w_tgammaf.c: Likewise.
18433         * math/w_tgammal.c: Likewise.
18434
18435         * po/ja.po: Update from translation team.
18436
18437 2011-09-29  Andreas Jaeger  <aj@suse.de>
18438
18439         [BZ #13179]
18440         * sunrpc/netname.c (netname2host): Fix logic.
18441
18442         [BZ #6779]
18443         [BZ #6783]
18444         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
18445         correctly.
18446         * math/w_remainder.c (__remainder): Likewise.
18447         * math/w_remainderf.c (__remainderf): Likewise.
18448         * math/libm-test.inc (remainder_test): Add test cases.
18449
18450 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18451
18452         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
18453         sdiv_qrnnd.
18454
18455 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
18456
18457         * string/test-memcmp.c: Avoid unncessary #defines.
18458         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
18459
18460 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18461
18462         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
18463         Use new sse2 version for core i3 - i7 as it's faster
18464         than sse42 version.
18465         (bit_Prefer_PMINUB_for_stringop): New.
18466         * sysdeps/x86_64/rawmemchr.S: Update.
18467         Replace with faster SSE2 version.
18468         * sysdeps/x86_64/memrchr.S: New file.
18469         * sysdeps/x86_64/memchr.S: Update.
18470         Replace with faster SSE2 version.
18471
18472 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
18473
18474         * elf/dl-load.c (lose): Add cast to avoid warning.
18475
18476 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
18477
18478         * po/ca.po: Update from translation team.
18479
18480         * inet/getnetgrent_r.c: Hook up nscd.
18481         * nscd/Makefile (routines): Add nscd_netgroup.
18482         (nscd-modules): Add netgroupcache.
18483         (CFLAGS-netgroupcache.c): Define.
18484         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
18485         (cache_search): Add const to second parameter.
18486         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
18487         INNETGR.
18488         (dbs): Add netgrdb entry.
18489         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
18490         (verify_persistent_db): Handle netgrdb.
18491         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
18492         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
18493         GETFDNETGR.
18494         (netgroup_response_header): Define.
18495         (innetgroup_response_header): Define.
18496         (datahead): Add netgroup_response_header and innetgroup_response_header
18497         elements.
18498         * nscd/nscd.conf: Add entries for netgroup cache.
18499         * nscd/nscd.h (dbtype): Add netgrdb.
18500         (_PATH_NSCD_NETGROUP_DB): Define.
18501         (netgroup_iov_disabled): Declare.
18502         (xmalloc, xcalloc, xrealloc): Move declarations here.
18503         (cache_search): Adjust prototype.
18504         Add netgroup-related prototypes.
18505         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
18506         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
18507         (__nscd_innetgr): Declare.
18508         * nscd/selinux.c (perms): Use access_vector_t as element type and
18509         add netgroup-related initializers.
18510         * nscd/netgroupcache.c: New file.
18511         * nscd/nscd_netgroup.c: New file.
18512         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
18513         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
18514         For four parameters use innetgr.
18515         * nss/nss_files/files-init.c: Add definition and callback for netgr.
18516         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
18517         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
18518         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
18519
18520         * nscd/connections.c (register_traced_file): Don't register file
18521         for disabled databases.
18522
18523 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
18524
18525         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
18526
18527         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
18528         from tree and freeing node.
18529
18530 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
18531
18532         * nss/nsswitch.c (__nss_database_lookup): Handle
18533         nss_parse_service_list out of memory case.
18534
18535 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
18536
18537         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
18538         out of memory case.
18539
18540 2011-10-04  Andreas Schwab  <schwab@redhat.com>
18541
18542         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
18543         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
18544         pass it down.
18545         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
18546         elf_machine_rela, elf_machine_lazy_rel.
18547         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
18548         (ELF_DYNAMIC_DO_REL): Likewise.
18549         (ELF_DYNAMIC_DO_RELA): Likewise.
18550         (ELF_DYNAMIC_RELOCATE): Likewise.
18551         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
18552         to ELF_DYNAMIC_DO_REL.
18553         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
18554         (dl_main): In trace mode always set __RTLD_NOIFUNC.
18555         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
18556         elf_machine_rela.
18557         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
18558         skip_ifunc, don't call ifunc function if non-zero.
18559         (elf_machine_rela): Likewise.
18560         (elf_machine_lazy_rel): Likewise.
18561         (elf_machine_lazy_rela): Likewise.
18562         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18563         (elf_machine_lazy_rel): Likewise.
18564         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18565         Likewise.
18566         (elf_machine_lazy_rel): Likewise.
18567         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18568         Likewise.
18569         (elf_machine_lazy_rel): Likewise.
18570         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
18571         (elf_machine_lazy_rel): Likewise.
18572         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
18573         (elf_machine_lazy_rel): Likewise.
18574         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18575         (elf_machine_lazy_rel): Likewise.
18576         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
18577         (elf_machine_lazy_rel): Likewise.
18578         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
18579         (elf_machine_lazy_rel): Likewise.
18580         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18581         (elf_machine_lazy_rel): Likewise.
18582
18583 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
18584
18585         * nss/nss_files/files-init.c (_nss_files_init): Use static
18586         initialization for all the *_traced_file variables.
18587
18588 2011-09-28  Andreas Schwab  <schwab@redhat.com>
18589
18590         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18591
18592 2011-09-27  Roland McGrath  <roland@hack.frob.com>
18593
18594         [BZ #13226]
18595         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
18596
18597 2011-09-27  Andreas Schwab  <schwab@redhat.com>
18598
18599         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
18600         Reread the line before reparsing it.
18601
18602 2011-09-26  Andreas Schwab  <schwab@redhat.com>
18603
18604         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
18605
18606 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
18607             Maxim Kuvyrkov  <maxim@codesourcery.com>
18608             Joseph Myers  <joseph@codesourcery.com>
18609
18610         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
18611         if needed for __stack_chk_guard.
18612
18613 2011-09-19  Roland McGrath  <roland@hack.frob.com>
18614
18615         * sysdeps/posix/spawni.c (script_execute): Always define it.
18616         It will be optimized away if unused.
18617         (maybe_script_execute): New function.
18618         (__spawni): Call it.
18619
18620         * Makerules: Don't include tls.make.
18621         (config-tls): Always set to thread.
18622         * tls.make.c: File removed.
18623
18624 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
18625
18626         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
18627         * config.make.in (CPPFLAGS-config): New substituted variable.
18628
18629 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
18630
18631         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
18632
18633         [BZ #13192]
18634         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
18635         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
18636
18637 2011-09-15  Roland McGrath  <roland@hack.frob.com>
18638
18639         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
18640         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
18641         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18642         (CALL_FAIL): Likewise.
18643         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
18644         (CALL_FAIL): Macro removed.
18645         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
18646
18647 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
18648
18649         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
18650         for __FINITE_MATH_ONLY__ == 1.
18651
18652 2011-09-15  Andreas Schwab  <schwab@redhat.com>
18653
18654         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
18655         __ieee754_sqrt instead of sqrt.
18656         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
18657         __ieee754_sqrtf instead of sqrtf.
18658         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
18659         __floorf instead of floorf.
18660         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
18661         __floorf, __truncf instead of floorf, truncf.
18662
18663 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
18664
18665         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
18666
18667         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
18668         __extern_always_inline.
18669         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
18670         32-bit.
18671
18672 2011-09-14  Andreas Schwab  <schwab@redhat.com>
18673
18674         * elf/rtld.c (dl_main): Also relocate in dependency order when
18675         doing symbol dependency testing.
18676
18677 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
18678
18679         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18680         Always define `refsym'.
18681
18682 2011-09-13  Andreas Schwab  <schwab@redhat.com>
18683
18684         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
18685         (__FD_ELT): Renamed from __FDELT.
18686         * misc/bits/select2.h (__FD_ELT): Likewise.
18687         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
18688         __FD_MASK instead of __FDELT, __FDMASK.
18689         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
18690         Likewise.
18691         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
18692         Likewise.
18693
18694         * elf/Makefile (gen-ldd): Fix pattern.
18695
18696         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
18697         (init_tls): Likewise.
18698
18699 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
18700
18701         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
18702
18703 2011-09-12  Andreas Schwab  <schwab@redhat.com>
18704
18705         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
18706         `struct cmsghdr *' instead of `void *'.
18707         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
18708         Likewise.
18709
18710 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
18711
18712         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
18713         if non-absolute.
18714         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
18715         ldd_rewrite_script.
18716
18717 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
18718
18719         * configure.in: Remove --with-tls option.
18720         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
18721         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
18722         out in case it is missing.
18723         * sysdeps/ia64/elf/configure.in: Likewise.
18724         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
18725         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
18726         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
18727         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
18728         * sysdeps/sh/elf/configure.in: Likewise.
18729         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
18730         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
18731         * sysdeps/x86_64/elf/configure.in: Likewise.
18732         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
18733         * sysdeps/mach/hurd/tls.h: Likewise.
18734
18735         [BZ #13067]
18736         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
18737
18738         [BZ #13090]
18739         * configure.in: Fix use of AC_INIT.
18740
18741         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
18742
18743 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
18744
18745         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
18746         __set_errno.
18747         * malloc/hooks.c: Likewise.
18748
18749         [BZ #11929]
18750         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
18751         variables statically.
18752         (narenas): Initialize.
18753         (list_lock): Initialize.
18754         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
18755         initializtion of main_arena and list_lock.  Small cleanups.
18756         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
18757         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
18758         Add initializers to main_arena and mp_.
18759         (malloc_state): Remove pagesize member.  Change all users to use
18760         GLRO(dl_pagesize).
18761
18762         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
18763         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
18764         is always initialized.
18765
18766         * malloc/malloc.c: Removed unused configurations and dead code.
18767         * malloc/arena.c: Likewise.
18768         * malloc/hooks.c: Likewise.
18769         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
18770
18771         * include/tls.h: Removed.  USE___THREAD must always be defined.
18772         * bits/libc-tsd.h: Don't handle !USE___THREAD.
18773         * elf/dl-libc.c: Likewise.
18774         * elf/dl-tsd.c: Likewise.
18775         * include/errno.h: Likewise.
18776         * include/netdb.h: Likewise.
18777         * include/resolv.h: Likewise.
18778         * inet/herrno-loc.c: Likewise.
18779         * inet/herrno.c: Likewise.
18780         * malloc/arena.c: Likewise.
18781         * malloc/hooks.c: Likewise.
18782         * malloc/malloc.c: Likewise.
18783         * resolv/res-state.c: Likewise.
18784         * resolv/res_libc.c: Likewise.
18785         * sysdeps/i386/dl-machine.h: Likewise.
18786         * sysdeps/ia64/dl-machine.h: Likewise.
18787         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
18788         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
18789         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
18790         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
18791         * sysdeps/sh/dl-machine.h: Likewise.
18792         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18793         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18794         * sysdeps/unix/i386/sysdep.S: Likewise.
18795         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
18796         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
18797         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
18798         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
18799         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
18800         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
18801         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
18802         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18803         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18804         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18805         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18806         * sysdeps/x86_64/dl-machine.h: Likewise.
18807         * tls.make.c: Likewise.
18808
18809         * configure.in: Remove --with-__thread option.  Make tests for
18810         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18811         tls_model attribute fail if no support is available.  Remove
18812         USE_IN_LIBIO.
18813         * Makeconfig: Adjust for dropped configure option.  All features are
18814         now mandatory.
18815         * Makerules: Likewise.
18816         * Versions.def: Likewise.
18817         * argp/argp-fmtstream.c: Likewise.
18818         * argp/argp-fmtstream.h: Likewise.
18819         * argp/argp-help.c: Likewise.
18820         * assert/assert.c: Likewise.
18821         * config.h.in: Likewise.
18822         * config.make.in: Likewise.
18823         * configure: Likewise.
18824         * configure.in: Likewise.
18825         * csu/Versions: Likewise.
18826         * csu/init.c: Likewise.
18827         * elf/tst-audit2.c: Likewise.
18828         * elf/tst-tls10.c: Likewise.
18829         * elf/tst-tls10.h: Likewise.
18830         * elf/tst-tls11.c: Likewise.
18831         * elf/tst-tls12.c: Likewise.
18832         * elf/tst-tls14.c: Likewise.
18833         * elf/tst-tlsmod11.c: Likewise.
18834         * elf/tst-tlsmod12.c: Likewise.
18835         * elf/tst-tlsmod13.c: Likewise.
18836         * elf/tst-tlsmod13a.c: Likewise.
18837         * elf/tst-tlsmod14a.c: Likewise.
18838         * elf/tst-tlsmod15b.c: Likewise.
18839         * elf/tst-tlsmod16a.c: Likewise.
18840         * elf/tst-tlsmod16b.c: Likewise.
18841         * elf/tst-tlsmod7.c: Likewise.
18842         * elf/tst-tlsmod8.c: Likewise.
18843         * elf/tst-tlsmod9.c: Likewise.
18844         * gmon/gmon.c: Likewise.
18845         * grp/fgetgrent_r.c: Likewise.
18846         * grp/putgrent.c: Likewise.
18847         * hurd/fopenport.c: Likewise.
18848         * include/libc-symbols.h: Likewise.
18849         * include/tls.h: Likewise.
18850         * intl/gettextP.h: Likewise.
18851         * intl/loadinfo.h: Likewise.
18852         * locale/global-locale.c: Likewise.
18853         * locale/localeinfo.h: Likewise.
18854         * mach/devstream.c: Likewise.
18855         * malloc/arena.c: Likewise.
18856         * malloc/set-freeres.c: Likewise.
18857         * misc/err.c: Likewise.
18858         * misc/getttyent.c: Likewise.
18859         * misc/mntent_r.c: Likewise.
18860         * posix/getopt.c: Likewise.
18861         * posix/wordexp.c: Likewise.
18862         * pwd/fgetpwent_r.c: Likewise.
18863         * resolv/Versions: Likewise.
18864         * resolv/res_hconf.c: Likewise.
18865         * shadow/fgetspent_r.c: Likewise.
18866         * shadow/putspent.c: Likewise.
18867         * stdio-common/printf_fphex.c: Likewise.
18868         * stdio-common/tmpfile.c: Likewise.
18869         * stdlib/abort.c: Likewise.
18870         * stdlib/fmtmsg.c: Likewise.
18871         * sunrpc/auth_unix.c: Likewise.
18872         * sunrpc/clnt_perr.c: Likewise.
18873         * sunrpc/clnt_tcp.c: Likewise.
18874         * sunrpc/clnt_udp.c: Likewise.
18875         * sunrpc/clnt_unix.c: Likewise.
18876         * sunrpc/openchild.c: Likewise.
18877         * sunrpc/svc_simple.c: Likewise.
18878         * sunrpc/svc_tcp.c: Likewise.
18879         * sunrpc/svc_udp.c: Likewise.
18880         * sunrpc/svc_unix.c: Likewise.
18881         * sunrpc/xdr.c: Likewise.
18882         * sunrpc/xdr_array.c: Likewise.
18883         * sunrpc/xdr_rec.c: Likewise.
18884         * sunrpc/xdr_ref.c: Likewise.
18885         * sunrpc/xdr_stdio.c: Likewise.
18886
18887 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18888
18889         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18890
18891 2011-07-03  Andreas Jaeger  <aj@suse.de>
18892
18893         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18894         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18895         regenerate with gen-libm-tests.pl.
18896
18897 2010-05-12  Petr Baudis  <pasky@suse.cz>
18898
18899         [BZ #11589]
18900         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18901         around j0() zero points by switching to j1().
18902         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18903         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18904         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18905         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18906
18907 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18908
18909         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18910         instead of 0.
18911         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18912         instead of 0.                              .
18913         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18914         Patch in part by Pavel Roskin <proski@gnu.org>.
18915
18916         [BZ #13138]
18917         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18918         realloc.
18919         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18920         Free memory block if necessary.
18921
18922         [BZ #12847]
18923         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18924         be NULL.  Don't lock in this case.
18925
18926 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18927
18928         * elf/elf.h (ELFOSABI_GNU): New macro.
18929         (ELFOSABI_LINUX): Define to that.
18930
18931 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18932
18933         * string/strncat.c (strncat): Undef the symbol in case it has been
18934         defined in bits/string.h.
18935
18936 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18937
18938         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18939
18940         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18941         link map.
18942
18943 2011-08-17  Andreas Jaeger  <aj@suse.de>
18944
18945         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18946
18947 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18948             Ian Lance Taylor  <iant@google.com>
18949
18950         * math/libm-test.inc (lround_test): New testcase.
18951         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18952
18953 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18954
18955         * Makefile: Remove support for automatic cvs check-ins.
18956         * Makerules: Likewise.
18957         * config.make.in: Likewise.
18958         * configure.in: Likewise.
18959         * intl/Makefile: Likewise.
18960         * locale/Makefile: Likewise.
18961         * po/Makefile: Likewise.
18962         * posix/Makefile: Likewise.
18963         * sysdeps/gnu/Makefile: Likewise.
18964         * sysdeps/mach/hurd/Makefile: Likewise.
18965         * sysdeps/sparc/sparc32/Makefile: Likewise.
18966
18967         [BZ #13118]
18968         * posix/Makefile (bug-regex32-ENV): Define.
18969         Patch by John Stanley <jpsinthemix@verizon.net>.
18970
18971         * misc/Makefile (headers): Add bits/select2.h.
18972         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18973         * misc/bits/select2.h: New file.
18974         * include/bits/select2.h: New file.
18975         * debug/Makefile (routines): Add fdelt_chk.
18976         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18977         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18978         FD_ISSET.
18979         * debug/fdelt_chk.c: New file.
18980
18981         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18982         * wcsmbs/test-wmemcmp.c: Likewise.
18983         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18984         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18985
18986 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18987
18988         * string/Makefile (strop-tests): Add memcmp.
18989         * string/test-wmemcmp.c: New file.
18990         * string/test-memcmp.c: Add wmemcmp support.
18991
18992 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18993
18994         [BZ #13153]
18995         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18996         2011-07-19 change.
18997
18998         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18999         garbage value in a __mach_port_mod_refs call in the cases of the
19000         task-self and thread-self ports.
19001
19002 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19003
19004         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
19005
19006 2011-09-08  Andreas Schwab  <schwab@redhat.com>
19007
19008         * elf/dl-load.c (lose): Check for non-null L.
19009
19010 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
19011
19012         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
19013
19014         * elf/dl-libc.c (dlerror_run): Pass back error code from
19015         dl_catch_error.
19016
19017         [BZ #13123]
19018         * elf/dl-load.c (lose): Free l_origin if it is valid.
19019
19020         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
19021         names.
19022         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
19023         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
19024         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
19025         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
19026         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
19027         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
19028
19029 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19030
19031         * sysdeps/powerpc/fpu/e_hypot.c: New file.
19032         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
19033         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
19034         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
19035         * sysdeps/powerpc/fpu/k_cosf.c: New file.
19036         * sysdeps/powerpc/fpu/k_sinf.c: New file.
19037         * sysdeps/powerpc/fpu/s_cosf.c: New file.
19038         * sysdeps/powerpc/fpu/s_sinf.c: New file.
19039         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
19040         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
19041
19042 2011-08-15  Alan Modra  <amodra@gmail.com>
19043
19044         [BZ #13092]
19045         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
19046         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
19047         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
19048         ppc_mcount to static-only-routines.
19049         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
19050         __mcount_internal.
19051         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
19052         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
19053
19054 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
19055
19056         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
19057         for finite and infinity parameters.
19058
19059 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
19060
19061         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
19062         and add nop instructions for throughput optimization.
19063         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19064
19065 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
19066
19067         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
19068         aligned copy for power7 with vector-scalar instructions.
19069         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
19070
19071 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
19072
19073         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
19074         AVX check.
19075
19076 2011-09-07  Andreas Schwab  <schwab@redhat.com>
19077
19078         [BZ #13144]
19079         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
19080         last change.
19081
19082 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
19083
19084         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19085         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
19086         syscall wrapper around clock_gettime in __vdso_clock_gettime.
19087         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
19088         clock_gettime.
19089
19090 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
19091
19092         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
19093         Forgot to demangle the pointer.
19094
19095         * sysdeps/i386/sysdep.h: Define atom_text_section.
19096         * sysdeps/x86_64/sysdep.h: Likewise.
19097         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
19098         section with atom_text_section.
19099         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
19100         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
19101         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
19102         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
19103         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
19104
19105         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
19106         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
19107         already be defined.  Change to take two parameters and don't assign
19108         result to variable.  Adjust all users.
19109         Define INTERNAL_GETTIME if not already defined.
19110         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
19111         call.
19112         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
19113         HAVE_CLOCK_GETTIME_VSYSCALL.
19114         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
19115
19116         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
19117         gettimeofday vsyscall, just use time.
19118
19119 2011-09-06  Andreas Schwab  <schwab@redhat.com>
19120
19121         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
19122         <errno.h>.
19123
19124 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
19125
19126         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
19127         syscall on x86-64.
19128         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
19129         syscall.
19130         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
19131         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
19132         syscall if possible.
19133
19134 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
19135
19136         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
19137         e_ident.  Don't pass to find_mapsXX.
19138         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
19139
19140 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19141
19142         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19143         strchr-sse2-no-bsf strrchr-sse2-no-bsf
19144         * sysdeps/x86_64/multiarch/strchr.S: Update.
19145         Check bit_slow_BSF bit.
19146         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
19147         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
19148         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
19149
19150 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
19151
19152         [BZ #13134]
19153         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
19154         before glibc 2.15.
19155         (tryshell): Define.
19156         (__spawni): Change last parameter to be flag.  Test
19157         SPAWN_XFLAGS_USE_PATH flag to use path or not.
19158         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
19159         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
19160         * posix/spawni.c: Likewise.
19161         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
19162         * posix/spawnp.c: Likewise.  Change normal version to use
19163         SPAWN_XFLAGS_USE_PATH.
19164         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
19165         SPAWN_XFLAGS_TRY_SHELL.
19166
19167         [BZ #13150]
19168         * posix/glob.h: Remove gcc 1.x support.
19169
19170         [BZ #13068]
19171         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
19172
19173 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19174
19175         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19176         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
19177         strrchr-sse2-bsf
19178         * sysdeps/i386/i686/multiarch/strchr.S: New file.
19179         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
19180         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
19181         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
19182         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
19183         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
19184
19185 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19186
19187         * sysdeps/x86_64/wcscmp.S: New file.
19188
19189         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
19190         wcscmp-c wcscmp-sse2
19191         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
19192         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
19193         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
19194         * wcsmbs/wcscmp.c: Allow renaming.
19195
19196 2011-09-05  David S. Miller  <davem@davemloft.net>
19197
19198         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
19199         stack slot, rather than the struct return pointer slot.
19200         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
19201         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
19202         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
19203         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
19204
19205 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
19206
19207         * po/ja.po: Update from translation team.
19208
19209         [BZ #13144]
19210         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
19211         kernel in 64-bit binaries.
19212
19213 2011-09-01  David S. Miller  <davem@davemloft.net>
19214
19215         * elf/elf.h (HWCAP_SPARC_*): Move to..
19216         * sysdeps/sparc/sysdep.h: this new file and add new values.
19217         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
19218         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
19219         _DL_HWCAP_COUNT to 24.
19220         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19221         entries.
19222         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
19223         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
19224         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
19225         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
19226         instead of magic constants.
19227         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19228
19229 2011-08-31  David S. Miller  <davem@davemloft.net>
19230
19231         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
19232         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
19233         Reimplement to do errno handling inline.
19234         (SYSCALL_ERROR_HANDLER): New macro.
19235         (__SYSCALL_STRING): Do not do errno handling in asm.
19236         (__CLONE_SYSCALL_STRING): Delete.
19237         (__INTERNAL_SYSCALL_STRING): Delete.
19238         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
19239         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
19240         (PSEUDO): Reimplement to do errno handling inline.
19241         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
19242         (SYSCALL_ERROR_HANDLER): New macro.
19243         (__SYSCALL_STRING): Do not do errno handling in asm.
19244         (__CLONE_SYSCALL_STRING): Delete.
19245         (__INTERNAL_SYSCALL_STRING): Delete.
19246         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
19247         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
19248         i386.
19249         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
19250         (inline_syscall*): Add 'err' argument.
19251         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
19252         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
19253         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
19254         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
19255
19256         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
19257         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
19258
19259 2011-08-30  Andreas Schwab  <schwab@redhat.com>
19260
19261         * elf/rtld.c (dl_main): Relocate objects in dependency order.
19262
19263 2011-08-29  Jiri Olsa <jolsa@redhat.com>
19264
19265         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
19266         directive.
19267
19268 2011-08-24  David S. Miller  <davem@davemloft.net>
19269
19270         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
19271
19272 2011-08-24  Andreas Schwab  <schwab@redhat.com>
19273
19274         * elf/Makefile: Add rules to build and run unload8 test.
19275         * elf/unload8.c: New file.
19276         * elf/unload8mod1.c: New file.
19277         * elf/unload8mod1x.c: New file.
19278         * elf/unload8mod2.c: New file.
19279         * elf/unload8mod3.c: New file.
19280
19281         * elf/dl-close.c (_dl_close_worker): Reset private search list if
19282         it wasn't used.
19283
19284 2011-08-23  David S. Miller  <davem@davemloft.net>
19285
19286         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
19287         subtract stack bias.
19288         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
19289         %sp not %fp in calculations.
19290         (_JMPBUF_UNWINDS_ADJ): Likewise.
19291
19292         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
19293         (aio_suspend): Call it to force an exception region around the
19294         AIO_MISC_WAIT() invocation.
19295
19296 2011-08-23  Andreas Schwab  <schwab@redhat.com>
19297
19298         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
19299         backslash.
19300
19301 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
19302
19303         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
19304         protection macro.
19305         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
19306         and <dl-machine.h>.
19307         (Elf64_FuncDesc): Remove.
19308
19309 2011-08-22  David S. Miller  <davem@davemloft.net>
19310
19311         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
19312         sigaltstack check, add missing cfi directives.
19313         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
19314         missing cfi directives, and sigaltstack handling.
19315
19316 2011-08-16  Andreas Schwab  <schwab@redhat.com>
19317
19318         [BZ #11724]
19319         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
19320         object is seen twice.
19321         * elf/dl-fini.c (_dl_sort_fini): Likewise.
19322
19323         * elf/Makefile (distribute): Add tst-initorder2.c.
19324         (tests): Add tst-initorder2.
19325         (modules-names): Add tst-initorder2a tst-initorder2b
19326         tst-initorder2c tst-initorder2d.  Add rules to build them.
19327         ($(objpfx)tst-initorder2.out): New rule.
19328         * elf/tst-initorder2.c: New file.
19329         * elf/tst-initorder2.exp: New file.
19330
19331 2011-08-22  Andreas Schwab  <schwab@redhat.com>
19332
19333         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
19334
19335         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
19336         dependencies back to end of function.
19337
19338         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19339         $(elfobjdir)/ld.so.
19340
19341 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
19342
19343         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
19344         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
19345         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
19346         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
19347         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
19348         of __vdso_gettimeofday.
19349         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
19350         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
19351         attribute_hidden.
19352         (_libc_vdso_platform_setup): Remove initialization of
19353         __vdso_gettimeofday and __vdso_time.
19354
19355 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
19356
19357         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
19358         and fgetc_unlocked.
19359         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
19360         getc_unlocked.
19361
19362         * elf/dl-open.c (add_to_global): Report additions to the global scope
19363         for LD_DEBUG=scopes.
19364         (dl_open_worker): Also print scope of newly loaded dependencies.
19365         (_dl_show_scope): Indicate if there is no scope.
19366
19367         [BZ #13114]
19368         * stdio-common/Makefile (tests): Add bug24.
19369         * stdio-common/bug24.c: New file.
19370
19371 2011-08-19  Andreas Jaeger  <aj@suse.de>
19372
19373         [BZ #13114]
19374         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
19375         non-existant file when using close-on-exec mode.
19376
19377 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
19378
19379         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
19380         the very first instruction.
19381
19382         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
19383         the CFI state in the end.
19384         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
19385         inclusion of dl-trampoline.h.
19386         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
19387
19388 2011-08-19  Andreas Schwab  <schwab@redhat.com>
19389
19390         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
19391         expectations for long double.
19392
19393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
19394         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
19395
19396 2011-08-14  David S. Miller  <davem@davemloft.net>
19397
19398         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
19399         artificual limit depends upon the system page size.
19400
19401 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
19402
19403         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
19404         * resolv/Makefile: Define CFLAGS-libresolv.
19405
19406 2011-08-17  Andreas Schwab  <schwab@redhat.com>
19407
19408         * nss/makedb.c (compute_tables): Make variables used in nested
19409         function static.
19410
19411 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
19412
19413         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
19414         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
19415         if buffer was too small.
19416
19417         * elf/pldd.c (main): Attach to all threads in the process.
19418         Rewrite /proc handling to use *at functions.
19419
19420 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
19421
19422         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
19423         specifies first scope to show.
19424         (dl_open_worker): Update callers.  Move printing scope of new
19425         object to before the relocation.
19426         * elf/rtld.c (dl_main): Update _dl_show_scope call.
19427         * sysdeps/generic/ldsodefs.h: Update declaration.
19428
19429         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
19430         string for the scope number.
19431
19432 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
19433
19434         * nscd/servicescache.c (cache_addserv): Make sure written is always
19435         initialized.
19436
19437 2011-08-14  Roland McGrath  <roland@hack.frob.com>
19438
19439         * sysdeps/i386/i486/bits/atomic.h
19440         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
19441         statement expression, so as to suppress "set but not used" warning.
19442         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
19443
19444         * string/strncat.c (STRNCAT): Use prototype definition.
19445
19446         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
19447         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
19448         -Iprograms here.
19449         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
19450         (localedef-modules): Add localedef.
19451         (locale-modules): Add locale.
19452
19453         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
19454         * elf/rtld.c (dl_main): Invert order of assignment in last change,
19455         to avoid a warning.
19456
19457 2011-08-14  David S. Miller  <davem@davemloft.net>
19458
19459         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
19460         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
19461
19462 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
19463
19464         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
19465         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
19466         * elf/rtld.c (dl_main): Set l_name of vDSO.
19467         Call _dl_show_scope when DL_DEBUG_SCOPES.
19468         (process_dl_debug): Recognize scopes flag and also set it for all.
19469         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
19470         Declare _dl_show_scope.
19471
19472         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
19473         (do_dlopen): Pass caller_dlopen to dl_open.
19474         (__libc_dlopen_mode): Initialize caller_dlopen.
19475
19476         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
19477         of libc.  Make tolower call locale-independent.  Optimize a bit by
19478         using isdigit instead of isalnum.
19479         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
19480
19481 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
19482
19483         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
19484         was a dependency or dynamically loaded.
19485
19486 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
19487
19488         * intl/l10nflist.c: Allow architecture-specific pop function.
19489         * sysdeps/x86_64/l10nflist.c: New file.
19490
19491         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
19492         classification.
19493
19494 2011-08-10  Andreas Schwab  <schwab@redhat.com>
19495
19496         * include/dirent.h: Add libc_hidden_proto for scandirat and
19497         scandirat64.  Don't declare __scandirat64.
19498         * dirent/scandirat.c: Add libc_hidden_def.
19499         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
19500         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
19501
19502 2011-08-10  David S. Miller  <davem@davemloft.net>
19503
19504         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
19505         enum.
19506         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19507         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19508         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19509
19510 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
19511
19512         * Versions.def [libc]: Add GLIBC_2.15.
19513         * dirent/Makefile (routines): Add scandirat and scandirat64.
19514         * dirent/Versions [libc]: Export scandirat and scandirat64 for
19515         GLIBC_2.15.
19516         * dirent/dirent.h: Declare scandirat and scandirat64.
19517         * dirent/scandirat.c: New file.
19518         * dirent/scandirat64.c: New file.
19519         * sysdeps/wordsize-64/scandirat.c: New file.
19520         * sysdeps/wordsize-64/scandirat64.c: New file.
19521         * dirent/opendir.c: Define opendirat.
19522         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
19523         using scandirat.
19524         * dirent/scandir64.c: Adjust for scandir.c change.
19525         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
19526         __scandirat64, and __scandir_cancel_handler.
19527         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
19528         additional parameter and use openat instead of open (outside of ld.so).
19529         Add new __opendir as wrapper around __opendirat.
19530         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
19531         here without requiring old scandirat implementation.
19532
19533 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
19534
19535         * dirent/scandir.c (cancel_handler): Renamed to
19536         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
19537         defined.  Adjust users.
19538         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
19539         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
19540
19541 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
19542
19543         * string/test-string.h (IMPL): Use __STRING to expand name and then
19544         stringify it.
19545
19546         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
19547         of cleanups.
19548
19549 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19550
19551         * string/Makefile: Update.
19552         (strop-tests): Append strncat.
19553         * string/test-wcscmp.c: New file.
19554         New comprehensive test for wcscmp.
19555         * string/test-strcmp.c: Update.
19556         (WIDE): New define.
19557
19558 2011-07-22  Andreas Schwab  <schwab@redhat.com>
19559
19560         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
19561         line.
19562
19563 2011-07-26  Andreas Schwab  <schwab@redhat.com>
19564
19565         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19566         encoding to ACE if AI_IDN.
19567
19568 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
19569
19570         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
19571         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
19572
19573 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19574
19575         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
19576         Fix overflow bug in strncat.
19577         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
19578
19579         * string/test-strncat.c: Update.
19580         Add new tests for checking overflow bugs.
19581
19582 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19583
19584         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19585         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
19586         * sysdeps/i386/i686/multiarch/strcat.S: New file.
19587         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
19588         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
19589         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
19590         * sysdeps/i386/i686/multiarch/strncat.S: New file.
19591         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
19592         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
19593
19594         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
19595         (USE_AS_STRCAT): Define.
19596         Add strcat and strncat support.
19597         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
19598
19599 2011-07-25  Andreas Schwab  <schwab@redhat.com>
19600
19601         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
19602         __n bigger than INT_MAX+1.
19603         (__strncmp_g): Likewise.
19604
19605 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
19606
19607         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
19608         * libio/stido.h: Likewise.
19609
19610         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
19611         (AF_NFC): Define.
19612         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
19613         (AF_NFC): Define.
19614
19615         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
19616         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19617         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19618         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19619         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19620
19621         [BZ #13021]
19622         * scripts/test-installation.pl: Don't expect libnss_test1 to be
19623         installed.
19624
19625         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
19626         typo.
19627         (_dl_x86_64_save_sse): Likewise.
19628
19629 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
19630
19631         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
19632         OSXSAVE.
19633         (_dl_x86_64_save_sse): Likewise.
19634
19635         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
19636
19637         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
19638
19639 2011-07-21  Andreas Schwab  <schwab@redhat.com>
19640
19641         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
19642         change.
19643         (_dl_x86_64_save_sse): Use correct AVX check.
19644
19645 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19646
19647         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
19648         bug in strncpy/strncat.
19649         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
19650
19651 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
19652
19653         * string/tester.c (test_strcat): Add tests for different alignments
19654         of source and destination.
19655         (test_strncat): Likewise.
19656
19657 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
19658
19659         [BZ #12852]
19660         * posix/glob.c (glob): Check passed in values before using them in
19661         expressions to avoid some overflows.
19662         (glob_in_dir): Likewise.
19663
19664         [BZ #13007]
19665         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
19666         check for AVX enablement so that we don't crash with old kernels and
19667         new hardware.
19668         * elf/tst-audit4.c: Add same checks here.
19669         * elf/tst-audit6.c: Likewise.
19670
19671         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
19672
19673 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
19674
19675         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
19676
19677 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
19678
19679         * po/cs.po: Update from translation team.
19680         * po/bg.po: Likewise.
19681
19682 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
19683
19684         * misc/sys/cdefs.h: Add support for const attribute.
19685         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
19686         to gnu_dev_{major,minor,makedev} functions.
19687
19688 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
19689
19690         * intl/dcigettext.c (get_output_charset): Add missing bracket.
19691
19692 2011-07-20  Andreas Schwab  <schwab@redhat.com>
19693
19694         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
19695         strlen results.
19696
19697 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19698
19699         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
19700         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
19701         register in order to avoid conflicts with the soft frame pointer
19702         being held in r11 when necessary.
19703         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19704         (INTERNAL_VSYSCALL_NCS): Likewise.
19705
19706 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
19707
19708         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
19709         * elf/dl-fini.c (_dl_fini): Adjust caller.
19710         * elf/dl-close.c (_dl_close_worker): Likewise.
19711         * sysdeps/generic/ldsodefs.h: Adjust declaration.
19712
19713 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
19714
19715         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
19716         "aux_cache->nlibs < 0".
19717
19718         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
19719         in the reload-count case.
19720
19721 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19722
19723         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19724         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
19725         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
19726         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
19727         * sysdeps/x86_64/multiarch/strcat.S: New file.
19728         * sysdeps/x86_64/multiarch/strncat.S: New file.
19729         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
19730         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
19731         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
19732         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
19733         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
19734         (USE_AS_STRCAT): Define.
19735         Add strcat and strncat support.
19736         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
19737         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
19738         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
19739         * string/strncat.c: Update.
19740         (USE_AS_STRNCAT): Define.
19741         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19742         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
19743         and i7.
19744         * sysdeps/x86_64/multiarch/init-arch.h
19745         (bit_Prefer_PMINUB_for_stringop): New.
19746         (index_Prefer_PMINUB_for_stringop): Likewise.
19747         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
19748         bit_Prefer_PMINUB_for_stringop.
19749
19750 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19751
19752         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
19753         buffer64.
19754         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
19755         of casting of buffer.
19756         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
19757         buffer32 and buffer64.
19758         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
19759         writes instead of casting of buffer.
19760         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
19761         buffer32.
19762         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
19763         casting of buffer.
19764
19765 2011-07-19  Andreas Schwab  <schwab@redhat.com>
19766
19767         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
19768
19769 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19770
19771         * nscd/nscd.c (termination_handler): Don't do anything for a database
19772         if it has not yet been initialized.
19773
19774 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19775
19776         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19777
19778 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
19779
19780         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19781
19782 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19783
19784         * po/nl.po: Update from translation team.
19785         * po/sv.po: Likewise.
19786
19787 2011-07-16  Roland McGrath  <roland@hack.frob.com>
19788
19789         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
19790         now disallowed by GCC.
19791
19792         * configure.in (use-default-link): Default to yes if a test -shared
19793         link meets our qualifications.
19794         * configure: Regenerated.
19795
19796         * config.make.in (output-format): New variable.
19797         * configure.in: Check for ld --print-output-format support.
19798         * configure: Regenerated.
19799         * Makerules ($(common-objpfx)format.lds)
19800         [$(output-format) != unknown]: Just use $(output-format),
19801         instead of the linker-script munging.
19802
19803 2011-07-14  Roland McGrath  <roland@hack.frob.com>
19804
19805         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19806         of $(common-objpfx)shlib.lds.
19807         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19808
19809         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19810         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19811
19812         * configure.in (-z relro check): Adjust test code to add a large
19813         writable data section after it.
19814         * configure: Regenerated.
19815
19816 2011-07-11  Roland McGrath  <roland@hack.frob.com>
19817
19818         * configure.in (-z relro check): Fix test code to make the variable
19819         truly const.
19820         * configure: Regenerated.
19821
19822 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
19823
19824         * nscd/nscd.h (struct traced_file): Define.
19825         (struct database_dyn): Remove inotify_descr, reset_res, and filename
19826         elements.  Add traced_files.
19827         (inotify_fd): Declare.
19828         (register_traced_file): Declare.
19829         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19830         (inotify_fd): Export.
19831         (resolv_conf_descr): Remove.
19832         (nscd_init): Move inotify descriptor creation to main.
19833         Don't register files for notification here.
19834         (register_traced_file): New function.
19835         (invalidate_cache): Don't use reset_res to determine whether to call
19836         res_init, go through the list of registered files.
19837         (main_loop_poll): The inotify descriptors are now stored in the
19838         structures for the traced files.
19839         (main_loop_epoll): Likewise
19840         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19841         to __nss_disable_nscd.
19842         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19843         for a database anymore.  Check the records for all the registered
19844         files instead.
19845         * nss/Makefile (libnss_files-routines): Add files-init.
19846         (libnss_db-routines): Add db-init.
19847         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19848         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19849         * nss/nss_db/db-init.c: New file.
19850         * nss/nss_files/files-init.c: New file.
19851         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19852         __nss_lookup_function.
19853         (__nss_lookup_function): Call nss_load_library.
19854         (nss_load_all_libraries): New function.
19855         (__nss_disable_nscd): Take parameter with callback function for files
19856         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19857         used for the cached services.
19858         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19859         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19860         options for features to all the files in nscd.
19861
19862         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19863
19864 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19865
19866         * csu/elf-init.c (__libc_csu_init): Comment typo.
19867
19868 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19869
19870         * po/pl.po: Update from translation team.
19871         * po/ja.po: Likewise.
19872         * po/ru.po: Likewise.
19873         * po/ko.po: Likewise.
19874         * po/fr.po: Likewise.
19875
19876 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19877
19878         * configure.in (.ctors/.dtors header and trailer check):
19879         Use an empirical test on a built program.
19880         * configure: Regenerated.
19881
19882         * configure.in (-z relro check): Use an empirical test on a built DSO.
19883         Detect, but do not require, on ia64.
19884         * configure: Regenerated.
19885
19886         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19887         Update tests that use readelf to use $READELF instead.
19888         * configure: Regenerated.
19889
19890 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19891
19892         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19893         if the result is not used.
19894
19895 2011-07-05  Andreas Jaeger  <aj@suse.de>
19896
19897         [BZ#9696]
19898         * stdlib/tst-strtod.c: Add testcase.
19899
19900 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19901
19902         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19903         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19904         The latter has a higher limit.  Take additional parameter to pass to
19905         the new function.
19906         (__pathconf): Pass file to __statfs_link_max.
19907         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19908         __statfs_link_max.
19909         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19910         __statfs_link_max.
19911
19912         [BZ #12868]
19913         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19914         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19915         Handle Lustre.
19916         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19917         (__statfs_filesize_max): Likewise.
19918         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19919
19920 2011-07-05  Andreas Jaeger  <aj@suse.de>
19921
19922         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19923
19924 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19925
19926         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19927         `status' variable.
19928         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19929         Likewise.
19930
19931 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19932
19933         * Makefile (strop-tests): Add strncat.
19934         * string/test-strncat.c: New file.
19935
19936 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19937
19938         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19939
19940 2011-06-21  Andreas Jaeger  <aj@suse.de>
19941
19942         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19943         Copy rule from iconvdata/Makefile.
19944
19945 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19946
19947         [BZ #12922]
19948         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19949         but no long options are defined, just return 'W'.
19950
19951 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19952
19953         [BZ #9696]
19954         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19955
19956 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19957
19958         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19959         netgroups to read.
19960         (innetgr): Likewise.
19961
19962 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19963
19964         * config.make.in (install_root): Default to $(DESTDIR).
19965
19966 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19967
19968         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19969
19970 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19971
19972         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19973
19974         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19975         containing directory rather than embedding absolute directory names.
19976
19977         * scripts/check-local-headers.sh: Rewritten using awk.
19978         Match by word, not by line.  Print error messages for matches.
19979         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19980
19981         * Makerules [shlib-lds-flags empty]:
19982         ($(common-objpfx)libc_pic.opts): New target.
19983         ($(common-objpfx)libc_pic.os.clean): New target.
19984         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19985
19986         * config.make.in (OBJCOPY): New variable.
19987         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19988         * configure: Regenerated.
19989
19990         * config.make.in (use-default-link): New variable.
19991         * configure.in (use_default_link): Grok --with-default-link to set it.
19992         * configure: Regenerated.
19993         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19994         (shlib-lds, shlib-lds-flags): Define to empty.
19995
19996         * Makerules (shlib-lds): New variable.
19997         (shlib-lds-flags): New variable.
19998         (build-shlib, build-moduile, build-module-asneeded): Use it.
19999         ($(common-objpfx)libc.so): Use $(shlib-lds).
20000         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
20001         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
20002
20003         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
20004         DT_FLAGS/DT_FLAGS_1 with zero flags.
20005
20006         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
20007         linker script munging.
20008
20009 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
20010
20011         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
20012         as 128-bit value.
20013         * crypt/sha512.c (sha512_process_block): Perform total addition using
20014         128-bit if possible.
20015         (__sha512_finish_ctx): Likewise.
20016         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
20017         as 64-bit value.
20018         * crypt/sha256.c (SWAP64): Define.
20019         (sha256_process_block): Perform total addition using 64-bit if
20020         possible.
20021         (__sha256_finish_ctx): Likewise.
20022
20023 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
20024
20025         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
20026         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20027         * nscd/hstcache.c (cache_addhst): Likewise.
20028         * nscd/grpcache.c (cache_addgr): Likewise.
20029         * nscd/aicache.c (addhstaiX): Likewise
20030         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
20031
20032 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
20033
20034         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
20035         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20036         * nscd/hstcache.c (cache_addhst): Likewise.
20037         * nscd/grpcache.c (cache_addgr): Likewise.
20038         * nscd/aicache.c (addhstaiX): Likewise
20039
20040 2011-07-01  Andreas Schwab  <schwab@redhat.com>
20041
20042         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
20043         domain only when needed.
20044
20045 2011-06-30  Andreas Schwab  <schwab@redhat.com>
20046
20047         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
20048         is always restored.
20049
20050 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
20051
20052         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
20053         are re-adding the entry.
20054         * nscd/servicescache.c (cache_addserv): Likewise.
20055
20056 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
20057
20058         * sysdeps/generic/dl-irel.h: fix protection against multiple
20059         inclusions.
20060         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
20061
20062 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
20063
20064         [BZ #12935]
20065         * malloc/memusage.sh: Fix quoting in message.
20066         * debug/xtrace.sh: Likewise.
20067
20068         * configure.in: Remove support for --experimental-malloc option, make
20069         it the default.
20070         * config.make.in: Likewise.
20071         * malloc/Makefile: Likewise.
20072
20073 2011-06-27  Andreas Schwab  <schwab@redhat.com>
20074
20075         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
20076         two-byte characters.
20077
20078 2011-06-27  Roland McGrath  <roland@hack.frob.com>
20079
20080         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
20081         AC_CACHE_CHECK invocation.
20082         * configure: Regenerated.
20083
20084         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
20085
20086 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
20087
20088         [BZ #12350]
20089         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
20090         bit from old_res_options.
20091
20092         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
20093
20094         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
20095         value type for setfct.
20096
20097 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20098
20099         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
20100         __gettimeofday instead of gettimeofday.
20101
20102 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
20103
20104         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
20105
20106 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
20107
20108         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
20109
20110         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
20111         info.
20112
20113 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
20114
20115         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20116         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
20117         strcpy-sse2-unaligned strncpy-sse2-unaligned
20118         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
20119         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
20120         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
20121         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
20122         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
20123         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
20124         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
20125         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
20126         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
20127         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
20128         (STRCPY): Support SSE2 and SSSE3 versions.
20129
20130 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
20131
20132         [BZ #12874]
20133         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
20134         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
20135         kernels which artificially limit size of requests.
20136
20137 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
20138
20139         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20140         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
20141         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
20142         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
20143         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
20144         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
20145         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
20146         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
20147         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
20148         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
20149         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
20150         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
20151         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
20152         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
20153         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
20154         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20155         Enable unaligned load optimization for Intel Core i3, i5 and i7
20156         processors.
20157         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
20158         Define.
20159         (index_Fast_Unaligned_Load): Define.
20160         (HAS_FAST_UNALIGNED_LOAD): Define.
20161
20162 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
20163
20164         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
20165
20166 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
20167
20168         [BZ #12907]
20169         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
20170         until it is clear that the information is realy needed.
20171         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
20172
20173 2011-06-22  Andreas Schwab  <schwab@redhat.com>
20174
20175         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
20176
20177 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
20178
20179         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
20180         /sys/devices/system/cpu/online if it is usable.
20181
20182         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
20183         reading the information from the /proc filesystem to once a second.
20184
20185 2011-06-21  Andreas Jaeger  <aj@suse.de>
20186
20187         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
20188         NULL after inclusion of kernel headers.
20189
20190 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
20191
20192         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
20193         calls to internal_setent.
20194
20195         [BZ #12885]
20196         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
20197         addresses using gethostbyname4_r ignore IPv4 addresses.
20198
20199         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
20200         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
20201
20202         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
20203
20204 2011-06-20  David S. Miller  <davem@davemloft.net>
20205
20206         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
20207         inclusions.
20208         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
20209
20210         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
20211         (elf_irel): Use it.
20212         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
20213         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
20214         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
20215         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
20216         * sysdeps/x86_64/dl-irel.h: Likewise.
20217
20218         * elf/dl-runtime.c: Use elf_ifunc_invoke.
20219         * elf/dl-sym.c: Likewise.
20220
20221 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
20222
20223         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
20224         need to dereference resplen2.
20225
20226 2011-06-14  Andreas Schwab  <schwab@redhat.com>
20227
20228         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
20229
20230 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
20231
20232         * Makeconfig: Define vardbdir and inst_vardbdir.
20233         * nss/Makefile: Add rules to install db-Makefile.
20234
20235         * nss/nss_db/db-XXX.c: Cleanup.
20236
20237         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
20238         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
20239         GLIBC_PRIVATE.
20240         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
20241         * nss/makedb.c: Implement -g option to specify that value strings
20242         are generated and should not be added to table iterated over for
20243         get*ent calls.
20244         * nss/nss_db/db-initgroups.c: New file.
20245
20246         * nss/getent.c: Add support for initgroups lookups through getgrouplist
20247         interface.
20248
20249         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
20250         (internal_getgrouplist): Adjust to name change.
20251         Update use_initgroups_entry if this is not the first call.
20252         * nss/databases.def: Add initgroups entry.
20253
20254         * nss/makedb.c (compute_tables): Check result of multiple hash table
20255         sizes to minimize maximum chain length.
20256
20257 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
20258
20259         * Versions.def: Add entry for libnss_db.
20260         * shlib-versions: Likewise.
20261         * nss/Makefile: Add rules to build libnss_db.
20262         * nss/Versions: Add libnss_db information.  Organize libnss_files
20263         entries better.
20264         * nss/db-Makefile: Add gshadow support.  Change rules for the new
20265         makedb progra.  Some minor improvements to generate smaller files.
20266         * nss/nss_db/nss_db.h: Move NSS database header data structures to
20267         here from...
20268         * nss/makedb.c: ...here.
20269         Improve database format to be smaller and require less memory at
20270         runtime.
20271         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
20272         db anymore.
20273         * nss/nss_db/db-netgrp.c: Likewise.
20274         * nss/nss_db/db-open.c: Likewise.
20275         * nss/nss_files/flies-XXX.x: Adjust comments.
20276         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
20277         * nss/nss_files/files-grp.c: Likewise.
20278         * nss/nss_files/files-hosts.c: Likewise.
20279         * nss/nss_files/files-network.c: Likewise.
20280         * nss/nss_files/files-proto.c: Likewise.
20281         * nss/nss_files/files-pwd.c: Likewise.
20282         * nss/nss_files/files-rpc.c: Likewise.
20283         * nss/nss_files/files-service.c: Likewise.
20284         * nss/nss_files/files-sgrp.c: Likewise.
20285         * nss/nss_files/files-spwd.c: Likewise.
20286         * nss/nss_db/db-alias.c: Removed.
20287         * nss/nss_db/dummy-db.h: Removed.
20288
20289 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
20290
20291         * nss/makedb.c: Rewritten to not use database library.
20292         * nss/Makefile: Update to build new makedb program.
20293
20294 2011-06-14  Andreas Jaeger  <aj@suse.de>
20295
20296         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
20297         memset declaration.
20298
20299 2011-06-10  Andreas Schwab  <schwab@redhat.com>
20300
20301         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
20302         tmpbuf.
20303
20304 2011-06-10  Roland McGrath  <roland@hack.frob.com>
20305
20306         * Makerules (shlib.lds): Fail if the linker script comes out empty.
20307         * elf/Makefile ($(objpfx)ld.so): Likewise.
20308
20309         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
20310         Don't list ld.so twice in dependencies.
20311
20312         * posix/bug-regex31.c: Include <stdlib.h>.
20313
20314         * nscd/hstcache.c (cache_addhst): Remove unused variable.
20315
20316         * nis/nss_compat/compat-spwd.c
20317         (getspent_next_nss_netgr): Remove unused variable.
20318         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
20319
20320         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
20321         nonmembers" output to use the right array.
20322
20323         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
20324
20325         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
20326
20327         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
20328         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
20329         * catgets/gencat.c (read_input_file): Likewise.
20330         * locale/programs/locarchive.c (enlarge_archive): Likewise.
20331
20332         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
20333         variable definition inside #if's controlling its use.
20334
20335         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
20336
20337         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
20338
20339         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
20340
20341         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
20342         unreachable code.
20343
20344         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
20345
20346         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
20347         * configure: Regenerated.
20348
20349         * Makerules: Revert last change.
20350         * elf/Makefile: Likewise.
20351
20352 2011-06-09  Roland McGrath  <roland@hack.frob.com>
20353
20354         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
20355         * elf/Makefile ($(objpfx)librtld.os): Likewise.
20356         (reloc-link): Likewise.
20357
20358 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
20359
20360         * elf/Makefile: Add rules to build pldd.
20361         * elf/pldd.c: New file.
20362         * elf/pldd-xx.c: New file.
20363
20364 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
20365
20366         * version.h: Update for 2.15 development version.
20367
20368 2011-06-07  David S. Miller  <davem@davemloft.net>
20369
20370         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
20371         ifuncs.
20372         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
20373         elf_machine_lazy_rel): Likewise.
20374         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
20375         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
20376         elf_machine_lazy_rel): Likewise.
20377         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
20378         dl_hwcap via passed in argument.
20379         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
20380         Likewise.
20381
20382 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20383
20384         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
20385
20386 2011-06-06  Roland McGrath  <roland@hack.frob.com>
20387
20388         [BZ #12849]
20389         * manual/fdl-1.1.texi: New file, verbatim from:
20390         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
20391         * manual/lgpl-2.1.texi: New file, verbatim from:
20392         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
20393         * manual/Makefile (licenses): New variable, list those new file names.
20394         (texis): Use it.
20395         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
20396
20397         * manual/fdl.texi: File removed.
20398         * manual/lesser.texi: File removed.
20399         * manual/libc.texinfo (Copying, Documentation License):
20400         Use new @include file names, put @appendix directive before @include.
20401
20402 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
20403
20404         [BZ #12841]
20405         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
20406         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
20407         (mq_open): Add __NTH.
20408
20409 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
20410
20411         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20412         Assume Intel Core i3/i5/i7 processor if AVX is available.
20413
20414 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
20415
20416         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
20417         typo.
20418
20419 2011-05-31  Andreas Schwab  <schwab@redhat.com>
20420
20421         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
20422         memory.  Use alloca_account.  Fix memory leak when retrying.
20423
20424 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
20425
20426         * version.h (RELEASE): Bump for 2.14 release.
20427         * include/features.h (__GLIBC_MINOR__): Bump to 14.
20428
20429         * config.make.in (RANLIB): Remove entry.
20430
20431 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
20432
20433         * po/Makefile (po-sed-cmd): Add ksh to extensions.
20434         (libc.pot): Work around missing support for .ksh extension in xgettext.
20435
20436         [BZ #12684]
20437         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
20438         if both request failed.
20439         (send_dg): In case of server errors clear resplen or *resplen2.
20440
20441         [BZ #12454]
20442         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
20443         when there are multiple maps.
20444         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
20445         (_dl_fini): Remove test here.
20446
20447         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
20448
20449 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
20450
20451         [BZ #12350]
20452         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
20453         bit from old_res_options.
20454         (gaih_inet): Likewise.
20455
20456         [BZ #11099]
20457         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
20458         as signed.
20459
20460         * resolv/res_init.c (res_setoptions): Make the code more compact.
20461
20462         [BZ #11558]
20463         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
20464         set RES_USEVC.
20465
20466         [BZ #11634]
20467         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
20468
20469         * malloc/malloc.h: Mark malloc hook variables as deprecated.
20470
20471         [BZ #11781]
20472         * malloc/malloc.h: Declare malloc hook variables as volatile.
20473
20474         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
20475         in last patch.
20476
20477         [BZ #11799]
20478         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
20479         raise in the comment.
20480         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20481         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20482         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
20483
20484 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
20485
20486         [BZ #12811]
20487         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
20488         grow the buffers more if it already has to be sufficient.
20489         (build_wcs_upper_buffer): Likewise.
20490         * posix/regexec.c (check_matching): Likewise.
20491         (clean_state_log_if_needed): Likewise.
20492         (extend_buffers): Don't enlarge buffers beyond size of the input
20493         buffer.
20494         Patches mostly by Emil Wojak <emil@wojak.eu>.
20495         * posix/bug-regex32.c: New file.
20496         * posix/Makefile (tests): Add bug-regex32.
20497
20498         * locale/findlocale.c (_nl_find_locale): Return right away if
20499         _nl_explode_name failed.
20500         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
20501
20502         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
20503
20504         * debug/xtrace.sh: Unify messages.
20505         * malloc/memusage.sh: Likewise.
20506
20507         [BZ #12813]
20508         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
20509         time symbol from vDSO.  Substitute with vsyscall if not available.
20510         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
20511         __vdso_time.
20512
20513         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
20514         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
20515         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
20516         Add sendmmsg and internal_sendmmsg.
20517         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
20518         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
20519         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
20520
20521         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
20522         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
20523         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
20524
20525 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
20526
20527         [BZ #12813]
20528         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
20529         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
20530         available.
20531         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
20532         __vdso_getcpu.
20533
20534         [BZ #12814]
20535         * iconvdata/Makefile (tests): Add bug-iconv9.
20536         * iconvdata/bug-iconv9.c: New file.
20537
20538 2011-05-27  Andreas Schwab  <schwab@redhat.com>
20539
20540         [BZ #12814]
20541         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
20542
20543 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
20544
20545         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
20546         (struct user_regs_struct): Change intcs field back to cs.
20547
20548 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
20549
20550         * po/ja.po: Update from translation team.
20551
20552 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
20553
20554         [BZ #12795]
20555         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
20556         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
20557
20558 2011-05-20  Andreas Schwab  <schwab@redhat.com>
20559
20560         * stdlib/longlong.h: Update from GCC.
20561
20562 2011-05-23  Andreas Schwab  <schwab@redhat.com>
20563
20564         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
20565         parameter name.
20566         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
20567         Add parameter name.
20568         (__sysconf): Pass it down.
20569
20570 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
20571
20572         [BZ #12671]
20573         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
20574         some situations.
20575         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
20576         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
20577         add in in __libc_use_alloca calls.  Adjust callers.
20578         (glob): Use malloc in some situations.
20579
20580         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
20581         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
20582         pltexit.
20583
20584 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
20585
20586         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
20587         and CLOCK_BOOTTIME_ALARM.
20588
20589         [BZ #12782]
20590         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
20591         is returned.
20592
20593         * string/_strerror.c (__strerror_r): Print negative errors as signed
20594         numbers.
20595
20596         [BZ #12777]
20597         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
20598         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
20599         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
20600
20601         * configure.in: Fix typo in redirection and correct removal of test
20602         files in two cases.
20603
20604         [BZ #12788]
20605         * locale/setlocale.c (new_composite_name): Fix test to check for
20606         identical name of all categories.
20607
20608         [BZ #12792]
20609         * libio/filedoalloc.c (local_isatty): New function.
20610         (_IO_file_doallocate): Use local_isatty.
20611         * stdio-common/perror.c (perror): In case a new stream is used
20612         forward the stream error.
20613         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
20614         error flag.
20615
20616 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
20617
20618         [BZ #11869]
20619         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
20620         alloca.
20621         * include/alloca.h (extend_alloca_account): Define.
20622
20623         [BZ #11857]
20624         * posix/regex.h: Fix comments with documentation of user-accessible
20625         fields after compilation and describe correct free'ing of pattern
20626         after re_compile_pattern.
20627         Patch by Reuben Thomas <rrt@sc3d.org>.
20628
20629 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
20630
20631         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
20632         and -mno-altivec to prevent the compiler from using Altivec and/or
20633         VSX instructions when the corresponding registers are not available.
20634
20635 2011-05-19  Andreas Schwab  <schwab@redhat.com>
20636
20637         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
20638
20639 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
20640
20641         * libio/freopen.c (freopen): Use __dup2, not dup2.
20642         * libio/freopen64.c (freopen64): Likewise.
20643
20644 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20645
20646         [BZ #12775]
20647         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
20648         * math/Makefile (tests): Add test-powl.
20649         (CFLAGS-test-powl.c): Define.
20650         * math/test-powl.c: New file.
20651
20652 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20653
20654         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
20655
20656 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
20657
20658         [BZ #11837]
20659         * iconvdata/gb18030.c: Update to GB18020-2005.
20660
20661 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
20662
20663         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
20664         RE_SYNTAX_POSIX_AWK): Update to match recent development.
20665         Patch by Aharon Robbins <arnold@skeeve.com>.
20666
20667         [BZ #11892]
20668         * stdlib/putenv.c (putenv): Don't always create copy of the variable
20669         on the stack.
20670
20671         [BZ #11895]
20672         * misc/pselect.c (__pselect): Handle timeout value errors hidden
20673         through underflows.
20674
20675         [BZ #12766]
20676         * misc/error.c (error_at_line): Ensure file_name and old_file_name
20677         point to strings before performing equality test for error_one_per_line
20678         mode.
20679
20680         [BZ #11697]
20681         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
20682
20683         [BZ #11820]
20684         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
20685         (struct user_fpregs_struct): Avoid __uint*_t types.
20686
20687         [BZ #6420]
20688         * malloc/mtrace.c (tr_where): Add additional parameter to point to
20689         symbol info.  Use it instead of calling _dl_addr locally.
20690         (lock_and_info): New function.
20691         (tr_freehook): Call lock_and_info and pass symbol info as additional
20692         parameter to tr_where.
20693         (tr_mallochook): Likewise.
20694         (tr_reallochook): Likewise.
20695         (tr_memalignhook): Likewise.
20696
20697         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
20698         used and couldn't be at all thread-safe.
20699
20700 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
20701
20702         * libio/freopen.c (freopen): Don't close old file descriptor
20703         before the new one is opened.  Instead dup the new file descriptor
20704         to the old one after the new stream is created.
20705         * libio/freopen64.c (freopen64): Likewise.
20706         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
20707         * libio/fileops.c (_IO_new_file_close_it): Handle new
20708         _IO_FLAGS2_NOCLOSE flag.
20709         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
20710         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
20711         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
20712         _IO_FLAGS2_NOCLOSE flag.
20713         * include/unistd.h: Add hidden_proto for dup3.
20714         Define __have_dup3.
20715         * io/dup3.c: Define hidden symbol.
20716         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
20717
20718         [BZ #7101]
20719         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
20720         when an incomplete long option is used.
20721         * posix/tst-getopt_long1.c: New file.
20722         * posix/Makefile (tests): Add tst-getopt_long1.
20723
20724         [BZ #10138]
20725         * scripts/config.guess: Update from autoconf-2.68.
20726         * scripts/config.sub: Likewise.
20727
20728         [BZ #10157]
20729         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
20730         tests into ...
20731         (has_cpuclock): ...this.  New function.
20732         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
20733         macro here based on has_cpuclock code.
20734
20735         [BZ #10149]
20736         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20737         First byte (not low byte) is now always NUL.
20738         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
20739
20740         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20741         Use non-cancelable interfaces.
20742
20743         [BZ #9809]
20744         * locale/iso-639.def: Add entry for Sorani.
20745
20746         [BZ #11901]
20747         * include/stdlib.h: Move include protection to the right place.
20748         Define abort_msg_s.  Declare __abort_msg with it.
20749         * stdlib/abort.c (__abort_msg): Adjust type.
20750         * assert/assert.c (__assert_fail_base): New function.  Majority
20751         of code from __assert_fail.  Allocate memory for __abort_msg with
20752         mmap.
20753         (__assert_fail): Now call __assert_fail_base.
20754         * assert/assert-perr.c: Remove bulk of implementation.  Use
20755         __assert_fail_base.
20756         * include/assert.hL Declare __assert_fail_base.
20757         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
20758         mmap.
20759         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
20760
20761 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
20762
20763         [BZ #11952]
20764         [BZ #12453]
20765         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
20766         until all modules are registered in the DTV.
20767         * elf/Makefile: Add rules to build and run tst-tls19.
20768         * elf/tst-tls19.c: New file.
20769         * elf/tst-tls19mod1.c: New file.
20770         * elf/tst-tls19mod2.c: New file.
20771         * elf/tst-tls19mod3.c: New file.
20772         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
20773
20774         [BZ #12083]
20775         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
20776         correctly.
20777
20778         [BZ #12601]
20779         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
20780         two-byte sequence errors.
20781         * iconvdata/Makefile (tests): Add bug-iconv8.
20782         * iconvdata/bug-iconv8.c: New file.
20783
20784         [BZ #12626]
20785         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
20786         buf2 definition.
20787
20788         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
20789
20790         [BZ #12432]
20791         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
20792         (dummy_getcfa): New function.
20793         (init): Get _Unwind_GetCFA address, use dummy if not found.
20794         (backtrace_helper): In recursion check, also check whether CFA changes.
20795         (__backtrace): Completely initialize arg.
20796
20797         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
20798         storing incomplete byte sequence in state object.  Avoid testing for
20799         guaranteed too small input if we know there is enough data available.
20800
20801 2011-05-11  Andreas Schwab  <schwab@redhat.com>
20802
20803         * Makeconfig (+link-pie): Indent.
20804         * Rules (binaries-pie): Define if $(have-fpie) and
20805         $(build-shared).
20806         (binaries-shared): Also filter out $(binaries-pie).
20807         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20808         * nscd/Makefile (others-pie): Add nscd.
20809         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20810         ($(objpfx)nscd): Remove command override.
20811         * login/Makefile (others-pie): Add pt_chown.
20812         ($(objpfx)pt_chown): Remove command override.
20813         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20814         remove command overrides.
20815
20816 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
20817
20818         * libio/tst_putwc.c: Fix error messages.
20819
20820         [BZ #12724]
20821         * libio/fileops.c (_IO_new_file_close_it): Always flush when
20822         currently writing and seek to current position when not.
20823         * libio/Makefile (tests): Add bug-fclose1.
20824         * libio/bug-fclose1.c: New file.
20825
20826 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
20827
20828         [BZ #12511]
20829         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20830         don't set DF_1_NODELETE here.
20831         (do_lookup_x): When entering new entry test for copy relocation
20832         and if necessary set DF_1_NODELETE flag.
20833         * elf/tst-unique4.cc: New file.
20834         * elf/tst-unique4.h: New file.
20835         * elf/tst-unique4lib.cc: New file.
20836         * elf/Makefile: Add rules to build and run tst-unique4.
20837         Patch by Piotr Bury <pbury@goahead.com>.
20838
20839 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20840
20841         [BZ #12052]
20842         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20843
20844         [BZ #12625]
20845         * misc/mntent_r.c (addmntent): Flush the stream after the output
20846
20847         [BZ #12393]
20848         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20849         (is_trusted_path_normalize): Skip initial colon.  Append slash
20850         to empty buffer.  Duplicate is_trusted_path code but allow
20851         constructed patch to be prefix.
20852         (is_dst): Allow $ORIGIN followed by /.
20853         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20854         Correct testing of result of is_trusted_path_normalize
20855         (decompose_rpath): Fix warning.
20856
20857 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20858
20859         [BZ #11257]
20860         * grp/initgroups.c (internal_getgrouplist): When we found the service
20861         list through the initgroups entry in nsswitch.conf do not always
20862         continue on a successful lookup.  Don't always use the
20863         __nss_group_database value if it is set.
20864         * nss/nsswitch.conf (initgroups): Change action for successful db
20865         lookup to continue for compatibility.
20866
20867 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20868
20869         [BZ #11532]
20870         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20871         and CP774 modules.
20872         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20873         and CP774 modules.
20874         * iconvdata/tst-tables.sh: Likewise.
20875         * iconvdata/cp770.c: New file.
20876         * iconvdata/cp771.c: New file.
20877         * iconvdata/cp772.c: New file.
20878         * iconvdata/cp773.c: New file.
20879         * iconvdata/cp774.c: New file.
20880         * iconvdata/testdata/CP770: New file.
20881         * iconvdata/testdata/CP770..UTF8: New file.
20882         * iconvdata/testdata/CP771: New file.
20883         * iconvdata/testdata/CP771..UTF8: New file.
20884         * iconvdata/testdata/CP772: New file.
20885         * iconvdata/testdata/CP772..UTF8: New file.
20886         * iconvdata/testdata/CP773: New file.
20887         * iconvdata/testdata/CP773..UTF8: New file.
20888         * iconvdata/testdata/CP774: New file.
20889         * iconvdata/testdata/CP774..UTF8: New file.
20890
20891         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20892         END CHARMAP line.
20893         * iconvdata/gen-8bit-gap.sh: Likewise.
20894         * iconvdata/gen-8bit.sh: Likewise.
20895
20896         * locale/iso-639.def: Add ary entry.
20897
20898         [BZ #11258]
20899         * locale/C-translit.h.in: Add U20A1 transliteration.
20900
20901         [BZ #12178]
20902         * locale/iso-639.def: Add wae entry.
20903         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20904
20905         [BZ #12545]
20906         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20907         for n.
20908
20909         [BZ #12711]
20910         * locale/C-translit.h.in: Add entry for U20B9.
20911         Patch by pravin.d.s@gmail.com.
20912
20913 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20914
20915         [BZ #12713]
20916         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20917         ENAMETOOLONG use generic getcwd.
20918         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20919         in rtld.  Use *stat64.
20920         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20921         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20922         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20923         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20924         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20925         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20926         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20927         __fstatat64 macros.
20928         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20929         * dirent/rewinddir.c: Add libc_hidden_def.
20930         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20931         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20932
20933         * include/dirent.h (__alloc_dir): Add flags parameter.
20934         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20935         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20936         __alloc_dir.
20937         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20938         from fdopendir if O_CLOEXEC is already set.
20939
20940 2011-03-15  Alan Modra  <amodra@gmail.com>
20941
20942         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20943         l_tls_firstbyte_offset non-zero.  Save padding offset in
20944         l_tls_firstbyte_offset for later use.
20945         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20946         freeing static tls block.
20947
20948 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20949
20950         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20951         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20952         being defined by the kernel headers.
20953
20954 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20955
20956         [BZ #12734]
20957         * resolv/resolv.h: Define RES_NOTLDQUERY.
20958         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20959         no-tld-query and set RES_NOTLDQUERY.
20960         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20961         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20962         modern BIND to search name as TLD unless forbidden.
20963
20964 2011-05-07  Petr Baudis  <pasky@suse.cz>
20965             Ulrich Drepper  <drepper@gmail.com>
20966
20967         [BZ #12393]
20968         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20969         (is_trusted_path): ...to here.
20970         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20971         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20972         using is_trusted_path_normalize() in setuid scripts.
20973
20974 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20975
20976         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20977         __BEGIN/__END_DECLS.
20978
20979 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20980
20981         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20982         NSS_STATUS_NOTFOUND if no record was found.
20983
20984 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20985
20986         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20987         (headers-not-in-tirpc): Remove rpc/netdb.h
20988         * resolv/netdb.h: Revert last change.
20989
20990 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20991
20992         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20993         circular dependency between libgcc.a and libc.a.
20994
20995 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20996
20997         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20998         * nis/Makefile: Don't install rpcsvc/*.
20999         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
21000         instead of <rpc/types.h>.
21001         (MAXHOSTNAMELEN): Define.
21002
21003 2011-05-03  Andreas Schwab  <schwab@redhat.com>
21004
21005         * elf/ldconfig.c (add_dir): Don't crash on empty path.
21006
21007 2011-04-28  Maciej Babinski  <mbabinski@google.com>
21008
21009         [BZ #12714]
21010         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
21011         gethostbyname4_r when IPv6 results are possible.
21012
21013 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
21014
21015         [BZ #12723]
21016         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
21017         _PC_PIPE_BUF handling.
21018
21019 2011-04-30  Bruno Haible  <bruno@clisp.org>
21020
21021         [BZ #12717]
21022         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
21023         * resolv/netdb.h (getnameinfo): Change type of flags parameter
21024         to 'int'.
21025         * inet/getnameinfo.c (getnameinfo): Likewise.
21026
21027 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
21028
21029         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
21030         to groups setting in database lookup.
21031         * nss/nsswitch.conf: Add initgroups entry.
21032
21033 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
21034
21035         [BZ #12685]
21036         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
21037         mode string.
21038         Patch by Eric Blake <eblake@redhat.com>.
21039
21040 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
21041
21042         * sunrpc/Makefile (need-export-routines): Add svc_run.
21043         (routines): Remove svc_run.
21044         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
21045         * sunrpc/clnt_perr.c (clnt_perrno): Export.
21046         * sunrpc/svc_run.c (svc_run): Likewise.
21047         * sunrpc/svc_udp.c (svcudp_create): Likewise.
21048
21049 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
21050
21051         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
21052         problem in reallocation in last patch.
21053
21054 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
21055
21056         * sunrpc/Makefile: Move inclusion of Rules.
21057
21058 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
21059
21060         * nss/nss_files/files-initgroups.c: New file.
21061         * nss/Makefile (libnss_files-routines): Add files-initgroups.
21062         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
21063         _nss_files_initgroups_dyn.
21064
21065 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
21066
21067         * elf/elf.h (R_ARM_IRELATIVE): Define.
21068
21069 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
21070
21071         * po/ru.po: Update from translation team.
21072
21073 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
21074
21075         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
21076         dependencies.
21077
21078 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
21079
21080         [BZ #12653]
21081         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
21082         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
21083         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
21084         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
21085         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
21086
21087 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
21088
21089         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
21090         differing bytes.
21091         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
21092         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
21093         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
21094
21095 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
21096
21097         [BZ #12420]
21098         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
21099         storing it.
21100         * stdlib/bug-getcontext.c: New file.
21101         * stdlib/Makefile: Add rules to build and run bug-getcontext.
21102
21103 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21104
21105         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
21106         instructions into .machine "z9-109".
21107         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
21108         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
21109
21110 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21111
21112         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
21113         between environment variables and auxiliary vector.
21114
21115 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
21116
21117         * Makefile: Add rules to build linkobj/libc.so.
21118         * include/libc-symbols.h: Define libc_hidden_nolink.
21119         * include/rpc/auth.h: Mark functions which are to be hidden.
21120         * include/rpc/auth_des.h: Likewise.
21121         * include/rpc/auth_unix.h: Likewise.
21122         * include/rpc/clnt.h: Likewise.
21123         * include/rpc/des_crypt.h: Likewise.
21124         * include/rpc/key_prot.h: Likewise.
21125         * include/rpc/pmap_clnt.h: Likewise.
21126         * include/rpc/pmap_prot.h: Likewise.
21127         * include/rpc/pmap_rmt.h: Likewise.
21128         * include/rpc/rpc_msg.h: Likewise.
21129         * include/rpc/svc.h: Likewise.
21130         * include/rpc/svc_auth.h: Likewise.
21131         * include/rpc/xdr.h: Likewise.
21132         * nis/Makefile: Link all DSOs against linkobj/libc.so.
21133         * nss/Makefile: Likewise.
21134         * sunrpc/Makefile: Don't install headers.  Build library with normal
21135         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
21136         * sunrpc/auth_des.c: Hide exported symbols by default, export some
21137         for the compat linking library.  Remove use of INTDEF/INTUSE.
21138         * sunrpc/auth_none.c: Likewise.
21139         * sunrpc/auth_unix.c: Likewise.
21140         * sunrpc/authdes_prot.c: Likewise.
21141         * sunrpc/authuxprot.c: Likewise.
21142         * sunrpc/clnt_gen.c: Likewise.
21143         * sunrpc/clnt_perr.c: Likewise.
21144         * sunrpc/clnt_raw.c: Likewise.
21145         * sunrpc/clnt_simp.c: Likewise.
21146         * sunrpc/clnt_tcp.c: Likewise.
21147         * sunrpc/clnt_udp.c: Likewise.
21148         * sunrpc/clnt_unix.c: Likewise.
21149         * sunrpc/des_crypt.c: Likewise.
21150         * sunrpc/des_soft.c: Likewise.
21151         * sunrpc/get_myaddr.c: Likewise.
21152         * sunrpc/key_call.c: Likewise.
21153         * sunrpc/key_prot.c: Likewise.
21154         * sunrpc/netname.c: Likewise.
21155         * sunrpc/pm_getmaps.c: Likewise.
21156         * sunrpc/pm_getport.c: Likewise.
21157         * sunrpc/pmap_clnt.c: Likewise.
21158         * sunrpc/pmap_prot.c: Likewise.
21159         * sunrpc/pmap_prot2.c: Likewise.
21160         * sunrpc/pmap_rmt.c: Likewise.
21161         * sunrpc/publickey.c: Likewise.
21162         * sunrpc/rpc_cmsg.c: Likewise.
21163         * sunrpc/rpc_common.c: Likewise.
21164         * sunrpc/rpc_dtable.c: Likewise.
21165         * sunrpc/rpc_prot.c: Likewise.
21166         * sunrpc/rpc_thread.c: Likewise.
21167         * sunrpc/rtime.c: Likewise.
21168         * sunrpc/svc.c: Likewise.
21169         * sunrpc/svc_auth.c: Likewise.
21170         * sunrpc/svc_authux.c: Likewise.
21171         * sunrpc/svc_raw.c: Likewise.
21172         * sunrpc/svc_run.c: Likewise.
21173         * sunrpc/svc_simple.c: Likewise.
21174         * sunrpc/svc_tcp.c: Likewise.
21175         * sunrpc/svc_udp.c: Likewise.
21176         * sunrpc/svc_unix.c: Likewise.
21177         * sunrpc/svcauth_des.c: Likewise.
21178         * sunrpc/xcrypt.c: Likewise.
21179         * sunrpc/xdr.c: Likewise.
21180         * sunrpc/xdr_array.c: Likewise.
21181         * sunrpc/xdr_float.c: Likewise.
21182         * sunrpc/xdr_intXX_t.c: Likewise.
21183         * sunrpc/xdr_mem.c: Likewise.
21184         * sunrpc/xdr_rec.c: Likewise.
21185         * sunrpc/xdr_ref.c: Likewise.
21186         * sunrpc/xdr_sizeof.c: Likewise.
21187         * sunrpc/xdr_stdio.c: Likewise.
21188
21189 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
21190
21191         [BZ #12650]
21192         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
21193         * sysdeps/ia64/dl-tls.h: Likewise.
21194         * sysdeps/powerpc/dl-tls.h: Likewise.
21195         * sysdeps/s390/dl-tls.h: Likewise.
21196         * sysdeps/sh/dl-tls.h: Likewise.
21197         * sysdeps/sparc/dl-tls.h: Likewise.
21198         * sysdeps/x86_64/dl-tls.h: Likewise.
21199         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
21200
21201 2011-03-14  Andreas Schwab  <schwab@redhat.com>
21202
21203         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
21204         rpath element also skip the following colon.
21205         (expand_dynamic_string_token): Add is_path parameter and pass
21206         down to DL_DST_REQUIRED and _dl_dst_substitute.
21207         (decompose_rpath): Call expand_dynamic_string_token with
21208         non-zero is_path.  Ignore empty rpaths.
21209         (_dl_map_object_from_fd): Call expand_dynamic_string_token
21210         with zero is_path.
21211
21212 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
21213
21214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
21215         Make cancelable.
21216
21217 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
21218
21219         [BZ #12655]
21220         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
21221         Patch by Filipe David Manana <fdmanana@apache.org>.
21222
21223 2011-04-07  Andreas Schwab  <schwab@redhat.com>
21224
21225         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
21226         Maintain aligned stack.
21227         (CHECK_RSP): Remove unused macro.
21228
21229 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
21230
21231         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
21232         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
21233
21234 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
21235
21236         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
21237
21238         * include/features.h: Mention __USE_XOPEN2K8 in comment.
21239
21240 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
21241
21242         [BZ #12518]
21243         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
21244         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
21245         * sysdeps/x86_64/memmove.c: New file.
21246         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
21247         (memcpy): Renamed to ...
21248         (__new_memcpy): This.
21249         (memcpy): Provide GLIBC_2_14 memcpy.
21250         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
21251         (memcpy): Provide GLIBC_2_2_5 memcpy.
21252
21253 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
21254
21255         [BZ #12631]
21256         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
21257
21258 2011-03-30  Andreas Schwab  <schwab@redhat.com>
21259
21260         * misc/syncfs.c: New file.
21261         * misc/Makefile (routines): Add syncfs.
21262         * posix/unistd.h: Declare syncfs.
21263         * sysdeps/unix/syscalls.list: Add syncfs.
21264
21265 2011-04-01  Andreas Schwab  <schwab@redhat.com>
21266
21267         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
21268         open_by_handle_at.
21269         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21270         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
21271         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21272         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21273         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21274         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
21275         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21276
21277 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
21278
21279         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
21280         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
21281         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
21282         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21283         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21284         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21285         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21286
21287         * io/Makefile: Compile fallocate.c, fallocate64.c, and
21288         sync_file_range.c with -fexceptions.
21289         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
21290         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
21291         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
21292         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
21293         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
21294         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
21295         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
21296         sync_file_range as cancellation point
21297         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
21298         now a wrapper around __call_sync_file_range with cancellation handling.
21299         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
21300         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
21301         function name to __call_sync_file_range.
21302         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
21303         Add call_sync_file_range.
21304
21305 2011-04-01  Andreas Schwab  <schwab@redhat.com>
21306
21307         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21308         bits/timex.h.
21309
21310 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
21311
21312         * iconv/iconv.h: Fix typo in comment.
21313         * io/fcntl.h: Likewise.
21314         * libio/stdio.h: Likewise.
21315         * posix/spawn.h: Likewise.
21316         * posix/unistd.h: Likewise.
21317         * stdlib/stdlib.h: Likewise.
21318         * time/time.h: Likewise.
21319         * wcsmbs/wchar.h: Likewise.
21320
21321         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
21322         open_by_handle): Add.
21323         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
21324         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
21325         Augment a few comments.
21326         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
21327         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21328         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21329         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21330         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21331         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
21332         open_by_handle.
21333
21334         * io/fcntl.h (AT_EMPTY_PATH): Define.
21335
21336 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
21337
21338         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
21339         * sysdeps/unix/sysv/linux/bits/time.h: New file.
21340         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
21341         to...
21342         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
21343         * Versions.def: Add GLIBC_2.14.
21344         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
21345         Export.
21346
21347 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
21348
21349         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
21350         round counter.
21351         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
21352
21353 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
21354
21355         [BZ #12597]
21356         * string/test-strncmp.c (do_page_test): New function.
21357         (check2): Likewise.
21358         (test_main): Call check2.
21359         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
21360
21361 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
21362
21363         [BZ #12587]
21364         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
21365         Handle cache information in CPU leaf 4.
21366         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
21367
21368 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
21369
21370         [BZ #12583]
21371         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
21372         character representation.
21373         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
21374
21375 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
21376
21377         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
21378         END(__isnan) to END(__isnanf) to match function entry point/label
21379         EALIGN(__isnanf,...).
21380
21381 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
21382
21383         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
21384
21385 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
21386
21387         [BZ #12510]
21388         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
21389         copy from the symbol referenced in the relocation to initialize the
21390         used variable.
21391         Patch by Piotr Bury <pbury@goahead.com>.
21392         * elf/Makefile: Add rules to build and tst-unique3.
21393         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
21394         * elf/tst-unique3.cc: New file.
21395         * elf/tst-unique3.h: New file.
21396         * elf/tst-unique3lib.cc: New file.
21397         * elf/tst-unique3lib2.cc: New file.
21398
21399         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
21400
21401 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
21402
21403         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
21404         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
21405         to _start.
21406
21407 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
21408
21409         * elf/dl-load.c (_dl_map_object): If we are looking for the first
21410         to-be-loaded object along a path to loader is ld.so.
21411
21412 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
21413             Ulrich Drepper  <drepper@gmail.com>
21414
21415         * sysdeps/x86_64/memset.S: After aligning destination, code
21416         branches to different locations depending on the value of
21417         misalignment, when multiarch is enabled. Fix this.
21418
21419 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
21420
21421         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
21422         Set _x86_64_preferred_memory_instruction for AMD processsors.
21423         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21424         Set bit_Prefer_SSE_for_memop for AMD processors.
21425
21426 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
21427
21428         * libio/fmemopen.c (fmemopen): Optimize a bit.
21429
21430 2011-03-03  Andreas Schwab  <schwab@redhat.com>
21431
21432         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
21433
21434 2011-03-03  Roland McGrath  <roland@redhat.com>
21435
21436         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
21437
21438 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
21439
21440         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
21441         __bzero_ultra1 instead of __memset_ultra1.
21442
21443 2011-02-23  Andreas Schwab  <schwab@redhat.com>
21444             Ulrich Drepper  <drepper@gmail.com>
21445
21446         [BZ #12509]
21447         * include/link.h (struct link_map): Add l_orig_initfini.
21448         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
21449         returning unsuccessfully.
21450         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
21451         close of a file loaded at startup, restore the original l_initfini
21452         list.
21453         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
21454         list, store the pointer.
21455         * elf/Makefile ($(objpfx)noload-mem): New rule.
21456         (noload-ENV): Define.
21457         (tests): Add $(objpfx)noload-mem.
21458         * elf/noload.c: Include <memcheck.h>.
21459         (main): Call mtrace.  Close all opened handles.
21460
21461 2011-02-17  Andreas Schwab  <schwab@redhat.com>
21462
21463         [BZ #12454]
21464         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
21465         dependencies are missing.
21466
21467 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21468
21469         Fix __if_freereq crash: Unlike the generic version which uses free,
21470         Hurd needs munmap.
21471         * sysdeps/mach/hurd/ifreq.h: New file.
21472
21473 2011-01-27  Petr Baudis  <pasky@suse.cz>
21474             Ulrich Drepper  <drepper@gmail.com>
21475
21476         [BZ 12445]#
21477         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
21478         to extend_alloca().
21479         * stdio-common/bug23.c: New file.
21480         * stdio-common/Makefile (tests): Add bug23.
21481
21482 2010-09-28  Andreas Schwab  <schwab@redhat.com>
21483             Ulrich Drepper  <drepper@gmail.com>
21484
21485         [BZ #12489]
21486         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
21487         before performing relro protection.  At old place add assertion
21488         to make sure nothing changed.
21489
21490 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
21491             Glauber de Oliveira Costa  <glommer@gmail.com>
21492
21493         * elf/elf.h: Add new ARM TLS relocs.
21494
21495 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
21496
21497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
21498         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
21499         cast from r3.
21500         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
21501         'tests' variable.
21502         * sysdeps/wordsize-64/tst-writev.c: New file.
21503
21504 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
21505
21506         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
21507         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
21508         insns in _dl_start to prevent a TOC reference before relocs are
21509         resolved.
21510
21511 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
21512
21513         [BZ #12469]
21514         * Makeconfig: Remove RANLIB definition.
21515         * Makerules: Don't use RANLIB.
21516         * aclocal.m4: Remove ranlib test.
21517         * configure.in: No need to check for ranlib.
21518         * elf/rtld-Rules: Don't use RANLIB.
21519
21520 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21521
21522         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
21523         protection macro.
21524         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
21525         inclusion protection macro.
21526
21527         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
21528         SIGRTMIN and SIGRTMAX and print information in that case only when
21529         SIGRTMIN is defined.
21530
21531 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
21532
21533         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
21534         arginfo fn returning -1.
21535
21536         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
21537         and thousands string is zero terminated.
21538
21539 2011-02-03  Andreas Schwab  <schwab@redhat.com>
21540
21541         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
21542         sysdeps/unix/sysv/linux/bits/socket.h.
21543
21544 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21545
21546         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
21547         (__CPU_COUNT): Remove old macros.
21548         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
21549         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
21550         (__CPU_ALLOC, __CPU_FREE): Add macros.
21551         (__sched_cpualloc, __sched_cpufree): Add declarations.
21552
21553 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
21554
21555         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
21556         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
21557         * nscd/aicache.c (addhstaiX): Return timeout of added value.
21558         (readdhstai): Return value of addhstaiX call.
21559         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
21560         (addgrbyX): Return value returned by cache_addgr.
21561         (readdgrbyname): Return value returned by addgrbyX.
21562         (readdgrbygid): Likewise.
21563         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
21564         (addpwbyX): Return value returned by cache_addpw.
21565         (readdpwbyname): Return value returned by addhstbyX.
21566         (readdpwbyuid): Likewise.
21567         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
21568         (addservbyX): Return value returned by cache_addserv.
21569         (readdservbyname): Return value returned by addservbyX:
21570         (readdservbyport): Likewise.
21571         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
21572         (addhstbyX): Return value returned by cache_addhst.
21573         (readdhstbyname): Return value returned by addhstbyX.
21574         (readdhstbyaddr): Likewise.
21575         (readdhstbynamev6): Likewise.
21576         (readdhstbyaddrv6): Likewise.
21577         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
21578         (readdinitgroups): Return value returned by addinitgroupsX.
21579         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
21580         (prune_cache): Keep track of timeout value of re-added entries.
21581         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
21582         * nscd/nscd.h: Adjust prototypes of readd* functions.
21583
21584 2011-02-04  Roland McGrath  <roland@redhat.com>
21585
21586         * nis/nis_server.c (nis_servstate): Use the right name for 0.
21587         (nis_stats): Likewise.
21588         * nis/nis_modify.c (nis_modify): Likewise.
21589         * nis/nis_remove.c (nis_remove): Likewise.
21590         * nis/nis_add.c (nis_add): Likewise.
21591
21592         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
21593
21594         * posix/fnmatch_loop.c: Add some consts.
21595
21596         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
21597
21598 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
21599
21600         [BZ #12460]
21601         * config.make.in (config-cflags-novzeroupper): Define.
21602         * configure.in: Substitute libc_cv_cc_novzeroupper.
21603         * elf/Makefile (AVX-CFLAGS): Define.
21604         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
21605         (CFLAGS-tst-auditmod4a.c): Likewise.
21606         (CFLAGS-tst-auditmod4b.c): Likewise.
21607         (CFLAGS-tst-auditmod6b.c): Likewise.
21608         (CFLAGS-tst-auditmod6c.c): Likewise.
21609         (CFLAGS-tst-auditmod7b.c): Likewise.
21610         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
21611
21612 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
21613
21614         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
21615         function to the callback.
21616         Patch partly by Jiri Olsa <jolsa@redhat.com>.
21617
21618 2011-02-02  Andreas Schwab  <schwab@redhat.com>
21619
21620         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
21621         of errno.
21622
21623 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
21624
21625         [BZ #11724]
21626         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
21627         of constructors.
21628         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
21629         of destructors.
21630         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
21631
21632         [BZ #11724]
21633         * elf/Makefile: Add rules to build and run new test.
21634         * elf/tst-initorder.c: New file.
21635         * elf/tst-initorder.exp: New file.
21636         * elf/tst-initordera1.c: New file.
21637         * elf/tst-initordera2.c: New file.
21638         * elf/tst-initordera3.c: New file.
21639         * elf/tst-initordera4.c: New file.
21640         * elf/tst-initorderb1.c: New file.
21641         * elf/tst-initorderb2.c: New file.
21642         * elf/tst-order-a1.c: New file.
21643         * elf/tst-order-a2.c: New file.
21644         * elf/tst-order-a3.c: New file.
21645         * elf/tst-order-a4.c: New file.
21646         * elf/tst-order-b1.c: New file.
21647         * elf/tst-order-b2.c: New file.
21648         * elf/tst-order-main.c: New file.
21649         New test case by George Gensure <werkt0@gmail.com>.
21650
21651 2010-10-01  Andreas Schwab  <schwab@redhat.com>
21652
21653         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
21654         decoding ACE if AI_CANONIDN.
21655
21656 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
21657
21658         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
21659
21660 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
21661
21662         * version.h (RELEASE): Bump for 2.13 release.
21663         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
21664
21665         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
21666
21667         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
21668         MADV_NOHUGEPAGE.
21669         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
21670         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
21671         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
21672         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
21673         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
21674         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21675
21676         * posix/getconf.c: Update copyright year.
21677         * catgets/gencat.c: Likewise.
21678         * csu/version.c: Likewise.
21679         * debug/catchsegv.sh: Likewise.
21680         * debug/xtrace.sh: Likewise.
21681         * elf/ldconfig.c: Likewise.
21682         * elf/ldd.bash.in: Likewise.
21683         * elf/sprof.c (print_version): Likewise.
21684         * iconv/iconv_prog.c: Likewise.
21685         * iconv/iconvconfig.c: Likewise.
21686         * locale/programs/locale.c: Likewise.
21687         * locale/programs/localedef.c: Likewise.
21688         * malloc/memusage.sh: Likewise.
21689         * malloc/mtrace.pl: Likewise.
21690         * nscd/nscd.c (print_version): Likewise.
21691         * nss/getent.c: Likewise.
21692
21693         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
21694         PF_CAIF, and PF_ALG.
21695         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21696
21697 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
21698
21699         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
21700         (modules-names): Use them.
21701         (ifunc-test-modules, ifunc-pie-tests): Define.
21702         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
21703         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
21704         (test-extras): Likewise.
21705         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
21706         $(compile-command.c).
21707         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
21708         (all-built-dso): Define.
21709         (check-textrel.out, check-execstack.out): Depend on it.
21710
21711         * configure.in: Don't override --enable-multi-arch.
21712
21713 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
21714
21715         [BZ #6812]
21716         * nscd/hstcache.c (tryagain): Define.
21717         (cache_addhst): Return tryagain not notfound for temporary errors.
21718         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
21719         failed.
21720
21721 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
21722
21723         [BZ #10563]
21724         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
21725         to make the syscall.
21726         * sysdeps/unix/sysv/linux/setgroups.c: New file.
21727
21728         [BZ #12378]
21729         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
21730         and fall back to matching as normal character if the string ends before
21731         the matching ']' is found.  This is what POSIX requires.
21732         * posix/testfnm.c: Adjust test result.
21733         * posix/globtest.sh: Adjust test result.  Add new test.
21734         * posix/tst-fnmatch.input: Likewise.
21735         * posix/tst-fnmatch2.c: Add new test.
21736
21737 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
21738
21739         * elf/Makefile (check-execstack): Revert last change.  Depend on
21740         check-execstack.h.
21741         (check-execstack.h): New target.
21742         (generated): Add check-execstack.h.
21743         * elf/check-execstack.c: Include "check-execstack.h".
21744         (main): Revert last change.
21745         (handle_file): Return zero if GNU_STACK is absent and
21746         DEFAULT_STACK_PERMS doesn't include PF_X.
21747
21748 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
21749
21750         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
21751         in child fails because the descriptor is already closed.
21752         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
21753         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
21754         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
21755
21756         [BZ #12397]
21757         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
21758         syscall.
21759
21760         [BZ #10484]
21761         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
21762         temporary buffer used to handle multi lookups locally.
21763         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
21764
21765 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21766
21767         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
21768         loader is ld.so.
21769
21770 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
21771
21772         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
21773         alignment for SSE2.
21774
21775 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21776
21777         [BZ #12394]
21778         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
21779         characters.  When rounding increased number of integer digits recompute
21780         number of groups.
21781         * stdio-common/tst-grouping.c: New file.
21782         * stdio-common/Makefile: Add rules to build and run tst-grouping.
21783
21784 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
21785
21786         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
21787         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
21788
21789         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
21790         void.
21791         * bits/select.h: Likewise.
21792
21793 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
21794
21795         * po/ja.po: Update from translation team.
21796
21797 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
21798
21799         [BZ #11155]
21800         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
21801         implementation just like for lxstat, fxstatat, et al.
21802
21803 2010-12-27  Jim Meyering  <meyering@redhat.com>
21804
21805         [BZ #12348]
21806         * posix/regexec.c (build_trtable): Return failure indication upon
21807         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21808
21809 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
21810
21811         [BZ #12201]
21812         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21813         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21814         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21815         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21816
21817         [BZ #12207]
21818         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21819
21820         [BZ #12204]
21821         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21822         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21823
21824 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21825
21826         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21827         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21828         script has SORT_BY_INIT_PRIORITY.
21829         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21830         NO_CTORS_DTORS_SECTIONS is defined.
21831         * elf/soinit.c: Likewise.
21832         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21833         NO_CTORS_DTORS_SECTIONS is defined.
21834         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21835         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21836         * sysdeps/sh/init-first.c: Likewise.
21837         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21838
21839 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21840
21841         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21842         always use the slow path.
21843
21844 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21845
21846         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21847         similar rule which adds the sysdep directories to the header search in
21848         order to pick up the correct platform stackinfo.h.
21849         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21850         perform test if it is, otherwise return successfully without testing.
21851         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21852         DEFAULT_STACK_PERMS define in stackinfo.h.
21853         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21854         defined in stackinfo.h.
21855         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21856         DEFAULT_STACK_PERMS defined in stackinfo.h.
21857         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21858         * sysdeps/ia64/stackinfo.h: Likewise.
21859         * sysdeps/s390/stackinfo.h: Likewise.
21860         * sysdeps/sh/stackinfo.h: Likewise.
21861         * sysdeps/sparc/stackinfo.h: Likewise.
21862         * sysdeps/x86_64/stackinfo.h: Likewise.
21863         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21864         PF_X for powerpc64.  Retain PF_X for powerpc32.
21865
21866 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21867
21868         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21869         accurately.
21870         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21871         GETDENTS_64BIT_ALIGNED.
21872
21873 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21874
21875         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21876
21877 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21878
21879         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21880         _GNU_SOURCE.
21881
21882         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21883         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21884         Remove __restrict.
21885         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21886         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21887
21888 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21889
21890         [BZ #11655]
21891         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21892         are initialized.
21893
21894 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21895
21896         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21897
21898 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21899
21900         * po/it.po: Update from translation team.
21901
21902 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21903
21904         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21905         unused codes.
21906
21907 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21908
21909         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21910
21911 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21912
21913         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21914         specially.
21915         (gaih_getanswer_slice): Likewise.
21916
21917 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21918
21919         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21920
21921 2010-05-31  Petr Baudis  <pasky@suse.cz>
21922
21923         [BZ #11149]
21924         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21925         silently even in the chroot mode.
21926
21927 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21928
21929         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21930         last patch a bit.  Pretty printing
21931
21932 2010-05-31  Petr Baudis <pasky@suse.cz>
21933
21934         [BZ #10085]
21935         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21936         initialization of skip_initgroups_dyn.
21937
21938 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21939
21940         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21941         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21942
21943 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21944
21945         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21946
21947 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21948
21949         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21950         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21951         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21952         ($(objpfx)tst-fnmatch-mem): New rule.
21953         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21954         * posix/tst-fnmatch.c (main): Call mtrace.
21955
21956 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21957
21958         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21959         Support Intel processor model 6 and model 0x2c.
21960
21961 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21962
21963         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21964           signed comparison.
21965
21966 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21967
21968         [BZ #12205]
21969         * string/test-strncasecmp.c (check_result): New function.
21970         (do_one_test): Use it.
21971         (check1): New function.
21972         (test_main): Use it.
21973         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21974         Support strcasecmp and strncasecmp.
21975
21976 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21977
21978         [BZ #12194]
21979         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21980         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21981
21982 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21983
21984         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21985         IFUNC support.
21986         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21987         memset-x86-64.
21988         * sysdeps/x86_64/multiarch/bzero.S: New file.
21989         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21990         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21991         * sysdeps/x86_64/multiarch/memset.S: New file.
21992         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21993         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21994         Set bit_Prefer_SSE_for_memop for Intel processors.
21995         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21996         Define.
21997         (index_Prefer_SSE_for_memop): Define.
21998         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21999
22000 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
22001
22002         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
22003         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
22004
22005 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
22006
22007         [BZ #12191]
22008         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
22009         (__x86_64_raw_data_cache_size_half): Likewise.
22010         (__x86_64_raw_shared_cache_size): Likewise.
22011         (__x86_64_raw_shared_cache_size_half): Likewise.
22012
22013         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
22014         (__x86_64_raw_data_cache_size_half): Likewise.
22015         (__x86_64_raw_shared_cache_size): Likewise.
22016         (__x86_64_raw_shared_cache_size_half): Likewise.
22017         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
22018         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
22019         and __x86_64_raw_shared_cache_size_half.  Round
22020         __x86_64_data_cache_size_half, __x86_64_data_cache_size
22021         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
22022         to multiple of 256 bytes.
22023
22024 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
22025
22026         [BZ #12167]
22027         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
22028         of inacessible symlinks.  Verify result of symlink before returning it.
22029         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22030         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
22031
22032 2010-10-28  Erich Ritz  <erichritz@gmail.com>
22033
22034         * math/math.h (isinf): Fix typo in comment.
22035
22036 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
22037
22038         * po/da.po: Update from translation team.
22039
22040 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
22041
22042         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
22043         is added to the list.
22044
22045 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22046             Ulrich Drepper  <drepper@gmail.com>
22047
22048         * elf/dl-object.c (_dl_new_object): Don't append the new object to
22049         the global list here.  Move code to...
22050         (_dl_add_to_namespace_list): ...here.  New function.
22051         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
22052         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
22053         * elf/dl-load.c (lose): Don't remove the element from the list.
22054         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
22055         (_dl_map_object): Likewise.
22056
22057 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
22058
22059         [BZ #12159]
22060         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
22061         into all bytes of SSE register.
22062         Patch by Richard Li <richardpku@gmail.com>.
22063
22064 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
22065
22066         [BZ #12140]
22067         * malloc/malloc.c (_int_free): Fill correct number of bytes when
22068         perturbing.
22069
22070 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
22071
22072         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
22073         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
22074         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
22075         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
22076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
22077         submachine.
22078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
22079
22080 2010-10-22  Andreas Schwab  <schwab@redhat.com>
22081
22082         * include/dlfcn.h (__RTLD_SECURE): Define.
22083         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
22084         mode & __RTLD_SECURE instead.
22085         (open_path): Rename preloaded parameter to secure.
22086         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
22087         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
22088         * elf/dl-deps.c (openaux): Likewise.
22089         * elf/rtld.c (struct map_args): Remove is_preloaded.
22090         (map_doit): Don't use it.
22091         (dl_main): Likewise.
22092         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
22093         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
22094
22095 2010-09-09  Andreas Schwab  <schwab@redhat.com>
22096
22097         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
22098         (sysd-rules-targets): Remove duplicates.
22099         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
22100         rtld-%.$o dependency.
22101
22102 2010-10-18  Andreas Schwab  <schwab@redhat.com>
22103
22104         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
22105         _dl_map_object do it.
22106
22107 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
22108
22109         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
22110         fast fma builtins, define the macros in the C99 standard.
22111         (FP_FAST_FMAF): Likewise.
22112         (FP_FAST_FMAL): Likewise.
22113         * sysdeps/x86_64/bits/mathdef.h: Likewise.
22114
22115         * bits/mathdef.h: Update copyright year.
22116         * sysdeps/powerpc/bits/mathdef.h: Likewise.
22117
22118 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
22119
22120         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
22121         builtins, define the macros in the C99 standard.
22122         (FP_FAST_FMAF): Likewise.
22123         (FP_FAST_FMAL): Likewise.
22124         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
22125         multiply/add.
22126         (FP_FAST_FMAF): Likewise.
22127
22128 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
22129
22130         [BZ #3268]
22131         * math/libm-test.inc (fma_test): Some new testcases.
22132         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
22133         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
22134         y and infinite z.  Do multiplication by C already in long double.
22135         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
22136         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
22137         y and infinite z.  Do bitwise or of inexact bit into u.d.
22138         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
22139         * sysdeps/i386/fpu/s_fmaf.S: Removed.
22140         * sysdeps/i386/fpu/s_fma.S: Removed.
22141         * sysdeps/i386/fpu/s_fmal.S: Removed.
22142
22143 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
22144
22145         [BZ #3268]
22146         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
22147         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
22148         computation is not scheduled after fetestexcept.  Fix value
22149         of minimum denormal long double.
22150
22151 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
22152
22153         [BZ #3268]
22154         * math/libm-test.inc (fma_test): Add some more tests.
22155         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
22156         correctly.
22157
22158 2010-10-15  Andreas Schwab  <schwab@redhat.com>
22159
22160         * scripts/data/localplt-s390-linux-gnu.data: New file.
22161         * scripts/data/localplt-s390x-linux-gnu.data: New file.
22162
22163 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
22164
22165         [BZ #3268]
22166         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
22167         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
22168         instead of dbl-64.
22169         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
22170         inlines.
22171         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
22172         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
22173         if one of x and y is very large and the other is subnormal.
22174         * sysdeps/s390/fpu/s_fmaf.c: New file.
22175         * sysdeps/s390/fpu/s_fma.c: New file.
22176         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
22177         * sysdeps/powerpc/fpu/s_fma.S: New file.
22178         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
22179         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
22180         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
22181
22182 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
22183
22184         [BZ #3268]
22185         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
22186         fma tests.
22187         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
22188         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
22189         * sysdeps/i386/i686/multiarch/s_fma.c: Include
22190         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
22191         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
22192         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
22193         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
22194
22195 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
22196
22197         [BZ #12078]
22198         * posix/regcomp.c (parse_branch): One more memory leak plugged.
22199         * posix/bug-regex31.input: Add test case.
22200
22201 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
22202
22203         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
22204         * posix/bug-regex31.input: New file.
22205
22206         [BZ #12078]
22207         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
22208         (parse_sub_exp): Fix last change, use postorder.
22209
22210         * posix/bug-regex31.c: New file.
22211         * posix/Makefile: Add rules to build and run bug-regex31.
22212
22213         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
22214
22215         [BZ #12078]
22216         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
22217
22218         [BZ #12108]
22219         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
22220         to have entries in sys_siglist.
22221
22222         [BZ #12093]
22223         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
22224         be NULL.
22225
22226 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
22227
22228         [BZ #3268]
22229         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
22230         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
22231         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
22232         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
22233         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
22234         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
22235         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
22236         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
22237         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
22238         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
22239         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
22240         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
22241         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22242         * math/ftestexcept.c (fetestexcept): Likewise.
22243         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
22244         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
22245         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
22246         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
22247         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
22248         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
22249         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22250
22251 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
22252
22253         [BZ #12107]
22254         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
22255         newline.
22256
22257 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
22258
22259         * string/bug-strstr1.c: New file.
22260         * string/Makefile: Add rules to build and run bug-strstr1.
22261
22262 2010-10-05  Eric Blake  <eblake@redhat.com>
22263
22264         [BZ #12092]
22265         * string/str-two-way.h (two_way_long_needle): Always clear memory
22266         when skipping input due to the shift table.
22267
22268 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
22269
22270         [BZ #12005]
22271         * malloc/mcheck.c: Handle large requests.
22272
22273         [BZ #12077]
22274         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
22275         for strncmp and strncasecmp.
22276         * string/stratcliff.c: Add tests for strcmp and strncmp.
22277         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
22278
22279 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22280
22281         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
22282         __set_fpscr.
22283
22284 2010-09-30  Andreas Jaeger  <aj@suse.de>
22285
22286         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
22287         (CGROUP_SUPER_MAGIC): Define.
22288         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22289         Handle btrfs and cgroup file systems.
22290         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
22291         Likewise.
22292
22293 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
22294
22295         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
22296         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
22297
22298 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22299
22300         [BZ #12067]
22301         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
22302         trying to locate the ELF header.
22303
22304 2010-09-27  Andreas Schwab  <schwab@redhat.com>
22305
22306         [BZ #11611]
22307         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
22308         Mask out sign-bit copies when constructing f_fsid.
22309
22310 2010-09-24  Petr Baudis <pasky@suse.cz>
22311
22312         * debug/stack_chk_fail_local.c: Add missing licence exception.
22313         * debug/warning-nop.c: Likewise.
22314
22315 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
22316
22317         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
22318         implementing getdents64 using getdents syscall, set d_type if
22319         __ASSUME_GETDENTS32_D_TYPE.
22320
22321 2010-09-16  Andreas Schwab  <schwab@redhat.com>
22322
22323         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
22324         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
22325
22326 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
22327
22328         [BZ #12037]
22329         * posix/unistd.h: Undo change of feature selection for ftruncate from
22330         2010-01-11.
22331
22332 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
22333
22334         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
22335         detection.
22336
22337 2010-09-20  Andreas Schwab  <schwab@redhat.com>
22338
22339         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
22340         fanotify_mark.
22341         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22342
22343 2010-09-14  Andreas Schwab  <schwab@redhat.com>
22344
22345         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
22346         variables after CHECK_SP call.
22347         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
22348
22349 2010-09-13  Andreas Schwab  <schwab@redhat.com>
22350             Ulrich Drepper  <drepper@redhat.com>
22351
22352         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
22353         re-relocationg ld.so.
22354         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
22355         _dl_init_paths call.
22356         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
22357         here anymore.
22358
22359 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
22360
22361         * resolv/res_init.c (__res_vinit): Count the default server we added.
22362
22363 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
22364             Ulrich Drepper  <drepper@redhat.com>
22365
22366         [BZ #11968]
22367         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
22368         (____longjmp_chk): Use %ebx for saving value across system call.
22369         Add unwind info.
22370
22371 2010-09-06  Andreas Schwab  <schwab@redhat.com>
22372
22373         * manual/Makefile: Don't mix pattern rules with normal rules.
22374
22375 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
22376
22377         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
22378         operation.
22379         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
22380         * libio/iofopncook.c (_IO_cookie_init): Likewise.
22381         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
22382         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
22383         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
22384         Likewise.
22385
22386 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
22387
22388         [BZ #11979]
22389         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
22390         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
22391
22392 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
22393
22394         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
22395         * sysdeps/x86_64/addmul_1.S: Likewise.
22396         * sysdeps/x86_64/lshift.S: Likewise.
22397         * sysdeps/x86_64/mul_1.S: Likewise.
22398         * sysdeps/x86_64/rshift.S: Likewise.
22399         * sysdeps/x86_64/sub_n.S: Likewise.
22400         * sysdeps/x86_64/submul_1.S: Likewise.
22401
22402 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22403
22404         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
22405         Define __sched_param instead of SCHED_* and sched_param when
22406         <bits/sched.h> is included with __need_schedparam defined.
22407         * bits/sched.h [__need_schedparam]
22408         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
22409         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
22410         (__defined_schedparam): Define to 1.
22411         (__sched_param): New structure, identical to sched_param.
22412         (__need_schedparam): Undefine.
22413
22414 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
22415
22416         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
22417         (epoll_create1): Declare.
22418
22419         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
22420
22421 2010-08-31  Andreas Schwab  <schwab@redhat.com>
22422
22423         [BZ #7066]
22424         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
22425         shifting retval into place.
22426
22427 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
22428
22429         * nis/rpcsvc/nis.h: Update copyright notice.
22430         * nis/rpcsvc/nis.x: Likewise.
22431         * nis/rpcsvc/nis_callback.h: Likewise.
22432         * nis/rpcsvc/nis_callback.x: Likewise.
22433         * nis/rpcsvc/nis_object.x: Likewise.
22434         * nis/rpcsvc/nis_tags.h: Likewise.
22435         * nis/rpcsvc/yp.h: Likewise.
22436         * nis/rpcsvc/yp.x: Likewise.
22437         * nis/rpcsvc/ypupd.h: Likewise.
22438         * nis/yp_xdr.c: Likewise.
22439         * nis/ypupdate_xdr.c: Likewise.
22440
22441         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
22442         mainly the body of pmap_getport.  Add parameters to specify timeouts.
22443         (pmap_getport): Use __libc_rpc_getport.
22444         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
22445         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
22446         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
22447
22448 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
22449
22450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
22451         fanotify_mark.
22452
22453 2010-08-27  Roland McGrath  <roland@redhat.com>
22454
22455         * sysdeps/i386/i686/multiarch/Makefile
22456         (CFLAGS-varshift.c): New variable.
22457
22458 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
22459
22460         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
22461         * sysdeps/i386/i686/multiarch/varshift.c: New file.
22462
22463         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
22464
22465         * sysdeps/x86_64/strlen.S: Minimal code improvement.
22466
22467 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
22468
22469         * sysdeps/x86_64/strlen.S: Unroll the loop.
22470         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22471         strlen-sse2 strlen-sse2-bsf.
22472         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
22473         __strlen_no_bsf if bit_Slow_BSF is set.
22474         (__strlen_sse42): Removed.
22475         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
22476         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
22477
22478 2010-08-25  Roland McGrath  <roland@redhat.com>
22479
22480         * sysdeps/x86_64/multiarch/varshift.S: File removed.
22481         * sysdeps/x86_64/multiarch/varshift.c: New file.
22482         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
22483         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
22484         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
22485         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
22486
22487 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
22488
22489         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22490         strlen-sse2 strlen-sse2-bsf.
22491         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
22492         __strlen_sse2_bsf if bit_Slow_BSF is unset.
22493         (__strlen_sse2): Removed.
22494         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
22495         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
22496         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
22497         bit_Slow_BSF for Atom.
22498         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
22499         (index_Slow_BSF): Define.
22500         (HAS_SLOW_BSF): Define.
22501
22502 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
22503
22504         [BZ #10851]
22505         * resolv/res_init.c (__res_vinit): When no server address at all
22506         is given default to loopback.
22507
22508 2010-08-24  Roland McGrath  <roland@redhat.com>
22509
22510         * configure.in: Remove config-name.h generation.
22511         * configure: Regenerated.
22512         * config-name.in: File removed.
22513         * scripts/config-uname.sh: New file.
22514         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
22515         ($(objdir)config-name.h): New target.
22516
22517         * sunrpc/rpc_parse.h: Avoid nested comment.
22518
22519 2010-08-24  Richard Henderson  <rth@redhat.com>
22520             Ulrich Drepper  <drepper@redhat.com>
22521             H.J. Lu  <hongjiu.lu@intel.com>
22522
22523         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
22524         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
22525         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
22526         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
22527         _mm_alignr_epi8 with _mm_loadu_si128.
22528         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
22529         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
22530         (__m128i_shift_right): Removed.
22531         * sysdeps/i386/i686/multiarch/varshift.h: New file.
22532         * sysdeps/i386/i686/multiarch/varshift.S: New file.
22533         * sysdeps/x86_64/multiarch/varshift.h: New file.
22534         * sysdeps/x86_64/multiarch/varshift.S: New file.
22535
22536 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
22537
22538         * configure.in: Move assembler checks to before sysdep dir checking.
22539
22540 2010-08-20  Petr Baudis  <pasky@suse.cz>
22541
22542         * LICENSES: Sync the sunrpc license.
22543
22544 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
22545
22546         * sunrpc/auth_des.c: Update copyright notice once again.
22547         * sunrpc/auth_none.c: Likewise.
22548         * sunrpc/auth_unix.c: Likewise.
22549         * sunrpc/authdes_prot.c: Likewise.
22550         * sunrpc/authuxprot.c: Likewise.
22551         * sunrpc/bindrsvprt.c: Likewise.
22552         * sunrpc/clnt_gen.c: Likewise.
22553         * sunrpc/clnt_perr.c: Likewise.
22554         * sunrpc/clnt_raw.c: Likewise.
22555         * sunrpc/clnt_simp.c: Likewise.
22556         * sunrpc/clnt_tcp.c: Likewise.
22557         * sunrpc/clnt_udp.c: Likewise.
22558         * sunrpc/clnt_unix.c: Likewise.
22559         * sunrpc/des_crypt.c: Likewise.
22560         * sunrpc/des_soft.c: Likewise.
22561         * sunrpc/get_myaddr.c: Likewise.
22562         * sunrpc/getrpcport.c: Likewise.
22563         * sunrpc/key_call.c: Likewise.
22564         * sunrpc/key_prot.c: Likewise.
22565         * sunrpc/openchild.c: Likewise.
22566         * sunrpc/pm_getmaps.c: Likewise.
22567         * sunrpc/pm_getport.c: Likewise.
22568         * sunrpc/pmap_clnt.c: Likewise.
22569         * sunrpc/pmap_prot.c: Likewise.
22570         * sunrpc/pmap_prot2.c: Likewise.
22571         * sunrpc/pmap_rmt.c: Likewise.
22572         * sunrpc/rpc/auth.h: Likewise.
22573         * sunrpc/rpc/auth_unix.h: Likewise.
22574         * sunrpc/rpc/clnt.h: Likewise.
22575         * sunrpc/rpc/des_crypt.h: Likewise.
22576         * sunrpc/rpc/key_prot.h: Likewise.
22577         * sunrpc/rpc/netdb.h: Likewise.
22578         * sunrpc/rpc/pmap_clnt.h: Likewise.
22579         * sunrpc/rpc/pmap_prot.h: Likewise.
22580         * sunrpc/rpc/pmap_rmt.h: Likewise.
22581         * sunrpc/rpc/rpc.h: Likewise.
22582         * sunrpc/rpc/rpc_des.h: Likewise.
22583         * sunrpc/rpc/rpc_msg.h: Likewise.
22584         * sunrpc/rpc/svc.h: Likewise.
22585         * sunrpc/rpc/svc_auth.h: Likewise.
22586         * sunrpc/rpc/types.h: Likewise.
22587         * sunrpc/rpc/xdr.h: Likewise.
22588         * sunrpc/rpc_clntout.c: Likewise.
22589         * sunrpc/rpc_cmsg.c: Likewise.
22590         * sunrpc/rpc_common.c: Likewise.
22591         * sunrpc/rpc_cout.c: Likewise.
22592         * sunrpc/rpc_dtable.c: Likewise.
22593         * sunrpc/rpc_hout.c: Likewise.
22594         * sunrpc/rpc_main.c: Likewise.
22595         * sunrpc/rpc_parse.c: Likewise.
22596         * sunrpc/rpc_parse.h: Likewise.
22597         * sunrpc/rpc_prot.c: Likewise.
22598         * sunrpc/rpc_sample.c: Likewise.
22599         * sunrpc/rpc_scan.c: Likewise.
22600         * sunrpc/rpc_scan.h: Likewise.
22601         * sunrpc/rpc_svcout.c: Likewise.
22602         * sunrpc/rpc_tblout.c: Likewise.
22603         * sunrpc/rpc_util.c: Likewise.
22604         * sunrpc/rpc_util.h: Likewise.
22605         * sunrpc/rpcinfo.c: Likewise.
22606         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
22607         * sunrpc/rpcsvc/key_prot.x: Likewise.
22608         * sunrpc/rpcsvc/klm_prot.x: Likewise.
22609         * sunrpc/rpcsvc/mount.x: Likewise.
22610         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
22611         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
22612         * sunrpc/rpcsvc/rex.x: Likewise.
22613         * sunrpc/rpcsvc/rstat.x: Likewise.
22614         * sunrpc/rpcsvc/rusers.x: Likewise.
22615         * sunrpc/rpcsvc/sm_inter.x: Likewise.
22616         * sunrpc/rpcsvc/spray.x: Likewise.
22617         * sunrpc/rpcsvc/yppasswd.x: Likewise.
22618         * sunrpc/rtime.c: Likewise.
22619         * sunrpc/svc.c: Likewise.
22620         * sunrpc/svc_auth.c: Likewise.
22621         * sunrpc/svc_authux.c: Likewise.
22622         * sunrpc/svc_raw.c: Likewise.
22623         * sunrpc/svc_run.c: Likewise.
22624         * sunrpc/svc_simple.c: Likewise.
22625         * sunrpc/svc_tcp.c: Likewise.
22626         * sunrpc/svc_udp.c: Likewise.
22627         * sunrpc/svc_unix.c: Likewise.
22628         * sunrpc/svcauth_des.c: Likewise.
22629         * sunrpc/xcrypt.c: Likewise.
22630         * sunrpc/xdr.c: Likewise.
22631         * sunrpc/xdr_array.c: Likewise.
22632         * sunrpc/xdr_float.c: Likewise.
22633         * sunrpc/xdr_mem.c: Likewise.
22634         * sunrpc/xdr_rec.c: Likewise.
22635         * sunrpc/xdr_ref.c: Likewise.
22636         * sunrpc/xdr_sizeof.c: Likewise.
22637         * sunrpc/xdr_stdio.c: Likewise.
22638
22639         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
22640         handling.
22641
22642 2010-08-19  Andreas Schwab  <schwab@redhat.com>
22643
22644         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
22645
22646 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
22647
22648         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
22649         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
22650         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
22651         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
22652         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
22653         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
22654         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
22655         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
22656         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
22657         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
22658         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
22659         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
22660         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
22661         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
22662
22663 2010-07-26  Anton Blanchard  <anton@samba.org>
22664
22665         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
22666         * malloc/arena.c (heap_trim): Likewise.
22667
22668 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
22669
22670         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
22671         here.  Not...
22672         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
22673         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
22674
22675 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
22676
22677         * sysdeps/i386/elf/Makefile: New file.
22678
22679 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
22680
22681         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
22682         from fanotify_init.
22683         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
22684         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22685
22686 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
22687
22688         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
22689         of strncasecmp_l.
22690         * sysdeps/multiarch/strcmp.S: Likewise.
22691
22692 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
22693
22694         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22695         strncase_l-nonascii.
22696         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22697         Add strncase_l-ssse3.
22698         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
22699         * sysdeps/x86_64/strcmp.S: Likewise.
22700         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
22701         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
22702         * sysdeps/x86_64/strncase.S: New file.
22703         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
22704         * sysdeps/x86_64/strncase_l.S: New file.
22705         * string/Makefile (strop-tests): Add strncasecmp.
22706         * string/test-strncasecmp.c: New file.
22707
22708         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
22709         warning.
22710
22711         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
22712         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
22713
22714 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
22715
22716         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
22717
22718 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
22719
22720         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
22721         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
22722         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
22723
22724 2010-05-01  Alan Modra  <amodra@gmail.com>
22725
22726         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
22727         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
22728         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
22729         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
22730         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
22731         tidying.  Don't tail-call __sigjmp_save for static lib.
22732         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
22733         save location.
22734         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
22735         (CALL_MCOUNT): Add eh info, and nop after bl.
22736         (TAIL_CALL_SYSCALL_ERROR): New macro.
22737         (PSEUDO_RET): Use it.
22738         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
22739         Correct save location of integer regs and cr.
22740         (_dl_profile_resolve): Correct cr save location.  Delete nops
22741         after bl when SHARED.  Reduce cfi size a little by better
22742         placement of cfi directives.
22743         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
22744         make a stack frame.  Instead use parm save area as a temp.
22745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
22746         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
22747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
22748         Don't make a stack frame for parent, use parm save area.
22749         Increase child stack frame to 112 bytes.  Don't save unused reg,
22750         and adjust reg usage.  Set up cfi on error recovery and
22751         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
22752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
22753         (__makecontext): Add dummy nop after jump to exit.
22754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
22755         Use correct parm save area and cr save, reduce stack frame.
22756         Correct cfi for possible PSEUDO_RET frame setup.
22757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
22758         Branch to local label emitted by PSEUDO_RET rather than
22759         __syscall_error.
22760
22761 2010-08-12  Andreas Schwab  <schwab@redhat.com>
22762
22763         [BZ #11904]
22764         * locale/programs/locale.c (print_assignment): New function.
22765         (show_locale_vars): Use it.
22766
22767 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
22768
22769         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
22770         field.
22771         (struct statfs64): Likewise.
22772         (_STATFS_F_FLAGS): Define.
22773         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
22774         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22775         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
22776         (ST_VALID): Define locally.
22777         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
22778         __statvfs_getflags, use the provided value.
22779         * sysdeps/unix/sysv/linux/kernel-features.h: Define
22780         __ASSUME_STATFS_F_FLAGS.
22781
22782         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
22783
22784         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
22785         Add sys/fanotify.h.
22786         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
22787         fanotify_mask for GLIBC_2.13.
22788         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
22789         fanotify_init and fanotify_mark.
22790         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22791         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
22792
22793         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
22794         Add prlimit.
22795         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
22796         prlimit64 for GLIBC_2.13.
22797         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
22798         prlimit64.
22799         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
22800         syscall.
22801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
22802         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22803         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
22804         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22805         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
22806         add prlimit alias.
22807         * sysdeps/unix/sysv/linux/prlimit.c: New file.
22808
22809         [BZ #11903]
22810         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22811         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22812
22813         * nss/Makefile: Add rules to build and run tst-nss-test1.
22814         * shlib-versions: Add entry for libnss_test1.
22815         * nss/nss_test1.c: New file.
22816         * nss/tst-nss-test1.c: New file.
22817
22818         * nss/nsswitch.c (__nss_database_custom): Define new variable.
22819         (__nss_configure_lookup): Set appropriate entry in
22820         __nss_configure_lookup to true.
22821         * nss/nsswitch.h: Define enum with indeces of databases in
22822         databases and __nss_database_custom arrays.  Declare
22823         __nss_database_custom.
22824         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22825         to avoid using nscd when custom rules are installed.
22826         * nss/getXXbyYY_r.c: Likewise.
22827         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22828
22829         * nss/nss_files/files-parse.c: Whitespace fixes.
22830
22831 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
22832
22833         [BZ #11883]
22834         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22835         * posix/fnmatch_loop.c: Likewise.
22836
22837 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22838
22839         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22840         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22841         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22842         * Versions.def [GLIBC_2.13]: Add.
22843
22844 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22845
22846         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22847         Also fail if tpwd after pwuid call is NULL.
22848
22849 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22850
22851         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22852         when converting to ms.
22853
22854 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22855
22856         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22857         EOPNOTSUPP errors with ENOTTY.
22858         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22859         EOPNOTSUPP errors with ENOTTY.
22860
22861 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22862
22863         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22864         Add strcasecmp_l-ssse3.
22865         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22866         strcasecmp.
22867         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22868         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22869         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22870
22871 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22872
22873         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22874
22875         * string/Makefile (strop-tests): Add strcasecmp.
22876         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22877         strcasecmp_l-nonascii.
22878         (gen-as-const-headers): Add locale-defines.sym.
22879         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22880         * sysdeps/x86_64/strcasecmp.S: New file.
22881         * sysdeps/x86_64/strcasecmp_l.S: New file.
22882         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22883         * sysdeps/x86_64/locale-defines.sym: New file.
22884         * string/test-strcasecmp.c: New file.
22885
22886         * string/test-strcasestr.c: Test both ends of the range of characters.
22887         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22888
22889 2010-07-29  Roland McGrath  <roland@redhat.com>
22890
22891         [BZ #11856]
22892         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22893
22894 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22895
22896         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22897         for ld.so.
22898
22899 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22900
22901         * manual/memory.texi (Malloc Tunable Parameters): Document
22902         M_PERTURB.
22903
22904 2010-07-26  Roland McGrath  <roland@redhat.com>
22905
22906         [BZ #11840]
22907         * configure.in (-fgnu89-inline check): Set and substitute
22908         gnu89_inline, not libc_cv_gnu89_inline.
22909         * configure: Regenerated.
22910         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22911
22912 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22913
22914         * string/test-strnlen.c: New file.
22915         * string/Makefile (strop-tests): Add strnlen.
22916         * string/tester.c (test_strnlen): Add a few more test cases.
22917         * string/tst-strlen.c: Better error reporting.
22918
22919         * sysdeps/x86_64/strnlen.S: New file.
22920
22921 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22922
22923         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22924         lower-latency instructions.
22925
22926 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22927
22928         * string/test-strcasestr.c: New file.
22929         * string/test-strstr.c: New file.
22930         * string/Makefile (strop-tests): Add strstr and strcasestr.
22931         * string/str-two-way.h: Don't undefine MAX.
22932         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22933
22934 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22935
22936         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22937         strcasestr-nonascii.
22938         (CFLAGS-strcasestr-nonascii.c): Define.
22939         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22940         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22941         Remove unused attribute.
22942
22943 2010-07-20  Roland McGrath  <roland@redhat.com>
22944
22945         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22946         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22947         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22948         like LD_HWCAP_MASK can disable hwcaps.
22949
22950 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22951
22952         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22953
22954 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22955
22956         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22957         call in strcasestr.
22958         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22959         __strcasestr_sse42_nonascii.
22960         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22961         strcasestr-nonascii.c.
22962         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22963
22964 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22965
22966         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22967         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22968         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22969         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22970
22971 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22972
22973         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22974         fcntl.
22975
22976 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22977
22978         [BZ #11577]
22979         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22980         dl_signal_cerror.
22981
22982 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22983
22984         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22985         _PC_PIPE_BUF using F_GETPIPE_SZ.
22986
22987 2010-07-05  Roland McGrath  <roland@redhat.com>
22988
22989         * manual/arith.texi (Rounding Functions): Fix rint description
22990         implicit in round description.
22991
22992 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22993
22994         * elf/Makefile: Fix linking for a few tests to make recent linker
22995         happy.
22996
22997 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22998
22999         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
23000         $(common-objpfx)libc_nonshared.a.
23001
23002 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
23003
23004         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
23005         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
23006         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
23007         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
23008         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
23009         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
23010         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
23011         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
23012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
23013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
23014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
23015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
23016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
23017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
23018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
23019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
23020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
23021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
23022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
23023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
23024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
23025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
23026         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
23027         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
23028         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
23029         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
23030         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
23031         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
23032         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
23033         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
23034         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
23035         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
23036         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
23037         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
23038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
23039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
23040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
23041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
23042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
23043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
23044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
23045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
23046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
23047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
23048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
23049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
23050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
23051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
23052
23053 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
23054
23055         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
23056         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
23057         * string/memmove.c (memmove): Renamed to ...
23058         (MEMMOVE): ...this.  Default to memmove.
23059         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
23060         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
23061         (END_CHK): Define.
23062         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23063         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
23064         mempcpy-ssse3-back memmove-ssse3-back.
23065         * sysdeps/x86_64/multiarch/bcopy.S: New file .
23066         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
23067         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
23068         * sysdeps/x86_64/multiarch/memcpy.S: New file.
23069         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
23070         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
23071         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
23072         * sysdeps/x86_64/multiarch/memmove.c: New file.
23073         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
23074         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
23075         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
23076         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
23077         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
23078         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
23079         Define.
23080         (index_Fast_Copy_Backward): Define.
23081         (HAS_ARCH_FEATURE): Define.
23082         (HAS_FAST_REP_STRING): Define.
23083         (HAS_FAST_COPY_BACKWARD): Define.
23084
23085 2010-06-21  Andreas Schwab  <schwab@redhat.com>
23086
23087         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23088         Restore proper fallback handling.
23089
23090 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
23091
23092         [BZ #11701]
23093         * posix/group_member.c (__group_member): Correct checking loop.
23094
23095         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
23096         OOM in getpwuid_r correctly.  Return error number when the caller
23097         should return, otherwise -1.
23098         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
23099         call returning > 0 value.
23100         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
23101
23102 2010-06-07  Andreas Schwab  <schwab@redhat.com>
23103
23104         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
23105         libc_nonshared.a from targets in modules-names.
23106
23107 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
23108
23109         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
23110         requires it.
23111
23112 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
23113
23114         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
23115         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
23116         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
23117         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
23118
23119 2010-06-02  Andreas Schwab  <schwab@redhat.com>
23120
23121         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
23122
23123 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
23124
23125         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
23126         and F_GETPIPE_SZ.
23127         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
23128         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
23129         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
23130         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
23131         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
23132         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
23133
23134 2010-06-14  Roland McGrath  <roland@redhat.com>
23135
23136         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
23137
23138 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
23139
23140         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
23141         __REDIRECT followed by __THROW.
23142         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
23143         * posix/getopt.h (getopt): Likewise.
23144
23145 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
23146
23147         * hurd/lookup-at.c (__file_name_lookup_at): Accept
23148         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
23149         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
23150         in AT_FLAGS.
23151         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
23152         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
23153
23154 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
23155
23156         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
23157
23158 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
23159
23160         [BZ #11640]
23161         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23162         Properly check family and model.
23163
23164 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
23165
23166         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
23167
23168 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
23169
23170         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
23171
23172 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
23173
23174         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
23175         symbol reference.
23176
23177 2010-05-19  Andreas Schwab  <schwab@redhat.com>
23178
23179         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
23180         symbol reference.
23181
23182 2010-05-21  Andreas Schwab  <schwab@redhat.com>
23183
23184         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
23185         and internal_recvmmsg.
23186         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
23187         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
23188         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
23189         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
23190
23191         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
23192         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
23193         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
23194
23195 2010-05-20  Andreas Schwab  <schwab@redhat.com>
23196
23197         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
23198
23199 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
23200
23201         POWER7 optimizations.
23202         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
23203         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
23204
23205 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
23206
23207         * version.h: Update for 2.13 development version.
23208
23209 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
23210
23211         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
23212         exceptions.  Return 0.
23213
23214 2010-05-07  Roland McGrath  <roland@redhat.com>
23215
23216         * elf/ldconfig.c (main): Add a const.
23217
23218 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
23219
23220         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
23221         (args_options): Add no-idn option.
23222         (ahosts_keys_int): Add idn_flags to ai_flags.
23223         (parse_option): Handle 'i' option to clear idn_flags.
23224
23225         * malloc/malloc.c (_int_free): Possible race in the most recently
23226         added check.  Only act on the data if no current modification
23227         happened.
23228
23229 See ChangeLog.17 for earlier changes.